/* =========================================
   设计变量与基础重置
   ========================================= */
:root {
  --color-blue-deep: #0B1C36;
  --color-blue-mid: #162D50;
  --color-blue-light: #1E3A5F;
  --color-orange: #E87A3D;
  --color-orange-hover: #D0682E;
  --color-bg: #F5F7FA;
  --color-surface: #FFFFFF;
  --color-text: #111827;
  --color-text-secondary: #4B5563;
  --color-border: #E5E7EB;
  --color-focus: #3B82F6;

  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-display: Georgia, "Noto Serif SC", serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-card: 0 4px 12px rgba(11, 28, 54, 0.06);
  --shadow-hover: 0 8px 24px rgba(11, 28, 54, 0.12);

  --container-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease, background 0.2s ease; }
ul, ol { padding-left: 0; list-style: none; margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* =========================================
   排版系统（流体字号）
   ========================================= */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-md); }
.section { padding: var(--space-xl) 0; }
.section-alt { background: var(--color-surface); }

.display-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-blue-deep);
  text-wrap: balance;
  margin-bottom: var(--space-md);
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.3;
  color: var(--color-blue-deep);
  text-wrap: balance;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-left: var(--space-md);
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 4px;
  background: var(--color-orange);
  border-radius: 4px;
}
.text-body { color: var(--color-text-secondary); margin-bottom: var(--space-sm); text-wrap: pretty; }
.text-small { font-size: 0.9rem; color: var(--color-text-secondary); }

/* =========================================
   页头与导航
   ========================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-img { height: 32px; width: auto; }
.brand-name { font-weight: 700; font-size: 1.1rem; color: var(--color-blue-deep); }
.nav-list { display: flex; gap: var(--space-md); }
.nav-link {
  padding: 8px 12px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.nav-link:hover, .nav-link[aria-current="page"] {
  color: var(--color-blue-deep);
  background: rgba(11, 28, 54, 0.05);
}
.mobile-toggle { display: none; }

/* =========================================
   通用组件：按钮、卡片、表格
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  font-size: 1rem;
}
.btn-primary {
  background: var(--color-orange);
  color: #fff;
  box-shadow: 0 4px 10px rgba(232, 122, 61, 0.3);
}
.btn-primary:hover { background: var(--color-orange-hover); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(232, 122, 61, 0.4); }
.btn-outline {
  border: 1.5px solid var(--color-blue-light);
  color: var(--color-blue-deep);
}
.btn-outline:hover { background: var(--color-blue-light); color: #fff; }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }

.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; background: var(--color-surface); font-size: 0.95rem; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: var(--color-blue-mid); color: #fff; font-weight: 600; white-space: nowrap; }
td { color: var(--color-text-secondary); }
tr:last-child td { border-bottom: none; }

/* =========================================
   FAQ 组件
   ========================================= */
.faq-item { margin-bottom: var(--space-sm); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item details { padding: 0; }
.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-blue-deep);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-surface);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--color-orange);
  transition: transform 0.2s ease;
}
.faq-item details[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 20px 16px; color: var(--color-text-secondary); line-height: 1.7; }
.faq-item details:focus-within summary { outline: 3px solid var(--color-focus); outline-offset: -3px; }

/* =========================================
   页脚
   ========================================= */
.footer { background: var(--color-blue-deep); color: #CBD5E1; padding: var(--space-xl) 0; margin-top: var(--space-xl); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--space-lg); }
.footer-brand p { margin-top: var(--space-sm); font-size: 0.9rem; opacity: 0.85; }
.footer h4 { color: #fff; margin-bottom: var(--space-sm); font-size: 1rem; }
.footer ul li { margin-bottom: 8px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.copyright { text-align: center; margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; opacity: 0.7; }

/* =========================================
   SVG 动效体系
   ========================================= */
.svg-icon { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wave-svg { width: 100%; height: auto; overflow: visible; }
.wave-path { stroke: var(--color-blue-light); fill: none; stroke-width: 2; pathLength: 1; }

@keyframes wave-rise {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.wave-path.animated { animation: wave-rise 4s ease-in-out infinite; }
.wave-path:nth-child(2) { animation-delay: 0.5s; }
.wave-path:nth-child(3) { animation-delay: 1s; }
.wave-path:nth-child(4) { animation-delay: 1.5s; }
.wave-path:nth-child(5) { animation-delay: 2s; }

@keyframes dash-move {
  0% { stroke-dashoffset: 1; opacity: 0; }
  10% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
.draw-path { animation: dash-move 6s linear infinite; }

.pulse-opc { animation: pulse-opacity 5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes pulse-opacity {
  0% { opacity: 0.4; transform: scale(0.95); }
  100% { opacity: 0.8; transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .wave-path, .draw-path, .pulse-opc { animation: none !important; }
}

/* =========================================
   响应式适配
   ========================================= */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-6 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-list { display: none; }
  .mobile-toggle { display: block; }
  .display-title { font-size: 2rem; }
}
@media (min-width: 901px) {
  .mobile-toggle { display: none; }
}
