:root {
  --dadao-ink: #0A0A0A;
  --dadao-gold: #B8935A;
  --dadao-coffee: #332C2B;
  --dadao-cream: #F8F6F1;
  --dadao-rule: #E5E2DA;
  --dadao-white: #FFFFFF;
  --dadao-black: #000000;
  --dadao-wide: 1440px;
  --dadao-content: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--dadao-gold) var(--dadao-cream);
  scrollbar-width: thin;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  color: var(--dadao-ink);
  background: var(--dadao-white);
  font-family: "Times New Roman", "Songti SC", "宋体", STSong, serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after,
.hero::before,
.hero::after,
.hero-panel::before,
.step-card::after {
  display: none;
  content: none;
}

::selection {
  color: var(--dadao-ink);
  background: var(--dadao-gold);
}

a,
button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--dadao-gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--dadao-black);
  background: var(--dadao-gold);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  position: relative;
  width: 100%;
  margin: 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--dadao-wide), calc(100vw - 96px));
  min-height: 64px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand,
.brand-lockup,
.brand-product-row,
.nav-actions {
  display: flex;
  align-items: center;
}

.brand,
.brand-lockup,
.brand-copy {
  min-width: 0;
}

.brand-lockup {
  gap: 22px;
}

.brand-logo {
  display: block;
  width: 132px;
  height: auto;
  flex: 0 0 auto;
  filter: none;
}

