/* 有道翻译下载站 — 青绿学习风格 Site Pack ROOT */
:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #14b8a6;
  --cyan: #06b6d4;
  --mint: #ecfdf5;
  --mint-deep: #d1fae5;
  --bg: #f0fdfa;
  --surface: #ffffff;
  --text: #134e4a;
  --text-muted: #5f7a76;
  --border: #a7f3d0;
  --shadow: 0 8px 28px rgba(13, 148, 136, 0.10);
  --shadow-hover: 0 14px 36px rgba(13, 148, 136, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 68px;
  --max: 1120px;
  --font: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 900px 420px at 10% -10%, rgba(20, 184, 166, 0.18), transparent 60%),
    radial-gradient(ellipse 700px 380px at 90% 0%, rgba(6, 182, 212, 0.14), transparent 55%),
    linear-gradient(180deg, var(--mint) 0%, var(--bg) 38%, #e6fffa 100%);
  line-height: 1.7;
  min-height: 100vh;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--teal-dark);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* ========== Nav ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(240, 253, 250, 0.78);
  border-bottom: 1px solid rgba(167, 243, 208, 0.65);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.logo:hover {
  color: var(--teal-dark);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.28);
}

.logo-mark svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: var(--mint-deep);
  color: var(--teal-dark);
}

.nav-links a.active {
  background: rgba(13, 148, 136, 0.12);
  color: var(--teal);
  font-weight: 700;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

/* ========== Hero ========== */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal-dark);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 18em;
  margin-inline: auto;
}

.hero-sub {
  margin: 0 auto 32px;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.hero-deco {
  margin: 40px auto 0;
  width: min(100%, 520px);
  opacity: 0.92;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: #fff;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.28);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-primary:disabled {
  opacity: 0.75;
  cursor: wait;
}

.btn-secondary {
  background: var(--surface);
  color: var(--teal);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--teal);
  background: var(--mint);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--teal-dark);
  border: 1.5px solid var(--teal);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(13, 148, 136, 0.08);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.92rem;
}

/* ========== Sections ========== */
.section {
  padding: 64px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid rgba(167, 243, 208, 0.45);
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  color: var(--text);
}

.section-head p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--text-muted);
}

.section-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ========== Feature cards ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid rgba(167, 243, 208, 0.7);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--mint-deep), #ccfbf1);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--teal);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========== Platform downloads ========== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.platform-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  border: 1px solid rgba(167, 243, 208, 0.65);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.platform-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.platform-card .plat-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--mint);
  display: grid;
  place-items: center;
  color: var(--teal);
}

.platform-card .plat-icon svg {
  width: 28px;
  height: 28px;
}

.platform-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.platform-card p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
  min-height: 2.8em;
}

/* ========== Articles ========== */
.article-list {
  display: grid;
  gap: 28px;
}

.deep-article {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid rgba(167, 243, 208, 0.6);
  box-shadow: var(--shadow);
}

.deep-article h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.deep-article h2 .art-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--mint-deep);
  display: grid;
  place-items: center;
  color: var(--teal);
  flex-shrink: 0;
}

.deep-article h2 .art-icon svg {
  width: 22px;
  height: 22px;
}

.deep-article p {
  margin: 0 0 12px;
  color: var(--text-muted);
}

.deep-article p:last-child {
  margin-bottom: 0;
}

/* ========== Stats ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 16px;
  border: 1px solid rgba(167, 243, 208, 0.65);
  box-shadow: var(--shadow);
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1.2;
  margin-bottom: 6px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========== Reviews ========== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px 22px;
  border: 1px solid rgba(167, 243, 208, 0.6);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.review-card:hover {
  transform: translateY(-3px);
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.review-name {
  font-weight: 700;
  color: var(--text);
}

.stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
}

.stars svg {
  width: 16px;
  height: 16px;
}

.review-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* ========== Comparison table ========== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid rgba(167, 243, 208, 0.65);
}

.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 rgba(167, 243, 208, 0.5);
  font-size: 0.95rem;
}

.compare-table th {
  background: linear-gradient(180deg, var(--mint-deep), var(--mint));
  color: var(--teal-dark);
  font-weight: 700;
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table .yes {
  color: var(--teal);
  font-weight: 700;
}

.compare-table .no {
  color: #94a3b8;
}

.compare-table .highlight-col {
  background: rgba(13, 148, 136, 0.06);
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(167, 243, 208, 0.65);
  box-shadow: var(--shadow);
  padding: 4px 20px;
  transition: border-color 0.2s ease;
}

.faq-list details[open] {
  border-color: var(--teal-light);
}

.faq-list summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 650;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-top: -4px;
}

.faq-list details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-list details p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========== Download page ========== */
.download-hero {
  padding: 56px 0 40px;
  text-align: center;
}

