/* ==========================================================================
   拓野星禾学苑 · 官网样式
   主题：明亮科技风 / 品牌科技绿（浅色版，面向学员更亲和）
   ========================================================================== */

:root {
  --bg: #f3f8f3;
  --bg-2: #e8f0e9;
  --surface: #ffffff;
  --surface-2: #f1f7f1;
  --line: rgba(31, 157, 74, 0.18);
  --line-soft: rgba(20, 45, 28, 0.09);
  --acc: #1f9d4a;
  --acc-2: #4fd97a;
  --acc-bright: #8ef03a;
  --acc-dim: rgba(31, 157, 74, 0.10);
  --txt: #16241c;
  --txt-2: #4f6055;
  --txt-3: #84938a;
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
  --shadow: 0 18px 48px rgba(24, 48, 30, 0.12);
  --shadow-sm: 0 8px 24px rgba(24, 48, 30, 0.08);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(31, 157, 74, 0.18); color: #f3f8f3; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #d8e8d8; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #c3d6c3; }

/* ---------- 通用布局 ---------- */
.container { width: min(1200px, 92%); margin: 0 auto; }

section { position: relative; padding: 110px 0; }

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 3px; color: var(--acc);
  text-transform: uppercase; margin-bottom: 14px;
  font-weight: 700;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--acc); border-radius: 2px; }
.kicker.center-k { justify-content: center; }
.kicker.center-k::after { content: ""; width: 22px; height: 2px; background: var(--acc); border-radius: 2px; }

h2.title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; line-height: 1.25; letter-spacing: 0.5px;
}
.title .grad {
  background: linear-gradient(100deg, #1f9d4a, #4fd97a 55%, #1f9d4a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-desc { margin-top: 16px; color: var(--txt-2); font-size: 16px; max-width: 640px; }
.section-head.center .section-desc { margin-left: auto; margin-right: auto; }

/* ---------- 按钮 ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 34px; border-radius: 999px; border: none;
  font-size: 15px; font-weight: 600; letter-spacing: 1px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
  overflow: hidden; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(120deg, var(--acc-bright), var(--acc-2));
  color: #06301a;
  box-shadow: 0 8px 26px rgba(31, 157, 74, 0.28);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(31, 157, 74, 0.38); }
.btn-ghost {
  background: var(--surface); color: var(--txt);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--acc); color: var(--acc); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(31,157,74,0.14); }
.btn .ripple {
  position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.18);
  transform: scale(0); animation: ripple 0.6s ease-out forwards; pointer-events: none;
}
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* ---------- 预加载层 ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity 0.6s ease, visibility 0.6s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.pre-logo { width: 76px; height: 76px; border-radius: 20px; animation: prePulse 1.4s ease-in-out infinite; box-shadow: 0 0 40px rgba(31,157,74,0.25); }
.pre-bar { width: 180px; height: 3px; background: #e0ebe0; border-radius: 4px; overflow: hidden; }
.pre-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--acc), var(--acc-2)); border-radius: 4px; transition: width 0.25s ease; }
.pre-tip { font-size: 12px; letter-spacing: 4px; color: var(--txt-3); }
@keyframes prePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* ---------- 页面过渡 ---------- */
#page-fade {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  background: var(--bg); opacity: 0; transition: opacity 0.4s ease;
}
#page-fade.on { opacity: 1; pointer-events: auto; }
body.entering { animation: pageIn 0.7s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 8000;
  height: var(--header-h);
  transition: background 0.4s, box-shadow 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 8px 30px rgba(24, 48, 30, 0.06);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: 1px; }
.brand-name em { font-style: normal; color: var(--acc); }
.brand-sub { display: block; font-size: 10px; letter-spacing: 2.5px; color: var(--txt-3); font-weight: 400; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  position: relative; padding: 8px 18px; font-size: 15px; color: var(--txt-2);
  border-radius: 999px; transition: color 0.3s, background 0.3s;
}
.main-nav a:hover { color: var(--txt); }
.main-nav a.active { color: var(--acc); background: var(--acc-dim); }
.main-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px;
  background: var(--acc); border-radius: 2px; transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover::after { width: 40%; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding: 10px 24px; font-size: 14px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--txt); border-radius: 2px; transition: 0.3s var(--ease); }
