:root {
  --guide-surface: rgba(11, 23, 40, 0.72);
  --guide-surface-strong: rgba(14, 29, 50, 0.94);
  --guide-surface-soft: rgba(255, 255, 255, 0.035);
  --guide-surface-hover: rgba(79, 180, 241, 0.08);
  --guide-code: rgba(3, 10, 19, 0.72);
  --guide-shadow: 0 24px 80px rgba(0, 5, 16, 0.24);
}

html[data-language="zh"] [data-lang="en"],
html[data-language="en"] [data-lang="zh"] {
  display: none !important;
}

.guide-page {
  background:
    radial-gradient(circle at 82% 13%, rgba(31, 155, 214, 0.11), transparent 24%),
    radial-gradient(circle at 22% 32%, rgba(43, 100, 201, 0.08), transparent 28%),
    var(--bg);
}

.guide-page code,
.guide-page kbd {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.guide-page code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue-bright);
  background: var(--guide-code);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.guide-page kbd {
  min-width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-bottom-color: rgba(110, 203, 255, 0.4);
  border-radius: 7px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  box-shadow: 0 3px 0 rgba(1, 6, 13, 0.54);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.guide-hero {
  position: relative;
  padding: 150px 0 86px;
}

.guide-hero::after {
  content: "";
  position: absolute;
  right: 6%;
  bottom: 10%;
  width: 420px;
  height: 420px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(55, 181, 222, 0.11), transparent 68%);
}

.guide-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(500px, 1.05fr);
  align-items: center;
  gap: 68px;
}

.guide-hero-copy {
  position: relative;
  z-index: 2;
}

.guide-kicker,
.bookmark-eyebrow {
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.guide-hero h1 {
  max-width: 780px;
  margin: 22px 0 24px;
  font-size: clamp(54px, 5.3vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.guide-hero h1 span {
  background: linear-gradient(105deg, #ffffff 10%, #a9dfff 55%, #78e4d5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.guide-hero-copy > p {
  max-width: 680px;
  margin: 0;
  color: var(--text-soft);
  font-size: 19px;
  line-height: 1.8;
}

.guide-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.guide-hero-actions .button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.guide-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 25px;
  color: var(--text-muted);
  font-size: 14px;
}

.guide-hero-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.guide-hero-meta i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(75, 216, 200, 0.65);
}

.guide-workbench {
  position: relative;
  z-index: 1;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: rgba(7, 15, 27, 0.92);
  box-shadow: 0 42px 110px rgba(0, 4, 13, 0.5), inset 0 1px rgba(255, 255, 255, 0.05);
  transform: perspective(1100px) rotateY(-3deg) rotateX(1deg);
}

.guide-window-bar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid rgba(140, 183, 225, 0.12);
  background: rgba(13, 24, 40, 0.94);
}

.guide-window-bar > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dcecff;
  font-size: 12px;
  font-weight: 700;
}

.guide-window-bar img {
  width: 23px;
  height: 23px;
}

.guide-window-bar > div {
  display: flex;
  gap: 13px;
}

.guide-window-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #496178;
}

.guide-window-body {
  min-height: 468px;
  display: grid;
  grid-template-columns: 46px 145px 1fr;
}

.guide-window-rail {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 17px;
  padding-top: 20px;
  border-right: 1px solid rgba(140, 183, 225, 0.1);
  background: #08111e;
}

.guide-window-rail i {
  width: 17px;
  height: 17px;
  border: 1px solid #48647c;
  border-radius: 5px;
}

.guide-window-rail i.active {
  border-color: var(--teal);
  background: rgba(75, 216, 200, 0.14);
  box-shadow: 0 0 14px rgba(75, 216, 200, 0.22);
}

.guide-window-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 22px 14px;
  border-right: 1px solid rgba(140, 183, 225, 0.1);
  color: #71869d;
  background: #0b1625;
  font-size: 11px;
}

