:root {
  color-scheme: light;
  --paper: #fcfbf9;
  --ink: #171717;
  --muted: #686562;
  --rule: #e5e1dc;
  --accent: #4338ca;
  --soft: #efedf8;
  --surface: #ffffffb8;
  --wash: #f4f2f8;
}
html.dark {
  color-scheme: dark;
  --paper: #171717;
  --ink: #f4f1eb;
  --muted: #b3aea7;
  --rule: #3b3937;
  --accent: #b4acf8;
  --soft: #302b45;
  --surface: #25272dc9;
  --wash: #201f25;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
h1,
h2,
p {
  margin: 0;
}
.page {
  max-width: 1392px;
  margin: auto;
  padding: 0 72px;
}
.page-header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  gap: 20px;
}
.brand {
  font:
    italic 29px "Playfair Display",
    Georgia,
    serif;
  letter-spacing: -1px;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 17px;
  color: var(--muted);
  font-size: 11px;
}
#theme {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--surface);
}
#theme svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.section-intro {
  padding: 43px 0 33px;
}
.eyebrow {
  font:
    10px "JetBrains Mono",
    monospace;
  letter-spacing: 0.19em;
  color: var(--muted);
  margin-bottom: 17px;
}
h1 {
  font-size: 37px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.03em;
}
h1 span {
  color: var(--accent);
}
.tabs-wrap {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
#capability-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  padding: 5px;
  border: 1px solid var(--rule);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 #ffffff33;
  backdrop-filter: blur(14px);
}
.capability-tab {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  min-height: 52px;
  padding: 11px 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  font-size: 12px;
  transition:
    background 0.18s,
    color 0.18s;
}
.capability-tab small {
  font:
    9px "JetBrains Mono",
    monospace;
  color: var(--muted);
}
.capability-tab[aria-selected="true"] {
  color: var(--accent);
  background: var(--soft);
  border-color: color-mix(in srgb, var(--accent) 16%, transparent);
}
.capability-tab[aria-selected="true"] small {
  color: var(--accent);
}
.capability-tab:hover {
  background: var(--soft);
}
.panel-intro {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px 0 24px;
}
.panel-kicker {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 11px;
  font-size: 10px;
  color: var(--accent);
}
#position {
  font:
    9px "JetBrains Mono",
    monospace;
  color: var(--muted);
}
h2 {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.play-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.play-hint i {
  height: 5px;
  width: 5px;
  background: var(--accent);
  border-radius: 50%;
}
#player-mount {
  min-height: 950px;
  position: relative;
}
#player-mount[aria-busy="true"]:before {
  content: "正在准备动效…";
  position: absolute;
  inset: 0 0 auto;
  top: 140px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
iframe {
  display: block;
  width: 100%;
  height: 1000px;
  border: 0;
  background: var(--paper);
}
iframe[data-ready="false"] {
  opacity: 0;
}
iframe[data-ready="true"] {
  opacity: 1;
}
.preview-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 0;
  padding: 22px 0 30px;
  border-top: 1px solid var(--rule);
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
@media (max-width: 1100px) {
  .page {
    padding: 0 32px;
  }
  .capability-tab {
    font-size: 11px;
    gap: 6px;
    padding: 10px 3px;
  }
  .capability-tab small {
    font-size: 8px;
  }
  h1 {
    font-size: 34px;
  }
}
@media (max-width: 760px) {
  .page {
    padding: 0 20px;
  }
  .page-header {
    height: 72px;
  }
  .brand {
    font-size: 24px;
  }
  .header-tools {
    font-size: 9px;
    gap: 10px;
  }
  .section-intro {
    padding: 30px 0 21px;
  }
  .eyebrow {
    font-size: 8px;
    margin-bottom: 14px;
  }
  h1 {
    font-size: 28px;
  }
  .tabs-wrap {
    padding: 10px 0;
  }
  #capability-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 13px;
  }
  .capability-tab {
    min-height: 43px;
    font-size: 11px;
    gap: 6px;
  }
  .panel-intro {
    padding: 22px 0 20px;
    align-items: flex-start;
  }
  .panel-kicker {
    margin-bottom: 9px;
  }
  h2 {
    font-size: 19px;
  }
  .play-hint {
    display: none;
  }
  .preview-footer {
    font-size: 9px;
    display: block;
    padding-top: 18px;
  }
  .preview-footer > span {
    display: block;
  }
  .preview-footer > span + span {
    margin-top: 5px;
  }
}
@media (max-width: 360px) {
  .page {
    padding: 0 12px;
  }
  .brand {
    font-size: 22px;
  }
  .header-tools > span {
    max-width: 72px;
    text-align: right;
    line-height: 1.6;
  }
  h1 {
    font-size: 24px;
  }
  .capability-tab {
    font-size: 10px;
    gap: 4px;
  }
  .capability-tab small {
    font-size: 8px;
  }
  h2 {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Embedded section: use the website width without another navigation shell. */
.page {
  max-width: none;
  padding: 0 2px;
}
.section-intro {
  padding-top: 0;
}
.tabs-wrap {
  position: relative;
  top: auto;
}
.preview-footer {
  padding-bottom: 4px;
}
#player-mount {
  min-height: 1000px;
}
.load-error {
  padding: 60px 24px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.9;
}
.load-error button {
  margin-top: 16px;
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 10px 16px;
  border-radius: 8px;
}
@media (max-width: 760px) {
  .page {
    padding: 0 2px;
  }
  .section-intro {
    padding-top: 0;
  }
  .preview-footer {
    margin-top: 14px;
  }
}
