:root {
  color-scheme: light;
  --page: oklch(0.982 0.006 230);
  --surface: oklch(0.997 0.003 230);
  --card: oklch(0.992 0.004 230);
  --ink: oklch(0.205 0.032 248);
  --muted: oklch(0.52 0.026 248);
  --line: oklch(0.89 0.016 230);
  --accent: oklch(0.61 0.16 250);
  --accent-2: oklch(0.58 0.14 176);
  --accent-soft: oklch(0.955 0.03 250);
  --code: oklch(0.19 0.026 248);
  --code-line: oklch(0.29 0.026 248);
  --radius: 18px;
  --shadow: 0 18px 44px color-mix(in oklch, var(--ink) 8%, transparent);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  line-height: 1.72;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 0%, color-mix(in oklch, var(--accent) 14%, transparent), transparent 30%),
    radial-gradient(circle at 92% 14%, color-mix(in oklch, var(--accent-2) 12%, transparent), transparent 26%),
    linear-gradient(color-mix(in oklch, var(--accent) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--accent) 6%, transparent) 1px, transparent 1px);
  background-size: auto, auto, 34px 34px, 34px 34px;
  mask-image: linear-gradient(180deg, black, rgba(0,0,0,.45) 55%, transparent);
  pointer-events: none;
}
a { color: inherit; }
button, input { font: inherit; }
code, pre { font-family: "Cascadia Code", Consolas, "SFMono-Regular", monospace; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border-radius: 10px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 max(22px, calc((100vw - 1320px) / 2));
  background: color-mix(in oklch, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(160%);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 8px 18px color-mix(in oklch, var(--ink) 12%, transparent); }
.brand strong { display: block; font-size: 15px; line-height: 1.1; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.header-links { display: flex; gap: 8px; align-items: center; }
.header-links a,
.primary-action,
.secondary-action,
.task-card,
.route-card,
.client-card button {
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.header-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in oklch, var(--surface) 72%, transparent);
  font-size: 13px;
  font-weight: 750;
}
.header-links a:hover { color: var(--ink); border-color: color-mix(in oklch, var(--accent) 35%, var(--line)); background: var(--surface); }
.header-links .support-link { color: white; background: var(--ink); border-color: var(--ink); }

main { max-width: 1320px; margin: 0 auto; padding: 22px 22px 76px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  align-items: stretch;
  padding: 32px 0 20px;
}
.hero-copy {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--surface) 0%, color-mix(in oklch, var(--accent-soft) 54%, var(--surface)) 100%);
  box-shadow: var(--shadow);
  animation: rise .7s cubic-bezier(.16,1,.3,1) both;
}
.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 11px;
  color: oklch(0.42 0.16 250);
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklch, var(--accent) 28%, var(--line));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}
h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.04;
  letter-spacing: 0;
}
.lede {
  max-width: 76ch;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 17px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.primary-action,
.secondary-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid var(--line);
}
.primary-action { color: white; background: var(--accent); border-color: var(--accent); box-shadow: 0 12px 28px color-mix(in oklch, var(--accent) 28%, transparent); }
.secondary-action { background: var(--surface); color: var(--ink); }

.config-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: color-mix(in oklch, var(--surface) 86%, transparent);
  box-shadow: var(--shadow);
  animation: rise .7s cubic-bezier(.16,1,.3,1) .08s both;
}
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.panel-title span { color: var(--muted); font-size: 12px; font-weight: 850; }
.panel-title b { padding: 5px 9px; color: oklch(0.36 0.13 158); background: oklch(0.94 0.04 158); border-radius: 999px; font-size: 12px; }
.config-row { display: grid; gap: 7px; padding: 13px 0; border-top: 1px solid var(--line); }
.config-row span { color: var(--muted); font-size: 12px; font-weight: 800; }
.config-row code { width: max-content; max-width: 100%; padding: 5px 8px; background: oklch(0.965 0.01 248); border: 1px solid var(--line); border-radius: 9px; overflow-wrap: anywhere; }
.config-row button,
.client-card button,
.code-head button {
  width: max-content;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.route-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 4px 0 22px; }