.guide-window-nav small {
  margin-bottom: 8px;
  color: #557189;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.guide-window-nav b,
.guide-window-nav span {
  padding: 7px 8px;
  border-radius: 7px;
}

.guide-window-nav b {
  color: #dcecff;
  background: rgba(54, 160, 225, 0.12);
}

.guide-window-main {
  min-width: 0;
  background:
    linear-gradient(rgba(72, 129, 182, 0.025) 1px, transparent 1px),
    #0c1828;
  background-size: 100% 28px;
}

.guide-window-tabs {
  height: 38px;
  display: flex;
  border-bottom: 1px solid rgba(140, 183, 225, 0.1);
  color: #60788f;
  font-size: 10px;
}

.guide-window-tabs span {
  padding: 13px 15px 0;
  border-right: 1px solid rgba(140, 183, 225, 0.09);
}

.guide-window-tabs span.active {
  color: #dcecff;
  background: rgba(255, 255, 255, 0.025);
}

.guide-window-card {
  width: calc(100% - 48px);
  margin: 42px 24px 24px;
  padding: 22px;
  border: 1px solid rgba(103, 186, 235, 0.2);
  border-radius: 16px;
  background: rgba(7, 17, 30, 0.78);
  box-shadow: 0 18px 50px rgba(0, 4, 13, 0.25);
}

.guide-window-card > small {
  color: var(--teal);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.guide-window-card > strong {
  display: block;
  margin: 8px 0 20px;
  color: #eef7ff;
  font-size: 17px;
}

.guide-window-card > div:not(.guide-window-test) {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(140, 183, 225, 0.1);
  color: #617b93;
  font-size: 10px;
}

.guide-window-card b {
  overflow: hidden;
  color: #a8bdd2;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-window-test {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: #7ce3c8;
  font-size: 10px;
}

.guide-window-test i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55ddb6;
  box-shadow: 0 0 12px rgba(85, 221, 182, 0.58);
}

.guide-window-keys {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 24px;
  padding: 18px;
  border: 1px solid rgba(140, 183, 225, 0.12);
  border-radius: 14px;
  background: rgba(9, 20, 34, 0.84);
}

.guide-window-keys kbd {
  min-width: auto;
  padding: 5px 7px;
  color: #d7edff;
  font-size: 9px;
}

.guide-window-keys b {
  color: #506a82;
  font-size: 10px;
}

.guide-window-keys span {
  margin-left: auto;
  color: #7590aa;
  font-size: 10px;
}

.guide-window-glow {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(35, 175, 201, 0.15);
  filter: blur(85px);
}

.guide-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  align-items: start;
  gap: 44px;
  padding-bottom: 120px;
}

.guide-bookmarks {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 116px);
  overflow: auto;
  padding: 26px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--guide-surface);
  box-shadow: var(--guide-shadow);
  backdrop-filter: blur(18px);
  scrollbar-width: thin;
}

.bookmark-heading h2 {
  margin: 6px 0 4px;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.bookmark-heading p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.bookmark-eyebrow {
  font-size: 13px;
}

.bookmark-track {
  position: absolute;
  top: 132px;
  bottom: 62px;
  left: 28px;
  width: 1px;
  overflow: hidden;
  background: var(--line);
}

.bookmark-progress-bar {
  display: block;
  width: 100%;
  height: 8.333%;
  background: linear-gradient(to bottom, var(--blue-bright), var(--teal));
  box-shadow: 0 0 10px rgba(75, 216, 200, 0.48);
  transition: height 240ms ease;
}

.bookmark-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bookmark-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 41px;
  padding: 9px 10px 9px 20px;
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.35;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.bookmark-link i {
  width: 20px;
  color: #506b84;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.bookmark-link:hover {
  color: var(--text);
  background: var(--guide-surface-hover);
  transform: translateX(2px);
}

.bookmark-link.is-active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(54, 165, 230, 0.14), rgba(54, 165, 230, 0.02));
}

.bookmark-link.is-active i {
  color: var(--teal);
}

.bookmark-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding: 14px 10px 0 20px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 14px;
}

