/* 有道翻译官网 SET1 - 清新蓝绿学习风 */
:root {
  --primary: #0D9488;
  --primary-dark: #0F766E;
  --primary-light: #14B8A6;
  --secondary: #0284C7;
  --secondary-dark: #0369A1;
  --bg: #F0FDFA;
  --bg-soft: #CCFBF1;
  --text: #134E4A;
  --text-muted: #3F6F6A;
  --white: #FFFFFF;
  --border: #99F6E4;
  --shadow: 0 4px 20px rgba(13, 148, 136, 0.12);
  --shadow-hover: 0 8px 28px rgba(13, 148, 136, 0.18);
  --radius: 12px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--secondary);
}

ul, ol {
  padding-left: 1.25rem;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Nav ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(13, 148, 136, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}

.logo svg {
  flex-shrink: 0;
}

.logo:hover {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-menu a {
  display: block;
  padding: 8px 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-menu a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  line-height: 1.4;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.18);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--bg-soft);
  color: var(--primary-dark);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

/* ========== Hero ========== */
.hero {
  text-align: center;
  padding: 80px 0 64px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(20, 184, 166, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, #E0F7F4 0%, var(--bg) 100%);
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ========== Sections ========== */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--white);
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1.02rem;
}

/* ========== Stats ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(153, 246, 228, 0.5);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ========== Features Grid ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(153, 246, 228, 0.4);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bg-soft), #E0F2FE);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========== Deep Articles ========== */
.article-block {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  border: 1px solid rgba(153, 246, 228, 0.35);
  transition: box-shadow 0.2s ease;
}

.article-block:hover {
  box-shadow: var(--shadow-hover);
}

.article-num {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.article-block h2,
.article-block h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.article-block p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.article-block p:last-child {
  margin-bottom: 0;
}

/* ========== Platform Downloads ========== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.platform-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(153, 246, 228, 0.4);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.platform-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.platform-card .plat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.platform-card .plat-icon svg {
  width: 30px;
  height: 30px;
}

.platform-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.platform-card .plat-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.platform-card .btn {
  margin-top: auto;
  width: 100%;
}

/* ========== Comparison Table ========== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
  border: 1px solid rgba(153, 246, 228, 0.4);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid #E0F2F1;
  font-size: 0.95rem;
}

.compare-table th {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-weight: 600;
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.compare-table tbody tr:hover {
  background: var(--bg);
}

.compare-table .highlight-col {
  background: rgba(204, 251, 241, 0.45);
  color: var(--primary-dark);
  font-weight: 600;
}

.compare-table th.highlight-col {
  background: var(--primary-dark);
  color: var(--white);
}

/* ========== Reviews ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(153, 246, 228, 0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.review-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
  color: #F59E0B;
}

.review-stars svg {
  width: 18px;
  height: 18px;
}

.review-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.review-author strong {
  display: block;
  color: var(--text);
}

.review-author span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ========== FAQ Accordion ========== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-list details {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(153, 246, 228, 0.4);
  overflow: hidden;
}

.faq-list summary {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  transition: background 0.2s ease;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s ease;
  margin-top: -4px;
}

.faq-list details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-list summary:hover {
  background: var(--bg);
}

.faq-list details[open] summary {
  border-bottom: 1px solid var(--border);
  color: var(--primary);
}

.faq-list .faq-body {
  padding: 16px 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--text);
  color: rgba(240, 253, 250, 0.85);
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.85;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(240, 253, 250, 0.75);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-security {
  background: rgba(13, 148, 136, 0.25);
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(240, 253, 250, 0.15);
  padding-top: 20px;
  font-size: 0.82rem;
  line-height: 1.7;
  opacity: 0.75;
  text-align: center;
}

/* ========== Download Page ========== */
.dl-hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(20, 184, 166, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(2, 132, 199, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #E0F7F4 0%, var(--bg) 100%);
}

.dl-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.dl-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.35;
}

.dl-hero .subtitle {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 28px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.dl-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dl-meta strong {
  color: var(--text);
}

.dl-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(153, 246, 228, 0.5);
  text-align: center;
}

.dl-panel h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.dl-panel .ver {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.dl-panel .btn {
  width: 100%;
  margin-bottom: 12px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  max-width: 720px;
  margin: 0 auto;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 20px 20px 72px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  border: 1px solid rgba(153, 246, 228, 0.35);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.steps li strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.steps li span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.req-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(153, 246, 228, 0.35);
}

.req-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.req-card ul {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.req-card li {
  margin-bottom: 6px;
}

.changelog {
  max-width: 800px;
  margin: 0 auto;
}

.changelog-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  border-left: 4px solid var(--primary);
}

.changelog-item h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.changelog-item .tag {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--primary-dark);
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.changelog-item .date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.changelog-item ul {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.changelog-item li {
  margin-bottom: 4px;
}

.security-note {
  background: linear-gradient(135deg, #ECFDF5, #E0F2FE);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
}

.security-note h3 {
  color: var(--primary-dark);
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.security-note p {
  color: var(--text-muted);
  margin-bottom: 10px;
}

.security-note p:last-child {
  margin-bottom: 0;
}

/* ========== ZH-CN SEO Page ========== */
.seo-hero {
  padding: 56px 0 40px;
  text-align: center;
  background:
    linear-gradient(180deg, #E0F7F4 0%, var(--bg) 100%);
}

.seo-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.4;
}

.seo-hero .subtitle {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.seo-content {
  max-width: 780px;
  margin: 0 auto;
}

.seo-content article {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(153, 246, 228, 0.35);
  margin-bottom: 28px;
}

.seo-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 28px 0 14px;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-soft);
}

.seo-content h2:first-child {
  margin-top: 0;
}

.seo-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--primary-dark);
}

.seo-content p {
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.85;
}

.seo-content ul,
.seo-content ol {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.seo-content li {
  margin-bottom: 8px;
}

.seo-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  padding: 40px 32px;
  color: var(--white);
  box-shadow: var(--shadow-hover);
}

.seo-cta h2 {
  color: var(--white);
  border: none;
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.seo-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.seo-cta .btn {
  background: var(--white);
  color: var(--primary);
}

.seo-cta .btn:hover {
  background: var(--bg);
  color: var(--primary-dark);
}

.keyword-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.keyword-box span {
  background: var(--bg);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

/* ========== Spin keyframes (required for download.js loading) ========== */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dl-hero-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .req-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
    align-items: flex-start;
  }

  .nav-menu {
    width: 100%;
    justify-content: flex-start;
    gap: 0;
  }

  .nav-menu a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .section {
    padding: 48px 0;
  }

  .stats-grid,
  .features-grid,
  .platform-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .article-block {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .article-num {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .seo-content article {
    padding: 24px 20px;
  }

  .dl-panel {
    padding: 24px 20px;
  }
}
