:root {
  --bg: #f4f7fb;
  --paper: rgba(255, 255, 255, 0.92);
  --paper-strong: #ffffff;
  --text: #1a2440;
  --muted: #63708a;
  --line: rgba(24, 35, 56, 0.07);
  --brand: #10b981;
  --brand-strong: #059669;
  --brand-soft: rgba(16, 185, 129, 0.1);
  --shadow: 0 18px 48px rgba(24, 35, 56, 0.07);
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --code-bg: #0f172a;
  --code-text: #deebff;
  --anchor-offset: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

[id] {
  scroll-margin-top: var(--anchor-offset);
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(37, 211, 183, 0.12), transparent 26%),
    linear-gradient(180deg, #f6f8fc 0%, #eef4fb 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.doc-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 22px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.brand-wrap,
.brand,
.topbar-actions,
.hero-actions,
.platform-tabs,
.code-head,
.hero-panel,
.badge-row,
.flow-strip,
.sidebar-nav,
.summary-list,
.faq-list {
  display: flex;
}

.brand-wrap,
.brand,
.topbar-actions {
  align-items: center;
}

.brand-wrap {
  gap: 14px;
}

.brand {
  gap: 14px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.14);
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.topbar-badge,
.eyebrow,
.section-kicker,
.sidebar-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.step-kicker {
  position: absolute;
  top: 18px;
  left: 18px;
  margin: 0;
  padding: 7px 16px 8px;
  border: 0;
  border-radius: 18px 18px 18px 6px;
  background: linear-gradient(135deg, #1892dc 0%, #1bcdbd 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px rgba(24, 146, 220, 0.2);
}

.section-card.step-section {
  position: relative;
  padding-top: 96px;
}

.section-card.step-section .section-head {
  margin-bottom: 16px;
}

.section-card.step-section .section-head h2 {
  margin-top: 0;
}

#step-two.section-card.step-section {
  padding-top: 88px;
}

#step-two.section-card.step-section .section-head {
  margin-bottom: 0;
}

#step-two.section-card.step-section .section-head h2 {
  position: absolute;
  top: 21px;
  left: 112px;
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
}

.step-transition-tip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 16px 34px rgba(245, 158, 11, 0.12);
}

.step-transition-tip-inline {
  margin: 0 0 24px;
}

.step-transition-mark {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.24);
}

.step-transition-tip .step-transition-copy h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.step-transition-tip .step-transition-copy p {
  margin: 0;
  color: #7c3b04;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
}

.topbar-actions {
  gap: 10px;
}

.ghost-link,
.primary-btn,
.secondary-btn,
.stack-btn,
.copy-btn,
.tab-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: 0.18s ease;
}

.ghost-link,
.secondary-btn,
.stack-btn,
.copy-btn,
.tab-btn {
  background: #ffffff;
  color: var(--text);
  border-color: var(--line);
}

.primary-btn,
.secondary-btn,
.ghost-link,
.stack-btn,
.tab-btn {
  padding: 10px 16px;
  font-weight: 650;
}

.home-btn {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.24);
}

.home-btn:hover {
  border-color: transparent;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(16, 185, 129, 0.3);
}

