
/* =============================================
   CSS VARIABLES & RESET
   ============================================= */
:root {
  --jade: #0D7C5C;
  --jade-dark: #095E45;
  --jade-light: #E8F5E9;
  --jade-glow: rgba(13, 124, 92, 0.15);
  --gold: #D4A84B;
  --gold-light: #F0E0B8;
  --gold-glow: rgba(212, 168, 75, 0.2);
  --red: #DA251D;
  --cream: #FBF8F3;
  --cream-dark: #F5F0E8;
  --dark: #1A1A2E;
  --dark-soft: #2D2D44;
  --gray: #6B6B80;
  --gray-light: #A0A0B0;
  --white: #FFFFFF;
  --font-serif: 'Playfair Display', 'Noto Serif SC', serif;
  --font-sans: 'DM Sans', 'Noto Sans SC', sans-serif;
  --max-width: 1200px;
  --section-padding: 120px 24px;
  --transition: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =============================================
   UTILITY
   ============================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 12px;
  position: relative;
  padding-left: 36px;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 1.5px;
  background: var(--gold);
  transform: translateY(-50%);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 16px;
}
.section-title .highlight {
  color: var(--jade);
  font-style: italic;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.4s var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--jade);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--jade-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--jade-glow);
}
.btn-outline {
  background: transparent;
  color: var(--jade);
  border: 1.5px solid var(--jade);
}
.btn-outline:hover {
  background: var(--jade);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold);
  color: var(--dark);
}
.btn-gold:hover {
  background: #C4963A;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--gold-glow);
}

/* =============================================
   NAVIGATION
   ============================================= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 24px;
  transition: all 0.5s var(--transition);
}
nav.scrolled {
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px 24px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--jade);
}
.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark-soft);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--jade);
  transition: width 0.3s var(--transition);
}
.nav-links a:hover { color: var(--jade); }
.nav-links a:hover::after { width: 100%; }
.nav-links .nav-cta {
  background: var(--jade);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--jade-dark); }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s var(--transition);
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 10px;
  padding: 3px;
  background: rgba(13, 124, 92, 0.06);
  border: 1px solid rgba(13, 124, 92, 0.16);
  border-radius: 100px;
}
.lang-switch .lang-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gray);
  padding: 6px 11px;
  border-radius: 100px;
  transition: all 0.25s var(--transition);
  white-space: nowrap;
}
.lang-switch .lang-btn:hover { color: var(--jade); }
.lang-switch .lang-btn.active {
  background: var(--jade);
  color: #fff;
  box-shadow: 0 2px 10px var(--jade-glow);
}
@media (max-width: 768px) {
  .lang-switch { margin-left: 0; }
  .lang-switch .lang-btn { padding: 5px 7px; font-size: 0.72rem; }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  position: relative;
  padding: 120px 24px 90px;
  overflow: hidden;
  background: linear-gradient(165deg, var(--cream) 0%, var(--cream-dark) 50%, #E8F0E8 100%);
}
.hero-stage {
  width: 100%;
  max-width: 1400px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--jade-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}



.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 124, 92, 0.1);
  color: var(--jade);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(13, 124, 92, 0.15);
  animation: fadeUp 0.8s var(--transition) 0.2s both;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--jade);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeUp 0.8s var(--transition) 0.3s both;
}
.hero h1 .chinese {
  display: block;
  color: var(--dark);
}
.hero h1 .viet {
  display: block;
  color: var(--jade);
  font-style: italic;
  font-weight: 400;
  font-size: 0.7em;
  margin-top: 8px;
}
.hero h1 .highlight {
  color: var(--jade);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 36px;
  animation: fadeUp 0.8s var(--transition) 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s var(--transition) 0.5s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.06);
  animation: fadeUp 0.8s var(--transition) 0.6s both;
}
.hero-stat h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--jade);
  line-height: 1;
}
.hero-stat p {
  font-size: 0.8rem;
  color: var(--gray-light);
  margin-top: 4px;
}

/* Hero 介绍（上方）+ Demo（下方）合并首屏 */
.hero-intro {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  animation: fadeUp 0.8s var(--transition) 0.2s both;
}
.hero-intro .hero-desc {
  margin-left: auto;
  margin-right: auto;
}
.hero-intro .hero-actions {
  justify-content: center;
}

