* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #e74c3c;
  --primary-dark: #c0392b;
  --text: #333;
  --text-light: #666;
  --bg: #fff;
  --bg-gray: #f8f9fa;
  --border: #eee;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.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: 32px;
  list-style: none;
}

.nav a {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

/* 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 .subtitle {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(231, 76, 60, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.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;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title p {
  font-size: 16px;
  color: var(--text-light);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card .icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), #ff8a65);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
}

/* Dict section */
.dict-section {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 70px 0;
}

.dict-section .section-title h2 {
  color: #fff;
}

.dict-section .section-title p {
  color: rgba(255, 255, 255, 0.7);
}

.dict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.dict-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s;
}

.dict-card:hover {
  background: rgba(255, 255, 255, 0.12);
}

.dict-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #ff8a65;
}

.dict-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
}

/* News */
.news-section {
  padding: 70px 0;
}

.news-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 12px;
}

.news-header h2 {
  font-size: 28px;
}

.news-header .en {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 1px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  gap: 20px;
  transition: background 0.2s;
}

.news-item:hover {
  background: var(--bg-gray);
  padding-left: 12px;
  padding-right: 12px;
  margin: 0 -12px;
  border-radius: 8px;
}

.news-item .content {
  flex: 1;
}

.news-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
}

.news-item p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item .date {
  font-size: 13px;
  color: #999;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Download page */
.download-hero {
  background: linear-gradient(135deg, #fff5f5, #f0f7ff);
  padding: 60px 0;
  text-align: center;
}

.download-hero h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

.download-hero p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 32px;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.download-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.download-card .platform-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.download-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.download-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.download-info {
  padding: 50px 0;
}

.download-info h2 {
  font-size: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.info-item {
  text-align: center;
  padding: 20px;
}

.info-item .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.info-item .label {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 4px;
}

/* Article page */
.article-header {
  background: var(--bg-gray);
  padding: 50px 0 40px;
}

.article-header h1 {
  font-size: 32px;
  line-height: 1.4;
  margin-bottom: 16px;
}

.article-meta {
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.article-body {
  padding: 40px 0 60px;
  max-width: 800px;
  margin: 0 auto;
}

.article-body p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
}

.article-body h2 {
  font-size: 22px;
  margin: 36px 0 16px;
  color: var(--text);
}

.article-body ul {
  margin: 16px 0 20px 24px;
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  gap: 20px;
  flex-wrap: wrap;
}

.article-nav a {
  color: var(--primary);
  font-size: 14px;
}

/* Footer */
.footer {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero .subtitle {
    font-size: 16px;
  }

  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 14px;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .news-item {
    flex-direction: column;
  }

  .article-header h1 {
    font-size: 24px;
  }
}