.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); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; padding: 0;
  display: flex; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(79,217,122,0.14), transparent 55%),
    radial-gradient(100% 80% at 5% 95%, rgba(31,157,74,0.10), transparent 55%),
    var(--bg);
}
#particles {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
}
.hero-glow {
  position: absolute; z-index: 0; border-radius: 50%; filter: blur(90px); pointer-events: none;
  animation: orbFloat 9s ease-in-out infinite alternate;
}
.hero-glow.g1 { width: 520px; height: 520px; top: -140px; right: -120px; background: radial-gradient(circle, rgba(79,217,122,0.20), transparent 65%); }
.hero-glow.g2 { width: 420px; height: 420px; bottom: -120px; left: -100px; background: radial-gradient(circle, rgba(31,157,74,0.16), transparent 65%); animation-delay: -4s; }
@keyframes orbFloat { from { transform: translate(0, 0) scale(1); } to { transform: translate(30px, 24px) scale(1.08); } }

.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(31,157,74,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,157,74,0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: 80px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(31,157,74,0.07);
  font-size: 13px; color: var(--acc); font-weight: 600; letter-spacing: 1px; margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); animation: blink 1.8s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

.hero h1 {
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.18; font-weight: 900; letter-spacing: 1px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #1f9d4a 5%, #4fd97a 50%, #1f9d4a 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(31, 157, 74, 0.15));
}
.hero-slogan {
  margin-top: 18px; font-size: clamp(15px, 1.6vw, 19px); color: var(--txt-2); letter-spacing: 3px;
}
.hero-slogan b { color: var(--txt); font-weight: 600; }

.hero-typeline { margin-top: 14px; font-size: clamp(15px, 1.6vw, 18px); color: var(--acc); min-height: 30px; letter-spacing: 1px; font-weight: 600; }
.hero-typeline .cursor { display: inline-block; width: 2px; height: 1.1em; background: var(--acc); vertical-align: -0.15em; margin-left: 3px; animation: blink 0.9s infinite; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 52px; }
.hero-stats .stat { padding: 0 36px; border-left: 1px solid var(--line-soft); }
.hero-stats .stat:first-child { padding-left: 0; border-left: none; }
.stat-num { font-size: clamp(26px, 3vw, 38px); font-weight: 900; color: var(--acc); font-variant-numeric: tabular-nums; }
.stat-num small { font-size: 0.55em; font-weight: 700; margin-left: 2px; }
.stat-label { font-size: 13px; color: var(--txt-3); margin-top: 2px; letter-spacing: 1px; }

/* hero 视觉卡 */
.hero-visual { position: relative; perspective: 1000px; }
.hero-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(24, 48, 30, 0.12), 0 0 50px rgba(31,157,74,0.05);
  transform: rotateY(-6deg) rotateX(3deg);
  transition: transform 0.5s var(--ease);
  background: var(--surface);
}
.hero-visual:hover .hero-card { transform: rotateY(0) rotateX(0); }
.hero-card img { width: 100%; height: auto; }
.hero-chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 14px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line);
  backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,0.14);
  animation: chipFloat 5s ease-in-out infinite alternate;
}
.hero-chip .ico { color: var(--acc); }
.hero-chip.c1 { top: 22px; left: -26px; }
.hero-chip.c2 { bottom: 60px; right: -20px; animation-delay: -2.5s; }
@keyframes chipFloat { from { transform: translateY(-6px); } to { transform: translateY(8px); } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--txt-3); font-size: 11px; letter-spacing: 3px;
}
.scroll-hint .mouse {
  width: 22px; height: 34px; border: 1.5px solid var(--txt-3); border-radius: 12px; position: relative;
}
.scroll-hint .mouse::after {
  content: ""; position: absolute; top: 6px; left: 50%; width: 3px; height: 7px;
  background: var(--acc); border-radius: 3px; transform: translateX(-50%);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 1; top: 6px; } 70% { opacity: 0; top: 16px; } 100% { opacity: 0; top: 6px; } }