/* Hero Right - Live Demo（真实工作台，按钮全部外露，无框架） */
.hero-demo {
  position: relative;
  width: 100%;
  animation: fadeUp 0.8s var(--transition) 0.5s both;
}
.hero-demo-card {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  width: 100%;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(13,124,92,0.08), transparent 60%),
    radial-gradient(120% 80% at 100% 100%, rgba(212,168,75,0.10), transparent 60%);
  padding: 0;
}
.hero-demo-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(13,124,92,0.25), rgba(13,124,92,0.05) 40%, rgba(212,168,75,0.20));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.hero-demo-card iframe {
  width: 100%;
  height: calc(100vh - 140px);
  border: none;
  display: block;
  border-radius: 22px;
  background: #fff;
  position: relative;
  z-index: 1;
}

/* Decorative elements */
.hero-deco {
  position: absolute;
  pointer-events: none;
}
.hero-deco-1 {
  top: 10%;
  left: -5%;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(13, 124, 92, 0.1);
  border-radius: 50%;
}
.hero-deco-2 {
  bottom: 15%;
  right: 5%;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(212, 168, 75, 0.15);
  border-radius: 50%;
}

/* Scroll-down indicator */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--jade-dark);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-decoration: none;
  opacity: 0.85;
  z-index: 2;
  cursor: pointer;
}
.hero-scroll:hover { opacity: 1; }
.hero-scroll-arrow {
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--jade-dark);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-arrow::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 7px;
  background: var(--jade-dark);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translate(-50%, 0);   opacity: 1; }
  60%  { transform: translate(-50%, 12px); opacity: 0; }
  61%  { transform: translate(-50%, 0);   opacity: 0; }
  100% { transform: translate(-50%, 0);   opacity: 1; }
}

/* =============================================
   INTRO SECTION (第二屏：原 Hero 文案/按钮)
   ============================================= */
.intro-section {
  padding: 120px 24px 80px;
  background: linear-gradient(180deg, var(--cream) 0%, #ffffff 100%);
  position: relative;
}
.intro-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.intro-content .hero-badge {
  margin-inline: auto;
}
.intro-content h1 {
  margin-inline: auto;
}
.intro-content .hero-desc {
  margin-inline: auto;
}
.intro-content .hero-actions {
  justify-content: center;
}
.intro-viet {
  display: block;
  color: var(--jade);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  margin: 6px 0 4px;
}

/* =============================================
   LIVETRANSLATE DEMO SECTION
   ============================================= */
.demo-section {
  padding: var(--section-padding);
  background: var(--white);
  position: relative;
}
.demo-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.demo-header {
  text-align: center;
  margin-bottom: 60px;
}
.demo-header .section-label {
  padding-left: 0;
}
.demo-header .section-label::before { display: none; }
.demo-header .section-title { max-width: 700px; margin: 0 auto 16px; }
.demo-header .section-desc { margin: 0 auto; }

.demo-frame-wrap {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
}
.demo-frame-wrap iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

.demo-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.demo-feature {
  text-align: center;
  padding: 24px 16px;
  border-radius: 12px;
  background: var(--cream);
  transition: all 0.4s var(--transition);
}
.demo-feature:hover {
  background: var(--jade-light);
  transform: translateY(-4px);
}
.demo-feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.demo-feature h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.demo-feature p {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.5;
}

/* =============================================
   SERVICES SECTION
   ============================================= */
.services-section {
  padding: var(--section-padding);
  background: var(--cream);
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}
.services-header .section-label { padding-left: 0; }
.services-header .section-label::before { display: none; }
.services-header .section-desc { margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 28px;
  transition: all 0.4s var(--transition);
  position: relative;
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--jade), var(--gold));
  opacity: 0;
  transition: opacity 0.4s var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}
.service-card:hover::before { opacity: 1; }

.service-card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.service-card .vi-name {
  font-size: 0.8rem;
  color: var(--jade);
  font-style: italic;
  margin-bottom: 12px;
  font-weight: 500;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {
  padding: var(--section-padding);
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content .section-title {
  margin-bottom: 20px;
}
.about-content p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.about-tag {
  background: var(--jade-light);
  color: var(--jade);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Right side - credentials */
.about-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.credential-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s var(--transition);
}
.credential-card:hover {
  background: var(--jade-light);
  border-color: var(--jade);
}
.credential-card .num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--jade);
  line-height: 1;
  margin-bottom: 4px;
}
.credential-card .label {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.4;
}
.credential-card.full {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
}
.credential-card.full .num { margin-bottom: 0; }
.credential-card.full .label { flex: 1; }

/* =============================================
   STATS BANNER
   ============================================= */
