:root {
  --color-bg: #f8f5f0;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-secondary: #4a4a4a;
  --color-primary: #25d366;
  --color-primary-dark: #128c7e;
  --gradient-warm-start: #ffeaa7;
  --gradient-warm-mid: #fab1a0;
  --gradient-warm-end: #ff7675;
  --font-display: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --font-body: var(--font-display);
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 4px 20px rgba(0,0,0,0.04);
  --shadow-hover: 0 10px 30px rgba(0,0,0,0.08);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: clamp(0.95rem, 1vw + 0.4rem, 1.05rem);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  font-weight: 700;
  color: #111;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: #111;
  font-weight: 600;
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
  max-width: 78ch;
}

ul, ol {
  margin-bottom: var(--space-sm);
  padding-left: 1.2rem;
  color: var(--color-text-secondary);
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

section {
  padding: var(--space-xl) 0;
  position: relative;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
}

.btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* 卡片 */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.03);
  transition: var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #111;
}

/* 表格 */
.table-wrapper {
  overflow-x: auto;
  margin: var(--space-md) 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  min-width: 500px;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eaeaea;
}

th {
  background: #f9f9f9;
  font-weight: 600;
  color: #222;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #fcfcfc; }

/* FAQ */
details {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
  border: 1px solid #eee;
  transition: var(--transition-base);
}

details[open] {
  border-color: #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

summary {
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 2.5rem;
  color: #111;
}

summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #888;
  transition: transform 0.2s;
}

details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

details > div {
  padding: 0 1.2rem 1.2rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* 新闻卡片 */
.news-date {
  display: inline-block;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.news-btn {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.news-btn:hover {
  border-bottom-color: var(--color-primary);
}

/* 页头页脚 */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,245,240,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--space-sm);
  max-width: var(--container-max);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
}

.logo img {
  height: 34px;
  width: auto;
}

nav ul {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

nav a {
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

nav a:hover, nav a[aria-current="page"] {
  color: var(--color-primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: none;
  }
  nav.active { display: block; }
  nav ul { flex-direction: column; gap: 1rem; }
}

footer {
  background: #1a1a1a;
  color: #b0b0b0;
  padding: var(--space-xxl) 0 var(--space-lg);
  margin-top: var(--space-xxl);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-lg);
}

.footer-col h4 {
  color: #ffffff;
  margin-bottom: var(--space-sm);
  font-size: 1rem;
}

.footer-col a {
  color: #999;
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.footer-col a:hover { color: #ffffff; }

.copyright {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid #333;
  color: #666;
  font-size: 0.9rem;
}

/* SVG 动效基础 */
.svg-animate {
  width: 100%;
  height: auto;
  overflow: visible;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes drawLine {
  0% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}

.star-twinkle {
  animation: twinkle 4s ease-in-out infinite;
}

.line-draw {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: drawLine 8s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

/* 减少动态效果适配 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .star-twinkle, .line-draw {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 0.8 !important;
    transform: none !important;
  }
}

/* 焦点样式 */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}
