/* === 设计变量与全局重置 === */
:root {
  --color-dark: #141838;
  --color-paper: #F7F5F3;
  --color-text: #151723;
  --color-brand: #142CEB;
  --color-accent: #6EAFED;
  --color-white: #FFFFFF;

  --radius-card: 8px;
  --radius-btn: 6px;
  --card-border: 2px solid var(--color-text);
  --card-shadow: 4px 4px 0 var(--color-text);

  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 1280px;
  --line-height-body: 1.65;

  --font-weight-title: 500;
  --h1-size: clamp(2.6rem, 6.4vw, 5rem);
  --h2-size: clamp(1.8rem, 3.5vw, 2.8rem);
  --h3-size: clamp(1.3rem, 2.2vw, 1.6rem);

  --focus-ring: 3px solid var(--color-accent);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  background-color: var(--color-paper);
  color: var(--color-text);
  line-height: var(--line-height-body);
  font-size: 16px;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* === 布局容器 === */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.content-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  border-bottom: 1px solid var(--color-text);
}
.content-section:last-child {
  border-bottom: none;
}

/* === 排版 === */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.6em;
  color: var(--color-brand);
}
.dark-surface .section-label {
  color: var(--color-accent);
}

h1 {
  font-size: var(--h1-size);
  font-weight: var(--font-weight-title);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 1.2em;
}

h2 {
  font-size: var(--h2-size);
  font-weight: var(--font-weight-title);
  line-height: 1.2;
  text-wrap: balance;
  margin-bottom: 1.4em;
  margin-top: 0.5em;
}

h3 {
  font-size: var(--h3-size);
  font-weight: var(--font-weight-title);
  line-height: 1.3;
  margin-bottom: 0.8em;
}

p {
  margin-bottom: 1em;
  max-width: 38em;
}

.hl {
  color: var(--color-brand);
}
.dark-surface .hl {
  color: var(--color-accent);
}

/* === 按钮 === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  height: 52px;
  padding: 0 1.4em;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  border: none;
  text-align: center;
  justify-content: center;
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-dark);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-text);
}
.dark-surface .btn-secondary {
  color: var(--color-paper);
  border-color: var(--color-paper);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  background-color: rgba(0,0,0,0.05);
}
.dark-surface .btn-secondary:hover {
  background-color: rgba(255,255,255,0.1);
}

/* === 页头 === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-paper);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 0.8em;
}
.logo-area img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.main-nav {
  display: flex;
  gap: 1.5em;
  align-items: center;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4em 0;
  position: relative;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--color-brand);
}
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-brand);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1em;
}

/* === 卡片与网格 === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: var(--gap);
}
.card {
  background-color: var(--color-paper);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-card);
  padding: var(--gap);
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}
.card-meta {
  font-size: 0.85rem;
  color: var(--color-text);
  opacity: 0.7;
}
.card h3 {
  margin-bottom: 0.4em;
}
.card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === 表格 === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.data-table th, .data-table td {
  padding: 0.8em 1em;
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.data-table th {
  font-weight: 700;
  width: 35%;
}
.data-table tr:last-child td {
  border-bottom: none;
}

/* === FAQ === */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.faq-item {
  border: var(--card-border);
  border-radius: var(--radius-card);
  background-color: var(--color-paper);
  overflow: hidden;
}
.faq-item summary {
  padding: 1.2em 1.4em;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.2em;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item[open] summary {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.faq-answer {
  padding: 1.2em 1.4em;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === 步骤条 === */
.step-flow {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}
.step-item {
  flex: 1 1 200px;
  counter-increment: step-counter;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-accent);
  color: var(--color-dark);
  font-weight: 700;
  border-radius: 6px;
  margin-bottom: 0.8em;
}
.step-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4em;
}
.step-content p {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* === 场景卡 === */
.scenario-block {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  padding: 1.5em;
  border: var(--card-border);
  border-radius: var(--radius-card);
  background-color: var(--color-paper);
  box-shadow: var(--card-shadow);
}
.scenario-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  background-color: rgba(20, 44, 235, 0.1);
  color: var(--color-brand);
  margin-bottom: 0.4em;
}
.dark-surface .scenario-tag {
  background-color: rgba(110, 175, 237, 0.15);
  color: var(--color-accent);
}
.scenario-row {
  display: flex;
  gap: 0.8em;
  align-items: baseline;
}
.scenario-label {
  font-weight: 700;
  white-space: nowrap;
  min-width: 3em;
}

/* === 深色面通用 === */
.dark-surface {
  background-color: var(--color-dark);
  color: var(--color-paper);
}
.dark-surface p, .dark-surface li {
  color: var(--color-paper);
}
.dark-surface h2, .dark-surface h3, .dark-surface h4 {
  color: var(--color-paper);
}
.dark-surface .card {
  background-color: var(--color-paper);
  color: var(--color-text);
}
.dark-surface .card h3 {
  color: var(--color-text);
}
.dark-surface .card p {
  color: var(--color-text);
}
.dark-surface .scenario-block {
  background-color: var(--color-paper);
  color: var(--color-text);
  border-color: var(--color-text);
}

/* === SVG 动效 === */
.svg-orbit-container {
  width: 100%;
  height: auto;
  max-width: 600px;
  margin: 0 auto;
}
.orbit-ring {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
}
.orbit-base {
  stroke: rgba(110, 175, 237, 0.2);
}
.orbit-dashed {
  stroke: var(--color-accent);
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.ui-element {
  fill: var(--color-paper);
  stroke: var(--color-text);
  stroke-width: 1.2;
}
.chat-bubble {
  fill: var(--color-accent);
  stroke: none;
}
.notification-card {
  fill: var(--color-paper);
  stroke: var(--color-text);
  stroke-width: 1;
}
.icon-shape {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes orbit-breathe-scale {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.06); opacity: 0.85; }
}
@keyframes orbit-breathe-alt {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.12); opacity: 0.25; }
}
@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes dash-flow {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes fade-in-up {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.svg-orbit-1 { animation: orbit-breathe-scale 6s ease-in-out infinite; }
.svg-orbit-2 { animation: orbit-breathe-alt 8s ease-in-out infinite; }
.svg-orbit-3 { animation: orbit-breathe-scale 10s ease-in-out infinite reverse; }
.svg-dash-path { animation: dash-flow 4s linear infinite; }
.svg-float-1 { animation: float-gentle 5s ease-in-out infinite; }
.svg-float-2 { animation: float-gentle 6s ease-in-out infinite 1s; }
.svg-fade-1 { animation: fade-in-up 0.8s ease-out forwards; animation-delay: 0.2s; }
.svg-fade-2 { animation: fade-in-up 0.8s ease-out forwards; animation-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  .svg-orbit-1, .svg-orbit-2, .svg-orbit-3,
  .svg-dash-path, .svg-float-1, .svg-float-2,
  .svg-fade-1, .svg-fade-2 {
    animation: none;
  }
}

/* === 响应式 === */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .step-flow { flex-direction: column; }
  .scenario-row { flex-direction: column; gap: 0.3em; }
  .hero-layout { flex-direction: column; }
  .hero-text { order: 1; }
  .hero-visual { order: 2; width: 100%; }
}
