/* ============================================
   我的一生 - Modern SaaS Landing Page
   ============================================ */

:root {
  /* Modern warm palette - 温暖舒适 */
  --primary: #7a4f26;
  --primary-dark: #5d3c1d;
  --primary-light: #a67c52;
  --accent: #c9956a;
  --accent-light: #f5e6d8;
  --accent-gold: #d4a054;

  /* Neutrals - 柔和对比（优化对比度） */
  --text-primary: #2d251e;
  --text-secondary: #4a4039;
  --text-muted: #635a50;
  --bg: #fdfcfa;
  --bg-alt: #f6f4f0;
  --card: #ffffff;
  --border: rgba(139, 90, 43, 0.15);
  --border-light: rgba(139, 90, 43, 0.08);

  /* Link color */
  --link: #6b4423;
  --link-hover: #8b5a2b;

  /* Gradients */
  --gradient-warm: linear-gradient(135deg, #7a4f26 0%, #c9956a 100%);
  --gradient-hero: linear-gradient(135deg, rgba(122,79,38,0.94) 0%, rgba(93,60,29,0.92) 100%);
  --gradient-card: linear-gradient(180deg, #ffffff 0%, #fdfcfa 100%);
  --gradient-gold: linear-gradient(135deg, #d4a054 0%, #b8860b 100%);

  /* Shadows - 更有层次 */
  --shadow-xs: 0 1px 2px rgba(45,37,30,0.04);
  --shadow-sm: 0 2px 4px rgba(45,37,30,0.06);
  --shadow-md: 0 4px 12px -2px rgba(45,37,30,0.08), 0 2px 4px -1px rgba(45,37,30,0.04);
  --shadow-lg: 0 12px 24px -4px rgba(45,37,30,0.10), 0 4px 8px -2px rgba(45,37,30,0.05);
  --shadow-xl: 0 24px 40px -8px rgba(45,37,30,0.12), 0 12px 16px -6px rgba(45,37,30,0.06);
  --shadow-glow: 0 0 48px rgba(139,90,43,0.15);

  /* Transitions - 更平缓 */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --section-padding: 100px;
  --section-padding-sm: 80px;
  --container-max: 1200px;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--accent-light);
  color: var(--primary);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 24px;
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.8;
}

.section-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-base);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 24px;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo-img {
  height: 32px;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--bg-alt);
  border-radius: 8px;
}

.lang-switch button {
  background: none;
  border: 0;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.lang-switch button:hover {
  color: var(--text-primary);
}

.lang-switch button.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.auth {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Version / Region indicator bar */
.version-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-alt, #f6f4f0);
  border-bottom: 1px solid var(--border-light, rgba(139,90,43,0.08));
  text-align: center;
  padding: 5px 16px;
  font-size: 12px;
  color: var(--text-muted, #635a50);
  letter-spacing: 0.2px;
  line-height: 1.5;
}

.version-bar .version-sep {
  margin: 0 6px;
  opacity: 0.5;
}

/* Push page content below the fixed version bar */
body.has-version-bar {
  padding-top: 28px;
}

/* User menu (logged-in state) */
.user-menu {
  position: relative;
}

.user-avatar-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-warm, linear-gradient(135deg, #8b5a2b, #a67c52));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  transition: box-shadow 0.2s ease;
}

.user-avatar-btn:hover .user-avatar {
  box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.2);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border, #eee);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-header {
  padding: 14px 16px 10px;
}

.user-dropdown-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #333);
  word-break: break-all;
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border, #eee);
  margin: 0 12px;
}

