/* ==========================================================================
   DailyEnglish 官网样式（金棕主题，与 App 品牌一致）
   ========================================================================== */

:root {
  --c-bg: #faf8f3;
  --c-surface: #ffffff;
  --c-text: #2b2117;
  --c-text-2: #7a6c58;
  --c-primary: #b8812f;
  --c-primary-dark: #8a5d1a;
  --c-accent: #3f9d7a;
  --c-grad: linear-gradient(120deg, #b8812f 0%, #d9a44e 60%, #e8b96a 100%);
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(43, 33, 23, 0.06);
  --shadow-md: 0 10px 30px rgba(43, 33, 23, 0.10);
  --shadow-lg: 0 24px 60px rgba(43, 33, 23, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
          "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: min(1120px, 92%); margin: 0 auto; }
.container-narrow { width: min(760px, 92%); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 600; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--c-grad); color: #fff;
  box-shadow: 0 8px 24px rgba(184, 129, 47, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(184, 129, 47, .45); }
.btn-ghost {
  background: rgba(255, 255, 255, .7); color: var(--c-text);
  border: 1px solid rgba(43, 33, 23, .12); backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }
.btn-lg { padding: 15px 32px; font-size: 17px; }
.btn-sm { padding: 9px 20px; font-size: 14px; }

/* ---------- 导航 ---------- */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 14px 0; transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.navbar.scrolled {
  background: rgba(250, 248, 243, .85);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand-name .en { color: var(--c-primary); }
.brand-icon { width: 34px; height: 34px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--c-text-2); }
.nav-links a:not(.btn):hover { color: var(--c-primary); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--c-text); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- 语言切换 ---------- */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 1px solid rgba(43, 33, 23, .16); border-radius: 999px;
  padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--c-text-2);
  cursor: pointer; font-family: inherit; transition: border-color .2s, color .2s;
}
.lang-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.lang-caret { font-size: 11px; transition: transform .25s; }
.lang-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 50;
  list-style: none; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-md); border: 1px solid rgba(43, 33, 23, .07);
  padding: 6px; min-width: 150px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 9px 14px; border-radius: 9px; font-size: 14px; font-weight: 600;
  color: var(--c-text-2); cursor: pointer; font-family: inherit;
}
.lang-menu button:hover { background: var(--c-bg); color: var(--c-text); }
.lang-menu button.active { color: var(--c-primary); background: rgba(184, 129, 47, .1); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 9s ease-in-out infinite; }
.orb-1 { width: 420px; height: 420px; background: #f3e3c3; top: -80px; left: -120px; }
.orb-2 { width: 360px; height: 360px; background: #f7e9d2; top: 12%; right: -100px; animation-delay: -3s; }
.orb-3 { width: 300px; height: 300px; background: #f5e4d5; bottom: -80px; left: 38%; animation-delay: -6s; }
@keyframes float { 50% { transform: translateY(-24px); } }

.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
}
.hero-badge {
  display: inline-block; font-size: 14px; font-weight: 600; color: var(--c-primary-dark);
  background: rgba(184, 129, 47, .1); border: 1px solid rgba(184, 129, 47, .22);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.18; letter-spacing: -.5px; }
.grad-text { background: var(--c-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 22px 0 30px; font-size: 18px; color: var(--c-text-2); max-width: 34em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 42px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 28px; font-weight: 800; background: var(--c-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 13px; color: var(--c-text-2); }

/* ---------- 手机 Mockup ---------- */
.hero-phone { position: relative; display: flex; justify-content: center; }
.phone {
  width: 300px; background: #14100b; border-radius: 44px; padding: 12px;
  box-shadow: var(--shadow-lg); position: relative;
}
.phone-sm { width: 270px; }
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 24px; background: #14100b; border-radius: 14px; z-index: 2;
}
.phone-screen {
  border-radius: 34px; overflow: hidden; background: #fff;
}
.phone-screen img { width: 100%; height: auto; }

.float-chip {
  position: absolute; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-radius: 999px; padding: 9px 18px; font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow-md); animation: bob 4s ease-in-out infinite;
}
.chip-1 { top: 18%; left: -4%; }
.chip-2 { bottom: 14%; right: -3%; animation-delay: -2s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- 通用 Section ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--c-surface); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.3px; }
.section-head p { margin-top: 12px; color: var(--c-text-2); font-size: 17px; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--c-surface); border: 1px solid rgba(43, 33, 23, .06);
  border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.section-alt .card, #who .card { background: var(--c-bg); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 25px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(184,129,47,.14), rgba(232,185,106,.18));
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--c-text-2); }

