/* =============================================
   牛马须知网 — 专业版视觉体系
   主色: #1e3a5f 深蓝 | 强调: #3b82f6 亮蓝 | 暖橙点缀: #f59e0b
   背景: #f8fafc | 文字: #0f172a
   设计原则: 干净 · 可信 · 呼吸感
   ============================================= */

:root {
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fef3c7;
  --bg-card: #f8fafc;
  --border: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg-warn: #fffbeb;
  --warn: #f59e0b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: #f8fafc; color: #0f172a; line-height: 1.7; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== 顶部导航 ===== */
.site-header {
  background: #1e3a5f; color: #fff; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.logo {
  font-size: 20px; font-weight: 700; text-decoration: none; color: #fff;
  display: flex; align-items: center; gap: 8px; letter-spacing: 0.5px;
}
.logo-icon { font-size: 24px; line-height: 1; }
.logo-sub { font-size: 11px; color: rgba(255,255,255,0.5); font-weight: 400; margin-left: 2px; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav .nav-link {
  color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px;
  padding: 8px 16px; border-radius: 8px; transition: all .2s; font-weight: 500;
}
.main-nav .nav-link:hover { color: #fff; background: rgba(255,255,255,0.1); }
.main-nav .nav-link.active { color: #fff; background: rgba(255,255,255,0.12); }

/* ===== Hero 首屏 ===== */
.hero {
  background: linear-gradient(160deg, #1e3a5f 0%, #1a3352 40%, #2d5a8e 100%);
  color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 600px 300px at 80% 20%, rgba(59,130,246,0.08) 0%, transparent 70%),
              radial-gradient(ellipse 400px 400px at 20% 80%, rgba(245,158,11,0.04) 0%, transparent 70%);
}
.hero .container { position: relative; z-index: 1; text-align: center; }
.hero h1 {
  font-size: 36px; font-weight: 800; line-height: 1.25; letter-spacing: -0.3px;
  margin-bottom: 12px;
}
.hero .subtitle {
  font-size: 18px; color: rgba(255,255,255,0.75); font-weight: 400;
  max-width: 480px; margin: 0 auto 36px;
}

/* 紧急入口 — 白底卡片 + 左沿暖色条 */
.emergency-bar {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  max-width: 760px; margin: 0 auto;
}
.emergency-btn {
  display: flex; align-items: center; gap: 16px; flex: 1; min-width: 220px;
  background: #fff; color: #0f172a; text-decoration: none;
  padding: 18px 22px; border-radius: 12px;
  transition: all .25s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-left: 4px solid #f59e0b;
  text-align: left;
}
.emergency-btn:hover {
  transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-left-color: #f97316;
}
.emergency-btn .badge-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: #fff7ed; color: #c2410c; font-size: 20px; flex-shrink: 0;
  transition: background .2s;
}
.emergency-btn:hover .badge-icon { background: #ffedd5; }
.emergency-btn .btn-title { font-size: 15px; font-weight: 700; color: #0f172a; display: block; }
.emergency-btn .btn-sub { font-size: 12px; color: #64748b; display: block; margin-top: 2px; }

/* Hero 底部过渡 */
.hero-wave {
  height: 32px; background: #f8fafc;
  clip-path: polygon(0 0, 100% 100%, 100% 100%, 0 100%);
  margin-top: -1px; position: relative; z-index: 2;
}

/* ===== 数据/信任区域 ===== */
.trust-bar {
  background: #fff; padding: 28px 0 24px;
  border-bottom: 1px solid #e2e8f0;
}
.trust-items { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item {
  display: flex; align-items: center; gap: 12px; font-size: 14px; color: #64748b;
}
.trust-item .num {
  font-size: 28px; font-weight: 800; color: #1e3a5f; line-height: 1;
  letter-spacing: -0.5px;
}
.trust-item .num-accent { color: #3b82f6; }
.trust-item .label { line-height: 1.3; }
.trust-item .label small { display: block; font-size: 12px; color: #94a3b8; }

/* ===== 内容导航 ===== */
.section-nav { padding: 40px 0; }
.section-nav .section-title {
  font-size: 20px; font-weight: 700; color: #0f172a; margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.section-nav .section-desc { font-size: 14px; color: #64748b; margin-bottom: 24px; }

.nav-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.nav-card {
  display: flex; flex-direction: column; gap: 10px; padding: 20px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  text-decoration: none; color: #0f172a; transition: all .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.nav-card:hover {
  border-color: #bdd3eb; box-shadow: 0 4px 12px rgba(30,58,95,0.08);
  transform: translateY(-2px);
}
.nav-card .icon { font-size: 24px; line-height: 1; }
.nav-card .title { font-weight: 600; font-size: 15px; }
.nav-card .desc { font-size: 13px; color: #64748b; line-height: 1.5; }

/* ===== 最新内容 ===== */
.latest-section {
  background: #f1f5f9; padding: 40px 0;
}
.latest-section .section-title {
  font-size: 20px; font-weight: 700; color: #0f172a; margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.latest-section .section-desc { font-size: 14px; color: #64748b; margin-bottom: 24px; }
.article-grid { display: flex; flex-direction: column; gap: 2px; }
.article-card {
  display: flex; flex-direction: column;
  background: #fff; padding: 20px; border-radius: 12px;
  border: 1px solid #e2e8f0; text-decoration: none; color: #0f172a;
  transition: all .2s;
}
.article-card:hover {
  border-color: #bdd3eb; box-shadow: 0 4px 12px rgba(30,58,95,0.08);
  transform: translateY(-2px);
}
.article-card .tag {
  display: inline-block; font-size: 11px; font-weight: 600; color: var(--accent-dark);
  background: var(--accent-light); padding: 2px 8px; border-radius: 4px;
  margin-bottom: 8px; width: fit-content;
}
.article-card h3 { font-size: 15px; font-weight: 600; line-height: 1.5; margin-bottom: auto; }
.article-card .meta { font-size: 12px; color: #94a3b8; margin-top: 10px; display: flex; align-items: center; gap: 8px; }

.article-title-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 8px;
  text-decoration: none; color: #0f172a;
  transition: background .15s;
}
.article-title-item:hover { background: #f1f5f9; }
.article-title-item .ati-date {
  flex-shrink: 0; font-size: 12px; color: #94a3b8;
  font-variant-numeric: tabular-nums; min-width: 3.5em;
}
.article-title-item .ati-title { font-size: 14px; line-height: 1.5; }

/* ===== Footer ===== */
.site-footer {
  background: #0f172a; color: rgba(255,255,255,0.55); font-size: 13px;
}
.footer-main { padding: 36px 0 28px; }
.footer-main .container {
  display: grid; grid-template-columns: 2fr 1fr; gap: 40px;
}
.footer-brand .logo { margin-bottom: 10px; }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 360px; }

.hotline-box {
  background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.2);
  border-radius: 10px; padding: 16px 20px; margin-bottom: 16px;
}
.hotline-box .hotline-label { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.hotline-box .hotline-num { font-size: 22px; font-weight: 800; color: #f59e0b; letter-spacing: 1px; }
.hotline-box .hotline-time { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: #fff; }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.06); padding: 16px 0;
  font-size: 12px; text-align: center; color: rgba(255,255,255,0.35);
}

/* ===== Page Header (子页面通用) ===== */
.page-header {
  background: linear-gradient(160deg, #1e3a5f, #2d5a8e);
  color: #fff; padding: 36px 0; text-align: center;
}
.page-header h1 { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.page-header p { font-size: 15px; color: rgba(255,255,255,0.75); }

main.page-content { padding: 36px 0; min-height: 60vh; }

/* ===== Knowledge Base ==== */
.kb-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 36px 0; }
.kb-sidebar {
  background: #fff; border-radius: 12px; padding: 20px;
  border: 1px solid #e2e8f0; position: sticky; top: 88px; align-self: start;
}
.kb-sidebar h3 { font-size: 15px; margin-bottom: 12px; color: #0f172a; }
.cat-list { list-style: none; }
.cat-list li { margin-bottom: 4px; }
.cat-list a {
  color: #475569; text-decoration: none; font-size: 14px;
  display: block; padding: 7px 10px; border-radius: 8px; transition: all .15s;
}
.cat-list a:hover, .cat-list a.active { background: var(--accent-light); color: var(--accent-dark); font-weight: 500; }
.kb-main { min-height: 400px; }
.kb-search { display: flex; margin-bottom: 24px; }
.kb-search input {
  flex: 1; padding: 10px 16px; border: 2px solid #e2e8f0;
  border-radius: 10px 0 0 10px; font-size: 15px; outline: none;
}
.kb-search input:focus { border-color: var(--accent); }
.kb-search button {
  padding: 10px 20px; background: var(--accent); color: #fff; border: none;
  border-radius: 0 10px 10px 0; cursor: pointer; font-size: 14px; font-weight: 600;
}
.article-list { display: grid; gap: 12px; }
.article-item {
  background: #fff; padding: 18px 20px; border-radius: 10px;
  border: 1px solid #e2e8f0; transition: border-color .2s;
}
.article-item:hover { border-color: #bdd3eb; }
.article-item h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.article-item h3 a { color: #0f172a; text-decoration: none; }
.article-item h3 a:hover { color: var(--accent); }
.article-meta { font-size: 12px; color: #94a3b8; }
.article-tag {
  display: inline-block; background: var(--accent-light); color: var(--accent-dark);
  padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600;
  margin-right: 6px;
}

/* ===== Tools ===== */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 14px; padding: 24px 0; }
.tool-card {
  background: #fff; padding: 22px; border-radius: 12px; border: 1px solid #e2e8f0;
  text-decoration: none; color: #0f172a; transition: all .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.tool-card:hover { border-color: #bdd3eb; box-shadow: 0 4px 12px rgba(30,58,95,0.08); transform: translateY(-2px); }
.tool-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.tool-card .desc { font-size: 13px; color: #64748b; }

/* ===== Article Toolbar ===== */
.article-toolbar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.article-toolbar button {
  padding: 7px 16px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 8px; font-size: 13px; cursor: pointer; transition: all .15s;
  color: #475569;
}
.article-toolbar button:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent-dark); }
.article-summary {
  background: linear-gradient(135deg, var(--accent-light), #f0fdf4);
  border: 1px solid #fde68a; border-radius: 10px; padding: 16px 20px;
  margin-bottom: 24px; font-size: 14px; color: var(--accent-dark); line-height: 1.7;
}

/* ===== 通用组件 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px; border-radius: 8px; text-decoration: none;
  font-size: 14px; font-weight: 600; transition: all .2s; border: none; cursor: pointer;
}
.btn-primary { background: #1e3a5f; color: #fff; }
.btn-primary:hover { background: #2d5a8e; }
.btn-outline { background: transparent; color: #1e3a5f; border: 1.5px solid #1e3a5f; }
.btn-outline:hover { background: #eff6ff; }
.badge-legal {
  display: inline-block; background: var(--accent-light); color: var(--accent-dark);
  font-size: 12px; padding: 3px 10px; border-radius: 6px; font-weight: 600;
}

/* =============================================
   文章页布局 — Article Page Layout
   统一知识文章展示样式
   ============================================= */
.article-page { max-width: 780px; margin: 0 auto; padding: 30px 20px 80px; }

.article-page .breadcrumb {
  font-size: .85rem; color: var(--text-muted); margin-bottom: 20px;
}
.article-page .breadcrumb a { color: var(--text-muted); text-decoration: none; }
.article-page .breadcrumb a:hover { color: var(--accent); }

.article-page h1 { font-size: 1.9rem; line-height: 1.4; margin-bottom: 10px; color: var(--text-primary); }

.article-page .article-meta {
  font-size: .85rem; color: var(--text-muted); margin-bottom: 20px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.article-page .article-meta .tag {
  display: inline-block; background: var(--accent-light);
  color: var(--accent-dark); padding: 2px 10px; border-radius: 12px; font-size: .8rem; font-weight: 600;
}

/* 文章内信任栏 */
.article-trust-bar {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 20px; margin: 20px 0;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: .85rem;
}
.article-trust-bar .trust-item { display: flex; align-items: center; gap: 6px; }
.article-trust-bar .divider { color: var(--text-muted); }

/* 结论前置 */
.conclusion-box {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-left: 5px solid var(--accent);
  border-radius: 0 10px 10px 0; padding: 18px 22px; margin: 24px 0;
}
.conclusion-box .conclusion-label {
  font-size: .8rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent-dark); margin-bottom: 6px; font-weight: 700;
}
.conclusion-box .conclusion-text {
  font-size: 1.1rem; font-weight: 600; color: var(--text-primary); line-height: 1.6;
}

/* 文章正文 */
.article-body { line-height: 1.9; color: var(--text-secondary); font-size: 1rem; }
.article-body h2 {
  font-size: 1.3rem; margin: 32px 0 12px; padding-bottom: 6px;
  border-bottom: 2px solid var(--border); color: var(--text-primary);
}
.article-body h3 { font-size: 1.1rem; margin: 24px 0 8px; color: var(--text-primary); }
.article-body p { margin-bottom: 14px; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin-bottom: 14px; }
.article-body li { margin-bottom: 6px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; }
.article-body th, .article-body td {
  border: 1px solid var(--border); padding: 10px 14px; text-align: left;
}
.article-body th { background: var(--bg-card); font-weight: 600; }
.article-body blockquote {
  border-left: 3px solid var(--accent); margin: 16px 0;
  padding: 10px 18px; background: var(--bg-card);
  border-radius: 0 6px 6px 0; color: var(--text-secondary);
}
.article-body .highlight-box {
  background: var(--bg-warn); border-left: 4px solid var(--warn);
  padding: 14px 18px; margin: 18px 0; border-radius: 0 6px 6px 0;
}

/* 行动清单 */
.article-body .action-checklist {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 24px; margin: 32px 0;
}
.article-body .action-checklist h2 { border-bottom: none; margin-top: 0; font-size: 1.2rem; }
.article-body .action-checklist ol { padding-left: 1.2em; }
.article-body .action-checklist li {
  padding: 8px 0; border-bottom: 1px dashed var(--border);
}
.article-body .action-checklist li:last-child { border-bottom: none; }
.article-body .action-checklist .step-label {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 1px 8px; border-radius: 10px; font-size: .75rem; margin-right: 6px; font-weight: 600;
}

/* 参考来源 */
.references {
  margin: 32px 0; padding: 18px 22px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; font-size: .88rem;
}
.references h2 { font-size: 1.05rem; margin-top: 0; color: var(--text-primary); }
.references ul { padding-left: 1.2em; margin-bottom: 0; }
.references li { margin-bottom: 4px; color: var(--text-muted); }

/* 分享引导 */
.share-cta {
  text-align: center; margin: 36px 0 20px; padding: 28px 20px;
  background: linear-gradient(135deg, #fef9f0, #fff5e6); border-radius: 12px;
}
.share-cta p { font-size: 1.05rem; margin-bottom: 16px; color: var(--text-primary); }
.share-cta .share-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.share-cta .share-btn {
  display: inline-block; padding: 10px 20px; border-radius: 6px;
  text-decoration: none; font-size: .9rem; font-weight: 500; transition: opacity .2s;
}
.share-cta .share-btn:hover { opacity: .85; }
.share-cta .share-wechat { background: #07c160; color: #fff; }
.share-cta .share-copy { background: var(--accent); color: #fff; cursor: pointer; border: none; font-family: inherit; }

/* 下一篇 */
.next-article {
  margin: 30px 0; padding: 18px 22px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; display: flex; align-items: center; gap: 12px;
}
.next-article .next-label { font-size: .8rem; color: var(--text-muted); }
.next-article a { color: var(--accent); text-decoration: none; font-weight: 500; }
.next-article a:hover { text-decoration: underline; }

/* 文章功能按钮 */
.article-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; justify-content: center; }
.article-actions .action-btn {
  padding: 8px 18px; border: 2px solid var(--accent);
  border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600;
  background: #fff; color: var(--accent); transition: all .2s;
}
.article-actions .action-btn:hover { background: var(--accent); color: #fff; }

/* =============================================
   法律页面布局 — Legal Page (about/privacy/disclaimer)
   ============================================= */
.legal-page { max-width: 780px; margin: 0 auto; padding: 40px 20px 80px; }
.legal-page h1 { font-size: 1.8rem; margin-bottom: 8px; color: var(--text-primary); }
.legal-page .update-date { color: var(--text-muted); font-size: .85rem; margin-bottom: 32px; }
.legal-page h2 {
  font-size: 1.15rem; margin: 28px 0 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border); color: var(--text-primary);
}
.legal-page p, .legal-page li { line-height: 1.85; color: var(--text-secondary); font-size: .95rem; }
.legal-page ul { padding-left: 1.2em; }
.legal-page li { margin-bottom: 6px; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .9rem; }
.legal-page th, .legal-page td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.legal-page th { background: var(--bg-card); font-weight: 600; }
.legal-page .highlight-box {
  background: var(--bg-warn); border-left: 4px solid var(--warn);
  padding: 14px 18px; margin: 20px 0; border-radius: 0 6px 6px 0; font-weight: 500;
}

/* 关于页专用 */
.about-page { max-width: 780px; margin: 0 auto; padding: 40px 20px 80px; }
.about-page h1 { font-size: 1.8rem; margin-bottom: 8px; }
.about-page .subtitle { color: var(--text-muted); font-size: 1rem; margin-bottom: 32px; }
.about-page h2 {
  font-size: 1.15rem; margin: 32px 0 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.about-page p, .about-page li { line-height: 1.85; color: var(--text-secondary); font-size: .95rem; }
.about-page ul { padding-left: 1.2em; }
.about-page li { margin-bottom: 6px; }
.about-page .mission-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 24px; margin: 24px 0; text-align: center;
}
.about-page .mission-box p { font-size: 1.1rem; font-weight: 500; color: var(--text-primary); margin: 0; }
.about-page .trust-list { list-style: none; padding: 0; }
.about-page .trust-list li {
  padding: 8px 0 8px 28px; position: relative;
}
.about-page .trust-list li::before {
  content: '✓'; position: absolute; left: 0; color: #22c55e; font-weight: bold;
}

/* =============================================
   紧急指南页 — Emergency Guide (beicitui/gongshang)
   ============================================= */
.emergency-guide { max-width: 700px; margin: 0 auto; padding: 20px 16px 60px; }

.emergency-guide .emergency-banner {
  background: linear-gradient(135deg, #1e3a5f, #2d5a8e); color: #fff;
  border-radius: 10px; padding: 24px; margin-bottom: 24px; text-align: center;
}
.emergency-guide .emergency-banner .icon { font-size: 2.5rem; margin-bottom: 8px; }
.emergency-guide .emergency-banner h1 { font-size: 1.6rem; margin: 0 0 6px; }
.emergency-guide .emergency-banner .sub { font-size: .95rem; opacity: .9; }

.emergency-guide .screen {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 22px; margin-bottom: 20px;
}
.emergency-guide .screen h2 {
  font-size: 1.2rem; margin: 0 0 14px; display: flex; align-items: center; gap: 8px;
}
.emergency-guide .screen h2 .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; background: var(--accent); color: #fff;
  border-radius: 50%; font-size: .85rem; font-weight: 700;
}

.emergency-guide .do-list { list-style: none; padding: 0; }
.emergency-guide .do-list li {
  padding: 10px 0 10px 28px; position: relative;
  border-bottom: 1px solid var(--border); line-height: 1.6;
}
.emergency-guide .do-list li:last-child { border-bottom: none; }
.emergency-guide .do-list li::before { content: '✓'; position: absolute; left: 0; color: #22c55e; font-weight: bold; }

.emergency-guide .dont-list { list-style: none; padding: 0; }
.emergency-guide .dont-list li {
  padding: 10px 0 10px 28px; position: relative;
  border-bottom: 1px solid var(--border); line-height: 1.6;
}
.emergency-guide .dont-list li:last-child { border-bottom: none; }
.emergency-guide .dont-list li::before { content: '✕'; position: absolute; left: 0; color: #ef4444; font-weight: bold; }

.emergency-guide .timeline { position: relative; padding-left: 24px; }
.emergency-guide .timeline::before {
  content: ''; position: absolute; left: 8px; top: 4px; bottom: 4px;
  width: 2px; background: var(--border);
}
.emergency-guide .timeline .step { position: relative; margin-bottom: 16px; }
.emergency-guide .timeline .step::before {
  content: ''; position: absolute; left: -20px; top: 6px;
  width: 10px; height: 10px; background: var(--accent); border-radius: 50%;
}
.emergency-guide .timeline .step .step-title { font-weight: 600; margin-bottom: 4px; }
.emergency-guide .timeline .step .step-desc {
  font-size: .9rem; color: var(--text-secondary);
}

.emergency-guide .warning-box {
  background: var(--bg-warn); border-left: 4px solid var(--warn);
  padding: 14px 18px; margin: 18px 0; border-radius: 0 6px 6px 0; font-size: .95rem;
}
.emergency-guide .next-steps { text-align: center; margin-top: 24px; }
.emergency-guide .next-steps .btn {
  display: inline-block; padding: 12px 28px; background: var(--accent);
  color: #fff; border-radius: 8px; text-decoration: none; font-weight: 600;
  margin: 6px; transition: opacity .2s;
}
.emergency-guide .next-steps .btn:hover { opacity: .85; }
.emergency-guide .next-steps .btn-outline {
  background: transparent; border: 2px solid var(--accent); color: var(--accent);
}

.emergency-guide .calc-quick {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 18px; margin-top: 4px;
}
.emergency-guide .calc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.emergency-guide .calc-row:last-child { border-bottom: none; }
.emergency-guide .calc-row .label { font-size: .95rem; }
.emergency-guide .calc-row .value {
  font-size: 1.1rem; font-weight: 700; color: var(--accent); white-space: nowrap;
}

/* =============================================
   紧急入口页 — Emergency Index
   ============================================= */
.emergency-hero-section {
  background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
  text-align: center; padding: 50px 0 30px;
}
.emergency-hero-section h1 { font-size: 30px; color: var(--accent-dark); margin-bottom: 8px; }
.emergency-hero-section p { color: var(--text-secondary); font-size: 16px; }
.emergency-alert {
  background: var(--bg-warn); border: 2px solid #fef3c7;
  border-radius: 10px; padding: 20px; margin: 20px 0; text-align: center;
}
.emergency-alert strong { color: var(--accent-dark); font-size: 18px; }
.steps-section { padding: 30px 0; }
.step-card {
  background: #fff; border-radius: 10px; padding: 24px; margin-bottom: 16px;
  border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.step-card .step-num {
  display: inline-block; width: 32px; height: 32px; line-height: 32px; text-align: center;
  background: var(--accent); color: #fff; border-radius: 50%; font-weight: 700; margin-right: 10px;
}
.step-card h3 { display: inline; font-size: 18px; }
.step-card ul { margin-top: 12px; padding-left: 20px; }
.step-card li { margin-bottom: 6px; font-size: 15px; color: var(--text-secondary); }
.step-card .important { color: var(--accent-dark); font-weight: 600; }
.resources-section { padding: 30px 0; }
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.resource-item {
  background: #fff; padding: 16px; border-radius: 10px; border: 1px solid var(--border);
}
.resource-item h4 { font-size: 15px; margin-bottom: 4px; }
.resource-item p { font-size: 13px; color: var(--text-secondary); }

/* =============================================
   工具页 — Tools Section
   ============================================= */
.tools-header { text-align: center; padding: 40px 0 20px; }
.tools-header h1 { font-size: 28px; margin-bottom: 8px; }
.tools-header p { color: var(--text-secondary); }
.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 0 0 50px; }
.tool-card {
  background: #fff; border-radius: 10px; padding: 24px;
  border: 1px solid var(--border); box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  text-decoration: none; color: var(--text-primary);
  transition: all .2s; display: block;
}
.tool-card:hover {
  border-color: #bdd3eb; box-shadow: 0 4px 12px rgba(30,58,95,0.08); transform: translateY(-2px);
}
.tool-card .tool-icon { font-size: 32px; margin-bottom: 10px; line-height: 1; }
.tool-card h3 { font-size: 18px; margin-bottom: 8px; }
.tool-card p { color: var(--text-secondary); font-size: 14px; margin-bottom: 14px; line-height: 1.5; }
.tool-card .tool-btn {
  display: inline-block; padding: 8px 20px; background: var(--accent);
  color: #fff; text-decoration: none; border-radius: 6px; font-size: 14px; font-weight: 600;
}
.tool-card .tool-btn:hover { opacity: .85; }
.tool-card.disabled { opacity: 0.5; pointer-events: none; }
.tool-card.disabled .tool-btn { background: #94a3b8; }

/* =============================================
   工具计算器 — Calculator Page
   ============================================= */
.calc-wrap {
  max-width: 600px; margin: 30px auto; background: #fff;
  padding: 30px; border-radius: 10px; border: 1px solid var(--border);
}
.calc-wrap h1 { font-size: 22px; margin-bottom: 20px; text-align: center; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.form-group input, .form-group select {
  width: 100%; padding: 10px; border: 2px solid var(--border);
  border-radius: 8px; font-size: 15px; outline: none;
}
.form-group input:focus, .form-group select:focus { border-color: var(--accent); }
.form-group .hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.calc-btn {
  width: 100%; padding: 14px; background: var(--accent); color: #fff;
  border: none; border-radius: 8px; font-size: 17px; cursor: pointer; font-weight: 600;
  transition: opacity .2s;
}
.calc-btn:hover { opacity: .85; }
.result-box {
  display: none; margin-top: 20px; padding: 20px;
  background: var(--bg-warn); border-radius: 10px; border: 2px solid #fde68a;
}
.result-box h3 { font-size: 20px; color: var(--accent); margin-bottom: 8px; }
.result-box .amount { font-size: 36px; font-weight: 700; color: var(--accent-dark); }
.result-box .detail { font-size: 13px; color: var(--text-secondary); margin-top: 8px; line-height: 1.8; }
.result-box .law-ref {
  font-size: 12px; color: var(--text-muted); margin-top: 12px;
  padding-top: 12px; border-top: 1px solid #fde68a;
}

/* =============================================
   404 错误页
   ============================================= */
.error-page { max-width: 560px; margin: 0 auto; padding: 80px 20px; text-align: center; }
.error-page .code {
  font-size: 5rem; font-weight: 800; color: var(--accent);
  line-height: 1; margin-bottom: 10px;
}
.error-page h1 { font-size: 1.4rem; margin-bottom: 10px; }
.error-page p { color: var(--text-secondary); margin-bottom: 28px; line-height: 1.7; }
.error-page .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.error-page .btn {
  display: inline-block; padding: 12px 24px; border-radius: 8px;
  text-decoration: none; font-weight: 600; transition: all .2s;
}
.error-page .btn-primary { background: var(--accent); color: #fff; }
.error-page .btn-primary:hover { opacity: .85; }
.error-page .btn-outline {
  border: 2px solid var(--accent); color: var(--accent);
}
.error-page .btn-outline:hover { background: var(--accent-light); }
.error-page .search-box { margin: 24px 0; }
.error-page .search-box input {
  width: 100%; max-width: 360px; padding: 10px 16px;
  border: 2px solid var(--border); border-radius: 8px;
  font-size: .95rem; font-family: inherit; outline: none;
}
.error-page .search-box input:focus { border-color: var(--accent); }

/* =============================================
   响应式 — 统一补充
   ============================================= */
@media(max-width:900px) {
  .nav-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main .container { grid-template-columns: 1fr; gap: 24px; }
}
@media(max-width:768px) {
  .tools-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .kb-layout { grid-template-columns: 1fr; }
  .kb-sidebar { position: static; }
  .article-page { padding: 20px 16px 60px; }
  .legal-page { padding: 20px 16px 60px; }
}
@media(max-width:640px) {
  .hero h1 { font-size: 26px; }
  .hero { padding: 40px 0 36px; }
  .hero .subtitle { font-size: 16px; margin-bottom: 28px; }
  .emergency-btn { min-width: 100%; padding: 16px 18px; }
  .trust-items { gap: 20px; flex-direction: column; align-items: center; }
  .nav-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .site-header .container { flex-wrap: wrap; height: auto; padding: 10px 16px; }
  .main-nav { gap: 2px; flex-wrap: wrap; }
  .main-nav .nav-link { font-size: 13px; padding: 6px 10px; }
  .kb-layout { grid-template-columns: 1fr; }
  .kb-sidebar { position: static; }
  .article-page h1 { font-size: 1.5rem; }
  .article-trust-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .article-trust-bar .divider { display: none; }
  .emergency-guide { padding: 16px 12px 40px; }
  .emergency-guide .emergency-banner h1 { font-size: 1.3rem; }
}
