/* =========================================================
   星露谷下载站 - 全局样式
   主题：温暖农场 / 像素木质 / 清爽易读
   ========================================================= */

:root {
  --bg: #fbf6e9;
  --bg-2: #f4ead2;
  --panel: #fffdf6;
  --panel-2: #fff8e7;
  --ink: #2b2a24;
  --ink-soft: #5d5a4e;
  --ink-faint: #857f6d;
  --green: #4e8c3f;
  --green-deep: #2f5d25;
  --green-soft: #e4efd9;
  --green-line: #c6dbaf;
  --gold: #e7b84b;
  --gold-deep: #b07d16;
  --gold-soft: #fbebc4;
  --wood: #8a5a33;
  --wood-deep: #5e3c21;
  --blue: #3d7ea6;
  --blue-soft: #e0eef5;
  --pink: #d2708c;
  --pink-soft: #fbe4ea;
  --purple: #7c6ba8;
  --purple-soft: #ece7f7;
  --line: #2b2a24;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 6px 0 rgba(43, 42, 36, 0.12);
  --shadow-hard: 0 8px 0 rgba(43, 42, 36, 0.16);
  --max: 1160px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "JetBrains Mono", Menlo,
    Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(43, 42, 36, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--green-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6rem;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -0.01em;
}

strong {
  font-weight: 800;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 233, 0.92);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 2px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 70px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.12rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: var(--green);
  color: #fff;
  border: 2px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 3px 0 var(--line);
  line-height: 1;
}

.logo small {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--green-deep);
  text-transform: uppercase;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--ink);
  border: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.nav-links a:hover {
  text-decoration: none;
  background: var(--gold-soft);
  border-color: var(--line);
}

.nav-links a.active {
  background: var(--green-soft);
  border-color: var(--line);
  color: var(--green-deep);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #fff !important;
  border: 2px solid var(--line) !important;
  box-shadow: 0 3px 0 var(--line);
  padding: 9px 16px !important;
}

.nav-cta:hover {
  text-decoration: none;
  background: var(--green-deep) !important;
  transform: translateY(1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 42px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 3px 0 var(--line);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------------- 通用区块 ---------------- */
.section {
  padding: 68px 0;
}

.section-sm {
  padding: 44px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  padding: 4px 10px;
  border-radius: 999px;
}

.eyebrow.gold {
  color: var(--gold-deep);
  background: var(--gold-soft);
  border-color: #edd79c;
}

.eyebrow.blue {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #bcd8e7;
}

.section-title {
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  margin: 12px 0 10px;
}

.section-desc {
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 66ch;
}

.gold-underline {
  position: relative;
  z-index: 1;
}

.gold-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.32em;
  background: var(--gold);
  opacity: 0.55;
  z-index: -1;
  border-radius: 3px;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 800;
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--line);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s;
  text-align: center;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--line);
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--line);
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: #458036;
}

.btn-gold {
  background: var(--gold);
  color: #422f08;
}

.btn-gold:hover {
  background: #dfae3c;
}

.btn-ghost {
  background: transparent;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.86rem;
  border-radius: 10px;
  box-shadow: 0 3px 0 var(--line);
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 70px;
  background: linear-gradient(180deg, #fdf9ee 0%, #f7efda 100%);
  border-bottom: 2px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -140px;
  background: radial-gradient(circle, rgba(231, 184, 75, 0.32), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px 5px 6px;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 3px 0 rgba(43, 42, 36, 0.14);
  margin-bottom: 20px;
}

.hero-badge .dot {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.8rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

.hero h1 span {
  color: var(--green-deep);
}

.hero-sub {
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 40em;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta i {
  font-style: normal;
  color: var(--green);
}

.hero-figure {
  position: relative;
}

.hero-frame {
  border: 3px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--green-soft);
  box-shadow: 10px 10px 0 var(--green-deep);
  aspect-ratio: 16 / 10;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 4px 0 rgba(43, 42, 36, 0.2);
  white-space: nowrap;
}

.hero-chip.one {
  top: -14px;
  left: -14px;
  background: var(--gold-soft);
}

.hero-chip.two {
  bottom: -16px;
  right: -10px;
  background: var(--green-soft);
}

.hero-chip .pixel {
  width: 9px;
  height: 9px;
  background: var(--green);
  box-shadow: 0 0 0 2px var(--line);
}

/* ---------------- 信任条 ---------------- */
.trust-bar {
  border-bottom: 2px solid var(--line);
  background: var(--panel);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  list-style: none;
  margin: 0 auto;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  border-right: 2px dashed #e3d9bd;
  font-weight: 700;
  font-size: 0.92rem;
}

.trust-list li:last-child {
  border-right: 0;
}

.trust-list .ti {
  font-size: 1.35rem;
}

.trust-list small {
  display: block;
  font-weight: 600;
  color: var(--ink-faint);
  font-size: 0.76rem;
}

/* ---------------- 数据统计 ---------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  box-shadow: 0 4px 0 rgba(43, 42, 36, 0.12);
}

.stat b {
  display: block;
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat span {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 700;
}

/* ---------------- 平台 ---------------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.platform {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 0 rgba(43, 42, 36, 0.1);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.platform:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(43, 42, 36, 0.16);
  background: var(--panel-2);
}

.platform .pi {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--green-soft);
  border: 2px solid var(--line);
  font-size: 1.15rem;
}

.platform b {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
}

.platform span {
  font-size: 0.76rem;
  color: var(--ink-faint);
}

/* ---------------- 卡片网格 ---------------- */
.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 rgba(43, 42, 36, 0.12);
  padding: 24px;
}

.card-link {
  display: block;
  transition: transform 0.15s, box-shadow 0.15s;
}

.card-link:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(43, 42, 36, 0.16);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  border-radius: 12px;
  background: var(--green-soft);
  border: 2px solid var(--line);
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.14rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-bottom: 14px;
}

.card .more {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--green-deep);
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid #e8d193;
  color: var(--gold-deep);
}

