*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #e8380d;
  --primary-dark: #c42f0a;
  --accent: #1a6fd4;
  --text: #222;
  --text-light: #666;
  --bg: #fff;
  --bg-gray: #f6f8fb;
  --border: #e6e9ef;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --radius: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}

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: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.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-menu {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-menu a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.btn-download {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  padding: 10px 26px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, transform 0.2s;
}

.btn-download:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  color: #fff !important;
}

.hero {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(232, 56, 13, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 10%, rgba(26, 111, 212, 0.08), transparent 45%),
    linear-gradient(180deg, #fff8f5 0%, #fff 55%, #f4f8ff 100%);
  padding: 64px 0 48px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: #fff0eb;
  color: var(--primary);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  font-weight: 600;
}

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 720px;
  margin: 0 auto 12px;
}

.hero .hero-sub {
  font-size: 14px;
  color: #888;
  margin-bottom: 28px;
}

.hero .btn-download {
  padding: 14px 44px;
  font-size: 16px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 880px;
  margin: 40px auto 0;
}

.stat-pill {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 12px;
  box-shadow: var(--shadow);
}

.stat-pill strong {
  display: block;
  font-size: 28px;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-pill span {
  font-size: 13px;
  color: var(--text-light);
}

.translator-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  max-width: 920px;
  margin: 36px auto 0;
  overflow: hidden;
  border: 1px solid var(--border);
  text-align: left;
}

.translator-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.lang-pair {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lang-select {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
  color: var(--text);
}

.swap-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  color: var(--accent);
  font-size: 14px;
}

.tool-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-tags span {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-light);
}

.translator-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 200px;
}

.translator-panel {
  padding: 18px;
}

.translator-panel + .translator-panel {
  border-left: 1px solid var(--border);
  background: #fafbfd;
}

.translator-panel label {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.translator-panel textarea {
  width: 100%;
  min-height: 140px;
  border: none;
  outline: none;
  resize: none;
  font-size: 16px;
  line-height: 1.7;
  background: transparent;
  font-family: inherit;
  color: var(--text);
}

.translator-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.char-hint {
  font-size: 13px;
  color: #999;
}

.section {
  padding: 70px 0;
}

.section-gray {
  background: var(--bg-gray);
}

.section-title {
  text-align: center;
  margin-bottom: 46px;
}

.section-title h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-light);
  font-size: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: #fff5f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 24px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 14px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trust-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow);
}

.trust-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--primary);
}

.trust-card p {
  font-size: 13px;
  color: var(--text-light);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.step-card {
  text-align: center;
  padding: 24px 16px;
}

.step-num {
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin: 0 auto 14px;
}

.step-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-light);
  font-size: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h3 {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.stat-item p {
  color: var(--text-light);
  font-size: 14px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.8;
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
}

.testimonial-label {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 4px;
  font-weight: 400;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  font-family: inherit;
}

.faq-question::after {
  content: "+";
  font-size: 22px;
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 0 18px;
  color: var(--text-light);
  font-size: 15px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.article-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.article-card:hover {
  transform: translateY(-4px);
}

.article-card-body {
  padding: 22px;
}

.article-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-card h3 a {
  color: var(--text);
}

.article-card h3 a:hover {
  color: var(--primary);
}

.article-card p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 12px;
}

.article-meta {
  font-size: 13px;
  color: #999;
}

.article-page {
  padding: 40px 0 70px;
}

.article-page h1 {
  font-size: 30px;
  margin-bottom: 14px;
  line-height: 1.4;
}

.article-page .article-meta {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 22px;
  margin: 32px 0 14px;
}

.article-content h3 {
  font-size: 18px;
  margin: 24px 0 10px;
}

.article-content p {
  margin-bottom: 14px;
  color: var(--text-light);
  font-size: 16px;
}

.article-content ul,
.article-content ol {
  margin: 14px 0 14px 22px;
  color: var(--text-light);
}

.article-content li {
  margin-bottom: 8px;
}

.download-hero {
  background: linear-gradient(135deg, #fff5f2, #f0f6ff);
  padding: 56px 0;
  text-align: center;
}

.download-hero h1 {
  font-size: 34px;
  margin-bottom: 12px;
}

.download-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.download-badges span {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.download-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: border-color 0.25s;
}

.download-card:hover {
  border-color: var(--primary);
}

.download-card .platform-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.download-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.download-card .card-desc {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 14px;
}

.download-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 18px;
  line-height: 1.8;
}

.changelog {
  font-size: 13px;
  color: var(--text-light);
  background: var(--bg-gray);
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-top: 14px;
}

.sitemap-list {
  max-width: 700px;
  margin: 30px auto;
}

.sitemap-list h2 {
  font-size: 20px;
  margin: 24px 0 12px;
  color: var(--primary);
}

.sitemap-list ul {
  list-style: none;
}

.sitemap-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.site-footer {
  background: #2a2a2a;
  color: #aaa;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 28px;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #aaa;
  font-size: 14px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid #444;
  font-size: 13px;
}

.breadcrumb {
  padding: 14px 0;
  font-size: 14px;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.update-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  margin-left: 8px;
}

.security-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.security-box h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.security-box p {
  color: var(--text-light);
  font-size: 15px;
}

.cta-band {
  background: linear-gradient(135deg, #fff5f2, #f0f6ff);
  padding: 48px 0;
  text-align: center;
}

.cta-band h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.cta-band p {
  color: var(--text-light);
  margin-bottom: 20px;
}

@media (max-width: 992px) {
  .features-grid,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hero h1 {
    font-size: 26px;
  }

  .stats-row,
  .translator-panels,
  .features-grid,
  .trust-grid,
  .stats-grid,
  .testimonials-grid,
  .articles-grid,
  .download-grid,
  .footer-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .translator-panel + .translator-panel {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .section-title h2 {
    font-size: 22px;
  }
}