.primary-btn {
  background: linear-gradient(135deg, var(--brand), #34d399);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.26);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.34);
}

.accent-btn {
  background: linear-gradient(135deg, var(--brand), #34d399);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.18);
  padding-top: 8px;
  padding-bottom: 8px;
}

.accent-btn:hover {
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(16, 185, 129, 0.24);
}

.secondary-btn:hover,
.ghost-link:hover,
.stack-btn:hover,
.copy-btn:hover,
.tab-btn:hover {
  border-color: rgba(16, 185, 129, 0.24);
  color: var(--brand-strong);
  transform: translateY(-1px);
}

.text-link {
  color: var(--brand-strong);
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

.page-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr) 248px;
  gap: 22px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 96px;
}

.rightbar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.sidebar,
.rightbar,
.content {
  min-width: 0;
}

.sidebar-card,
.section-card {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.sidebar-card {
  border-radius: var(--radius-lg);
  padding: 16px;
}

.sidebar .sidebar-card + .sidebar-card,
.rightbar .sidebar-card + .sidebar-card {
  margin-top: 14px;
}

.sidebar-nav {
  flex-direction: column !important;
  gap: 6px;
  margin-top: 10px;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  display: block !important;
  width: 100% !important;
  text-align: left !important;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(16, 185, 129, 0.08);
  color: var(--brand-strong);
}

.tutorial-switch-card {
  display: grid;
  gap: 16px;
}

.tutorial-switch-group {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.tutorial-switch-list {
  display: flex;
  flex-direction: column !important;
  gap: 8px;
  margin-top: 0;
  width: 100%;
}

.tutorial-switch-group + .tutorial-switch-group {
  margin-top: 4px;
}

.tutorial-switch-card .tutorial-switch-group:nth-of-type(2) {
  display: none;
}

.tutorial-switch-item {
  display: flex !important;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-align: left;
  transition: 0.18s ease;
}

.tutorial-switch-item:hover,
.tutorial-switch-item.active {
  border-color: rgba(16, 185, 129, 0.24);
  background: rgba(16, 185, 129, 0.07);
  color: var(--brand-strong);
  box-shadow: none;
}

.tutorial-switch-card .sidebar-kicker {
  justify-self: start;
  width: auto;
  padding: 8px 14px 9px;
  border-radius: 16px 16px 16px 6px;
  background: linear-gradient(135deg, #1892dc 0%, #1bcdbd 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 10px 22px rgba(24, 146, 220, 0.2);
}

.mono-block {
  margin: 12px 0 10px;
  position: relative;
  padding: 12px 108px 12px 14px;
  border-radius: 16px;
  background: var(--code-bg);
  color: var(--code-text);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.mono-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #eef4ff;
  backdrop-filter: blur(10px);
}

.mono-copy-btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: none;
}

.side-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.copy-stack {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.copy-item {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(16, 185, 129, 0.12);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05), rgba(255, 255, 255, 0.96));
  box-shadow: 0 10px 24px rgba(24, 35, 56, 0.05);
  overflow: hidden;
}

.copy-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.copy-item-label {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  min-width: 0;
  overflow-wrap: anywhere;
}

.copy-item-note {
  display: inline;
  margin-top: 0;
  margin-left: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.contact-jump-card .copy-item-head {
  align-items: flex-start;
  gap: 14px;
  flex-wrap: nowrap;
}

.contact-jump-card .copy-item-label {
  flex: 1 1 auto;
  min-width: 0;
}

.contact-jump-card .copy-item-tip {
  margin-top: 6px;
}

.contact-jump-card .copy-inline-btn {
  margin-left: auto;
}

.contact-jump-note {
  white-space: nowrap;
}

.copy-item-value {
  margin: 0;
  padding: 12px 13px;
  border-radius: 12px;
  background: #101827;
  color: #eef4ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.copy-item-tip {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.copy-item-subvalue {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.18);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), rgba(255, 255, 255, 0.97));
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.copy-item-subvalue code {
  display: inline-block;
  margin: 0 4px;
  padding: 2px 7px;
  border-radius: 8px;
  background: #111827;
  color: #edf5ff;
  font-size: 0.92em;
  font-weight: 800;
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.copy-item-plain {
  padding: 16px 16px 14px;
}

.copy-item-plain .copy-item-head {
  align-items: center;
  margin-bottom: 0;
  flex-wrap: nowrap;
}

.endpoint-item .copy-item-head {
  margin-bottom: 12px;
}

.endpoint-list {
  display: grid;
  gap: 10px;
}

.endpoint-block {
  display: grid;
  gap: 6px;
}

.endpoint-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 24px;
}

.endpoint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: #101827;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.endpoint-row-copy {
  cursor: pointer;
  text-align: left;
  transition: 0.18s ease;
}

.endpoint-row-copy:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 148, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 24px rgba(16, 24, 39, 0.18);
}

.endpoint-row-copy:focus-visible {
  outline: none;
  border-color: rgba(16, 185, 129, 0.72);
  box-shadow:
    0 0 0 3px rgba(16, 185, 129, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.endpoint-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.endpoint-copy-feedback {
  color: #10b981;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  white-space: nowrap;
}

.endpoint-copy-feedback.show {
  opacity: 1;
  transform: translateY(0);
}

.endpoint-link {
  min-width: 0;
  color: #eef4ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.endpoint-link:hover {
  color: #ffffff;
}

.copy-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  border-color: rgba(16, 185, 129, 0.18);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}

.content {
  display: grid;
  gap: 18px;
}

.section-card {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.hero-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}

.hero-card-simple {
  gap: 0;
}

.hero-flow {
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(24, 35, 56, 0.06);
}

.hero-support-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 22px 24px;
  border-color: rgba(16, 185, 129, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 255, 0.92));
  text-align: center;
}

.hero-support-copy {
  display: grid;
  gap: 6px;
  justify-items: center;
  width: 100%;
}

.hero-support-copy p {
  margin: 0;
  color: #304260;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.75;
}

.hero-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  width: 60%;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  background: linear-gradient(135deg, var(--brand), #34d399);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.2);
  transition: 0.18s ease;
}

.hero-support-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(16, 185, 129, 0.26);
}

