:root {
  --paper: #f8efe0;
  --paper-2: #fff9ee;
  --ink: #241e1a;
  --muted: #77685d;
  --line: #ded0bd;
  --green: #1f4d3a;
  --green-2: #16382a;
  --red: #b43d2c;
  --gold: #d89b3d;
  --shadow: 0 24px 60px rgba(60, 43, 25, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(216, 155, 61, 0.22), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(180, 61, 44, 0.12), transparent 30%),
    linear-gradient(90deg, rgba(36, 30, 26, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 24px 24px, auto;
  font-family: "Songti SC", "STSong", "Noto Serif SC", "Microsoft YaHei", serif;
  line-height: 1.72;
}

a { color: inherit; text-decoration: none; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  min-height: 76px;
  padding: 0 max(20px, calc((100vw - 1160px) / 2));
  background: rgba(248, 239, 224, 0.9);
  border-bottom: 1px solid rgba(36, 30, 26, 0.12);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; white-space: nowrap; }
.brand img { width: 36px; height: 36px; }
.brand span { letter-spacing: 0.04em; }
.topbar nav { display: flex; justify-content: center; gap: 30px; color: var(--muted); font-size: 15px; }
.topbar nav a:hover { color: var(--red); }

.nav-cta, .primary, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 900;
}

.nav-cta, .primary { color: #fff; background: var(--green); box-shadow: 0 16px 34px rgba(31, 77, 58, 0.24); }
.nav-cta:hover, .primary:hover { background: var(--green-2); }
.ghost { color: var(--green); background: rgba(255, 249, 238, 0.82); border: 1px solid var(--line); }

.hero { padding: 86px 0 54px; }
.search-stage {
  position: relative;
  display: grid;
  gap: 28px;
  min-height: 610px;
  padding: clamp(32px, 7vw, 86px);
  background:
    linear-gradient(135deg, rgba(255, 249, 238, 0.94), rgba(255, 244, 228, 0.76)),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(36, 30, 26, 0.055) 39px 40px);
  border: 1px solid var(--line);
  border-radius: 42px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.search-stage::before {
  content: "";
  position: absolute;
  right: clamp(18px, 6vw, 90px);
  top: 52px;
  width: 162px;
  height: 162px;
  background: var(--red);
  border-radius: 34% 66% 42% 58%;
  opacity: 0.14;
  transform: rotate(-12deg);
}
.search-stage::after {
  content: "";
  position: absolute;
  right: -64px;
  bottom: -72px;
  width: 330px;
  height: 220px;
  border: 1px solid rgba(36, 30, 26, 0.12);
  border-radius: 44px;
  transform: rotate(-7deg);
}
.hero-label {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.hero-label span {
  padding: 8px 12px;
  color: #fff9ee;
  background: var(--ink);
  border-radius: 999px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.hero-label b { color: var(--red); font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; }
.kicker, .section-label {
  margin: 0 0 16px;
  color: var(--red);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; }
.hero h1 { position: relative; z-index: 1; max-width: 920px; font-size: clamp(56px, 9vw, 122px); }
.lead { position: relative; z-index: 1; max-width: 720px; margin: 0; color: var(--muted); font-size: 21px; }
.search-box {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  max-width: 820px;
  padding: 12px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: 10px 10px 0 rgba(36, 30, 26, 0.12);
}
.search-box span {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  color: var(--muted);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 22px;
  font-weight: 800;
}
.search-box a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 24px;
  color: #fff9ee;
  background: var(--red);
  border-radius: 16px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 900;
}
.quick-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 860px;
}
.quick-tags a {
  padding: 10px 14px;
  color: var(--green);
  background: rgba(255, 249, 238, 0.76);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 800;
}

section { padding: 76px 0; }
.desk, .faq { background: rgba(255, 249, 238, 0.68); border-block: 1px solid var(--line); }
.desk-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 34px; align-items: stretch; }
h2 { font-size: clamp(34px, 4.8vw, 64px); }
.desk-note {
  padding: 30px;
  background: var(--green);
  border-radius: 30px;
  color: #fff9ee;
  box-shadow: var(--shadow);
}
.desk-note .section-label { color: #f4c16b; }
.desk-note p:not(.section-label) { color: rgba(255, 249, 238, 0.78); font-size: 18px; }
.ticket-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.ticket-stack article {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 30px;
  transform: rotate(-1deg);
}
.ticket-stack article:nth-child(2) { transform: rotate(1.5deg); margin-top: 26px; }
.ticket-stack article:nth-child(3) { transform: rotate(-0.5deg); }
.ticket-stack span { color: var(--red); font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 900; }
.ticket-stack strong { display: block; margin-top: auto; font-size: 28px; line-height: 1.08; }
.ticket-stack p { color: var(--muted); margin-bottom: 0; }

.library-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 46px; align-items: start; }
.sticky-head { position: sticky; top: 104px; margin-bottom: 0; }
.sticky-head .ghost { margin-top: 22px; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head p:not(.section-label) { color: var(--muted); font-size: 19px; }
.manual-list {
  display: grid;
  background: rgba(36, 30, 26, 0.12);
  border: 1px solid rgba(36, 30, 26, 0.14);
  border-radius: 30px;
  overflow: hidden;
}
.manual-row {
  display: grid;
  grid-template-columns: 62px 84px minmax(210px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: rgba(255, 249, 238, 0.94);
  border-bottom: 1px solid rgba(36, 30, 26, 0.12);
}
.manual-row:last-child { border-bottom: 0; }
.manual-row:hover { background: #fff; }
.row-num {
  color: var(--red);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 26px;
  font-weight: 900;
}
.row-cat {
  justify-self: start;
  padding: 6px 10px;
  color: var(--green);
  background: #eef4e6;
  border-radius: 999px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 900;
}
.manual-row strong { font-size: 21px; line-height: 1.28; }
.manual-row em { color: var(--muted); font-style: normal; }

.method { padding-top: 18px; }
.method-board {
  padding: 34px;
  background: var(--ink);
  border-radius: 34px;
  color: #fff9ee;
}
.method-board .section-label { color: #f4c16b; }
.method-line { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255, 249, 238, 0.18); }
.method-line article { padding: 26px; background: var(--ink); }
.method-line span { color: rgba(255, 249, 238, 0.56); font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 900; }
.method-line strong { display: block; margin-top: 16px; font-size: 25px; line-height: 1.18; }
.method-line p { color: rgba(255, 249, 238, 0.7); }

.faq-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 46px; align-items: start; }
.faq-grid > div > p:not(.section-label) { color: var(--muted); font-size: 19px; }
.faq-list { display: grid; gap: 12px; }
details {
  padding: 20px 22px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
}
summary { cursor: pointer; font-size: 20px; font-weight: 900; }
details p { margin: 12px 0 0; color: var(--muted); }

.footer { padding: 30px 0; color: #f2e6d6; background: var(--ink); }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 18px; }

.article-hero {
  padding: 74px 0 58px;
  color: #fff9ee;
  background: linear-gradient(135deg, var(--ink), var(--green) 54%, #6f4d22);
}
.crumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; color: rgba(255, 249, 238, 0.68); }
.article-hero h1 { max-width: 940px; font-size: clamp(38px, 6vw, 76px); }
.article-hero p:not(.kicker) { max-width: 820px; color: rgba(255, 249, 238, 0.78); font-size: 20px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 46px; padding: 58px 0 86px; }
.article-body { display: grid; gap: 22px; }
.article-body section {
  padding: 30px;
  background: rgba(255, 249, 238, 0.88);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.article-body h2 { font-size: 34px; }
.article-body p { color: var(--muted); font-size: 18px; }
.article-aside {
  position: sticky;
  top: 98px;
  align-self: start;
  padding: 24px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(60, 43, 25, 0.08);
}
.article-aside strong { font-size: 25px; line-height: 1.16; }
.article-aside p { color: var(--muted); }
.article-aside .primary, .back-link { width: 100%; margin-top: 12px; }
.back-link { display: inline-flex; justify-content: center; color: var(--green); font-weight: 900; }
.related { display: grid; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.related > span { color: var(--red); font-weight: 900; }
.related a { display: grid; gap: 4px; padding: 14px; background: #fff4e4; border-radius: 14px; }
.related a span { color: var(--muted); font-size: 13px; }
.related a strong { font-size: 16px; line-height: 1.3; }

@media (max-width: 960px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar nav { grid-column: 1 / -1; justify-content: space-between; }
  .desk-layout, .ticket-stack, .library-layout, .method-line, .faq-grid, .article-layout { grid-template-columns: 1fr; }
  .sticky-head { position: static; }
  .ticket-stack article, .ticket-stack article:nth-child(2), .ticket-stack article:nth-child(3) { min-height: auto; margin-top: 0; transform: none; }
  .manual-row { grid-template-columns: 54px 82px minmax(0, 1fr); }
  .manual-row em { grid-column: 3; }
  .article-aside { position: static; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .topbar { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .nav-cta { width: 100%; grid-column: 1 / -1; }
  .hero { padding-top: 42px; }
  .search-stage { min-height: auto; border-radius: 28px; }
  .hero h1 { font-size: 48px; }
  .lead { font-size: 18px; }
  .search-box { grid-template-columns: 1fr; box-shadow: 6px 6px 0 rgba(36, 30, 26, 0.12); }
  .search-box span { min-height: 48px; font-size: 18px; }
  .search-box a { width: 100%; }
  .manual-row { grid-template-columns: 1fr; gap: 10px; }
  .manual-row em { grid-column: auto; }
  .footer nav { flex-wrap: wrap; }
}
