/* ==========================================================================
   单词鹰官网 · 全站唯一样式表
   --------------------------------------------------------------------------
   目录：
   01 设计令牌（CSS 变量）
   02 基础重置与排版
   03 布局工具（容器 / 区块 / 栅格 / 工具类）
   04 按钮（primary / outline / white × sm / md / lg）
   05 标签 Badge
   06 顶部导航（桌面 / 移动端汉堡）
   07 面包屑
   08 Hero
   09 信任条
   10 卡片（通用 / 功能 / 角色 / 文章 / 案例）
   11 统计数字条
   12 图文分栏
   13 词卡组件（教材单元页复用）
   14 FAQ 手风琴
   15 CTA 横幅区块
   16 表单控件（含错误态 / 成功态 / 验证码行）
   17 页脚
   18 固定 CTA（桌面浮动组 / 移动端底栏）与返回顶部
   19 占位图 .ph-img（全站统一占位）
   20 响应式（992 / 768 / 480）
   ========================================================================== */

/* --------------------------------------------------------------------------
   01 设计令牌
   -------------------------------------------------------------------------- */
:root {
  /* 品牌三色（对齐单词鹰 logo：红 + 蓝 + 黑） */
  --color-primary: #e31837;          /* 品牌红：主行动按钮 / 导航高亮 / 标题强调 */
  --color-primary-dark: #c41230;     /* 品牌红深色：悬停、红色渐变 */
  --color-primary-light: #fdecef;    /* 品牌红浅底：徽章底 */
  --color-blue: #3b82c4;             /* 品牌蓝（logo 右翼）：信息 / 功能图标 / 辅助强调 */
  --color-blue-dark: #2f6ea8;        /* 品牌蓝深色 */
  --color-blue-light: #eaf3fb;       /* 品牌蓝浅底：图标底、信息徽章底 */
  --color-ink: #1a1a1a;              /* 品牌黑（logo 鹰形）：正文 / 深色区块 */
  --color-cta: #e31837;              /* 主行动 = 品牌红 */
  --color-cta-hover: #c41230;        /* 主行动悬停 = 品牌红深色 */
  --color-cta-light: #fdecef;        /* 主行动浅底 */
  --color-success: #22c55e;          /* 成功绿 */
  --color-success-light: #E7F6F0;
  --color-danger: #D64545;           /* 表单错误 */
  --color-danger-light: #FCECEC;

  /* 中性色 */
  --color-bg: #f8f9fa;               /* 页面背景 */
  --color-section-alt: #eaf1f8;      /* 交替模块浅蓝灰底：与白底模块形成明显分区 */
  --color-card: #FFFFFF;             /* 卡片白 */
  --color-text: #1a1a1a;             /* 正文 */
  --color-text-secondary: #4a5568;   /* 次要文字 */
  --color-text-placeholder: #a0aec0; /* 占位文字 */
  --color-border: #E6EAF2;           /* 分割线 / 卡片描边 */

  /* 圆角 */
  --radius-md: 12px;
  --radius-lg: 16px;

  /* 阴影规范：sm 静态卡片 / md 悬停浮起 / lg 弹层与重点视觉 */
  --shadow-sm: 0 1px 2px rgba(26, 35, 51, .06), 0 1px 3px rgba(26, 35, 51, .05);
  --shadow-md: 0 6px 16px rgba(26, 35, 51, .09);
  --shadow-lg: 0 16px 40px rgba(192, 18, 48, .16);

  /* 布局 */
  --container: 1200px;
  --header-height: 72px;

  /* 字体栈：全站统一 */
  --font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --transition-fast: .18s ease;
  --transition-base: .25s ease;
}