.hero-copy h1 {
  margin: 10px 0 6px;
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.hero-copy .lead + .lead {
  margin-top: 10px;
}

.badge-row {
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 700;
}

.hero-actions {
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.hero-panel {
  gap: 14px;
  flex-direction: column;
}

.mini-panel,
.info-card,
.step-card,
.step-block,
.faq-item,
.code-card,
.tip-box {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.mini-panel {
  padding: 18px 20px;
}

.mini-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.mini-value {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 800;
}

.section-head {
  margin-bottom: 18px;
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.compact-head {
  margin-top: 26px;
}

.section-head h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.section-title-row h2 {
  margin-bottom: 0;
}

.section-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.2);
}

.section-inline-btn:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(16, 185, 129, 0.28);
}

.section-head h3 {
  margin: 12px 0 6px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.grid-two,
.code-grid,
.step-list,
.subsection-grid,
.path-grid,
.status-grid,
.visual-grid {
  display: grid;
  gap: 14px;
}

.grid-two {
  grid-template-columns: 1fr;
}

.code-grid {
  grid-template-columns: 1fr;
}

.subsection-grid {
  grid-template-columns: 1fr;
}

.path-grid {
  grid-template-columns: 1fr;
}

.tool-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.tool-choice-grid.single-choice-grid {
  grid-template-columns: 1fr;
}

.tool-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.status-grid {
  grid-template-columns: 1fr;
  margin-top: 14px;
}

.visual-grid {
  grid-template-columns: 1fr;
  margin-top: 14px;
}

.setup-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.setup-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.setup-card-wide {
  grid-column: 1 / -1;
}

.setup-card-head {
  display: grid;
  gap: 12px;
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.setup-card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.manual-step-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.manual-step-title-row > span:last-child {
  flex: 1 1 auto;
  min-width: 0;
}

.setup-card-head h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
  white-space: normal;
  flex: 1 1 auto;
}

.setup-step-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1;
  margin-top: 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.22);
}

.setup-card-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(20, 184, 166, 0.14));
  color: #1f3960;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

.setup-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.setup-card-body-wide {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: stretch;
}

.setup-media-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 22px 18px;
  background: linear-gradient(180deg, #f4f9ff 0%, #fbfdff 100%);
  border-bottom: 1px solid var(--line);
}