.brand-copy {
  display: grid;
  gap: 2px;
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.brand-product-row {
  gap: 10px;
}

.brand-product-name {
  color: var(--dadao-white);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}

.brand-tag,
.brand-product-meta,
.hero-tag,
.hero-brand-meta,
.hero-panel-chip,
.step-side-label,
.copy-note,
.terminal-header,
.completion-label,
.completion-example-title,
.footer-copy,
.footer-slogan {
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

.brand-tag {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--dadao-gold);
  background: transparent;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.brand-product-meta {
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.nav-actions {
  gap: 18px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0;
  background: transparent;
}

.lang-button {
  min-width: 42px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.56);
  background: transparent;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 400;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.lang-button + .lang-button {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.lang-button.is-active {
  color: var(--dadao-ink);
  background: var(--dadao-gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease;
}

.btn:hover {
  transform: none;
}

.btn-primary {
  border: 1px solid var(--dadao-gold);
  color: var(--dadao-ink);
  background: var(--dadao-gold);
  box-shadow: none;
}

.btn-primary:hover {
  border-color: var(--dadao-white);
  background: var(--dadao-white);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--dadao-white);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--dadao-gold);
  color: var(--dadao-gold);
  background: transparent;
}

.nav-back {
  min-height: 36px;
  padding: 8px 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.hero {
  position: relative;
  padding: 112px 0 128px;
  color: var(--dadao-white);
  background: var(--dadao-black);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: 96px;
  width: min(var(--dadao-wide), calc(100vw - 96px));
  margin: 0 auto;
}

.hero-copy {
  min-width: 0;
  padding: 0;
  text-align: left;
}

.hero-brandline {
  display: block;
  max-width: none;
  margin: 0 0 40px;
  padding: 0 0 0 16px;
  border: 0;
  border-left: 2px solid var(--dadao-gold);
}

.hero-brand-logo {
  display: none;
}

.hero-brand-meta {
  color: var(--dadao-gold);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.14em;
}

.hero-tag {
  display: block;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--dadao-gold);
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
.hero-title {
  max-width: 10ch;
  margin: 0 0 32px;
  color: var(--dadao-white);
  background: none;
  font-family: inherit;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-shadow: none;
  white-space: normal;
  -webkit-text-fill-color: currentColor;
}

.hero p,
.hero-subtitle {
  max-width: 32ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-inline-note {
  max-width: 58ch;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.46);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.7;
}

.hero-panel {
  position: relative;
  min-width: 0;
  overflow: visible;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 2px solid var(--dadao-gold);
  border-radius: 0;
  background: var(--dadao-ink);
  box-shadow: none;
}

.hero-panel-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 32px;
}

.hero-panel-chip {
  min-height: auto;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.hero-panel-chip:first-child {
  padding-left: 0;
}

.hero-panel-chip + .hero-panel-chip {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-panel-title {
  max-width: 12ch;
  margin: 0 0 28px;
  color: var(--dadao-white);
  font-family: inherit;
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero-panel-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-panel-list li {
  position: relative;
  padding: 18px 0 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.65;
}

.hero-panel-list li::before {
  position: absolute;
  top: 1.78em;
  left: 0;
  width: 8px;
  height: 1px;
  border-radius: 0;
  background: var(--dadao-gold);
  box-shadow: none;
  content: "";
}

.hero-panel-foot {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.46);
  font-size: 13px;
  line-height: 1.75;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--dadao-white);
}

.step-card {
  position: relative;
  overflow: visible;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--dadao-rule);
  border-radius: 0;
  background: var(--dadao-white);
  box-shadow: none;
  backdrop-filter: none;
  transition: none;
}

.step-card:nth-of-type(even) {
  background: var(--dadao-cream);
}

.step-card:hover {
  border-color: var(--dadao-rule);
  box-shadow: none;
  transform: none;
}

.step-grid {
  display: grid;
  grid-template-columns: minmax(220px, 3fr) minmax(0, 8fr);
  gap: 72px;
  width: min(var(--dadao-content), calc(100vw - 96px));
  min-height: 0;
  margin: 0 auto;
  padding: 112px 0;
}

.step-side {
  padding: 8px 48px 0 0;
  border: 0;
  border-right: 1px solid var(--dadao-rule);
  background: transparent;
}

.step-side-label {
  margin-bottom: 20px;
  color: var(--dadao-gold);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.step-side-copy {
  max-width: 24ch;
  color: var(--dadao-coffee);
  font-size: 15px;
  line-height: 1.8;
}

.step-main {
  position: relative;
  min-width: 0;
  padding: 0;
}

.step-number {
  position: static;
  margin: 0 0 18px;
  color: var(--dadao-gold);
  font-family: inherit;
  font-size: clamp(3.5rem, 6vw, 5.25rem);
  font-weight: 500;
  line-height: 1;
}

.step-header {
  display: block;
  margin-bottom: 32px;
}

.step-icon {
  display: none;
}

.step-title {
  max-width: 18ch;
  margin: 0;
  color: var(--dadao-ink);
  font-family: inherit;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.step-content p {
  margin: 0 0 24px;
  color: var(--dadao-coffee);
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.step-lead {
  max-width: 60ch;
}

.step-list {
  display: grid;
  gap: 0;
  max-width: 64ch;
  margin: 0 0 28px;
  padding: 0;
  border-top: 1px solid var(--dadao-rule);
  list-style: none;
}

.step-list li {
  position: relative;
  padding: 15px 0 15px 26px;
  border-bottom: 1px solid var(--dadao-rule);
  color: var(--dadao-coffee);
  line-height: 1.7;
}

.step-list li::before {
  position: absolute;
  top: 1.72em;
  left: 0;
  width: 10px;
  height: 1px;
  border-radius: 0;
  background: var(--dadao-gold);
  content: "";
}

.step-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.step-action-row .btn-primary {
  color: var(--dadao-white);
  background: var(--dadao-ink);
  border-color: var(--dadao-ink);
}

.step-action-row .btn-primary:hover {
  color: var(--dadao-ink);
  background: var(--dadao-gold);
  border-color: var(--dadao-gold);
}

.copy-note {
  max-width: 40ch;
  color: rgba(51, 44, 43, 0.62);
  font-size: 11px;
  line-height: 1.6;
}

.tip {
  max-width: 66ch;
  margin-top: 32px;
  padding: 14px 0 14px 22px;
  border: 0;
  border-left: 2px solid var(--dadao-gold);
  border-radius: 0;
  color: var(--dadao-coffee);
  background: transparent;
  font-size: 15px;
  line-height: 1.75;
}

kbd {
  padding: 3px 7px;
  border: 1px solid var(--dadao-rule);
  border-radius: 0;
  color: var(--dadao-ink);
  background: var(--dadao-cream);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
}

.prompt-frame {
  margin-top: 30px;
}

.terminal-box {
  position: relative;
  margin: 28px 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 2px solid var(--dadao-gold);
  border-radius: 0;
  color: var(--dadao-white);
  background: var(--dadao-ink);
  box-shadow: none;
}

.terminal-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

pre,
.step-3-prompt-pre {
  margin: 0;
  overflow-x: auto;
  color: var(--dadao-cream);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--dadao-gold);
  border-radius: 0;
  color: var(--dadao-ink);
  background: var(--dadao-gold);
  box-shadow: none;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.copy-btn::before {
  display: none;
  content: none;
}

.copy-btn:hover {
  color: var(--dadao-ink);
  background: var(--dadao-white);
  border-color: var(--dadao-white);
  box-shadow: none;
  transform: none;
}

.copy-btn.is-copied {
  color: var(--dadao-ink);
  background: var(--dadao-cream);
  border-color: var(--dadao-cream);
  box-shadow: none;
}

.completion-panel {
  display: grid;
  grid-template-columns: minmax(220px, 3fr) minmax(0, 8fr);
  gap: 0;
  width: min(var(--dadao-content), calc(100vw - 96px));
  margin: 128px auto;
  overflow: hidden;
  border: 1px solid var(--dadao-ink);
  border-top: 2px solid var(--dadao-gold);
  border-radius: 0;
  color: var(--dadao-white);
  background: var(--dadao-black);
  box-shadow: none;
}

.completion-side {
  padding: 52px 42px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
}

.completion-label {
  color: var(--dadao-gold);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.completion-main {
  min-width: 0;
  padding: 52px 56px;
}

.completion-title {
  max-width: 22ch;
  margin: 0 0 18px;
  color: var(--dadao-white);
  font-family: inherit;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.completion-body {
  max-width: 62ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 16px;
  line-height: 1.8;
}

.completion-followup {
  max-width: 64ch;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.completion-example-title {
  margin: 0 0 12px;
  color: var(--dadao-gold);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.completion-example-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
}

.completion-example-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.7;
}

.completion-example-list code {
  color: var(--dadao-cream);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  word-break: break-word;
}

.site-footer {
  margin: 0;
  padding: 80px 0 44px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--dadao-white);
  background: var(--dadao-black);
}

.footer-inner {
  width: min(var(--dadao-wide), calc(100vw - 96px));
  margin: 0 auto;
}

.footer-brand {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: 64px;
  margin: 0 0 40px;
  padding: 0 0 40px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-logo {
  display: block;
  width: 168px;
  height: auto;
  opacity: 1;
}

.footer-brand-description {
  max-width: 58ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  line-height: 1.8;
}

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

.footer-copy,
.footer-slogan {
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-align: left;
}

.footer-slogan {
  margin: 0;
  color: var(--dadao-gold);
}

.reveal {
  opacity: 1;
  animation: none;
}

@media (max-width: 920px) {
  .nav-inner,
  .hero-layout,
  .footer-inner {
    width: min(100% - 48px, var(--dadao-wide));
  }

  .hero-layout,
  .step-grid,
  .completion-panel {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 64px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-panel {
    max-width: 680px;
  }

  .step-grid,
  .completion-panel {
    width: min(100% - 48px, var(--dadao-content));
  }

  .step-grid {
    gap: 44px;
    padding: 88px 0;
  }

  .step-side {
    padding: 0 0 32px;
    border-right: 0;
    border-bottom: 1px solid var(--dadao-rule);
  }

  .step-side-copy {
    max-width: 54ch;
  }

  .completion-side {
    padding: 40px 40px 24px;
    border-right: 0;
  }

  .completion-main {
    padding: 24px 40px 44px;
  }
}

@media (max-width: 640px) {
  .nav-inner,
  .hero-layout,
  .step-grid,
  .completion-panel,
  .footer-inner {
    width: calc(100% - 48px);
  }

  .nav-inner {
    flex-direction: row;
    align-items: center;
    min-height: 58px;
    gap: 16px;
  }

  .brand-lockup {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .brand-logo {
    width: 106px;
  }

  .brand-copy {
    display: none;
  }

  .nav-actions {
    justify-content: flex-end;
    gap: 10px;
  }

  .lang-button {
    min-width: 36px;
    min-height: 34px;
    padding: 0 9px;
  }

  .nav-back {
    width: 36px;
    min-height: 34px;
    padding: 0;
    font-size: 0;
  }

  .nav-back::before {
    content: "←";
    font-size: 16px;
  }

  .hero {
    padding: 80px 0 88px;
  }

  .hero-layout {
    gap: 52px;
  }

  .hero-brandline {
    margin-bottom: 32px;
  }

  h1,
  .hero-title {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
  }

  .hero p,
  .hero-subtitle {
    font-size: 1.08rem;
  }

  .hero-panel {
    padding: 30px 24px;
  }

  .hero-actions,
  .step-action-row {
    align-items: stretch;
  }

  .hero-actions .btn,
  .step-action-row .btn {
    width: 100%;
  }

  .step-grid {
    gap: 38px;
    padding: 72px 0;
  }

  .step-main,
  .hero-panel,
  .completion-main {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-panel {
    padding: 30px 24px;
  }

  .step-title {
    font-size: 2rem;
  }

  .step-number {
    display: block;
  }

  .terminal-box {
    margin-left: 0;
    margin-right: 0;
    padding: 22px 18px;
  }

  .copy-btn {
    width: 100%;
  }

  pre,
  .step-3-prompt-pre {
    font-size: 11px;
  }

  .completion-panel {
    margin-top: 72px;
    margin-bottom: 72px;
  }

  .completion-side {
    padding: 32px 24px 18px;
  }

  .completion-main {
    padding: 20px 24px 36px;
  }

  .footer-brand {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .nav,
  .hero-actions,
  .copy-btn,
  .site-footer {
    display: none !important;
  }

  body,
  .hero,
  .step-card,
  .step-card:nth-of-type(even),
  .completion-panel,
  .terminal-box {
    color: #000000 !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
  }

  .hero,
  .step-grid {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}