/* --------------------------------------------------------------------------
   02 基础重置与排版
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }
button { font-family: inherit; }

h1 { font-size: 40px; line-height: 1.3; font-weight: 800; letter-spacing: .01em; }
h2 { font-size: 32px; line-height: 1.35; font-weight: 800; }
h3 { font-size: 20px; line-height: 1.45; font-weight: 700; }
h4 { font-size: 16px; line-height: 1.5; font-weight: 700; }

:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  padding: 8px 16px; border-radius: 8px;
  background: var(--color-primary); color: #fff; font-size: 14px;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 12px; color: #fff; }

/* --------------------------------------------------------------------------
   03 布局工具
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow { max-width: 880px; }

.section { padding: 88px 0; background: var(--color-section-alt); }
.section--white { background: var(--color-card); }
.section--tight { padding: 64px 0; }

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head .badge { margin-bottom: 14px; }
.section-desc {
  margin-top: 14px;
  font-size: 16px;
  color: var(--color-text-secondary);
}
.section-head--left { margin-inline: 0; text-align: left; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }

/* 区块内的补充说明小字 */
.section-note {
  margin-top: 24px;
  text-align: center;
  font-size: 14.5px;
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   04 按钮
   规格：.btn（默认 md）/ .btn-sm / .btn-lg
   变体：.btn-primary（实心橙 CTA）/ .btn-outline（描边靛蓝）/ .btn-white（深色底上用）
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast),
    color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
