/* ============================================================
   FlyRabbit 官网样式
   主色：#4AA112 绿  /  辅助金：#D4B01D  /  薄荷绿渐变
   ============================================================ */

:root {
  --green: #4AA112;
  --green-dark: #3a8210;
  --green-deep: #2f6b0c;
  --green-light: #7bc94a;
  --green-50: #f4fbf0;
  --mint-100: #eaf7e0;
  --mint-200: #d8efc7;
  --mint-300: #c0e5a5;
  --gold: #D4B01D;
  --gold-light: #e6c94f;
  --ink: #1d2b1a;
  --ink-2: #3f5538;
  --gray: #5f705c;
  --gray-light: #94a191;
  --line: #e4ecdf;
  --white: #ffffff;
  --shadow-sm: 0 4px 14px rgba(46, 92, 32, .08);
  --shadow-md: 0 12px 34px rgba(46, 92, 32, .12);
  --shadow-lg: 0 24px 60px rgba(46, 92, 32, .16);
  --radius: 18px;
  --radius-lg: 26px;
  --grad-mint: linear-gradient(155deg, #f2fbe8 0%, #e3f5d2 48%, #d4eec1 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  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; }

.container { width: min(1160px, 92%); margin: 0 auto; }

section[id], footer[id] { scroll-margin-top: 76px; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-ghost {
  background: #fff;
  color: var(--green-dark);
  border: 1.5px solid rgba(74, 161, 18, .35);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--green); }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(30, 60, 20, .06); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 30px; height: auto; flex: none; object-fit: contain; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: .3px; color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--green-dark); background: var(--mint-100); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2.4px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--grad-mint); padding: 150px 0 96px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(74, 161, 18, .18);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(40px, 5.2vw, 62px);
  line-height: 1.14;
  letter-spacing: .5px;
  font-weight: 800;
  color: var(--ink);
}
.hero-sub {
  margin: 22px 0 30px;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--gray); }

/* ---------- 手机 Mockup ---------- */
.hero-visual { display: flex; justify-content: center; }

.phone {
  width: 280px;
  height: 570px;
  border-radius: 42px;
  background: #161616;
  padding: 11px;
  box-shadow: 0 30px 70px rgba(43, 74, 30, .28), inset 0 0 0 1px rgba(255, 255, 255, .06);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 11px; left: 50%;
  transform: translateX(-50%);
  width: 108px; height: 26px;
  background: #161616;
  border-radius: 0 0 16px 16px;
  z-index: 5;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 33px;
  overflow: hidden;
  position: relative;
  background: #fff;
}

.ph-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px 4px;
  font-size: 13px;
  font-weight: 600;
  color: inherit;
}
.ph-status-icons { display: inline-flex; align-items: center; gap: 4px; }

/* 首页 screen */
.app-home {
  background: linear-gradient(160deg, #eaf7dc 0%, #d6eec1 55%, #c6e7a8 100%);
  display: flex;
  flex-direction: column;
}
.ph-home-body { flex: 1; padding: 8px 16px 14px; overflow: hidden; }

.ph-greet { display: flex; align-items: center; justify-content: space-between; }
.ph-greet-title { font-size: 17px; font-weight: 800; color: var(--ink); }
.ph-greet-date { font-size: 11px; color: var(--ink-2); opacity: .75; }
.ph-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}

.ph-motto {
  margin: 12px 0 12px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--green-deep);
  font-weight: 600;
  line-height: 1.5;
}

.ph-card {
  background: #fff;
  border-radius: 16px;
  padding: 12px 13px;
  box-shadow: 0 8px 20px rgba(43, 74, 30, .1);
  margin-bottom: 12px;
}
.ph-card-head { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.ph-tag { background: var(--mint-100); color: var(--green-dark); font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.ph-energy { color: var(--gold); font-size: 12px; font-weight: 700; }

.ph-progress { height: 6px; background: var(--mint-100); border-radius: 999px; overflow: hidden; margin: 8px 0; }
.ph-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--green-light)); border-radius: 999px; }

.ph-task-row { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--ink-2); margin-top: 5px; }
.ph-task-row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }

.ph-words { display: flex; flex-direction: column; gap: 5px; margin: 2px 0 4px; }
.ph-word { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink); }
.ph-word-en { font-weight: 600; }
.ph-badges { display: inline-flex; gap: 4px; }
.ph-badges .b {
  width: 17px; height: 17px; border-radius: 6px;
  background: #ecefeb; color: #a8b2a4;
  font-size: 9.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-style: normal;
}
.ph-badges .b.ok { background: var(--green); color: #fff; }

.ph-main-btn {
  margin-top: 6px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  text-align: center;
  padding: 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(74, 161, 18, .32);
}

.ph-tabbar {
  margin: 0 16px 16px;
  background: #fff;
  border-radius: 999px;
  padding: 7px 6px;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 8px 22px rgba(43, 74, 30, .16);
}
.ph-tabbar span { font-size: 11.5px; font-weight: 600; color: var(--gray); padding: 6px 12px; border-radius: 999px; }
.ph-tabbar span.active { background: var(--green); color: #fff; }

/* 刷词 screen */
.app-flash { background: linear-gradient(170deg, #f4fbf0 0%, #e6f5da 100%); display: flex; flex-direction: column; }
.ph-flash-body { flex: 1; display: flex; flex-direction: column; padding: 14px 16px 18px; }
.ph-flash-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ph-x { color: var(--gray); font-size: 14px; }

.ph-flash-card {
  flex: 1;
  margin-top: 16px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ph-word-en-lg { font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: .5px; }
.ph-word-ph { font-size: 13px; color: var(--gray); margin-top: 4px; }
.ph-word-pos { font-size: 13px; color: var(--ink-2); margin-top: 14px; }
.ph-divider { width: 46px; height: 3px; border-radius: 3px; background: var(--gold); margin: 16px 0; }
.ph-example { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.ph-example b { color: var(--green-dark); }

.ph-flash-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.ph-btn-no, .ph-btn-yes {
  text-align: center;
  padding: 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}
.ph-btn-no { background: #fff; color: var(--ink-2); border: 1.5px solid var(--line); }
.ph-btn-yes { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; box-shadow: 0 8px 18px rgba(74, 161, 18, .3); }

/* 精读 screen */
.app-intensive { background: #fbfdfa; display: flex; flex-direction: column; }
.ph-int-body { flex: 1; padding: 12px 16px 10px; overflow: hidden; }
.ph-int-title { font-size: 16px; font-weight: 800; color: var(--ink); }
.ph-int-search {
  margin-top: 8px;
  background: #eef3eb;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 11px;
  color: var(--gray-light);
}
.ph-article { margin-top: 14px; }
.ph-article-title { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.ph-article p { font-size: 11.5px; color: var(--ink-2); line-height: 1.7; margin-bottom: 8px; }
.ph-article mark {
  background: linear-gradient(180deg, transparent 55%, rgba(212, 176, 29, .55) 55%);
  color: inherit;
  font-weight: 700;
  padding: 0 1px;
}

.ph-player {
  margin: 0 16px 18px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ph-play-btn {
  width: 32px; height: 32px; flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.ph-player-track { flex: 1; height: 5px; background: var(--mint-100); border-radius: 999px; overflow: hidden; }
.ph-player-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--green-light)); border-radius: 999px; }
.ph-player-time { font-size: 10px; color: var(--gray); flex: none; }

/* ---------- 数据条 ---------- */
.stats { padding: 56px 0; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; }
.stat-num { font-size: 40px; font-weight: 800; color: var(--green-dark); line-height: 1.1; }
.stat-num em { font-style: normal; font-size: 24px; color: var(--gold); }
.stat-label { margin-top: 6px; font-size: 14px; color: var(--gray); }

/* ---------- 通用区块 ---------- */
.section { padding: 96px 0; }
.section-mint { background: linear-gradient(180deg, var(--green-50), var(--mint-100)); }
.section-dark { background: linear-gradient(160deg, #22301f 0%, #16220f 100%); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green-dark);
  background: var(--mint-100);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-dark .section-head .eyebrow { background: rgba(122, 190, 64, .18); color: var(--mint-200); }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.25; }
.section-dark .section-head h2 { color: #fff; }
.section-head p { margin-top: 14px; font-size: 16px; color: var(--gray); }
.section-dark .section-head p { color: #b7c4ad; }

/* ---------- 重点功能（精读） ---------- */
.feature-spot {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 56px;
}
.feature-spot-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.feature-spot-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.feature-spot-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--mint-100);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.feature-spot h3 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.feature-spot p { color: var(--gray); font-size: 15px; margin-bottom: 18px; }
.check-list li {
  position: relative;
  padding-left: 26px;
  margin-top: 9px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--mint-100);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px; top: 8px;
  width: 6px; height: 3.5px;
  border-left: 2px solid var(--green-dark);
  border-bottom: 2px solid var(--green-dark);
  transform: rotate(-45deg);
}

/* ---------- 功能卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(74, 161, 18, .25); }
.feature-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--mint-100), var(--mint-200));
  color: var(--green-dark);
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--gray); }

/* ---------- 学习方式步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(74, 161, 18, .14);
  transition: transform .22s ease, box-shadow .22s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-num {
  font-size: 30px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.6px var(--green);
  margin-bottom: 16px;
  display: inline-block;
}
.step h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--gray); }

/* ---------- 词库 ---------- */
.banks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bank-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--green-50);
  border: 1px solid rgba(74, 161, 18, .18);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.bank-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); background: #fff; }
.bank-name { font-size: 24px; font-weight: 800; color: var(--green-dark); letter-spacing: .3px; }
.bank-desc { font-size: 13.5px; color: var(--gray); }
.banks-foot { text-align: center; margin-top: 32px; font-size: 14.5px; color: var(--gray); }

/* ---------- 界面预览（深色） ---------- */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; justify-items: center; }
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone-caption { color: #b7c4ad; font-size: 14px; font-weight: 600; }
.phones .phone { background: #0f1810; box-shadow: 0 30px 70px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.phones .phone-notch { background: #0f1810; }

/* ---------- 页脚 ---------- */
.footer { background: #16220f; color: #c2cdba; padding: 56px 0 40px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo-img {
  width: 42px; height: auto; object-fit: contain;
  background: #fff; border-radius: 10px; padding: 5px;
}
.footer-brand-name { font-size: 19px; font-weight: 800; color: #fff; }
.footer-slogan { font-size: 14px; color: #8fa286; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 14px; color: #b7c4ad; transition: color .15s ease; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 12.5px; color: #6f7d66; }

/* ---------- 滚动显现动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .banks-grid { grid-template-columns: repeat(2, 1fr); }
  .phones { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}

@media (max-width: 860px) {
  .hero { padding: 120px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .feature-spot { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .section { padding: 72px 0; }

  /* 移动端导航 */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    padding: 14px 20px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
}

@media (max-width: 560px) {
  .phones { grid-template-columns: 1fr; }
  .steps, .banks-grid, .feature-grid { grid-template-columns: 1fr; }
  .stat-num { font-size: 32px; }
}
