/* Human Support Conversation Studio */
:root {
  --bg: #17202a;
  --accent: #f59e0b;
  --signal: #93c5fd;
  --text: #f8fafc;
  --muted: #a8b4c2;
  --panel: rgba(255, 255, 255, 0.07);
  --line: color-mix(in srgb, var(--text) 18%, transparent);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 86px;
  padding: 1rem clamp(1rem, 4vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.header-brand {
  max-width: 34rem;
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 800;
}

.primary-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.86rem;
}

.primary-nav a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 0.7rem;
}

.header-console,
.header-stack {
  align-items: stretch;
  flex-direction: column;
}

.header-core,
.stack-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.status-line,
.edition,
.header-note,
.stack-top,
.corner-tools {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header-rail {
  display: grid;
  grid-template-columns: 72px 1fr;
}

.header-seal {
  color: var(--accent);
  font-size: 2rem;
}

.header-frame {
  justify-content: space-between;
}

.frame-brand {
  display: grid;
  text-align: right;
}

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 760px;
}

.hero h1 {
  max-width: 1000px;
  margin: 0.5rem 0 1.25rem;
  font-size: clamp(2.3rem, 6vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.eyebrow,
.section-heading > p,
.cta-section > p {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-actions,
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.hero-actions a,
.cta-section a,
.contact-form button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #071018;
  padding: 0.75rem 1.15rem;
  font-weight: 800;
}

.hero-tags span {
  border-top: 1px solid var(--signal);
  padding: 0.45rem 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-atlas .hero-media,
.hero-cinema .hero-media {
  position: absolute;
  inset: 0;
}

.hero-atlas .hero-media::after,
.hero-cinema .hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 8%, transparent 85%);
  content: "";
}

.hero-atlas .hero-copy,
.hero-cinema .cinema-caption {
  padding: clamp(4rem, 10vw, 9rem) clamp(1rem, 6vw, 7rem);
}

.atlas-ring {
  position: absolute;
  right: 5vw;
  bottom: 5vw;
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.hero-console {
  padding: 1.5rem clamp(1rem, 4vw, 5rem) 4rem;
}

.console-head,
.hero-rail {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.console-grid,
.hero-radial {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 4vw;
  min-height: 62vh;
}

.console-grid .hero-media {
  height: 56vh;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}

.hero-runway {
  display: grid;
  grid-template-columns: 0.3fr 0.9fr 1fr;
  align-items: end;
  gap: 2rem;
  padding: 4rem clamp(1rem, 5vw, 6rem);
}

.runway-number {
  color: var(--signal);
  font-size: clamp(6rem, 16vw, 15rem);
  line-height: 0.7;
  writing-mode: vertical-rl;
}

.hero-runway .hero-media {
  height: 62vh;
  clip-path: polygon(18% 0, 100% 10%, 82% 100%, 0 90%);
}

.hero-editorial {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  padding: 5rem clamp(1rem, 5vw, 6rem) 2rem;
}

.hero-editorial .hero-media {
  height: 58vh;
  margin: 0;
}

.hero-editorial figcaption,
.frame-code {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.radial-orbit {
  position: relative;
  height: 62vh;
  padding: 11%;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.radial-orbit img {
  border-radius: 50%;
}

.radial-orbit span {
  position: absolute;
  color: var(--signal);
  font-weight: 800;
}

.radial-orbit span:nth-child(1) { top: 2%; left: 50%; }
.radial-orbit span:nth-child(2) { top: 50%; right: 2%; }
.radial-orbit span:nth-child(3) { bottom: 2%; left: 50%; }
.radial-orbit span:nth-child(4) { top: 50%; left: 2%; }

.hero-radial {
  padding: 4rem clamp(1rem, 5vw, 6rem);
}

.hero-cinema .cinema-caption {
  position: relative;
  z-index: 3;
  max-width: 950px;
}

.frame-code {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  z-index: 2;
}

.signature,
.content-section,
.faq-section,
.inner-feature {
  padding: clamp(4rem, 9vw, 9rem) clamp(1rem, 5vw, 6rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(130px, 0.4fr) 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  line-height: 1.05;
}

.section-heading span {
  color: var(--muted);
}

.atlas-nodes,
.control-board,
.runway-strip,
.gallery-wall,
.compass-stage,
.film-strip,
.orbit-stage,
.route-board,
.device-stack,
.queue-board,
.news-wall {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  min-height: 620px;
}

.signature figure {
  position: relative;
  z-index: 2;
  grid-column: span 3;
  height: 360px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
}

.signature figure:nth-child(even) {
  align-self: end;
  height: 470px;
}

.signature figure > span,
.signature figcaption {
  position: absolute;
  z-index: 3;
  background: var(--bg);
  padding: 0.35rem 0.55rem;
}

.signature figcaption {
  right: 0;
  bottom: 0;
}

.runway-strip figure:nth-child(1),
.film-strip figure:nth-child(3),
.news-wall figure:nth-child(2) {
  grid-column: span 6;
}

.gallery-wall blockquote,
.orbit-label,
.news-wall aside {
  position: absolute;
  right: 3%;
  bottom: 2%;
  z-index: 4;
  max-width: 22rem;
  color: var(--signal);
  font-size: 1.5rem;
}

.compass-core {
  position: absolute;
  inset: 28% 40%;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-size: 4rem;
}

.route-board,
.queue-board {
  padding: 2rem;
  border: 1px solid var(--line);
}

.route-board header,
.queue-board ol {
  position: absolute;
  z-index: 5;
  margin: 0;
  color: var(--signal);
}

.device-stack figure {
  transform: rotate(calc((var(--n, 1) - 2) * 1deg));
}

.content-section {
  border-top: 1px solid var(--line);
}

.section-items {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.section-items article {
  grid-column: span 4;
  min-height: 240px;
  padding: 1.5rem;
  border-top: 2px solid var(--accent);
  background: var(--panel);
}

.section-layout-1 .section-items article:first-child,
.section-layout-3 .section-items article:last-child {
  grid-column: span 8;
}

.section-layout-2 .section-items article:nth-child(2) {
  transform: translateY(3rem);
}

.section-layout-4 .section-items {
  grid-template-columns: 1fr;
}

.section-layout-4 .section-items article {
  display: grid;
  grid-template-columns: 90px 0.6fr 1fr;
  grid-column: auto;
  min-height: 0;
  background: transparent;
}

.faq-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}

.faq-section .section-heading {
  display: block;
}

.faq-list details {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 800;
}

.cta-section {
  padding: clamp(5rem, 12vw, 12rem) clamp(1rem, 8vw, 9rem);
  background: var(--accent);
  color: #071018;
}

.cta-section h2 {
  max-width: 900px;
  margin: 0.3rem 0 2rem;
  font-size: clamp(2.5rem, 6vw, 6rem);
  line-height: 1;
}

.cta-section a {
  border-color: #071018;
}

.site-footer {
  display: grid;
  gap: 2rem;
  padding: 3rem clamp(1rem, 5vw, 6rem);
  border-top: 1px solid var(--line);
}

.footer-primary-brand {
  font-size: clamp(1.25rem, 3vw, 2.8rem);
  font-weight: 900;
}

.site-footer nav,
.footer-columns,
.terminal-board {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.ledger-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.inner-hero {
  min-height: 55vh;
  padding: clamp(5rem, 12vw, 12rem) clamp(1rem, 7vw, 8rem) 4rem;
  border-bottom: 1px solid var(--line);
}

.inner-hero h1 {
  max-width: 900px;
  margin: 0.5rem 0;
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.95;
}

.inner-feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4vw;
}

.inner-feature figure {
  position: sticky;
  top: 2rem;
  height: 70vh;
  margin: 0;
}

.inner-feature article {
  min-height: 230px;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto 7rem;
  padding: 2rem;
  border: 1px solid var(--line);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 0.85rem;
}

@media (max-width: 860px) {
  .site-header {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .primary-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .console-grid,
  .hero-radial,
  .hero-editorial,
  .hero-runway,
  .inner-feature,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 680px;
  }

  .hero-runway {
    align-items: stretch;
  }

  .runway-number {
    writing-mode: initial;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .signature > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
  }

  .signature figure,
  .signature figure:nth-child(even),
  .runway-strip figure:nth-child(1),
  .film-strip figure:nth-child(3),
  .news-wall figure:nth-child(2) {
    grid-column: auto;
    height: 300px;
  }

  .section-items article,
  .section-layout-1 .section-items article:first-child,
  .section-layout-3 .section-items article:last-child {
    grid-column: span 12;
  }

  .inner-feature figure {
    position: relative;
    height: 50vh;
  }
}

@media (max-width: 540px) {
  .hero h1 {
    font-size: clamp(2.2rem, 12vw, 4rem);
  }

  .signature > div:last-child {
    grid-template-columns: 1fr;
  }

  .hero-editorial .hero-media,
  .hero-runway .hero-media,
  .console-grid .hero-media {
    height: 42vh;
  }

  .section-layout-4 .section-items article {
    grid-template-columns: 48px 1fr;
  }
}
