/* =========================================
   WhatsApp 官方落地站 · 全局样式表
   ========================================= */
:root {
  --color-bg: #f8f9fa;
  --color-surface: #ffffff;
  --color-text: #111111;
  --color-text-secondary: #555555;
  --color-border: #e5e7eb;
  --color-accent: #25D366;
  --color-accent-hover: #1da851;
  --color-accent-light: rgba(37, 211, 102, 0.08);
  --font-main: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.1);
  --spacing-base: 16px;
  --max-width: 1120px;
  --header-height: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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(--max-width);
  margin: 0 auto;
  padding: 0 calc(var(--spacing-base) * 1.5);
}

/* =========================================
   排版系统
   ========================================= */
h1, h2, h3, h4 {
  line-height: 1.25;
  text-wrap: balance;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.2rem, 4.5vw + 1rem, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw + 0.5rem, 2.2rem);
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

h3 {
  font-size: clamp(1.2rem, 2vw + 0.5rem, 1.4rem);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

p, li {
  font-size: clamp(0.95rem, 1.2vw + 0.8rem, 1.05rem);
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.section {
  padding: calc(var(--spacing-base) * 4) 0;
  position: relative;
}

.section-alt {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* =========================================
   导航与头部
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 249, 250, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo img {
  height: 32px;
  width: auto;
  vertical-align: middle;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-left: 0.6rem;
  color: var(--color-text);
}

nav ul {
  display: flex;
  gap: 24px;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

nav a:hover, nav a:focus-visible {
  color: var(--color-accent);
}

nav a[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 600;
}

nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* =========================================
   按钮与交互组件
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-text);
  color: var(--color-text);
}

.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--color-text);
  color: #ffffff;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  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);
}

.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  background: #f1f3f5;
  font-weight: 600;
  color: var(--color-text);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--color-accent-light);
}

/* =========================================
   FAQ 组件
   ========================================= */
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: #fafafa;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 20px 16px 20px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =========================================
   新闻与阅读模块
   ========================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.news-card .date {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  display: block;
}

.related-list {
  column-gap: 24px;
  row-gap: 16px;
  margin-top: 24px;
  columns: 2;
}

@media (max-width: 600px) {
  .related-list { columns: 1; }
}

.related-item {
  break-inside: avoid;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: border-color 0.2s;
}

.related-item:hover, .related-item:focus {
  border-color: var(--color-accent);
}

.related-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-text);
}

.related-item span {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* =========================================
   SVG 动效系统
   ========================================= */
.svg-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.route-path {
  fill: none;
  stroke: var(--color-text);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw-route 8s ease-in-out infinite;
}

.node-point {
  fill: var(--color-accent);
  animation: float-node 4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.node-point:nth-child(odd) {
  animation-delay: 0.5s;
  fill: var(--color-text);
}

@keyframes draw-route {
  0% { stroke-dashoffset: 1; }
  40%, 80% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}

@keyframes float-node {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@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;
  }
  .route-path, .node-point {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
}

/* =========================================
   页脚
   ========================================= */
.site-footer {
  background: #f1f3f5;
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-nav a:hover {
  color: var(--color-accent);
}

/* =========================================
   响应式微调
   ========================================= */
@media (max-width: 768px) {
  nav ul {
    display: none; /* 简化处理，实际项目可加JS菜单，此处保持静态可用 */
  }
  .header-inner {
    justify-content: center;
  }
  .brand-logo img {
    height: 28px;
  }
  .related-list {
    columns: 1;
  }
}
