/* =========================================================
   艾德英语官网 · V2 视觉与交互升级层
   在 site.css 之后加载，同选择器覆盖。
   重点：移动端体验、交互动效、视觉质感
   ========================================================= */

/* ---------------- 0. 设计令牌增强 ---------------- */
:root {
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --grad-primary: linear-gradient(135deg, #C8102E 0%, #a90d27 55%, #d92b43 100%);
  --grad-accent: linear-gradient(135deg, #C8102E 0%, #a90d27 100%);
  --grad-deep: linear-gradient(158deg, #4a0812 0%, #C8102E 58%, #a90d27 100%);

  --ring: 0 0 0 3px rgba(200,16,46,0.18);
  --shadow-card: 0 1px 2px rgba(36,31,30,0.04), 0 8px 24px rgba(36,31,30,0.07);
  --shadow-card-hi: 0 3px 8px rgba(36,31,30,0.07), 0 20px 50px rgba(36,31,30,0.15);

  --mtab-h: 58px;
  --header-h: 72px;
}

/* ---------------- 1. 全局：滚动与入场动效 ---------------- */
html {
  scroll-padding-top: 92px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* 卡片网格错落入场 */
.grid[data-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.66s var(--ease), transform 0.66s var(--ease);
}
.grid[data-stagger].is-in > * {
  opacity: 1;
  transform: none;
}
.grid[data-stagger].is-in > *:nth-child(1) { transition-delay: 0.02s; }
.grid[data-stagger].is-in > *:nth-child(2) { transition-delay: 0.1s; }
.grid[data-stagger].is-in > *:nth-child(3) { transition-delay: 0.18s; }
.grid[data-stagger].is-in > *:nth-child(4) { transition-delay: 0.26s; }
.grid[data-stagger].is-in > *:nth-child(5) { transition-delay: 0.34s; }
.grid[data-stagger].is-in > *:nth-child(6) { transition-delay: 0.42s; }
.grid[data-stagger].is-in > *:nth-child(7) { transition-delay: 0.48s; }
.grid[data-stagger].is-in > *:nth-child(8) { transition-delay: 0.54s; }
.grid[data-stagger].is-in > *:nth-child(9) { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .grid[data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------------- 2. 按钮：更精致的反馈 ---------------- */
.btn {
  position: relative;
  overflow: hidden;
  border-radius: 11px;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.3s var(--ease),
    background 0.28s var(--ease), color 0.2s;
}
.btn-primary {
  background: var(--grad-primary);
  box-shadow: 0 6px 18px rgba(200,16,46,0.24);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(200,16,46,0.32);
}
.btn-outline:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0) scale(0.97);
}
/* 按钮光泽扫过 */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -70%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.34), transparent);
  transform: skewX(-18deg);
  transition: left 0.62s var(--ease);
  pointer-events: none;
}
.btn-primary:hover::after {
  left: 130%;
}

/* ---------------- 3. 头部：吸顶 + 滚动收缩 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 95;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), box-shadow 0.34s var(--ease),
    border-color 0.3s var(--ease);
}
.header-inner {
  min-height: var(--header-h);
  transition: min-height 0.34s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(36,31,30,0.08);
}
.site-header.is-scrolled .header-inner {
  min-height: 60px;
}
.brand-logo {
  transition: transform 0.4s var(--ease-spring);
}
.brand:hover .brand-logo {
  transform: rotate(-6deg) scale(1.06);
}

/* 导航链接：下划线生长 */
.site-nav .nav-list a {
  position: relative;
}
.site-nav .nav-list a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.34s var(--ease);
}
.site-nav .nav-list a:hover::after,
.site-nav .nav-list a.is-active::after {
  transform: scaleX(1);
}