/* ---------- 跑马灯 ---------- */
.marquee {
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  background: rgba(31, 157, 74, 0.04);
  overflow: hidden; padding: 18px 0; white-space: nowrap; position: relative;
}
.marquee-track { display: inline-flex; gap: 64px; animation: marquee 30s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: 15px; letter-spacing: 4px; color: var(--txt-2); display: inline-flex; align-items: center; gap: 64px; }
.marquee-track span i { font-style: normal; color: var(--acc); font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-46px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); transition-delay: var(--d, 0s); }
.reveal-right { opacity: 0; transform: translateX(46px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); transition-delay: var(--d, 0s); }
.reveal-left.in, .reveal-right.in { opacity: 1; transform: none; }
.reveal-zoom { opacity: 0; transform: scale(0.92); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal-zoom.in { opacity: 1; transform: none; }

/* ---------- 课程卡片 ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.course-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.course-card:hover { transform: translateY(-10px); border-color: rgba(31,157,74,0.4); box-shadow: 0 24px 56px rgba(24,48,30,0.1), 0 0 40px rgba(31,157,74,0.05); }
.course-cover { position: relative; overflow: hidden; aspect-ratio: 16 / 9.6; background: #eef3ee; }
.course-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.course-card:hover .course-cover img { transform: scale(1.06); }
.course-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.92); color: var(--acc); border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.course-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.course-body h3 { font-size: 20px; font-weight: 800; line-height: 1.4; }
.course-body h3 a::after { content: ""; position: absolute; inset: 0; }
.course-desc { font-size: 14px; color: var(--txt-2); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.course-meta span {
  font-size: 12px; color: var(--txt-2); padding: 4px 12px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-soft);
}
.course-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 4px; }
.course-price { font-size: 13px; color: var(--txt-3); }
.course-price b { font-size: 24px; color: var(--acc); font-weight: 900; margin-left: 6px; }
.course-price s { margin-right: 10px; }
.course-more { font-size: 13px; color: var(--acc); display: inline-flex; align-items: center; gap: 5px; transition: gap 0.3s; font-weight: 600; }
.course-card:hover .course-more { gap: 10px; }

/* ---------- 优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.adv-item {
  position: relative; padding: 30px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-soft); overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.4s, box-shadow 0.4s;
  box-shadow: var(--shadow-sm);
}
.adv-item::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent);
  transform: scaleX(0); transition: transform 0.5s var(--ease);
}
.adv-item:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--shadow); }
.adv-item:hover::before { transform: scaleX(1); }
.adv-num {
  font-size: 44px; font-weight: 900; line-height: 1; margin-bottom: 14px;
  color: transparent; -webkit-text-stroke: 1px rgba(31,157,74,0.45);
}
.adv-item h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.adv-item p { font-size: 13.5px; color: var(--txt-2); }

/* ---------- 数据带 ---------- */
.stats-band { padding: 84px 0; background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-box { text-align: center; padding: 30px 12px; border-radius: var(--radius); position: relative; }
.stat-box .stat-num { font-size: clamp(34px, 4vw, 52px); }
.stat-box .stat-num em { font-style: normal; font-size: 0.5em; color: var(--acc); margin-left: 4px; }

/* ---------- 轮播 ---------- */
.banner-swipe { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); }
.banner-track { display: flex; transition: transform 0.7s var(--ease); }
.banner-slide { min-width: 100%; position: relative; }
.banner-slide img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.banner-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.banner-dots button { width: 26px; height: 4px; border: none; border-radius: 4px; background: rgba(31,157,74,0.22); transition: 0.3s; }
.banner-dots button.on { background: var(--acc); width: 40px; }
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.88); color: var(--txt); font-size: 18px;
  backdrop-filter: blur(6px); transition: 0.3s; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.banner-arrow:hover { background: var(--acc); color: #fff; border-color: var(--acc); }
.banner-arrow.prev { left: 16px; }
.banner-arrow.next { right: 16px; }

/* ---------- 关于 / 照片 ---------- */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-photos figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); position: relative; box-shadow: var(--shadow-sm); }
.about-photos figure:first-child { grid-column: span 2; }
.about-photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.6s var(--ease); }
.about-photos figure:hover img { transform: scale(1.05); }

