.guide-site {
  --guide-muted: #685667;
  --guide-plum: #462d4a;
  background: var(--paper, #faf7f2);
  color: var(--ink-deep, #38283d);
  font-size: 1rem;
  line-height: 1.65;
}
.guide-site [hidden] { display: none !important; }
.guide-site :focus-visible { outline: 2px solid #815a8b; outline-offset: 4px; }
.guide-header { background: #fffdf9; border-bottom: 1px solid var(--line, #e8e0d6); }
.guide-header-inner, .guide-footer .container {
  min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.guide-header nav, .guide-footer .container { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.guide-header nav a, .guide-footer a { font-size: .9rem; }
.guide-header nav a[aria-current] { color: #68416f; font-weight: 750; border-bottom: 2px solid #b49a5e; }
.guide-hero {
  background-color: #eee2eb;
  background-image: linear-gradient(90deg, #f7eff5 0%, rgba(247,239,245,.96) 39%, rgba(247,239,245,.03) 100%), url("/assets/hero.png");
  background-position: center, right 37%;
  background-size: cover;
  border-bottom: 1px solid var(--purple-line, #d8cddc);
}
.guide-hero-inner { padding-block: clamp(30px, 6vw, 72px); }
.guide-breadcrumb { display: flex; gap: .6em; color: #664d67; font-size: .9rem; }
.guide-breadcrumb a { text-decoration: underline; text-underline-offset: .2em; }
.guide-hero h1 {
  color: var(--guide-plum); font: 750 clamp(2rem, 5.8vw, 3.65rem)/1.24 "Songti SC", SimSun, serif;
  letter-spacing: .05em; margin: .55em 0 .25em;
}
.guide-hero p { max-width: 34ch; margin: 0; color: #563d57; font-size: clamp(1rem, 2vw, 1.14rem); }
.guide-content { padding-block: clamp(25px, 4vw, 48px) 54px; }
.guide-controls {
  display: flex; justify-content: space-between; align-items: end; gap: 16px 26px; flex-wrap: wrap;
  padding-bottom: 22px; border-bottom: 1px solid var(--line, #e8e0d6);
}
.guide-topics { display: flex; flex-wrap: wrap; gap: 7px; }
.guide-topics a {
  color: #55365b; display: inline-flex; align-items: center; min-height: 40px; padding: 4px 13px;
  background: #fffdf9; border: 1px solid #ded0df; border-radius: 999px; font-size: .9rem;
}
.guide-topics a:hover { background: #f2e9f3; }
.guide-search { min-width: min(100%, 270px); }
.guide-search label { display: block; color: var(--guide-muted); font-size: .88rem; font-weight: 700; margin-bottom: 3px; }
.guide-search input {
  width: 100%; min-height: 43px; border: 1px solid #cbb9cb; border-radius: .45rem;
  color: inherit; background: #fffdf9; font: inherit; padding: 5px 11px;
}
.guide-empty, .guide-notice { color: var(--guide-muted); margin: 20px 0; }
.guide-notice { font-size: .92rem; }
.guide-section { padding-top: 28px; scroll-margin-top: 16px; }
.guide-section h2 { margin: 0 0 10px; color: var(--guide-plum); font: 750 1.55rem/1.4 "Songti SC", SimSun, serif; }
.guide-list { display: grid; gap: 9px; }
.guide-entry {
  background: #fffdf9; border: 1px solid var(--line, #e8e0d6); border-radius: .55rem; scroll-margin-top: 14px;
}
.guide-entry[open], .guide-entry:target { border-color: #c6afc9; }
.guide-entry summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  cursor: pointer; color: var(--guide-plum); padding: 12px 16px; min-height: 50px; font-weight: 750;
}
.guide-entry summary::-webkit-details-marker { display: none; }
.guide-entry summary::after { content: "+"; color: #68416f; font-size: 1.2rem; font-weight: 550; }
.guide-entry[open] summary::after { content: "−"; }
.guide-entry-body { border-top: 1px solid #efe6ee; padding: 12px 16px 16px; overflow-wrap: anywhere; }
.guide-entry-body > :first-child { margin-top: 0; }
.guide-entry-body > :last-child { margin-bottom: 0; }
.guide-entry-body :is(p, ol, ul) { margin: .65em 0; }
.guide-entry-body :is(ol, ul) { padding-inline-start: 1.4em; }
.guide-entry-body h3 { font-size: 1.06rem; margin: 1em 0 .3em; }
.guide-entry-body a { color: #68416f; text-decoration: underline; text-underline-offset: .2em; }
.guide-entry-body .guide-status { color: var(--guide-muted); font-size: .9rem; }
.guide-footer { border-top: 1px solid var(--line, #e8e0d6); background: #fffdf9; }
@media (max-width: 640px) {
  .guide-site .container { width: calc(100% - 30px); }
  .guide-header nav { gap: 4px 10px; }
  .guide-header nav a, .guide-footer a { font-size: .84rem; }
  .guide-header .brand { gap: 6px; }
  .guide-header .brand-mark { width: 34px; height: 34px; }
  .guide-header .brand-name { font-size: 1.05rem; letter-spacing: .02em; }
  .guide-hero { background-image: linear-gradient(90deg, rgba(247,239,245,.98), rgba(247,239,245,.78)), url("/assets/hero.png"); }
  .guide-search { width: 100%; }
}