.setup-card-body-wide .setup-media-frame {
  min-height: 236px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.setup-media {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(24, 35, 56, 0.1);
  background: #ffffff;
}

.setup-copy {
  padding: 18px 20px 20px;
}

.setup-copy-top {
  border-bottom: 1px solid var(--line);
}

.setup-card-body-wide .setup-copy {
  display: flex;
  align-items: center;
  padding: 22px 24px;
}

.download-step-copy {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.download-step-copy p {
  margin: 0;
}

.setup-card-body-wide .visual-list {
  margin-top: 0;
}

.setup-media-wide {
  max-height: 210px;
}

.setup-media-tall {
  max-height: 320px;
}

.setup-card > .setup-media-frame:last-child {
  border-bottom: 0;
}

.guide-double-media {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: stretch;
}

.guide-triple-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.guide-double-media > .setup-media-frame {
  min-height: 236px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.guide-triple-media > .setup-media-frame {
  min-height: 236px;
  border-bottom: 1px solid var(--line);
}

.guide-triple-media > .setup-media-frame:first-child {
  border-right: 1px solid var(--line);
}

.guide-triple-media > .setup-media-frame:last-child {
  grid-column: 1 / -1;
  border-bottom: 0;
}

.setup-media-step5 {
  max-height: 360px;
}

.setup-media-step5-large {
  max-height: 560px;
}

.guide-side {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%);
}

.guide-tip {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.guide-side-frame {
  flex: 1 1 auto;
  border-bottom: 0;
}

.guide-tip-bottom {
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.info-card {
  padding: 18px;
}

.info-card h3,
.step-card h3,
.subsection-card h3,
.status-card h3,
.step-block h3,
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.info-card p,
.step-card p,
.subsection-card p,
.status-card p,
.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.danger-text {
  color: #dc2626;
  font-weight: 800;
}

.subsection-card,
.status-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.flow-strip {
  gap: 14px;
  flex-wrap: wrap;
}

.flow-node,
.path-card {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.flow-number,
.path-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  color: var(--brand-strong);
  font-weight: 800;
}

.flow-number {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(20, 184, 166, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.path-badge {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  font-size: 12px;
}

.flow-node h3,
.path-card h3 {
  margin: 12px 0 6px;
  font-size: 17px;
}

.path-card-plain h3 {
  margin-top: 0;
}

.flow-node p,
.path-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.step-note {
  margin-top: 12px !important;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--text) !important;
  font-size: 13px;
}

.path-card .secondary-btn {
  display: inline-flex;
  margin-top: auto;
  align-self: flex-start;
}

.visual-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper-strong);
  box-shadow: 0 14px 34px rgba(24, 35, 56, 0.05);
}

.visual-card-wide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.recharge-step-card {
  margin-top: 14px;
}

.split-visual-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
}

.split-visual-card .visual-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.visual-media {
  display: block;
  width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: contain;
  background: linear-gradient(180deg, #eaf0ff 0%, #f7f9fd 100%);
  cursor: zoom-in;
}

.visual-card-wide .visual-media {
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
}

.page-codex .visual-media {
  padding: 16px;
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
  box-shadow:
    inset 0 0 0 1px rgba(16, 185, 129, 0.08),
    inset 0 -1px 0 rgba(16, 185, 129, 0.08);
}

.page-codex .visual-card-wide .visual-media {
  padding: 20px 22px;
}

.visual-copy {
  padding: 18px;
}

.visual-copy h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.visual-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.visual-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.visual-list li + li {
  margin-top: 8px;
}

.tutorial-link-card {
  gap: 10px;
}

.tutorial-link-card .text-link {
  display: inline-block;
  font-size: 14px;
  line-height: 1.75;
}

.plain-list {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.plain-list li + li {
  margin-top: 8px;
}

.tool-note-list {
  margin-top: 10px;
}

.tool-note-list strong {
  color: var(--text);
}

.step-list {
  grid-template-columns: 1fr;
  margin-bottom: 14px;
}

.step-card {
  display: flex;
  gap: 14px;
  padding: 18px;
}

.step-index {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(37, 211, 183, 0.12));
  color: var(--brand-strong);
  font-weight: 800;
}

.platform-tabs {
  gap: 8px;
  margin-bottom: 12px;
}

.config-mode-shell {
  display: grid;
  gap: 0;
  margin: 6px 0 18px;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.14);
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 18px 42px rgba(24, 35, 56, 0.07);
}

.config-mode-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.58fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.12);
  background:
    linear-gradient(180deg, rgba(16, 185, 129, 0.08), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.config-mode-copy {
  display: grid;
  gap: 4px;
}

.config-mode-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.config-mode-body {
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(248, 251, 255, 0.78) 100%);
}

.system-tabs-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  margin: 0;
  padding: 0;
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.system-tabs {
  margin-bottom: 0;
  padding: 0;
  border-radius: 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
  width: 100%;
  max-width: 100%;
}

.config-panel,
.auto-config-card {
  display: grid;
  gap: 16px;
}

.config-panel-head {
  display: grid;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
}

.config-panel-kicker {
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.3;
}

.config-panel-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.35;
}

.config-panel-head p {
  margin: 0;
  color: var(--muted);
}

.config-child-picker {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-left: 4px solid rgba(16, 185, 129, 0.34);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.9), rgba(255, 255, 255, 0.98));
}

.config-child-picker .system-tabs-label {
  justify-self: start;
  color: var(--text);
  font-size: 13px;
}

#step-two .config-mode-tabs .tab-btn {
  padding: 12px 18px;
  font-size: 15px;
}

#step-two .config-child-picker .tab-btn {
  padding: 9px 14px;
  font-size: 13px;
}

.auto-command-panels,
.manual-system-panels {
  display: block;
}

