/*
 * 控制台助手 Paddle 站点样式
 *
 * 设计目标：深色高级科技风、真实 DevTools 气质、玻璃拟态面板和沉浸式滚动。
 */

:root {
  --bg: #05070d;
  --bg-soft: #0b0f18;
  --panel: rgba(16, 21, 33, 0.72);
  --panel-strong: rgba(24, 31, 48, 0.86);
  --line: rgba(146, 165, 208, 0.18);
  --line-strong: rgba(154, 189, 255, 0.32);
  --text: #f2f6ff;
  --muted: #9ca8bf;
  --subtle: #67738a;
  --cyan: #45d9ff;
  --violet: #8d6bff;
  --green: #65f0b2;
  --amber: #f5b961;
  --danger: #ff6b81;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.1), rgba(5, 7, 13, 0.96) 36%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 96px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 96px
    ),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.pointer-light {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(
      560px circle at var(--pointer-x, 50%) var(--pointer-y, 30%),
      rgba(69, 217, 255, 0.17),
      rgba(141, 107, 255, 0.09) 34%,
      transparent 68%
    );
  transition: background 180ms ease-out;
}

.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.72;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  height: 72px;
  margin: 0 auto;
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.nav-cta {
  border: 1px solid var(--line);
  background: rgba(6, 10, 18, 0.62);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 700;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(101, 240, 178, 0.8);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(69, 217, 255, 0.9), rgba(141, 107, 255, 0.7)),
    #0b1220;
  box-shadow: 0 0 24px rgba(69, 217, 255, 0.48);
}

.site-nav {
  justify-self: center;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
}

