/* ==========================================================================
   澎湃引力 · 儿童艺术教育 官网样式
   主色：靛蓝 #2A3D8F / 珊瑚橙 #FF7A59 / 暖黄 #FFC24B / 米白 #FDFBF7
   ========================================================================== */

:root {
  --primary: #2A3D8F;
  --primary-dark: #1D2B66;
  --primary-light: #EEF1FB;
  --accent: #FF7A59;
  --accent-dark: #E85F3D;
  --accent2: #FFC24B;
  --bg: #FDFBF7;
  --white: #FFFFFF;
  --text: #2B2F3A;
  --text-light: #6B7280;
  --border: #E8E4DA;
  --shadow: 0 8px 30px rgba(30, 34, 90, 0.08);
  --shadow-lg: 0 16px 48px rgba(30, 34, 90, 0.16);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, #5B6FD6 60%, var(--accent) 130%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 20px;
  letter-spacing: -1px;
}
.logo-text { line-height: 1.25; }
.logo-text .cn { font-size: 20px; font-weight: 700; color: var(--primary-dark); letter-spacing: 2px; }
.logo-text .en { font-size: 11px; color: var(--text-light); letter-spacing: 1.5px; text-transform: uppercase; }

.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--text);
  transition: all 0.25s ease;
}
.nav-links a:hover { background: var(--primary-light); color: var(--primary); }
.nav-links a.active { background: var(--primary); color: #fff; }

.nav-cta {
  margin-left: 12px;
  padding: 9px 22px !important;
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

.menu-toggle { display: none; border: none; background: none; cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 26px; height: 26px; stroke: var(--primary-dark); }

/* ---------------- Banner 轮播 ---------------- */
.banner {
  position: relative;
  overflow: hidden;
  height: 560px;
  background: var(--primary-dark);
}
.banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.banner-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
}
.banner-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.banner-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 26, 66, 0.72) 0%, rgba(20, 26, 66, 0.35) 45%, rgba(20, 26, 66, 0.05) 100%);
}
.banner-caption {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 100%;
  z-index: 2;
  display: flex; flex-direction: column;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.banner-caption .cap-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 194, 75, 0.92);
  color: #5A3E00;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.banner-caption h2 {
  color: #fff;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.3;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
  max-width: 620px;
}
.banner-caption p {
  color: rgba(255,255,255,0.92);
  font-size: 18px;
  margin-top: 14px;
  letter-spacing: 1px;
  max-width: 560px;
}
.banner-caption .cap-btns { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(255, 122, 89, 0.4); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.26); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-line { border: 1.5px solid var(--primary); color: var(--primary); }
.btn-line:hover { background: var(--primary); color: #fff; }

.banner-dots {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
  z-index: 5;
}
.banner-dots button {
  width: 34px; height: 6px;
  border: none; border-radius: 3px;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}
.banner-dots button.on { background: var(--accent2); width: 52px; }

.banner-arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px; height: 46px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s;
  backdrop-filter: blur(4px);
}
.banner-arrow:hover { background: var(--accent); }
.banner-arrow svg { width: 20px; height: 20px; }
.banner-arrow.prev { left: 22px; }
.banner-arrow.next { right: 22px; }

/* ---------------- 通用区块 ---------------- */
.section { padding: 88px 0; }
.section.alt { background: var(--white); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.sec-head .kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 10px;
}
.sec-head h2 { font-size: 34px; font-weight: 700; color: var(--primary-dark); letter-spacing: 2px; }
.sec-head .line {
  width: 56px; height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  margin: 18px auto 0;
}
.sec-head p { color: var(--text-light); margin-top: 18px; font-size: 16px; }