/* ---------------- 4. 抽屉导航（移动端） ---------------- */
@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
    z-index: 5;
  }
  /* 下拉式抽屉：挂在 sticky 头部下沿。
     不能用 position:fixed —— 头部带 backdrop-filter，会成为 fixed 后代的包含块，
     抽屉会被锁进头部高度里（表现就是"点开一片空白"）。改用 absolute，
     包含块正是头部本身，位置与高度都稳。 */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    max-width: none;
    height: calc(100vh - var(--header-h));
    max-height: calc(100vh - var(--header-h));
    padding: 10px 22px 30px;
    background: #fff;
    border-top: 1px solid var(--line-2);
    box-shadow: 0 24px 48px rgba(113,12,27,0.2);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
      visibility 0.28s;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 90;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .site-nav .nav-list {
    display: block;
    gap: 0;
  }
  .site-nav .nav-list li {
    border-bottom: 1px solid var(--line-2);
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  }
  .site-nav.is-open .nav-list li {
    opacity: 1;
    transform: none;
  }
  .site-nav.is-open .nav-list li:nth-child(1) { transition-delay: 0.06s; }
  .site-nav.is-open .nav-list li:nth-child(2) { transition-delay: 0.1s; }
  .site-nav.is-open .nav-list li:nth-child(3) { transition-delay: 0.14s; }
  .site-nav.is-open .nav-list li:nth-child(4) { transition-delay: 0.18s; }
  .site-nav.is-open .nav-list li:nth-child(5) { transition-delay: 0.22s; }
  .site-nav.is-open .nav-list li:nth-child(6) { transition-delay: 0.26s; }
  .site-nav.is-open .nav-list li:nth-child(7) { transition-delay: 0.3s; }
  .site-nav.is-open .nav-list li:nth-child(8) { transition-delay: 0.34s; }
  .site-nav.is-open .nav-list li:nth-child(9) { transition-delay: 0.38s; }
  .site-nav.is-open .nav-list li:nth-child(10) { transition-delay: 0.42s; }
  .site-nav .nav-list a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 32px 15px 16px;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ink);
    border-radius: 8px;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
  }
  /* 右侧细箭头：提示这一行可点，同时把视觉重心收到左边文字上 */
  .site-nav .nav-list a::after {
    content: "";
    position: absolute;
    left: auto;
    right: 14px;
    top: 50%;
    bottom: auto;
    width: 7px;
    height: 7px;
    border: 0;
    border-top: 1.5px solid #CFC7C8;
    border-right: 1.5px solid #CFC7C8;
    border-radius: 0;
    background: none;
    transform: translateY(-50%) rotate(45deg);
    transition: border-color 0.2s var(--ease);
  }
  .site-nav .nav-list a:hover {
    background: #FAF6F6;
  }
  /* 覆盖桌面端"下划线生长"的 transform，否则当前页那行的箭头会被压成一条线 */
  .site-nav .nav-list a:hover::after,
  .site-nav .nav-list a.is-active::after {
    transform: translateY(-50%) rotate(45deg);
    border-color: var(--primary);
  }
  .site-nav .nav-list a.is-active {
    color: var(--primary-2);
    background: #FFF5F6;
    font-weight: 700;
  }
  /* 当前页标识：左侧一条红色竖线（原来是枚孤立的小红点，容易被当成装饰） */
  .site-nav .nav-list a.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 20px;
    border-radius: 0 2px 2px 0;
    background: var(--primary);
    transform: translateY(-50%);
  }
  .site-nav .nav-cta {
    margin-top: 20px;
    width: 100%;
  }
}

/* 遮罩：层级要低于头部(60)，否则会把挂在头部里的抽屉一起蒙住 */
.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(113,12,27,0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.36s var(--ease), visibility 0.36s;
  z-index: 55;
}
.nav-scrim.is-on {
  opacity: 1;
  visibility: visible;
}

/* ---------------- 5. 底部快捷导航（已按需求移除） ---------------- */
.mtab {
  display: none;
}
@media (max-width: 960px) {
  /* 底部快捷导航已下线：页面不再为它留白；回到顶部按钮上移，避免与右下拨号按钮重叠 */
  .to-top {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 84px);
  }
}

/* ---------------- 6. 首页 Hero 升级 ---------------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -220px;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,16,46,0.14), transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -180px;
  bottom: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,16,46,0.12), transparent 68%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero .eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
}
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card-hi);
}
.hero-media img {
  transition: transform 0.9s var(--ease);
}
.hero-media:hover img {
  transform: scale(1.035);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(113,12,27,0.28));
  pointer-events: none;
}

/* 浮动徽标（视觉锚点） */
.hero-badge {
  display: none;
}