.route-card {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 12px 34px color-mix(in oklch, var(--ink) 5%, transparent);
}
.route-card strong { font-size: 18px; }
.route-card span { color: var(--muted); font-size: 13px; }
.route-card.active { border-color: color-mix(in oklch, var(--accent) 34%, var(--line)); background: color-mix(in oklch, var(--accent-soft) 44%, var(--surface)); }

.guide-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 26px; align-items: start; }
.toc {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 6px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in oklch, var(--surface) 88%, transparent);
  box-shadow: 0 12px 34px color-mix(in oklch, var(--ink) 5%, transparent);
}
.toc p { margin: 3px 8px 9px; color: oklch(0.62 0.03 248); font-size: 12px; font-weight: 850; }
.toc a { min-height: 36px; display: flex; align-items: center; padding: 8px 10px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 750; }
.toc a:hover, .toc a.active { color: oklch(0.42 0.16 250); background: var(--accent-soft); }
.guide { min-width: 0; display: grid; gap: 18px; }
.guide-section {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 12px 34px color-mix(in oklch, var(--ink) 5%, transparent);
  scroll-margin-top: 90px;
  animation: rise .64s cubic-bezier(.16,1,.3,1) both;
}
.section-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.section-heading > span {
  min-width: 44px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: oklch(0.42 0.16 250);
  font-size: 12px;
  font-weight: 900;
}
.section-heading p { margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 850; }
h2 { margin: 0; font-size: 25px; line-height: 1.22; }
.guide-section > p { max-width: 78ch; color: var(--muted); }

.task-grid, .client-grid, .split-note { display: grid; gap: 12px; }
.task-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.task-card, .client-card, .split-note div {
  min-height: 112px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  text-decoration: none;
}
.task-card b, .client-card h3, .split-note b { display: block; margin: 0 0 7px; font-size: 16px; }
.task-card small, .client-card p, .split-note span { color: var(--muted); font-size: 13px; line-height: 1.62; }
.notice {
  margin-top: 14px;
  padding: 15px 16px;
  border: 1px solid color-mix(in oklch, var(--accent-2) 32%, var(--line));
  border-radius: 16px;
  background: oklch(0.955 0.034 176);
}
.notice strong { display: block; margin-bottom: 4px; }
.notice p { margin: 0; color: var(--muted); }
.split-note { grid-template-columns: 1fr 1fr; margin-top: 14px; }

.code-block {
  margin: 16px 0 0;
  overflow: hidden;
  border: 1px solid var(--code-line);
  border-radius: 18px;
  background: var(--code);
  color: oklch(0.92 0.014 248);
}
.code-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid var(--code-line);
  color: oklch(0.72 0.02 248);
  font-size: 12px;
  font-weight: 800;
}
.code-head button { color: oklch(0.92 0.014 248); background: oklch(0.27 0.026 248); border-color: oklch(0.36 0.026 248); }
.code-block pre { margin: 0; padding: 16px; overflow-x: auto; font-size: 13px; line-height: 1.7; }

