:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #d1fae5;
  --accent: #ca8a04;
  --accent-light: #fef08a;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-md: 12px;
  --radius-lg: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; }

/* Spin Animation */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-light { background-color: var(--surface); }

/* Navigation */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center; height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 700; color: var(--primary);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-weight: 500; color: var(--text-muted); padding: 8px 16px; border-radius: 8px; transition: all 0.3s;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-links a.active { color: var(--surface); background: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; font-size: 16px; font-weight: 600; border-radius: var(--radius-md);
  transition: all 0.3s;
}
.btn-primary { background: var(--primary); color: var(--surface); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--surface); box-shadow: var(--shadow-md); }
.btn-accent:hover { background: #a16207; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-block { width: 100%; }

/* Hero Section */
.hero {
  padding: 100px 0;
  background-image: radial-gradient(at 0% 0%, hsla(167, 100%, 74%, 0.15) 0px, transparent 50%), 
                    radial-gradient(at 100% 0%, hsla(43, 100%, 64%, 0.15) 0px, transparent 50%);
  text-align: center;
}
.hero-tag {
  display: inline-block; padding: 6px 16px; background: var(--primary-light); color: var(--primary-dark);
  border-radius: 30px; font-size: 14px; font-weight: 600; margin-bottom: 24px;
}
.hero h1 { font-size: 56px; font-weight: 800; line-height: 1.2; margin-bottom: 24px; letter-spacing: -1px; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 20px; color: var(--text-muted); max-width: 700px; margin: 0 auto 40px; }
.hero-actions { display: flex; justify-content: center; gap: 20px; }

/* Stats */
.stats { display: flex; justify-content: center; gap: 48px; margin-top: 60px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { font-size: 32px; font-weight: 800; color: var(--primary); display: block; }
.stat-label { font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* Section Headers */
.sec-header { text-align: center; margin-bottom: 60px; max-width: 700px; margin-inline: auto; }
.sec-header h2 { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.sec-header p { font-size: 18px; color: var(--text-muted); }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.feature-card {
  background: var(--surface); padding: 40px 32px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: all 0.3s;
  position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--primary);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feat-icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.fi-emerald { background: var(--primary-light); color: var(--primary-dark); }
.fi-gold { background: var(--accent-light); color: #a16207; }
.fi-blue { background: #dbeafe; color: #0369a1; }
.feature-card h3 { font-size: 22px; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); }

/* Platform Grid */
.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.plat-card {
  background: var(--surface); padding: 32px 24px; border-radius: var(--radius-md);
  text-align: center; border: 1px solid var(--border);
}
.plat-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-md); position: relative; }
.plat-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: bold;
}
.plat-icon { margin: 0 auto 16px; color: var(--text-main); }
.plat-card h3 { font-size: 20px; margin-bottom: 8px; }
.plat-card p { font-size: 14px; color: var(--text-light); margin-bottom: 24px; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.review-card { background: var(--bg); padding: 32px; border-radius: var(--radius-md); }
.review-stars { color: var(--accent); margin-bottom: 16px; }
.review-text { font-style: italic; color: var(--text-muted); margin-bottom: 24px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.ra-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 20px; }
.ra-info h4 { font-size: 16px; }
.ra-info span { font-size: 13px; color: var(--text-light); }

/* FAQ */
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 16px; overflow: hidden; }
.faq-q { padding: 24px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: 18px; }
.faq-icon { transition: transform 0.3s; color: var(--primary); }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a { max-height: 0; opacity: 0; transition: all 0.3s ease; background: var(--bg); }
.faq-item.open .faq-a { max-height: 500px; opacity: 1; }
.faq-a-inner { padding: 0 24px 24px; color: var(--text-muted); border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; }

/* Download Page Specific */
.dl-hero { padding: 80px 0; background: var(--surface); text-align: center; border-bottom: 1px solid var(--border); }
.dl-main-box {
  max-width: 800px; margin: -40px auto 60px; background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 48px; border: 1px solid var(--border); text-align: center;
  position: relative; z-index: 10;
}
.dl-version-info { display: flex; justify-content: center; gap: 24px; margin: 24px 0; color: var(--text-muted); font-size: 14px; }
.dl-version-info span { display: flex; align-items: center; gap: 6px; }

.install-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; }
.guide-col h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.step { display: flex; gap: 16px; margin-bottom: 24px; }
.step-num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; font-weight: bold; }
.step h4 { margin-bottom: 4px; font-size: 16px; }
.step p { color: var(--text-muted); font-size: 14px; }

.sys-req-table { width: 100%; border-collapse: collapse; margin-top: 24px; background: var(--surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.sys-req-table th, .sys-req-table td { padding: 16px 24px; text-align: left; border-bottom: 1px solid var(--border); }
.sys-req-table th { background: var(--bg); font-weight: 600; width: 30%; }

/* Article Layout (zh-cn) */
.article-layout { display: grid; grid-template-columns: 1fr 350px; gap: 48px; padding: 40px 0; }
.article-main h2 { font-size: 28px; margin: 40px 0 20px; color: var(--primary-dark); border-left: 4px solid var(--primary); padding-left: 16px; }
.article-main p { margin-bottom: 20px; font-size: 17px; color: var(--text-muted); }
.article-main ul { margin: 0 0 24px 24px; list-style: disc; color: var(--text-muted); }
.article-main li { margin-bottom: 12px; }
.sidebar { position: sticky; top: 100px; }
.side-widget { background: var(--surface); border-radius: var(--radius-md); border: 1px solid var(--border); padding: 24px; margin-bottom: 24px; }
.side-widget h3 { font-size: 18px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.toc-list li { margin-bottom: 12px; }
.toc-list a { color: var(--text-muted); transition: color 0.2s; }
.toc-list a:hover { color: var(--primary); }
.compare-table { width: 100%; border-collapse: collapse; margin: 32px 0; }
.compare-table th, .compare-table td { padding: 16px; text-align: center; border: 1px solid var(--border); }
.compare-table th { background: var(--primary-light); color: var(--primary-dark); }
.check { color: var(--primary); font-weight: bold; }
.cross { color: var(--text-light); }
.cta-box { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: white; padding: 40px; border-radius: var(--radius-lg); text-align: center; margin: 60px 0; }
.cta-box h3 { font-size: 28px; margin-bottom: 16px; }
.cta-box p { font-size: 18px; margin-bottom: 32px; opacity: 0.9; }

/* Footer */
.footer { background: var(--text-main); color: var(--text-light); padding: 60px 0 40px; text-align: center; }
.security-banner { background: rgba(5, 150, 105, 0.1); border: 1px solid rgba(5, 150, 105, 0.2); color: #34d399; display: inline-flex; align-items: center; gap: 12px; padding: 16px 32px; border-radius: 50px; margin-bottom: 32px; }
.footer-text { font-size: 14px; max-width: 600px; margin: 0 auto; line-height: 1.8; }

/* Responsive */
@media (max-width: 992px) {
  .article-layout { grid-template-columns: 1fr; }
  .install-guide { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 40px; }
  .nav-links { display: none; }
  .hero-actions { flex-direction: column; }
}