/* ---------------- 7. 快速工具宫格 ---------------- */
.quick-tools {
  margin-top: -34px;
  position: relative;
  z-index: 3;
}
.quick-tools-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
}
.qt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 14px 8px;
  border-radius: var(--radius);
  text-align: center;
  transition: background 0.26s var(--ease), transform 0.3s var(--ease-spring);
}
.qt:hover {
  background: var(--primary-soft);
  transform: translateY(-3px);
}
.qt-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(200,16,46,0.22);
  transition: transform 0.34s var(--ease-spring);
}
.qt:hover .qt-ico {
  transform: rotate(-6deg) scale(1.06);
}
.qt-ico .ico {
  width: 23px;
  height: 23px;
}
.qt b {
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 700;
}
/* 注意：必须排除 .qt-ico，否则这条规则会把图标 span 一起压成灰色/隐藏
   （.qt span 的特异度 0,1,1 高于 .qt-ico 的 0,1,0） */
.qt span:not(.qt-ico) {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 680px) {
  .quick-tools {
    margin-top: -22px;
  }
  .quick-tools-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 10px 6px;
    border-radius: 18px;
  }
  .qt {
    gap: 6px;
    padding: 10px 2px;
  }
  .qt-ico {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }
  .qt b {
    font-size: 0.78rem;
  }
  .qt span:not(.qt-ico) {
    display: none;
  }
}

/* ---------------- 8. 卡片体系升级 ---------------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.36s var(--ease), box-shadow 0.36s var(--ease),
    border-color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.42s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hi);
  border-color: #f6d7dd;
}
.card:hover::before {
  transform: scaleX(1);
}

/* 卡片图标动效 */
.card-ico {
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s;
}
.card:hover .card-ico {
  transform: translateY(-2px) rotate(-5deg);
}

/* 文章封面 */
.article-card .article-cover {
  transition: transform 0.8s var(--ease);
}
.article-card:hover .article-cover {
  transform: scale(1.05);
}
.article-card {
  overflow: hidden;
}

/* 教师头像 */
.teacher-avatar {
  transition: transform 0.5s var(--ease-spring), box-shadow 0.4s var(--ease);
}
.teacher-card:hover .teacher-avatar {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(200,16,46,0.2);
}

/* 章节标题装饰 */
.section-head h2 {
  position: relative;
  display: inline-block;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  border-radius: 3px;
  margin: 14px auto 0;
  background: var(--grad-accent);
}
.section-head {
  text-align: center;
}

/* ---------------- 9. 移动端横滑卡片 ---------------- */
@media (max-width: 960px) {
  .grid.grid-3[data-slide] {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -24px;
    padding: 6px 24px 16px;
  }
  .grid.grid-3[data-slide]::-webkit-scrollbar {
    display: none;
  }
  .grid.grid-3[data-slide] > * {
    flex: 0 0 76%;
    max-width: 300px;
    scroll-snap-align: start;
  }
  /* 滑到最后留白 */
  .grid.grid-3[data-slide]::after {
    content: "";
    flex: 0 0 8px;
  }
}

/* 出血量必须跟随 .wrap 的内边距：小屏 .wrap 是 18px，仍用 -24px 会横向溢出 6px */
@media (max-width: 680px) {
  .grid.grid-3[data-slide] {
    margin: 0 -18px;
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* ---------------- 10. FAQ 升级 ---------------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.faq-item[open] {
  border-color: #f6d7dd;
  box-shadow: var(--shadow-card);
}
.faq-item summary {
  transition: background 0.24s var(--ease), color 0.24s var(--ease);
}
.faq-item summary:hover {
  background: var(--primary-soft);
}
.faq-arrow {
  transition: transform 0.36s var(--ease-spring);
}
.faq-item[open] .faq-arrow {
  transform: rotate(90deg);
}

/* ---------------- 11. 统计数字条 ---------------- */
.stats-bar {
  position: relative;
  overflow: hidden;
}
.stat strong {
  font-variant-numeric: tabular-nums;
}
.stat {
  transition: transform 0.34s var(--ease);
}
.stat:hover {
  transform: translateY(-3px);
}

/* ---------------- 12. 浮动按钮组 ---------------- */
.to-top {
  border-radius: 50%;
  transition: transform 0.3s var(--ease-spring), opacity 0.3s, box-shadow 0.3s;
}
.to-top:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 14px 32px rgba(200,16,46,0.28);
}

/* 移动端浮动咨询 */
.fab-call {
  display: none;
}
@media (max-width: 960px) {
  .fab-call {
    display: grid;
    place-items: center;
    position: fixed;
    right: 16px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--grad-accent);
    color: #fff;
    box-shadow: 0 10px 26px rgba(200,16,46,0.4);
    z-index: 54;
    transition: transform 0.3s var(--ease-spring);
    animation: fabPulse 2.6s var(--ease) infinite;
  }
  .fab-call:active {
    transform: scale(0.92);
  }
  .fab-call .ico {
    width: 23px;
    height: 23px;
  }
}
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(200,16,46,0.4), 0 0 0 0 rgba(200,16,46,0.3); }
  55% { box-shadow: 0 10px 26px rgba(200,16,46,0.4), 0 0 0 12px rgba(200,16,46,0); }
}

