:root {
  --color-bg-primary: #0B132B;
  --color-bg-secondary: #1C2541;
  --color-bg-card: #151D32;
  --color-text-primary: #F8FAFC;
  --color-text-secondary: #94A3B8;
  --color-accent: #FF8C42;
  --color-accent-hover: #FFA566;
  --color-border-light: rgba(148, 163, 184, 0.15);
  --color-success: #34D399;
  --spacing-unit: 1rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.65;
  font-size: 1rem;
}

/* 排版系统 */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5vw + 0.5rem, 4rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw + 0.25rem, 2.25rem);
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
}

h3 {
  font-size: clamp(1.125rem, 2vw + 0.1rem, 1.35rem);
  margin-bottom: 0.75rem;
  color: var(--color-accent);
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

p strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

/* 布局容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--color-border-light);
}

section:last-of-type {
  border-bottom: none;
}

/* 导航栏 */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 19, 43, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-accent);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* 按钮组件 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--color-accent);
  color: #0B132B;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 140, 66, 0.25);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-border-light);
  color: var(--color-text-primary);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(255, 140, 66, 0.08);
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 140, 66, 0.3);
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

/* 表格样式 */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  background: var(--color-bg-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

th, td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}

th {
  background: var(--color-bg-secondary);
  font-weight: 600;
  color: var(--color-text-primary);
}

td {
  color: var(--color-text-secondary);
}

tr:last-child td {
  border-bottom: none;
}

/* 列表样式 */
ul, ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* FAQ 组件 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

details {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

details:hover {
  border-color: rgba(255, 140, 66, 0.2);
}

summary {
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-accent);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details > div {
  padding: 0 1.25rem 1.25rem;
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border-light);
  margin-top: 0;
  padding-top: 1rem;
}

/* 页脚 */
footer {
  background: var(--color-bg-secondary);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--color-border-light);
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links li a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.footer-links li a:hover {
  color: var(--color-accent);
}

.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  opacity: 0.7;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-light);
}

/* SVG 动效核心 */
.svg-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.svg-wave path {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.8;
}

.wave-1 { animation: wave-rise 5s ease-in-out infinite alternate; --delay: 0s; }
.wave-2 { animation: wave-rise 6s ease-in-out infinite alternate; --delay: 1s; }
.wave-3 { animation: wave-rise 7s ease-in-out infinite alternate; --delay: 2s; }

@keyframes wave-rise {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

.svg-draw path {
  fill: none;
  stroke: var(--color-text-primary);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw-path 4s linear infinite;
}

@keyframes draw-path {
  0% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}

.transform-origin-center {
  transform-box: fill-box;
  transform-origin: center;
}

/* 焦点可见性 */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .wave-1, .wave-2, .wave-3, .svg-draw path {
    animation: none !important;
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .container {
    padding: 0 1rem;
  }
  section {
    padding: 3rem 0;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
  }
}