.auto-download-area {
  display: grid;
}

.config-download-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 126px;
  padding: 22px;
  border: 1px solid rgba(16, 185, 129, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.09), rgba(16, 185, 129, 0.08)),
    #ffffff;
  color: var(--text);
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 34px rgba(24, 35, 56, 0.06);
}

.config-download-card:hover {
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 20px 42px rgba(16, 185, 129, 0.12);
  transform: translateY(-1px);
}

.config-download-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.22);
}

.config-download-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.config-download-title {
  color: var(--text);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.35;
}

.config-download-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.config-download-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.22);
}

.auto-command-panel h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.auto-command-panel p {
  margin: 0;
}

.auto-command-panel .mono-block {
  margin-bottom: 0;
}

.system-panel-title {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.system-guide-stack {
  display: grid;
  gap: 14px;
}

.system-guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.settings-config-card,
.settings-verify-card {
  grid-column: 1 / -1;
}

.settings-config-card .code-card pre {
  overflow-x: visible;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.settings-config-card .code-card code {
  white-space: pre-wrap;
}

#step-two .system-guide-stack {
  gap: 0;
}

#step-two .system-guide-stack > .subsection-card:first-child {
  padding: 14px 18px;
  margin-bottom: 12px;
  border-color: rgba(16, 185, 129, 0.1);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05), rgba(255, 255, 255, 0.98));
  box-shadow: none;
}

#step-two .system-guide-grid,
#step-two .setup-grid {
  position: relative;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(24, 35, 56, 0.045);
}

#step-two .system-guide-grid::before,
#step-two .setup-grid::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 39px;
  z-index: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.08));
}

#step-two .system-guide-grid:has(+ .setup-grid) {
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 10px 24px rgba(24, 35, 56, 0.035);
}

#step-two .system-guide-grid + .setup-grid {
  border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

#step-two .system-guide-grid > .subsection-card,
#step-two .setup-grid > .setup-card {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#step-two .system-guide-grid > .subsection-card {
  padding: 18px 22px 18px 78px;
}

#step-two .system-guide-grid > .subsection-card + .subsection-card,
#step-two .setup-grid > .setup-card + .setup-card {
  border-top: 1px solid rgba(226, 232, 240, 0.78);
}

#step-two .manual-step-title-row {
  margin: 0 0 10px;
  gap: 0;
}

#step-two .manual-step-title-row .setup-step-chip {
  position: absolute;
  top: 18px;
  left: 24px;
  flex-basis: 30px;
  width: 30px;
  height: 30px;
  margin: 0;
  border: 3px solid #ffffff;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.2);
}

#step-two .manual-step-title-row > span:last-child {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

#step-two .system-guide-grid > .subsection-card > p + p {
  margin-top: 4px;
}

#step-two .system-guide-grid .mono-block {
  margin: 10px 0 12px;
  border-radius: 13px;
}

#step-two .system-guide-grid .mono-block:last-child,
#step-two .system-guide-grid .code-card:last-child {
  margin-bottom: 0;
}

#step-two .system-guide-grid .code-card {
  margin-top: 12px;
}

#step-two .system-guide-grid + .subsection-card,
#step-two .setup-grid + .subsection-card {
  margin-top: 12px;
}

#step-two .setup-grid {
  grid-template-columns: 1fr;
  margin-top: 0;
}

#step-two .setup-card {
  height: auto;
}

#step-two .setup-card-head {
  padding: 17px 22px 17px 24px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.76) 0%, rgba(255, 255, 255, 0.92) 100%);
}

#step-two .setup-card-title-row {
  align-items: center;
  gap: 24px;
}

#step-two .setup-card-title-row .setup-step-chip {
  position: relative;
  z-index: 1;
  flex-basis: 30px;
  width: 30px;
  height: 30px;
  margin: 0;
  border: 3px solid #ffffff;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.2);
}

#step-two .setup-card-head h3 {
  font-size: 17px;
  line-height: 1.35;
}

#step-two .setup-copy,
#step-two .setup-media-frame,
#step-two .setup-card-body-wide .setup-copy {
  padding: 16px 22px 18px 78px;
}

#step-two .ccswitch-merge-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(226, 232, 240, 0.78);
}

#step-two .ccswitch-merge-grid > .setup-media-frame {
  min-height: 0;
  border-right: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.78);
}

