:root {
  --color-bg: #F7F7F8;
  --color-surface: #FFFFFF;
  --color-text-primary: #111827;
  --color-text-secondary: #4B5563;
  --color-text-tertiary: #6B7280;
  --color-border: #E5E7EB;
  --color-brand: #128C7E;
  --color-brand-hover: #0F7A6E;
  --color-brand-light: #E0F5F2;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-base: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-hover: 0 6px 16px rgba(0,0,0,0.08);
  --container-max: 1120px;
  --gutter: 24px;
  --font-body: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition-base); }
ul, ol { list-style: none; }

/* 排版系统 */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
  letter-spacing: 0.01em;
}
.section-desc {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  max-width: 720px;
  line-height: 1.8;
}
.text-brand { color: var(--color-brand); }

/* 页头 */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand-logo { display: flex; align-items: center; gap: 10px; }
.brand-logo img { width: 32px; height: 32px; object-fit: contain; }
.brand-name { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.nav-list { display: flex; gap: 28px; }
.nav-link {
  font-size: 0.95rem; color: var(--color-text-secondary); font-weight: 500;
  position: relative; padding: 4px 0;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--color-text-primary); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--color-brand); border-radius: 2px;
}
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 500; cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  border: none; outline: none;
}
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(18,140,126,0.3); }
.btn-primary {
  background: var(--color-brand); color: #fff;
}
.btn-primary:hover { background: var(--color-brand-hover); transform: translateY(-1px); }
.btn-outline {
  background: transparent; border: 1px solid var(--color-border); color: var(--color-text-secondary);
}
.btn-outline:hover { border-color: var(--color-text-tertiary); color: var(--color-text-primary); }
.btn-sm { padding: 6px 14px; font-size: 0.875rem; }

/* 网格与双栏布局 */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.flex-col { display: flex; flex-direction: column; gap: 16px; }
.divider { height: 1px; background: var(--color-border); margin: 3rem 0; }

/* 卡片 */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-icon { width: 40px; height: 40px; margin-bottom: 12px; color: var(--color-brand); }
.card-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.card-text { font-size: 0.9rem; color: var(--color-text-secondary); line-height: 1.7; }

/* 表格 */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); border: 1px solid var(--color-border); }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--color-border); font-size: 0.95rem; }
th { background: var(--color-bg); font-weight: 600; color: var(--color-text-secondary); }
tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); }
.faq-item summary {
  padding: 16px; cursor: pointer; font-weight: 500; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.2rem; color: var(--color-text-tertiary); transition: transform var(--transition-base);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 16px 16px; font-size: 0.95rem; color: var(--color-text-secondary); line-height: 1.7; }

/* 页脚 */
.site-footer { background: var(--color-text-primary); color: #9CA3AF; padding: 40px 0 24px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-heading { color: #fff; font-weight: 600; margin-bottom: 12px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }

/* 响应式 */
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mobile-toggle { display: block; }
  .nav-list { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--color-surface); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--color-border); }
  .nav-list.open { display: flex; }
}

/* SVG 动效基础 */
.svg-icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.draw-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes dash-in { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
.wave-line { animation: wave-pulse 6s ease-in-out infinite alternate; }
.wave-line:nth-child(1) { animation-delay: 0s; }
.wave-line:nth-child(2) { animation-delay: 1.2s; }
.wave-line:nth-child(3) { animation-delay: 2.4s; }
@keyframes wave-pulse {
  0% { transform: translateY(0); opacity: 0.6; }
  100% { transform: translateY(-6px); opacity: 1; }
}
.sync-dot { animation: sync-pulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes sync-pulse { 0%, 100% { transform: scale(0.9); opacity: 0.7; } 50% { transform: scale(1.1); opacity: 1; } }
.msg-slide { animation: slide-msg 4s ease-in-out infinite; }
@keyframes slide-msg { 0%, 15% { transform: translateX(0); opacity: 1; } 20%, 80% { transform: translateX(40px); opacity: 0.5; } 85%, 100% { transform: translateX(0); opacity: 1; } }

@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;
  }
  .draw-path { animation: none; stroke-dashoffset: 0; }
  .wave-line, .sync-dot, .msg-slide { animation: none; transform: none; opacity: 1; }
}
