@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');

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #C8102E;
  --primary-dark: #A00D25;
  --secondary: #0A1628;
  --bg: #F7F5F2;
  --bg-white: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #5A6270;
  --border: #E8E4DF;
  --up: #0F766E;
  --down: #C8102E;
  --radius: 4px;
  --shadow: 0 2px 8px rgba(10, 22, 40, 0.08);
  --shadow-hover: 0 4px 16px rgba(10, 22, 40, 0.12);
  --font-serif: "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --font-sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --nav-height: 60px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  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.25rem; 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: 640px;
  margin: 0.5rem auto 0;
}

/* ===== Keyframes ===== */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 3px solid var(--primary);
  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: 8px;
}

.nav-links a {
  display: block;
  padding: 8px 16px;
  color: var(--secondary);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: rgba(200, 16, 46, 0.06);
  color: var(--primary);
}

.nav-links a.active {
  color: var(--primary);
  background: rgba(200, 16, 46, 0.08);
  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, transform 0.15s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}

.btn-secondary:hover {
  background: #152238;
  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(135deg, var(--bg-white) 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content .subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-panel {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 20px;
  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.15);
}

.panel-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
}

.panel-time {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.quote-list {
  list-style: none;
}

.quote-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.875rem;
}

.quote-item:last-child { border-bottom: none; }

.quote-code { color: rgba(255,255,255,0.5); font-size: 0.75rem; }
.quote-name { font-weight: 500; }
.quote-price { font-weight: 600; text-align: right; }
.quote-change { text-align: right; font-weight: 600; font-size: 0.8rem; }
.quote-change.up { color: #34D399; }
.quote-change.down { color: #F87171; }

.mini-chart {
  margin-top: 16px;
  height: 80px;
}

/* ===== Stats Strip ===== */
.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.75);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ===== Feature Cards ===== */
.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.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 0;
}

/* ===== Platform Cards ===== */
.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: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--secondary);
}

.platform-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.platform-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ===== Deep Dive Articles ===== */
.deep-dive {
  background: var(--bg-white);
}

.article-block {
  margin-bottom: 48px;
  padding-bottom: 48px;
  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.25rem;
}

.article-block h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.article-block p {
  color: var(--text-muted);
}

/* ===== 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.925rem;
}

.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(200, 16, 46, 0.04);
  font-weight: 600;
  color: var(--primary);
}

.check-yes { color: var(--up); font-weight: 700; }
.check-no { color: var(--text-muted); }

/* ===== Reviews ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.review-name {
  font-weight: 600;
  color: var(--secondary);
}

.stars {
  display: flex;
  gap: 2px;
  color: #F59E0B;
}

.review-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.review-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  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;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover { background: rgba(200, 16, 46, 0.04); }

.faq-answer {
  padding: 0 24px 18px;
  color: var(--text-muted);
  font-size: 0.925rem;
}

.faq-answer p:last-child { margin-bottom: 0; }

/* ===== Download Page ===== */
.download-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #152238 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.8);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.download-meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.download-meta span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.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.925rem;
  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.75rem;
  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; }

.requirements-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}

.requirements-list li {
  padding: 8px 0;
  font-size: 0.925rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}

.requirements-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  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);
  font-size: 1rem;
}

.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.925rem;
}

.security-banner {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08) 0%, rgba(15, 118, 110, 0.04) 100%);
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.security-banner h3 {
  color: var(--up);
  margin-bottom: 0.75rem;
}

.security-banner p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ===== ZH-CN 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.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.article-body h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  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: 32px;
  text-align: center;
  margin: 40px 0;
}

.article-cta h3 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.article-cta p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.25rem;
}

.article-cta a.btn-primary {
  background: var(--primary);
}

.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.7);
  padding: 32px 0;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.8;
}

.site-footer p { margin-bottom: 0.5rem; }

.site-footer .security-note {
  color: #34D399;
  font-weight: 500;
  margin-bottom: 12px;
}

/* ===== Quotes Section ===== */
.quotes-section {
  background: var(--bg-white);
}

.quotes-board {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 24px;
  color: #fff;
  box-shadow: var(--shadow-hover);
}

.board-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.board-tab {
  padding: 6px 16px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.board-tab.active {
  background: var(--primary);
  color: #fff;
}

.board-table {
  width: 100%;
  font-size: 0.875rem;
}

.board-table th {
  text-align: left;
  padding: 8px 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.board-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.board-table .up { color: #34D399; }
.board-table .down { color: #F87171; }

/* ===== 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); }
  .reviews-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; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 3px solid var(--primary);
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }

  .features-grid,
  .platforms-grid,
  .stats-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .requirements-list { grid-template-columns: 1fr; }

  .quote-item {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
}
