/* ========== 基础 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #0b1220;
  --navy-2: #111a2e;
  --gold: #f0b90b;
  --gold-dark: #d9a50a;
  --ink: #1a2332;
  --muted: #5b6675;
  --line: #e6e9ef;
  --bg: #f7f8fa;
  --green: #0ecb81;
  --red: #f6465d;
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ========== 头部导航 ========== */
.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; }
.logo-mark {
  background: var(--gold); color: var(--navy);
  width: 34px; height: 34px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a { color: #b8c2d4; font-size: 15px; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--gold); }

/* ========== Hero ========== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1a2742 100%);
  color: #fff; padding: 110px 0 90px; text-align: center;
}
.hero-badge {
  display: inline-block; padding: 6px 16px; border: 1px solid rgba(240,185,11,.4);
  border-radius: 999px; color: var(--gold); font-size: 13px; margin-bottom: 28px;
  background: rgba(240,185,11,.08);
}
.hero h1 { font-size: 46px; line-height: 1.3; font-weight: 800; letter-spacing: 1px; }
.hero .accent { color: var(--gold); }
.hero-sub { margin: 22px auto 36px; max-width: 560px; color: #aeb9cc; font-size: 17px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; }

/* ========== 按钮 ========== */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: none;
  transition: all .2s;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 6px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: none; color: #b8c2d4; cursor: pointer; font-size: 15px; }
.link-btn:hover { color: var(--gold); }

/* ========== 数据条 ========== */
.stats { background: var(--navy-2); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { font-size: 34px; font-weight: 800; color: var(--gold); }
.stat-label { color: #8b98ad; font-size: 14px; margin-top: 4px; }

/* ========== 特性 ========== */
.features { padding: 80px 0; background: #fff; }
.section-title { font-size: 30px; font-weight: 800; text-align: center; margin-bottom: 48px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature {
  border: 1px solid var(--line); border-radius: 14px; padding: 30px;
  transition: all .25s;
}
.feature:hover { border-color: var(--gold); box-shadow: 0 8px 30px rgba(240,185,11,.12); transform: translateY(-3px); }
.feature-icon { font-size: 30px; margin-bottom: 14px; }
.feature h3 { font-size: 18px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* ========== 最新动态 ========== */
.latest { padding: 80px 0; background: var(--bg); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.section-head .section-title { margin-bottom: 0; }
.more-link { color: var(--gold-dark); font-weight: 600; font-size: 15px; }
.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-card {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 24px 28px; transition: all .2s;
}
.article-card:hover { border-color: var(--gold); box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.article-card-title { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.article-card-summary { color: var(--muted); font-size: 14.5px; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-meta { display: flex; gap: 18px; color: #9aa5b5; font-size: 13px; align-items: center; }
.tag {
  background: #f0f2f6; border-radius: 5px; padding: 2px 9px;
  font-size: 12px; color: var(--muted); margin-right: 6px;
}
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* ========== 页头 ========== */
.page-head { background: var(--navy); color: #fff; padding: 60px 0 44px; }
.page-head h1 { font-size: 32px; font-weight: 800; }
.page-head p { color: #aeb9cc; margin-top: 8px; }
.section-pad { padding: 48px 24px 80px; }

/* ========== 文章正文 ========== */
.article-meta { display: flex; gap: 18px; color: #8b98ad; font-size: 14px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.article-content { max-width: 760px; font-size: 16px; }
.article-content h1, .article-content h2, .article-content h3,
.article-content h4, .article-content h5, .article-content h6 {
  margin: 1.6em 0 .6em; line-height: 1.4;
}
.article-content h1 { font-size: 26px; } .article-content h2 { font-size: 22px; }
.article-content h3 { font-size: 19px; }
.article-content p { margin: .9em 0; }
.article-content ul, .article-content ol { margin: .9em 0 .9em 1.6em; }
.article-content li { margin: .3em 0; }
.article-content a { color: var(--gold-dark); text-decoration: underline; }
.article-content blockquote {
  border-left: 4px solid var(--gold); background: #fdf8ea;
  padding: 12px 18px; margin: 1em 0; color: var(--muted); border-radius: 0 8px 8px 0;
}
.article-content code {
  background: #f0f2f6; padding: 2px 7px; border-radius: 5px;
  font-family: Consolas, Monaco, monospace; font-size: 14px; color: #c7254e;
}
.article-content pre {
  background: var(--navy); color: #d7e0ee; padding: 18px 20px;
  border-radius: 10px; overflow-x: auto; margin: 1.2em 0;
}
.article-content pre code { background: none; color: inherit; padding: 0; }
.article-content img { max-width: 100%; border-radius: 10px; margin: 1em 0; }
.article-content hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }
.article-back { margin-top: 48px; }
.article-back a { color: var(--gold-dark); font-weight: 600; }

/* ========== 页脚 ========== */
.site-footer { background: var(--navy); color: #8b98ad; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 40px; margin-bottom: 36px; }
.footer-brand { color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 12px; font-size: 15px; }
.footer-desc { font-size: 13.5px; line-height: 1.8; }
.site-footer a { display: block; font-size: 14px; margin-bottom: 8px; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px;
  display: flex; justify-content: space-between; font-size: 13px; flex-wrap: wrap; gap: 8px;
}

/* ========== 登录页 ========== */
.login-body {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
}
.login-card {
  background: #fff; border-radius: 16px; padding: 44px 40px; width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.login-logo {
  width: 52px; height: 52px; border-radius: 12px; background: var(--gold);
  color: var(--navy); font-weight: 800; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 16px; font-size: 18px;
}
.login-card h1 { text-align: center; font-size: 22px; margin-bottom: 24px; }
.login-card label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.login-card input {
  display: block; width: 100%; margin-top: 6px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 15px; outline: none;
}
.login-card input:focus { border-color: var(--gold); }
.login-tip { margin-top: 18px; font-size: 12.5px; color: #9aa5b5; text-align: center; }

/* ========== 后台 ========== */
.admin-body { background: var(--bg); min-height: 100vh; }
.admin-header { background: var(--navy); }
.admin-main { padding: 40px 0 80px; }
.admin-title { font-size: 24px; font-weight: 800; margin-bottom: 24px; }
.admin-subtitle { font-size: 18px; margin: 36px 0 16px; }
.admin-head-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-head-row .admin-title { margin-bottom: 0; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 24px; text-align: center; color: var(--muted); font-size: 14px;
}
.stat-card-num { font-size: 32px; font-weight: 800; color: var(--ink); }
.admin-actions { display: flex; gap: 12px; margin: 8px 0 4px; }
.admin-actions .btn-ghost { color: var(--ink); border-color: var(--line); }
.admin-actions .btn-ghost:hover { color: var(--gold-dark); border-color: var(--gold); }
.admin-table {
  width: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden;
}
.admin-table th, .admin-table td { padding: 13px 16px; text-align: left; font-size: 14.5px; }
.admin-table th { background: #fafbfc; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.admin-table td { border-bottom: 1px solid #f0f2f6; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table td a { color: var(--ink); font-weight: 600; }
.admin-table td a:hover { color: var(--gold-dark); }
.row-actions { white-space: nowrap; display: flex; gap: 8px; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-green { background: #e6f9f1; color: #0a9e66; }
.badge-gray { background: #eef0f4; color: #7a8494; }

/* ========== 表单 ========== */
.form-label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 18px; font-weight: 600; }
.form-input {
  display: block; width: 100%; margin-top: 6px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 15px;
  outline: none; font-family: inherit; font-weight: 400; background: #fff;
}
.form-input:focus { border-color: var(--gold); }
textarea.form-input { resize: vertical; }
.narrow-form { max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14.5px; }
.alert-error { background: #feeef1; color: #c2334a; border: 1px solid #f5c6cf; }
.alert-ok { background: #e6f9f1; color: #0a9e66; border: 1px solid #b8ecd6; }

/* ========== 编辑器 ========== */
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.editor-textarea { font-family: Consolas, Monaco, monospace; font-size: 14px; line-height: 1.7; min-height: 480px; }
.preview-pane {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 20px 24px; min-height: 480px; max-height: 720px; overflow-y: auto;
  margin-top: 6px; font-size: 15px;
}
.editor-footer {
  display: flex; gap: 20px; align-items: flex-end; margin-top: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px;
}
.editor-footer .form-label { margin-bottom: 0; }
.tags-label { flex: 1; }
.editor-footer .btn { margin-bottom: 0; }

/* ========== 响应式 ========== */
@media (max-width: 860px) {
  .hero h1 { font-size: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .editor-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .main-nav { gap: 16px; }
  .row-actions { flex-wrap: wrap; }
}

/* ========== 工具导航 ========== */
.hero-search { margin: 28px auto 0; max-width: 560px; }
.hero-search input {
  width: 100%; padding: 14px 20px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08);
  color: #fff; font-size: 15px; outline: none; font-family: inherit;
  transition: border-color .2s, background .2s;
}
.hero-search input:focus { border-color: var(--gold); background: rgba(255,255,255,.12); }
.hero-search input::placeholder { color: #8b98ae; }

.pill-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.pill {
  padding: 7px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 14px; cursor: pointer;
  font-family: inherit; transition: all .15s;
}
.pill:hover { border-color: var(--gold); color: var(--gold-dark); }
.pill.active { background: var(--navy); border-color: var(--navy); color: var(--gold); font-weight: 600; }

.tool-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}
.tool-card {
  display: flex; gap: 14px; padding: 18px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tool-card:hover {
  transform: translateY(-2px); border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(11,18,32,.07);
}
.tool-icon {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 11px;
  background: linear-gradient(135deg, var(--navy), #2a3a5c); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700;
}
.tool-icon-sm {
  display: inline-flex; width: 26px; height: 26px; font-size: 13px;
  border-radius: 7px; vertical-align: middle; margin-right: 8px;
}
.tool-info { min-width: 0; flex: 1; }
.tool-name { font-weight: 700; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.tool-desc {
  margin: 5px 0 10px; font-size: 13.5px; color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tool-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag-cat { background: #eef2ff; color: #4f46e5; }
.featured-badge {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--gold); color: var(--navy);
}
.badge-gold { background: #fef3c7; color: #b45309; }
.form-check {
  display: flex; align-items: center; gap: 8px; font-size: 14.5px;
  color: var(--ink); margin-bottom: 20px; font-weight: 500; cursor: pointer;
}
.form-check input { width: 16px; height: 16px; accent-color: var(--gold); }

/* ========== FAQ 手风琴 ========== */
.narrow-pad { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] { border-color: var(--gold); box-shadow: 0 6px 20px rgba(11,18,32,.05); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-weight: 600; font-size: 15.5px; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: 0 0 auto; color: var(--gold-dark); font-size: 20px;
  font-weight: 400; line-height: 1; transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--gold-dark); }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p { font-size: 14.5px; color: var(--muted); line-height: 1.85; }

/* ========== 使用指南 ========== */
.steps { display: flex; flex-direction: column; gap: 4px; }
.step { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.step:last-child { border-bottom: none; }
.step-num {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.step-body h3 { font-size: 16px; margin-bottom: 6px; }
.step-body p { font-size: 14.5px; color: var(--muted); line-height: 1.8; }

.tip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tip-card {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 10px; padding: 18px 20px;
}
.tip-card h4 { font-size: 15px; margin-bottom: 8px; }
.tip-card p { font-size: 14px; color: var(--muted); line-height: 1.75; }

.callout {
  margin-top: 40px; padding: 24px 26px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), #1b2946); color: #d7deeb;
}
.callout h3 { color: #fff; font-size: 17px; margin-bottom: 8px; }
.callout p { font-size: 14.5px; line-height: 1.75; }
.callout a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ========== 工具详情页 ========== */
.tool-detail-head { display: flex; align-items: center; gap: 18px; }
.tool-detail-head h1 { font-size: 32px; margin-bottom: 8px; }
.tool-icon-lg {
  flex: 0 0 68px; width: 68px; height: 68px; border-radius: 16px;
  font-size: 28px;
}
.tool-detail-desc {
  font-size: 17px; line-height: 1.85; color: var(--ink);
  margin-bottom: 26px;
}
.btn-lg { padding: 14px 30px; font-size: 16px; }
.tool-detail-note {
  font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.7;
}
.info-table {
  width: 100%; margin-top: 36px; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  font-size: 14.5px;
}
.info-table th {
  width: 120px; text-align: left; padding: 13px 18px;
  background: #fafbfc; color: var(--muted); font-weight: 600;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.info-table td { padding: 13px 18px; border-bottom: 1px solid #f0f2f6; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.info-table a { color: var(--gold-dark); }

/* ========== 长尾词库 ========== */
.admin-hint { font-size: 13.5px; color: var(--muted); margin: -8px 0 20px; }
.stars { color: #c9ced8; letter-spacing: 1px; font-size: 13px; }
.stars.gold { color: var(--gold); }


/* ========== 工具详情页（深度版） ========== */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb span { color: var(--ink); }
.tool-head-main h1 { margin-bottom: 6px; }
.tool-positioning { font-size: 15.5px; color: var(--muted); margin-bottom: 12px; max-width: 720px; line-height: 1.7; }
.meta-dim { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.level-dots { display: inline-flex; gap: 3px; align-items: center; }
.level-dots i { width: 7px; height: 7px; border-radius: 50%; background: #dfe3ea; display: inline-block; }
.level-dots i.on { background: var(--gold); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; margin: 26px 0 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toc a { font-size: 13px; color: var(--muted); background: #f7f8fa; border-radius: 999px; padding: 5px 13px; transition: .15s; }
.toc a:hover { background: var(--navy); color: #fff; }

.prose { margin-top: 18px; }
.prose h2 { font-size: 20px; line-height: 1.5; margin: 40px 0 14px; padding-left: 13px; border-left: 4px solid var(--gold); }
.prose h3 { font-size: 16px; margin-bottom: 10px; }
.prose p { font-size: 15.5px; line-height: 1.9; color: #2b3444; margin-bottom: 14px; }

.price-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 16px 0 10px; font-size: 14.5px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.price-table th { text-align: left; padding: 11px 16px; background: #fafbfc; color: var(--muted); font-weight: 600; font-size: 13px; border-bottom: 1px solid var(--line); }
.price-table td { padding: 12px 16px; border-bottom: 1px solid #f0f2f6; vertical-align: top; }
.price-table tr:last-child td { border-bottom: none; }
.price-table .pt-name { font-weight: 600; white-space: nowrap; }
.price-table .pt-price { color: var(--gold-dark); font-weight: 600; white-space: nowrap; }
.source-note { font-size: 12.5px; color: var(--muted); line-height: 1.8; }

.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 14px 0 6px; }
.fit-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: #fcfcfd; }
.fit-card h3 { font-size: 14px; letter-spacing: .02em; margin-bottom: 12px; }
.fit-pro h3 { color: #0a8f5c; }
.fit-con h3 { color: #c0392b; }
.fit-card ul { list-style: none; }
.fit-card li { font-size: 14.5px; line-height: 1.8; color: #2b3444; padding-left: 16px; position: relative; margin-bottom: 9px; }
.fit-card li:last-child { margin-bottom: 0; }
.fit-card li::before { content: ''; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: #d3d8e0; }
.fit-pro li::before { background: #0ecb81; }
.fit-con li::before { background: #f6465d; }

.alt-list { list-style: none; margin: 12px 0; }
.alt-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding: 13px 2px; border-bottom: 1px dashed #e8ebf1; font-size: 14.5px; }
.alt-list li:last-child { border-bottom: none; }
.alt-list strong, .alt-list a { font-weight: 600; min-width: 132px; }
.alt-list a { color: var(--gold-dark); }
.alt-list a:hover { text-decoration: underline; }
.alt-list span { color: var(--muted); flex: 1; min-width: 200px; }

.pitfall-list { margin: 12px 0 12px 20px; }
.pitfall-list li { font-size: 14.5px; line-height: 1.85; color: #2b3444; margin-bottom: 10px; padding-left: 4px; }

.faq-item { border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; margin-bottom: 10px; background: #fcfcfd; }
.faq-item summary { cursor: pointer; padding: 15px 0; font-size: 15px; font-weight: 600; list-style: none; position: relative; padding-right: 26px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; top: 13px; color: var(--muted); font-weight: 400; font-size: 18px; }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { border-bottom: 1px solid #f0f2f6; margin-bottom: 12px; }
.faq-a p { font-size: 14.5px; line-height: 1.85; color: var(--muted); padding-bottom: 15px; }

@media (max-width: 720px) {
  .fit-grid { grid-template-columns: 1fr; }
  .price-table th, .price-table td { padding: 10px 12px; font-size: 13.5px; }
  .prose h2 { font-size: 18px; }
  .alt-list strong, .alt-list a { min-width: auto; }
}

/* ==========================================================
   魔兽「无限」攻略站主题层
   不覆盖上面的后台样式，只重定义变量 + 追加前台组件
   ========================================================== */
:root {
  --navy: #1a1410;
  --navy-2: #241b14;
  --gold: #c9a227;
  --gold-dark: #a8851b;
  --ink: #241d16;
  --muted: #6f6354;
  --line: #e4d9c4;
  --bg: #f7f2e8;
  --green: #2f7d4f;
  --red: #b3392f;
  --parchment: #fffdf8;
}

body { background: var(--bg); color: var(--ink); }
.site-header { background: var(--navy); box-shadow: 0 2px 12px rgba(26,20,16,.35); }
.logo-mark { background: linear-gradient(160deg, #d9b45b, #a8851b); color: #1a1410; font-family: Georgia, "Songti SC", serif; }
.main-nav a { color: #c7bdb0; }
.main-nav a:hover, .main-nav a.active { color: #e2c169; }
.hero {
  background:
    radial-gradient(circle at 50% 0%, rgba(201,162,39,.18), transparent 60%),
    linear-gradient(160deg, #1a1410 0%, #241b14 55%, #2e2318 100%);
  padding: 92px 0 72px;
}
.hero h1 { font-family: Georgia, "Songti SC", "STSong", serif; font-size: 48px; letter-spacing: 2px; }
.hero-badge { border-color: rgba(201,162,39,.45); background: rgba(201,162,39,.1); color: #e2c169; }
.hero-sub { color: #b5aa9a; }
.btn-primary { background: linear-gradient(160deg, #d9b45b, #b8931f); color: #1a1410; font-weight: 700; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border: 1px solid rgba(226,193,105,.45); color: #e2c169; }
.site-footer { background: #1a1410; color: #a99e8e; }

/* ---------- 事实条 ---------- */
.fact-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--parchment); border: 1px solid var(--line);
  border-radius: 12px; margin-top: -40px; position: relative; z-index: 2;
  box-shadow: 0 8px 28px rgba(36,29,22,.08);
}
.fact { padding: 18px 20px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: none; }
.fact-k { font-size: 12.5px; color: var(--muted); letter-spacing: .5px; }
.fact-v { font-size: 17px; font-weight: 700; margin-top: 4px; color: #3a2a1a; }

/* ---------- 主推 ---------- */
.lead-guide {
  background: var(--parchment); border: 1px solid var(--line);
  border-left: 4px solid var(--gold); border-radius: 10px; padding: 26px 28px;
}
.lead-label { font-size: 12.5px; color: var(--gold-dark); letter-spacing: 2px; margin-bottom: 8px; }
.lead-title { display: block; font-size: 22px; font-weight: 700; line-height: 1.5; color: #2b2016; }
.lead-title:hover { color: var(--gold-dark); }
.lead-summary { color: var(--muted); margin: 10px 0 18px; font-size: 15px; }

/* ---------- 分类卡 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cat-card {
  display: block; background: var(--parchment); border: 1px solid var(--line);
  border-radius: 10px; padding: 20px 22px; transition: .18s;
}
.cat-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(36,29,22,.08); }
.cat-card-head { display: flex; align-items: baseline; justify-content: space-between; }
.cat-name { font-size: 17px; font-weight: 700; color: #2b2016; }
.cat-count { font-size: 12.5px; color: var(--muted); }
.cat-desc { font-size: 13.5px; color: var(--muted); margin: 8px 0 12px; line-height: 1.75; }
.cat-more { font-size: 13px; color: var(--gold-dark); }

/* ---------- 攻略卡 ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.guide-card {
  display: flex; flex-direction: column;
  background: var(--parchment); border: 1px solid var(--line);
  border-radius: 10px; padding: 20px 22px 16px; transition: .18s;
}
.guide-card:hover { border-color: var(--gold); box-shadow: 0 10px 24px rgba(36,29,22,.08); }
.guide-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cat-badge {
  font-size: 12px; padding: 3px 9px; border-radius: 4px;
  background: rgba(201,162,39,.14); color: #8a6b12; border: 1px solid rgba(201,162,39,.3);
}
.read-time { font-size: 12px; color: #9a8e7d; }
.guide-card-title { font-size: 16.5px; font-weight: 700; line-height: 1.55; color: #2b2016; }
.guide-card:hover .guide-card-title { color: var(--gold-dark); }
.guide-card-summary {
  font-size: 13.5px; color: var(--muted); line-height: 1.75; margin: 10px 0 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.guide-card-meta {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: #9a8e7d; padding-top: 12px; border-top: 1px dashed var(--line);
}
.guide-card-meta .tag { background: #f2ece0; color: #7a6b57; }

/* ---------- 列表筛选 pill ---------- */
.pill-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.pill {
  padding: 7px 16px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--line); background: var(--parchment); color: #4a3d2e;
}
.pill em { font-style: normal; font-size: 12px; color: #9a8e7d; margin-left: 4px; }
.pill:hover { border-color: var(--gold); color: var(--gold-dark); }
.pill.active { background: var(--navy); border-color: var(--navy); color: #e2c169; }
.pill.active em { color: #b5a276; }

/* ---------- 文章页 ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--gold-dark); }
.article-h1 { font-family: Georgia, "Songti SC", "STSong", serif; font-size: 34px; line-height: 1.45; letter-spacing: .5px; }
.article-lead {
  margin-top: 16px; padding: 14px 18px; font-size: 15px; color: #5c4f3e;
  background: #f4eee0; border-left: 3px solid var(--gold); border-radius: 0 6px 6px 0;
}
.article-foot {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 13px; color: var(--muted);
}
.article-foot a { color: var(--gold-dark); white-space: nowrap; }
.page-head { background: #f2ece0; border-bottom: 1px solid var(--line); padding: 44px 0 36px; }
.page-head h1 { font-family: Georgia, "Songti SC", "STSong", serif; font-size: 32px; }
.page-head p { color: var(--muted); margin-top: 10px; font-size: 15px; max-width: 760px; }

/* ---------- 正文排版 ---------- */
.prose { font-size: 16.5px; line-height: 1.95; color: #2e2519; }
.prose h2 {
  font-size: 23px; margin: 44px 0 16px; padding-left: 13px;
  border-left: 4px solid var(--gold); line-height: 1.5; color: #2b2016;
}
.prose h3 { font-size: 18px; margin: 30px 0 12px; color: #3a2c1c; }
.prose p { margin: 14px 0; }
.prose ul, .prose ol { margin: 14px 0 14px 22px; }
.prose li { margin: 7px 0; }
.prose blockquote {
  margin: 20px 0; padding: 14px 20px; background: #f4eee0;
  border-left: 3px solid var(--gold); color: #5c4f3e; border-radius: 0 6px 6px 0;
}
.prose strong { color: #1f180f; font-weight: 700; }
.prose a { color: var(--gold-dark); border-bottom: 1px solid rgba(168,133,27,.35); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: 8px; }
.md-table { width: 100%; border-collapse: collapse; background: var(--parchment); font-size: 14.5px; }
.md-table th, .md-table td {
  padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line);
  vertical-align: top; line-height: 1.7;
}
.md-table thead th { background: #efe7d6; color: #4a3a22; font-weight: 700; white-space: nowrap; }
.md-table tbody tr:last-child td { border-bottom: none; }
.md-table tbody tr:nth-child(even) { background: #faf6ec; }
.compare-table th:first-child, .compare-table td:first-child { font-weight: 600; color: #4a3a22; white-space: nowrap; }
.source-note { font-size: 13px; color: #8c7f6d; line-height: 1.8; margin-top: 10px; }

/* ---------- 目录 ---------- */
.toc {
  display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 16px 20px;
  background: #f4eee0; border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0;
  margin-bottom: 30px;
}
.toc a { font-size: 13.5px; color: #6b5836; }
.toc a:hover { color: var(--gold-dark); }

/* ---------- 术语表 ---------- */
.glossary-group { margin-bottom: 40px; }
.glossary-group h2 {
  font-size: 20px; padding-left: 12px; border-left: 4px solid var(--gold); margin-bottom: 14px;
}
.glossary-list { display: grid; grid-template-columns: 170px 1fr; gap: 0 20px; }
.glossary-list dt {
  font-weight: 700; color: #3a2c1c; padding: 12px 0; border-top: 1px solid var(--line);
  font-size: 15px;
}
.glossary-list dd {
  color: #5c4f3e; padding: 12px 0; border-top: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.85;
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--parchment); border: 1px solid var(--line); border-radius: 8px; padding: 4px 18px; }
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 16px; padding: 13px 0;
  list-style: none; color: #2b2016;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--gold-dark); font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 0 14px; color: #5c4f3e; font-size: 15px; line-height: 1.9; }

/* ---------- 提示块 ---------- */
.callout {
  margin-top: 36px; padding: 20px 24px; background: #f4eee0;
  border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px;
}
.callout h3 { font-size: 16px; margin-bottom: 8px; color: #3a2c1c; }
.callout p { font-size: 14.5px; color: #5c4f3e; line-height: 1.85; }
.callout a { color: var(--gold-dark); border-bottom: 1px solid rgba(168,133,27,.35); }

.section-title { font-family: Georgia, "Songti SC", "STSong", serif; }
.tag { background: #f2ece0; color: #7a6b57; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .fact-strip { grid-template-columns: repeat(2, 1fr); margin-top: -24px; }
  .fact:nth-child(2) { border-right: none; }
  .fact:nth-child(1), .fact:nth-child(2) { border-bottom: 1px solid var(--line); }
  .hero { padding: 64px 0 52px; }
  .hero h1 { font-size: 34px; }
  .article-h1 { font-size: 26px; }
  .page-head h1 { font-size: 26px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 20px; margin-top: 34px; }
  .glossary-list { grid-template-columns: 1fr; gap: 0; }
  .glossary-list dt { padding-bottom: 2px; border-top: 1px solid var(--line); }
  .glossary-list dd { padding-top: 2px; border-top: none; }
  .guide-grid, .cat-grid { grid-template-columns: 1fr; }
  .article-foot { flex-direction: column; align-items: flex-start; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 14px; }
}