.stats-banner {
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--jade), var(--jade-dark));
  position: relative;
  overflow: hidden;
}
.stats-banner::before {
  content: 'DỊCH THUẬT';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif;
  font-size: clamp(8rem, 15vw, 15rem);
  font-weight: 700;
  color: rgba(255,255,255,0.03);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 20px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.stat-item {
  text-align: center;
  color: var(--white);
}
.stat-item .number {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item .number .suffix {
  font-size: 0.5em;
  opacity: 0.8;
}
.stat-item .label {
  font-size: 0.85rem;
  opacity: 0.8;
  font-weight: 400;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section {
  padding: var(--section-padding);
  background: var(--cream);
  text-align: center;
  position: relative;
}
.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.contact-section .section-title { max-width: 600px; margin: 0 auto 16px; }
.contact-section .section-desc { margin: 0 auto 40px; }

.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 40px auto 0;
}
.contact-info-item {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.04);
}
.contact-info-item .icon { font-size: 1.5rem; margin-bottom: 8px; }
.contact-info-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-info-item p {
  font-size: 0.82rem;
  color: var(--gray);
}
.contact-info-item a {
  color: var(--jade);
  font-weight: 500;
}
.contact-info-item a:hover { text-decoration: underline; }

/* =============================================
   ABOUT - LICENSE
   ============================================= */
.about-license {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.about-license-inner {
  text-align: center;
}
.license-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 24px;
  padding: 6px 20px;
  background: var(--jade-light);
  border-radius: 100px;
}
.license-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.license-item {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  max-width: 280px;
  transition: all 0.3s var(--transition);
}
.license-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.license-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.04);
}
.license-caption {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 500;
}

/* =============================================
   FOOTER
   ============================================= */
footer.footer-main {
  padding: 48px 24px;
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
}
footer .container {
  max-width: var(--max-width);
  margin: 0 auto;
}
footer .footer-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 8px;
}
footer .footer-tagline {
  font-size: 0.85rem;
  margin-bottom: 24px;
  opacity: 0.7;
}
footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
footer .footer-links a {
  font-size: 0.82rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}
footer .footer-links a:hover { opacity: 1; color: var(--gold); }
footer .footer-copy {
  font-size: 0.78rem;
  opacity: 0.5;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--transition);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content { align-self: stretch; padding-bottom: 0; }
  .hero-demo { max-width: 600px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .demo-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  /* 悦迅翻译字号缩小 + logo/lang-switch 都紧凑，避免溢出 */
  .nav-logo-sub { display: none; }
  .nav-logo { font-size: 0.9rem; gap: 7px; }
  .nav-logo-img { width: 26px; height: 26px; border-radius: 6px; }
  nav { padding: 8px 12px; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(251, 248, 243, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  }

  .hero { padding: 120px 16px 60px; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stat h3 { font-size: 1.5rem; }

  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .demo-frame-wrap iframe { height: 480px; }
  .demo-features { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .about-credentials { grid-template-columns: 1fr; }
  .visual-transcript { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .demo-frame-wrap iframe { height: 400px; }
  .demo-features { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-item .number { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-actions { flex-direction: column; align-items: center; }
  .services-grid { grid-template-columns: 1fr; }
}

/* =============================================
   首屏（demo 框架 + 悦迅头）
   ============================================= */
.hero-demo-screen {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 76px 18px 50px;
  overflow: hidden;
  background: linear-gradient(165deg, var(--cream) 0%, var(--cream-dark) 50%, #E8F0E8 100%);
}
.hero-demo-stage {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 8px;
}
.hero-demo-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
  animation: fadeUp 0.8s var(--transition) 0.2s both;
}
.hero-demo-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
  margin: 14px 0 10px;
}
.hero-demo-sub {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.7;
}
.hero-demo-card {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  width: 100%;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(13,124,92,0.08), transparent 60%),
    radial-gradient(120% 80% at 100% 100%, rgba(212,168,75,0.10), transparent 60%);
  padding: 0;
}
.hero-demo-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(13,124,92,0.25), rgba(13,124,92,0.05) 40%, rgba(212,168,75,0.20));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

@media (max-width: 768px) {
  /* 去掉"大筐套小筐"：手机上首屏 demo 直接贴边，无外层圆角/渐变/背景框 */
  .hero-demo-screen { padding: 60px 0 18px; min-height: 0; background: none; }
  .hero-demo-stage { padding: 0 10px; }
  .hero-demo-card { background: none; border-radius: 0; overflow: visible; box-shadow: none; }
  .hero-demo-card::before { display: none; }
  .hero-demo-card iframe { border-radius: 0; height: 100dvh !important; min-height: 0; max-height: none; }
}