.tag.green {
  background: var(--green-soft);
  border-color: var(--green-line);
  color: var(--green-deep);
}

.tag.blue {
  background: var(--blue-soft);
  border-color: #bcd8e7;
  color: var(--blue);
}

.tag.pink {
  background: var(--pink-soft);
  border-color: #efc3cf;
  color: #a84461;
}

.tag.purple {
  background: var(--purple-soft);
  border-color: #d3c9ec;
  color: var(--purple);
}

/* ---------------- 下载卡 ---------------- */
.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  overflow: hidden;
}

.dl-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--green);
}

.dl-card.gold::before {
  background: var(--gold);
}

.dl-card.blue::before {
  background: var(--blue);
}

.dl-card.purple::before {
  background: var(--purple);
}

.dl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dl-top .os {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1.05rem;
}

.dl-top .os i {
  font-style: normal;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 9px;
  background: var(--green-soft);
  font-size: 1rem;
}

.dl-ver {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  color: var(--green-deep);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.dl-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.dl-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed #e6dcc2;
}

.dl-list li:last-child {
  border-bottom: 0;
}

.dl-list b {
  color: var(--ink);
}

.dl-card .btn {
  margin-top: auto;
}

/* ---------------- 步骤 ---------------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
}

.step {
  position: relative;
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: 0 4px 0 rgba(43, 42, 36, 0.1);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.95rem;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  border: 2px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--line);
}

.step h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------------- 表格 ---------------- */
.table-wrap {
  overflow-x: auto;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  box-shadow: 0 4px 0 rgba(43, 42, 36, 0.1);
  margin: 0 0 1.4rem;
}

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

thead th {
  background: var(--green-soft);
  text-align: left;
  font-weight: 800;
  padding: 12px 14px;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
  color: var(--green-deep);
}

tbody td,
tbody th {
  padding: 10px 14px;
  border-bottom: 1px solid #ece3ca;
  text-align: left;
  vertical-align: top;
}

tbody th {
  font-weight: 800;
}

tbody tr:nth-child(even) {
  background: #fdf9ee;
}

tbody tr:last-child td,
tbody tr:last-child th {
  border-bottom: 0;
}

tbody tr:hover {
  background: var(--gold-soft);
}

.table-note {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: -0.6rem;
}

/* ---------------- 提示条 ---------------- */
.notice {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: var(--gold-soft);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 0 rgba(43, 42, 36, 0.1);
  font-size: 0.92rem;
  margin: 1.2rem 0;
}

.notice .ni {
  font-size: 1.3rem;
  line-height: 1.4;
}

.notice p:last-child {
  margin-bottom: 0;
}

.notice.blue {
  background: var(--blue-soft);
}

.notice.green {
  background: var(--green-soft);
}

/* ---------------- FAQ ---------------- */
.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 0 rgba(43, 42, 36, 0.1);
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 50px 17px 20px;
  font-weight: 800;
  position: relative;
  font-size: 0.98rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  border: 2px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
  background: var(--gold);
}

.faq details[open] summary {
  border-bottom: 1px dashed #e0d5b8;
}

.faq .a {
  padding: 16px 20px;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.faq .a p:last-child {
  margin-bottom: 0;
}

/* ---------------- 文章排版 ---------------- */
.page-hero {
  background: linear-gradient(180deg, #fdf9ee, #f5eccf);
  border-bottom: 2px solid var(--line);
  padding: 46px 0 42px;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin: 12px 0 12px;
  max-width: 20em;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
}

.page-hero-media {
  margin: 0;
}

.page-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--green-deep);
}

