/* ===== 18183传奇发布网 样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "WenQuanYi Micro Hei", sans-serif;
  font-size: 14px; color: #333; background: #f2f3f5; line-height: 1.8;
}
a { color: #333; text-decoration: none; transition: color .2s; }
a:hover { color: #c81623; }
ul { list-style: none; }
img { max-width: 100%; }
.wrap { width: 1180px; margin: 0 auto; }

/* ===== 头部 ===== */
.site-header {
  background: linear-gradient(90deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  border-bottom: 3px solid #c81623; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.head-box { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-ico { font-size: 34px; }
.logo-txt { color: #fff; font-size: 24px; font-weight: 700; letter-spacing: 1px; }
.logo-sub { font-size: 13px; font-weight: 400; color: #ffce54; margin-left: 4px; }
.nav-top { display: flex; gap: 4px; }
.nav-top a {
  color: #e0e0e0; font-size: 15px; padding: 8px 14px; border-radius: 4px;
}
.nav-top a:hover { background: #c81623; color: #fff; }

/* ===== 面包屑 ===== */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 14px 0 6px; font-size: 13px; color: #888;
}
.breadcrumb li::after { content: ">"; margin-left: 6px; color: #bbb; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #c81623; }

/* ===== Hero ===== */
.hero {
  display: flex; gap: 20px; margin-top: 18px; align-items: stretch;
}
.hero-txt {
  flex: 1; background: #fff; border-radius: 8px; padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05); border-left: 4px solid #c81623;
}
.hero-txt h1 {
  font-size: 24px; color: #1a1a2e; line-height: 1.5; margin-bottom: 14px;
}
.hero-desc { color: #555; font-size: 15px; margin-bottom: 18px; }
.hero-desc span { color: #c81623; font-weight: 600; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tags a {
  background: #f5f5f5; border: 1px solid #e5e5e5; border-radius: 20px;
  padding: 6px 16px; font-size: 13px; color: #444;
}
.hero-tags a:hover { background: #c81623; color: #fff; border-color: #c81623; }
.hero-side {
  width: 300px; background: #fff; border-radius: 8px; padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.hero-side h3 {
  font-size: 16px; color: #c81623; border-bottom: 2px solid #f0f0f0;
  padding-bottom: 8px; margin-bottom: 12px;
}
.side-news li { padding: 7px 0; border-bottom: 1px dashed #eee; }
.side-news a { font-size: 13px; color: #444; display: block; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.side-news a:hover { color: #c81623; }

/* ===== 区块标题 ===== */
.block { margin-top: 26px; background: #fff; border-radius: 8px; padding: 20px 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.sec-title {
  display: flex; align-items: center; gap: 10px; font-size: 19px; color: #1a1a2e;
  border-left: 4px solid #c81623; padding-left: 12px; margin-bottom: 16px;
}
.sec-title em { font-style: normal; font-size: 13px; color: #999; font-weight: 400; }
.sec-title .more { margin-left: auto; font-size: 13px; color: #c81623; }

/* ===== 开服列表 ===== */
.server-list { }
.server-list li {
  display: flex; align-items: center; padding: 12px 0; border-bottom: 1px dashed #eee;
}
.server-list li.hot { background: #fff8f8; border-radius: 4px; padding-left: 8px; }
.s-name { flex: 1; font-size: 15px; font-weight: 600; }
.s-name a:hover { color: #c81623; }
.s-ver { width: 110px; color: #c81623; font-size: 13px; }
.s-time { width: 110px; color: #888; font-size: 13px; }
.s-btn {
  width: 60px; text-align: center; background: #c81623; color: #fff; border-radius: 4px;
  padding: 4px 0; font-size: 13px;
}
.s-btn:hover { background: #a5121c; color: #fff; }

/* ===== 栏目卡片 ===== */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card { border: 1px solid #eee; border-radius: 8px; padding: 16px; transition: box-shadow .2s; }
.cat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.cat-title { font-size: 16px; border-bottom: 1px solid #f0f0f0; padding-bottom: 8px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px; }
.cat-title span { color: #c81623; }
.cat-title .more { margin-left: auto; font-size: 12px; color: #999; font-weight: 400; }
.cat-list li { padding: 6px 0; display: flex; gap: 8px; align-items: baseline; }
.cat-list li a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #444; }
.cat-list time { color: #bbb; font-size: 12px; flex-shrink: 0; }

/* ===== 最新文章 ===== */
.latest-list { }
.latest-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px dashed #eee; }
.lt-tag { background: #c81623; color: #fff; border-radius: 3px; padding: 1px 6px;
  font-size: 12px; flex-shrink: 0; }
.latest-list a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.latest-list time { color: #bbb; font-size: 12px; flex-shrink: 0; }

/* ===== 两栏布局 ===== */
.two-col { display: flex; gap: 20px; margin-top: 18px; align-items: flex-start; }
.col-main { flex: 1; min-width: 0; }
.col-side { width: 300px; flex-shrink: 0; }

/* ===== 页面标题 ===== */
.page-h1 { font-size: 24px; color: #1a1a2e; padding-bottom: 12px; border-bottom: 2px solid #c81623;
  margin-bottom: 12px; }
.page-desc { color: #666; background: #f9f9f9; padding: 14px; border-radius: 6px; margin-bottom: 20px; }

/* ===== 文章列表 ===== */
.list-art { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
.list-art:last-child { border-bottom: none; }
.la-thumb { flex-shrink: 0; width: 160px; height: 100px; border-radius: 6px; overflow: hidden; }
.thumb-img { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1a2e, #c81623); color: #fff; font-size: 28px; font-weight: 700; }
.la-main { flex: 1; min-width: 0; }
.la-title { font-size: 18px; margin-bottom: 8px; }
.la-title a { color: #1a1a2e; }
.la-title a:hover { color: #c81623; }
.la-desc { color: #666; font-size: 13px; margin-bottom: 10px; line-height: 1.7; }
.la-meta { font-size: 12px; color: #999; display: flex; gap: 12px; align-items: center; }
.cat-tag { background: #f5f5f5; color: #c81623; border-radius: 3px; padding: 1px 8px; font-size: 12px; }
.cat-tag a { color: #c81623; }

/* ===== 侧栏 ===== */
.side-box { background: #fff; border-radius: 8px; padding: 16px; margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.side-box h3 { font-size: 16px; color: #1a1a2e; border-left: 3px solid #c81623; padding-left: 10px;
  margin-bottom: 12px; }
.rank-list li { padding: 8px 0; border-bottom: 1px dashed #eee; display: flex; gap: 8px; align-items: baseline; }
.rank-list li i { font-style: normal; width: 20px; height: 20px; line-height: 20px; text-align: center;
  background: #f0f0f0; color: #999; border-radius: 3px; font-size: 12px; flex-shrink: 0; }
.rank-list li:nth-child(1) i, .rank-list li:nth-child(2) i, .rank-list li:nth-child(3) i {
  background: #c81623; color: #fff; }
.rank-list li a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #444; }
.rank-list li a:hover { color: #c81623; }
.sub-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-nav a { background: #f5f5f5; border-radius: 4px; padding: 5px 12px; font-size: 13px; color: #444; }
.sub-nav a:hover { background: #c81623; color: #fff; }

/* ===== 文章详情 ===== */
.art-main { background: #fff; border-radius: 8px; padding: 28px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.art-head { border-bottom: 1px solid #f0f0f0; padding-bottom: 16px; margin-bottom: 20px; }
.art-title { font-size: 26px; color: #1a1a2e; line-height: 1.5; margin-bottom: 12px; }
.art-meta { font-size: 13px; color: #999; display: flex; gap: 14px; align-items: center; }
.art-body { font-size: 15px; line-height: 1.9; color: #333; }
.art-body .art-h2 { font-size: 19px; color: #1a1a2e; margin: 26px 0 12px; padding-left: 10px;
  border-left: 3px solid #c81623; }
.art-body p { margin-bottom: 14px; text-indent: 2em; }
.art-tags { margin-top: 24px; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.art-tags .tag { display: inline-block; background: #f5f5f5; border-radius: 4px; padding: 4px 12px;
  margin-right: 8px; font-size: 13px; color: #555; }
.art-tags .tag:hover { background: #c81623; color: #fff; }
.art-share { margin-top: 14px; font-size: 13px; color: #888; }
.art-share a { color: #c81623; cursor: pointer; }
.rel-box { margin-top: 26px; background: #fafafa; border-radius: 8px; padding: 18px; }
.rel-box h2 { font-size: 17px; color: #1a1a2e; margin-bottom: 12px; }
.rel-box li { padding: 6px 0; border-bottom: 1px dashed #eee; }
.rel-box a { color: #444; }
.rel-box a:hover { color: #c81623; }

/* ===== 单页 ===== */
.page-main { background: #fff; border-radius: 8px; padding: 28px; margin-top: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.page-body { font-size: 15px; line-height: 1.9; }
.page-body h2 { font-size: 18px; color: #1a1a2e; margin: 24px 0 12px; padding-left: 10px;
  border-left: 3px solid #c81623; }
.page-body p { margin-bottom: 14px; }
.page-body strong { color: #c81623; }
.page-list { margin-bottom: 16px; }
.page-list li { padding: 7px 0; border-bottom: 1px dashed #eee; }
.intro { font-size: 15px; line-height: 1.9; }
.intro strong { color: #c81623; }

/* ===== 弹窗 ===== */
.popup-mask { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9998;
  display: none; }
.popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.9);
  width: 420px; max-width: 92vw; background: #fff; border-radius: 12px; z-index: 9999;
  padding: 26px 24px 22px; box-shadow: 0 10px 40px rgba(0,0,0,.3); display: none; opacity: 0;
  transition: all .25s; }
.popup.active { display: block; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.popup-close { position: absolute; top: 10px; right: 14px; width: 32px; height: 32px;
  border: none; background: none; font-size: 26px; color: #bbb; cursor: pointer; line-height: 1; }
.popup-close:hover { color: #c81623; }
.popup h3 { font-size: 18px; color: #1a1a2e; margin-bottom: 16px; }
.popup-list li { padding: 8px 0; border-bottom: 1px dashed #eee; display: flex; gap: 8px;
  align-items: baseline; }
.popup-list li span { background: #c81623; color: #fff; border-radius: 3px; padding: 1px 6px;
  font-size: 11px; flex-shrink: 0; }
.popup-list a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #444; font-size: 14px; }
.popup-tip { margin-top: 14px; text-align: center; font-size: 13px; color: #999; }

/* ===== 浮动按钮 ===== */
.float-qq { position: fixed; right: 20px; bottom: 130px; z-index: 99; }
.float-qq a { display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 60px; height: 60px; background: #c81623; border-radius: 50%; color: #fff;
  box-shadow: 0 4px 12px rgba(200,22,35,.4); cursor: pointer; transition: transform .2s; }
.float-qq a:hover { transform: scale(1.08); color: #fff; }
.fqq-ico { font-size: 22px; line-height: 1; }
.fqq-txt { font-size: 11px; line-height: 1.2; margin-top: 2px; text-align: center; }
.float-top { position: fixed; right: 20px; bottom: 70px; width: 46px; height: 46px;
  background: #1a1a2e; color: #fff; border-radius: 50%; display: none; align-items: center;
  justify-content: center; font-size: 20px; cursor: pointer; z-index: 99;
  box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.float-top:hover { background: #c81623; }

/* ===== 页脚 ===== */
.site-footer { background: #1a1a2e; color: #aaa; margin-top: 40px; padding: 26px 0; font-size: 13px; }
.site-footer p { text-align: center; margin-bottom: 8px; line-height: 1.9; }
.site-footer a { color: #ccc; }
.site-footer a:hover { color: #fff; }

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
  .wrap { width: 100%; padding: 0 16px; }
}
@media (max-width: 860px) {
  .head-box { flex-direction: column; height: auto; padding: 14px 0; gap: 12px; }
  .nav-top { flex-wrap: wrap; justify-content: center; }
  .hero { flex-direction: column; }
  .hero-side { width: 100%; }
  .cat-grid { grid-template-columns: 1fr; }
  .two-col { flex-direction: column; }
  .col-side { width: 100%; }
  .list-art { flex-direction: column; }
  .la-thumb { width: 100%; height: 140px; }
  .server-list li { flex-wrap: wrap; gap: 8px; }
  .s-ver, .s-time { width: auto; }
}