.bookmark-top:hover {
  color: var(--blue-bright);
}

.guide-content {
  min-width: 0;
}

.guide-section {
  scroll-margin-top: 96px;
  margin-bottom: 30px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 30%),
    var(--guide-surface);
  box-shadow: var(--guide-shadow);
  backdrop-filter: blur(16px);
}

.guide-section-heading {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  margin-bottom: 30px;
}

.section-index {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(73, 183, 232, 0.28);
  border-radius: 15px;
  color: var(--teal);
  background: rgba(50, 158, 218, 0.08);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.guide-section-heading .eyebrow,
.guide-finish .eyebrow {
  color: var(--blue-bright);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.guide-section-heading h2 {
  margin: 6px 0 8px;
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.guide-section-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
}

.subheading {
  margin: 34px 0 16px;
  color: var(--text);
  font-size: 18px;
  letter-spacing: -0.025em;
}

.guide-grid {
  display: grid;
  gap: 14px;
}

.guide-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--guide-surface-soft);
}

.guide-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.guide-card > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 16px;
}

.guide-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.card-number {
  display: block;
  margin-bottom: 20px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.step-list {
  display: grid;
  gap: 12px;
}

.step-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--guide-surface-soft);
}

.step-list article > i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #06111f;
  background: linear-gradient(135deg, var(--blue-bright), var(--teal));
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.step-list h3 {
  margin: 1px 0 7px;
  font-size: 18px;
}

.step-list p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.guide-callout {
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid rgba(79, 175, 231, 0.2);
  border-radius: 16px;
  background: rgba(45, 149, 211, 0.065);
}

.guide-callout.accent {
  border-color: rgba(75, 216, 200, 0.25);
  background: linear-gradient(135deg, rgba(75, 216, 200, 0.095), rgba(44, 125, 210, 0.055));
}

.guide-callout.warning {
  border-color: rgba(255, 207, 112, 0.25);
  background: rgba(255, 188, 71, 0.06);
}

.guide-callout strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 15px;
}

.guide-callout p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.panel-control-list,
.toolbar-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.panel-control-list > div,
.toolbar-guide > div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--guide-surface-soft);
}

.panel-control-list strong,
.toolbar-guide strong {
  display: block;
  margin: 13px 0 7px;
  font-size: 15px;
}

.panel-control-list p,
.toolbar-guide p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.panel-glyph {
  position: relative;
  width: 30px;
  height: 22px;
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
}

.panel-glyph::after {
  content: "";
  position: absolute;
  background: linear-gradient(180deg, var(--blue-bright), var(--teal));
}

.panel-glyph.left::after {
  inset: 2px auto 2px 2px;
  width: 7px;
  border-radius: 3px 0 0 3px;
}

.panel-glyph.right::after {
  inset: 2px 2px 2px auto;
  width: 7px;
  border-radius: 0 3px 3px 0;
}

.panel-glyph.bottom::after {
  inset: auto 2px 2px;
  height: 6px;
  border-radius: 0 0 3px 3px;
}

.guide-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--guide-surface-soft);
}

.guide-flow > span {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 12px;
}

.guide-flow b {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--teal);
  background: rgba(75, 216, 200, 0.1);
  font-size: 11px;
}

.guide-flow > i {
  width: 20px;
  height: 1px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

.guide-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--guide-surface-soft);
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.guide-table th,
.guide-table td {
  padding: 16px 17px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.guide-table th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.guide-table tbody tr:last-child td {
  border-bottom: 0;
}

.guide-table tbody tr:hover td {
  background: rgba(70, 169, 226, 0.035);
}

.model-fields {
  margin-top: 16px;
}

.guide-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
  list-style: none;
}

.guide-list li {
  position: relative;
  padding-left: 15px;
}

.guide-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(75, 216, 200, 0.4);
}

.guide-list b {
  color: var(--text);
  font-weight: 700;
}

.compact-cards .guide-card {
  padding: 20px;
}
