:root {
  --color-bg: #f8f7f4;
  --color-surface: #ffffff;
  --color-primary: #5a7d6c;
  --color-primary-hover: #4a6859;
  --color-secondary: #8b9da8;
  --color-text: #2c3035;
  --color-text-light: #5f656e;
  --color-border: #e8e6e1;
  --color-accent: #d4cfc7;
  --font-heading: "Georgia", "Noto Serif SC", "Source Han Serif CN", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-focus: 0 0 0 3px rgba(90, 125, 108, 0.25);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.3; color: var(--color-text); text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: var(--space-sm); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: var(--space-md); position: relative; padding-left: 1.2rem; }
h2::before { content: ""; position: absolute; left: 0; top: 0.25em; bottom: 0.25em; width: 4px; background: var(--color-primary); border-radius: 2px; }
h3 { font-size: 1.35rem; margin-bottom: var(--space-sm); }
p { margin-bottom: var(--space-sm); color: var(--color-text-light); }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-base); }
a:hover, a:focus-visible { color: var(--color-primary-hover); }
a:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: 2px; }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 var(--space-md); }
section { padding: var(--space-lg) 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-md); }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* Header & Nav */
.site-header { background: rgba(248, 247, 244, 0.95); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--color-border); padding: var(--space-sm) 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 36px; width: auto; object-fit: contain; }
.brand span { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; color: var(--color-text); }
.nav-links { display: flex; gap: var(--space-md); list-style: none; }
.nav-links a { font-size: 0.95rem; color: var(--color-text-light); font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--color-primary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: var(--radius-md); font-weight: 500; font-size: 1rem; cursor: pointer; transition: all var(--transition-base); border: none; text-decoration: none; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(90, 125, 108, 0.2); }
.btn-outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; border-radius: var(--radius-sm); }

/* Hero */
.hero-section { min-height: 85vh; display: flex; align-items: center; position: relative; overflow: hidden; background: linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%); }
.hero-content { max-width: 600px; z-index: 2; }
.hero-subtitle { font-size: 1.15rem; color: var(--color-text-light); margin-bottom: var(--space-md); line-height: 1.6; }
.hero-svg { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 55%; max-width: 600px; opacity: 0.9; }

/* Cards & Lists */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-md); transition: transform var(--transition-base), box-shadow var(--transition-base); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.feature-icon { width: 32px; height: 32px; margin-bottom: var(--space-sm); color: var(--color-primary); }
.feature-icon svg { width: 100%; height: 100%; }
ul.styled-list { list-style: none; padding: 0; }
ul.styled-list li { position: relative; padding-left: 1.5rem; margin-bottom: var(--space-sm); }
ul.styled-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; background: var(--color-primary); border-radius: 50%; }

/* Table */
.table-wrapper { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.platform-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.platform-table th, .platform-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--color-border); font-size: 0.95rem; }
.platform-table th { background: #fafaf8; font-weight: 600; color: var(--color-text); }
.platform-table 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-sm); overflow: hidden; background: var(--color-surface); }
.faq-item summary { padding: 16px 20px; cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--color-text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.2rem; color: var(--color-secondary); transition: transform var(--transition-base); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 20px 16px; font-size: 0.95rem; color: var(--color-text-light); line-height: 1.6; }

/* Download Section */
.download-area { background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-lg); border: 1px solid var(--color-border); }
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: start; }
.install-steps { counter-reset: step; list-style: none; padding: 0; }
.install-steps li { position: relative; padding-left: 2.5rem; margin-bottom: var(--space-md); }
.install-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; background: var(--color-accent); color: var(--color-text); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.85rem; }

/* News Grid */
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-date { font-size: 0.8rem; color: var(--color-secondary); margin-bottom: var(--space-xs); font-weight: 500; }
.news-title { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: var(--space-xs); line-height: 1.4; }
.news-excerpt { font-size: 0.9rem; color: var(--color-text-light); flex-grow: 1; margin-bottom: var(--space-sm); }
.link-block a { display: block; padding: 12px 0; border-bottom: 1px solid var(--color-border); color: var(--color-text); font-weight: 500; }
.link-block a:hover { color: var(--color-primary); padding-left: 8px; }
.link-block small { display: block; font-size: 0.85rem; color: var(--color-text-light); margin-top: 4px; }

/* Footer */
.site-footer { background: #f1efeb; border-top: 1px solid var(--color-border); padding: var(--space-lg) 0; margin-top: var(--space-lg); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); text-align: center; }
.footer-links { display: flex; gap: var(--space-md); list-style: none; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--color-text-light); font-size: 0.9rem; }
.copyright { font-size: 0.85rem; color: var(--color-text-light); }

/* SVG Animations */
.sweep-line { position: absolute; top: 0; left: 0; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent); filter: blur(8px); transform: translateX(-100%); animation: sweep-highlight 6s infinite linear; pointer-events: none; }
@keyframes sweep-highlight { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }

.path-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-path 3s ease-in-out infinite alternate; }
@keyframes draw-path { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }

.wireframe-node { animation: pulse-opacity 4s ease-in-out infinite alternate; }
@keyframes pulse-opacity { 0% { opacity: 0.4; } 100% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .sweep-line, .path-draw, .wireframe-node { animation: none !important; }
}

/* Responsive */
@media (max-width: 768px) {
  .grid-2, .download-grid { grid-template-columns: 1fr; }
  .hero-svg { display: none; }
  .hero-content { text-align: center; }
  h2 { padding-left: 0; }
  h2::before { display: none; }
}
