:root {
  --paper: #f3f6fb;
  --paper-deep: #e7edf6;
  --card: #ffffff;
  --ink: #12192b;
  --muted: #69758a;
  --line: rgba(26, 39, 67, 0.11);
  --purple: #5965e8;
  --purple-dark: #414cc9;
  --orange: #00aee8;
  --mint: #12ad9d;
  --yellow: #f1bd52;
  --red: #d95d5d;
  --shadow: 0 24px 70px rgba(48, 43, 70, 0.11);
  --soft-shadow: 0 12px 35px rgba(48, 43, 70, 0.08);
  --radius: 24px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 5%, rgba(0, 174, 232, 0.08), transparent 28rem),
    radial-gradient(circle at 86% 5%, rgba(89, 101, 232, 0.11), transparent 30rem),
    var(--paper);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  line-height: 1.6;
  min-width: 320px;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

.site-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.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;
}

.site-header,
.admin-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 78px;
  padding: 12px max(24px, calc((100vw - var(--shell)) / 2));
  display: flex;
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid rgba(37, 38, 55, 0.09);
  background: rgba(243, 246, 251, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #6672f1, #4651cf);
  font-family: inherit;
  font-size: 25px;
  font-weight: 800;
  box-shadow: 0 9px 24px rgba(89, 101, 232, 0.24);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 16px;
  letter-spacing: 0.04em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  color: #5f6070;
  font-size: 14px;
  font-weight: 650;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 17px;
  height: 3px;
  border-radius: 10px;
  background: var(--orange);
  transform: translateX(-50%) rotate(-2deg);
}

.header-action,
.back-site {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  box-shadow: 4px 4px 0 rgba(101, 82, 191, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-action:hover,
.back-site:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(101, 82, 191, 0.25);
}

.header-action svg,
.primary-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 4px;
  background: var(--ink);
}

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  gap: 70px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 58px;
}

.eyebrow,
.section-index,
.board-kicker,
.ai-banner-copy > span {
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  background: var(--orange);
  transform: rotate(-3deg);
}

.hero h1 {
  max-width: 650px;
  margin: 20px 0 20px;
  font-family: inherit;
  font-size: clamp(52px, 6vw, 82px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.hero h1 em,
.admin-intro h1 em {
  position: relative;
  color: var(--purple);
  font-style: normal;
  white-space: nowrap;
}

.hero h1 em::after,
.admin-intro h1 em::after {
  content: "";
  position: absolute;
  left: 3%;
  right: -3%;
  bottom: -1px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.28;
  transform: none;
}

.hero-copy > p {
  max-width: 580px;
  margin: 0;
  color: #626274;
  font-size: 17px;
  line-height: 1.85;
}

.hero-search {
  max-width: 620px;
  min-height: 62px;
  margin-top: 34px;
  padding: 7px 7px 7px 19px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(37, 38, 55, 0.2);
  border-radius: 17px;
  background: var(--card);
  box-shadow: var(--soft-shadow);
}

.hero-search svg {
  width: 21px;
  flex: none;
  fill: none;
  stroke: #898894;
  stroke-width: 1.7;
}

.hero-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.hero-search button,
.primary-button {
  min-height: 46px;
  white-space: nowrap;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--purple);
  font-weight: 750;
  cursor: pointer;
}

.hero-search button:hover,
.primary-button:hover {
  background: var(--purple-dark);
}

.hot-searches {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #91909a;
  font-size: 11px;
}

.hot-searches button {
  padding: 3px 9px;
  border: 1px solid rgba(37, 38, 55, 0.11);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.55);
  color: #6a6877;
  font-size: 11px;
  cursor: pointer;
}

.hot-searches button:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.hero-board {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: #121a2f;
  color: #fff;
  box-shadow: 0 28px 80px rgba(18, 25, 43, 0.2);
  transform: none;
}

.hero-board::before,
.hero-board::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.hero-board::before {
  width: 260px;
  height: 260px;
  top: -150px;
  right: -90px;
}

.hero-board::after {
  width: 140px;
  height: 140px;
  left: -70px;
  bottom: -70px;
}

.board-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.board-kicker {
  color: #a8a0e3;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #d6d3e4;
  font-size: 10px;
}

.live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ad6b6;
  box-shadow: 0 0 0 3px rgba(106, 214, 182, 0.12);
}

.hero-board h2 {
  margin: 24px 0 3px;
  font-size: 30px;
  letter-spacing: 0.03em;
}

.hero-board > p {
  margin: 0 0 23px;
  color: #aaa7b9;
  font-size: 13px;
}

.board-stack {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
}

.board-empty {
  position: relative;
  z-index: 2;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
  text-align: center;
}
.board-empty span { color: #77788a; font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.board-empty strong { margin-top: 9px; color: #eeecf5; font-size: 20px; }
.board-empty p { margin: 5px 0 0; color: #9292a3; font-size: 11px; }

.mission-card {
  min-height: 86px;
  padding: 14px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 0.2s ease, background 0.2s ease;
}

.mission-card:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.09);
}

.mission-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-family: inherit;
  font-size: 23px;
  font-weight: 800;
}

