/* ============================================================
   The Chinese Path — Learn Chinese, Discover China
   全局样式表
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --dark: #0f172a;
  --gray-900: #1e293b;
  --gray-700: #334155;
  --gray-500: #64748b;
  --gray-300: #cbd5e1;
  --gray-100: #f1f5f9;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --success: #10b981;
  --danger: #ef4444;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   导航栏
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  max-width: 1320px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.nav-menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px;
  list-style: none;
}

.nav-menu a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--primary-dark);
  color: #fff !important;
}

@media (max-width: 1200px) and (min-width: 769px) {
  .nav-inner { gap: 10px; padding: 14px 18px; }
  .nav-menu { gap: 13px; }
  .nav-menu a { font-size: 13.5px; }
  .nav-logo { font-size: 15.5px; }
  .nav-cta { padding: 9px 14px; font-size: 13.5px; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
}

/* ============================================================
   Hero 区域
   ============================================================ */
.hero {
  padding: 80px 0 64px;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 19px;
  color: var(--gray-700);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-100);
}

.hero-stat .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
}

.hero-stat .label {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

.hero-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}

.hero-card-row:last-child {
  border-bottom: none;
}

.hero-card-flag {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.hero-card-text {
  flex: 1;
}

.hero-card-text .en {
  font-weight: 600;
  color: var(--dark);
  font-size: 15px;
}

.hero-card-text .cn {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero p.lead {
    margin: 0 auto 32px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 32px;
  }
}

/* ============================================================
   Section 通用
   ============================================================ */
section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head .eyebrow {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 40px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-head p {
  font-size: 18px;
  color: var(--gray-500);
}

@media (max-width: 768px) {
  .section-head h2 {
    font-size: 28px;
  }
}

/* ============================================================
   内容卡片网格
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--gray-100);
  transition: all 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.card p {
  color: var(--gray-500);
  font-size: 15px;
  margin-bottom: 16px;
}

.card-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   数字产品
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 64px;
  font-weight: 900;
}

.product-image.green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.product-image.purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.product-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.product-card p {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 16px;
  flex: 1;
}

.product-features {
  list-style: none;
  margin-bottom: 20px;
}

.product-features li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--gray-700);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.product-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.price-now {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
}

.price-old {
  font-size: 16px;
  color: var(--gray-500);
  text-decoration: line-through;
}

/* ============================================================
   CTA 区块
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--gray-900) 100%);
  color: #fff;
  text-align: center;
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   订阅表单
   ============================================================ */
.subscribe-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 32px auto 0;
}

.subscribe-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
}

.subscribe-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

@media (max-width: 540px) {
  .subscribe-form {
    flex-direction: column;
  }
}

/* ============================================================
   每日短语页
   ============================================================ */
.phrase-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.phrase-card:hover {
  box-shadow: var(--shadow-md);
}

.phrase-card .date {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 600;
  margin-bottom: 8px;
}

