:root {
  --bg: #080c14;
  --card: #111827;
  --card-2: #0d1420;
  --border: #1f2937;
  --gold: #c9a96e;
  --gold-soft: rgba(201, 169, 110, 0.14);
  --blue: #4a9eff;
  --blue-soft: rgba(74, 158, 255, 0.12);
  --green: #34d399;
  --red: #f87171;
  --orange: #fbbf24;
  --purple: #a78bfa;
  --text: #e5e7eb;
  --dim: #9ca3af;
  --dimmer: #6b7280;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", -apple-system, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== 顶部导航 ===== */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(8, 12, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}
.brand span { color: var(--gold); font-weight: 500; }
.brand:hover { text-decoration: none; }

.nav-links { display: flex; flex-wrap: wrap; gap: 4px; }
.nav-links a {
  color: var(--dim);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.nav-links a.active { color: var(--gold); background: var(--gold-soft); font-weight: 600; }

/* ===== 首页 Hero ===== */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(74, 158, 255, 0.10), transparent),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(201, 169, 110, 0.08), transparent);
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: 999px;
  padding: 4px 18px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(120deg, #c9a96e 0%, #f0dcb0 35%, #4a9eff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.sub {
  margin-top: 18px;
  color: var(--dim);
  font-size: 1.1rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero .meta {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--dimmer);
}
.hero .meta span {
  border: 1px solid var(--border);
  background: var(--card-2);
  border-radius: 8px;
  padding: 5px 14px;
}

/* ===== 通用容器 ===== */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.section-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 56px 0 24px;
}
.section-title h2 { font-size: 1.5rem; font-weight: 700; }
.section-title .bar {
  width: 5px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold), var(--blue));
  align-self: center;
}
.section-title small { color: var(--dimmer); font-size: 0.9rem; }

/* ===== 板块卡片网格 ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card-link { color: inherit; display: block; }
.card-link:hover { text-decoration: none; transform: translateY(-4px); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.card:hover {
  border-color: rgba(201, 169, 110, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 28px; height: 28px; fill: currentColor; }

.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--dim); font-size: 0.95rem; }
.card .go {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--gold);
  font-weight: 600;
}
.card .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.card .tags i {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--dim);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
}

.theme-gold .icon { background: var(--gold-soft); color: var(--gold); }
.theme-blue .icon { background: var(--blue-soft); color: var(--blue); }
.theme-green .icon { background: rgba(52, 211, 153, 0.12); color: var(--green); }
.theme-red .icon { background: rgba(248, 113, 113, 0.12); color: var(--red); }
.theme-purple .icon { background: rgba(167, 139, 250, 0.12); color: var(--purple); }

/* ===== 数字速查 ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  text-align: center;
}
.stat .num {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat .num em { font-style: normal; color: var(--blue); }
.stat .label { font-size: 0.82rem; color: var(--dim); margin-top: 4px; }

/* ===== 内容页头 ===== */
.page-head {
  padding: 48px 0 8px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.55), transparent);
}
.page-head .crumbs { font-size: 0.85rem; color: var(--dimmer); margin-bottom: 10px; }
.page-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 16px;
}
.page-head h1 .icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.page-head h1 .icon svg { width: 30px; height: 30px; fill: currentColor; }
.page-head p.lead { color: var(--dim); margin: 12px 0 24px; max-width: 760px; }

/* ===== 内容卡片 ===== */
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}
.panel > h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel > h2::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--gold);
}
.panel > h2.blue::before { background: var(--blue); }
.panel > h2.green::before { background: var(--green); }

.panel p { color: var(--text); margin-bottom: 10px; }
.panel p.dim, .panel li span.dim { color: var(--dim); }

/* 列表 */
ul.clean { list-style: none; }
ul.clean li {
  padding: 10px 0 10px 26px;
  position: relative;
  border-bottom: 1px dashed rgba(31, 41, 55, 0.8);
}
ul.clean li:last-child { border-bottom: none; }
ul.clean li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--gold);
}
ul.clean.blue li::before { background: var(--blue); }
ul.clean li b { color: var(--text); }

/* 两栏 */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }

/* ===== 表格 ===== */
.tbl-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--card-2);
}
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th {
  background: rgba(31, 41, 55, 0.6);
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(74, 158, 255, 0.05); }
td.num, th.num { font-variant-numeric: tabular-nums; }

.badge {
  display: inline-block;
  font-size: 0.78rem;
  border-radius: 6px;
  padding: 2px 10px;
  font-weight: 600;
  white-space: nowrap;
}
.b-green { color: var(--green); background: rgba(52, 211, 153, 0.12); }
.b-orange { color: var(--orange); background: rgba(251, 191, 36, 0.12); }
.b-red { color: var(--red); background: rgba(248, 113, 113, 0.12); }
.b-blue { color: var(--blue); background: var(--blue-soft); }
.b-gold { color: var(--gold); background: var(--gold-soft); }

/* ===== 时间线 ===== */
.timeline { list-style: none; margin-top: 6px; }
.timeline li {
  position: relative;
  padding: 0 0 26px 34px;
  border-left: 2px solid var(--border);
  margin-left: 10px;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 4px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--gold);
}
.timeline li h4 { font-size: 1rem; margin-bottom: 4px; }
.timeline li p { color: var(--dim); font-size: 0.9rem; margin: 0; }

/* ===== 提示框 ===== */
.note {
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.92rem;
  margin: 18px 0;
  border: 1px solid;
}
.note.tip { background: rgba(52, 211, 153, 0.07); border-color: rgba(52, 211, 153, 0.35); }
.note.warn { background: rgba(248, 113, 113, 0.07); border-color: rgba(248, 113, 113, 0.35); }
.note.info { background: var(--blue-soft); border-color: rgba(74, 158, 255, 0.35); }
.note b { display: block; margin-bottom: 6px; }

/* 空记录表 */
table.empty td { color: var(--dimmer); }

/* ===== 页脚 ===== */
footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  padding: 32px 24px 40px;
  text-align: center;
  color: var(--dimmer);
  font-size: 0.85rem;
}
footer .disc {
  max-width: 720px;
  margin: 0 auto 14px;
  color: var(--dim);
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 20px;
}

@media (max-width: 640px) {
  .topnav { padding: 12px 16px; }
  .hero { padding: 56px 16px 40px; }
  .panel { padding: 20px; }
  th, td { padding: 9px 10px; font-size: 0.85rem; }
}