.about-points { margin-top: 26px; display: grid; gap: 14px; }
.about-points li { display: flex; gap: 12px; font-size: 15px; color: var(--txt-2); }
.about-points li b { color: var(--txt); font-weight: 600; }
.about-points li::before { content: "◆"; color: var(--acc); font-size: 12px; line-height: 1.9; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, var(--acc), rgba(31,157,74,0.12)); }
.timeline li { position: relative; padding: 0 0 34px 22px; }
.timeline li::before {
  content: ""; position: absolute; left: -31px; top: 8px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--acc); box-shadow: 0 0 12px rgba(31,157,74,0.35);
}
.timeline .t-year { font-size: 15px; font-weight: 800; color: var(--acc); letter-spacing: 1px; }
.timeline p { font-size: 14.5px; color: var(--txt-2); margin-top: 4px; }

/* ---------- 课程详情页 ---------- */
.course-hero { padding: calc(var(--header-h) + 70px) 0 70px; background: linear-gradient(180deg, var(--bg-2), var(--bg)); overflow: hidden; }
.course-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 52px; align-items: center; }
.course-hero-info h1 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 900; line-height: 1.3; }
.course-hero-info .section-desc { margin-top: 18px; }
.course-hero-price { display: flex; align-items: baseline; gap: 16px; margin-top: 28px; }
.course-hero-price .now { font-size: 40px; font-weight: 900; color: var(--acc); }
.course-hero-price .now i { font-style: normal; font-size: 18px; }
.course-hero-price s { color: var(--txt-3); font-size: 16px; }
.course-hero-price .off {
  font-size: 12px; color: #06301a; font-weight: 800; padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(120deg, var(--acc-bright), var(--acc-2));
}
.course-hero-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(24,48,30,0.12); }
.course-hero-media img { width: 100%; }

.detail-section { padding: 80px 0; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card {
  padding: 28px 26px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line-soft); transition: transform 0.4s var(--ease), border-color 0.35s, box-shadow 0.4s;
  box-shadow: var(--shadow-sm);
}
.info-card:hover { transform: translateY(-5px); border-color: var(--line); box-shadow: var(--shadow); }
.info-card .ic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 21px; background: var(--acc-dim); margin-bottom: 16px; }
.info-card h4 { font-size: 16px; margin-bottom: 8px; }
.info-card p, .info-card li { font-size: 13.5px; color: var(--txt-2); }
.info-card ul { display: grid; gap: 6px; }
.info-card li::before { content: "›"; color: var(--acc); margin-right: 7px; font-weight: 700; }

.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; box-shadow: var(--shadow-sm); }
.faq-item.open { border-color: var(--line); box-shadow: var(--shadow); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--txt);
  padding: 20px 24px; font-size: 15.5px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .fi { color: var(--acc); font-size: 20px; transition: transform 0.35s var(--ease); flex-shrink: 0; }