.os-switch {
  width: max-content;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: oklch(0.955 0.012 248);
}
.os-switch button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.os-switch button[aria-selected="true"] { color: white; background: var(--ink); box-shadow: 0 8px 18px color-mix(in oklch, var(--ink) 14%, transparent); }
.os-panel[hidden] { display: none; }
.os-panel p { color: var(--muted); }
.client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.client-card { display: flex; flex-direction: column; }
.client-card button { margin-top: auto; }
.hidden-copy { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { padding: 14px 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-weight: 850; }
.faq-list summary span { color: var(--muted); font-size: 13px; font-weight: 650; }
.faq-list p { margin: 10px 0 0; color: var(--muted); }

footer {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 22px 44px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}
footer a { color: oklch(0.42 0.16 250); font-weight: 800; text-decoration: none; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  padding: 10px 15px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.spotlight-card {
  position: relative;
  overflow: hidden;
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: color-mix(in oklch, var(--accent) 16%, transparent);
}
.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 58%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.spotlight-card:hover::before, .spotlight-card:focus-within::before { opacity: .75; }
.spotlight-card > * { position: relative; z-index: 1; }

.spotlight-card::before {
  display: none !important;
}

.primary-action::after,
.secondary-action::after,
.header-links a::after,
.client-card button::after,
.code-head button::after,
.config-row button::after {
  content: "";
  position: absolute;
  inset: -45% auto -45% -60%;
  width: 44%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
  opacity: 0;
  transition: left .62s cubic-bezier(.16,1,.3,1), opacity .2s ease;
}
.primary-action:hover::after,
.secondary-action:hover::after,
.header-links a:hover::after,
.client-card button:hover::after,
.code-head button:hover::after,
.config-row button:hover::after {
  left: 116%;
  opacity: .95;
}

.primary-action::after,
.secondary-action::after,
.header-links a::after,
.client-card button::after,
.code-head button::after,
.config-row button::after {
  display: none !important;
}

.primary-action,
.secondary-action,
.header-links a,
.client-card button,
.code-head button,
.config-row button,
.route-card,
.task-card,
.client-card {
  transform: none !important;
  transition: background .12s ease, border-color .12s ease, color .12s ease, box-shadow .12s ease !important;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px) scale(.992); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .hero, .guide-layout { grid-template-columns: 1fr; }
  .toc { position: relative; top: auto; display: flex; overflow-x: auto; }
  .toc p { display: none; }
  .toc a { white-space: nowrap; }
  .client-grid, .task-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header { min-height: 60px; padding: 10px 14px; }
  .brand small, .header-links a:not(.support-link) { display: none; }
  main { padding: 12px 12px 54px; }
  .hero { padding-top: 10px; gap: 12px; }
  .hero-copy, .config-panel, .guide-section { padding: 18px; border-radius: 22px; }
  h1 { font-size: 34px; }
  .lede { font-size: 15px; }
  .hero-actions { display: grid; }
  .primary-action, .secondary-action { width: 100%; min-height: 46px; }
  .route-strip { grid-template-columns: 1fr; }
  .guide-layout { gap: 12px; }
  .os-switch { width: 100%; }
  .split-note { grid-template-columns: 1fr; }
  .section-heading { display: grid; gap: 10px; }
  .code-block pre { font-size: 12px; }
  footer { flex-direction: column; padding: 22px 14px 38px; }
  body { overflow-x: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.hero-copy,
.config-panel,
.guide-section {
  animation: none !important;
}


/* CC Switch guide section */
.cc-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.cc-download b,
.cc-steps h3,
.cc-table-card h3 {
  display: block;
  margin: 0 0 6px;
  font-size: 16px;
}
.cc-download span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.cc-download a,
.cc-copy {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid color-mix(in oklch, var(--accent) 40%, var(--line));
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-weight: 850;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.cc-guide-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 14px;
  margin-top: 14px;
}
.cc-steps,
.cc-table-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.cc-steps ol {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.72;
}
.cc-steps li + li { margin-top: 6px; }
.cc-config-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 13px;
}
.cc-config-table th,
.cc-config-table td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.cc-config-table tr:last-child th,
.cc-config-table tr:last-child td { border-bottom: 0; }
.cc-config-table th {
  width: 116px;
  color: var(--ink);
  background: var(--surface-soft);
  font-weight: 850;
}
.cc-config-table td { color: var(--muted); }
.cc-config-table code {
  color: var(--ink);
  word-break: break-all;
}
.cc-copy { margin-top: 12px; }
.cc-screenshot {
  margin: 16px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}
.cc-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
}
.cc-screenshot figcaption {
  margin: 10px 4px 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.cc-important { margin-top: 16px; }
@media (max-width: 860px) {
  .cc-download,
  .cc-guide-grid { grid-template-columns: 1fr; }
  .cc-download { display: grid; }
  .cc-download a,
  .cc-copy { width: 100%; }
}