.phrase-card .english {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.phrase-card .ipa {
  font-size: 14px;
  color: var(--gray-500);
  font-family: "Lucida Sans Unicode", sans-serif;
  margin-bottom: 12px;
}

.phrase-card .meaning {
  font-size: 15px;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.phrase-card .example {
  background: var(--bg-soft);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--gray-700);
  font-style: italic;
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
}

.footer-col h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  padding: 6px 0;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   博客
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.blog-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-cover {
  height: 160px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 36px;
  font-weight: 800;
}

.blog-cover.purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.blog-cover.green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.blog-body {
  padding: 20px;
}

.blog-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card p {
  font-size: 14px;
  color: var(--gray-500);
}

/* ============================================================
   About 页
   ============================================================ */
.about-hero {
  padding: 60px 0;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  text-align: center;
}

.about-hero h1 {
  font-size: 44px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.about-hero p {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 640px;
  margin: 0 auto;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

/* ============================================================
   工具类
   ============================================================ */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.eyebrow {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   404 Error Page
   ============================================================ */
.error-page {
  padding: 120px 0 80px;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}
.error-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.error-code {
  font-size: 8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.error-card h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.error-card .lead {
  margin-bottom: 40px;
  color: var(--text-muted);
}
.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-soft);
}
.error-suggestions h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.suggestion-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
}
.suggestion-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: white;
  box-shadow: var(--shadow-md);
}
.suggestion-icon {
  font-size: 2rem;
}

/* ============================================================
   Legal Pages (Privacy / Terms / Refund)
   ============================================================ */
.legal-page {
  padding: 80px 0;
}
.legal-hero {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.legal-eyebrow {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.legal-hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.container-narrow {
  max-width: 800px;
}
.legal-toc {
  background: var(--bg-soft);
  padding: 24px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 48px;
}
.legal-toc h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  color: var(--text-muted);
}
.legal-toc ol {
  list-style: decimal;
  padding-left: 24px;
  margin: 0;
}
.legal-toc ol li {
  margin-bottom: 8px;
}
.legal-toc a {
  color: var(--primary);
  text-decoration: none;
}
.legal-toc a:hover {
  text-decoration: underline;
}
.legal-content {
  line-height: 1.85;
}
.legal-content section {
  margin-bottom: 48px;
  scroll-margin-top: 80px;
}
.legal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text-main);
  letter-spacing: -0.01em;
}
.legal-content p {
  margin-bottom: 16px;
  color: var(--text-main);
}
.legal-content ul, .legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-content li {
  margin-bottom: 8px;
  color: var(--text-main);
}
.legal-content strong {
  color: var(--primary);
  font-weight: 600;
}
.legal-related {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.legal-related h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.legal-related-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.legal-related-links a {
  padding: 10px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.legal-related-links a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============================================================
   Refund Highlight Banner
   ============================================================ */
.refund-highlight {
  margin: 32px 0 48px;
  padding: 32px 40px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius);
  text-align: left;
}
.refund-highlight-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.big-number {
  font-size: 5rem;
  font-weight: 800;
  color: #059669;
  line-height: 1;
}
.refund-highlight h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #047857;
}
.refund-highlight p {
  color: var(--text-muted);
  margin: 0;
}
[lang="zh-CN"] .refund-highlight h3 {
  color: #047857;
}

/* ============================================================
   Cookie Consent Banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 720px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: none;
  animation: slideUp 0.3s ease-out;
}
.cookie-banner.show {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  min-width: 280px;
  font-size: 14px;
  color: var(--text-main);
}
.cookie-text strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-main);
}
.cookie-text a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}
.cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cookie-actions .btn {
  padding: 8px 16px;
  font-size: 14px;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============================================================
   Back to Top Button
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 999;
  pointer-events: none;
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* ============================================================
   Hamburger Menu (Mobile)
   ============================================================ */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================================================
   Loading Progress Bar
   ============================================================ */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  z-index: 99999;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.4s ease-out;
  pointer-events: none;
}
.progress-bar.loading {
  animation: progress 1.2s ease-in-out;
}
@keyframes progress {
  0% { transform: scaleX(0); }
  60% { transform: scaleX(0.7); }
  100% { transform: scaleX(1); opacity: 0; }
}

/* ============================================================
   Skeleton Loading
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.4s infinite;
  border-radius: var(--radius-sm);
  display: inline-block;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
}
.skeleton-text:last-child {
  width: 60%;
}
.skeleton-card {
  height: 240px;
  width: 100%;
}

/* ============================================================
   Sticky Nav (when scrolled)
   ============================================================ */
.nav.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  animation: slideDown 0.3s;
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
[lang="zh-CN"] .nav.sticky {
  background: rgba(255, 255, 255, 0.98);
}

/* ============================================================
   Newsletter Form (real validation + feedback)
   ============================================================ */
.newsletter-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 480px;
}
.newsletter-inline input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: white;
}
.newsletter-inline input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.newsletter-message {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  display: none;
}
.newsletter-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: block;
}
.newsletter-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: block;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-muted);
  list-style: none;
  margin: 0;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb li[aria-current="page"] {
  color: var(--text-main);
  font-weight: 500;
}
.breadcrumb-sep {
  color: var(--text-muted);
  opacity: 0.5;
}

