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

:root {
  --bg: #FEF6EE;
  --text-dark: #43516C;
  --text-mid: #6B7A96;
  --orange: #FF8B59;
  --yellow: #FFDE6A;
  --blue: #52BEFF;
  --card-bg: #FFFFFF;
  --radius: 20px;
  --shadow: 0 8px 32px rgba(67, 81, 108, 0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== Language Toggle Defaults ===== */
/* Default: show English, hide Chinese */
.txt-zh { display: none; }
.card-cn, .card-cn-desc, .hero-h1-cn, .section-cn, .sub-cn, .nav-cn, .cta-cn { display: none; }

/* When Chinese is active */
html.lang-zh .txt-zh { display: revert; }  /* respects block/inline per element type */
html.lang-zh .txt-en { display: none !important; }
html.lang-zh .card-cn, html.lang-zh .hero-h1-cn, html.lang-zh .section-cn,
html.lang-zh .sub-cn, html.lang-zh .nav-cn, html.lang-zh .cta-cn { display: block; }

/* When English is active (explicit) */
html.lang-en .txt-zh { display: none !important; }
html.lang-en .card-cn, html.lang-en .hero-h1-cn, html.lang-en .section-cn,
html.lang-en .sub-cn, html.lang-en .nav-cn, html.lang-en .cta-cn { display: none !important; }


/* ===== Gradient Utilities ===== */
.grad-text {
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(254, 246, 238, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-logo span {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.nav-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 139, 89, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 139, 89, 0.45);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #FFD580, #FF8B59);
  top: -100px;
  right: -100px;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #A8EDFF, #52BEFF);
  bottom: -80px;
  left: -80px;
}

.hero-icon {
  width: 110px;
  height: 110px;
  border-radius: 26px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(90deg, #FFE8D6, #FFF3CC);
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(255, 139, 89, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 139, 89, 0.5);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--card-bg);
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

/* ===== Section Common ===== */
.section {
  padding: 96px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-mid);
  font-size: 17px;
  max-width: 520px;
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(67, 81, 108, 0.14);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}

.feature-icon.orange { background: linear-gradient(135deg, #FFE8D6, #FFD3B0); }
.feature-icon.blue   { background: linear-gradient(135deg, #D4F2FF, #A8E4FF); }
.feature-icon.purple { background: linear-gradient(135deg, #EDE0FF, #D5BCFF); }
.feature-icon.green  { background: linear-gradient(135deg, #D4F5E2, #AAEBC8); }

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.6;
}

/* ===== Bilingual Typography ===== */
.hero-h1-cn {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 600;
  color: var(--text-mid);
  margin-top: -12px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.sub-cn {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-mid);
  opacity: 0.85;
}

.nav-cn {
  font-size: 12px;
  opacity: 0.85;
}

.section-cn {
  font-size: 15px;
  color: var(--text-mid);
  margin-top: -8px;
  margin-bottom: 8px;
}

.card-cn {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  margin-top: 2px;
}

.card-cn-desc {
  font-size: 13px;
  color: var(--text-mid);
  margin-top: 6px;
  line-height: 1.6;
  border-top: 1px solid rgba(67,81,108,0.08);
  padding-top: 8px;
}

.cta-cn {
  font-size: 18px;
  opacity: 0.85;
  margin-top: -10px;
  margin-bottom: 16px !important;
}

.gallery-item span em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--text-mid);
  margin-top: 1px;
}

/* ===== Art Styles Showcase ===== */
.styles-section {
  background: linear-gradient(135deg, #FFF8F3, #F0F8FF);
  padding: 96px 24px;
}

.styles-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.styles-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 48px;
}

.styles-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.styles-scroll::-webkit-scrollbar { display: none; }

.style-chip {
  flex-shrink: 0;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  background: var(--card-bg);
  color: var(--text-dark);
  box-shadow: 0 4px 14px rgba(67,81,108,0.08);
  cursor: default;
  transition: transform 0.2s;
}

.style-chip:hover {
  transform: scale(1.05);
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  color: #fff;
}

/* ===== Story Steps ===== */
.steps-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin-top: 56px;
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 28px;
  position: relative;
}

.step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -8px;
  top: 40px;
  font-size: 20px;
  color: var(--orange);
  opacity: 0.5;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(255, 139, 89, 0.35);
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ===== CTA ===== */
.cta-section {
  padding: 80px 24px 120px;
  text-align: center;
}

.cta-card {
  max-width: 680px;
  margin: 0 auto;
  background: linear-gradient(135deg, #FF8B59, #FFDE6A);
  border-radius: 32px;
  padding: 64px 48px;
  box-shadow: 0 20px 60px rgba(255, 139, 89, 0.35);
  color: #fff;
}

.cta-card h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-card p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 36px;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: #fff;
  color: var(--orange);
  font-size: 16px;
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.2);
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid rgba(67, 81, 108, 0.08);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-mid);
  font-size: 14px;
}

.footer a {
  color: var(--text-mid);
  text-decoration: none;
}

.footer a:hover {
  color: var(--orange);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* ===== Animal Decorations ===== */
.hero-animals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.animal {
  position: absolute;
  width: 80px;
  height: 80px;
  object-fit: contain;
  opacity: 0.85;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
}

.animal-panda  { bottom: 12%; left: 6%;  animation: wobble 5s ease-in-out infinite; }
.animal-rabbit { bottom: 18%; right: 5%; animation: wobble 4.5s ease-in-out infinite 0.5s; }
.animal-bear   { top: 22%;   left: 3%;  animation: wobble 6s ease-in-out infinite 1s; }
.animal-cat    { top: 18%;   right: 4%; animation: wobble 5.5s ease-in-out infinite 1.5s; }

@keyframes wobble {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%       { transform: rotate(4deg) translateY(-8px); }
}

@media (max-width: 768px) {
  .animal { width: 54px; height: 54px; }
  .animal-bear, .animal-cat { display: none; }
}

/* ===== Gallery Scroll ===== */
.gallery-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
  cursor: grab;
}

.gallery-scroll::-webkit-scrollbar { display: none; }

.gallery-item {
  flex-shrink: 0;
  width: 200px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.gallery-item:hover { transform: scale(1.03); }

.gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.gallery-item span {
  display: block;
  text-align: center;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

/* ===== New Version Nav Link ===== */
.nav-v1-link {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(90deg, #ffe0cc, #fff3cc);
  color: var(--orange);
  font-size: 12px; font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-v1-link:hover { opacity: 0.85; transform: translateY(-1px); }

.nav-v1-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  animation: bpulse 1.6s ease-in-out infinite;
}

/* ===== Nav Right Group ===== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== Language Toggle Button ===== */
.lang-toggle-btn {
  display: flex; align-items: center; gap: 2px;
  background: none;
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  font-family: inherit;
}
.lang-toggle-btn:hover .lopt { opacity: 0.8; }
.lang-toggle-btn .lopt { opacity: 0.35; transition: opacity 0.2s, color 0.2s; }
.lang-toggle-btn .lopt.active { opacity: 1; color: var(--orange); }
.lang-sep { opacity: 0.2; margin: 0 1px; font-size: 11px; }

/* EN mode: hide all Chinese secondary elements */
html.lang-en .card-cn,
html.lang-en .card-cn-desc,
html.lang-en .hero-h1-cn,
html.lang-en .section-cn,
html.lang-en .sub-cn,
html.lang-en .nav-cn,
html.lang-en .cta-cn,
html.lang-en .txt-zh { display: none !important; }

/* ZH mode: hide English-only elements */
html.lang-zh .txt-en { display: none !important; }

/* ZH mode: promote Chinese text to primary style */
html.lang-zh .hero-h1-cn {
  font-size: clamp(32px, 6vw, 54px);
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 0; margin-bottom: 20px;
  letter-spacing: normal;
}
html.lang-zh .section-cn {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text-dark);
  margin-top: 0; margin-bottom: 8px;
}
html.lang-zh .card-cn {
  display: block;
  font-size: 0.95rem; font-weight: 600;
  color: var(--text-dark); margin-top: 0;
}
html.lang-zh .card-cn-desc {
  display: block;
  font-size: 0.9rem; color: var(--text-dark);
  border-top: none; padding-top: 0; margin-top: 6px;
}
html.lang-zh .sub-cn {
  display: block;
  font-size: 1rem; color: var(--text-dark);
  opacity: 1; margin-top: 0;
}
html.lang-zh .nav-cn { font-size: 14px; opacity: 1; }
html.lang-zh .cta-cn {
  font-size: 1.1rem; opacity: 1;
  color: var(--text-dark); font-weight: 600;
}

/* ===== Fade-in Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .nav { padding: 14px 20px; }

  .step:not(:last-child)::after { display: none; }

  .cta-card { padding: 48px 28px; }

  .steps-wrap {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .step { padding: 20px 16px; }
}