#step-two .ccswitch-merge-grid .guide-double-media {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 0;
  box-shadow: none;
}

#step-two .ccswitch-merge-grid .guide-double-media > .setup-media-frame {
  min-height: 220px;
  border-right: 1px solid rgba(226, 232, 240, 0.78);
  border-bottom: 0;
}

#step-two .ccswitch-merge-grid .guide-side-frame {
  border-bottom: 0;
}

#step-two .ccswitch-merge-grid .guide-double-media > .setup-media-frame:last-child {
  grid-column: auto;
  border-right: 0;
}

#step-two .ccswitch-merge-grid .setup-media-frame {
  position: relative;
  padding: 18px;
}

#step-two .ccswitch-merge-grid .guide-double-media .setup-media-frame {
  padding: 18px;
}

#step-two .ccswitch-merge-grid .guide-double-media .setup-media-frame:last-child {
  border-bottom: 0;
}

#step-two .ccswitch-merge-grid > .setup-media-frame .setup-media-tall {
  max-height: 360px;
}

#step-two .ccswitch-shot-frame::before {
  content: attr(data-shot-label);
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 2;
  color: #ef4444;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 #ffffff, 0 10px 22px rgba(239, 68, 68, 0.2);
}

#step-two .download-step-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

#step-two .download-step-copy p {
  margin: 0;
  min-width: 0;
}

#step-two .download-step-copy .secondary-btn {
  flex: 0 0 auto;
  min-width: 104px;
}

#step-two .guide-tip-bottom {
  margin: 0;
}

.system-file-path {
  margin: 12px 0 14px;
  border-left: 4px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 10px 24px rgba(24, 35, 56, 0.045);
}

.system-guide-list {
  margin-top: 10px;
}

.system-tabs .tab-btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 18px;
  border-color: rgba(16, 185, 129, 0.08);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), rgba(255, 255, 255, 0.98));
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.system-tabs .tab-btn:hover {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12), rgba(255, 255, 255, 1));
  color: var(--brand-strong);
  transform: none;
}

.system-tabs .tab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.22);
}

.tab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), #34d399);
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.22);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.system-placeholder-card {
  min-height: 180px;
  justify-content: center;
  gap: 10px;
}

.system-placeholder-card h3 {
  margin-bottom: 10px;
}

.system-placeholder-card p + p {
  margin-top: 10px;
}

.code-card {
  overflow: hidden;
}

.code-head {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.copy-btn {
  padding: 7px 11px;
  font-size: 12px;
}

.code-copy-btn {
  margin-left: auto;
}

.copy-btn.copied {
  border-color: transparent;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.22);
}

.code-card pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  background: var(--code-bg);
  color: var(--code-text);
  font-size: 13px;
  line-height: 1.75;
}

.tip-box {
  margin-top: 14px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06), rgba(37, 211, 183, 0.04));
}

.tip-box strong {
  color: var(--text);
}

.tip-box code {
  color: var(--text);
}

.tip-box.soft {
  margin-top: 16px;
}

.codex-language-note {
  margin: 0;
  padding: 16px 18px 16px 20px;
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-left: 6px solid #f59e0b;
  border-radius: 0;
  background: linear-gradient(180deg, #fff7d6 0%, #fffdf2 100%);
  color: #4a2f00;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.85;
}

.codex-language-note::before {
  content: "重要提示";
  display: inline-flex;
  align-items: center;
  margin: 0 10px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #b45309;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.codex-language-note strong {
  color: #b91c1c;
  font-weight: 950;
}

.ordered-list {
  margin: 14px 0 0;
  padding-left: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.ordered-list.compact {
  margin-top: 0;
}

.step-block {
  padding: 18px;
}

.faq-list {
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  padding: 18px;
}

.summary-list {
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.stack-btn {
  width: 100%;
  margin-top: 12px;
  text-align: left;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  min-width: 180px;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #ffffff;
  background: rgba(24, 35, 56, 0.92);
  box-shadow: 0 20px 50px rgba(24, 35, 56, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.announcement-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity 0.18s ease;
  backdrop-filter: blur(10px);
}

.announcement-modal.show {
  display: flex;
  opacity: 1;
}

.announcement-card {
  position: relative;
  z-index: 2;
  width: min(100%, 500px);
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.3);
}

.announcement-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), #10b981);
}

.announcement-head {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.announcement-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.11);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.06);
}