.faq-item.open .fi { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-a p { padding: 0 24px 22px; font-size: 14px; color: var(--txt-2); }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; padding: 96px 0; text-align: center; background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 110%, rgba(31,157,74,0.10), transparent 70%);
}
.cta-band h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 900; position: relative; }
.cta-band p { position: relative; margin: 16px auto 34px; color: var(--txt-2); max-width: 560px; }
.cta-band .btn { position: relative; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contact-card { padding: 34px 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-soft); transition: transform 0.4s var(--ease), border-color 0.35s, box-shadow 0.4s; box-shadow: var(--shadow-sm); }
.contact-card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--shadow); }
.contact-card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--acc-dim); display: flex; align-items: center; justify-content: center; font-size: 23px; margin-bottom: 18px; }
.contact-card h4 { font-size: 17px; margin-bottom: 10px; }
.contact-card p { font-size: 14.5px; color: var(--txt-2); }
.contact-card a:hover { color: var(--acc); }
.qr-card { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.qr-card img { width: 180px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 14px; }

.lead-form { display: grid; gap: 16px; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; padding: 14px 18px; border-radius: 12px; font-size: 14.5px; font-family: inherit;
  background: #ffffff; border: 1px solid var(--line-soft); color: var(--txt);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px rgba(31, 157, 74, 0.14);
}
.lead-form textarea { min-height: 120px; resize: vertical; }
.form-ok { display: none; text-align: center; color: var(--acc); font-weight: 600; padding: 12px; }
.form-ok.show { display: block; animation: pageIn 0.5s var(--ease); }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg-2); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-brand img { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px; }
.footer-brand .brand-name { margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: 13.5px; color: var(--txt-3); max-width: 300px; }
.footer-col h5 { font-size: 15px; margin-bottom: 18px; letter-spacing: 1px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col li { font-size: 13.5px; color: var(--txt-3); transition: color 0.3s, transform 0.3s; }
.footer-col a:hover { color: var(--acc); transform: translateX(4px); }
.footer-bottom { border-top: 1px solid var(--line-soft); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 12.5px; color: var(--txt-3); }

/* ---------- 返回顶部 ---------- */
#backtop {
  position: fixed; right: 26px; bottom: 30px; z-index: 7000;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92); color: var(--acc); font-size: 18px;
  backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: 0.4s var(--ease); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
#backtop.show { opacity: 1; visibility: visible; transform: none; }
#backtop:hover { background: var(--acc); color: #fff; box-shadow: 0 8px 26px rgba(31,157,74,0.35); }

/* ---------- 微客服浮窗 ---------- */
#float-qr {
  position: fixed; right: 26px; bottom: 92px; z-index: 7000;
  width: 54px; height: 54px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--acc); font-size: 10px; cursor: pointer; transition: 0.3s;
  box-shadow: var(--shadow-sm);
}
#float-qr:hover { background: var(--acc); color: #fff; }
#float-qr .fq-panel {
  position: absolute; right: 66px; bottom: 0; width: 190px; padding: 14px;
  border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(24,48,30,0.12); text-align: center;
  opacity: 0; visibility: hidden; transform: translateX(8px); transition: 0.3s var(--ease);
}
#float-qr:hover .fq-panel, #float-qr.show .fq-panel { opacity: 1; visibility: visible; transform: none; }
#float-qr .fq-panel img { width: 100%; border-radius: 10px; }
#float-qr .fq-panel p { font-size: 12px; color: var(--txt-2); margin-top: 8px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-chip.c1 { left: 6px; }
  .hero-chip.c2 { right: 6px; }
  .course-grid, .adv-grid, .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-wrap, .course-hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 76px 0; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 7900;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 18px 5% 26px;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 18px 40px rgba(24,48,30,0.10);
    transform: translateY(-14px); opacity: 0; visibility: hidden; transition: 0.35s var(--ease);
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 13px 16px; font-size: 16px; border-radius: 12px; }
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
  .course-grid, .adv-grid, .detail-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px 0; }
  .hero-stats .stat { padding: 0 22px; }
  .hero-stats .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .banner-slide img { aspect-ratio: 3 / 4; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-photos { gap: 10px; }
  #backtop, #float-qr { right: 16px; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats .stat { padding: 0 16px; }
  .banner-arrow { display: none; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-zoom { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   新增模块：师资团队 / 学员案例
   ========================================================================== */

/* ---------- 师资团队（杂志感人物卡：渐变背景 + 半身像 + 大字水印） ---------- */
.teacher-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.tcard {
  position: relative; background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.4s;
}
.tcard:hover { transform: translateY(-8px); box-shadow: var(--shadow); }

.tcard-visual {
  position: relative; height: 240px; overflow: hidden;
  background: linear-gradient(165deg, #35b566 0%, #1f9d4a 45%, #0e6b30 100%);
}
.tcard-visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(140px 140px at 18% 8%, rgba(255,255,255,0.22), transparent 70%),
    radial-gradient(200px 160px at 88% 100%, rgba(255,255,255,0.10), transparent 70%);
}
.tcard-letter {
  position: absolute; top: -26px; right: -4px; z-index: 1;
  font-size: 118px; font-weight: 900; line-height: 1; letter-spacing: -4px;
  color: rgba(255,255,255,0.2); font-family: Arial, "Segoe UI", sans-serif;
  user-select: none; pointer-events: none;
}
.tcard-photo {
  position: absolute; z-index: 2; bottom: -6px; left: 50%;
  height: 88%; width: auto; max-width: 82%; object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.18));
  transition: transform 0.5s var(--ease);
}
.tcard:hover .tcard-photo { transform: translateX(-50%) scale(1.05); }

.tcard-body { padding: 20px 22px 24px; text-align: left; }
.tcard-body h3 { font-size: 19px; font-weight: 800; letter-spacing: 0.5px; }
.tcard-tag {
  display: inline-block; margin-top: 9px; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--acc); background: var(--acc-dim); border: 1px solid rgba(31,157,74,0.25);
}
.tcard-desc { font-size: 13.5px; color: var(--txt-2); margin-top: 13px; line-height: 1.75; }
.tcard-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, #35b566, #8ef03a);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.tcard:hover .tcard-bar { transform: scaleX(1); }