.mission-purple .mission-icon { background: #6d5cc7; }
.mission-orange .mission-icon { background: #dc7658; }
.mission-mint .mission-icon { background: #379f91; }

.mission-card strong,
.mission-card span {
  display: block;
}

.mission-card strong {
  font-size: 15px;
}

.mission-card span {
  margin-top: 3px;
  color: #aeadbc;
  font-size: 11px;
}

.mission-card b {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #d9d6e7;
  font-size: 10px;
}

.board-note {
  position: relative;
  z-index: 2;
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  color: #aaa7b9;
  font-size: 10px;
}

.board-note strong {
  color: #fff;
}

.board-note i {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.board-note u {
  display: block;
  width: 92%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), #f2bb57);
}

.quick-stats {
  min-height: 104px;
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.8fr;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-stats > div {
  min-height: 54px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-right: 1px solid var(--line);
}

.quick-stats > div:first-child { padding-left: 0; }
.quick-stats > div:last-child { border-right: 0; padding-right: 0; }

.quick-stats strong {
  font-family: Georgia, serif;
  font-size: 27px;
}

.quick-stats span {
  color: var(--muted);
  font-size: 11px;
}

.quick-stats .stat-note {
  justify-content: flex-end;
}

.stat-note i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(46, 170, 154, 0.13);
  color: var(--mint);
  font-style: normal;
  font-weight: 800;
}

.stat-note span,
.stat-note b {
  display: block;
}

.stat-note b {
  color: var(--ink);
  font-size: 12px;
}

.guide-section {
  padding-top: 100px;
  padding-bottom: 112px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}

.section-heading h2,
.creator-intro h2,
.ai-banner h2 {
  margin: 8px 0 7px;
  font-size: clamp(29px, 3.4vw, 43px);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.section-heading p,
.creator-intro p,
.ai-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.text-link,
.outline-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 750;
}

.text-link span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--purple);
}

.filter-row {
  margin: 40px 0 23px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.filter-button,
.subtle-button,
.icon-button {
  min-height: 35px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 247, 0.55);
  color: #686876;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.result-count {
  margin-left: auto;
  color: #94939c;
  font-size: 11px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-card {
  position: relative;
  overflow: hidden;
  min-height: 365px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(48, 43, 70, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.guide-card::before {
  content: "";
  height: 5px;
  background: var(--card-accent, var(--purple));
}

.guide-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--soft-shadow);
}

.guide-card-main {
  flex: 1;
  padding: 25px 25px 18px;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.type-tag,
.verified-tag,
.difficulty-tag,
.guide-tag,
.completion-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.type-tag {
  color: var(--card-accent, var(--purple));
  background: color-mix(in srgb, var(--card-accent, var(--purple)) 12%, transparent);
}

.verified-tag {
  color: var(--mint);
  background: rgba(46, 170, 154, 0.1);
}

.verified-tag.pending {
  color: #967529;
  background: rgba(241, 189, 82, 0.15);
}

.guide-card h3 {
  margin: 22px 0 10px;
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.guide-card-summary {
  min-height: 66px;
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: 12px;
  line-height: 1.8;
}

.guide-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guide-tag {
  border: 1px solid var(--line);
  color: #777583;
  background: transparent;
  font-weight: 650;
}

.guide-card-footer {
  min-height: 70px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px solid var(--line);
}

.mini-avatar {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--card-accent, var(--purple));
  font-family: inherit;
  font-weight: 800;
}

.guide-card-footer div {
  min-width: 0;
}

.guide-card-footer strong,
.guide-card-footer span {
  display: block;
}

.guide-card-footer strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.guide-card-footer span {
  color: #97959f;
  font-size: 9px;
}

.card-arrow {
  margin-left: auto;
  color: var(--card-accent, var(--purple));
  font-size: 20px;
}

.skeleton-card {
  height: 365px;
  border-radius: 7px 24px 7px 24px;
  background: linear-gradient(100deg, rgba(255,255,255,.32) 30%, rgba(255,255,255,.7) 48%, rgba(255,255,255,.32) 66%);
  background-size: 250% 100%;
  animation: skeleton 1.5s infinite;
}

@keyframes skeleton { to { background-position-x: -250%; } }

.empty-state {
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.empty-state > span {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(101, 82, 191, 0.1);
  color: var(--purple);
  font-family: Georgia, serif;
  font-size: 25px;
}

.empty-state h3 { margin: 16px 0 4px; }
.empty-state p { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.empty-state button { border: 0; background: none; color: var(--purple); cursor: pointer; font-weight: 750; }

.creator-section {
  padding: 90px 0;
  background: #ebe3d3;
  border-top: 1px solid rgba(37, 38, 55, 0.08);
  border-bottom: 1px solid rgba(37, 38, 55, 0.08);
}

.creator-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
  align-items: center;
}

.creator-intro p {
  max-width: 430px;
  line-height: 1.9;
}

.outline-link {
  margin-top: 25px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}

.creator-cards {
  display: grid;
  gap: 12px;
}

.creator-card {
  min-height: 86px;
  padding: 15px 20px;
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(37, 38, 55, 0.1);
  border-radius: 12px 20px 12px 20px;
  background: rgba(255, 253, 247, 0.7);
}

.creator-avatar {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px 16px 16px 5px;
  color: #fff;
  font-family: STKaiti, KaiTi, serif;
  font-size: 20px;
  font-weight: 800;
}

.avatar-purple { background: var(--purple); }
.avatar-orange { background: var(--orange); }
.avatar-mint { background: var(--mint); }

.creator-card strong,
.creator-card span {
  display: block;
}

.creator-card strong { font-size: 13px; }
.creator-card div span { color: var(--muted); font-size: 10px; }
.creator-card b { color: var(--purple); font-size: 11px; }

.ai-banner {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  margin-top: 24px;
  margin-bottom: 90px;
  padding: 43px 48px;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 35px;
  align-items: center;
  border-radius: 28px;
  color: #fff;
  background: #121a2f;
  box-shadow: var(--shadow);
}

.ai-banner::after {
  content: "AI";
  position: absolute;
  right: 21%;
  bottom: -68px;
  color: rgba(255,255,255,.025);
  font-family: Georgia, serif;
  font-size: 220px;
  font-weight: 800;
}

.ai-glyph,
.empty-orbit {
  position: relative;
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.ai-glyph::before,
.empty-orbit::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.ai-glyph span,
.empty-orbit span {
  color: #f6be58;
  font-size: 32px;
}

.ai-glyph i,
.ai-glyph b,
.empty-orbit i,
.empty-orbit b {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.ai-glyph i,
.empty-orbit i { top: 5px; right: 18px; }
.ai-glyph b,
.empty-orbit b { bottom: 13px; left: 5px; background: var(--mint); }

.ai-banner-copy {
  position: relative;
  z-index: 2;
}

.ai-banner-copy > span { color: #a9a1e5; }
.ai-banner h2 { max-width: 650px; margin-top: 6px; font-size: 28px; }
.ai-banner p { max-width: 720px; color: #b7b4c3; font-size: 12px; }

.banner-button {
  position: relative;
  z-index: 2;
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.banner-button:hover { background: #f6be58; }

.site-footer {
  padding: 52px 0 22px;
  color: #d9d5df;
  background: #0e1526;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-brand strong { font-size: 14px; }
.footer-brand p { max-width: 450px; margin: 3px 0 0; color: #8f8c9d; font-size: 10px; }
.footer-links { display: flex; gap: 20px; color: #9f9cac; font-size: 10px; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  margin-top: 35px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #74717f;
  font-size: 9px;
}

/* 攻略详情 */
.guide-page {
  padding-top: 44px;
  padding-bottom: 100px;
}

.breadcrumbs {
  margin-bottom: 30px;
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.breadcrumbs a:hover { color: var(--purple); }

.guide-hero {
  position: relative;
  overflow: hidden;
  padding: 48px;
  border-radius: 28px;
  color: #fff;
  background: #121a2f;
  box-shadow: var(--shadow);
}

.guide-hero::after {
  content: attr(data-mark);
  position: absolute;
  right: 40px;
  top: -20px;
  color: rgba(255,255,255,.035);
  font-family: STKaiti, KaiTi, serif;
  font-size: 180px;
  font-weight: 900;
}

.guide-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-hero .type-tag { color: #d7d1ff; background: rgba(101,82,191,.4); }
.guide-hero .difficulty-tag { color: #ffd6c9; background: rgba(239,129,93,.2); }

.guide-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 20px 0 12px;
  font-size: clamp(32px, 5vw, 55px);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.guide-hero > p {
  position: relative;
  z-index: 1;
  max-width: 750px;
  margin: 0;
  color: #c3c0cd;
  font-size: 14px;
  line-height: 1.9;
}

.guide-source-line {
  position: relative;
  z-index: 1;
  margin-top: 27px;
  padding-top: 20px;
  display: flex;
  gap: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #9e9bac;
  font-size: 10px;
}

.guide-source-line b { color: #fff; }
.guide-source-line a { color: #bcb5f2; }

.guide-owner-actions { position: relative; z-index: 2; margin-top: 22px; display: flex; }
.guide-owner-actions a { min-height: 42px; padding: 0 17px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; color: #fff; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 750; }
.guide-owner-actions a:hover { border-color: rgba(255,255,255,.36); background: rgba(255,255,255,.13); }

.guide-layout {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 104px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.76);
}

.guide-toc > span { color: var(--purple); font-size: 9px; font-weight: 850; letter-spacing: .15em; }
.guide-toc nav { margin-top: 14px; display: grid; gap: 10px; }
.guide-toc a { color: var(--muted); font-size: 11px; }
.guide-toc a:hover { color: var(--purple); }

.guide-article {
  display: grid;
  gap: 20px;
}

.content-section {
  padding: 31px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.78);
}

.content-heading {
  margin-bottom: 23px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.content-heading span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--purple);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 800;
}

.content-heading h2 { margin: 0; font-size: 21px; }
.content-heading p { margin: 0; color: var(--muted); font-size: 10px; }

.aid-card {
  margin-bottom: 18px;
  padding: 20px;
  display: grid;
  grid-template-columns: 48px minmax(150px, .8fr) 1.2fr;
  gap: 15px;
  align-items: center;
  border-radius: 16px;
  color: #fff;
  background: #121a2f;
}
.aid-icon { width: 48px; height: 48px; display: grid; place-items:center; border-radius: 14px; background: var(--purple); font-weight:800; }
.aid-main small,.aid-main h3,.aid-main p { margin:0; display:block; }
.aid-main small { color:#8f99ae; font-size:8px; letter-spacing:.14em; }
.aid-main h3 { margin-top:2px; font-size:14px; }
.aid-main p { color:#aeb7c8; font-size:9px; }
.aid-skills { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.aid-skills span { padding:5px 8px; border-radius:6px; background:rgba(255,255,255,.08); color:#dbe1ec; font-size:9px; }

.config-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.config-card { padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: #fffdfa; }
.config-card-top { display: flex; align-items: center; gap: 11px; }
.config-pet-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(101,82,191,.1); color: var(--purple); font-family: STKaiti, KaiTi, serif; font-size: 18px; font-weight: 800; }
.config-card h3 { margin: 0; font-size: 14px; }
.config-card-top small { color: var(--muted); font-size: 9px; }
.config-detail { margin-top: 15px; display: grid; gap: 9px; }
.config-detail p { margin: 0; color: #626170; font-size: 10px; }
.config-detail b { color: var(--ink); }
.skill-list { display: flex; flex-wrap: wrap; gap: 5px; }
.skill-list span { padding: 3px 7px; border-radius: 5px; background: rgba(46,170,154,.1); color: #218c80; font-size: 9px; }
.stat-chips { display:flex; flex-wrap:wrap; gap:5px; }
.stat-chips span { padding:3px 7px; border-radius:5px; background:rgba(89,101,232,.1); color:var(--purple-dark); font-size:9px; font-weight:750; }
.speed-rule { padding:8px 9px; border-radius:7px; background:rgba(0,174,232,.08); color:#237f9d !important; }
.substitute-line { padding:9px 10px; display:grid; grid-template-columns:auto 1fr; gap:2px 8px; border-radius:8px; background:rgba(241,189,82,.11); }
.substitute-line span { color:#9a7426; font-size:8px; font-weight:800; }
.substitute-line b { color:#5b4b2b; font-size:10px; }
.substitute-line small { grid-column:1/-1; color:#8a7652; font-size:8px; }

.round-list { position: relative; display: grid; gap: 12px; }
.round-item { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 14px; }
.round-index { width: 54px; min-height: 54px; display: grid; place-items: center; align-self: start; border-radius: 15px 15px 15px 5px; background: var(--ink); color: #fff; font-family: Georgia, serif; font-size: 12px; font-weight: 800; text-align: center; }
.round-body { padding: 17px 19px; border: 1px solid var(--line); border-radius: 13px; background: #fffdfa; }
.round-body h3 { margin: 0 0 6px; font-size: 13px; }
.round-body > p { margin: 0; color: #555463; font-size: 12px; }
.turn-actions { display:grid; gap:7px; }
.turn-action { min-height:36px; padding:7px 10px; display:grid; grid-template-columns:22px minmax(70px,.45fr) 18px 1fr; gap:7px; align-items:center; border-radius:9px; background:#f4f6fb; }
.turn-action > span { width:22px; height:22px; display:grid; place-items:center; border-radius:7px; background:var(--purple); color:#fff; font-family:Georgia,serif; font-size:8px; }
.turn-action b { font-size:10px; }
.turn-action i { color:#a0a7b4; font-style:normal; text-align:center; }
.turn-action em { color:#4f596b; font-size:10px; font-style:normal; }
.round-notes { margin-top: 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.round-notes span { padding: 8px 10px; border-radius: 7px; background: rgba(46,170,154,.08); color: #3b786f; font-size: 9px; }
.round-notes span:last-child { background: rgba(239,129,93,.09); color: #9a5b46; }

.caution-list { display: grid; gap: 10px; }
.caution-item { padding: 14px 16px; display: flex; gap: 12px; border-left: 3px solid var(--yellow); border-radius: 5px 11px 11px 5px; background: rgba(241,189,82,.11); color: #675b43; font-size: 11px; }
.caution-item b { color: #bd8720; }

.branch-list { display:grid; gap:10px; }
.branch-card { padding:15px; display:grid; grid-template-columns:34px minmax(0,1fr) 22px minmax(0,.8fr); gap:10px; align-items:center; border:1px solid var(--line); border-radius:13px; background:#fff; }
.branch-number { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:#e9edff; color:var(--purple); font-family:Georgia,serif; font-size:9px; font-weight:800; }
.branch-trigger small,.branch-trigger strong,.branch-action small,.branch-action strong { display:block; }
.branch-trigger small,.branch-action small,.branch-otherwise small { color:#8992a3; font-size:7px; letter-spacing:.12em; }
.branch-trigger strong,.branch-action strong { margin-top:2px; font-size:10px; line-height:1.5; }
.branch-arrow { color:var(--purple); text-align:center; }
.branch-action { padding:8px 10px; border-radius:8px; background:rgba(18,173,157,.08); }
.branch-otherwise { grid-column:2/-1; padding-left:10px; border-left:2px solid var(--orange); }
.branch-otherwise small,.branch-otherwise span { display:block; }
.branch-otherwise span { color:#5e687a; font-size:9px; }
.branch-card > p { grid-column:2/-1; margin:0; color:var(--muted); font-size:8px; }

/* AI 后台 */
.admin-body {
  background:
    linear-gradient(rgba(101,82,191,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101,82,191,.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
}

.admin-locked { overflow: hidden; }
.admin-locked > .admin-header,
.admin-locked > .admin-main { opacity: .22; filter: blur(5px); pointer-events: none; user-select: none; }
.login-gate[hidden] { display: none; }
.login-gate {
  position: fixed;
  z-index: 1000;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(238,239,246,.64);
  backdrop-filter: blur(18px);
}
.login-card {
  width: min(100%, 410px);
  padding: 34px;
  border: 1px solid rgba(101,82,191,.16);
  border-radius: 24px 24px 24px 7px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 28px 80px rgba(28,32,58,.16);
}
.login-brand { margin-bottom: 36px; }
.login-card h1 { margin: 10px 0 5px; font-family: STKaiti, KaiTi, sans-serif; font-size: 38px; }
.login-card > p { margin: 0 0 25px; color: var(--muted); font-size: 11px; }
.login-card label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 10px; font-weight: 750; }
.login-card > input { width: 100%; min-height: 48px; margin-bottom: 12px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: #fffefa; font-size: 15px; letter-spacing: .15em; }
.login-card > input:focus { border-color: rgba(101,82,191,.6); box-shadow: 0 0 0 3px rgba(101,82,191,.08); }
.login-error { min-height: 17px; margin-top: 8px; display: block; color: #a34444; font-size: 9px; text-align: center; }
.logout-button { border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }

.admin-header { position: relative; }
.admin-header-actions { margin-left: auto; display: flex; align-items: center; gap: 15px; }
.ai-status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.ai-status i { width: 7px; height: 7px; border-radius: 50%; background: #d7a43c; box-shadow: 0 0 0 3px rgba(215,164,60,.13); }
.ai-status.connected i { background: var(--mint); box-shadow: 0 0 0 3px rgba(46,170,154,.13); }
.back-site { min-height: 39px; padding: 0 15px; background: transparent; color: var(--ink); box-shadow: none; }

.admin-main { padding-top: 55px; padding-bottom: 80px; }
.admin-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.admin-intro h1 { margin: 10px 0 0; font-family: STKaiti, KaiTi, sans-serif; font-size: clamp(37px,5vw,58px); line-height: 1.15; letter-spacing: -.04em; }
.admin-intro-note { max-width: 360px; padding: 18px 20px; display: flex; gap: 12px; border-left: 3px solid var(--orange); background: rgba(255,253,247,.58); }
.admin-intro-note > span { color: var(--orange); }
.admin-intro-note p { margin: 0; color: var(--muted); font-size: 11px; }

.workflow-steps {
  list-style: none;
  margin: 50px 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.62);
}

.workflow-steps li {
  position: relative;
  min-height: 74px;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-right: 1px solid var(--line);
}

.workflow-steps li:last-child { border-right: 0; }
.workflow-steps li > span { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-family: Georgia,serif; font-size: 11px; }
.workflow-steps b,.workflow-steps small { display: block; }
.workflow-steps b { font-size: 11px; }
.workflow-steps small { color: var(--muted); font-size: 9px; }
.workflow-steps li.active > span,.workflow-steps li.done > span { border-color: var(--purple); background: var(--purple); color: #fff; }
.workflow-steps li.active::after { content:""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px; border-radius: 5px; background: var(--orange); }

.edit-mode-bar { margin: 34px 0 -28px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid rgba(101,82,191,.18); border-radius: 15px; background: rgba(255,255,255,.82); }
.edit-mode-bar > div:first-child { display: grid; gap: 2px; }
.edit-mode-bar b { font-size: 13px; }
.edit-mode-bar span { color: var(--muted); font-size: 10px; }
.edit-mode-tabs { padding: 3px; display: flex; gap: 3px; border-radius: 10px; background: #eef0f7; }
.edit-mode-tabs button { min-height: 35px; padding: 0 13px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.edit-mode-tabs button.active { color: #fff; background: var(--ink); box-shadow: 0 4px 12px rgba(31,37,59,.14); }

.editor-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(310px, .92fr);
  gap: 14px;
  align-items: start;
}

.editor-column {
  min-height: 665px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 14px 40px rgba(48,43,70,.045);
}

.panel-heading,
.panel-heading > div {
  display: flex;
  align-items: center;
}

.panel-heading { min-height: 47px; justify-content: space-between; gap: 12px; }
.panel-heading > div { gap: 10px; }
.panel-number { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 10px 10px 10px 3px; color: #fff; background: var(--ink); font-family: Georgia,serif; font-size: 10px; }
.panel-heading h2,.panel-heading p { margin: 0; }
.panel-heading h2 { font-size: 13px; }
.panel-heading p { color: var(--muted); font-size: 9px; }
.subtle-button:hover,.icon-button:hover { border-color: var(--purple); color: var(--purple); }

.rough-input-wrap {
  position: relative;
  min-height: 404px;
  margin-top: 18px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fffefa;
  overflow: hidden;
}

.ai-edit-instruction { margin-top: 18px; display: grid; gap: 7px; }
.ai-edit-instruction > span { color: var(--purple); font-size: 11px; font-weight: 800; }
.ai-edit-instruction textarea { width: 100%; min-height: 86px; padding: 12px 14px; resize: vertical; border: 1px solid rgba(101,82,191,.2); border-radius: 10px; outline: 0; color: var(--ink); background: #f7f6ff; font-size: 12px; line-height: 1.7; }
.ai-edit-instruction textarea:focus { border-color: rgba(101,82,191,.55); box-shadow: 0 0 0 3px rgba(101,82,191,.08); }

.manual-editor { margin-top: 50px; }
.manual-editor-heading { margin-bottom: 18px; padding: 25px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 20px; color: #fff; background: var(--ink); }
.manual-editor-heading h2 { margin: 8px 0 2px; font-size: 25px; }
.manual-editor-heading p { margin: 0; color: #aeb5c6; font-size: 12px; }
.manual-editor-heading .primary-button { min-height: 44px; flex: none; }
.manual-editor-heading .section-index { color: #a99ff0; }
#manualEditorFields { display: grid; gap: 15px; }
.manual-section { padding: 26px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.85); box-shadow: 0 12px 35px rgba(48,43,70,.035); }
.manual-section-title { margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.manual-section-title > span { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border-radius: 11px; color: #fff; background: var(--purple); font-family: Georgia,serif; font-size: 11px; font-weight: 800; }
.manual-section-title h3,.manual-section-title p { margin: 0; }
.manual-section-title h3 { font-size: 17px; }
.manual-section-title p { color: var(--muted); font-size: 11px; }
.manual-section-title.with-action > button { margin-left: auto; min-height: 35px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--purple); background: #f8f7ff; font-size: 11px; font-weight: 750; cursor: pointer; }
.manual-field-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.manual-field-grid label,.manual-full-field { display: grid; gap: 6px; }
.manual-field-grid label.wide { grid-column: span 2; }
.manual-field-grid label > span { color: #656575; font-size: 11px; font-weight: 750; }
.manual-field-grid input,.manual-field-grid select,.manual-field-grid textarea,.manual-full-field textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--ink); background: #fffefa; font: inherit; font-size: 13px; }
.manual-field-grid textarea,.manual-full-field textarea { min-height: 82px; resize: vertical; line-height: 1.7; }
.manual-full-field textarea { min-height: 140px; }
.manual-field-grid input:focus,.manual-field-grid select:focus,.manual-field-grid textarea:focus,.manual-full-field textarea:focus { border-color: rgba(101,82,191,.55); box-shadow: 0 0 0 3px rgba(101,82,191,.07); }
.manual-repeat-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.manual-repeat-list.compact { grid-template-columns: 1fr; }
.manual-repeat-item { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fbfaf6; }
.manual-repeat-item .manual-field-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.manual-item-head { margin-bottom: 14px; padding-bottom: 10px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.manual-item-head b { font-size: 13px; }
.manual-item-head button { border: 0; color: #a34e4e; background: transparent; font-size: 10px; cursor: pointer; }
.manual-empty { margin: 0; padding: 30px; grid-column: 1/-1; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; font-size: 12px; }

.rough-input-wrap:focus-within { border-color: rgba(101,82,191,.55); box-shadow: 0 0 0 3px rgba(101,82,191,.08); }
.rough-input-wrap textarea { width: 100%; min-height: 365px; padding: 20px; resize: vertical; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; line-height: 1.9; }
.rough-input-wrap textarea::placeholder { color: #aaa7b0; }
.rough-input-wrap > span { position: absolute; right: 12px; bottom: 9px; color: #aaa7b0; font-size: 9px; }
.rough-input-wrap > span b { color: var(--purple); }

.input-tips { margin: 13px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
.input-tips i { padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; font-style: normal; }
.full-button { width: 100%; min-height: 49px; display: flex; align-items: center; justify-content: center; gap: 11px; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.button-spark { color: #f8c866; }
.privacy-note { margin-top: 13px; display: flex; gap: 8px; color: #92909b; }
.privacy-note p { margin: 0; font-size: 9px; }

.conversation-column { background: rgba(239,235,247,.78); }
.completion-badge { color: var(--purple); background: rgba(101,82,191,.1); }
.conversation { min-height: 380px; max-height: 440px; margin-top: 18px; padding: 16px; overflow-y: auto; border: 1px solid rgba(101,82,191,.12); border-radius: 11px; background: rgba(255,255,255,.48); }
.conversation-empty { height: 335px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.conversation-empty .empty-orbit { width: 70px; height: 70px; border-color: rgba(101,82,191,.2); }
.conversation-empty .empty-orbit::before { border-color: rgba(101,82,191,.15); }
.conversation-empty h3 { margin: 18px 0 4px; font-size: 13px; }
.conversation-empty p { max-width: 245px; margin: 0; color: var(--muted); font-size: 9px; }

.message { margin-bottom: 13px; display: flex; gap: 9px; }
.message.user { flex-direction: row-reverse; }
.message-avatar { width: 29px; height: 29px; flex: none; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--purple); font-size: 11px; font-weight: 800; }
.message.user .message-avatar { background: var(--ink); }
.message-bubble { max-width: 82%; padding: 10px 12px; border-radius: 4px 12px 12px 12px; background: #fff; color: #555463; font-size: 10px; line-height: 1.7; box-shadow: 0 4px 12px rgba(48,43,70,.04); }
.message.user .message-bubble { border-radius: 12px 4px 12px 12px; background: var(--ink); color: #fff; }

.question-form { margin-top: 14px; }
.question-field { margin-bottom: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #fffdfa; }
.question-field label { display: block; font-size: 10px; font-weight: 750; }
.question-field small { display: block; margin: 2px 0 7px; color: var(--muted); font-size: 8px; }
.question-field textarea { width: 100%; min-height: 55px; padding: 8px 10px; resize: vertical; border: 1px solid var(--line); border-radius: 7px; outline: none; background: #fff; font-size: 10px; }
.question-field textarea:focus { border-color: var(--purple); }

.preview-column { position: sticky; top: 18px; }
.preview-heading .icon-button { padding: 0 10px; font-family: Consolas,monospace; }
.preview-placeholder { min-height: 475px; margin-top: 18px; padding: 32px 25px; border: 1px dashed rgba(37,38,55,.18); border-radius: 11px; color: #aaa8b0; text-align: center; }
.preview-placeholder > span { font-family: Georgia,serif; font-size: 9px; letter-spacing: .22em; }
.preview-placeholder > div { height: 75px; margin: 26px 0 20px; border-radius: 7px 20px 7px 20px; background: rgba(101,82,191,.07); }
.preview-placeholder > i { display: block; height: 8px; margin: 10px 0; border-radius: 10px; background: rgba(37,38,55,.06); }
.preview-placeholder > i:nth-of-type(2) { width: 75%; }
.preview-placeholder > i:nth-of-type(3) { width: 86%; }
.preview-placeholder p { margin-top: 80px; font-size: 9px; }

.guide-preview { max-height: 485px; margin-top: 18px; overflow: auto; border: 1px solid var(--line); border-radius: 11px; background: #fffefa; }
.preview-hero { padding: 21px; color: #fff; background: #29273e; }
.preview-hero span { color: #aaa4dc; font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.preview-hero h3 { margin: 7px 0 5px; font-size: 17px; }
.preview-hero p { margin: 0; color: #b7b4c3; font-size: 9px; line-height: 1.7; }
.preview-meta { margin-top: 9px; display: flex; gap: 8px; color: #8e8a9d; font-size: 8px; }
.preview-section { padding: 16px; border-bottom: 1px solid var(--line); }
.preview-section:last-child { border-bottom: 0; }
.preview-section h4 { margin: 0 0 10px; font-size: 10px; }
.preview-config { margin: 6px 0; padding: 9px; border-radius: 7px; background: rgba(101,82,191,.06); }
.preview-config b,.preview-config small { display:block; }
.preview-config b { font-size: 9px; }
.preview-config small { color: var(--muted); font-size: 8px; }
.preview-config em { display:block; margin-top:3px; color:#9a7426; font-size:7px; font-style:normal; }
.preview-round { margin: 7px 0; display: grid; grid-template-columns: 26px 1fr; gap: 7px; align-items: start; }
.preview-round > span { width: 26px; height: 26px; display: grid; place-items:center; border-radius: 8px; background: var(--ink); color:#fff; font-size:7px; }
.preview-round p { margin: 0; color: #5f5e6b; font-size: 8px; }
.preview-round p small { display:block; margin-top:3px; color:var(--purple); }
.preview-branch { margin:6px 0; padding:8px 9px; display:grid; gap:2px; border-left:2px solid var(--purple); background:rgba(89,101,232,.06); }
.preview-branch small,.preview-branch b,.preview-branch span { display:block; font-size:8px; }
.preview-branch small { color:#6f7890; }
.preview-branch span { color:#8a7652; }
.preview-warning { margin: 6px 0; padding: 7px 9px; border-left: 2px solid var(--yellow); background: rgba(241,189,82,.1); color: #77633b; font-size: 8px; }

.json-preview { min-height: 485px; max-height: 485px; margin: 18px 0 0; padding: 14px; overflow: auto; border: 1px solid var(--line); border-radius: 11px; background: #242334; color: #d7d4e3; font-family: Consolas,monospace; font-size: 9px; line-height: 1.6; white-space: pre-wrap; }
.import-area { margin-top: 14px; }
.import-button { width: 100%; min-height: 49px; padding: 0 17px; display: flex; justify-content: space-between; align-items:center; border: 0; border-radius: 11px; background: var(--orange); color: #fff; font-weight: 800; cursor: pointer; }
.import-button b { font-size: 18px; }
.import-button:disabled { background: #c9c5bd; cursor: not-allowed; }
.import-area p { margin: 7px 0 0; color: var(--muted); text-align:center; font-size: 8px; }

.demo-disclaimer { margin-top: 17px; padding: 13px 18px; display: flex; gap: 14px; border: 1px dashed rgba(37,38,55,.16); border-radius: 9px; color: var(--muted); font-size: 9px; }
.demo-disclaimer b { color: var(--purple); flex:none; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  max-width: min(430px, calc(100% - 32px));
  padding: 11px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: .25s ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #a34444; }

@media (min-width: 1041px) {
  .main-nav a { font-size: 14px; }
  .header-action { font-size: 13px; }
  .hero-copy > p { font-size: 16px; line-height: 1.85; }
  .hero-search input { font-size: 15px; }
  .section-heading > div > p { font-size: 15px; }
  .filter-button { font-size: 13px; }
  .type-tag,.verified-tag,.difficulty-tag,.guide-tag,.completion-badge { font-size: 11px; }
  .guide-card-summary { min-height: 78px; font-size: 14px; line-height: 1.85; }
  .guide-card-footer strong { font-size: 13px; }
  .guide-card-footer span { font-size: 11px; }

  .breadcrumbs { font-size: 13px; }
  .guide-hero > p { font-size: 16px; line-height: 1.9; }
  .guide-source-line { gap: 26px; font-size: 12px; }
  .guide-layout { grid-template-columns: 245px minmax(0,1fr); gap: 30px; }
  .guide-toc > span { font-size: 10px; }
  .guide-toc a { font-size: 13px; line-height: 1.6; }
  .content-section { padding: 36px; }
  .content-heading h2 { font-size: 24px; }
  .content-heading p { margin-top: 2px; font-size: 12px; }
  .aid-main small { font-size: 10px; }
  .aid-main h3 { font-size: 17px; }
  .aid-main p { margin-top: 3px; font-size: 12px; line-height: 1.6; }
  .aid-skills span { font-size: 11px; }
  .config-card { padding: 22px; }
  .config-card h3 { font-size: 17px; }
  .config-card-top small { font-size: 12px; }
  .config-detail { gap: 11px; }
  .config-detail p { font-size: 13px; line-height: 1.75; }
  .skill-list span,.stat-chips span { padding: 4px 8px; font-size: 11px; }
  .substitute-line span,.substitute-line small { font-size: 11px; }
  .substitute-line b { font-size: 13px; }
  .round-body { padding: 20px 22px; }
  .round-body h3 { font-size: 16px; }
  .round-body > p { font-size: 14px; line-height: 1.8; }
  .turn-action { min-height: 43px; padding: 9px 12px; }
  .turn-action b,.turn-action em { font-size: 13px; line-height: 1.6; }
  .round-notes span { padding: 10px 12px; font-size: 12px; line-height: 1.65; }
  .caution-item { padding: 17px 19px; font-size: 14px; line-height: 1.75; }
  .branch-trigger small,.branch-action small,.branch-otherwise small { font-size: 9px; }
  .branch-trigger strong,.branch-action strong { font-size: 13px; line-height: 1.65; }
  .branch-otherwise span,.branch-card > p { font-size: 12px; line-height: 1.65; }

  .ai-status { font-size: 12px; }
  .admin-intro-note p { font-size: 13px; line-height: 1.75; }
  .workflow-steps b { font-size: 13px; }
  .workflow-steps small { font-size: 11px; }
  .panel-heading h2 { font-size: 16px; }
  .panel-heading p { margin-top: 2px; font-size: 11px; }
  .rough-input-wrap textarea { font-size: 15px; line-height: 1.9; }
  .ai-edit-instruction textarea { font-size: 14px; }
  .rough-input-wrap > span,.input-tips,.privacy-note p { font-size: 11px; }
  .conversation-empty h3 { font-size: 16px; }
  .conversation-empty p { font-size: 12px; line-height: 1.7; }
  .message-bubble { font-size: 13px; line-height: 1.75; }
  .question-field label { font-size: 13px; }
  .question-field small { font-size: 11px; }
  .question-field textarea { font-size: 13px; }
  .preview-hero span { font-size: 10px; }
  .preview-hero h3 { font-size: 20px; }
  .preview-hero p { font-size: 12px; }
  .preview-meta { font-size: 10px; }
  .preview-section h4 { font-size: 13px; }
  .preview-config b { font-size: 12px; }
  .preview-config small,.preview-config em,.preview-round p,.preview-branch small,.preview-branch b,.preview-branch span,.preview-warning { font-size: 11px; line-height: 1.6; }
}

@media (max-width: 1040px) {
  .main-nav { gap: 18px; }
  .hero { grid-template-columns: minmax(0,1fr) minmax(370px,.8fr); gap: 38px; }
  .hero-board { padding: 28px; }
  .quick-stats > div { padding: 0 20px; }
  .editor-workspace { grid-template-columns: 1fr 1fr; }
  .preview-column { grid-column: 1 / -1; position: static; min-height: auto; }
  .preview-placeholder,.guide-preview,.json-preview { min-height: 360px; max-height: 520px; }
}

@media (max-width: 820px) {
  .shell { width: min(100% - 32px, var(--shell)); }
  .site-header { padding-inline: 16px; gap: 12px; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    display: none;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 12px; }
  .main-nav a.active::after { display: none; }
  .header-action { min-height: 42px; padding: 0 13px; }
  .header-action svg { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-copy { text-align: center; }
  .eyebrow,.hot-searches { justify-content: center; }
  .hero-copy > p,.hero-search { margin-inline: auto; }
  .hero-board { width: min(100%, 570px); margin: 0 auto; transform: none; }
  .quick-stats { grid-template-columns: repeat(3,1fr); }
  .quick-stats .stat-note { display: none; }
  .quick-stats > div:nth-child(3) { border-right: 0; }
  .guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .creator-layout { grid-template-columns: 1fr; gap: 45px; }
  .ai-banner { grid-template-columns: 80px 1fr; padding: 36px; }
  .banner-button { grid-column: 2; justify-self: start; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; }
  .guide-toc nav { grid-template-columns: repeat(3,1fr); }
  .admin-header { padding-inline:16px; }
  .admin-intro { align-items:flex-start; flex-direction:column; }
  .admin-intro-note { max-width: 100%; }
  .edit-mode-bar { margin-top: 24px; margin-bottom: -28px; align-items: stretch; flex-direction: column; }
  .edit-mode-tabs { width: 100%; }
  .edit-mode-tabs button { flex: 1; }
  .manual-field-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .manual-repeat-list { grid-template-columns: 1fr; }
  .workflow-steps li { padding: 10px; }
}

@media (max-width: 620px) {
  .site-header,.admin-header { min-height: 68px; }
  .brand-mark { width: 39px; height: 39px; font-size: 21px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { display: none; }
  .header-action span { display: none; }
  .header-action { width: 42px; padding: 0; justify-content:center; }
  .header-action::before { content:"AI"; }
  .hero { min-height: auto; padding-top: 43px; gap: 45px; }
  .hero h1 { font-size: clamp(46px,14vw,66px); }
  .hero-copy > p { font-size: 14px; }
  .hero-search { min-height: 56px; padding-left: 14px; }
  .hero-search button { min-width: 86px; padding: 0 13px; font-size: 12px; }
  .hero-board { min-height: auto; padding: 25px 19px; border-radius: 7px 27px 7px 27px; box-shadow: 9px 10px 0 rgba(101,82,191,.12); }
  .hero-board h2 { font-size: 25px; }
  .mission-card { grid-template-columns: 45px 1fr auto; min-height: 76px; padding: 11px; gap: 10px; }
  .mission-icon { width: 45px; height:45px; font-size:20px; }
  .quick-stats { min-height: 85px; }
  .quick-stats > div { padding: 0 8px; flex-direction:column; justify-content:center; gap: 0; text-align:center; }
  .quick-stats strong { font-size:22px; }
  .quick-stats span { font-size:9px; }
  .guide-section { padding-top:70px; padding-bottom:75px; }
  .section-heading { align-items:flex-start; flex-direction:column; gap:12px; }
  .filter-row { overflow-x:auto; padding-bottom:4px; }
  .filter-button { flex:none; }
  .result-count { display:none; }
  .guide-grid { grid-template-columns:1fr; }
  .guide-card { min-height:330px; }
  .creator-section { padding:65px 0; }
  .creator-card { grid-template-columns:45px 1fr auto; padding:12px; }
  .creator-avatar { width:45px; height:45px; }
  .ai-banner { margin-top:65px; margin-bottom:65px; padding:30px 24px; grid-template-columns:1fr; gap:18px; text-align:center; }
  .ai-glyph { margin:auto; }
  .banner-button { grid-column:1; justify-self:stretch; justify-content:center; }
  .footer-links { width:100%; display:grid; grid-template-columns:1fr 1fr; }
  .footer-bottom { flex-direction:column; gap:4px; }
  .guide-page { padding-top:25px; }
  .guide-hero { padding:30px 23px; }
  .guide-source-line { flex-direction:column; gap:5px; }
  .guide-toc { overflow:visible; }
  .guide-toc nav { min-width:0; grid-template-columns:repeat(2,1fr); }
  .content-section { padding:22px 16px; }
  .config-grid { grid-template-columns:1fr; }
  .aid-card { grid-template-columns:43px 1fr; }
  .aid-icon { width:43px; height:43px; }
  .aid-skills { grid-column:1/-1; justify-content:flex-start; }
  .round-item { grid-template-columns:43px 1fr; gap:9px; }
  .round-index { width:43px; min-height:43px; }
  .round-notes { grid-template-columns:1fr; }
  .turn-action { grid-template-columns:22px 1fr; }
  .turn-action i { display:none; }
  .turn-action em { grid-column:2; }
  .branch-card { grid-template-columns:30px 1fr; align-items:start; }
  .branch-arrow { display:none; }
  .branch-action,.branch-otherwise,.branch-card > p { grid-column:2; }
  .admin-header .brand-copy { display:none; }
  .admin-header-actions { margin-left:auto; }
  .ai-status > span { display:none; }
  .admin-main { padding-top:35px; }
  .admin-intro h1 { font-size:39px; }
  .workflow-steps { grid-template-columns:1fr 1fr; }
  .workflow-steps li:nth-child(2) { border-right:0; }
  .workflow-steps li:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .editor-workspace { grid-template-columns:1fr; }
  .preview-column { grid-column:auto; }
  .editor-column { min-height:auto; padding:17px; }
  .rough-input-wrap { min-height:330px; }
  .rough-input-wrap textarea { min-height:295px; }
  .conversation { min-height:300px; max-height:none; }
  .conversation-empty { height:270px; }
  .demo-disclaimer { flex-direction:column; gap:3px; }
  .manual-editor-heading { padding: 22px; align-items: stretch; flex-direction: column; }
  .manual-editor-heading .primary-button { width: 100%; justify-content: center; }
  .manual-section { padding: 18px; }
  .manual-field-grid,.manual-repeat-item .manual-field-grid { grid-template-columns: 1fr; }
  .manual-field-grid label.wide { grid-column: auto; }
}

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