/* 设计变量与基础设定 */
:root {
  --color-dark: #17203F;
  --color-paper: #FCFCFD;
  --color-body: #151823;
  --color-brand: #1441EB;
  --color-accent: #6EEDBD;
  
  --radius-card: 8px;
  --radius-btn: 6px;
  --card-border: 1px solid rgba(21, 24, 35, 0.16);
  --card-shadow: none;
  
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 1280px;
  
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-body);
  background-color: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* 布局容器 */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section + .section {
  border-top: 1px solid rgba(21, 24, 35, 0.08);
}

.bg-dark {
  background-color: var(--color-dark);
  color: var(--color-paper);
}

.bg-dark .hl {
  color: var(--color-accent);
}

.bg-dark .tag {
  color: var(--color-accent);
}

.bg-dark .link {
  color: var(--color-accent);
}

.bg-dark .btn-outline {
  color: var(--color-paper);
  border-color: var(--color-paper);
}

.card-on-dark {
  background-color: var(--color-paper);
  color: var(--color-body);
  border: var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
}

.card-on-dark .tag {
  color: var(--color-brand);
}

.card-on-dark .hl {
  color: var(--color-brand);
}

/* 排版 */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: var(--gap);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1em;
  max-width: 38em;
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--color-brand);
}

.hl {
  color: var(--color-brand);
}

/* 按钮 */
.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(0.95);
}

.btn-outline {
  background: transparent;
  color: var(--color-body);
  border: 1px solid var(--color-body);
}

.btn-outline:hover {
  transform: translateY(-2px);
  background-color: rgba(21, 24, 35, 0.04);
}

.btn:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}

/* 组件：卡片、表格、步骤徽标 */
.card {
  border: var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: var(--gap);
  background: var(--color-paper);
  color: var(--color-body);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: var(--gap);
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--gap) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 320px;
}

th, td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(21, 24, 35, 0.1);
}

th {
  font-weight: 600;
  color: var(--color-body);
}

td {
  color: var(--color-body);
}

.badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--color-accent);
  color: var(--color-dark);
  font-weight: 700;
  border-radius: 6px;
  margin-right: 12px;
  flex-shrink: 0;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.step-item:last-child {
  margin-bottom: 0;
}

/* 横向流程条 */
.flow-bar {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  padding: 8px 0;
  scroll-snap-type: x mandatory;
}

.flow-node {
  flex: 0 0 auto;
  min-width: 220px;
  scroll-snap-align: start;
  padding: 16px;
  border: var(--card-border);
  border-radius: var(--radius-card);
  background: var(--color-paper);
  position: relative;
}

.flow-arrow {
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-brand);
  font-size: 1.2rem;
}

.flow-arrow::after {
  content: "→";
}

/* FAQ */
details {
  border: var(--card-border);
  border-radius: var(--radius-card);
  margin-bottom: 12px;
  background: var(--color-paper);
  color: var(--color-body);
  overflow: hidden;
}

summary {
  padding: 16px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "+";
  font-weight: 700;
  color: var(--color-brand);
  transition: transform 0.2s;
}

details[open] summary::before {
  transform: rotate(45deg);
}

details p {
  padding: 0 16px 16px;
  margin: 0;
  color: var(--color-body);
}

/* 页头与页脚 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 253, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(21, 24, 35, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-body);
}

.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-body);
  transition: color 0.2s;
}

.nav a:hover, .nav a[aria-current="page"] {
  color: var(--color-brand);
}

.site-footer {
  background: var(--color-dark);
  color: var(--color-paper);
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-accent);
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--color-paper);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--color-accent);
}

/* SVG 动效关键帧 */
@keyframes orbitBreathe {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes floatBubble {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(-8px); opacity: 1; }
}

@keyframes dashFlow {
  0%, 100% { stroke-dashoffset: 0; }
  50% { stroke-dashoffset: 1; }
}

@keyframes slideIn {
  0%, 100% { transform: translateX(0); opacity: 0.9; }
  50% { transform: translateX(4px); opacity: 1; }
}

@keyframes dotBreathe {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

.anim-orbit {
  animation: orbitBreathe 6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.anim-orbit:nth-child(2) { animation-delay: 1.5s; }
.anim-orbit:nth-child(3) { animation-delay: 3s; }

.anim-float {
  animation: floatBubble 5s ease-in-out infinite;
}

.anim-dash {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: dashFlow 8s linear infinite;
}

.anim-slide {
  animation: slideIn 7s ease-in-out infinite;
}

.anim-dot {
  animation: dotBreathe 2.5s ease-in-out infinite;
}

.anim-dot:nth-child(2) { animation-delay: 0.8s; }
.anim-dot:nth-child(3) { animation-delay: 1.6s; }

/* 响应式与无障碍 */
@media (max-width: 768px) {
  .nav { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .flow-bar { flex-wrap: wrap; }
  .flow-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    animation-name: none;
  }
}