/* ---------------- 关于简介条 ---------------- */
.about-strip { display: flex; gap: 56px; align-items: center; }
.about-strip .pic {
  flex: 0 0 46%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-strip .pic img { width: 100%; height: 420px; object-fit: cover; transition: transform 0.6s ease; }
.about-strip .pic:hover img { transform: scale(1.04); }
.about-strip .txt h3 { font-size: 28px; color: var(--primary-dark); letter-spacing: 1px; margin-bottom: 18px; }
.about-strip .txt p { color: var(--text-light); font-size: 15.5px; margin-bottom: 14px; text-align: justify; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.stat { text-align: center; padding: 18px 8px; background: var(--primary-light); border-radius: 12px; }
.stat b { display: block; font-size: 26px; color: var(--primary); }
.stat span { font-size: 13px; color: var(--text-light); }

/* ---------------- 课程卡片列表 ---------------- */
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  border: 1px solid var(--border);
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-card .pic { flex: 0 0 42%; position: relative; overflow: hidden; }
.course-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; min-height: 240px; }
.course-card:hover .pic img { transform: scale(1.06); }
.course-card .tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 1px;
}
.course-card .info { flex: 1; padding: 26px 26px 22px; display: flex; flex-direction: column; }
.course-card h3 { font-size: 20px; color: var(--primary-dark); margin-bottom: 6px; letter-spacing: 1px; }
.course-card .meta { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.course-card .meta span { margin-right: 14px; }
.course-card .desc {
  color: var(--text-light);
  font-size: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: justify;
}
.course-card .foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.course-card .price { color: var(--accent); font-size: 22px; font-weight: 700; }
.course-card .price small { font-size: 13px; font-weight: 400; color: var(--text-light); }
.course-card .go {
  font-size: 14px; font-weight: 600; color: var(--primary);
  display: inline-flex; align-items: center; gap: 4px;
}
.course-card .go svg { width: 16px; height: 16px; transition: transform 0.25s; }
.course-card:hover .go svg { transform: translateX(4px); }

/* ---------------- 课程信息服务卡片 ---------------- */
.pv-box {
  position: relative;
  margin-top: 14px;
  background: #F6F8FD;
  border: 1px solid #E6EBF7;
  border-radius: 12px;
  padding: 13px 15px 12px;
}
.pv-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--primary-dark);
}
.pv-lab {
  flex: none; padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
}
.pv-lab.free { background: #E7F6EE; color: #1E9E6A; }
.pv-body { position: relative; margin-top: 9px; }
.pv-list { list-style: none; margin: 0; padding: 0; }
.pv-list li {
  position: relative; padding-left: 17px;
  font-size: 12.8px; line-height: 1.8; color: var(--text-light);
}
.pv-list li::before {
  content: ""; position: absolute; left: 1px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
}
.pv-list li.pv-open { color: #4A5468; }
.pv-list li.pv-open::before { background: #1E9E6A; }
.pv-list li.pv-lock { color: #A3AABD; filter: blur(3.2px); user-select: none; }
.pv-list li.pv-lock::before { background: #C6CBD9; }
.pv-fade {
  position: absolute; left: 0; right: 0; bottom: -2px; height: 46px;
  background: linear-gradient(180deg, rgba(246,248,253,0) 0%, rgba(246,248,253,.75) 55%, #F6F8FD 100%);
  pointer-events: none;
}
.pv-tip {
  margin-top: 9px; padding-top: 9px; border-top: 1px dashed #DDE3F2;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #98A0B4;
}
.pv-tip svg { width: 14px; height: 14px; flex: none; }
.info-card .unlock-btn {
  margin-top: 14px; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 14px; border: none; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #FF7A59, #FF9A6B);
  box-shadow: 0 6px 16px rgba(255, 122, 89, .26);
  transition: transform .25s, box-shadow .25s;
}
.info-card .unlock-btn svg { width: 16px; height: 16px; transition: transform .25s; }
.info-card .unlock-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255,122,89,.36); }
.info-card .unlock-btn:hover svg { transform: translateX(4px); }
.info-card .card-note { margin-top: 9px; font-size: 11.5px; color: #A0A8BB; text-align: center; }

/* ---------------- 信息服务说明条 ---------------- */
.svc-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 36px; }
.svc-cell {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px; display: flex; align-items: flex-start; gap: 12px;
}
.svc-cell .lab { flex: none; padding: 3px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 700; }
.svc-cell .lab.free { background: #E7F6EE; color: #1E9E6A; }
.svc-cell .lab.pay { background: #FFF0E8; color: #E8612F; }
.svc-cell .lab.upd { background: #EAF0FF; color: #2A3D8F; }
.svc-cell b { display: block; font-size: 14.5px; color: #22293A; margin-bottom: 4px; }
.svc-cell em { display: block; font-style: normal; font-size: 12.5px; color: #8A92A6; line-height: 1.65; }

/* ---------------- 详情页解锁提示 ---------------- */
.unlock-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; margin: 0 0 24px;
  background: #E7F6EE; border: 1px solid #BFE6D1; border-radius: 10px;
  color: #177A52; font-size: 13px;
}
.unlock-bar svg { width: 18px; height: 18px; flex: none; }
.side-row b.ok { color: #1E9E6A; }
.fee-label { margin-top: 6px; font-size: 12.5px; color: var(--text-light); }

/* ---------------- 知识付费文章卡片 ---------------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.article-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column; cursor: pointer;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.article-card .pic { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.article-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.article-card:hover .pic img { transform: scale(1.06); }
.article-card .cat {
  position: absolute; left: 14px; top: 14px;
  padding: 4px 11px; border-radius: 20px;
  background: rgba(42, 61, 143, .92); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .5px;
}
.article-card .tag {
  position: absolute; right: 14px; top: 14px;
  padding: 4px 11px; border-radius: 20px;
  background: rgba(255, 255, 255, .94); color: var(--accent);
  font-size: 12px; font-weight: 700;
}
.article-card .info { flex: 1; padding: 20px 20px 18px; display: flex; flex-direction: column; }
.article-card h3 { font-size: 17.5px; line-height: 1.5; color: var(--primary-dark); margin-bottom: 8px; }
.article-card .ameta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #9AA2B5; margin-bottom: 10px; }
.article-card .desc {
  color: var(--text-light); font-size: 13.5px; line-height: 1.75; text-align: justify;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card .pv-box { margin-top: 12px; }
.article-card .pv-list li { font-size: 12.5px; }
.article-card .unlock-btn { justify-content: space-between; }
.article-card .unlock-btn em {
  font-style: normal; font-size: 15px; font-weight: 700;
  padding: 2px 10px; border-radius: 20px;
  background: rgba(255, 255, 255, .22);
}

/* ---------------- 板块底部更多按钮 ---------------- */
.sec-more { text-align: center; margin-top: 38px; }

/* ---------------- 文章详情 ---------------- */
.art-cat {
  display: inline-block; padding: 4px 11px; border-radius: 20px;
  background: #EAF0FF; color: var(--primary);
  font-size: 12.5px; font-weight: 600; margin-bottom: 10px;
}
.art-meta { font-size: 13px; color: #9AA2B5; margin-bottom: 14px; }
.art-sec { margin-bottom: 26px; }
.art-sec h4 {
  font-size: 16px; color: var(--primary-dark); margin: 0 0 10px;
  padding-left: 12px; border-left: 3px solid var(--accent); line-height: 1.4;
}
.art-sec p {
  color: var(--text-light); font-size: 15px; line-height: 1.95;
  margin-bottom: 12px; text-align: justify;
}

.list-style-rows { display: flex; flex-direction: column; gap: 20px; }

/* ---------------- 好物商品卡片 ---------------- */
.goods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.goods-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.goods-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.goods-card .pic { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.goods-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.goods-card:hover .pic img { transform: scale(1.06); }
.goods-card .tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 1px;
}
.goods-card .info { flex: 1; padding: 22px 22px 18px; display: flex; flex-direction: column; }
.goods-card h3 { font-size: 18px; color: var(--primary-dark); margin-bottom: 8px; letter-spacing: 0.5px; }
.goods-card .desc {
  color: var(--text-light);
  font-size: 13.5px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: justify;
}
.goods-card .foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.goods-card .price { color: var(--accent); font-size: 24px; font-weight: 700; }
.goods-card .price small { font-size: 13px; font-weight: 400; }
.goods-card .price del { font-size: 13px; font-weight: 400; color: var(--text-light); margin-left: 8px; opacity: 0.75; }
.goods-card .go {
  font-size: 14px; font-weight: 600; color: var(--primary);
  display: inline-flex; align-items: center; gap: 4px;
}
.goods-card .go svg { width: 16px; height: 16px; transition: transform 0.25s; }
.goods-card:hover .go svg { transform: translateX(4px); }

/* ---------------- 特色网格 ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 26px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature .ico {
  width: 68px; height: 68px;
  margin: 0 auto 20px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
}
.feature .ico svg { width: 34px; height: 34px; }
.feature h3 { font-size: 18px; color: var(--primary-dark); margin-bottom: 10px; letter-spacing: 1px; }
.feature p { font-size: 14px; color: var(--text-light); }
.ico-c1 { background: #FFF0EC; } .ico-c2 { background: #EBF4FF; }
.ico-c3 { background: #FFF7E3; } .ico-c4 { background: #EAF8F1; }

/* ---------------- CTA 横幅 ---------------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 55%, #5B6FD6 100%);
  border-radius: 20px;
  padding: 60px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255, 194, 75, 0.18);
}
.cta-band::after {
  content: "";
  position: absolute; right: 90px; bottom: -90px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255, 122, 89, 0.16);
}
.cta-band h3 { font-size: 28px; letter-spacing: 2px; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 15px; }
.cta-band .btn { position: relative; z-index: 2; }

/* ---------------- 支付弹框 ---------------- */
.pay-mask {
  position: fixed; inset: 0;
  background: rgba(18, 22, 48, 0.62);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}
.pay-mask.show { display: flex; opacity: 1; }
.pay-dialog {
  width: 400px; max-width: 100%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s;
}
.pay-mask.show .pay-dialog { transform: translateY(0) scale(1); }
.pay-head {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 22px 26px;
  position: relative;
}
.pay-head h4 { font-size: 18px; letter-spacing: 1px; }
.pay-head .amount { font-size: 26px; font-weight: 700; color: var(--accent2); margin-top: 4px; }
.pay-head .amount small { font-size: 13px; color: rgba(255,255,255,0.75); font-weight: 400; margin-left: 6px; }
.pay-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #fff; font-size: 17px;
  cursor: pointer; line-height: 1;
  transition: all 0.2s;
}
.pay-close:hover { background: var(--accent); }

.pay-tabs { display: flex; border-bottom: 1px solid var(--border); }
.pay-tabs button {
  flex: 1;
  padding: 15px 0 13px;
  border: none; background: none;
  font-size: 15px; font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pay-tabs button svg { width: 20px; height: 20px; }
.pay-tabs button.on { color: var(--primary); }
.pay-tabs button.on::after {
  content: "";
  position: absolute; left: 28%; right: 28%; bottom: -1px;
  height: 3px; border-radius: 2px;
  background: var(--primary);
}
.pay-body { padding: 26px 26px 20px; text-align: center; }
.pay-body .qr-wrap {
  width: 208px; height: 208px;
  margin: 0 auto 14px;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: 14px;
}
.pay-body .qr-wrap img { width: 100%; height: 100%; }
.pay-body .tip { font-size: 14px; color: var(--text); font-weight: 600; letter-spacing: 1px; }
.pay-body .sub { font-size: 12.5px; color: var(--text-light); margin-top: 4px; }
.pay-foot { padding: 16px 26px 22px; text-align: center; }
.pay-skip {
  border: none; background: none;
  color: var(--primary);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
.pay-skip:hover { color: var(--accent); }
.pay-skip svg { width: 15px; height: 15px; }

/* ---------------- 页头横幅（内页） ---------------- */
.page-hero {
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 60%, #5B6FD6 100%);
  color: #fff;
  padding: 76px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; left: -80px; bottom: -120px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,194,75,0.12);
}
.page-hero::after {
  content: "";
  position: absolute; right: -60px; top: -80px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255,122,89,0.14);
}
.page-hero .kicker { color: var(--accent2); font-size: 14px; letter-spacing: 5px; font-weight: 600; }
.page-hero h1 { font-size: 38px; letter-spacing: 3px; margin: 12px 0 14px; position: relative; z-index: 1; }
.page-hero p { color: rgba(255,255,255,0.82); font-size: 16px; max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.crumb { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,0.65); position: relative; z-index: 1; }
.crumb a:hover { color: var(--accent2); }

/* ---------------- 详情页 ---------------- */
.detail-wrap { display: flex; gap: 40px; align-items: flex-start; }
.detail-main { flex: 1; min-width: 0; }
.detail-main .hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 34px;
}
.detail-main .hero-img img { width: 100%; height: 420px; object-fit: cover; }
.detail-main h2 { font-size: 30px; color: var(--primary-dark); letter-spacing: 1px; margin-bottom: 8px; }
.detail-main .lead { color: var(--text-light); font-size: 16px; margin-bottom: 28px; }
.detail-sec { margin-bottom: 34px; }
.detail-sec h3 {
  font-size: 21px; color: var(--primary-dark);
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.detail-sec p { color: var(--text-light); font-size: 15.5px; margin-bottom: 12px; text-align: justify; }
.detail-sec ol, .detail-sec ul { padding-left: 4px; }
.detail-sec li { color: var(--text-light); font-size: 15px; margin-bottom: 10px; padding-left: 26px; position: relative; }
.detail-sec ol { counter-reset: item; list-style: none; }
.detail-sec ol li { counter-increment: item; }
.detail-sec ol li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute; left: 0; top: 3px;
  font-size: 13px; font-weight: 700;
  color: var(--accent);
}
.detail-sec ul li::before {
  content: "";
  position: absolute; left: 6px; top: 11px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent2);
}

.detail-side {
  flex: 0 0 320px;
  position: sticky;
  top: 96px;
}
.side-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 22px;
}
.side-card h4 { font-size: 19px; color: var(--primary-dark); margin-bottom: 18px; }
.side-row { display: flex; justify-content: space-between; font-size: 14px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.side-row:last-child { border-bottom: none; }
.side-row span { color: var(--text-light); }
.side-row b { color: var(--text); font-weight: 600; }
.side-price { text-align: center; margin: 6px 0 16px; }
.side-price b { font-size: 32px; color: var(--accent); }
.side-price span { font-size: 13px; color: var(--text-light); display: block; }
.side-card .btn { width: 100%; text-align: center; }

/* ---------------- 关于我们 ---------------- */
.timeline { position: relative; max-width: 780px; margin: 0 auto; }
.timeline::before {
  content: "";
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; margin-left: -1px;
  background: var(--border);
}
.tl-item { position: relative; width: 50%; padding: 0 40px 44px 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 44px 40px; }
.tl-item .dot {
  position: absolute; top: 6px; right: -8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(255,122,89,0.25);
}
.tl-item:nth-child(even) .dot { right: auto; left: -8px; }
.tl-item .year { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.tl-item h4 { font-size: 16px; color: var(--primary-dark); margin-bottom: 6px; }
.tl-item p { font-size: 14px; color: var(--text-light); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 28px;
  text-align: center;
}
.contact-card .ico {
  width: 58px; height: 58px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
}
.contact-card .ico svg { width: 28px; height: 28px; }
.contact-card h4 { font-size: 17px; color: var(--primary-dark); margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--text-light); }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value-card {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
}
.value-card .num { font-size: 34px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.value-card h4 { font-size: 18px; color: var(--primary-dark); margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--text-light); }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #171D3D; color: rgba(255,255,255,0.78); padding: 64px 0 0; margin-top: 0; }
.footer-top { display: flex; justify-content: space-between; gap: 50px; flex-wrap: wrap; padding-bottom: 44px; }
.footer-brand .logo-text .cn { color: #fff; }
.footer-brand .logo-text .en { color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 13.5px; margin-top: 16px; max-width: 340px; line-height: 1.9; }
.footer-col h5 { color: #fff; font-size: 15px; letter-spacing: 2px; margin-bottom: 18px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13.5px; color: rgba(255,255,255,0.66); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent2); }
.footer-col .txt { font-size: 13.5px; color: rgba(255,255,255,0.66); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--accent2); }
.footer-bottom p + p { margin-top: 6px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .course-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .goods-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .about-strip { flex-direction: column; }
  .about-strip .pic { flex: none; width: 100%; }
  .detail-wrap { flex-direction: column; }
  .detail-side { flex: none; width: 100%; position: static; }
  .contact-grid, .value-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .svc-band { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .banner { height: 420px; }
  .banner-caption h2 { font-size: 30px; }
  .banner-caption p { font-size: 15px; }
  .banner-arrow { display: none; }
  .section { padding: 60px 0; }
  .sec-head h2 { font-size: 26px; }
  .feature-grid { grid-template-columns: 1fr; }
  .goods-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 44px 30px; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 18px 24px 24px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    gap: 6px;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .course-card { flex-direction: column; }
  .course-card .pic img { min-height: 200px; }
  .page-hero h1 { font-size: 28px; }
  .timeline::before { left: 8px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 36px 36px; }
  .tl-item .dot, .tl-item:nth-child(even) .dot { left: 1px; right: auto; }
}

/* ==========================================================================
   滚动进入动画（Scroll Reveal）
   js-anim 类由脚本添加；无 JS 或老旧浏览器时内容正常显示不隐藏
   ========================================================================== */
html.js-anim .reveal,
html.js-anim .stagger > * {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
html.js-anim .reveal.reveal-left { transform: translateX(-46px); }
html.js-anim .reveal.reveal-right { transform: translateX(46px); }
html.js-anim .reveal.reveal-zoom { transform: scale(0.92); }
html.js-anim .reveal.visible,
html.js-anim .stagger.visible > * {
  opacity: 1;
  transform: none;
}
/* 网格/列表子元素依次错落进场 */
html.js-anim .stagger.visible > :nth-child(2) { transition-delay: 0.1s; }
html.js-anim .stagger.visible > :nth-child(3) { transition-delay: 0.2s; }
html.js-anim .stagger.visible > :nth-child(4) { transition-delay: 0.3s; }
html.js-anim .stagger.visible > :nth-child(5) { transition-delay: 0.4s; }
html.js-anim .stagger.visible > :nth-child(6) { transition-delay: 0.5s; }
html.js-anim .stagger.visible > :nth-child(7) { transition-delay: 0.6s; }
html.js-anim .stagger.visible > :nth-child(8) { transition-delay: 0.7s; }

/* 首屏标题 / 内页页头：页面加载时进场 */
@keyframes capIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.banner-caption .cap-tag,
.banner-caption h2,
.banner-caption p,
.banner-caption .cap-btns,
.page-hero .kicker,
.page-hero h1,
.page-hero p,
.page-hero .crumb {
  animation: capIn 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.banner-caption h2       { animation-delay: 0.12s; }
.banner-caption p        { animation-delay: 0.24s; }
.banner-caption .cap-btns{ animation-delay: 0.36s; }
.page-hero h1            { animation-delay: 0.1s; }
.page-hero p             { animation-delay: 0.22s; }
.page-hero .crumb        { animation-delay: 0.32s; }

/* 尊重系统"减少动态效果"设置 */
@media (prefers-reduced-motion: reduce) {
  html.js-anim .reveal,
  html.js-anim .stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .banner-caption .cap-tag, .banner-caption h2, .banner-caption p, .banner-caption .cap-btns,
  .page-hero .kicker, .page-hero h1, .page-hero p, .page-hero .crumb {
    animation: none;
  }
}
