/* ========== 基础重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f7f4ec;
  --card: #ffffff;
  --ink: #2b2a26;
  --muted: #6f6b60;
  --line: #e4dfd2;
  --accent: #3d6b4f;
  --accent-soft: #e7efe9;
  --gold: #b58834;
  --gold-soft: #f6efe0;
  --blue: #3f5f8a;
  --blue-soft: #e8eef6;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
}

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

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== 顶部导航 ========== */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.logo:hover { text-decoration: none; }

.logo-dice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
}

.main-nav { display: flex; gap: 6px; }

.main-nav a {
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 15px;
}
.main-nav a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.main-nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* ========== 首屏 ========== */
.hero {
  text-align: center;
  padding: 72px 20px 56px;
  background:
    radial-gradient(circle at 15% 20%, rgba(61,107,79,.08), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(181,136,52,.10), transparent 45%);
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-size: 40px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.hero .subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 26px;
}

.hero .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
}
.tag.green { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.tag.gold { background: var(--gold-soft); color: var(--gold); border-color: transparent; }
.tag.blue { background: var(--blue-soft); color: var(--blue); border-color: transparent; }

/* ========== 通用区块 ========== */
.section { padding: 52px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.section .section-desc {
  color: var(--muted);
  margin-bottom: 28px;
}

/* 页面标题（内页） */
.page-head {
  padding: 44px 0 8px;
}
.page-head h1 { font-size: 30px; margin-bottom: 8px; }
.page-head p { color: var(--muted); }

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card p { color: var(--muted); font-size: 14.5px; }

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 17px;
  background: var(--accent-soft);
  flex-shrink: 0;
}

/* ========== 步骤列表 ========== */
.steps { list-style: none; counter-reset: step; }

.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 0 14px 56px;
  border-bottom: 1px dashed var(--line);
}
.steps li:last-child { border-bottom: none; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 8px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.steps li strong { display: block; margin-bottom: 2px; }
.steps li span { color: var(--muted); font-size: 14.5px; }

/* ========== 表格 ========== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 560px;
}

th, td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background: #faf8f2;
  font-weight: 600;
  white-space: nowrap;
}

tr:last-child td { border-bottom: none; }

td.center, th.center { text-align: center; }

/* ========== 徽章 ========== */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}
.badge.gold { background: var(--gold-soft); color: var(--gold); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }

/* ========== 时间线 ========== */
.timeline { list-style: none; position: relative; padding-left: 26px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.timeline li { position: relative; padding: 0 0 26px; }
.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}

.timeline .time {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 2px;
}

.timeline h3 { font-size: 16px; margin-bottom: 4px; }
.timeline p { color: var(--muted); font-size: 14.5px; }

/* ========== 提示框 ========== */
.notice {
  background: var(--gold-soft);
  border: 1px solid #eaddbe;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14.5px;
  color: #7a6230;
}

/* ========== 关于页 ========== */
.about-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 18px;
}
.about-block h2 { font-size: 20px; margin-bottom: 10px; }
.about-block p { color: var(--muted); margin-bottom: 8px; }
.about-block p:last-child { margin-bottom: 0; }

.contact-list { list-style: none; }
.contact-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list strong { color: var(--ink); margin-right: 8px; }

/* ========== 页脚 ========== */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 28px 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* ========== 响应式 ========== */
@media (max-width: 760px) {
  .hero h1 { font-size: 30px; }
  .grid.cols-3 { grid-template-columns: 1fr; }
  .grid.cols-2 { grid-template-columns: 1fr; }
  .site-header .container { flex-direction: column; height: auto; padding: 10px 20px; gap: 6px; }
  .main-nav { flex-wrap: wrap; justify-content: center; }
}