/* ---------- 级别 ---------- */
.levels { display: flex; flex-direction: column; gap: 14px; max-width: 780px; margin: 0 auto; }
.level-row {
  display: grid; grid-template-columns: 64px 1fr 200px; gap: 20px; align-items: center;
  background: var(--c-bg); border-radius: 16px; padding: 18px 22px;
  border: 1px solid rgba(43, 33, 23, .05);
}
.level-tag {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; color: #fff;
}
.l1 { background: #c9a06a; } .l2 { background: #c98f3d; } .l3 { background: #b8792f; }
.l4 { background: #9c611f; } .l5 { background: #7c4a14; }
.level-info strong { font-size: 15px; }
.level-info span { display: block; font-size: 13px; color: var(--c-text-2); }
.level-bar { height: 8px; border-radius: 999px; background: rgba(43, 33, 23, .08); overflow: hidden; }
.level-bar i {
  display: block; height: 100%; width: var(--w); border-radius: inherit;
  background: var(--c-grad); transform-origin: left;
  animation: grow 1.2s cubic-bezier(.22,1,.36,1) both;
}
@keyframes grow { from { transform: scaleX(0); } }
.levels-note { text-align: center; margin-top: 30px; color: var(--c-text-2); font-size: 15px; }
.levels-note b { color: var(--c-primary-dark); }

/* ---------- 阅读体验 ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.split-copy h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.3px; }
.split-copy > p { margin: 18px 0 24px; color: var(--c-text-2); font-size: 16.5px; }
.check-list { list-style: none; margin-bottom: 30px; display: grid; gap: 12px; }
.check-list li { padding-left: 30px; position: relative; font-size: 15.5px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 21px; height: 21px; border-radius: 7px; background: rgba(63,157,122,.14);
  color: var(--c-accent); font-size: 13px; font-weight: 800; display: grid; place-items: center;
}
.split-visual { display: flex; justify-content: center; }

/* ---------- 应用预览 ---------- */
.shots {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  align-items: start;
}
.shot-frame {
  border-radius: 26px; overflow: hidden; border: 6px solid #14100b;
  box-shadow: var(--shadow-md); background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.shot:hover .shot-frame { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-lg); }
.shot-frame img { width: 100%; height: auto; aspect-ratio: 600 / 1299; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--c-bg); border-radius: 14px; padding: 4px 22px;
  border: 1px solid rgba(43, 33, 23, .05);
}
.faq details[open] { background: #fff; box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; font-weight: 700; font-size: 15.5px;
  padding: 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-arrow { transition: transform .25s; color: var(--c-text-2); }
.faq details[open] .faq-arrow { transform: rotate(180deg); }
.faq details p { padding: 0 0 16px; color: var(--c-text-2); font-size: 14.5px; }

/* ---------- 下载 ---------- */
.download { background: #14100b; color: #fff; }
.download-inner { text-align: center; max-width: 560px; }
.download-icon {
  width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 26px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.download h2 { font-size: clamp(26px, 3.4vw, 38px); }
.download p { margin: 14px 0 30px; color: rgba(255, 255, 255, .72); font-size: 16.5px; }
.download-actions { display: flex; justify-content: center; gap: 14px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: #14100b; border-radius: 14px; padding: 12px 26px;
  font-weight: 700; font-size: 17px; line-height: 1.25;
  transition: transform .2s ease, box-shadow .2s ease;
}
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(255, 255, 255, .18); }
.store-btn small { font-size: 11px; font-weight: 500; opacity: .7; }
.download-note { margin-top: 18px; font-size: 13px; color: rgba(255, 255, 255, .45); }

/* ---------- 页脚 ---------- */
.footer { background: #0d0a06; color: rgba(255, 255, 255, .6); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.footer-brand .brand-icon { width: 26px; height: 26px; border-radius: 6px; }
.footer-links { display: flex; gap: 24px; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.copyright { font-size: 13px; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .15s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .float-chip { animation: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner, .split { grid-template-columns: 1fr; gap: 48px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 120px; }
  .hero-phone { order: -1; }
  .chip-1 { left: 2%; } .chip-2 { right: 2%; }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .level-row { grid-template-columns: 56px 1fr; }
  .level-bar { display: none; }
  .hero-stats { gap: 24px; }
  .nav-links {
    position: fixed; inset: 0 0 auto 0; top: 58px; flex-direction: column; gap: 0;
    background: rgba(250, 248, 243, .97); backdrop-filter: blur(14px);
    box-shadow: var(--shadow-md); display: none; padding: 10px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 24px; width: 100%; }
  .nav-links .btn { margin: 10px 24px; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .phone { width: 260px; }
}