/* ============================================================
   Toast Notification
   ============================================================ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  pointer-events: none;
}
.toast {
  background: white;
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  min-width: 280px;
  max-width: 400px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s ease-out;
}
.toast.toast-success { border-left-color: #10b981; }
.toast.toast-error { border-left-color: #ef4444; }
.toast-icon { font-size: 1.25rem; }
.toast-message { flex: 1; font-size: 14px; }
.toast.fadeout { animation: fadeOut 0.3s ease-out forwards; }
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateX(20px); }
}

/* ============================================================
   Mobile Sidebar
   ============================================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 80vw;
  height: 100vh;
  background: white;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  z-index: 9998;
  padding: 80px 24px 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-menu li {
  margin-bottom: 4px;
}
.mobile-menu a {
  display: block;
  padding: 14px 16px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active {
  background: var(--bg-soft);
  color: var(--primary);
}
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-muted);
}

/* ============================================================
   Responsive Improvements (mobile / tablet)
   ============================================================ */
@media (max-width: 980px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
}
@media (max-width: 768px) {
  .hero-eyebrow { font-size: 12px; }
  h1 { font-size: 2.25rem !important; }
  h2 { font-size: 1.75rem !important; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; }
  .product-grid { grid-template-columns: 1fr; }
  .suggestion-grid { grid-template-columns: repeat(2, 1fr); }
  .refund-highlight-inner { flex-direction: column; text-align: center; }
  .big-number { font-size: 4rem; }
  .legal-hero h1 { font-size: 2.25rem; }
  .container-narrow { padding-left: 20px; padding-right: 20px; }
  .error-code { font-size: 6rem; }
  .cookie-banner { left: 12px; right: 12px; padding: 16px; }
  .back-to-top { bottom: 20px; right: 20px; }
  .toast-container { right: 12px; left: 12px; }
  .toast { min-width: 0; }
  .scroll-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .phrases-grid { grid-template-columns: 1fr; }
  .product-features { font-size: 13px; }
}
@media (max-width: 480px) {
  .suggestion-grid { grid-template-columns: 1fr; }
  .error-actions { flex-direction: column; align-items: stretch; }
  .error-actions .btn { width: 100%; }
  .nav-inner { padding: 12px 20px; }
  .nav-logo { font-size: 18px; }
  .stat-grid { grid-template-columns: 1fr; }
  .lang-switch { padding: 4px 8px; font-size: 12px; }
}

/* ============================================================
   Print Stylesheet (clean PDF / print version)
   ============================================================ */
@media print {
  .nav, .footer, .hamburger, .back-to-top, .cookie-banner, .mobile-menu,
  .mobile-menu-overlay, .newsletter-section { display: none !important; }
  body { font-size: 12pt; color: black; background: white; }
  a { color: black; text-decoration: underline; }
  .container { max-width: 100%; padding: 0; }
}

/* ============================================================
   Accessibility - Focus Visible
   ============================================================ */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Skip Link (a11y)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  z-index: 99999;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 16px;
}

/* ============================================================
   Page Transitions
   ============================================================ */
.page-fade-in {
  animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Testimonials Section
   ============================================================ */
.testimonials-section {
  padding: 80px 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.testimonial-card {
  background: white;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 1.25rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-card p {
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #60a5fa 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.testimonial-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
}
.testimonial-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   Trust Bar (social proof strip)
   ============================================================ */
.trust-bar {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  text-align: center;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.trust-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   Newsletter CTA Section
   ============================================================ */
.newsletter-cta {
  padding: 80px 0;
}
.newsletter-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  padding: 48px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.newsletter-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, transparent 70%);
  transform: translate(50%, -50%);
}
.newsletter-content {
  position: relative;
  z-index: 1;
}
.newsletter-content .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
.newsletter-content h2 {
  font-size: 2rem;
  margin: 16px 0 12px;
  letter-spacing: -0.02em;
}
.newsletter-content p {
  opacity: 0.8;
  margin-bottom: 24px;
}
.newsletter-card .newsletter-inline {
  max-width: 460px;
}
.newsletter-card .newsletter-inline input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}
.newsletter-card .newsletter-inline input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.newsletter-card .newsletter-inline input:focus {
  border-color: white;
  background: rgba(255, 255, 255, 0.15);
}
.newsletter-meta {
  margin-top: 16px;
  opacity: 0.6;
}
.newsletter-stamps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.stamp-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  backdrop-filter: blur(12px);
}
@media (max-width: 768px) {
  .newsletter-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
  .newsletter-stamps {
    grid-template-columns: 1fr 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Stats / Counter Section
   ============================================================ */
.stats-section {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
  position: relative;
  z-index: 1;
  text-align: center;
}
.stat-item .stat-num {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item .stat-label {
  opacity: 0.85;
  font-size: 14px;
}

/* ============================================================
   Section spacing improvements
   ============================================================ */
[lang^="zh"] body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Source Han Sans CN", sans-serif;
  line-height: 1.75;
}
[lang^="zh"] .lead {
  line-height: 1.8;
}

/* ============================================================
   Progress ring (for learning progress display)
   ============================================================ */
.progress-ring {
  display: inline-block;
  position: relative;
  width: 60px;
  height: 60px;
}
.progress-ring svg {
  transform: rotate(-90deg);
}
.progress-ring .progress-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

/* ============================================================
   Tooltip (for explaining jargon)
   ============================================================ */
[data-tooltip] {
  position: relative;
  border-bottom: 1px dotted;
  cursor: help;
}
[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-main);
  color: white;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  white-space: nowrap;
  z-index: 100;
}

/* ============================================================
   Improved focus styles for keyboard navigation
   ============================================================ */
.btn:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.4);
  outline-offset: 2px;
}

