:root {
  --bg-paper: #f8f6f1;
  --bg-surface: #ffffff;
  --ink-primary: #111111;
  --ink-secondary: #4a4a4a;
  --ink-tertiary: #7a7a7a;
  --accent-brand: #0d8e6c;
  --accent-hover: #097358;
  --border-subtle: #e8e5dd;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --space-section: clamp(3rem, 5vw, 5.5rem);
  --space-block: 1.75rem;
  --font-sans: 'PingFang SC', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-primary);
  background-color: var(--bg-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.8em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 2.5rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; color: var(--ink-primary); }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-brand); }

ul, ol { padding-left: 1.2em; margin: 0 0 1.2rem; }
li { margin-bottom: 0.5rem; }

img { display: block; max-width: 100%; height: auto; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--space-section) 0;
  border-bottom: 1px dashed var(--border-subtle);
}

section:last-of-type { border-bottom: none; }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.8rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.main-nav ul {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 0.4rem 0;
  position: relative;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink-primary);
}

.main-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-brand);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  border: none;
  font-size: 1rem;
  line-height: 1;
}

.btn-primary {
  background: var(--accent-brand);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 142, 108, 0.25);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--ink-primary);
  color: var(--ink-primary);
}

.btn-outline:hover {
  background: var(--ink-primary);
  color: #ffffff;
}

/* Cards & Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.content-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.meta-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-brand);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tables */
.platform-table {
  display: block;
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.platform-table thead,
.platform-table tbody {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.platform-table th,
.platform-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.platform-table th {
  background: #f4f2ed;
  font-weight: 600;
  color: var(--ink-secondary);
}

.platform-table tr:last-child td { border-bottom: none; }

/* FAQ Details */
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.9rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  font-weight: 600;
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-item summary:hover { background: #faf9f6; }

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-weight: 300;
  font-size: 1.3rem;
  color: var(--ink-tertiary);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 1.3rem 1.2rem;
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item:focus-within {
  box-shadow: 0 0 0 3px rgba(13, 142, 108, 0.15);
}

/* SVG Animations */
.svg-container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}

.grid-node {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes pulseGrid {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  30%, 50% { opacity: 1; transform: scale(1.15); }
}

.node-1 { animation: pulseGrid 7s infinite 0s; }
.node-2 { animation: pulseGrid 7s infinite 0.6s; }
.node-3 { animation: pulseGrid 7s infinite 1.2s; }
.node-4 { animation: pulseGrid 7s infinite 1.8s; }
.node-5 { animation: pulseGrid 7s infinite 2.4s; }
.node-6 { animation: pulseGrid 7s infinite 3.0s; }
.node-7 { animation: pulseGrid 7s infinite 3.6s; }
.node-8 { animation: pulseGrid 7s infinite 4.2s; }
.node-9 { animation: pulseGrid 7s infinite 4.8s; }
.node-10 { animation: pulseGrid 7s infinite 5.4s; }

@keyframes tracePath {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

.trace-path {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: tracePath 3s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .grid-node { animation: none !important; opacity: 0.7; }
  .trace-path { animation: none !important; stroke-dashoffset: 0 !important; }
}

/* Footer */
.site-footer {
  background: var(--ink-primary);
  color: #b0b0b0;
  padding: 3.5rem 0 1.5rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: #999; font-size: 0.9rem; }
.footer-col a:hover { color: #ffffff; }

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.flex-wrap { display: flex; flex-wrap: wrap; gap: 1rem; }
.inline-svg { width: 24px; height: 24px; vertical-align: middle; }
