*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #e01e1e;
  --primary-dark: #c01818;
  --text: #333;
  --text-light: #666;
  --bg: #fff;
  --bg-gray: #f7f7f7;
  --border: #eee;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.logo img { width: 36px; height: 36px; }

.nav { display: flex; gap: 28px; }

.nav a {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.nav a.active, .nav a:hover { color: var(--primary); }

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  transition: background .2s;
}

.btn-download:hover { background: var(--primary-dark); color: #fff !important; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 50%, #f0f7ff 100%);
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.hero h1 span { color: var(--primary); }

.hero-sub {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 14px 36px;
  border-radius: 28px;
  font-size: 17px;
  font-weight: 600;
  transition: background .2s, transform .2s;
}

.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 34px;
  border-radius: 28px;
  font-size: 17px;
  font-weight: 600;
  transition: all .2s;
}

.btn-outline:hover { background: var(--primary); color: #fff; }

/* Features */
.section { padding: 70px 0; }
.section:nth-child(even) { background: var(--bg-gray); }

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}

.section:nth-child(even) .feature-card { background: #fff; }

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text);
}

.feature-card p { color: var(--text-light); font-size: 15px; }

.feature-icon {
  width: 48px;
  height: 48px;
  background: #fff0f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

/* 视频字幕示意 */
.video-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.feature-showcase {
  text-align: center;
}

.feature-showcase img {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
}

.feature-showcase-caption {
  margin-top: 14px;
  color: var(--text-light);
  font-size: 14px;
}

/* Dict section */
.dict-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 70px 0;
}

.dict-banner .section-title { color: #fff; }
.dict-banner .section-desc { color: rgba(255,255,255,.7); }

.dict-banner .feature-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: none;
}

.dict-banner .feature-card h3 { color: #fff; }
.dict-banner .feature-card p { color: rgba(255,255,255,.75); }
.dict-banner .feature-icon { background: rgba(224,30,30,.2); }

/* News */
.news-section { padding: 70px 0; }

.news-header {
  text-align: center;
  margin-bottom: 40px;
}

.news-header h2 { font-size: 32px; margin-bottom: 6px; }
.news-header p { color: var(--text-light); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }

.news-list { display: flex; flex-direction: column; gap: 20px; }

.news-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: var(--bg-gray);
  border-radius: 10px;
  transition: background .2s;
  align-items: flex-start;
}

.news-item:hover { background: #f0f0f0; }

.news-date {
  flex-shrink: 0;
  width: 100px;
  text-align: center;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  padding-top: 4px;
}

.news-content h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.5; }
.news-content p { color: var(--text-light); font-size: 14px; line-height: 1.8; }

/* Footer */
.site-footer {
  background: #2c2c2c;
  color: rgba(255,255,255,.7);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.6); font-size: 14px; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* Page header */
.page-header {
  background: linear-gradient(135deg, #fff5f5, #f0f7ff);
  padding: 48px 0;
  text-align: center;
}

.page-header h1 { font-size: 36px; margin-bottom: 10px; }
.page-header p { color: var(--text-light); font-size: 16px; }

/* Download page */
.download-section { padding: 60px 0; }

.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.download-card {
  text-align: center;
  padding: 40px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: box-shadow .2s;
}

.download-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }

.download-card .platform-icon { font-size: 48px; margin-bottom: 16px; }
.download-card h3 { font-size: 20px; margin-bottom: 8px; }
.download-card p { color: var(--text-light); font-size: 14px; margin-bottom: 20px; }

/* Article */
.article-wrap { padding: 48px 0 70px; }

.article-meta {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.article-body h2 { font-size: 24px; margin: 32px 0 16px; }
.article-body h3 { font-size: 20px; margin: 24px 0 12px; }
.article-body p { margin-bottom: 16px; color: var(--text); font-size: 16px; }
.article-body ul, .article-body ol { margin: 16px 0 16px 24px; }
.article-body li { margin-bottom: 8px; }

.article-nav {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.article-nav a { color: var(--primary); font-size: 15px; }

/* Sitemap page */
.sitemap-list { padding: 48px 0 70px; }
.sitemap-list ul { list-style: none; }
.sitemap-list > ul > li { margin-bottom: 24px; }
.sitemap-list > ul > li > a { font-size: 18px; font-weight: 600; color: var(--primary); }
.sitemap-list ul ul { margin: 12px 0 0 20px; }
.sitemap-list ul ul li { margin-bottom: 8px; }
.sitemap-list ul ul a { font-size: 15px; color: var(--text); }

@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .nav { gap: 16px; font-size: 14px; }
  .header-inner { height: 56px; }
  .news-item { flex-direction: column; gap: 8px; }
  .news-date { width: auto; text-align: left; }
  .section-title { font-size: 26px; }
}
