:root {
  --ink: #211928;
  --paper: #f3efe7;
  --paper-2: #ebe4d8;
  --purple: #4c1d65;
  --purple-2: #321142;
  --orange: #ff5b35;
  --lime: #c8ea6b;
  --line: rgba(33, 25, 40, .16);
  --muted: #756b78;
  --shadow: 0 20px 60px rgba(41, 21, 51, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; }

.topbar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 78px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; font-size: 14px; font-weight: 800; letter-spacing: .05em; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; gap: 2px; }
.brand-mark i { display: block; width: 3px; background: white; border-radius: 3px; }
.brand-mark i:nth-child(1) { height: 8px; } .brand-mark i:nth-child(2) { height: 15px; } .brand-mark i:nth-child(3) { height: 11px; }
.topbar-meta { font-size: 12px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #5aaa34; box-shadow: 0 0 0 4px rgba(90,170,52,.13); }

.hero {
  min-height: 565px;
  background: var(--purple);
  color: white;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  padding: 76px clamp(24px, 7vw, 110px) 64px;
}
.hero-grid { position: absolute; inset: 0; opacity: .11; background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(to right, black, transparent 75%); }
.hero::after { content: "?"; position: absolute; right: 23%; bottom: -155px; color: rgba(255,255,255,.035); font-family: Georgia, serif; font-size: 540px; line-height: 1; font-weight: bold; }
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.eyebrow { margin: 0 0 22px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .74; }
.eyebrow span { color: var(--lime); }
.eyebrow.dark { color: var(--orange); opacity: 1; }
.hero h1 { margin: 0; font-family: Georgia, "SimSun", serif; font-size: clamp(50px, 7vw, 94px); line-height: .99; letter-spacing: -.055em; font-weight: 500; }
.hero h1 em { color: var(--lime); font-weight: inherit; }
.hero-lead { max-width: 640px; margin: 28px 0 30px; color: rgba(255,255,255,.73); font-size: 16px; line-height: 1.85; }
.search-wrap { max-width: 720px; height: 66px; background: white; display: flex; align-items: center; padding: 0 18px 0 21px; box-shadow: 0 20px 45px rgba(20,3,28,.25); }
.search-wrap svg { width: 22px; height: 22px; fill: none; stroke: var(--purple); stroke-width: 1.8; flex: 0 0 auto; }
.search-wrap input { width: 100%; height: 100%; border: 0; outline: 0; padding: 0 15px; color: var(--ink); background: transparent; font-size: 15px; }
.search-wrap input::placeholder { color: #99919b; }
kbd { border: 1px solid #d8d1da; color: #827985; background: #f5f2f5; border-radius: 5px; padding: 3px 8px; font: 12px system-ui; }
.quick-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.quick-links button { padding: 8px 12px; color: rgba(255,255,255,.72); background: transparent; border: 1px solid rgba(255,255,255,.25); cursor: pointer; font-size: 12px; transition: .2s; }
.quick-links button:hover { color: var(--purple); background: var(--lime); border-color: var(--lime); }

.hero-note { z-index: 1; align-self: end; border-top: 1px solid rgba(255,255,255,.28); padding-top: 18px; margin-left: 36px; }
.note-index { color: var(--lime); font: 700 10px system-ui; letter-spacing: .18em; }
.signal { display: flex; gap: 5px; align-items: end; height: 36px; margin: 12px 0; }
.signal span { width: 5px; background: var(--orange); border-radius: 3px; animation: signal 1.6s infinite ease-in-out; }
.signal span:nth-child(1){height: 10px}.signal span:nth-child(2){height: 24px;animation-delay:.15s}.signal span:nth-child(3){height: 16px;animation-delay:.3s}.signal span:nth-child(4){height: 30px;animation-delay:.45s}
@keyframes signal { 0%,100%{opacity:.35;transform:scaleY(.85)}50%{opacity:1;transform:scaleY(1)} }
.hero-note p { margin: 0 0 10px; font-family: Georgia, "SimSun", serif; font-size: 22px; line-height: 1.45; }
.hero-note small { color: rgba(255,255,255,.52); font-size: 11px; }

.handbook { max-width: 1280px; margin: 0 auto; padding: 92px clamp(24px, 5vw, 72px) 110px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.section-heading h2 { margin: 0; font: 500 clamp(38px, 5vw, 64px)/1 Georgia, "SimSun", serif; letter-spacing: -.05em; }
#result-count { margin: 0; padding-bottom: 4px; font-size: 13px; color: var(--muted); }
.filters { margin: 40px 0 48px; display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.filter { border: 0; background: transparent; padding: 10px 15px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; border-radius: 30px; transition: .2s; }
.filter:hover { color: var(--purple); background: rgba(76,29,101,.07); }
.filter.active { color: white; background: var(--purple); }
.filter .count { margin-left: 7px; opacity: .56; font-size: 10px; }

.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 58px; align-items: start; }
.side-card { position: sticky; top: 24px; background: var(--paper-2); padding: 26px; }
.side-label { font-size: 11px; font-weight: 800; letter-spacing: .15em; color: var(--orange); margin: 0 0 22px; }
.side-card ol { list-style: none; padding: 0; margin: 0; }
.side-card li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; margin: 0 0 18px; font-size: 12px; line-height: 1.55; }
.side-card li span { color: var(--purple); font: 700 10px system-ui; }
.side-rule { height: 1px; background: var(--line); margin: 25px 0; }
.side-tip { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }

.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); background: transparent; transition: background .25s; }
.faq-item.open { background: rgba(255,255,255,.52); }
.faq-question { width: 100%; display: grid; grid-template-columns: 52px minmax(0,1fr) auto 32px; gap: 16px; align-items: center; border: 0; background: transparent; text-align: left; padding: 25px 20px 25px 8px; cursor: pointer; }
.faq-number { color: var(--orange); font: 700 10px system-ui; letter-spacing: .08em; }
.faq-title { font-size: 17px; font-weight: 800; line-height: 1.55; }
.faq-tag { white-space: nowrap; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; background: rgba(33,25,40,.06); padding: 6px 9px; }
.faq-toggle { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; font-size: 18px; line-height: 1; transition: .25s; }
.faq-item.open .faq-toggle { color: white; background: var(--orange); border-color: var(--orange); transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer-inner { padding: 0 68px 28px 76px; color: #514854; font-size: 14px; line-height: 1.9; }
.faq-answer-inner p { margin: 0 0 12px; }
.faq-answer-inner ol, .faq-answer-inner ul { margin: 8px 0 16px; padding-left: 20px; }
.faq-answer-inner li { margin: 5px 0; }
.answer-actions { margin-top: 18px; display: flex; gap: 10px; }
.copy-btn { border: 1px solid var(--line); background: transparent; padding: 7px 11px; font-size: 11px; font-weight: 700; cursor: pointer; }
.copy-btn:hover { border-color: var(--purple); color: var(--purple); }
mark { background: var(--lime); color: var(--ink); padding: 0 2px; }

.empty { text-align: center; padding: 70px 20px; }
.empty div { font-size: 50px; color: var(--orange); }
.empty h3 { font: 500 26px Georgia, "SimSun", serif; margin: 10px 0; }
.empty p { color: var(--muted); font-size: 13px; }
.empty button { border: 0; background: var(--purple); color: white; padding: 11px 18px; cursor: pointer; }

.contact-strip { background: var(--orange); color: white; display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; padding: 64px clamp(24px, 7vw, 110px); }
.contact-strip h2 { font: 500 clamp(30px, 4vw, 50px)/1.1 Georgia, "SimSun", serif; margin: 0; }
.contact-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.5); }
.contact-steps div { padding: 18px 18px 0 0; display: flex; flex-direction: column; gap: 25px; border-right: 1px solid rgba(255,255,255,.28); }
.contact-steps div:not(:first-child) { padding-left: 18px; }
.contact-steps b { color: var(--purple-2); font: 800 11px system-ui; }
.contact-steps span { font-size: 13px; line-height: 1.5; font-weight: 700; }
footer { min-height: 76px; padding: 0 clamp(24px, 7vw, 110px); display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--purple-2); color: rgba(255,255,255,.55); font-size: 11px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: white; padding: 11px 18px; font-size: 12px; opacity: 0; pointer-events: none; transition: .25s; z-index: 10; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-note { display: none; }
  .layout { grid-template-columns: 1fr; }
  .side-card { display: none; }
  .contact-strip { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .topbar { height: 60px; padding-inline: 18px; }
  .topbar-meta { display: none; }
  .hero { padding: 58px 20px 48px; }
  .hero h1 { font-size: 48px; }
  .hero-lead { font-size: 14px; }
  .search-wrap { height: 58px; }
  .quick-links { display: none; }
  .handbook { padding: 65px 18px 75px; }
  .section-heading { align-items: start; flex-direction: column; gap: 15px; }
  .filters { margin: 28px 0 32px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 13px; }
  .filter { flex: 0 0 auto; }
  .faq-question { grid-template-columns: 34px minmax(0,1fr) 28px; gap: 9px; padding: 21px 5px; }
  .faq-tag { display: none; }
  .faq-title { font-size: 15px; }
  .faq-answer-inner { padding: 0 18px 24px 43px; }
  .contact-strip { padding: 50px 20px; gap: 38px; }
  .contact-steps { grid-template-columns: 1fr; border-top: 0; }
  .contact-steps div { border-top: 1px solid rgba(255,255,255,.35); border-right: 0; padding: 14px 0; flex-direction: row; gap: 18px; }
  .contact-steps div:not(:first-child) { padding-left: 0; }
  footer { padding: 20px; flex-direction: column; align-items: start; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