.btn[data-button-icon]::before {
  content: "";
  inline-size: 1.05em;
  block-size: 1.05em;
  flex: 0 0 1.05em;
  background: currentColor;
  -webkit-mask: var(--button-icon) center / contain no-repeat;
  mask: var(--button-icon) center / contain no-repeat;
}
.btn[data-button-icon="message"] { --button-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 16a2 2 0 0 1-2 2H8l-4 3V5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2zM8 9h8m-8 4h5'/%3E%3C/svg%3E"); }
.btn[data-button-icon="send"] { --button-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2 9.7 14.3M22 2l-7.8 20-4.5-7.7L2 9.8z'/%3E%3C/svg%3E"); }
.btn[data-button-icon="check"] { --button-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E"); }
.btn[data-button-icon="reload"] { --button-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 5v5h-5M4 19v-5h5m11-4A8 8 0 0 0 6 6m-2 8a8 8 0 0 0 14 4'/%3E%3C/svg%3E"); }
.btn[data-button-icon="close"] { --button-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 6 12 12M18 6 6 18'/%3E%3C/svg%3E"); }
.btn[data-button-icon="phone"] { --button-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 3 3 5-3 3 6 6 3-3 5 3-1 4C11 22 2 13 3 4z'/%3E%3C/svg%3E"); }
.btn[data-button-icon="home"] { --button-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 10 9-7 9 7v10H3zM9 20v-6h6v6'/%3E%3C/svg%3E"); }
.btn[data-button-icon="form"] { --button-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6zM9 11h6m-6 4h6'/%3E%3C/svg%3E"); }
.btn[data-button-icon="download"] { --button-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m-4-4 4 4 4-4M5 15v5h14v-5'/%3E%3C/svg%3E"); }
.btn[data-button-icon="open"] { --button-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 4h7v7m0-7-9 9m7 0v7H4V6h7'/%3E%3C/svg%3E"); }
.btn[data-button-icon="copy"] { --button-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M8 8h12v12H8zM16 5V4H4v12h1'/%3E%3C/svg%3E"); }
.btn[data-button-icon="list"] { --button-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 6h12M8 12h12M8 18h12M4 6h.01M4 12h.01M4 18h.01'/%3E%3C/svg%3E"); }
.btn[data-button-icon="search"] { --button-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E"); }
.btn[data-button-icon="print"] { --button-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M7 8V3h10v5M7 17H4V9h16v8h-3M7 14h10v7H7z'/%3E%3C/svg%3E"); }
.btn[data-button-icon="book"] { --button-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6c-3-2-6-2-9-1v14c3-1 6-1 9 1 3-2 6-2 9-1V5c-3-1-6-1-9 1zm0 0v14'/%3E%3C/svg%3E"); }
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: .7; }

.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 32px; font-size: 16px; }

.btn-primary { background: var(--color-cta); color: #fff; }
.btn-primary:hover { background: var(--color-cta-hover); color: #fff; box-shadow: 0 8px 20px rgba(227, 24, 55, .32); }
.btn-primary:disabled { background: #a8cdec; box-shadow: none; }

.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary-light); color: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.btn-outline:disabled { border-color: var(--color-border); color: var(--color-text-placeholder); background: transparent; }

.btn-white { background: #fff; color: var(--color-primary); }
.btn-white:hover { background: var(--color-primary-light); color: var(--color-primary-dark); }

.btn-block { width: 100%; }

/* 文字箭头链接（卡片底部引导） */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
}
.link-arrow svg { transition: transform var(--transition-fast); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   05 标签 Badge
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.badge--blue { background: var(--color-blue-light); color: var(--color-blue-dark); }
.badge--green { background: var(--color-success-light); color: var(--color-success); }
.badge--gray { background: #EDF0F6; color: var(--color-text-secondary); }

/* --------------------------------------------------------------------------
   06 顶部导航
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base);
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(26, 35, 51, .08); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-height);
}

/* 品牌 Logo：文字 + 内联 SVG 鹰形图标 */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--color-text);
}
.logo:hover { color: var(--color-text); }
.logo__img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: none;
  object-fit: cover;
}
.logo__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}
.logo__icon svg { width: 22px; height: 22px; }

.nav-desktop { flex: 1; display: flex; justify-content: center; }
.nav-desktop a,
.nav-mobile li a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}
.nav-desktop ul { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-desktop a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 10px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color .3s ease;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform .3s ease;
}
.nav-desktop a:hover,
.nav-desktop a:focus-visible { color: var(--color-primary); }
.nav-desktop a:hover::after,
.nav-desktop a:focus-visible::after,
.nav-desktop a.is-active::after,
.nav-desktop a[aria-current="page"]::after { transform: scaleX(1); }
.nav-desktop a.is-active { color: var(--color-primary); font-weight: 700; }

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

/* 汉堡按钮（移动端） */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--color-text);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端展开菜单 */
.nav-mobile {
  display: none;
  border-top: 1px solid var(--color-border);
  background: #fff;
}
.nav-mobile.is-open { display: block; }
.nav-mobile ul { list-style: none; padding: 8px 24px 4px; }
.nav-mobile a {
  display: block;
  padding: 13px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.nav-mobile li:last-child a { border-bottom: 0; }
.nav-mobile a.is-active { color: var(--color-primary); font-weight: 700; }
.nav-mobile li a:hover,
.nav-mobile li a.is-active {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.nav-mobile__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 24px 22px;
}

/* --------------------------------------------------------------------------
   07 面包屑
   -------------------------------------------------------------------------- */
.breadcrumb {
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 12px 0;
  font-size: 13.5px;
  color: var(--color-text-secondary);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: #cbd5e0; }
.breadcrumb a { color: var(--color-text-secondary); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb [aria-current="page"] { color: var(--color-text); font-weight: 500; }

/* --------------------------------------------------------------------------
   08 Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 88px;
  background:
    radial-gradient(720px 360px at 88% -10%, rgba(59, 130, 196, .10), transparent 60%),
    linear-gradient(180deg, #f0f9ff 0%, var(--color-bg) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero__title em { font-style: normal; color: var(--color-primary); }
.hero__sub {
  margin-top: 22px;
  max-width: 540px;
  font-size: 17px;
  color: var(--color-text-secondary);
}
.hero__visual { min-width: 0; }
/* 官网真实截图轮播：保留完整截图，适配首页右侧栏。 */
.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .1);
  touch-action: pan-y;
}
.hero-carousel__track { display: flex; transition: transform .5s ease-in-out; }
.hero-carousel__slide { flex: 0 0 100%; min-width: 0; }
.hero-carousel__slide img { display: block; width: 100%; height: auto; }
.hero-carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.9);
  color: #1a1a1a; box-shadow: 0 2px 8px #0002; cursor: pointer;
  opacity: 0; transition: opacity .3s ease;
}
.hero-carousel__arrow--prev { left: 12px; }
.hero-carousel__arrow--next { right: 12px; }
.hero-carousel:hover .hero-carousel__arrow,
.hero-carousel:focus-within .hero-carousel__arrow { opacity: 1; }
.hero-carousel__controls {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 8px; background: #fff;
}
.hero-carousel__dots { display: flex; justify-content: center; flex-wrap: wrap; }
.hero-carousel__dot {
  display: grid; place-items: center; width: 24px; height: 28px;
  padding: 0; border: 0; background: transparent; cursor: pointer;
}
.hero-carousel__dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; }
.hero-carousel__dot[aria-current="true"]::after { background: var(--color-primary); }
.hero-carousel__pause { border: 0; background: transparent; color: var(--color-text-secondary); font-size: 12px; cursor: pointer; white-space: nowrap; }
.hero-carousel button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -2px; }
@media (hover: none) { .hero-carousel__arrow { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-carousel__track { transition: none; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--color-text-secondary);
}
.hero__note svg { color: var(--color-success); flex: none; }

/* 右侧产品视觉：占位面板 + 手机界面示意 */
.hero-panel {
  min-height: 440px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.hero-panel__svg { width: min(78%, 340px); height: auto; }

.hero-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text);
  animation: heroFloat 5s ease-in-out infinite alternate;
}
.hero-chip::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-success);
}
.hero-chip--a { top: 56px; left: 28px; }
.hero-chip--a::before { background: var(--color-blue); }
.hero-chip--b { right: 24px; bottom: 88px; animation-delay: 1.2s; }
.hero-chip--b::before { background: var(--color-cta); }

@keyframes heroFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

/* --------------------------------------------------------------------------
   09 信任条
   -------------------------------------------------------------------------- */
.trust-bar {
  background: var(--color-card);
  border-block: 1px solid var(--color-border);
}
.trust-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
}
.trust-item + .trust-item { border-left: 1px solid var(--color-border); }
.trust-item__icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--color-blue-light);
  color: var(--color-blue-dark);
}
.trust-item__text { font-size: 15px; font-weight: 600; }
.trust-item__text small {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   10 卡片
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* 大留白卡片（教材词库入口条等） */
.card--padded { padding: 48px; }

/* 功能卡片 */
.feature-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--color-blue-light);
  color: var(--color-blue-dark);
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: 15px; color: var(--color-text-secondary); }

/* 角色分流卡片 */
.role-card { display: flex; flex-direction: column; padding: 36px; }
.role-card__top { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.role-card__icon {
  flex: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}
.role-card--teacher .role-card__icon { background: linear-gradient(135deg, var(--color-blue), var(--color-blue-dark)); }
.role-card--custom .role-card__icon { background: linear-gradient(135deg, #3a3f4b, #20242b); }
.role-card__top h3 { font-size: 22px; }
.role-card__top p { font-size: 14px; color: var(--color-text-secondary); }
.role-card .link-arrow { margin-top: auto; }

.check-list { list-style: none; margin: 18px 0 26px; display: grid; gap: 11px; }
.check-list li { display: flex; gap: 10px; font-size: 15px; }
.check-list svg { flex: none; margin-top: 4px; color: var(--color-success); }

/* 文章卡片 */
.article-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.article-card__cover { aspect-ratio: 16 / 9; border-radius: 0; }
.article-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.article-card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.article-card__meta time { font-size: 13px; color: var(--color-text-placeholder); }
.article-card__body h3 { font-size: 18px; }
.article-card__body h3 a { color: var(--color-text); }
.article-card__body h3 a:hover { color: var(--color-primary); }
.article-card__excerpt {
  margin: 10px 0 18px;
  font-size: 14.5px;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__body .link-arrow { margin-top: auto; font-size: 14px; }

/* 案例卡片 */
.case-card { display: flex; flex-direction: column; padding: 32px; }
.case-card__tag { margin-bottom: 16px; }
.case-card h3 { font-size: 19px; }
.case-card__meta { font-size: 13.5px; color: var(--color-text-placeholder); margin-top: 4px; }
.case-card__quote {
  position: relative;
  margin: 18px 0 22px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: 14.5px;
  color: var(--color-text-secondary);
}
.case-card__quote::before {
  content: "“";
  position: absolute;
  top: -4px; left: 12px;
  font-size: 40px;
  line-height: 1;
  color: var(--color-primary);
  opacity: .25;
}
.case-card .link-arrow { margin-top: auto; }

/* --------------------------------------------------------------------------
   11 统计数字条
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat { padding: 8px 0; }
.stat__num {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}
.stat__num small { font-size: 16px; font-weight: 600; margin-left: 2px; color: var(--color-primary); }
.stat__label { margin-top: 8px; font-size: 14.5px; color: var(--color-text-secondary); }

/* --------------------------------------------------------------------------
   12 图文分栏
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split__media { min-width: 0; }
.split__content h2 { margin-bottom: 16px; }
.split__content > p { color: var(--color-text-secondary); font-size: 16px; }
.split__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* --------------------------------------------------------------------------
   13 词卡组件（教材单元页复用：单词 + 音标 + 词性 + 释义 + 例句 + 记忆提示）
   -------------------------------------------------------------------------- */
.word-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}
.word-card + .word-card { margin-top: 18px; }
.word-card__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}
.word-card__word {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--color-primary-dark);
}
.word-card__phonetic { font-size: 15px; color: var(--color-text-secondary); }
.word-card__pos {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.word-card__def { margin-top: 10px; font-size: 15.5px; }
.word-card__example {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: 14.5px;
}
.word-card__example-en { color: var(--color-text); font-weight: 500; }
.word-card__example-cn { color: var(--color-text-secondary); margin-top: 2px; }
.word-card__tip {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-text-secondary);
}
.word-card__tip svg { flex: none; margin-top: 3px; color: var(--color-success); }
.word-card__tip strong { color: var(--color-success); font-weight: 600; margin-right: 2px; }

/* --------------------------------------------------------------------------
   14 FAQ 手风琴
   -------------------------------------------------------------------------- */
.faq {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item + .faq-item { border-top: 1px solid var(--color-border); }
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 21px 26px;
  border: 0;
  background: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.faq-item__q:hover { color: var(--color-primary); }
.faq-item__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  transition: transform var(--transition-base);
}
.faq-item.is-open .faq-item__icon { transform: rotate(180deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease;
}
.faq-item__a-inner {
  padding: 0 26px 24px;
  font-size: 15px;
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   15 CTA 横幅区块
   -------------------------------------------------------------------------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 60px;
  background: linear-gradient(125deg, var(--color-primary-light) 0%, #f7f9fc 55%, var(--color-blue-light) 100%);
  border: 1px solid #f0dfe4;
  box-shadow: var(--shadow-md);
}
.cta-banner::before,
.cta-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.cta-banner::before { width: 320px; height: 320px; top: -140px; right: -80px; background: rgba(227, 24, 55, .05); }
.cta-banner::after { width: 220px; height: 220px; bottom: -120px; left: -60px; background: rgba(59, 130, 196, .07); }
.cta-banner__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.cta-banner h2 { color: var(--color-text); }
.cta-banner p { margin-top: 16px; color: var(--color-text-secondary); font-size: 16px; }
.cta-banner .check-list li { color: var(--color-text); }
.cta-banner .btn-white { border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }

/* --------------------------------------------------------------------------
   16 表单控件
   状态：父级 .field 加 .has-error 显示错误；提交成功后展示 .form-success
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}
.form-card__title { font-size: 20px; font-weight: 800; }
.form-card__desc { margin-top: 6px; font-size: 14px; color: var(--color-text-secondary); }

.field { margin-top: 18px; }
.field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}
.field__label .req { color: var(--color-danger); margin-left: 2px; }

.input,
.select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.input::placeholder { color: var(--color-text-placeholder); }
.input:focus,
.select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 196, .12);
}

/* 下拉：自定义箭头 */
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235A6577' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

/* 验证码行 */
.captcha-row { display: flex; gap: 12px; }
.captcha-row .input { flex: 1 1 0; min-inline-size: 0; min-block-size: 46px; }
.captcha-row .btn { flex: none; }
.btn.is-counting { border-color: var(--color-border); color: var(--color-text-placeholder); background: var(--color-bg); }

/* 勾选框 */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--color-text-secondary);
  cursor: pointer;
}
.checkbox input {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* 错误态 */
.field__error {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: var(--color-danger);
}
.field.has-error .input,
.field.has-error .select { border-color: var(--color-danger); }
.field.has-error .input:focus { box-shadow: 0 0 0 3px rgba(214, 69, 69, .12); }
.field.has-error .field__error { display: block; }

/* 成功态 */
.form-success {
  padding: 40px 24px;
  text-align: center;
}
.form-success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-success-light);
  color: var(--color-success);
}
.form-success h3 { font-size: 20px; }
.form-success p { margin-top: 8px; font-size: 14.5px; color: var(--color-text-secondary); }

/* --------------------------------------------------------------------------
   17 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  background: #20242b;
  color: #a0aec0;
  font-size: 14.5px;
}
.footer-main { padding: 64px 0 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .75fr .75fr 1.4fr;
  gap: 40px;
}
.footer-brand p { margin-top: 14px; max-width: 300px; line-height: 1.8; }
.footer-brand .logo { color: #fff; }
.footer-title { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer-links { list-style: none; display: grid; gap: 12px; }
.footer-links a { color: #a0aec0; transition: color var(--transition-fast); }
.footer-links a:hover { color: #fff; }

.footer-qr-grid { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-qr-grid figure { margin: 0; width: 128px; flex: none; text-align: center; }
.footer-qr-grid a { display: block; padding: 6px; background: #fff; border-radius: 8px; }
.footer-qr-grid a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.footer-qr-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.footer-qr-grid figcaption { margin-top: 10px; color: #d6e0ec; font-size: 13px; }
.footer-follow__tip { margin-top: 12px; font-size: 13px; }
.footer-registration { color: inherit; }
.footer-registration:hover, .footer-registration:focus-visible { color: #fff; text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
}
.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13px;
  color: #718096;
}
.footer-bottom__links { display: flex; gap: 20px; }
.footer-bottom__links a { color: #718096; }
.footer-bottom__links a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   18 固定 CTA 与返回顶部
   -------------------------------------------------------------------------- */
.float-cta {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.float-cta .btn { box-shadow: var(--shadow-md); }
.float-cta .btn-outline { background: #fff; }

.back-top {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: #fff;
  color: var(--color-text-secondary);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity var(--transition-base), transform var(--transition-base), color var(--transition-fast);
}
.back-top:hover { color: var(--color-primary); }
.back-top.is-show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* 移动端底部固定条（默认隐藏） */
.mobile-cta-bar { display: none; }

/* --------------------------------------------------------------------------
   19 占位图 .ph-img —— 全站所有占位图 / 二维码统一使用
   用法：<div class="ph-img"><span class="ph-img__label">说明文字</span></div>
   变体：--soft 浅底 / --warm 暖色 / --dashed 虚线框（二维码等）
   -------------------------------------------------------------------------- */
.ph-img {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #dcebf8 0%, #fbd9de 100%);
  color: var(--color-text-secondary);
}
.ph-img--soft { background: linear-gradient(135deg, #fbd9de 0%, #fdf2f4 100%); color: var(--color-primary); }
.ph-img--warm { background: linear-gradient(135deg, #dbe9f6 0%, #edf5fc 100%); color: var(--color-blue-dark); }
/* 常用宽高比变体 */
.ph-img--r16x10 { aspect-ratio: 16 / 10; }
.ph-img--dashed {
  background: #fff;
  border: 1.5px dashed #cbd5e0;
  color: var(--color-text-secondary);
}
.ph-img__label {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(19, 28, 56, .48);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ph-img--soft .ph-img__label { background: rgba(59, 130, 196, .14); color: var(--color-primary-dark); }
.ph-img--dashed .ph-img__label {
  position: static;
  transform: none;
  background: none;
  backdrop-filter: none;
  color: var(--color-text-placeholder);
  white-space: normal;
  padding: 0 14px;
}

/* --------------------------------------------------------------------------
   20 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav-desktop, .header-actions { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
}
@media (max-width: 992px) {
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }

  .nav-desktop { display: none; }
  .header-actions { display: none; }
  .nav-toggle { display: block; margin-left: auto; }

  .hero { padding: 56px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__sub { max-width: none; }
  .hero-panel { min-height: 380px; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split__media { order: -1; }

  .cta-banner { padding: 44px 32px; }
  .cta-banner__grid { grid-template-columns: 1fr; gap: 36px; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }

  .trust-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { padding: 18px 12px; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n + 3) { border-top: 1px solid var(--color-border); }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .stat__num { font-size: 34px; }

  .role-card { padding: 28px; }

  /* 固定 CTA：桌面浮动组隐藏，启用底部固定条 */
  .float-cta { display: none; }
  body { padding-bottom: 68px; }
  .mobile-cta-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--color-border);
    backdrop-filter: blur(8px);
  }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  .container { padding-inline: 18px; }

  .grid-2 { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1; }
  .hero-chip--a { top: 24px; left: 14px; }
  .hero-chip--b { right: 12px; bottom: 64px; }

  .cta-banner { padding: 36px 22px; border-radius: 18px; }
  .card--padded { padding: 32px 22px; }
  .form-card { padding: 26px 20px; }
  .captcha-row { flex-direction: column; }
  .captcha-row .input { flex: none; }
  .captcha-row .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-main { padding: 48px 0 36px; }
  .footer-bottom__inner { justify-content: center; text-align: center; }
}