.site-nav a,
.nav-cta {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.2;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-nav a:hover,
.nav-cta:hover {
  color: var(--text);
  background: rgba(69, 217, 255, 0.08);
  border-color: var(--line-strong);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.section-band {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding-top: 72px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-lead {
  max-width: 640px;
  margin-bottom: 30px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.primary-button {
  border: 1px solid rgba(69, 217, 255, 0.62);
  color: #04121a;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 12px 40px rgba(69, 217, 255, 0.3);
}

.ghost-button {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 52px rgba(69, 217, 255, 0.22);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-metrics span {
  display: inline-flex;
  gap: 8px;
  min-height: 34px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.hero-metrics strong {
  color: var(--text);
}

.hero-stage {
  perspective: 1200px;
}

.browser-frame,
.cta-panel,
.capability-card,
.advantage-item,
.policy-panel,
.price-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.browser-frame {
  overflow: hidden;
  border-radius: 8px;
  transform-style: preserve-3d;
  transition: transform 160ms ease-out;
}

.browser-topbar {
  display: grid;
  grid-template-columns: repeat(3, 12px) 1fr;
  gap: 8px;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 13, 22, 0.92);
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red {
  background: var(--danger);
}

.dot-yellow {
  background: var(--amber);
}

.dot-green {
  background: var(--green);
}

.address-bar {
  height: 26px;
  margin-left: 10px;
  padding: 5px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--subtle);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.28);
}

.browser-workspace {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  min-height: 472px;
}

.page-preview,
.devtools-panel {
  min-width: 0;
  padding: 18px;
}

.page-preview {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

.preview-toolbar,
.preview-lines i {
  display: block;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
}

.preview-toolbar {
  width: 72%;
  height: 18px;
  margin-bottom: 28px;
}

.preview-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: end;
  height: 180px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.preview-chart span {
  display: block;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--cyan), rgba(69, 217, 255, 0.12));
  animation: chartPulse 3.8s ease-in-out infinite;
}

.preview-chart span:nth-child(1) {
  height: 38%;
}

.preview-chart span:nth-child(2) {
  height: 70%;
  animation-delay: 0.4s;
}

.preview-chart span:nth-child(3) {
  height: 52%;
  animation-delay: 0.8s;
}

.preview-chart span:nth-child(4) {
  height: 86%;
  animation-delay: 1.2s;
}

.preview-lines {
  display: grid;
  gap: 12px;
}

.preview-lines i {
  height: 13px;
}

.preview-lines i:nth-child(2) {
  width: 82%;
}

.preview-lines i:nth-child(3) {
  width: 58%;
}

.devtools-panel {
  background: rgba(6, 10, 18, 0.72);
}

.devtools-tabs {
  display: flex;
  gap: 4px;
  align-items: center;
  min-height: 32px;
  margin: -2px 0 14px;
  border-bottom: 1px solid var(--line);
}

.devtools-tabs span {
  padding: 7px 9px;
  color: var(--subtle);
  font-size: 12px;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.devtools-tabs .active {
  color: var(--text);
  border-bottom: 2px solid var(--cyan);
}

.console-stream {
  display: grid;
  gap: 8px;
  min-height: 172px;
  margin-bottom: 20px;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.console-stream p {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  color: #c7d3ea;
  font-size: 12px;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.035);
  animation: logFlow 5s ease-in-out infinite;
}

.console-stream p:nth-child(2) {
  animation-delay: 0.5s;
}

.console-stream p:nth-child(3) {
  animation-delay: 1s;
}

.console-stream p:nth-child(4) {
  animation-delay: 1.5s;
}

.console-stream em {
  display: inline-block;
  width: 46px;
  color: var(--green);
  font-style: normal;
}

.console-stream p:nth-child(2) em {
  color: var(--amber);
}

.console-stream p:nth-child(3) em {
  color: var(--danger);
}

.network-timeline {
  display: grid;
  gap: 10px;
}

.network-timeline span {
  position: relative;
  display: block;
  height: 30px;
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #dce6ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.24);
}

.network-timeline span::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--width);
  content: "";
  background: linear-gradient(90deg, rgba(69, 217, 255, 0.28), rgba(101, 240, 178, 0.16));
  animation: requestPulse 2.7s ease-in-out infinite;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.capability-card {
  min-height: 250px;
  padding: 22px;
  border-radius: 8px;
}

.capability-index {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.capability-card code {
  display: block;
  margin-top: 20px;
  overflow-wrap: anywhere;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.workflow {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.workflow-lanes {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.lane {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  min-height: 58px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 10, 18, 0.76);
}

.lane::after {
  position: absolute;
  right: 16px;
  bottom: -15px;
  left: 156px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), transparent);
  animation: dataLine 2.4s linear infinite;
}

.lane:last-child::after {
  display: none;
}

.lane strong {
  color: var(--text);
}

.lane span {
  color: var(--muted);
}

.advantage-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.advantage-item {
  min-height: 190px;
  padding: 24px;
  border-radius: 8px;
}

.final-cta {
  padding-bottom: 90px;
}

.cta-panel {
  padding: clamp(28px, 6vw, 62px);
  border-radius: 8px;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 160ms ease-out;
}

.cta-panel p {
  max-width: 660px;
  margin-right: auto;
  margin-left: auto;
}

.cta-panel .hero-actions {
  justify-content: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a:hover {
  color: var(--text);
}

.simple-page {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0 120px;
}

.policy-panel,
.price-panel {
  padding: clamp(24px, 5vw, 54px);
  border-radius: 8px;
}

.policy-panel section + section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.price-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.price-value {
  color: var(--text);
  font-size: clamp(44px, 8vw, 72px);
  font-weight: 900;
  line-height: 1;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.feature-list li::before {
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  content: "";
  background: var(--green);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes chartPulse {
  0%,
  100% {
    opacity: 0.56;
    transform: scaleY(0.92);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes logFlow {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.07);
    transform: translateX(0);
  }
  50% {
    border-color: rgba(69, 217, 255, 0.32);
    transform: translateX(3px);
  }
}

@keyframes requestPulse {
  0%,
  100% {
    opacity: 0.42;
  }
  50% {
    opacity: 1;
  }
}

@keyframes dataLine {
  from {
    transform: translateX(-24px);
    opacity: 0.2;
  }
  to {
    transform: translateX(24px);
    opacity: 0.75;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero,
  .workflow,
  .price-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 36px;
    padding-top: 56px;
  }

  .capability-grid,
  .advantage-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .section-band,
  .site-header,
  .site-footer,
  .simple-page {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    height: 64px;
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .nav-cta {
    padding: 8px 10px;
  }

  .section-band {
    padding: 78px 0;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 46px;
  }

  .browser-workspace {
    grid-template-columns: 1fr;
  }

  .page-preview {
    display: none;
  }

  .capability-grid,
  .advantage-row {
    grid-template-columns: 1fr;
  }

  .lane {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px;
  }

  .lane::after {
    left: 14px;
  }

  .site-footer {
    flex-direction: column;
  }
}