.announcement-copy-panel {
  display: grid;
  gap: 14px;
  justify-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(16, 185, 129, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.announcement-copy {
  display: grid;
  gap: 9px;
  text-align: center;
}

.announcement-copy p {
  margin: 0;
  color: #263653;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.75;
}

.announcement-copy .announcement-guide-note {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: fit-content;
  margin-top: 2px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.08), 0 10px 28px rgba(16, 185, 129, 0.1);
  animation: announcementGuideNotePulse 2.2s ease-in-out infinite;
}

.announcement-copy .announcement-guide-note::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-right: 7px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.44);
  animation: announcementBeacon 1.45s ease-in-out infinite;
}

.announcement-copy .announcement-guide-note::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -45%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
  transform: skewX(-18deg);
  animation: announcementGuideNoteShine 2.6s ease-in-out infinite;
}

.announcement-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 60%;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  background: linear-gradient(135deg, var(--brand), #34d399);
  color: #ffffff;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.24);
}

.announcement-inline-link::after {
  content: ">";
  margin-left: 10px;
  font-weight: 900;
}

.announcement-inline-link:hover {
  transform: translateY(-1px);
}

.announcement-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.announcement-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 12px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: 0.18s ease;
}

.announcement-secondary {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
}

.announcement-confirm {
  border-color: transparent;
  background: #172554;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(23, 37, 84, 0.18);
}

.announcement-secondary:hover {
  transform: translateY(-1px);
}

.announcement-service-guide {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0;
  transform: translate(12px, 12px);
  animation: announcementGuideIn 0.48s ease 0.2s forwards;
}

.announcement-guide-arrow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.announcement-guide-path-soft,
.announcement-guide-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.announcement-guide-path-soft {
  stroke: rgba(16, 185, 129, 0.16);
  stroke-width: 18;
  filter: blur(1.5px);
}

.announcement-guide-path {
  stroke-width: 7;
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  filter: drop-shadow(0 10px 18px rgba(14, 165, 233, 0.32));
  animation: announcementGuideDraw 1s cubic-bezier(0.2, 0.82, 0.2, 1) 0.34s forwards,
    announcementGuideGlow 2.4s ease-in-out 1.25s infinite;
}

.announcement-guide-head {
  fill: #08b7cf;
  opacity: 0;
  filter: drop-shadow(0 12px 18px rgba(8, 183, 207, 0.34));
  transform-box: fill-box;
  transform-origin: center;
  animation: announcementGuideHead 0.42s ease 1.04s forwards,
    announcementGuideNudge 1.8s ease-in-out 1.45s infinite;
}

.announcement-guide-chip {
  position: absolute;
  right: clamp(20px, 2.4vw, 36px);
  bottom: 100px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 260px;
  padding: 10px 14px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #075985;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
  animation: announcementGuideFloat 2.4s ease-in-out 1s infinite;
}

.announcement-guide-beacon {
  position: relative;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.42);
  animation: announcementBeacon 1.45s ease-in-out infinite;
}

@keyframes announcementGuideIn {
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes announcementGuideDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes announcementGuideHead {
  to {
    opacity: 1;
  }
}

@keyframes announcementGuideNudge {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(8px, 8px) scale(1.04);
  }
}

@keyframes announcementGuideGlow {
  0%,
  100% {
    filter: drop-shadow(0 10px 18px rgba(14, 165, 233, 0.28));
  }
  50% {
    filter: drop-shadow(0 16px 26px rgba(16, 185, 129, 0.5));
  }
}

@keyframes announcementGuideFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes announcementBeacon {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.44);
  }
  70%,
  100% {
    box-shadow: 0 0 0 11px rgba(16, 185, 129, 0);
  }
}

@keyframes announcementGuideNotePulse {
  0%,
  100% {
    transform: translateY(0);
    background: rgba(16, 185, 129, 0.1);
  }
  50% {
    transform: translateY(-1px);
    background: rgba(16, 185, 129, 0.16);
  }
}

@keyframes announcementGuideNoteShine {
  0% {
    left: -45%;
  }
  55%,
  100% {
    left: 120%;
  }
}

@media (max-width: 1180px), (hover: none), (pointer: coarse) {
  .announcement-service-guide {
    display: none !important;
  }
}

body.modal-open {
  overflow: hidden;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(10, 16, 30, 0.82);
  backdrop-filter: blur(8px);
}

