/* =========================================================
   易语通译 官网样式
   品牌色 #FF6A00（与小程序 app.wxss 设计令牌保持一致）
   ========================================================= */

:root {
  /* 品牌色 */
  --brand: #FF6A00;
  --brand-dark: #E85D00;
  --brand-light: #FFF1E6;
  --brand-soft: #FFF8F2;

  /* 文字层级 */
  --t1: #1A1614;
  --t2: #4A423D;
  --t3: #857C76;
  --t4: #B3AAA4;

  /* 背景与描边 */
  --bg: #FFFFFF;
  --bg-alt: #FDFAF7;
  --line: #F0E9E3;
  --line-strong: #E5DCD4;

  /* 圆角 */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* 阴影 */
  --sh-sm: 0 2px 8px rgba(90, 60, 30, .06);
  --sh-md: 0 8px 24px rgba(90, 60, 30, .08);
  --sh-lg: 0 18px 48px rgba(90, 60, 30, .12);
  --sh-brand: 0 10px 26px rgba(255, 106, 0, .28);

  /* 布局 */
  --maxw: 1140px;
  --nav-h: 68px;
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--t1);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.28; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 840px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost { background: #fff; color: var(--t1); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--sh-sm); }

.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo-mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  border-radius: 10px;
  font-size: 17px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 106, 0, .3);
}
.logo-text { font-size: 18px; font-weight: 700; letter-spacing: .01em; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 15px; color: var(--t2); font-weight: 500;
  position: relative; padding: 4px 0; transition: color .16s ease;
}
.nav-links a:hover { color: var(--brand); }
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px;
  width: 0; height: 2px; border-radius: 2px; background: var(--brand);
  transform: translateX(-50%); transition: width .2s ease;
}
.nav-links a:hover::after { width: 100%; }

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

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: #fff; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { width: 16px; height: 2px; background: var(--t1); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero {
  padding: calc(var(--nav-h) + 68px) 0 88px;
  background:
    radial-gradient(900px 460px at 12% -6%, var(--brand-light) 0%, rgba(255, 241, 230, 0) 68%),
    radial-gradient(700px 420px at 96% 8%, #F3F1FF 0%, rgba(243, 241, 255, 0) 62%),
    var(--bg);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 56px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; color: var(--brand);
  box-shadow: var(--sh-sm);
  margin-bottom: 22px;
}

.hero h1 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--brand); }

.hero-sub {
  margin-top: 20px;
  font-size: 16.5px; color: var(--t2);
  max-width: 520px;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-points {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 30px; padding-top: 26px;
  border-top: 1px dashed var(--line-strong);
}
.hero-points li {
  position: relative; padding-left: 20px;
  font-size: 14.5px; color: var(--t2); font-weight: 500;
}
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 12px; height: 12px; margin-top: -6px;
  background: var(--brand-light); border: 2px solid var(--brand);
  border-radius: 50%;
}

/* 手机模型 */
.hero-visual { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 296px; height: 578px;
  background: #1A1614;
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(0, 0, 0, .04);
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 104px; height: 22px; background: #1A1614;
  border-radius: 0 0 14px 14px; z-index: 2;
}
.phone-screen {
  height: 100%; background: var(--brand-soft);
  border-radius: 32px; padding: 46px 18px 18px;
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
}
.screen-head { display: flex; align-items: center; justify-content: space-between; }
.screen-title { font-size: 15px; font-weight: 700; }
.screen-tag {
  font-size: 11px; font-weight: 600; color: var(--brand);
  background: var(--brand-light); padding: 3px 10px; border-radius: var(--r-pill);
}
.screen-card {
  background: #fff; border-radius: var(--r-md);
  padding: 14px; box-shadow: var(--sh-sm);
}
.screen-card-result { border: 1px solid #FFE0C7; }
.screen-lang { font-size: 11px; color: var(--t3); margin-bottom: 6px; }
.screen-text { font-size: 14px; color: var(--t1); line-height: 1.55; }
.screen-card-result .screen-text { color: var(--brand-dark); font-weight: 600; }
.screen-arrow { text-align: center; font-size: 15px; color: var(--brand); line-height: 1; }

.screen-label { margin-top: 4px; font-size: 11px; font-weight: 600; color: var(--t3); }

.screen-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border-radius: 12px; padding: 10px 12px;
  box-shadow: var(--sh-sm);
}
.screen-row-t {
  font-size: 12.5px; color: var(--t2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.screen-row-l {
  flex: none; width: 18px; height: 18px; border-radius: 6px;
  display: grid; place-items: center;
  background: var(--brand-light); color: var(--brand);
  font-size: 10px; font-weight: 700;
}

.screen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.screen-chip {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border-radius: 12px; padding: 9px 10px;
  font-size: 12px; color: var(--t2); font-weight: 500;
  box-shadow: var(--sh-sm);
}
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-a { background: #A855F7; }
.dot-b { background: #3B82F6; }
.dot-c { background: #10B981; }
.dot-d { background: var(--brand); }

/* ---------- 通用区块 ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  color: var(--brand); text-transform: uppercase;
}
.section-head h2 { font-size: clamp(25px, 3vw, 36px); }
.section-sub { margin-top: 16px; font-size: 16px; color: var(--t2); }

/* ---------- 功能卡片 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: #FFE0C7; }

.card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 700; color: #fff;
  margin-bottom: 20px;
}
.i-text  { background: linear-gradient(135deg, #FF8A3D, #FF6A00); }
.i-voice { background: linear-gradient(135deg, #B478F5, #8B5CF6); }
.i-doc   { background: linear-gradient(135deg, #5EA4FF, #3B82F6); }
.i-image { background: linear-gradient(135deg, #34D399, #10B981); }
.i-chat  { background: linear-gradient(135deg, #FBBF24, #F59E0B); }
.i-more  { background: linear-gradient(135deg, #94A3B8, #64748B); }

.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--t2); line-height: 1.75; }

.card-more { background: linear-gradient(180deg, #fff, var(--bg-alt)); }

/* ---------- 语种 ---------- */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.lang-item {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-size: 15px; font-weight: 600; color: var(--t1);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.lang-item:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--sh-sm); }
.lang-item .flag { font-size: 20px; line-height: 1; }
.lang-item-more { color: var(--t3); font-weight: 500; }
.lang-item-more .flag { color: var(--brand); font-weight: 700; }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; margin-top: 48px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px 24px;
  box-shadow: var(--sh-sm);
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 32px; color: var(--brand); letter-spacing: -.02em; }
.stat span { font-size: 14px; color: var(--t3); }

/* ---------- 使用步骤 ---------- */
.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr; gap: 22px;
}
.step {
  position: relative;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 26px;
}
.step-no {
  display: block; margin-bottom: 16px;
  font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--brand);
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--t2); }