/* ---------------- 13. 移动端排版与间距精修 ---------------- */
@media (max-width: 680px) {
  .wrap {
    padding: 0 18px;
  }
  body {
    font-size: 15.5px;
  }
  .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .section-head {
    margin-bottom: 22px;
  }
  .section-head h2 {
    font-size: 1.32rem;
  }
  .section-head p {
    font-size: 0.88rem;
  }
  .hero-inner {
    gap: 20px;
  }
  .hero {
    padding: 32px 0 46px;
  }
  .hero-media {
    order: 2;
    border-radius: 16px;
  }
  .hero-media img {
    height: 205px;
    object-fit: cover;
  }
  .hero-media::after {
    background: linear-gradient(200deg, transparent 62%, rgba(113,12,27,0.34));
  }
  .hero h1 {
    font-size: 1.68rem;
    line-height: 1.28;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
  /* 移动端统计条两列 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 8px;
  }
  .card {
    border-radius: 15px;
  }
  /* 页脚在移动端简化留白 */
  .footer-grid {
    gap: 26px;
  }
}

/* 表格/长文在移动端不溢出 */
@media (max-width: 680px) {
  .article-body table,
  .article-body pre {
    display: block;
    overflow-x: auto;
  }
}

/* ---------------- 14. 页面内锚点目录 ---------------- */
.page-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.page-toc a {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: all 0.24s var(--ease);
}
.page-toc a:hover {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* ---------------- 15. 分组筛选胶囊 ---------------- */
.filter-chip {
  transition: all 0.26s var(--ease);
}
.filter-chip:hover {
  transform: translateY(-2px);
}

/* ---------------- 16. 课程卡信息层级 ---------------- */
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 10px 0 12px;
  font-size: 0.8rem;
  color: var(--muted);
}
.course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.course-meta .ico {
  width: 14px;
  height: 14px;
  color: var(--primary-3);
}

/* 桌面端小节拍 */
@media (min-width: 961px) {
  .section {
    padding-top: 62px;
    padding-bottom: 62px;
  }
}

/* ============================================================
   V3 · 真实素材接入：品牌标识 + 大幅教师职业照
   ============================================================ */

/* ---------- 品牌标识（学校真实 logo） ---------- */
.brand { gap: 14px; }
.brand-logo {
  width: auto;
  height: 46px;
  border-radius: 0;
  display: block;
}
.brand-text em {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
@media (max-width: 600px) {
  .brand-logo { height: 38px; }
  .brand-text { display: none; }
}

/* 页脚 logo：深底上用白色承托片 */
.footer-logo {
  width: auto;
  height: 42px;
  background: #fff;
  padding: 6px 11px;
  border-radius: 10px;
  display: block;
}

/* ---------- 教师卡：大幅职业照 ---------- */
.teacher-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.teacher-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #F5F5F5;
}
.teacher-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.7s var(--ease-out);
  display: block;
}
.teacher-card:hover .teacher-photo > img {
  transform: scale(1.05);
}
.teacher-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 66%;
  background: linear-gradient(
    to top,
    rgba(40,4,10,0.94) 0%,
    rgba(40,4,10,0.86) 28%,
    rgba(40,4,10,0.55) 58%,
    transparent 100%
  );
  pointer-events: none;
}
.teacher-id {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px 14px;
  z-index: 2;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}