/* 首页入口双卡 */
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.entry-card {
  position: relative; display: flex; align-items: center; gap: 22px; padding: 34px 32px;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.entry-card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--shadow); }
.entry-ic { width: 64px; height: 64px; border-radius: 18px; background: var(--acc-dim); color: var(--acc); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.entry-card h3 { font-size: 22px; font-weight: 800; }
.entry-card p { font-size: 14px; color: var(--txt-2); margin-top: 6px; }
.entry-card .arrow { margin-left: auto; font-size: 22px; color: var(--acc); transition: transform 0.35s var(--ease); }
.entry-card:hover .arrow { transform: translateX(6px); }
@media (max-width: 768px) { .entry-grid { grid-template-columns: 1fr; } }

/* ---------- 学员案例：标签切换 ---------- */
.cases-tabs {
  display: inline-flex; gap: 6px; padding: 6px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.cases-tabs button {
  padding: 10px 28px; border: none; background: transparent; color: var(--txt-2);
  font-size: 15px; font-weight: 600; border-radius: 999px; transition: 0.3s var(--ease);
  cursor: pointer; font-family: inherit;
}
.cases-tabs button:hover { color: var(--txt); }
.cases-tabs button.active {
  background: linear-gradient(120deg, var(--acc-bright), var(--acc-2));
  color: #06301a; box-shadow: 0 6px 18px rgba(31,157,74,0.28);
}
.cases-filter { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cases-subtabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cases-subtabs button {
  padding: 7px 18px; border: 1px solid var(--line); background: var(--surface); color: var(--txt-2);
  font-size: 14px; font-weight: 600; border-radius: 999px; cursor: pointer; font-family: inherit;
  transition: 0.3s var(--ease);
}
.cases-subtabs button:hover { color: var(--acc); border-color: var(--acc); }
.cases-subtabs button.active { background: var(--acc-dim); color: var(--acc); border-color: transparent; }

/* 图片类：瀑布流（花瓣网风格） */
.masonry { column-count: 3; column-gap: 18px; }
.masonry .work {
  break-inside: avoid; margin-bottom: 18px; position: relative; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}
.masonry .work:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line); }
.masonry .work img { width: 100%; object-fit: cover; display: block; }
.masonry .work .work-cap { padding: 14px 16px; }
.work-cap h4 { font-size: 15px; font-weight: 700; }
.work-cap p { font-size: 12.5px; color: var(--txt-3); margin-top: 4px; }
.masonry .work .zoom-ico {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.9); color: var(--acc); display: flex; align-items: center; justify-content: center;
  font-size: 16px; opacity: 0; transform: scale(0.8); transition: 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}
.masonry .work:hover .zoom-ico { opacity: 1; transform: scale(1); }