.user-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary, #666);
  text-decoration: none;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.user-dropdown-item:hover {
  background: var(--bg-alt, #f5f5f5);
}

.user-dropdown-item:last-child {
  border-radius: 0 0 12px 12px;
}

.user-dropdown-logout {
  color: #e74c3c;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
  border: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Focus visible for accessibility */
.btn:focus {
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--gradient-warm);
  color: white;
  box-shadow: var(--shadow-md), 0 4px 16px rgba(122,79,38,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 8px 24px rgba(122,79,38,0.28);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-sm);
  filter: brightness(0.95);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}

.btn-secondary:active {
  transform: scale(0.98);
  background: var(--accent-light);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}

.btn-outline:active {
  transform: scale(0.98);
  background: var(--accent-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-alt);
  color: var(--text-primary);
}

.btn-ghost:active {
  transform: scale(0.98);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* Button with arrow */
.btn-arrow::after {
  content: '→';
  margin-left: 4px;
  transition: transform var(--transition-fast);
}

.btn-arrow:hover::after {
  transform: translateX(3px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 100px;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/zh/1.png') center/cover no-repeat;
  opacity: 0.15;
  mix-blend-mode: overlay;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
}

/* Animated background shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  animation: float 20s infinite ease-in-out;
}

.hero-shape:nth-child(1) {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.hero-shape:nth-child(2) {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  animation-delay: -5s;
}

.hero-shape:nth-child(3) {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 30%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -20px) scale(1.05); }
  50% { transform: translate(-10px, 10px) scale(0.95); }
  75% { transform: translate(15px, 15px) scale(1.02); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  color: white;
  margin-bottom: 24px;
  letter-spacing: -2px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero h1 span {
  display: block;
  background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(18px, 3vw, 22px);
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-cta .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.hero-cta .btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.hero-cta .btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}

.hero-cta .btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.hero-note {
  margin-top: 32px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Hero Minimal - 简化版首屏 */
.hero-minimal {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-minimal .hero-inner {
  max-width: 600px;
}

.hero-minimal h1 {
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.3;
  margin-bottom: 24px;
}

.hero-minimal .hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-link {
  display: inline-block;
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.8);
  padding-left: 8px;
}

.hero-minimal .hero-note {
  margin-top: 48px;
  font-size: 13px;
}

/* Book Page Section - 成品样稿 */
.book-page-section {
  background: linear-gradient(180deg, var(--bg) 0%, #f5f1eb 50%, var(--bg) 100%);
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

/* 装饰性背景图案 */
.book-page-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(139,90,43,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139,90,43,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.book-page-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

/* 左侧装饰图片 */
.book-page-decor {
  flex-shrink: 0;
  width: 280px;
  position: relative;
}

.book-page-decor-img {
  width: 100%;
  border-radius: 12px;
  box-shadow:
    0 20px 40px rgba(0,0,0,0.1),
    0 0 0 1px rgba(139,90,43,0.1);
  transform: rotate(-2deg);
  transition: transform var(--transition-slow);
}

.book-page-decor-img:hover {
  transform: rotate(0deg) scale(1.02);
}

/* 装饰性标签 */
.book-page-decor-tag {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  color: var(--text-secondary);
  transform: rotate(3deg);
}

.book-page-decor-tag strong {
  display: block;
  color: var(--primary);
  font-size: 15px;
  margin-bottom: 2px;
}

.book-page {
  flex: 1;
  max-width: 640px;
  background: #fffef9;
  border-radius: 4px 12px 12px 4px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.02),
    0 25px 60px rgba(139,90,43,0.10),
    -12px 0 30px rgba(0,0,0,0.03),
    inset 0 0 80px rgba(139,90,43,0.02);
  position: relative;
  transform: perspective(1200px) rotateY(-1.5deg);
  transition: transform var(--transition-slow);
}

.book-page:hover {
  transform: perspective(1200px) rotateY(0deg);
}

/* 书脊效果 */
.book-page::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to right, rgba(0,0,0,0.12), rgba(0,0,0,0.04), transparent);
  border-radius: 4px 0 0 4px;
}

/* 书签装饰 */
.book-page::after {
  content: '';
  position: absolute;
  top: -8px;
  right: 40px;
  width: 24px;
  height: 60px;
  background: linear-gradient(135deg, #c9956a 0%, #a67c52 100%);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 12px rgba(139,90,43,0.3);
}

.book-page-inner {
  padding: 56px 48px 48px;
  position: relative;
}

.book-chapter {
  font-size: 13px;
  color: #a09486;
  letter-spacing: 3px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.book-title {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 600;
  color: #3d3226;
  line-height: 1.5;
  margin-bottom: 32px;
}

.book-text {
  font-size: 17px;
  color: #4a4039;
  line-height: 2.1;
}

.book-text p {
  margin-bottom: 24px;
}

.book-text p:last-child {
  margin-bottom: 0;
}

.book-highlight {
  color: #8b5a2b;
  font-weight: 500;
}

.book-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #e0dbd6, transparent);
  margin: 40px 0;
}

.book-excerpt {
  background: linear-gradient(135deg, #faf8f5 0%, #f7f4f0 100%);
  padding: 32px 36px;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  position: relative;
}

/* 引号装饰 */
.book-excerpt::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 48px;
  color: var(--accent);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.book-excerpt-label {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-transform: uppercase;
  font-weight: 600;
}

.book-excerpt blockquote {
  font-size: 15px;
  color: #4a4039;
  line-height: 2.2;
  margin: 0;
  font-style: normal;
  padding-left: 8px;
}

.book-excerpt-author {
  font-size: 13px;
  color: #8a7e72;
  margin-top: 20px;
  text-align: right;
  font-style: italic;
}

.book-page-number {
  position: absolute;
  bottom: 20px;
  right: 28px;
  font-size: 13px;
  color: #c4bbb0;
  font-style: italic;
}

/* Section 引导语 */
.book-section-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  position: relative;
  z-index: 1;
}

.book-section-intro h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.book-section-intro p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Stats Section
   ============================================ */
.stats {
  position: relative;
  z-index: 10;
  margin-top: -60px;
  padding-bottom: 60px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: white;
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.stat-item {
  text-align: center;
  padding: 20px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: var(--border);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Value Section - 价值确认区域 */
.value-section {
  background: linear-gradient(135deg, #fdfcfa 0%, #f6f2ed 100%);
  padding: 88px 0;
}

.value-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.value-title {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 44px;
  line-height: 1.5;
}

.value-text {
  font-size: clamp(17px, 2.5vw, 20px);
  color: var(--text-secondary);
  line-height: 2.1;
}

.value-text p {
  margin-bottom: 28px;
}

.value-text p:last-child {
  margin-bottom: 0;
}

.value-highlight {
  color: var(--primary);
  font-weight: 600;
  font-size: clamp(19px, 2.8vw, 23px);
}

/* ============================================
   Carousel / Showcase
   ============================================ */
.showcase {
  padding: 80px 0;
  background: var(--bg-alt);
}

.carousel {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.card {
  background: var(--card);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 340px;
  flex: 0 0 auto;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  min-height: 400px;
  border: 1px solid var(--border-light);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  background: var(--bg-alt);
  transition: transform var(--transition-slow);
}

.card:hover img {
  transform: scale(1.03);
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  line-height: 1.4;
}

.excerpt {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  flex-grow: 1;
  /* 文字截断 - 最多显示3行 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

.card-actions .btn {
  flex: 1;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-secondary);
  transition: var(--transition-base);
}

.carousel-arrow:hover {
  background: var(--accent-light);
  color: var(--primary);
  transform: translateY(-50%) scale(1.08);
  box-shadow: var(--shadow-xl);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-arrow:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.carousel-arrow.prev { left: 20px; }
.carousel-arrow.next { right: 20px; }

/* Carousel pagination dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-dot:hover {
  background: var(--accent);
}

.carousel-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* Touch scroll support for mobile - overridden by Enhanced Mobile Styles grid layout */

/* ============================================
   Features Section
   ============================================ */
.features {
  padding: var(--section-padding) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--gradient-card);
  padding: 36px 28px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.feature-icon {
  width: 76px;
  height: 76px;
  background: var(--accent-light);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-warm);
}

.feature-icon img,
.feature-icon svg {
  width: 38px;
  height: 38px;
  transition: var(--transition-base);
}

.feature-card:hover .feature-icon img,
.feature-card:hover .feature-icon svg {
  filter: brightness(10);
}

.feature-card h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary);
  line-height: 1.4;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 24px;
  flex-grow: 1;
}

.feature-card .btn {
  margin-top: auto;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials {
  padding: var(--section-padding) 0;
  background: var(--bg-alt);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: white;
  padding: 36px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.testimonial-stars svg {
  width: 20px;
  height: 20px;
  fill: var(--accent-gold);
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-style: normal;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(122, 79, 38, 0.2);
}

.testimonial-info h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.testimonial-info span {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================
   Benefits Section
   ============================================ */
.benefits {
  padding: var(--section-padding) 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit {
  text-align: center;
  padding: 32px 24px;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--border);
  transition: var(--transition-base);
  cursor: pointer;
}

.benefit:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--accent-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

/* Benefit icon color variations */
.benefit:nth-child(2) .benefit-icon { background: #e8f5e9; }
.benefit:nth-child(2) .benefit-icon svg { color: #2e7d32; }
.benefit:nth-child(3) .benefit-icon { background: #e3f2fd; }
.benefit:nth-child(3) .benefit-icon svg { color: #1565c0; }
.benefit:nth-child(4) .benefit-icon { background: #fff3e0; }
.benefit:nth-child(4) .benefit-icon svg { color: #e65100; }

.benefit h5 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.benefit p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing {
  padding: var(--section-padding) 0;
  background: var(--bg-alt);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  padding: 40px 32px;
  border-radius: 24px;
  border: 2px solid var(--border);
  text-align: center;
  transition: var(--transition-base);
  position: relative;
}

.pricing-card.popular {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-warm);
  color: white;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}

.pricing-card h4 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-price {
  margin-bottom: 24px;
}

.pricing-price .amount {
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-price .period {
  font-size: 16px;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  text-align: left;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 15px;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features svg {
  width: 20px;
  height: 20px;
  color: #10b981;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

/* New Pricing Cards - 新版定价卡片 */
.pricing-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pricing-card-new {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.pricing-card-new:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.pricing-card-new.popular {
  border: 2px solid var(--primary);
  position: relative;
  transform: scale(1.02);
}

.pricing-card-new.popular:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.pricing-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.pricing-card-new h4 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.pricing-card-new .pricing-price {
  margin-bottom: 16px;
}

.pricing-card-new .pricing-price .amount {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pricing-toc {
  flex: 1;
  margin-bottom: 24px;
}

.pricing-toc h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.pricing-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-toc li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pricing-toc li:last-child {
  border-bottom: none;
}

.pricing-toc li strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.pricing-toc li span {
  font-size: 12px;
  color: var(--text-muted);
}

.pricing-toc li.toc-section {
  background: var(--accent-light);
  margin: 8px -16px;
  padding: 8px 16px;
  border-radius: 8px;
  border-bottom: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.pricing-feeling {
  background: linear-gradient(135deg, #faf8f5 0%, #f5f0e8 100%);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  text-align: center;
}

.pricing-feeling p {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
  margin: 0;
}

.pricing-card-new .btn {
  width: 100%;
}

.pricing-footer {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 20px;
}

.pricing-footer p {
  font-size: 18px;
  color: white;
  line-height: 2;
  margin: 0;
}

/* New Pricing Section - 书籍式定价 */
.pricing-section {
  background: #f8f6f3;
  padding: 100px 0;
}

.pricing-intro {
  text-align: center;
  margin-bottom: 64px;
}

.pricing-intro h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
  color: #3d3226;
  margin-bottom: 12px;
}

.pricing-intro p {
  font-size: 16px;
  color: #8a7e72;
}

.pricing-books {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-book {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-book:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.pricing-book.featured {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(139,90,43,0.12);
}

.pricing-book.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-book-cover {
  background: linear-gradient(135deg, #8b5a2b 0%, #6b4423 100%);
  padding: 40px 28px;
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 纸张纹理效果 */
.pricing-book-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.pricing-book.featured .pricing-book-cover {
  background: linear-gradient(135deg, #3d3226 0%, #2a231c 100%);
}

.pricing-book.featured .pricing-book-cover::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212,160,84,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.pricing-book-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: rgba(0,0,0,0.2);
}

.pricing-book-front {
  text-align: center;
  color: #fff;
}

.pricing-book-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.pricing-book-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 2px;
}

.pricing-book-subtitle {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 16px;
}

.pricing-book-price {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-gold);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.pricing-book-content {
  padding: 32px 28px;
}

.pricing-book-you,
.pricing-book-result {
  margin-bottom: 24px;
}

.pricing-label {
  display: block;
  font-size: 11px;
  color: #a09486;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pricing-book-you p,
.pricing-book-result p {
  font-size: 15px;
  color: #4a4039;
  line-height: 1.9;
  margin: 0;
}

.pricing-book-link {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  text-align: center;
  padding: 14px 20px;
  margin-top: 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  transition: all var(--transition-base);
}

.pricing-book-link:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.pricing-book-link:active {
  transform: translateY(0) scale(0.98);
}

.pricing-book.featured .pricing-book-link {
  background: var(--gradient-warm);
  color: white;
  border: none;
  box-shadow: var(--shadow-md);
}

.pricing-book.featured .pricing-book-link:hover {
  box-shadow: var(--shadow-lg);
  filter: brightness(1.05);
}

.pricing-note {
  text-align: center;
  margin-top: 72px;
  padding: 48px;
  background: #fff;
  border-radius: 14px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-sm);
}

.pricing-note p {
  font-size: 17px;
  color: #4a4039;
  line-height: 2.1;
  margin: 0;
}

.pricing-print-note {
  font-size: 12px !important;
  color: var(--text-muted, #635a50) !important;
  margin-top: 16px !important;
  opacity: 0.7;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
  padding: var(--section-padding) 0;
}

.cta-box {
  background: var(--gradient-hero);
  border-radius: 32px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/zh/1.png') center/cover no-repeat;
  opacity: 0.1;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 36px;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
  line-height: 1.4;
}

.cta-box p {
  font-size: 18px;
  color: rgba(255,255,255,0.92);
  margin-bottom: 36px;
  line-height: 1.8;
}

.cta-box .btn-primary {
  background: white;
  color: var(--primary);
}

.cta-box .btn-primary:hover {
  background: var(--accent-light);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: #2d251e;
  color: white;
  padding: 72px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  font-size: 28px;
  margin-bottom: 16px;
  display: flex;
  /* 深色背景上使用白色 logo */
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: white;
  background-clip: unset;
  color: white;
}

.footer-brand .logo-img {
  height: 36px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.8;
  max-width: 320px;
}

.footer-column h6 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.5);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  transition: var(--transition-fast);
  position: relative;
}

.footer-column a:hover {
  color: #f5d9b0;
}

.footer-column a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: #f5d9b0;
  transition: width var(--transition-base);
}

.footer-column a:hover::after {
  width: 100%;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  position: relative;
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.footer-social a:active {
  transform: translateY(0) scale(0.95);
}

/* Tooltip for social icons */
.footer-social a[aria-label]::before {
  content: attr(aria-label);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  background: rgba(0,0,0,0.8);
  color: white;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  margin-bottom: 8px;
}

.footer-social a[aria-label]:hover::before {
  opacity: 1;
  visibility: visible;
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: rgba(255,255,255,0.9);
  transition: var(--transition-fast);
}

.footer-social a:hover svg {
  fill: white;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .book-page-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .book-page-decor {
    width: 220px;
  }

  .pricing-grid {
    gap: 24px;
  }

  .pricing-card.popular {
    transform: scale(1.02);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 32px;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  .header-row {
    padding: 12px 0;
  }

  .lang-switch {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 140px 0 100px;
  }

  .hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .hero-minimal {
    min-height: 60vh;
    padding: 120px 20px 60px;
  }

  .hero-minimal h1 {
    font-size: 32px;
  }

  .hero-link {
    font-size: 15px;
  }

  .book-page-section {
    padding: 60px 0 80px;
  }

  .book-page-wrapper {
    padding: 0 16px;
  }

  .book-page-decor {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .book-page-decor-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    transform: none;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
  }

  .book-page-decor-img:hover {
    transform: none;
  }

  .book-page-decor-tag {
    position: static;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    font-size: 13px;
  }

  .book-page-decor-tag strong {
    font-size: 15px;
    margin-bottom: 2px;
  }

  .book-page {
    transform: none;
    border-radius: 8px;
    max-width: 100%;
  }

  .book-page::after {
    right: 24px;
    width: 20px;
    height: 48px;
  }

  .book-page-inner {
    padding: 40px 24px 32px;
  }

  .book-title {
    font-size: 20px;
  }

  .book-excerpt {
    padding: 24px 20px;
  }

  .book-excerpt::before {
    font-size: 36px;
    top: 12px;
    left: 14px;
  }

  .book-page-number {
    display: none;
  }

  .book-section-intro {
    margin-bottom: 32px;
    padding: 0 16px;
  }

  .book-section-intro h2 {
    font-size: 22px;
  }

  .pricing-section {
    padding: 60px 0;
  }

  .pricing-books {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 400px;
  }

  .pricing-book.featured {
    transform: none;
    order: -1;
  }

  .pricing-book.featured:hover {
    transform: translateY(-4px);
  }

  .pricing-book-cover {
    min-height: 140px;
    padding: 32px 24px;
  }

  .pricing-book-content {
    padding: 24px;
  }

  .pricing-note {
    margin-top: 40px;
    padding: 32px 24px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .stats {
    margin-top: -40px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px;
  }

  .stat-number {
    font-size: 36px;
  }

  .value-section {
    padding: 60px 0;
  }

  .value-title {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .value-text {
    font-size: 16px;
    line-height: 1.9;
  }

  .section-title {
    font-size: 32px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.popular {
    transform: none;
  }

  .pricing-grid-new {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pricing-card-new.popular {
    transform: none;
    order: -1;
  }

  .pricing-card-new {
    padding: 24px;
  }

  .pricing-card-new .pricing-price .amount {
    font-size: 32px;
  }

  .pricing-toc li.toc-section {
    margin: 8px -12px;
    padding: 8px 12px;
  }

  .pricing-footer {
    margin-top: 40px;
    padding: 32px 24px;
  }

  .pricing-footer p {
    font-size: 16px;
  }

  .cta-box {
    padding: 48px 24px;
    border-radius: 24px;
  }

  .cta-box h2 {
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .auth .btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .card {
    width: 280px;
  }

  .carousel-arrow {
    display: none;
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mt-8 { margin-top: 32px; }
.mb-8 { margin-bottom: 32px; }

.hidden { display: none; }
.visible { display: block; }

/* ============================================
   Animation Classes
   ============================================ */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Legacy Support (for create_personal page)
   ============================================ */
.page-hero {
  background: var(--gradient-hero);
  padding: 48px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/zh/1.png') center/cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
}

.page-hero .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
  text-align: left;
}

.page-hero h1 {
  color: #fff;
  font-size: 36px;
  margin: 0 0 6px;
}

.page-hero .notice-muted {
  color: rgba(255,255,255,0.9);
}

.form-wrap {
  margin-top: -40px;
  padding: 24px;
  background: linear-gradient(180deg, #fff, #fbfaf9);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(15,10,8,0.06);
}

.form-wrap .section-title {
  color: var(--primary);
  font-size: 16px;
}

.field input,
.field select,
.field textarea {
  background: #fff;
  border: 1px solid #efe9e3;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  box-shadow: 0 4px 12px rgba(139,94,60,0.08);
  border-color: var(--accent);
}

.dynamic-hero-bg {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transition: opacity 450ms ease;
  z-index: 0;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   Image Loading States
   ============================================ */
img[loading="lazy"] {
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--bg) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

img[loading="lazy"].loaded {
  animation: none;
  background: none;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   Reading Progress Bar
   ============================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-warm);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* ============================================
   Scroll Indicator
   ============================================ */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 10;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* ============================================
   Link Styles
   ============================================ */
a:not(.btn):not(.logo):not(.card):not(.carousel-arrow):not(.footer-social a):not(.pricing-book-link):not(.hero-link) {
  color: var(--link);
  transition: color var(--transition-fast);
}

a:not(.btn):not(.logo):not(.card):not(.carousel-arrow):not(.footer-social a):not(.pricing-book-link):not(.hero-link):hover {
  color: var(--link-hover);
}

/* ============================================
   Skip to Content (Accessibility)
   ============================================ */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-to-content:focus {
  top: 16px;
}

/* ============================================
   Global Focus Visible (Accessibility)
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.site-footer a:focus-visible,
.hero a:focus-visible {
  outline-color: var(--accent-gold);
}

/* ============================================
   Button Loading State
   ============================================ */
.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   Auth Pages (Login / Register / Forgot Password)
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  padding: 24px;
}

.auth-card {
  background: var(--card);
  padding: 52px 44px;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  max-width: 440px;
  width: 100%;
}

.auth-logo {
  text-align: center;
  margin-bottom: 36px;
}

.auth-logo .logo {
  font-size: 30px;
}

.auth-title {
  text-align: center;
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 15px;
  line-height: 1.6;
}

.auth-form .form-field {
  margin-bottom: 22px;
}

.auth-form .form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--text-primary);
}

.auth-form .form-field input {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  transition: var(--transition-fast);
}

.auth-form .form-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(122,79,38,0.2);
}

.auth-form .form-field .hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

.auth-form .form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  font-size: 15px;
}

.auth-form .form-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text-secondary);
}

.auth-form .form-options a {
  color: var(--primary);
}

.auth-form .form-options a:hover {
  text-decoration: underline;
}

.auth-form .terms-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.auth-form .terms-check input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-form .terms-check a {
  color: var(--primary);
}

.auth-form .terms-check a:hover {
  text-decoration: underline;
}

.auth-btn {
  width: 100%;
  padding: 17px;
  font-size: 17px;
}

.auth-divider {
  text-align: center;
  margin: 28px 0;
  color: var(--text-muted);
  font-size: 14px;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: var(--border);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.social-login {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
}

.social-btn {
  flex: 1;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  transition: var(--transition-fast);
  color: var(--text-secondary);
}

.social-btn:hover {
  background: var(--bg-alt);
  border-color: var(--accent);
}

.social-btn svg {
  width: 22px;
  height: 22px;
}

.auth-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 40px 28px;
  }
  .auth-title {
    font-size: 22px;
  }
}

/* ============================================
   Page Container System
   ============================================ */
.page-container {
  margin: 0 auto;
  padding: 100px 24px 60px;
}

.page-container--narrow { max-width: 700px; }
.page-container--medium { max-width: 800px; }
.page-container--standard { max-width: 900px; }
.page-container--wide { max-width: 1000px; }
.page-container--full { max-width: 1200px; }

.page-header {
  text-align: center;
  margin-bottom: 48px;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
}

/* ============================================
   Legal Content Pages
   ============================================ */
.legal-content {
  background: var(--card);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 32px 0 16px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.update-info {
  background: var(--bg-alt);
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.highlight-box {
  background: var(--accent-light);
  padding: 20px;
  border-radius: 12px;
  margin: 24px 0;
  border-left: 4px solid var(--primary);
}

.highlight-box p {
  margin: 0;
  color: var(--text-primary);
}

.contact-box {
  background: var(--bg-alt);
  padding: 20px;
  border-radius: 10px;
  margin-top: 24px;
}

.contact-box h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.contact-box p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============================================
   Simplified Footer
   ============================================ */
.site-footer.footer-simple .footer-bottom {
  border: none;
  padding: 24px 0;
}

/* ============================================
   Selection Styles
   ============================================ */
::selection {
  background: var(--accent-light);
  color: var(--primary-dark);
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .site-header,
  .site-footer,
  .carousel-arrow,
  .scroll-indicator,
  .reading-progress {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  .section {
    padding: 40px 0;
  }
}

/* ============================================
   Mobile Language Switcher (Footer)
   ============================================ */
.footer-lang-switch {
  display: none;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  margin-top: 16px;
}

.footer-lang-switch button {
  background: none;
  border: 0;
  padding: 8px 12px;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.footer-lang-switch button:hover {
  color: white;
}

.footer-lang-switch button.active {
  background: rgba(255,255,255,0.15);
  color: white;
}

@media (max-width: 768px) {
  .footer-lang-switch {
    display: flex;
  }
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.back-to-top:active {
  transform: scale(0.95);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 480px) {
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

/* ============================================
   Enhanced Mobile Styles (APP-like experience)
   ============================================ */
@media (max-width: 768px) {
  /* Version bar mobile optimization */
  .version-bar {
    font-size: 11px;
    padding: 4px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.has-version-bar {
    padding-top: 24px;
  }

  /* Header mobile - compact */
  .site-header {
    padding: 0 12px;
  }

  .header-row {
    padding: 10px 0;
  }

  .logo {
    font-size: 18px;
    gap: 6px;
  }

  .logo-img {
    height: 26px;
  }

  .nav-right {
    gap: 8px;
  }

  .auth .btn-outline {
    display: none;
  }

  .auth .btn-primary {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Hero section mobile */
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-link {
    font-size: 14px;
    padding: 12px 24px;
  }

  /* Section headers mobile */
  .section-header {
    margin-bottom: 32px;
    padding: 0 8px;
  }

  .section-badge {
    font-size: 12px;
    padding: 6px 12px;
    margin-bottom: 16px;
  }

  .section-title {
    font-size: 22px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  /* Features grid - 4 columns on mobile, proportionally scaled */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .feature-card {
    padding: 12px 8px;
    border-radius: 10px;
  }

  .feature-card:hover {
    transform: none;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    border-radius: 10px;
  }

  .feature-icon svg {
    width: 18px;
    height: 18px;
  }

  .feature-card h4 {
    font-size: 11px;
    margin-bottom: 4px;
    line-height: 1.3;
  }

  .feature-card p {
    font-size: 9px;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .feature-card .btn {
    padding: 6px 8px;
    font-size: 9px;
    margin-top: auto;
  }

  /* Benefits grid - 4 columns on mobile */
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .benefit {
    padding: 12px 8px;
    border-radius: 10px;
  }

  .benefit:hover {
    transform: none;
  }

  .benefit-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
  }

  .benefit-icon svg {
    width: 16px;
    height: 16px;
  }

  .benefit h5 {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .benefit p {
    font-size: 9px;
    line-height: 1.4;
  }

  /* Testimonials - 3 columns grid on mobile */
  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    overflow: visible;
  }

  .testimonial-card {
    padding: 10px 8px;
  }

  .testimonial-text {
    font-size: 9px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .testimonial-author {
    gap: 6px;
    margin-top: 8px;
  }

  .testimonial-avatar {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .testimonial-info h5 {
    font-size: 9px;
  }

  .testimonial-info span {
    font-size: 8px;
  }

  /* Pricing books - 3 columns grid on mobile */
  .pricing-section {
    padding: 40px 0;
  }

  .pricing-intro {
    margin-bottom: 24px;
  }

  .pricing-intro h2 {
    font-size: 20px;
  }

  .pricing-intro p {
    font-size: 13px;
  }

  .pricing-books {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 100%;
    overflow: visible;
  }

  .pricing-book {
    min-width: 0;
  }

  .pricing-book.featured {
    transform: none;
    order: 0;
  }

  .pricing-book-cover {
    min-height: auto;
    padding: 14px 8px;
  }

  .pricing-book-spine {
    width: 6px;
  }

  .pricing-book-badge {
    font-size: 8px;
    padding: 2px 6px;
    margin-bottom: 4px;
  }

  .pricing-book-title {
    font-size: 12px;
  }

  .pricing-book-subtitle {
    font-size: 9px;
  }

  .pricing-book-price {
    font-size: 13px;
    margin-top: 4px;
  }

  .pricing-book-content {
    padding: 10px 8px;
  }

  .pricing-label {
    font-size: 8px;
    margin-bottom: 4px;
  }

  .pricing-book-you,
  .pricing-book-result {
    margin-bottom: 6px;
  }

  .pricing-book-you p,
  .pricing-book-result p {
    font-size: 8px;
    line-height: 1.4;
  }

  .pricing-book-link {
    font-size: 9px;
    padding: 6px 8px;
    margin-top: 6px;
  }

  .pricing-note {
    margin-top: 24px;
    padding: 16px 12px;
  }

  .pricing-note p {
    font-size: 11px;
  }

  .pricing-print-note {
    font-size: 10px;
  }

  /* Carousel - grid layout on mobile, all cards visible */
  .carousel {
    padding: 8px 0;
    overflow: visible;
    display: block;
  }

  .carousel-arrow {
    display: none;
  }

  .carousel-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    transform: none !important;
  }

  .carousel-dots {
    display: none;
  }

  .card {
    width: auto;
    min-width: 0;
    min-height: auto;
    padding: 8px;
    border-radius: 10px;
    flex: unset;
  }

  .card:hover {
    transform: none;
  }

  .card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 6px;
  }

  .card h3 {
    font-size: 10px;
    margin: 0 0 4px;
    line-height: 1.3;
  }

  .card .excerpt {
    font-size: 7px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
  }

  .card-actions {
    margin-top: auto;
  }

  .card-actions .btn {
    padding: 4px 6px;
    font-size: 7px;
    min-height: 24px;
    min-width: auto;
  }

  .section-note {
    font-size: 10px;
  }

  /* CTA section mobile */
  .cta-box {
    padding: 32px 16px;
    margin: 0 12px;
    border-radius: 16px;
  }

  .cta-box h2 {
    font-size: 20px;
  }

  .cta-box p {
    font-size: 13px;
  }

  /* Footer mobile - 3 column grid for link columns */
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 8px;
  }

  .footer-brand .logo {
    justify-content: center;
    font-size: 18px;
  }

  .footer-brand p {
    font-size: 11px;
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.5;
  }

  .footer-column {
    text-align: center;
  }

  .footer-column h6 {
    font-size: 11px;
    margin-bottom: 10px;
    letter-spacing: 1px;
  }

  .footer-column ul {
    gap: 6px;
  }

  .footer-column li {
    margin-bottom: 6px;
  }

  .footer-column a {
    font-size: 11px;
    padding: 2px 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    text-align: center;
  }

  .footer-bottom .copyright {
    font-size: 10px;
    order: 2;
  }

  .footer-lang-switch {
    order: 1;
  }

  .footer-social {
    order: 0;
  }
}

/* Small screens - further scaling */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  /* Features - even smaller on very small screens */
  .features-grid {
    gap: 6px;
  }

  .feature-card {
    padding: 10px 6px;
  }

  .feature-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
    border-radius: 8px;
  }

  .feature-icon svg {
    width: 16px;
    height: 16px;
  }

  .feature-card h4 {
    font-size: 10px;
  }

  .feature-card p {
    font-size: 8px;
    -webkit-line-clamp: 2;
  }

  .feature-card .btn {
    padding: 5px 6px;
    font-size: 8px;
  }

  /* Benefits */
  .benefits-grid {
    gap: 6px;
  }

  .benefit {
    padding: 10px 6px;
  }

  .benefit-icon {
    width: 28px;
    height: 28px;
  }

  .benefit-icon svg {
    width: 14px;
    height: 14px;
  }

  .benefit h5 {
    font-size: 9px;
  }

  .benefit p {
    font-size: 8px;
  }

  /* Testimonials - tighter on small screens */
  .testimonials-grid {
    gap: 6px;
  }

  .testimonial-card {
    padding: 8px 6px;
  }

  .testimonial-text {
    font-size: 8px;
    -webkit-line-clamp: 3;
  }

  .testimonial-avatar {
    width: 20px;
    height: 20px;
    font-size: 9px;
  }

  .testimonial-info h5 {
    font-size: 8px;
  }

  .testimonial-info span {
    font-size: 7px;
  }

  /* Carousel - tighter on small screens */
  .carousel-track {
    gap: 4px;
  }

  .card {
    padding: 6px;
  }

  .card h3 {
    font-size: 9px;
    margin: 4px 0 2px;
  }

  .card .excerpt {
    font-size: 7px;
    -webkit-line-clamp: 2;
  }

  .card-actions .btn {
    padding: 3px 5px;
    font-size: 7px;
    min-height: 22px;
  }

  /* Pricing - tighter on small screens */
  .pricing-books {
    gap: 6px;
  }

  .pricing-book-cover {
    padding: 10px 6px;
  }

  .pricing-book-title {
    font-size: 11px;
  }

  .pricing-book-subtitle {
    font-size: 8px;
  }

  .pricing-book-price {
    font-size: 11px;
  }

  .pricing-book-content {
    padding: 8px 6px;
  }

  .pricing-book-you p,
  .pricing-book-result p {
    font-size: 7px;
  }

  .pricing-book-link {
    font-size: 8px;
    padding: 5px 6px;
  }

  /* Footer - keep 3 columns, tighter */
  .footer-grid {
    gap: 10px;
  }

  .footer-brand .logo {
    font-size: 16px;
  }

  .footer-brand p {
    font-size: 10px;
  }

  .footer-column h6 {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .footer-column a {
    font-size: 10px;
  }

  .footer-column li {
    margin-bottom: 4px;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .container {
    padding: 0 10px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  /* Features need minimum touch targets */
  .feature-card .btn {
    min-height: 28px;
    min-width: 44px;
  }

  .benefit {
    min-height: 44px;
  }

  /* Carousel - even tighter */
  .carousel-track {
    gap: 3px;
  }

  .card {
    padding: 5px;
    border-radius: 8px;
  }

  .card h3 {
    font-size: 8px;
  }

  .card .excerpt {
    font-size: 6px;
    -webkit-line-clamp: 1;
  }

  .card-actions .btn {
    padding: 2px 4px;
    font-size: 6px;
  }

  /* Testimonials - even tighter */
  .testimonials-grid {
    gap: 4px;
  }

  .testimonial-card {
    padding: 6px 4px;
  }

  .testimonial-text {
    font-size: 7px;
    -webkit-line-clamp: 2;
  }

  .testimonial-avatar {
    width: 18px;
    height: 18px;
    font-size: 8px;
  }

  .testimonial-info h5 {
    font-size: 7px;
  }

  .testimonial-info span {
    font-size: 6px;
  }

  /* Pricing - even tighter */
  .pricing-books {
    gap: 4px;
  }

  .pricing-book-cover {
    padding: 8px 4px;
  }

  .pricing-book-title {
    font-size: 10px;
  }

  .pricing-book-price {
    font-size: 10px;
  }

  .pricing-book-content {
    padding: 6px 4px;
  }

  .pricing-book-you p,
  .pricing-book-result p {
    font-size: 6px;
  }

  .pricing-book-link {
    font-size: 7px;
    padding: 4px 5px;
  }
}