/* ============================================================
   Persona Router — 画像分流区块
   ============================================================ */
.persona-router {
  background: var(--bg-soft, #f7f8fa);
  padding: 72px 0;
}
.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}
@media (max-width: 900px) { .persona-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .persona-grid { grid-template-columns: 1fr; } }
.persona-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  padding: 22px 20px 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.persona-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
  border-color: rgba(15,23,42,.16);
}
.persona-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
}
.persona-card .pc-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}
.persona-card .pc-title {
  font-size: 16px; font-weight: 600; color: #1f2933;
  margin-bottom: 6px;
}
.persona-card .pc-need {
  font-size: 13px; color: #6b7280; line-height: 1.6;
  margin-bottom: 14px;
  min-height: 40px;
}
.persona-card .pc-link {
  font-size: 13px; font-weight: 600; color: #185fa5;
  display: inline-flex; align-items: center; gap: 4px;
}
.persona-card .pc-tag {
  position: absolute; top: 16px; right: 16px;
  font-size: 11px; font-weight: 600; color: #6b7280;
  background: #f1f5f9; padding: 2px 8px; border-radius: 100px;
}
/* 色变体 */
.persona-card.p-a::before { background: #185fa5; }
.persona-card.p-a .pc-icon { background: #185fa5; }
.persona-card.p-a .pc-link { color: #185fa5; }
.persona-card.p-b::before { background: #993c1d; }
.persona-card.p-b .pc-icon { background: #d85a30; }
.persona-card.p-b .pc-link { color: #993c1d; }
.persona-card.p-c::before { background: #0f6e56; }
.persona-card.p-c .pc-icon { background: #1d9e75; }
.persona-card.p-c .pc-link { color: #0f6e56; }
.persona-card.p-d::before { background: #534ab7; }
.persona-card.p-d .pc-icon { background: #7f77dd; }
.persona-card.p-d .pc-link { color: #534ab7; }
.persona-card.p-e::before { background: #854f0b; }
.persona-card.p-e .pc-icon { background: #ef9f27; }
.persona-card.p-e .pc-link { color: #854f0b; }
.persona-card.p-f::before { background: #993556; }
.persona-card.p-f .pc-icon { background: #d4537e; }
.persona-card.p-f .pc-link { color: #993556; }
.persona-card.p-f { opacity: .72; }

/* ============================================================
   Product Fit Tag — 产品适合人群标签
   ============================================================ */
.product-fit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  margin-left: 6px;
  vertical-align: middle;
}
.product-fit.fit-a { background: #e6f1fb; color: #185fa5; }
.product-fit.fit-b { background: #faeee7; color: #993c1d; }
.product-fit.fit-c { background: #e1f5ee; color: #0f6e56; }
.product-fit.fit-all { background: #eaf3de; color: #3b6d11; }

/* ============================================================
   Overseas UX v3.0 — 境外访客体验组件
   ============================================================ */

/* --- Language hint banner --- */
.lang-hint-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 16px;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  font-size: 14px;
  position: relative;
  z-index: 1001;
}
.lang-hint-banner a { color: #b45309; font-weight: 600; text-decoration: underline; }
.lang-hint-close {
  background: none; border: none; cursor: pointer;
  font-size: 18px; line-height: 1; color: #92400e; padding: 2px 6px;
}

/* --- Newsletter strip --- */
.newsletter-strip {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  padding: 56px 0;
}
.newsletter-strip .ns-inner {
  max-width: 640px; margin: 0 auto; text-align: center; padding: 0 20px;
}
.newsletter-strip h3 { font-size: 26px; margin: 0 0 10px; }
.newsletter-strip p { opacity: .88; margin: 0 0 22px; font-size: 15px; }
.fp-newsletter-form {
  display: flex; gap: 10px; max-width: 460px; margin: 0 auto;
}
.fp-newsletter-form input[type="email"] {
  flex: 1; padding: 13px 18px; border-radius: 100px; border: none;
  font-size: 15px; outline: none;
}
.fp-newsletter-form button {
  padding: 13px 26px; border-radius: 100px; border: none; cursor: pointer;
  background: #fbbf24; color: #1e293b; font-weight: 700; font-size: 15px;
  white-space: nowrap; transition: transform .15s ease;
}
.fp-newsletter-form button:hover { transform: translateY(-1px); }
.newsletter-msg { margin-top: 12px; font-size: 14px; min-height: 20px; }
.newsletter-msg.error { color: #fecaca; }
.newsletter-msg.success { color: #bbf7d0; font-weight: 600; }
.newsletter-privacy { font-size: 12px; opacity: .65; margin-top: 8px; }
@media (max-width: 520px) {
  .fp-newsletter-form { flex-direction: column; }
  .fp-newsletter-form button { width: 100%; }
}

/* --- Payment trust bar --- */
.pay-trust {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 18px; padding: 22px 16px; margin: 28px auto 0; max-width: 720px;
  border: 1px solid #e2e8f0; border-radius: 14px; background: #f8fafc;
}
.pay-trust .pt-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pay-trust .pt-badge {
  padding: 5px 12px; border-radius: 6px; background: #fff;
  border: 1px solid #e2e8f0; font-size: 12px; font-weight: 700; color: #334155;
}
.pay-trust .pt-guarantee {
  font-size: 13px; color: #166534; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}

/* --- Footer social & legal --- */
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #cbd5e1;
  transition: background .2s ease, color .2s ease;
  text-decoration: none;
}
.footer-social a:hover { background: rgba(255,255,255,.18); color: #fff; }
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }
.footer-contact { font-size: 13.5px; margin-top: 12px; opacity: .8; }
.footer-contact a { color: inherit; text-decoration: underline; }
.footer-bottom .fb-legal { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 10px; font-size: 13px; }
.footer-bottom .fb-legal a { color: inherit; opacity: .75; text-decoration: none; }
.footer-bottom .fb-legal a:hover { opacity: 1; text-decoration: underline; }

/* ============================================================
   Free Learning Zone — 首页免费学习专区
   ============================================================ */
.free-zone { padding: 72px 0; background: #fff; }
.fz-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .fz-cards { grid-template-columns: repeat(2, 1fr); } }
.fz-card { perspective: 900px; height: 158px; cursor: pointer; }
.fz-card-inner { position: relative; width: 100%; height: 100%; transition: transform .5s; transform-style: preserve-3d; }
.fz-card.flipped .fz-card-inner { transform: rotateY(180deg); }
.fz-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.fz-front { background: #f5f3ff; border: 1.5px solid #ddd6fe; }
.fz-front .fp { font-size: 16px; font-weight: 800; color: #4c1d95; }
.fz-front .fh { font-size: 12px; color: #7c3aed; margin-top: 5px; }
.fz-front .hint { font-size: 11px; color: #a78bfa; margin-top: 10px; }
.fz-back { background: #4c1d95; color: #fff; transform: rotateY(180deg); }
.fz-back .fm { font-size: 12.5px; line-height: 1.5; }
.fz-back .fe { font-size: 11.5px; opacity: .82; margin-top: 7px; font-style: italic; }
.fz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 34px; align-items: stretch; }
@media (max-width: 860px) { .fz-grid { grid-template-columns: 1fr; } }
.fz-quiz { background: #fffbeb; border: 1px solid #fde68a; border-radius: 16px; padding: 26px; }
.fz-free { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 16px; padding: 26px; }
.fz-free-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid #dcfce7; margin-bottom: 10px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.fz-free-item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(4,120,87,.12); }
.fz-free-item .ico { font-size: 20px; }
.fz-free-item .t { font-weight: 700; font-size: 14.5px; color: #065f46; }
.fz-free-item .d { font-size: 12.5px; color: #059669; margin-top: 2px; }
.fz-opt { display: block; width: 100%; text-align: left; padding: 11px 16px; margin-bottom: 8px; border-radius: 10px; border: 1.5px solid #fcd34d; background: #fff; font-size: 14.5px; font-weight: 600; color: #78350f; cursor: pointer; transition: background .15s ease; }
.fz-opt:hover { background: #fef9c3; }
.fz-opt.right { background: #dcfce7; border-color: #22c55e; color: #14532d; }
.fz-opt.wrong { background: #fee2e2; border-color: #ef4444; color: #7f1d1d; }
.fz-score { font-size: 40px; font-weight: 800; color: #b45309; }

/* Chinese flashcards accent (free-zone, EN homepage) */
.fz-card.fz-cn .fz-front { background: #fef2f2; border-color: #fecaca; }
.fz-card.fz-cn .fz-front .fp { color: #7f1d1d; font-size: 20px; }
.fz-card.fz-cn .fz-front .fh { color: #b91c1c; }
.fz-card.fz-cn .fz-front .hint { color: #fca5a5; }
.fz-card.fz-cn .fz-back { background: #7f1d1d; }

/* Speaker buttons (auto audio on phrase tables) */
.sk-audio { display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:50%; border:1px solid #fecaca; background:#fef2f2; color:#b91c1c; font-size:13px; cursor:pointer; margin-right:8px; vertical-align:middle; transition:background .12s ease, transform .12s ease; padding:0; line-height:1; }
.sk-audio:hover { background:#fee2e2; transform:scale(1.12); }
.audio-hint { font-size:12.5px; color:#a8a29e; margin-top:10px; }

/* Why learn Chinese strip */
.why-strip { padding: 64px 0; background: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
.why-card { background: #fafaf9; border: 1px solid #e7e5e4; border-radius: 16px; padding: 22px 20px; text-align: center; }
.why-card .n { font-size: 30px; font-weight: 800; color: #b91c1c; }
.why-card .t { font-size: 14.5px; font-weight: 700; margin-top: 4px; }
.why-card .d { font-size: 12.5px; color: #78716c; margin-top: 6px; line-height: 1.5; }

/* Value comparison strip */
.value-strip { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px auto 0; max-width: 860px; }
.value-card { flex: 1 1 240px; background: #fff; border: 1.5px solid #e7e5e4; border-radius: 14px; padding: 20px; text-align: center; }
.value-card.hl { border-color: #b91c1c; background: #fef7f7; box-shadow: 0 6px 18px rgba(185,28,28,.10); }
.value-card .vc-name { font-size: 13.5px; font-weight: 700; color: #57534e; }
.value-card .vc-price { font-size: 24px; font-weight: 800; margin: 6px 0 2px; color: #1c1917; }
.value-card.hl .vc-price { color: #b91c1c; }
.value-card .vc-note { font-size: 12.5px; color: #78716c; line-height: 1.5; }
.value-card .vc-tag { display:inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; background: #fee2e2; color: #b91c1c; margin-top: 8px; }

/* ---------- home free-zone flashcard upgrade ---------- */
.fz-morebar { margin-top:20px; display:flex; gap:12px; justify-content:center; align-items:center; flex-wrap:wrap; }
.fz-shuffle { border:1px solid #e7e5e4; background:#fff; border-radius:100px; padding:9px 20px;
              font-size:13.5px; font-weight:700; color:#7f1d1d; cursor:pointer; font-family:inherit;
              transition:all .15s; }
.fz-shuffle:hover { border-color:#b91c1c; color:#b91c1c; }
.fz-more { font-size:13.5px; font-weight:700; color:#b91c1c; text-decoration:none; }
.fz-more:hover { text-decoration:underline; }
.fz-front { position:relative; }
.fz-snd { position:absolute; top:8px; right:8px; width:28px; height:28px; padding:0; border-radius:50%;
          border:1px solid #e7e5e4; background:#fff; color:#b91c1c; font-size:12px; line-height:1;
          cursor:pointer; transition:all .15s; }
.fz-snd:hover { border-color:#b91c1c; }