.teacher-id h3 {
  margin: 0;
  font-size: 1.16rem;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.3;
}
.teacher-id h3 em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
}
.teacher-id .teacher-role {
  display: inline-block;
  margin: 4px 0 0 !important;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  font-size: 0.775rem;
  line-height: 1.5;
  color: #fff !important;
  letter-spacing: 0.02em;
}
.teacher-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.teacher-body .tag-list {
  margin: 0 0 10px;
}
.teacher-body .tag-list li {
  background: var(--primary-soft);
  border-color: #f6d7dd;
  color: var(--primary-2);
}
.teacher-body .teacher-years {
  font-size: 0.775rem !important;
  color: var(--muted-2) !important;
  margin: 0 0 8px !important;
}
.teacher-intro {
  font-size: 0.855rem !important;
  line-height: 1.72;
  color: var(--ink-2) !important;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 师资页：四列排布，一屏看得更多 */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* 只有照片、还没有文字介绍的老师：卡片就是一整张照片，不做成半空的框 */
.teacher-card.is-photo-only .teacher-photo {
  aspect-ratio: auto;
  height: 100%;
  min-height: 340px;
}
.teacher-card.is-photo-only .teacher-photo > img {
  object-position: center 15%;
}
@media (max-width: 1080px) {
  .teachers-grid { grid-template-columns: repeat(3, 1fr); }
  .teacher-card.is-photo-only .teacher-photo { min-height: 300px; }
}
@media (max-width: 760px) {
  .teachers-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .teacher-id { padding: 12px 12px 10px; }
  .teacher-id h3 { font-size: 1rem; }
  .teacher-body { padding: 12px 13px 15px; }
  .teacher-intro { -webkit-line-clamp: 3; font-size: 0.8rem !important; }
}
@media (max-width: 420px) {
  .teachers-grid { grid-template-columns: 1fr; }
  /* 单列时照片压矮一点，别让一张卡占满一屏 */
  .teacher-photo { aspect-ratio: auto; height: 66vw; }
  .teacher-photo > img { object-position: center 10%; }
  .teacher-intro { -webkit-line-clamp: 6; }
}

/* 团队合影 */
.team-figure {
  margin: 34px 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.team-figure img {
  width: 100%;
  display: block;
}
.team-figure figcaption {
  padding: 12px 18px;
  background: var(--bg-alt);
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- 简介页：图文并排 ---------- */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.about-intro-copy .lead {
  margin-bottom: 22px;
}
.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.about-facts li {
  flex: 1 1 110px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
}
.about-facts strong {
  display: block;
  font-size: 1.12rem;
  color: var(--primary);
  line-height: 1.3;
}
.about-facts span {
  font-size: 0.75rem;
  color: var(--muted);
}
.about-cover {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.about-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.about-cover figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(74,8,18,0.72);
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  padding: 5px 13px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
@media (max-width: 900px) {
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .about-cover img { aspect-ratio: 16 / 10; }
}

/* ============================================================
   v2 追加 · 执行手册版（Banner 压暗 / 新组件 / 文档色彩规则）
   ============================================================ */

/* 首页大屏 Banner：背景图压暗，白字可读 */
.hero{ position:relative; overflow:hidden; background:#222222; }
.hero .hero-bg{ position:absolute; inset:0; z-index:0; }
.hero .hero-bg img{
  width:100%; height:100%; object-fit:cover; object-position:center;
  filter:brightness(.42) saturate(.9);
}
.hero .hero-inner{ position:relative; z-index:1; }
.hero .hero-copy .eyebrow,
.hero .hero-desc{ color:rgba(255,255,255,.88); }
.hero .hero-copy h1{ color:#ffffff; }
.hero .hero-points li{ color:rgba(255,255,255,.92); }
.hero .hero-points .ico{ color:#C8102E; }
.hero-centered{ min-height:520px; display:flex; align-items:center; justify-content:center; text-align:center; }
.hero-centered .hero-copy{ max-width:860px; margin:0 auto; }

/* Banner 主副标题（移动端自动缩放） */
.banner-title{ margin:0 0 18px; display:flex; flex-direction:column; gap:8px; }
.banner-title .bt-line1{
  font-size:clamp(30px,5.4vw,54px); font-weight:800; color:#ffffff;
  letter-spacing:.06em; text-shadow:0 2px 18px rgba(0,0,0,.45);
}
.banner-title .bt-line2{
  font-size:clamp(22px,3.6vw,36px); font-weight:700; color:#ffffff;
  letter-spacing:.04em; text-shadow:0 2px 14px rgba(0,0,0,.45);
}
.banner-sub{
  margin:0 0 30px; display:flex; flex-direction:column; gap:6px;
  color:rgba(255,255,255,.92); font-size:clamp(14px,1.6vw,18px); letter-spacing:.05em;
}
.hero-actions-center{ justify-content:center; }
.btn-lg{ padding:14px 34px; font-size:1.05rem; }
.hero-compact{ padding:64px 0 24px; }
.hero-compact .hero-inner{ min-height:auto; padding:40px 0; }

/* 顶部悬浮栏：电话 */
.header-phone{
  display:inline-flex; align-items:center; gap:7px; margin-left:auto; margin-right:18px;
  color:#333333; font-weight:700; font-size:1.02rem; text-decoration:none; white-space:nowrap;
}
.header-phone .ico{ color:#C8102E; }
.header-phone:hover{ color:#C8102E; }
@media (max-width:900px){ .header-phone span{ display:none; } .header-phone{ margin-right:10px; } }

/* 事实卡 / 链接列表 / 占位卡 */
.fact-card{ display:flex; flex-direction:column; gap:8px; padding:20px 22px; }
.fact-card .fact-k{ color:#666666; font-size:.88rem; }
.fact-card .fact-v{ color:#222222; font-size:1.02rem; line-height:1.65; }
.link-list{ list-style:none; margin:0; padding:0; }
.link-list li{ border-bottom:1px solid #e8e8e8; }
.link-list a{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:15px 6px; color:#333333; text-decoration:none;
}
.link-list a:hover{ color:#C8102E; }
.link-list .ico{ color:#C8102E; }
.case-placeholder{ border:2px dashed #d6d6d6; text-align:center; padding:46px 24px; background:#F5F5F5; }
.case-placeholder h3{ color:#222222; margin-bottom:8px; }
.case-placeholder p{ color:#666666; margin:0; }
.muted{ color:#666666; }
.prose-block p{ color:#333333; }

/* 页脚地图 */
.footer-map{ margin-top:14px; border-radius:10px; overflow:hidden; background:#F5F5F5; }

/* 红色使用纪律（文档 1.4）：默认卡片无边框红，hover 才亮红边 */
.card{ border:1px solid transparent; transition:border-color .2s ease, box-shadow .2s ease; }
.card:hover{ border-color:#C8102E; box-shadow:0 10px 28px rgba(200,16,46,.10); }

/* 移动端优先微调 */
@media (max-width:760px){
  .hero-centered{ min-height:420px; }
  .banner-title .bt-line1{ letter-spacing:.03em; }
  .hero-actions{ flex-wrap:wrap; }
}

/* ============================================================
   v2 追加 · 移动端页脚改版（页脚导航不再一列到底）
   之前手机端页脚「快速导航」10 条一列排下来，整块又长又空。
   现在：导航两列排布；联系方式与办学信息并排；整体压缩留白。
   ============================================================ */
@media (max-width: 680px) {
  .site-footer {
    padding: 40px 0 20px;
    font-size: 0.86rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 18px;
  }
  /* 品牌简介通栏 */
  .footer-about {
    grid-column: 1 / -1;
  }
  /* 快速导航两列，去掉半截空白 */
  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
  }
  .footer-links a,
  .footer-contact a {
    display: inline-block;
    padding: 3px 0;
  }
  .footer-col h3 {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: #fff;
  }
  .footer-contact {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .footer-desc {
    font-size: 0.82rem;
    line-height: 1.75;
  }
  .footer-map {
    margin-top: 12px;
    grid-column: 1 / -1;
  }
  .footer-map iframe {
    height: 170px !important;
  }
  .footer-bottom {
    padding-top: 16px;
    font-size: 0.78rem;
  }
}

@media (max-width: 400px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

/* 页脚地图下方导航入口 */
.footer-map-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}
.footer-map-link .ico {
  flex: none;
}
.footer-map-link:hover {
  background: var(--primary-soft);
}

/* 页脚地图：改为通栏，避免挤在窄列里 */
.footer-map-wrap {
  padding-bottom: 28px;
}
.footer-map {
  border-radius: 12px;
  overflow: hidden;
  background: #F5F5F5;
  max-width: 100%;
}
.footer-map iframe {
  display: block;
  width: 100%;
}
@media (max-width: 680px) {
  .footer-map-wrap {
    padding-bottom: 20px;
  }
}