@media (max-width: 980px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .page-hero-media {
    max-width: 520px;
  }
}

.page-hero p {
  color: var(--ink-soft);
  max-width: 68ch;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb span::after {
  content: "/";
  margin-left: 6px;
  color: #c2b99f;
}

.breadcrumb span:last-child::after {
  content: "";
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-family: var(--mono);
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 44px;
  align-items: start;
}

.prose {
  max-width: 780px;
}

.prose h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 2.4rem 0 0.9rem;
  padding-top: 0.4rem;
  scroll-margin-top: 90px;
}

.prose h2::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border: 2px solid var(--line);
  margin-right: 10px;
  vertical-align: 2px;
}

.prose h3 {
  font-size: 1.16rem;
  margin: 1.8rem 0 0.6rem;
  scroll-margin-top: 90px;
}

.prose p {
  color: #3d3a30;
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  color: #3d3a30;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose blockquote {
  margin: 1.4rem 0;
  padding: 14px 20px;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
  border-radius: 0 10px 10px 0;
  color: var(--ink-soft);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose figure {
  margin: 1.6rem 0;
}

.prose figure img {
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
}

.prose figcaption {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 8px;
  text-align: center;
}

.toc {
  position: sticky;
  top: 92px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  box-shadow: 0 4px 0 rgba(43, 42, 36, 0.1);
}

.toc b {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
  font-family: var(--mono);
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  margin-bottom: 2px;
}

.toc a {
  display: block;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--ink-soft);
  font-weight: 600;
}

.toc a:hover {
  background: var(--green-soft);
  color: var(--green-deep);
  text-decoration: none;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-faint);
  margin-right: 8px;
}

.toc .toc-cta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e0d5b8;
}

.toc .toc-cta .btn {
  font-size: 0.82rem;
  padding: 9px 12px;
}

/* ---------------- 相关文章 ---------------- */
.related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px dashed #ddd2b4;
}

.related h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-grid a {
  display: block;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: 0 3px 0 rgba(43, 42, 36, 0.1);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink);
}

.related-grid a small {
  display: block;
  font-weight: 600;
  color: var(--ink-faint);
  font-size: 0.78rem;
  margin-top: 4px;
}

.related-grid a:hover {
  text-decoration: none;
  background: var(--gold-soft);
}

/* ---------------- CTA 区块 ---------------- */
.cta-band {
  background: var(--green-deep);
  color: #f6f1dd;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  padding: 52px 0;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta-band p {
  color: #d9e4c9;
  max-width: 60ch;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: #23371d;
  color: #d8e2c8;
  padding: 54px 0 26px;
  border-top: 2px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 34px;
}

.site-footer b {
  color: #fff;
  display: block;
  margin-bottom: 12px;
  font-size: 0.96rem;
}

.site-footer .logo {
  color: #fff;
  margin-bottom: 12px;
}

.site-footer .footer-note {
  font-size: 0.83rem;
  color: #a9bb97;
  line-height: 1.75;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: #cfdcbd;
  font-size: 0.87rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: #8fa17d;
}

/* ---------------- 工具小部件 ---------------- */
.tool-panel {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-weight: 800;
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.field select,
.field input {
  width: 100%;
  padding: 11px 12px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--ink);
}

