/* ============================================================
   传奇私服发布网 · 全站共享样式
   设计语言：现代暗色游戏门户 / 深蓝黑底 + 火焰金强调
   ============================================================ */

/* ---------- 基础与变量 ---------- */
:root {
  --bg: #0b0f16;
  --bg-2: #0f1520;
  --panel: #131b28;
  --card: #16202f;
  --card-2: #1a2536;
  --line: rgba(146, 168, 202, 0.14);
  --line-strong: rgba(232, 182, 76, 0.28);
  --gold: #e8b64c;
  --gold-2: #c9972e;
  --gold-soft: rgba(232, 182, 76, 0.1);
  --red: #e0544d;
  --red-soft: rgba(224, 84, 77, 0.12);
  --green: #5ec48b;
  --text: #edf1f7;
  --muted: #8fa0b4;
  --muted-2: #5f7186;
  --radius: 10px;
  --radius-sm: 6px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Helvetica Neue", system-ui, sans-serif;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img, svg { vertical-align: middle; }
a { color: var(--link, #f0c060); text-decoration: none; }
a:hover { color: #ffd98a; }
ul, ol { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* 焦点可见（无障碍） */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 顶栏 ---------- */
.topbar {
  background: #080c12;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
  overflow: hidden;
}
.topbar-dot { color: var(--gold); margin-right: 6px; }
.topbar-item { white-space: nowrap; }
.topbar-item + .topbar-item::before { content: "·"; margin: 0 12px; color: var(--muted-2); }

/* ---------- 头部导航 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 15, 22, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 18px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex-shrink: 0; }
.brand svg { width: 34px; height: 34px; }
.brand-text { font-size: 20px; font-weight: 800; letter-spacing: 1px; line-height: 1.1; }
.brand-text small { display: block; font-size: 10px; letter-spacing: 2.5px; color: var(--gold); font-weight: 600; margin-top: 2px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.main-nav a.on { color: var(--gold); background: var(--gold-soft); font-weight: 700; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: var(--radius-sm); padding: 10px 16px; font-size: 14px; cursor: pointer; }

/* ---------- 主内容 ---------- */
main { min-height: 60vh; }

/* 面包屑 */
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { margin: 0 8px; color: var(--muted-2); }
.crumbs .now { color: var(--gold); }

/* 页面标题条 */
.page-head { padding: 26px 0 8px; }
.page-head h1 { font-size: 30px; line-height: 1.35; }
.page-head p { color: var(--muted); margin-top: 8px; max-width: 720px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1100px 420px at 18% -10%, rgba(232,182,76,.14), transparent 60%), radial-gradient(900px 420px at 88% -20%, rgba(224,84,77,.12), transparent 55%), linear-gradient(180deg, #0d141f 0%, #0b0f16 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 44px; padding: 58px 0 46px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gold); border: 1px solid var(--line-strong); background: var(--gold-soft); padding: 4px 12px; border-radius: 999px; letter-spacing: 1px; }
.hero-kicker svg { width: 14px; height: 14px; }
.hero h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.28; margin: 18px 0 14px; font-weight: 900; }
.hero h1 .hl { background: linear-gradient(115deg, #f7df94, var(--gold) 52%, #c9972e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: 16px; max-width: 640px; }
.hero-cta { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, #f0c45e, var(--gold-2)); color: #241a05; box-shadow: 0 6px 18px rgba(232,182,76,.25); }
.btn-gold:hover { color: #241a05; box-shadow: 0 8px 24px rgba(232,182,76,.38); }
.btn-ghost { border-color: var(--line-strong); color: var(--gold); background: transparent; }
.btn-ghost:hover { background: var(--gold-soft); color: #ffd98a; }

/* 统计卡 */
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-card { background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; right: -18px; top: -18px; width: 66px; height: 66px; border-radius: 50%; background: radial-gradient(circle, var(--gold-soft), transparent 70%); }
.stat-num { font-size: 30px; font-weight: 900; color: var(--gold); line-height: 1.2; }
.stat-num em { font-style: normal; font-size: 15px; color: var(--muted); margin-left: 3px; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* 信任徽章条 */
.trustbar { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.trustbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: none; }
.trust-item svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--gold); }
.trust-item b { display: block; font-size: 14px; }
.trust-item span { font-size: 12.5px; color: var(--muted); }

/* ---------- 通用区块 ---------- */
.section { padding: 40px 0; }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-title { display: flex; align-items: center; gap: 12px; }
.sec-index { font-size: 13px; font-weight: 800; color: var(--gold); border: 1px solid var(--line-strong); border-radius: 6px; padding: 2px 8px; background: var(--gold-soft); }
.sec-title h2 { font-size: 22px; font-weight: 800; }
.sec-title p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.sec-more { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.sec-more:hover { color: var(--gold); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s, border-color .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }

/* 文章卡 */
.article-card { display: flex; flex-direction: column; padding: 20px; border-left: 3px solid var(--gold-2); }
.article-card .tag-row { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.tag { font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tag.hot { color: var(--red); border-color: rgba(224,84,77,.4); background: var(--red-soft); }
.tag.new { color: var(--gold); border-color: var(--line-strong); background: var(--gold-soft); }
.article-card h3 { font-size: 17px; line-height: 1.5; margin-bottom: 8px; }
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--gold); }
.article-card .desc { font-size: 13.5px; color: var(--muted); flex: 1; }
.article-card .meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--muted-2); margin-top: 12px; }
.read-more { color: var(--gold); font-size: 13.5px; font-weight: 600; display: inline-block; padding: 4px 0; }
.read-more:hover { color: #ffd98a; }

/* 移动端加大触摸目标与辅助文字可读性 */
@media (max-width: 640px) {
  .sec-more, .lnk { display: inline-block; padding: 8px 0; }
  .trust-item span { font-size: 13.5px; }
  .stat-label { font-size: 13.5px; }
  .sec-title p { font-size: 13.5px; }
  .tag { font-size: 12.5px; }
}

/* 推荐服卡 */
.server-card { padding: 18px 20px; display: flex; flex-direction: column; }
.server-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.server-name { font-size: 16px; font-weight: 800; }
.server-badge { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); border: 1px solid var(--line-strong); }
.server-list { font-size: 13.5px; color: var(--muted); display: grid; gap: 6px; flex: 1; }
.server-list li { display: flex; justify-content: space-between; gap: 10px; }
.server-list li b { color: var(--text); font-weight: 600; }
.server-ops { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.server-ops span { font-size: 12.5px; color: var(--muted-2); }
.ratio { display: inline-block; width: 74px; height: 6px; background: rgba(255,255,255,.09); border-radius: 3px; overflow: hidden; vertical-align: middle; margin-left: 6px; }
.ratio i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--red)); border-radius: 3px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; background: var(--card); table-layout: fixed; }
table.data th, table.data td { padding: 11px 12px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--line); }
table.data th { background: var(--panel); color: var(--gold); font-weight: 700; white-space: nowrap; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: rgba(255,255,255,.025); }
table.data .st { color: var(--green); }
table.data .warn { color: var(--gold); }
table.data .dl { color: var(--muted); }
.table-note { font-size: 12.5px; color: var(--muted-2); margin-top: 10px; }

/* ---------- 时间线 ---------- */
.timeline { display: grid; grid-template-columns: 92px 18px 1fr; column-gap: 12px; row-gap: 0; }
.tl-item { display: contents; }
.tl-time { text-align: right; font-size: 13px; color: var(--muted); padding: 12px 0; }
.tl-rail { position: relative; display: flex; justify-content: center; }
.tl-rail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--gold-2), rgba(232,182,76,.15)); }
.tl-dot { position: relative; z-index: 1; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-top: 17px; box-shadow: 0 0 0 4px var(--gold-soft); }
.tl-body { padding: 10px 0 16px; }
.tl-body h3 { font-size: 15.5px; font-weight: 700; }
.tl-body h3 a { color: var(--text); }
.tl-body h3 a:hover { color: var(--gold); }
.tl-body p { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 12px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 15px 18px; font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 20px; font-weight: 400; transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 18px 16px; color: var(--muted); font-size: 14px; }

/* ---------- 栏目矩阵 ---------- */
.col-card { padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(165deg, var(--card), var(--bg-2)); }
.col-card svg { width: 30px; height: 30px; color: var(--gold); }
.col-card h3 { font-size: 17px; }
.col-card h3 a { color: var(--text); }
.col-card h3 a:hover { color: var(--gold); }
.col-card p { font-size: 13.5px; color: var(--muted); flex: 1; }
.col-card .lnk { font-size: 13.5px; color: var(--gold); font-weight: 600; }

/* ---------- 文章正文 ---------- */
.bread-top { border-bottom: 1px solid var(--line); }
.article-main { padding: 30px 0 46px; }
.article-shell { display: grid; grid-template-columns: 1fr 300px; gap: 34px; align-items: start; }
.article-body { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; }
.article-body h1 { font-size: 27px; line-height: 1.4; margin-bottom: 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted-2); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.article-meta span { display: inline-flex; align-items: center; gap: 5px; }
.prose { font-size: 15px; line-height: 2; color: #dbe3ee; }
.prose h2 { font-size: 21px; color: var(--text); margin: 34px 0 14px; padding-left: 12px; border-left: 4px solid var(--gold); line-height: 1.5; }
.prose h3 { font-size: 17.5px; color: var(--gold); margin: 26px 0 10px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 2px; }
.prose ul li, .prose ol li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.prose ol { counter-reset: pc; }
.prose ol li { counter-increment: pc; }
.prose ol li::before { content: counter(pc); position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--line-strong); color: var(--gold); font-size: 12px; font-weight: 700; text-align: center; line-height: 16px; }
.prose strong { color: var(--text); }
.prose .tips { background: var(--gold-soft); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 16px; margin: 18px 0; font-size: 14px; color: #e9d9ae; }
.prose .tips b { color: var(--gold); }
.prose blockquote { border-left: 3px solid var(--gold-2); background: rgba(255,255,255,.03); padding: 12px 18px; margin: 18px 0; color: var(--muted); font-size: 14px; }

/* 侧栏 */
.sidebar { position: sticky; top: 84px; display: grid; gap: 18px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-card h3 { font-size: 15.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.side-card h3::before { content: ""; width: 4px; height: 16px; background: var(--gold); border-radius: 2px; }
.side-list li { border-bottom: 1px dashed var(--line); padding: 8px 0; font-size: 13.5px; }
.side-list li:last-child { border-bottom: none; }
.side-list a { color: var(--muted); display: block; }
.side-list a:hover { color: var(--gold); }
.side-list .num { color: var(--muted-2); font-size: 12px; margin-left: 6px; }

/* 文章尾部：上一篇/下一篇 + 相关 */
.article-foot { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 20px; }
.rel-title { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.rel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rel-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--bg-2); font-size: 13.5px; }
.rel-item a { color: var(--muted); }
.rel-item a:hover { color: var(--gold); }

/* ---------- 免责/安全条 ---------- */
.notice { border: 1px solid var(--line); border-left: 4px solid var(--gold); background: var(--panel); border-radius: var(--radius-sm); padding: 16px 20px; font-size: 13.5px; color: var(--muted); }
.notice b { color: var(--gold); }

/* ---------- 页脚 ---------- */
.site-footer { background: #080c12; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.4fr; gap: 34px; padding: 40px 0 30px; }
.footer-col h4 { font-size: 15px; color: var(--text); margin-bottom: 14px; }
.footer-col p, .footer-col li { font-size: 13.5px; color: var(--muted); }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--gold); }
.footer-brand { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.footer-brand svg { width: 26px; height: 26px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0; font-size: 12.5px; color: var(--muted-2); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* 返回顶部 */
#backTop { position: fixed; right: 22px; bottom: 26px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(19,27,40,.9); color: var(--gold); font-size: 18px; cursor: pointer; display: none; z-index: 60; }
#backTop.show { display: block; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .article-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 66px; left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 16px; display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; }
  .hero-inner { grid-template-columns: 1fr; padding: 40px 0 34px; gap: 30px; }
  .trustbar-inner { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar-item:last-child { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .article-body { padding: 24px 18px; }
  .article-body h1 { font-size: 21px; }
  .rel-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .sec-title h2 { font-size: 19px; }
  .page-head h1 { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .timeline { grid-template-columns: 74px 14px 1fr; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover { transform: none; }
}
