@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Noto+Serif+SC:wght@500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #C41E3A;
  --primary-dark: #A01830;
  --secondary: #1A2332;
  --bg: #F5F6F8;
  --bg-white: #FFFFFF;
  --text: #222222;
  --text-muted: #5C6470;
  --border: #E2E5EA;
  --up: #C41E3A;
  --down: #2E8B57;
  --radius: 7px;
  --shadow: 0 2px 10px rgba(26, 35, 50, 0.07);
  --shadow-hover: 0 6px 20px rgba(26, 35, 50, 0.11);
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --nav-height: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.35;
  color: var(--secondary);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 64px 0; }

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0.5rem auto 0;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.logo svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  display: block;
  padding: 10px 16px;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover {
  color: var(--primary-dark);
}

.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-sm { padding: 8px 20px; font-size: 0.9rem; }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }

/* Hero */
.hero {
  padding: 72px 0 64px;
  background: linear-gradient(160deg, var(--bg-white) 55%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content { text-align: left; }

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.hero-content .subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-panel {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-hover);
  color: #fff;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.panel-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
}

.panel-time {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

.quote-list { list-style: none; }

.quote-item {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.85rem;
}

.quote-item:last-child { border-bottom: none; }

.quote-code { color: rgba(255,255,255,0.45); font-size: 0.72rem; }
.quote-name { font-weight: 500; }
.quote-price { font-weight: 600; text-align: right; }
.quote-change { text-align: right; font-weight: 600; font-size: 0.78rem; }
.quote-change.up { color: #FF6B7A; }
.quote-change.down { color: #6BCB8B; }

.kline-chart {
  margin-top: 18px;
  height: 100px;
  width: 100%;
}

/* Stats */
.stats-strip {
  background: var(--secondary);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item .stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-item .stat-label {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--primary);
}

.feature-card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* Platforms */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.platform-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}

.platform-card:hover { box-shadow: var(--shadow-hover); }

.platform-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  color: var(--secondary);
}

.platform-card h3 { font-size: 1.02rem; margin-bottom: 8px; }

.platform-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Deep dive */
.deep-dive { background: var(--bg-white); }

.article-block {
  margin-bottom: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}

.article-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.article-block h2 {
  color: var(--primary);
  margin-bottom: 1.1rem;
}

.article-block h3 {
  margin-top: 1.4rem;
  font-size: 1.08rem;
}

.article-block p { color: var(--text-muted); }

/* Reviews - horizontal quote blocks */
.reviews-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.review-quote {
  flex: 0 0 min(340px, 85vw);
  scroll-snap-align: start;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px 28px 28px 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  position: relative;
}

.review-quote::before {
  content: "\201C";
  position: absolute;
  top: 12px;
  left: 16px;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: rgba(196, 30, 58, 0.15);
  line-height: 1;
}

.review-quote-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-left: 20px;
}

.review-name {
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.95rem;
}

.stars {
  display: flex;
  gap: 2px;
  color: #D4A017;
}

.review-quote p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0;
  padding-left: 20px;
}

.review-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
  padding-left: 20px;
}

/* Comparison table */
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  font-size: 0.92rem;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--secondary);
  color: #fff;
  font-weight: 600;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.comparison-table tr:last-child td { border-bottom: none; }

.comparison-table .highlight {
  background: rgba(196, 30, 58, 0.05);
  font-weight: 600;
  color: var(--primary);
}

.check-yes { color: var(--down); font-weight: 600; }
.check-no { color: var(--text-muted); }

.up { color: var(--up); font-weight: 600; }
.down { color: var(--down); font-weight: 600; }

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  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::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 400;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item summary:hover { background: rgba(196, 30, 58, 0.04); }

.faq-answer {
  padding: 0 24px 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.faq-answer p:last-child { margin-bottom: 0; }

/* Download page */
.download-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #243044 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.download-hero h1 {
  color: #fff;
  margin-bottom: 1rem;
}

.download-hero .version-badge {
  display: inline-block;
  background: var(--primary);
  padding: 4px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.download-hero p {
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.download-meta {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.download-meta span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.68);
}

.platform-download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.download-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.download-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.download-card .steps {
  list-style: none;
  counter-reset: step;
  margin: 16px 0;
}

.download-card .steps li {
  counter-increment: step;
  padding: 8px 0 8px 36px;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.download-card .steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-guide {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.install-guide h3 { margin-bottom: 1rem; }

.install-guide .steps {
  list-style: none;
  counter-reset: step;
}

.install-guide .steps li {
  counter-increment: step;
  padding: 10px 0 10px 40px;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.install-guide .steps li:last-child { border-bottom: none; }

.install-guide .steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.requirements-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}

.requirements-list li {
  padding: 8px 0 8px 20px;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.requirements-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.changelog {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.changelog-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.changelog-item:last-child { border-bottom: none; }

.changelog-item .version {
  font-weight: 700;
  color: var(--primary);
}

.changelog-item .date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 12px;
}

.changelog-item ul {
  margin-top: 8px;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.security-banner {
  background: linear-gradient(135deg, rgba(46, 139, 87, 0.08) 0%, rgba(46, 139, 87, 0.03) 100%);
  border: 1px solid rgba(46, 139, 87, 0.22);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.security-banner h3 {
  color: var(--down);
  margin-bottom: 0.75rem;
}

.security-banner p {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* Article page */
.article-page { background: var(--bg-white); }

.article-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}

.article-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.article-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-body {
  padding: 40px 0 64px;
  max-width: 800px;
}

.article-body h2 {
  font-size: 1.45rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.article-body h3 {
  font-size: 1.12rem;
  margin-top: 1.6rem;
  color: var(--secondary);
}

.article-body p {
  color: var(--text);
  text-align: justify;
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--text-muted);
}

.article-body li { margin-bottom: 0.5rem; }

.article-cta {
  background: var(--secondary);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  margin: 48px 0 32px;
  box-shadow: var(--shadow-hover);
}

.article-cta h3 {
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.article-cta p {
  color: rgba(255,255,255,0.82);
  margin-bottom: 1.25rem;
}

.article-cta a.btn-primary {
  background: var(--primary);
  color: #fff;
}

.info-box {
  background: var(--bg);
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.info-box p { margin-bottom: 0; color: var(--text-muted); }

/* Footer */
.site-footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.68);
  padding: 32px 0;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.85;
}

.site-footer p { margin-bottom: 0.5rem; }

.site-footer .security-note {
  color: #6BCB8B;
  font-weight: 500;
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-download-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  .hero-content h1 { font-size: 1.875rem; }

  .nav-toggle { display: block; }

  .site-header { position: relative; }

  .nav-inner { position: relative; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 12px 16px;
    box-shadow: var(--shadow);
    z-index: 999;
  }

  .nav-links.open { display: flex; }

  .features-grid,
  .platforms-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .requirements-list { grid-template-columns: 1fr; }

  .quote-item {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
}