.field select:focus,
.field input:focus {
  outline: 3px solid rgba(231, 184, 75, 0.45);
  outline-offset: 1px;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.result-box {
  background: var(--green-soft);
  border: 2px dashed var(--green);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.result-box .line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed #bcd3a4;
  font-size: 0.92rem;
}

.result-box .line:last-child {
  border-bottom: 0;
}

.result-box .line b {
  font-size: 1.12rem;
  color: var(--green-deep);
}

.result-box .line.total b {
  font-size: 1.5rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.filter-row .field {
  margin-bottom: 0;
  flex: 1 1 160px;
}

/* ---------------- 返回顶部 ---------------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  border: 2px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--line);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s;
  z-index: 90;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------------- 动画 ---------------- */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.in {
  animation: reveal-in 0.55s ease both;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal.in {
    animation: none;
  }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .hero-figure {
    max-width: 560px;
  }
  .trust-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-list li:nth-child(2) {
    border-right: 0;
  }
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .doc-layout {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
    order: -1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--panel);
    border-bottom: 2px solid var(--line);
    padding: 12px 18px 18px;
    gap: 4px;
    display: none;
    box-shadow: 0 12px 20px rgba(43, 42, 36, 0.12);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 14px;
    border: 2px solid transparent;
  }
  .nav-cta {
    justify-content: center;
    margin-top: 4px;
  }
  .nav-toggle {
    display: block;
  }
  .section {
    padding: 50px 0;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 40px 0 54px;
  }
  .hero-chip.one {
    left: 6px;
    top: -12px;
  }
  .hero-chip.two {
    right: 4px;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .stats,
  .platform-grid,
  .trust-list {
    grid-template-columns: 1fr;
  }
  .trust-list li {
    border-right: 0;
    border-bottom: 2px dashed #e3d9bd;
  }
  .trust-list li:last-child {
    border-bottom: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .container {
    padding: 0 16px;
  }
  .logo span.logo-text {
    font-size: 0.98rem;
  }
}

/* =========================================================
   全部图鉴 - 工具栏 / 表格 / 分页 / 全站搜索
   ========================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wiki-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}

.wiki-search {
  flex: 1 1 260px;
  display: block;
}

.wiki-search input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font: inherit;
  font-size: 0.95rem;
  box-shadow: 0 3px 0 rgba(43, 42, 36, 0.1);
}

.wiki-search input:focus {
  outline: 3px solid var(--green-line);
  outline-offset: 1px;
}

.wiki-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.wiki-select select {
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  font: inherit;
  font-size: 0.88rem;
  max-width: 240px;
  cursor: pointer;
}

.wiki-count {
  font-size: 0.84rem;
  color: var(--ink-faint);
  font-weight: 700;
  white-space: nowrap;
}

.wiki-name strong {
  display: block;
  font-size: 0.97rem;
}

.wiki-sum {
  display: block;
  color: var(--ink-faint);
  font-size: 0.78rem;
  line-height: 1.45;
  margin-top: 3px;
  max-width: 360px;
}

.wiki-act {
  white-space: nowrap;
}

.wiki-toggle {
  border: 2px solid var(--line);
  background: var(--gold-soft);
  border-radius: 8px;
  padding: 4px 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--line);
}

.wiki-toggle:hover {
  background: var(--gold);
}

.wiki-toggle[aria-expanded="true"] {
  background: var(--green-soft);
}

.wiki-extra > td {
  background: var(--panel-2);
  padding: 16px 18px;
}

.wiki-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 22px;
  margin: 0;
}

.wiki-fact {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

.wiki-fact dt {
  flex: 0 0 5.4em;
  color: var(--green-deep);
  font-weight: 800;
}

.wiki-fact dd {
  margin: 0;
  color: var(--ink-soft);
  word-break: break-word;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 6px 0 18px;
}

.pager button {
  min-width: 40px;
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  font: inherit;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(43, 42, 36, 0.12);
}

.pager button:hover:not(:disabled):not(.gap) {
  background: var(--gold-soft);
}

.pager button[aria-current="page"] {
  background: var(--green);
  color: #fff;
}

.pager button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pager .gap {
  border: none;
  box-shadow: none;
  background: none;
  cursor: default;
  min-width: 24px;
  padding: 8px 2px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  display: inline-block;
  padding: 6px 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.chip:hover {
  background: var(--gold-soft);
  text-decoration: none;
}

/* ---------------- 全部图鉴总览 ---------------- */
.hub-search {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px;
  margin: 0 auto;
  max-width: 860px;
  text-align: center;
}

.hub-search h2 {
  margin-bottom: 6px;
}

.hub-search > p {
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.hub-search-box input {
  width: 100%;
  padding: 15px 20px;
  font: inherit;
  font-size: 1.02rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: 0 4px 0 rgba(43, 42, 36, 0.12);
}

.hub-search-box input:focus {
  outline: 3px solid var(--green-line);
  outline-offset: 1px;
}

.hub-search-meta {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin: 10px 0 4px;
}

.hub-results {
  display: grid;
  gap: 8px;
  text-align: left;
  max-width: 760px;
  margin: 8px auto 0;
}

.hub-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  font-size: 0.9rem;
}

.hub-result:hover {
  background: var(--gold-soft);
  text-decoration: none;
}

.hub-cat {
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--green-deep);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 2px 9px;
}

.hub-result strong {
  white-space: nowrap;
}

.hub-result span:last-child {
  color: var(--ink-faint);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-empty {
  text-align: center;
  color: var(--ink-faint);
}

.wiki-cat-grid .card h3 {
  font-size: 1.02rem;
}

@media (max-width: 760px) {
  .wiki-toolbar {
    align-items: stretch;
  }
  .wiki-select {
    justify-content: space-between;
  }
  .wiki-select select {
    flex: 1;
    max-width: none;
  }
  .wiki-facts {
    grid-template-columns: 1fr;
  }
  .wiki-sum {
    max-width: none;
  }
  .hub-search {
    padding: 22px 16px;
  }
  .hub-result {
    flex-wrap: wrap;
    gap: 6px 10px;
  }
  .hub-result span:last-child {
    flex: 1 0 100%;
  }
}