.image-modal.show {
  display: flex;
}

.image-modal-stage {
  position: relative;
  max-width: min(92vw, 1500px);
  max-height: 88vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  background: #ffffff;
}

.image-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  min-width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}

.image-modal-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.image-modal-hint {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translate(-50%, 100%);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

@media (max-width: 1260px) {
  .page-layout {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .rightbar {
    display: none;
  }

  .step-list,
  .status-grid,
  .visual-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .rightbar {
    position: static;
  }

  .hero-card,
  .grid-two,
  .code-grid,
  .subsection-grid,
  .path-grid,
  .visual-grid,
  .visual-card-wide {
    grid-template-columns: 1fr;
  }

  .tool-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-guide-grid {
    grid-template-columns: 1fr;
  }

  .config-mode-row,
  .config-child-picker {
    grid-template-columns: 1fr;
  }

  .split-visual-card,
  .guide-double-media,
  .guide-triple-media,
  .setup-card-body-wide,
  #step-two .ccswitch-merge-grid {
    grid-template-columns: 1fr;
  }

  .guide-double-media > .setup-media-frame,
  .guide-triple-media > .setup-media-frame,
  .setup-card-body-wide .setup-media-frame,
  #step-two .ccswitch-merge-grid > .setup-media-frame {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  :root {
    --anchor-offset: 24px;
  }

  .doc-shell {
    padding: 16px;
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .brand-wrap,
  .topbar-actions {
    justify-content: space-between;
  }

  .section-card {
    padding: 22px;
  }

  .config-mode-shell {
    border-radius: 18px;
  }

  .config-mode-row,
  .config-mode-body {
    padding: 14px;
  }

  .config-child-picker {
    padding: 12px;
    border-radius: 15px;
  }

  .config-mode-tabs .tab-btn,
  .config-child-picker .tab-btn {
    padding: 9px 10px;
  }

  .config-download-card {
    grid-template-columns: 1fr;
    justify-items: start;
    min-height: 0;
    padding: 18px;
  }

  .config-download-action {
    width: 100%;
  }

  .tool-choice-grid {
    grid-template-columns: 1fr;
  }

  .setup-card-head {
    padding: 18px 18px 16px;
  }

  .setup-card-head h3 {
    font-size: 19px;
  }

  .setup-step-chip {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .setup-card-note {
    font-size: 14px;
  }

  .setup-media-frame,
  .setup-card-body-wide .setup-copy,
  .setup-copy {
    padding: 16px;
  }

  #step-two .system-guide-grid > .subsection-card {
    padding: 18px 18px 18px 64px;
  }

  #step-two .manual-step-title-row .setup-step-chip {
    left: 18px;
  }

  #step-two .system-guide-grid::before,
  #step-two .setup-grid::before {
    left: 33px;
  }

  #step-two .setup-card-head {
    padding: 16px 18px;
  }

  #step-two .setup-card-title-row {
    gap: 16px;
  }

  #step-two .setup-copy,
  #step-two .setup-media-frame,
  #step-two .setup-card-body-wide .setup-copy {
    padding: 16px 18px 16px 64px;
  }

  .setup-media-tall {
    max-height: 280px;
  }

  .section-card.step-section {
    padding-top: 84px;
  }

  .step-kicker {
    top: 14px;
    left: 14px;
    padding: 9px 15px 10px;
    font-size: 16px;
  }

  .hero-copy h1,
  .section-head h2 {
    line-height: 1.18;
  }

  .hero-actions,
  .platform-tabs,
  .topbar-actions {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-link,
  .stack-btn,
  .tab-btn {
    width: 100%;
    text-align: center;
  }

  .hero-support-card {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .hero-support-btn {
    width: 60%;
  }

  .announcement-modal {
    padding: 16px;
    align-items: center;
  }

  .announcement-card {
    width: min(100%, 420px);
    padding: 20px;
    margin: 0 auto;
  }

  .announcement-service-guide {
    display: none;
  }

  .announcement-copy .announcement-guide-note {
    width: 100%;
    padding: 8px 10px;
    text-align: center;
  }

  .announcement-inline-link {
    width: 100%;
  }

  .announcement-actions {
    justify-content: flex-end;
  }

  .image-modal {
    padding: 16px;
  }

  .image-modal-hint {
    display: none;
  }
}