.download-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3.8vw, 2.4rem);
}

.download-hero > p {
  margin: 0 auto 28px;
  max-width: 600px;
  color: var(--text-muted);
}

.featured-dl {
  background: var(--surface);
  border-radius: 20px;
  padding: 40px 36px;
  border: 1px solid rgba(167, 243, 208, 0.7);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.featured-dl h2 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.featured-meta li strong {
  color: var(--teal-dark);
  font-weight: 600;
}

.featured-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 20px 22px 20px 72px;
  position: relative;
  border: 1px solid rgba(167, 243, 208, 0.6);
  box-shadow: var(--shadow);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.steps li h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.steps li p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.req-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.req-list li {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  border: 1px solid rgba(167, 243, 208, 0.6);
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.req-list li svg {
  width: 22px;
  height: 22px;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.req-list strong {
  display: block;
  margin-bottom: 4px;
}

.req-list span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.changelog {
  display: grid;
  gap: 16px;
}

.change-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  border: 1px solid rgba(167, 243, 208, 0.6);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--teal);
}

.change-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.change-tag {
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--mint-deep);
  color: var(--teal-dark);
  font-weight: 700;
}

.change-item ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.change-item li {
  margin-bottom: 4px;
}

.security-box {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(6, 182, 212, 0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
}

.security-box h2 {
  margin: 0 0 12px;
}

.security-box p {
  margin: 0 auto 10px;
  max-width: 640px;
  color: var(--text-muted);
}

.security-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}

.security-icons div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.92rem;
}

.security-icons svg {
  width: 22px;
  height: 22px;
  color: var(--teal);
}

/* ========== zh-cn article ========== */
.soft-article {
  padding: 48px 0 64px;
}

.soft-article .article-body {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 36px;
  border: 1px solid rgba(167, 243, 208, 0.65);
  box-shadow: var(--shadow);
  max-width: 820px;
  margin: 0 auto;
}

.soft-article h1 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  line-height: 1.35;
}

.soft-article .lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--mint-deep);
}

.soft-article h2 {
  margin: 32px 0 12px;
  font-size: 1.28rem;
  color: var(--teal-dark);
}

.soft-article p {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.soft-article ul {
  margin: 0 0 16px;
  padding-left: 1.3em;
  color: var(--text-muted);
}

.soft-article li {
  margin-bottom: 6px;
}

.cta-banner {
  margin-top: 36px;
  padding: 28px;
  text-align: center;
  background: linear-gradient(135deg, var(--mint-deep), #cffafe);
  border-radius: var(--radius-sm);
}

.cta-banner p {
  margin: 0 0 16px;
  color: var(--text);
  font-weight: 600;
}

/* ========== Footer ========== */
.site-footer {
  background: #0f766e;
  color: rgba(255, 255, 255, 0.88);
  padding: 40px 0 28px;
  margin-top: 40px;
}

.site-footer a {
  color: #99f6e4;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: #fff;
}

.footer-grid p,
.footer-grid li {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-grid h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.95rem;
}

.footer-assure {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* ========== Spin ========== */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .featured-dl {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .featured-meta {
    justify-content: center;
  }

  .featured-actions {
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .nav-links a:not(.nav-cta) {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .section {
    padding: 48px 0;
  }

  .feature-grid,
  .platform-grid,
  .stats-grid,
  .review-grid,
  .req-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .deep-article,
  .soft-article .article-body,
  .featured-dl {
    padding: 24px 20px;
  }

  .steps li {
    padding-left: 64px;
  }
}