/* CTA */
.cta-card {
  margin-top: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  background: linear-gradient(120deg, #FFF3E9 0%, #FFF8F2 55%, #FFF1E6 100%);
  border: 1px solid #FFE0C7;
  border-radius: var(--r-lg);
  padding: 36px 44px;
}
.cta-copy h3 { font-size: 23px; margin-bottom: 10px; }
.cta-copy p { font-size: 15.5px; color: var(--t2); }

/* CTA 内三步指引（替代小程序码） */
.cta-steps { display: flex; align-items: center; gap: 14px; flex: none; }
.cta-step {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: var(--r-pill);
  padding: 11px 18px; font-size: 14px; font-weight: 600; color: var(--t1);
  box-shadow: var(--sh-sm); white-space: nowrap;
}
.cta-step-no {
  width: 20px; height: 20px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq-item.is-open { border-color: #FFE0C7; box-shadow: var(--sh-sm); }

.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 600; color: var(--t1); text-align: left;
}
.faq-q:hover { color: var(--brand); }

.faq-icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--brand); border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .22s ease, opacity .22s ease;
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }
.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }

.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .28s ease;
}
.faq-a p {
  padding: 0 22px 22px;
  font-size: 14.8px; color: var(--t2); line-height: 1.8;
}

/* ---------- 联系 ---------- */
.contacts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr; gap: 22px;
}
.contact-card {
  display: flex; flex-direction: column; gap: 6px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--brand); }
.contact-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--brand); }
.contact-card strong { font-size: 17px; word-break: break-all; }
.contact-card small { font-size: 13.5px; color: var(--t3); }

/* ---------- 页脚 ---------- */
.footer { background: #1A1614; color: #B9AFA8; padding: 60px 0 30px; }
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand .logo-text { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 14px; max-width: 300px; }

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 14px; color: #fff; margin-bottom: 4px; }
.footer-col a, .footer-col span { font-size: 14px; transition: color .16s ease; }
.footer-col a:hover { color: var(--brand); }

.footer-bottom { padding-top: 24px; }
.footer-bottom p {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: #8C837D;
}
.footer-bottom a { color: #B9AFA8; }
.footer-bottom a:hover { color: var(--brand); }
.sep { color: #4A423D; }

/* ---------- 滚动进场动效 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================
   响应式
   ========================================================= */

/* 平板 */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 52px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-btns, .hero-points { justify-content: center; }
  .hero-points { max-width: 520px; margin-left: auto; margin-right: auto; }
  .lang-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 手机 */
@media (max-width: 720px) {
  :root { --nav-h: 60px; }

  .container { padding: 0 18px; }
  .section { padding: 66px 0; }
  .section-head { margin-bottom: 36px; }

  /* 移动端导航抽屉 */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-md);
    padding: 8px 18px 18px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .2s ease, opacity .2s ease, visibility .2s;
  }
  .nav-links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links a::after { display: none; }
  .nav-actions .btn-primary { display: none; }

  .hero { padding: calc(var(--nav-h) + 44px) 0 60px; }
  .hero-points { gap: 8px 16px; }
  .hero-points li { font-size: 13.5px; }
  .phone { width: 250px; height: 496px; border-radius: 36px; }
  .phone-screen { padding: 42px 14px 14px; border-radius: 27px; }

  .cards, .steps, .contacts { grid-template-columns: 1fr; }
  .lang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; padding: 26px 18px; }
  .stat strong { font-size: 27px; }

  .cta-card { flex-direction: column; text-align: center; padding: 30px 22px; gap: 26px; }
  .cta-steps { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  .cta-step { justify-content: flex-start; }
  .faq-q { padding: 17px 18px; font-size: 15.2px; }
  .faq-a p { padding: 0 18px 18px; }

  .footer { padding: 46px 0 26px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}