/* 视频类：网格 */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}
.video-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--line); }
.video-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(16,30,20,0.12); transition: background 0.3s;
}
.video-card:hover .video-thumb .play { background: rgba(16,30,20,0.02); }
.video-thumb .play .ptn {
  width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center; color: var(--acc); font-size: 22px;
  box-shadow: 0 8px 24px rgba(24,48,30,0.18); transition: 0.3s var(--ease);
}
.video-card:hover .play .ptn { transform: scale(1.08); background: var(--acc); color: #fff; }
.video-body { padding: 18px 20px 22px; }
.video-body h4 { font-size: 16px; font-weight: 700; }
.video-body p { font-size: 13px; color: var(--txt-2); margin-top: 6px; }

/* ---------- 案例详情弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 9500; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(16,30,20,0.5); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-inner {
  position: relative; width: min(880px, 94vw); max-height: 90vh; overflow: auto;
  background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(24,48,30,0.18);
  transform: translateY(20px) scale(0.98); transition: transform 0.4s var(--ease);
}
.modal.open .modal-inner { transform: none; }
#caseModal.modal.play {
  display: block; padding: 0; overflow: auto;
}
#caseModal.modal.play .modal-inner,
#caseModal.modal.play.open .modal-inner {
  position: absolute; top: 15%; left: 50%;
  transform: translateX(-50%);
  margin: 0; width: min(880px, 92vw);
  max-height: 85%; overflow: auto;
}
#caseModal.modal.play .modal-media video {
  width: 100%; max-height: 58vh;
  object-fit: contain; background: #111;
}
.modal.zoom {
  display: block; padding: 0; overflow: auto;
  background: rgba(8, 16, 12, 0.9);
}
#caseModal.modal.zoom .modal-inner,
#caseModal.modal.zoom.open .modal-inner {
  position: absolute; top: 15%; left: 50%;
  transform: translateX(-50%);
  margin: 0; width: auto;
  max-width: min(1080px, calc(100vw - 64px));
  max-height: 75%; overflow: auto;
  background: transparent; border: none; box-shadow: none;
}
.modal.zoom .modal-media { background: transparent; line-height: 0; }
.modal.zoom .modal-media img {
  width: auto; height: auto;
  max-width: min(1080px, calc(100vw - 64px));
  max-height: calc(75vh - 80px);
  object-fit: contain; border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
}
.modal.zoom .modal-body { padding: 14px 8px 0; text-align: center; }
.modal.zoom .modal-body h3 { color: #fff; font-size: 18px; }
.modal.zoom .modal-desc { color: rgba(255,255,255,0.82); }
.modal.zoom .modal-close { position: fixed; top: 16px; right: 16px; }
.modal-media { position: relative; background: #111; }
.modal-media img { width: 100%; display: block; }
.modal-media video { width: 100%; max-height: 70vh; display: none; background: #111; }
.modal-media .modal-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(16,30,20,0.18);
}
.modal-play .ptn { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,0.94); color: var(--acc); font-size: 26px; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(24,48,30,0.22); }
.modal-body { padding: 24px 28px 30px; }
.modal-body h3 { font-size: 22px; font-weight: 800; }
.modal-tag { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--acc); background: var(--acc-dim); padding: 4px 12px; border-radius: 999px; font-weight: 600; }
.modal-body p { margin-top: 14px; color: var(--txt-2); font-size: 15px; line-height: 1.85; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.92); color: #16241c; font-size: 22px; line-height: 1;
  cursor: pointer; z-index: 2; box-shadow: var(--shadow-sm); transition: 0.3s var(--ease);
}
.modal-close:hover { background: var(--acc); color: #fff; }

/* ---------- 新增模块响应式 ---------- */
@media (max-width: 1024px) {
  .teacher-grid { grid-template-columns: repeat(3, 1fr); }
  .masonry { column-count: 2; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .teacher-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry { column-count: 2; }
  .video-grid { grid-template-columns: 1fr; }
  .cases-tabs { display: flex; }
}
@media (max-width: 480px) {
  .teacher-grid { grid-template-columns: 1fr; }
  .masonry { column-count: 1; }
}
