/* ============================
   浙江塔夫教育集团 - 主样式表
   主色调：深蓝 + 橙色
   ============================ */

:root {
  --primary: #0d2b5c;
  --primary-light: #1a4280;
  --primary-dark: #081d3f;
  --accent: #ff7a00;
  --accent-light: #ff9c40;
  --accent-dark: #e06800;
  --bg-light: #f4f6fb;
  --bg-gray: #eef1f6;
  --text-dark: #1a2233;
  --text-body: #4a5568;
  --text-light: #8896ab;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(13, 43, 92, 0.08);
  --shadow-hover: 0 8px 30px rgba(13, 43, 92, 0.15);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --max-width: 1280px;
  --header-height: 72px;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-body);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { border: none; cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ===== Layout ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-lg { padding: 100px 0; }
.text-center { text-align: center; }

/* ===== Section Title ===== */
.sec-title { text-align: center; margin-bottom: 56px; }
.sec-title .en {
  font-size: 14px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 8px; display: block;
}
.sec-title h2 {
  font-size: 36px; color: var(--primary); font-weight: 700; position: relative;
  display: inline-block; padding-bottom: 16px;
}
.sec-title h2::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 50px; height: 4px; background: var(--accent); border-radius: 2px;
}
.sec-title p { margin-top: 16px; color: var(--text-light); font-size: 16px; max-width: 680px; margin-left: auto; margin-right: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 32px; border-radius: var(--radius-sm); font-size: 15px;
  font-weight: 600; transition: all .3s ease; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,122,0,.35); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-dark { background: var(--primary); color: var(--white); }
.btn-dark:hover { background: var(--primary-light); transform: translateY(-2px); }

/* ===== Top Bar ===== */
.topbar {
  background: var(--primary-dark); color: rgba(255,255,255,.75);
  font-size: 13px; height: 40px; display: flex; align-items: center;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.topbar a { color: rgba(255,255,255,.75); transition: color .2s; }
.topbar a:hover { color: var(--accent-light); }
.topbar .tb-left { display: flex; gap: 24px; }
.topbar .tb-right { display: flex; gap: 20px; align-items: center; }
.topbar .tb-right span { display: flex; align-items: center; gap: 6px; }

/* ===== Header / Nav ===== */
.header {
  position: sticky; top: 0; z-index: 1000; background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: box-shadow .3s;
}
.header-inner {
  height: var(--header-height); display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo .logo-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 22px; font-weight: 700; flex-shrink: 0;
}
.logo .logo-text h1 { font-size: 20px; color: var(--primary); font-weight: 700; line-height: 1.2; }
.logo .logo-text span { font-size: 11px; color: var(--text-light); letter-spacing: 2px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 0 14px; height: var(--header-height); font-size: 14px; font-weight: 500;
  color: var(--text-dark); transition: all .25s; position: relative;
  white-space: nowrap;
}
.nav > li > a:hover, .nav > li > a.active { color: var(--accent); }
.nav > li > a.active::after {
  content: ''; position: absolute; bottom: 0; left: 14px; right: 14px; height: 3px;
  background: var(--accent); border-radius: 2px 2px 0 0;
}
.nav .has-dropdown > a::after { content: '▼'; font-size: 7px; margin-left: 6px; color: var(--accent); opacity: .85; transition: transform .25s; }
.nav .has-dropdown:hover > a::after { transform: rotate(180deg); opacity: 1; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: var(--header-height); left: 50%;
  min-width: 200px; background: var(--white);
  border-radius: 0 0 12px 12px; box-shadow: 0 12px 40px rgba(13,43,92,.18);
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px);
  transition: all .3s ease; padding: 8px 0; z-index: 1001;
}
.dropdown::before {
  content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px; background: var(--white);
  box-shadow: -2px -2px 4px rgba(13,43,92,.06);
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown li a {
  display: flex; align-items: center; gap: 8px; padding: 12px 28px; font-size: 14px; color: var(--text-body);
  transition: all .2s; border-left: 3px solid transparent;
}
.dropdown li a:hover { color: var(--accent); background: var(--bg-light); border-left-color: var(--accent); padding-left: 32px; }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--primary); border-radius: 2px; transition: all .3s; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ===== Hero / Carousel ===== */
.hero { position: relative; height: 600px; overflow: hidden; background: var(--primary); }
.carousel { position: relative; width: 100%; height: 100%; }
.carousel-track { display: flex; height: 100%; transition: transform .8s cubic-bezier(.4,0,.2,1); }
.carousel-slide {
  min-width: 100%; height: 100%; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--slide-bg-color, #0d2b5c);
}
/* 当轮播图有上传图片时，图片作为全屏背景；暗色遮罩保证文字可读 */
.carousel-slide.has-image .slide-overlay {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.28) 50%, rgba(0,0,0,.45) 100%);
  pointer-events: none; z-index: 1;
}
.carousel-slide .slide-inner {
  position: relative; z-index: 2;
  width: 100%; padding: 0 40px;
  display: flex; align-items: center; justify-content: center;
  min-height: 100%; text-align: center;
}
.carousel-slide .slide-text { width: 100%; max-width: 820px; text-align: center; }
.carousel-slide h2 {
  font-size: clamp(28px, 3.8vw, 44px); font-weight: 800; color: var(--slide-text-color, #fff); line-height: 1.22; margin-bottom: 18px;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
  opacity: 0; animation: slideUp .8s .3s forwards;
}
.carousel-slide .slide-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 22px;
  text-shadow: 0 1px 10px rgba(0,0,0,.45);
  opacity: 0; animation: slideUp .8s .45s forwards;
}
.carousel-slide .slide-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; background: #fff; color: var(--primary);
  font-size: 14px; font-weight: 700; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.carousel-slide .slide-tag::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0;
}
.carousel-slide .slide-desc {
  font-size: 17px; color: var(--slide-text-color, rgba(255,255,255,.82)); margin: 0 auto 32px; line-height: 1.9; max-width: 540px;
  text-shadow: 0 1px 10px rgba(0,0,0,.45);
  opacity: 0; animation: slideUp .8s .55s forwards;
}
.carousel-slide .slide-btns { display: flex; justify-content: center; gap: 14px; opacity: 0; animation: slideUp .8s .7s forwards; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.carousel-slide .slide-btns .btn-primary {
  background: var(--btn-primary, var(--accent)); border-color: var(--btn-primary, var(--accent)); color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
}
.carousel-slide .slide-btns .btn-primary:hover { filter: brightness(0.92); transform: translateY(-2px); }
.carousel-slide .slide-btns .btn-outline { color: var(--btn-secondary, #fff); border-color: var(--btn-secondary, rgba(255,255,255,.55)); background: transparent; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.carousel-slide .slide-btns .btn-outline:hover { background: var(--btn-secondary, #fff); color: var(--primary); border-color: var(--btn-secondary, #fff); transform: translateY(-2px); }
.carousel-slide .slide-btns .btn-filled { background: var(--btn-secondary, #fff); border: 2px solid var(--btn-secondary, #fff); text-shadow: 0 1px 6px rgba(0,0,0,.25); }
.carousel-slide .slide-btns .btn-filled:hover { filter: brightness(0.92); transform: translateY(-2px); }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

.carousel-btns {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 10;
}
.carousel-btns button {
  width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.35);
  transition: all .3s; border: 2px solid transparent;
}
.carousel-btns button.active { background: var(--accent); width: 36px; border-radius: 6px; }
.carousel-arrow {
  position: absolute; top: 50%; margin-top: -25px;
  width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.12);
  color: #fff; font-size: 32px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; box-sizing: border-box;
  z-index: 10; transition: all .3s; backdrop-filter: blur(4px);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
.carousel-arrow:hover { background: var(--accent); color: #fff; }
/* 箭头以轮播图内容区边线为参考，左右对称分布 */
.carousel-arrow.prev { left: 110px; }
.carousel-arrow.next { right: 110px; }

@media (max-width: 768px) {
  .hero { height: auto; min-height: 520px; }
  .carousel-slide .slide-inner { width: 100%; margin-left: 0; padding: 40px 24px; text-align: center; }
  .carousel-slide .slide-text { text-align: center; max-width: 100%; }
  .carousel-slide h2 { font-size: 30px; }
  .carousel-slide .slide-tags { justify-content: center; }
  .carousel-slide .slide-desc { margin: 0 auto 26px; font-size: 15px; }
  .carousel-slide .slide-btns { justify-content: center; }
  .carousel-slide.has-image .slide-overlay { background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.5) 100%); }
  .carousel-arrow.prev { left: 16px; }
  .carousel-arrow.next { left: auto; right: 16px; }
}

/* ===== Quick Action Bar ===== */
.quick-bar {
  background: var(--white); box-shadow: var(--shadow);
  margin: -40px auto 0; max-width: var(--max-width); position: relative; z-index: 5;
  border-radius: var(--radius); padding: 28px 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.quick-item {
  display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: var(--radius-sm);
  transition: all .3s; cursor: pointer;
}
.quick-item:hover { background: var(--bg-light); transform: translateY(-3px); }
.quick-item .qi-icon {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--white);
}
.quick-item:nth-child(1) .qi-icon { background: linear-gradient(135deg, #ff7a00, #ff9c40); }
.quick-item:nth-child(2) .qi-icon { background: linear-gradient(135deg, #0d2b5c, #1a4280); }
.quick-item:nth-child(3) .qi-icon { background: linear-gradient(135deg, #2d8659, #3aa870); }
.quick-item:nth-child(4) .qi-icon { background: linear-gradient(135deg, #b8444b, #d65a62); }
.quick-item .qi-text h4 { font-size: 16px; color: var(--text-dark); font-weight: 600; }
.quick-item .qi-text p { font-size: 13px; color: var(--text-light); }

/* ===== About Preview ===== */
.about-preview { background: var(--bg-light); }
.about-preview-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-preview-text h2 {
  font-size: 32px; color: var(--primary); font-weight: 700; margin-bottom: 8px;
}
.about-preview-text .en-sub { font-size: 14px; color: var(--accent); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 24px; display: block; }
.about-preview-text p { color: var(--text-body); margin-bottom: 16px; line-height: 2; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px; }
.about-stat .num { font-size: 36px; font-weight: 800; color: var(--accent); line-height: 1; }
.about-stat .label { font-size: 14px; color: var(--text-light); margin-top: 8px; }
.about-preview-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-hover); position: relative; }
.about-preview-img .img-placeholder {
  height: 420px; background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center; position: relative;
}
.about-preview-img .img-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255,122,0,.15), transparent 50%);
}
.about-preview-img .badge {
  position: absolute; bottom: 24px; left: 24px; right: 24px;
  background: rgba(255,255,255,.95); border-radius: var(--radius); padding: 20px;
  backdrop-filter: blur(8px);
}
.about-preview-img .badge h4 { color: var(--primary); font-size: 18px; margin-bottom: 4px; }
.about-preview-img .badge p { font-size: 13px; color: var(--text-light); margin: 0; }

/* ===== Courses Section ===== */
.courses-section { background: var(--white); }
.course-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.course-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: all .4s ease; border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.course-card .cc-img {
  height: 180px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 48px; color: rgba(255,255,255,.9);
}
.course-card .cc-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.3));
}
.course-card .cc-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--accent); color: var(--white); font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 20px;
}
.course-card .cc-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.course-card .cc-body h3 { font-size: 18px; color: var(--text-dark); font-weight: 700; margin-bottom: 8px; }
.course-card .cc-body p { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.course-card .cc-features { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.course-card .cc-features span {
  font-size: 12px; color: var(--primary); background: var(--bg-light);
  padding: 3px 10px; border-radius: 12px;
}
.course-card .cc-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--border); }
.course-card .cc-footer .price { color: var(--accent); font-weight: 700; font-size: 15px; }
.course-card .cc-footer .more { font-size: 13px; color: var(--primary); font-weight: 600; transition: color .2s; }
.course-card .cc-footer .more:hover { color: var(--accent); }

/* Course card gradients */
.cg-1 { background: linear-gradient(135deg, #0d2b5c, #1a4280); }
.cg-2 { background: linear-gradient(135deg, #ff7a00, #ff9c40); }
.cg-3 { background: linear-gradient(135deg, #2d8659, #3aa870); }
.cg-4 { background: linear-gradient(135deg, #6b4c9a, #8b5fbf); }
.cg-4b {
  background: linear-gradient(135deg, rgba(43,88,155,.85), rgba(26,107,140,.85)),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="300" viewBox="0 0 400 300"><rect fill="%231a6b8c" width="400" height="300"/><text x="50%25" y="50%25" font-size="120" text-anchor="middle" dy=".35em" opacity=".15">📚</text></svg>');
  background-size: cover; background-position: center;
}
.cg-5 { background: linear-gradient(135deg, #b8444b, #d65a62); }
.cg-6 { background: linear-gradient(135deg, #1a6b8c, #2a8db5); }
.cg-7 { background: linear-gradient(135deg, #8c6d1a, #c9a227); }

/* 首页招生项目卡片自定义图片 */
.cc-img.has-image {
  background-size: cover;
  background-position: center;
}
.cc-img.has-image::after {
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45));
}
.cc-img .cc-icon {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

/* ===== Advantages Section ===== */
.advantages-section { background: var(--bg-light); }
.adv-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.adv-grid > * { flex: 1 1 calc(33.333% - 16px); }
.adv-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 36px 28px;
  text-align: center; box-shadow: var(--shadow); transition: all .35s ease;
  position: relative; overflow: hidden;
}
.adv-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.adv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.adv-card:hover::before { transform: scaleX(1); }
.adv-card .ac-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  transition: transform .35s;
}
.adv-card:hover .ac-icon { transform: rotate(-5deg) scale(1.1); }
.adv-card h3 { font-size: 18px; color: var(--text-dark); font-weight: 700; margin-bottom: 12px; }
.adv-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== Video Section ===== */
.video-section { background: var(--primary-dark); position: relative; overflow: hidden; }
.video-section::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,0,.1), transparent 70%);
}
.video-section .sec-title h2 { color: var(--white); }
.video-section .sec-title .en { color: var(--accent-light); }
.video-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 20px; height: 460px; }
.video-item {
  border-radius: var(--radius-lg); overflow: hidden; position: relative; cursor: pointer;
  background: var(--primary-light);
}
.video-item.big { grid-row: span 2; }
.video-item img, .video-item .vi-bg {
  width: 100%; height: 100%; object-fit: cover;
}
.video-item .vi-bg {
  background-size: cover; background-position: center;
  transition: transform .5s ease;
}
.video-item:hover .vi-bg { transform: scale(1.08); }
.video-item .vi-overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.7));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
}
.video-item .play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.2);
  backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center;
  transition: all .3s; border: 2px solid rgba(255,255,255,.5);
}
.video-item:hover .play-btn { background: var(--accent); border-color: var(--accent); transform: translate(-50%, -50%) scale(1.15); }
.video-item .play-btn::after {
  content: ''; width: 0; height: 0; border-style: solid; border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent var(--white); margin-left: 4px;
}
.video-item .vi-title { color: var(--white); font-size: 16px; font-weight: 600; }
.video-item .vi-meta { color: rgba(255,255,255,.7); font-size: 13px; margin-top: 4px; }

/* ===== Consultation Form ===== */
.consult-section { background: var(--bg-light); }
.consult-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.consult-info h2 { font-size: 32px; color: var(--primary); font-weight: 700; margin-bottom: 8px; }
.consult-info .en-sub { font-size: 14px; color: var(--accent); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 24px; display: block; }
.consult-info p { color: var(--text-body); margin-bottom: 24px; line-height: 2; }
.consult-contact { display: flex; flex-direction: column; gap: 16px; }
.consult-contact-item { display: flex; align-items: center; gap: 16px; }
.consult-contact-item .cci-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--primary);
  display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 20px; flex-shrink: 0;
}
.consult-contact-item .cci-text h4 { font-size: 14px; color: var(--text-light); font-weight: 500; }
.consult-contact-item .cci-text p { font-size: 18px; color: var(--text-dark); font-weight: 700; margin: 0; }

.consult-form-wrap {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-hover);
}
.consult-form-wrap h3 { font-size: 24px; color: var(--primary); font-weight: 700; margin-bottom: 8px; }
.consult-form-wrap .form-sub { color: var(--text-light); font-size: 14px; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; color: var(--text-dark); font-weight: 600; margin-bottom: 8px; }
.form-group label .req { color: var(--accent); }
.form-control {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--text-dark); transition: all .2s; background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,122,0,.1); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; padding: 14px; font-size: 16px; justify-content: center; }

/* ===== Map Section (Contact) ===== */
.map-section-wrap { padding: 24px 0 32px; }
.map-section { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; min-height: 360px; }
.map-placeholder { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; padding: 28px 20px; text-align: center; min-height: 360px; }
.map-placeholder + .map-placeholder { border-left: 2px solid rgba(255,255,255,.15); }
.map-pin { color: #fff; }
.map-pin .pin-icon { font-size: 30px; margin-bottom: 8px; }
.map-pin h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.map-pin p { font-size: 14px; opacity: .85; margin: 0; }
.map-embed-col { display: flex; flex-direction: column; min-height: 360px; }
.map-embed-col + .map-embed-col { border-left: 2px solid rgba(255,255,255,.15); }
.map-embed-wrap { flex: 1; min-height: 360px; width: 100%; overflow: hidden; }
.map-embed-wrap iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ===== QR Section (Contact) ===== */
.qr-section-wrap { padding: 36px 0 48px; background: var(--bg-light); }
.qr-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; max-width: 1100px; margin: 0 auto; }
.qr-card { background: #fff; border-radius: var(--radius); padding: 18px 14px; text-align: center; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.qr-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.qr-card .qr-img { width: 100%; max-width: 190px; aspect-ratio: 1; overflow: hidden; border-radius: 10px; margin: 0 auto 12px; }
.qr-card .qr-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qr-card h4 { font-size: 14px; color: var(--text-dark); font-weight: 600; margin: 0; }

/* ===== Stats Bar ===== */
.stats-bar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 60px 0; position: relative; overflow: hidden;
}
.stats-bar::before {
  content: ''; position: absolute; bottom: -50px; left: -50px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,0,.15), transparent 70%);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.stat-item { text-align: center; }
.stat-item .stat-num {
  font-size: 48px; font-weight: 800; color: var(--accent); line-height: 1;
  font-family: "DIN Alternate", "Oswald", sans-serif;
}
.stat-item .stat-label { color: rgba(255,255,255,.85); font-size: 16px; margin-top: 12px; }

/* ===== Students / Cases ===== */
.students-section { background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 65%); }
.student-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.student-card {
  background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(13,43,92,.06); border: 1px solid #eef2f7;
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column; text-align: center;
}
.student-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(13,43,92,.12); }

/* 顶部细装饰条 */
.student-card .sc-top-bar {
  height: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary) 55%, var(--accent) 100%);
}

/* 身体区 */
.student-card .sc-body { padding: 22px 18px 18px; display: flex; flex-direction: column; align-items: center; }
.student-card .sc-name-wrap {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  margin-bottom: 10px;
}
.student-card .sc-crown { font-size: 16px; line-height: 1; }
.student-card .sc-body h4 { font-size: 19px; color: var(--text-dark); font-weight: 700; margin: 0; }
.student-card .sc-divider {
  width: 34px; height: 3px; background: #c9302c; border-radius: 2px; margin-bottom: 14px;
}

/* 三行数据 */
.student-card .sc-data { width: 100%; margin-bottom: 14px; }
.student-card .sc-data-row {
  display: flex; justify-content: center; align-items: baseline; gap: 10px;
  font-size: 14px; line-height: 1.95;
}
.student-card .sc-data-row .sc-label { color: var(--text-light); font-weight: 500; min-width: 32px; text-align: right; }
.student-card .sc-data-row .sc-val { color: var(--text-dark); font-weight: 700; min-width: 56px; text-align: left; }
.student-card .sc-data-row .sc-val.accent { color: var(--accent); font-weight: 800; }

/* 录取院校 */
.student-card .sc-college {
  font-size: 13px; color: var(--primary); font-weight: 600; line-height: 1.5;
  padding: 10px 12px; background: #f4f8ff; border-radius: 10px; width: 100%;
}

/* ===== 更多学员卡片（简洁引导） ===== */
.student-card.student-more {
  background: linear-gradient(160deg, #f4f8ff 0%, #e9f0fb 100%);
  border: 2px dashed #c5d5ee; cursor: pointer;
  align-items: center; justify-content: center; padding: 30px 20px;
  transition: transform .3s, border-color .3s, background .3s, box-shadow .3s;
}
.student-card.student-more .sc-more-icon { font-size: 34px; margin-bottom: 10px; line-height: 1; }
.student-card.student-more h3 { font-size: 17px; font-weight: 700; color: var(--primary); margin: 0 0 6px; }
.student-card.student-more p { font-size: 12px; color: var(--text-light); line-height: 1.6; margin: 0 0 14px; }
.student-more .sc-more-cta {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--accent); font-size: 13px; font-weight: 700;
}
.student-more .sc-more-arrow { display: inline-block; transition: transform .3s; }
.student-more:hover {
  transform: translateY(-5px); border-color: var(--accent);
  background: #fff; box-shadow: 0 14px 34px rgba(13,43,92,.12);
}
.student-more:hover .sc-more-arrow { transform: translateX(4px); }

/* ===== Teachers ===== */
.teachers-section { background: var(--bg-light); }
.teacher-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.teacher-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: all .35s; text-align: center;
  cursor: pointer; display: block; text-decoration: none; color: inherit;
}
.teacher-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.teacher-card .tc-img {
  height: 220px; display: flex; align-items: center; justify-content: center;
  font-size: 90px; font-weight: 500; color: rgba(255,255,255,.95); position: relative;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  overflow: hidden;
}
.teacher-card .tc-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.teacher-card .tc-img .tc-exp {
  position: absolute; bottom: 16px; left: 16px;
  background: var(--accent); color: var(--white); font-size: 12px;
  padding: 5px 14px; border-radius: 20px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.teacher-card .tc-body { padding: 22px 20px 24px; }
.teacher-card .tc-body h4 { font-size: 20px; color: var(--text-dark); font-weight: 700; margin-bottom: 6px; }
.teacher-card .tc-body .tc-title { font-size: 14px; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.teacher-card .tc-body p { font-size: 13px; color: var(--text-light); line-height: 1.7; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.teacher-card .tc-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.teacher-card .tc-tags span {
  font-size: 12px; color: var(--primary); background: #f0f4fa;
  padding: 4px 12px; border-radius: 14px;
}
.teacher-card .tc-more {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 18px; padding: 8px 24px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  border: 1.5px solid var(--accent); border-radius: 22px;
  transition: all .3s; text-decoration: none;
}
.teacher-card:hover .tc-more {
  background: var(--accent); color: var(--white);
}
.teacher-card .tc-more span.arrow { transition: transform .3s; display: inline-block; }
.teacher-card:hover .tc-more span.arrow { transform: translateX(4px); }

/* Teacher Cards (legacy alias for dynamic blocks) */
.tea-card { }
.tea-avatar { }
.tea-avatar-placeholder { }
.tea-card h4 { }
.tea-title { }
.tea-bio { }
.tea-tags { }
.tea-tag { }

/* ===== News Section ===== */
.news-section { background: var(--white); padding: 12px 0 50px; }
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.news-featured {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  transition: all .3s; cursor: pointer;
}
.news-featured:hover { box-shadow: var(--shadow-hover); }
.news-featured .nf-img {
  height: 280px; display: flex; align-items: center; justify-content: center;
  font-size: 56px; color: rgba(255,255,255,.8); position: relative;
}
.news-featured .nf-body { padding: 28px; }
.news-featured .nf-date { font-size: 14px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.news-featured .nf-body h3 { font-size: 22px; color: var(--text-dark); font-weight: 700; margin-bottom: 12px; line-height: 1.4; }
.news-featured .nf-body p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item {
  display: flex; gap: 20px; padding: 20px; background: var(--bg-light); border-radius: var(--radius);
  transition: all .3s; cursor: pointer; border-left: 4px solid transparent;
}
.news-item:hover { background: var(--white); box-shadow: var(--shadow); border-left-color: var(--accent); transform: translateX(4px); }
.news-item .ni-date { text-align: center; flex-shrink: 0; width: 60px; }
.news-item .ni-date .day { font-size: 28px; font-weight: 800; color: var(--primary); line-height: 1; }
.news-item .ni-date .month { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.news-item .ni-body { flex: 1; min-width: 0; }
.news-item .ni-body h4 { font-size: 16px; color: var(--text-dark); font-weight: 600; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-item .ni-body p { font-size: 13px; color: var(--text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== FAQ ===== */
.faq-section { background: var(--bg-light); }
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--white); border-radius: var(--radius); margin-bottom: 16px;
  overflow: hidden; box-shadow: var(--shadow); transition: all .3s;
}
.faq-item.active { box-shadow: var(--shadow-hover); }
.faq-item .faq-q {
  padding: 22px 28px; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; font-size: 16px; font-weight: 600; color: var(--text-dark);
  transition: color .2s;
}
.faq-item .faq-q:hover { color: var(--accent); }
.faq-item.active .faq-q { color: var(--accent); border-bottom: 1px solid var(--border); }
.faq-item .faq-q .faq-icon {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .3s; color: var(--accent); flex-shrink: 0; margin-left: 16px;
  border: 1px solid var(--accent); border-radius: 50%;
}
.faq-item .faq-q .faq-icon::before {
  content: ""; display: block; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); margin-top: -2px;
}
.faq-item.active .faq-q .faq-icon { transform: rotate(180deg); }
.faq-item .faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.active .faq-a { max-height: 500px; }
.faq-item .faq-a-inner { padding: 20px 28px; font-size: 14px; color: var(--text-body); line-height: 1.9; }

/* ===== Page Banner ===== */
.page-banner {
  height: 160px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  position: relative; overflow: hidden; text-align: center;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,122,0,.12), transparent 50%);
}
.page-banner::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.page-banner h1 { font-size: 36px; color: var(--white); font-weight: 800; position: relative; z-index: 2; }
.page-banner .breadcrumb { position: relative; z-index: 2; margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.7); }
.page-banner .breadcrumb a { color: rgba(255,255,255,.7); }
.page-banner .breadcrumb a:hover { color: var(--accent-light); }
.page-banner .breadcrumb span { margin: 0 8px; }

/* ===== About Page ===== */
.about-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-intro-text h2 { font-size: 30px; color: var(--primary); font-weight: 700; margin-bottom: 16px; }
.about-intro-text p { color: var(--text-body); margin-bottom: 16px; line-height: 2; }
.about-intro-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-hover); }
.about-intro-img .img-ph {
  height: 380px; background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center; font-size: 80px; color: rgba(255,255,255,.3);
}

.timeline { max-width: 880px; margin: 0 auto; position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before {
  content: ''; position: absolute; left: -36px; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--white); border: 4px solid var(--accent); z-index: 2;
}
.timeline-item .tl-year { font-size: 22px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.timeline-item .tl-content { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.timeline-item .tl-content h4 { font-size: 17px; color: var(--primary); font-weight: 700; margin-bottom: 8px; }
.timeline-item .tl-content p { font-size: 14px; color: var(--text-body); line-height: 1.8; }

/* ===== Values / Culture ===== */
.values-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.values-grid > * { flex: 1 1 calc(33.333% - 16px); }
.value-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px 32px;
  text-align: center; box-shadow: var(--shadow); transition: all .35s;
  border-top: 4px solid transparent;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-top-color: var(--accent); }
.value-card .vc-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.value-card h3 { font-size: 20px; color: var(--text-dark); font-weight: 700; margin-bottom: 12px; }
.value-card p { font-size: 14px; color: var(--text-light); line-height: 1.8; }

/* ===== Campus / Environment ===== */
.campus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.campus-card {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  transition: all .35s; cursor: pointer;
}
.campus-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.campus-card .cc-img {
  height: 240px; display: flex; align-items: center; justify-content: center;
  font-size: 56px; color: rgba(255,255,255,.8);
}
.campus-card .cc-overlay { padding: 20px; background: var(--white); }
.campus-card .cc-overlay h4 { font-size: 17px; color: var(--text-dark); font-weight: 700; margin-bottom: 6px; }
.campus-card .cc-overlay p { font-size: 13px; color: var(--text-light); }

/* ===== Enrollment Page ===== */
.enroll-intro-section { background: var(--white); padding: 48px 0 0; }
.enroll-programs-section { background: var(--bg-light); padding-top: 20px; }   /* 浅蓝灰底，白色项目卡更凸显 */
.enroll-faq-section { background: var(--white); }            /* 与上方浅色区形成层次 */
.enroll-intro-section .sec-title { margin-bottom: 28px; }
.enroll-intro { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.enroll-intro p { font-size: 15px; color: var(--text-body); line-height: 1.75; }
.enroll-intro-section .sec-cta-bar { margin-top: 0; margin-bottom: 24px; }
.program-list { display: flex; flex-direction: column; gap: 40px; }
.program-item {
  display: grid; grid-template-columns: 280px 1fr; gap: 40px;
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: all .35s;
}
.program-item:hover { box-shadow: var(--shadow-hover); transform: translateX(6px); }
.program-item .pi-banner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 24px; color: var(--white); text-align: center;
}
.program-item .pi-banner .pi-icon { font-size: 48px; margin-bottom: 16px; }
.program-item .pi-banner h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.program-item .pi-banner .pi-sub { font-size: 13px; opacity: .85; }
.program-item .pi-content { padding: 32px 36px 32px 0; }
.program-item .pi-content h4 { font-size: 18px; color: var(--primary); font-weight: 700; margin-bottom: 12px; }
.program-item .pi-content p { font-size: 14px; color: var(--text-body); line-height: 1.8; margin-bottom: 16px; }
.program-item .pi-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.program-item .pi-features span {
  font-size: 13px; color: var(--primary); background: var(--bg-light);
  padding: 5px 14px; border-radius: 14px; font-weight: 500;
}
.program-item .pi-price { display: flex; align-items: baseline; gap: 8px; }
.program-item .pi-price .label { font-size: 13px; color: var(--text-light); }
.program-item .pi-price .val { font-size: 24px; font-weight: 800; color: var(--accent); }

/* ===== Footer ===== */
.footer {
  background: var(--primary-dark); color: rgba(255,255,255,.7); padding: 60px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col h4 { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.footer-col p { font-size: 14px; line-height: 1.8; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent-light); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.footer-contact-item .fci-icon { color: var(--accent); font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item .fci-text { font-size: 14px; line-height: 1.6; }
.footer-contact-item .fci-text strong { color: var(--white); }
.footer-qr { text-align: center; }
.footer-qr .qr-box {
  width: 120px; height: 120px; background: var(--white); border-radius: 12px;
  margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--primary);
}
.footer-qr p { font-size: 13px; color: rgba(255,255,255,.6); text-align: center; margin: 0; }
.footer-bottom {
  padding: 20px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--accent-light); }

/* ===== Footer Friend Links ===== */
.footer-links {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-links h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.friendlink-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.friendlink-list li { line-height: 1.5; }
.friendlink-list li a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.friendlink-list li a:hover { color: var(--accent-light); }

/* ===== Back to Top ===== */
.back-top {
  position: fixed; bottom: 40px; right: 40px; width: 48px; height: 48px;
  border-radius: 50%; background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  cursor: pointer; opacity: 0; visibility: hidden; transition: all .3s; z-index: 999;
  box-shadow: 0 4px 20px rgba(255,122,0,.4);
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { transform: translateY(-4px); }

/* ===== Floating Consult ===== */
.float-consult {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
  z-index: 998; display: flex; flex-direction: column; gap: 12px;
}
.float-consult .fc-item {
  width: 56px; height: 56px; border-radius: 14px; background: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,.1); display: flex; flex-direction: column;
  align-items: center; justify-content: center; cursor: pointer; transition: all .3s;
  color: var(--primary); font-size: 11px; gap: 2px; text-align: center;
}
.float-consult .fc-item:hover { background: var(--accent); color: var(--white); transform: translateX(-4px); }
.float-consult .fc-item .fc-icon { font-size: 20px; }

/* ===== Animations ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: all .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================
   Responsive
   ============================ */
@media (max-width: 1024px) {
  .course-grid, .adv-grid, .student-grid, .teacher-grid { grid-template-columns: repeat(2, 1fr); }
  .campus-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid > * { flex: 1 1 calc(50% - 12px); }
  .values-grid > * { flex: 1 1 calc(50% - 12px); }
  .news-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr 1fr; height: auto; }
  .video-item.big { grid-row: span 1; }
  .about-preview-grid, .about-intro-grid, .consult-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .friendlink-list { justify-content: center; }
  .program-item { grid-template-columns: 220px 1fr; }
  .qr-section { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .header-inner { height: 60px; }
  .nav {
    position: fixed; top: 60px; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 0;
    max-height: 0; overflow: hidden; transition: max-height .4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
  }
  .nav.open { max-height: 90vh; overflow-y: auto; }
  .nav > li > a { padding: 14px 24px; height: auto; border-bottom: 1px solid var(--border); }
  .nav > li > a.active::after { display: none; }
  .nav .has-dropdown > a::after { font-size: 7px; margin-left: 6px; color: var(--accent); transition: transform .25s; }
  .has-dropdown.open > a::after { transform: rotate(180deg); }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; min-width: auto; max-height: 0; overflow: hidden;
    transition: max-height .3s; padding: 0; left: auto; border-radius: 0;
  }
  .dropdown::before { display: none; }
  .has-dropdown.open .dropdown { max-height: 400px; padding: 4px 0; }
  .dropdown li a { padding-left: 48px; }
  .nav-toggle { display: flex; }
  .logo .logo-text h1 { font-size: 16px; }
  .logo .logo-text span { font-size: 9px; }
  .logo .logo-icon { width: 38px; height: 38px; font-size: 18px; }

  .hero { height: 420px; }
  .carousel-slide .slide-content { padding: 0 24px; }
  .carousel-slide h2 { font-size: 28px; margin-bottom: 16px; }
  .carousel-slide .slide-tag { font-size: 13px; padding: 6px 16px; }
  .carousel-slide .slide-tags { grid-template-columns: repeat(2, auto); gap: 10px 12px; max-width: 360px; }
  .carousel-slide .slide-desc { font-size: 15px; margin-bottom: 24px; }
  .carousel-arrow { display: none; }

  .quick-bar { grid-template-columns: 1fr 1fr; margin: -20px 16px 0; padding: 16px; gap: 8px; }
  .quick-item { padding: 4px; }
  .quick-item .qi-icon { width: 40px; height: 40px; font-size: 18px; }
  .quick-item .qi-text h4 { font-size: 14px; }
  .quick-item .qi-text p { font-size: 11px; }

  .section { padding: 50px 0; }
  .sec-title h2 { font-size: 26px; }
  .sec-title p { font-size: 14px; }
  .container { padding: 0 16px; }

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

  .course-grid, .adv-grid, .student-grid, .teacher-grid, .campus-grid, .values-grid { grid-template-columns: 1fr; }
  .adv-grid > *, .values-grid > * { flex: 1 1 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-item .stat-num { font-size: 36px; }

  .video-grid { grid-template-columns: 1fr; height: auto; }
  .video-item { height: 220px; }
  .video-item.big { height: 260px; }

  .news-section { padding: 12px 0 24px; }
  .news-grid { gap: 24px; }
  .news-featured .nf-img { height: 180px; font-size: 40px; }
  .news-featured .nf-body { padding: 20px; }
  .news-featured .nf-body h3 { font-size: 18px; }
  .news-featured .nf-body p { font-size: 13px; }
  .news-list { gap: 12px; }
  .news-item {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-left-width: 3px;
  }
  .news-item .ni-date {
    width: auto;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 6px;
  }
  .news-item .ni-date .day { font-size: 22px; }
  .news-item .ni-date .month { margin-top: 0; font-size: 13px; }
  .news-item .ni-body h4 {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
  }
  .news-item .ni-body p {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
  }
  .news-section .sec-cta-bar { margin-top: 24px; }

  .form-row { grid-template-columns: 1fr; }
  .consult-form-wrap { padding: 24px; }

  .program-item { grid-template-columns: 1fr; }
  .program-item .pi-content { padding: 24px; }
  .program-item .pi-banner { padding: 28px 24px; }

  .page-banner { height: 120px; }
  .page-banner h1 { font-size: 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-links { text-align: center; }
  .friendlink-list { justify-content: center; }
  .footer-contact-item { justify-content: center; }
  .footer-qr .qr-box { margin: 0 auto; }

  .float-consult { display: none; }
  .back-top { bottom: 20px; right: 20px; width: 40px; height: 40px; font-size: 18px; }

  .timeline { padding-left: 28px; }
  .timeline::before { left: 4px; }
  .timeline-item::before { left: -28px; width: 12px; height: 12px; }

  .map-section { grid-template-columns: 1fr; min-height: auto; }
  .map-placeholder + .map-placeholder, .map-embed-col + .map-embed-col { border-left: 0; border-top: 2px solid rgba(255,255,255,.15); }
  .map-embed-col { min-height: auto; }
  .map-embed-wrap { min-height: 240px; }
  .map-embed-wrap iframe { height: 100%; min-height: 240px; }

  .qr-section { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
  .qr-card { padding: 12px 8px; }
  .qr-card .qr-img { max-width: 130px; }
  .qr-card h4 { font-size: 12px; }
}

@media (max-width: 480px) {
  .qr-section { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
  .qr-card .qr-img { max-width: 120px; }
}

/* ============================
   Program Landing Page
   ============================ */
.prog-hero {
  height: 400px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; text-align: center; color: var(--white);
}
.prog-hero .ph-bg { position: absolute; inset: 0; }
.prog-hero .ph-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,43,92,.9), rgba(8,29,63,.85));
}
.prog-hero .ph-content { position: relative; z-index: 2; max-width: 800px; padding: 0 24px; }
.prog-hero .ph-icon { font-size: 64px; margin-bottom: 16px; }
.prog-hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 12px; }
.prog-hero .ph-sub { font-size: 18px; opacity: .85; margin-bottom: 28px; }
.prog-hero .ph-tags { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.prog-hero .ph-tags span {
  background: rgba(255,255,255,.15); padding: 6px 18px; border-radius: 20px; font-size: 14px;
  backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.2);
}

.prog-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin: -50px auto 0; max-width: var(--max-width); position: relative; z-index: 5; }
.prog-stat {
  background: var(--white); padding: 28px 20px; text-align: center;
  border-right: 1px solid var(--border); box-shadow: 0 4px 20px rgba(13,43,92,.06);
}
.prog-stat:last-child { border-right: none; }
.prog-stat:first-child { border-radius: 12px 0 0 12px; }
.prog-stat:last-child { border-radius: 0 12px 12px 0; }
.prog-stat .ps-num { font-size: 32px; font-weight: 800; color: var(--accent); font-family: "DIN Alternate","Oswald",sans-serif; }
.prog-stat .ps-label { font-size: 14px; color: var(--text-light); margin-top: 6px; }

.prog-section { padding: 80px 0; }
.prog-section.alt { background: var(--bg-light); }
.prog-section h2 { font-size: 30px; color: var(--primary); font-weight: 700; margin-bottom: 8px; }
.prog-section .sec-en { font-size: 14px; color: var(--accent); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 8px; display: block; }
.prog-section .sec-desc { color: var(--text-light); font-size: 16px; margin-bottom: 40px; }

.feature-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feature-card { background: var(--white); border-radius: 12px; padding: 32px 28px; box-shadow: var(--shadow); transition: all .3s; border-top: 4px solid transparent; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-top-color: var(--accent); }
.feature-card .fc-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--white); background: linear-gradient(135deg,var(--primary),var(--primary-light)); margin-bottom: 20px; }
.feature-card h3 { font-size: 18px; color: var(--text-dark); font-weight: 700; margin-bottom: 12px; }
.feature-card p { font-size: 14px; color: var(--text-light); line-height: 1.8; }

.schedule-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.schedule-table th { background: var(--primary); color: var(--white); padding: 16px 20px; font-size: 14px; font-weight: 600; text-align: left; }
.schedule-table td { padding: 14px 20px; font-size: 14px; color: var(--text-body); border-bottom: 1px solid var(--border); }
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: var(--bg-light); }
.schedule-table .time-col { color: var(--accent); font-weight: 600; white-space: nowrap; }

.class-types { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.class-type-card { background: var(--white); border-radius: 12px; padding: 28px 24px; border: 2px solid var(--border); transition: all .3s; }
.class-type-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.class-type-card .ctc-badge { display: inline-block; background: var(--accent); color: var(--white); font-size: 12px; font-weight: 600; padding: 4px 14px; border-radius: 12px; margin-bottom: 16px; }
.class-type-card h3 { font-size: 18px; color: var(--primary); font-weight: 700; margin-bottom: 8px; }
.class-type-card .ctc-price { font-size: 24px; font-weight: 800; color: var(--accent); margin-bottom: 12px; }
.class-type-card .ctc-price small { font-size: 13px; color: var(--text-light); font-weight: 400; }
.class-type-card ul { margin-bottom: 16px; }
.class-type-card ul li { font-size: 14px; color: var(--text-body); padding: 4px 0; padding-left: 22px; position: relative; }
.class-type-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

@media (max-width: 768px) {
  .prog-hero { height: 320px; }
  .prog-hero h1 { font-size: 28px; }
  .prog-hero .ph-sub { font-size: 15px; }
  .prog-stats { grid-template-columns: repeat(2,1fr); margin: -30px 16px 0; }
  .prog-stat { padding: 20px 12px; }
  .prog-stat .ps-num { font-size: 24px; }
  .prog-stat:first-child, .prog-stat:last-child { border-radius: 0; }
  .feature-cards, .class-types { grid-template-columns: 1fr; }
  .schedule-table { font-size: 12px; }
  .schedule-table th, .schedule-table td { padding: 10px 12px; }
}

/* ============================
   Teacher Detail Page
   ============================ */
.teacher-detail-hero { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 60px 0; position: relative; overflow: hidden; }
.teacher-detail-hero::before { content: ''; position: absolute; top: -80px; right: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,0,.12), transparent 70%); }
.td-hero-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.td-avatar {
  width: 280px; height: 320px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 100px; color: rgba(255,255,255,.9); box-shadow: 0 20px 60px rgba(0,0,0,.3); position: relative;
  overflow: hidden;
}
.td-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.td-avatar .td-exp-badge { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--white); font-size: 13px; padding: 6px 18px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.td-info { color: var(--white); }
.td-info .td-subject { font-size: 14px; color: var(--accent-light); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 8px; }
.td-info h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.td-info .td-title { font-size: 18px; color: rgba(255,255,255,.8); margin-bottom: 20px; }
.td-info .td-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.td-info .td-tags span { background: rgba(255,255,255,.12); padding: 6px 16px; border-radius: 20px; font-size: 13px; border: 1px solid rgba(255,255,255,.15); }
.td-info .td-quote { font-size: 16px; color: rgba(255,255,255,.7); font-style: italic; border-left: 3px solid var(--accent); padding-left: 16px; line-height: 1.8; }

.td-like-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  padding: 10px 22px; background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent); border-radius: 24px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .3s;
}
.td-like-btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.td-like-btn.liked { background: var(--accent); color: #fff; cursor: default; }
.td-like-btn .td-like-icon { font-size: 16px; line-height: 1; transition: transform .3s; }
.td-like-btn:hover .td-like-icon { transform: scale(1.2); }
.td-like-btn .td-like-count { background: rgba(255,255,255,.15); padding: 2px 10px; border-radius: 12px; font-size: 13px; }

.td-body-grid { display: grid; grid-template-columns: 1fr 320px; gap: 48px; }
.td-main h2 { font-size: 24px; color: var(--primary); font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border); position: relative; }
.td-main h2::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 60px; height: 2px; background: var(--accent); }
.td-main p { font-size: 15px; color: var(--text-body); line-height: 2; margin-bottom: 16px; }
.td-achievements { background: var(--bg-light); border-radius: 12px; padding: 28px; margin: 32px 0; }
.td-achievements h3 { font-size: 18px; color: var(--primary); font-weight: 700; margin-bottom: 16px; }
.td-achievements ul li { font-size: 14px; color: var(--text-body); padding: 8px 0; padding-left: 24px; position: relative; }
.td-achievements ul li::before { content: '🏆'; position: absolute; left: 0; font-size: 16px; }

.td-sidebar {}
.td-sidebar-box { background: var(--white); border-radius: 12px; padding: 28px; box-shadow: var(--shadow); margin-bottom: 24px; }
.td-sidebar-box h3 { font-size: 16px; color: var(--primary); font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); display: inline-block; }
.td-info-list li { font-size: 14px; color: var(--text-body); padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; }
.td-info-list li:last-child { border-bottom: none; }
.td-info-list li .label { color: var(--text-light); }
.td-info-list li .val { color: var(--text-dark); font-weight: 600; }

.td-nav { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.td-nav a { padding: 8px 20px; border-radius: 8px; font-size: 14px; color: var(--text-body); background: var(--bg-light); transition: all .2s; }
.td-nav a:hover, .td-nav a.active { background: var(--primary); color: var(--white); }

@media (max-width: 768px) {
  .td-hero-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .td-avatar { margin: 0 auto; width: 200px; height: 240px; font-size: 72px; }
  .td-info h1 { font-size: 28px; }
  .td-body-grid { grid-template-columns: 1fr; }
}

/* ============================
   News Article Page
   ============================ */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; }
.article-main { background: var(--white); border-radius: 12px; padding: 48px; box-shadow: var(--shadow); }
.article-header { border-bottom: 2px solid var(--border); padding-bottom: 24px; margin-bottom: 32px; }
.article-header .art-cat { display: inline-block; background: var(--accent); color: var(--white); font-size: 12px; font-weight: 600; padding: 4px 14px; border-radius: 12px; margin-bottom: 16px; }
.article-header h1 { font-size: 30px; color: var(--text-dark); font-weight: 800; line-height: 1.4; margin-bottom: 16px; }
.article-header .art-meta { display: flex; gap: 24px; font-size: 14px; color: var(--text-light); }
.article-header .art-meta span { display: flex; align-items: center; gap: 6px; }
.article-body { font-size: 16px; color: var(--text-body); line-height: 2; }
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-size: 22px; color: var(--primary); font-weight: 700; margin: 32px 0 16px; }
.article-body h3 { font-size: 18px; color: var(--text-dark); font-weight: 700; margin: 24px 0 12px; }
.article-body blockquote { background: var(--bg-light); border-left: 4px solid var(--accent); padding: 20px 24px; border-radius: 8px; margin: 24px 0; font-size: 15px; color: var(--text-body); font-style: italic; }
.article-body ul { margin: 16px 0 20px 20px; }
.article-body ul li { list-style: disc; margin-bottom: 8px; }
.article-body strong { color: var(--primary); }
.article-body .art-highlight { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); border-radius: 12px; padding: 24px 28px; margin: 32px 0; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.article-body .art-highlight h3 { color: var(--white); margin-bottom: 8px; }
.article-body .art-highlight p { color: rgba(255,255,255,.8); margin: 0; flex: 1; min-width: 220px; }
.article-body .art-highlight .art-hl-btn { display: inline-block; padding: 8px 18px; background: transparent; color: var(--accent); border: 1px solid var(--accent); border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; transition: all .2s; flex-shrink: 0; }
.article-body .art-highlight .art-hl-btn:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.55); }
.article-footer { margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.article-share { display: flex; gap: 12px; align-items: center; }
.article-share span { font-size: 14px; color: var(--text-light); }
.article-share a { width: 36px; height: 36px; border-radius: 8px; background: var(--bg-light); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all .2s; }
.article-share a:hover { background: var(--accent); transform: translateY(-2px); }
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; }
.article-nav a { flex: 1; padding: 20px 24px; background: var(--bg-light); border-radius: 10px; transition: all .2s; }
.article-nav a:hover { background: var(--white); box-shadow: var(--shadow); }
.article-nav .an-label { font-size: 13px; color: var(--text-light); margin-bottom: 4px; }
.article-nav .an-title { font-size: 15px; color: var(--primary); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 768px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-main { padding: 24px; }
  .article-header h1 { font-size: 22px; }
  .article-header .art-meta { flex-wrap: wrap; gap: 12px; }
  .article-nav { flex-direction: column; }
}

/* ============================
   New Program Landing Page (Reference PC端.jpg)
   ============================ */
.nl-hero {
  position: relative; overflow: hidden; padding: 60px 0 80px;
  background: linear-gradient(135deg, #ff7a00 0%, #ff5e00 50%, #e84e00 100%);
  color: var(--white);
}
.nl-hero::before {
  content: ''; position: absolute; top: -100px; right: -50px; width: 500px; height: 500px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
}
.nl-hero::after {
  content: ''; position: absolute; bottom: -150px; left: -100px; width: 400px; height: 400px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%);
}
.nl-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.nl-hero-left .nl-brand {
  display: inline-flex; align-items: center; gap: 12px; background: rgba(13,43,92,.85);
  padding: 8px 20px; border-radius: 30px; margin-bottom: 24px; backdrop-filter: blur(4px);
}
.nl-brand-logo {
  width: 36px; height: 36px; background: var(--white); color: var(--accent);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.nl-brand-text { font-size: 18px; font-weight: 700; }
.nl-hero-left h1 { font-size: 44px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.nl-hero-left .nl-tagline { font-size: 20px; font-weight: 600; margin-bottom: 12px; opacity: .95; }
.nl-hero-left .nl-sub { font-size: 16px; opacity: .85; margin-bottom: 32px; }
.nl-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.nl-cta-row .btn-white { background: var(--white); color: var(--accent); }
.nl-cta-row .btn-white:hover { background: var(--bg-light); }
.nl-cta-row .btn-outline-white { background: transparent; color: var(--white); border: 2px solid var(--white); }
.nl-cta-row .btn-outline-white:hover { background: var(--white); color: var(--accent); }
.nl-hero-right { position: relative; }
.nl-hero-img {
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.05));
  border: 2px solid rgba(255,255,255,.2); border-radius: 16px; padding: 60px 32px;
  text-align: center; backdrop-filter: blur(4px); font-size: 120px;
}
.nl-hero-img-label { font-size: 16px; margin-top: 16px; opacity: .9; }

.nl-tagbar { background: var(--white); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.nl-tagbar-inner { display: flex; justify-content: space-around; align-items: center; padding: 18px 0; flex-wrap: wrap; gap: 12px; }
.nl-tag-item { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--primary); font-weight: 600; }
.nl-tag-item span { font-size: 20px; }

.nl-section { padding: 70px 0; }
.nl-section.alt { background: var(--bg-light); }
.nl-section.cta-orange { background: linear-gradient(135deg, #ff7a00, #ff5e00); color: var(--white); }
.nl-section.cta-orange .nl-section-title h2 { color: var(--white); }
.nl-section.cta-orange .nl-section-title p { color: rgba(255,255,255,.85); }

.nl-section-title { text-align: center; margin-bottom: 48px; }
.nl-section-title .en { font-size: 13px; color: var(--accent); letter-spacing: 4px; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.nl-section-title h2 { font-size: 32px; color: var(--primary); font-weight: 800; margin-bottom: 12px; }
.nl-section-title p { color: var(--text-light); font-size: 16px; max-width: 700px; margin: 0 auto; }
.nl-section-title .nl-divider { width: 60px; height: 3px; background: var(--accent); margin: 16px auto; border-radius: 2px; }

.nl-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.nl-duo-card { border-radius: 14px; padding: 36px 32px; color: var(--white); transition: all .3s; }
.nl-duo-card:hover { transform: translateY(-4px); }
.nl-duo-card.blue { background: linear-gradient(135deg, #0d2b5c, #1a4280); }
.nl-duo-card.orange { background: linear-gradient(135deg, #ff7a00, #e84e00); }
.nl-duo-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.nl-duo-card .nl-sub-title { font-size: 14px; opacity: .85; margin-bottom: 24px; }
.nl-duo-list { list-style: none; }
.nl-duo-list li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.15); display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.nl-duo-list li:last-child { border-bottom: none; }
.nl-duo-list li::before { content: '✓'; flex-shrink: 0; font-weight: 700; }

.nl-guarantee { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.nl-g-card { background: var(--white); border-radius: 12px; padding: 32px 24px; text-align: center; box-shadow: var(--shadow); transition: all .3s; border: 1px solid var(--border); }
.nl-g-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.nl-g-icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--white); }
.nl-g-icon.b1 { background: linear-gradient(135deg, #0d2b5c, #1a4280); }
.nl-g-icon.b2 { background: linear-gradient(135deg, #ff7a00, #e84e00); }
.nl-g-icon.b3 { background: linear-gradient(135deg, #2d8659, #3aa870); }
.nl-g-icon.b4 { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.nl-g-icon.b5 { background: linear-gradient(135deg, #ec4899, #f472b6); }
.nl-g-icon.b6 { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.nl-g-card h4 { font-size: 17px; color: var(--text-dark); font-weight: 700; margin-bottom: 8px; }
.nl-g-card p { font-size: 13px; color: var(--text-light); line-height: 1.7; }

.nl-types { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.nl-type-card { background: var(--white); border-radius: 12px; padding: 32px 24px; box-shadow: var(--shadow); transition: all .3s; border: 2px solid transparent; text-align: center; }
.nl-type-card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.nl-type-icon { font-size: 48px; margin-bottom: 16px; }
.nl-type-card h3 { font-size: 20px; color: var(--primary); font-weight: 700; margin-bottom: 12px; }
.nl-type-card p { font-size: 14px; color: var(--text-body); line-height: 1.7; margin-bottom: 20px; }
.nl-type-features { text-align: left; }
.nl-type-features li { font-size: 14px; color: var(--text-body); padding: 6px 0; display: flex; align-items: center; gap: 8px; }
.nl-type-features li::before { content: '★'; color: var(--accent); }

.nl-stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 48px; }
.nl-stat-card { background: rgba(255,255,255,.1); border-radius: 12px; padding: 28px 20px; text-align: center; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.2); }
.nl-stat-card .num { font-size: 36px; font-weight: 800; margin-bottom: 6px; }
.nl-stat-card .label { font-size: 14px; opacity: .9; }

.nl-success { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.nl-success-card { background: var(--white); border-radius: 12px; padding: 28px 24px; text-align: center; box-shadow: var(--shadow); }
.nl-success-num { font-size: 48px; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 12px; font-family: "DIN Alternate","Oswald",sans-serif; }
.nl-success-card p { font-size: 14px; color: var(--text-body); }

.nl-team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.nl-team-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: all .3s; }
.nl-team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.nl-team-img { height: 200px; display: flex; align-items: center; justify-content: center; font-size: 70px; color: rgba(255,255,255,.9); position: relative; }
.nl-team-img .nl-team-badge { position: absolute; top: 12px; right: 12px; background: var(--accent); color: var(--white); font-size: 12px; padding: 4px 12px; border-radius: 12px; font-weight: 600; }
.nl-team-body { padding: 20px 18px; }
.nl-team-body h4 { font-size: 17px; color: var(--text-dark); font-weight: 700; margin-bottom: 4px; }
.nl-team-body .nl-team-subj { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.nl-team-body p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* "查看更多名师" card inside the team grid */
.nl-team-more { display: flex; align-items: center; justify-content: center; text-decoration: none; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 12px; box-shadow: var(--shadow); transition: all .3s; min-height: 280px; }
.nl-team-more:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.nl-team-more-inner { text-align: center; padding: 30px 20px; }
.nl-team-more-icon { font-size: 48px; margin-bottom: 12px; }
.nl-team-more-inner h4 { font-size: 18px; color: #fff; margin-bottom: 6px; }
.nl-team-more-inner p { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.nl-team-more-btn { display: inline-block; background: var(--accent); color: #fff; font-size: 13px; padding: 8px 24px; border-radius: 20px; font-weight: 600; }

.nl-env-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.nl-env-item { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); position: relative; height: 200px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 24px; font-weight: 700; transition: all .3s; }
.nl-env-item:hover { transform: scale(1.02); }
.nl-env-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.5)); }
.nl-env-item span { position: relative; z-index: 2; padding: 16px; }

.nl-life-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.nl-life-item { border-radius: 10px; overflow: hidden; height: 180px; position: relative; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 18px; }
.nl-life-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55)); }
.nl-life-item span { position: relative; z-index: 2; padding: 12px; }

.nl-about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.nl-about-text p { font-size: 15px; color: var(--text-body); line-height: 1.9; margin-bottom: 16px; }
.nl-about-img { height: 360px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 80px; box-shadow: var(--shadow); }

@media (max-width: 768px) {
  .nl-hero { padding: 40px 0 60px; }
  .nl-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .nl-hero-left h1 { font-size: 30px; }
  .nl-cta-row { justify-content: center; }
  .nl-tagbar-inner { flex-direction: column; gap: 12px; padding: 16px; }
  .nl-section { padding: 50px 0; }
  .nl-section-title h2 { font-size: 24px; }
  .nl-duo, .nl-guarantee, .nl-types, .nl-team-grid, .nl-env-grid, .nl-life-grid, .nl-success { grid-template-columns: 1fr; }
  .nl-stats-band { grid-template-columns: repeat(2,1fr); }
  .nl-about-grid { grid-template-columns: 1fr; }
  .nl-about-img { height: 240px; font-size: 60px; }
  .nl-success-card .nl-success-num { font-size: 36px; }
}

/* ===== Section-level Consultation CTA Bar ===== */
.sec-cta-bar {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-top: 36px; padding: 18px 32px;
  background: linear-gradient(135deg, rgba(13,43,92,.04), rgba(255,122,0,.04));
  border-radius: 12px; border: 1px solid rgba(13,43,92,.08);
  flex-wrap: wrap; opacity: 0; transform: translateY(20px);
  transition: opacity .6s, transform .6s;
}
.sec-cta-bar.visible { opacity: 1; transform: translateY(0); }
.sec-cta-bar .cta-label { font-size: 15px; color: var(--text-body); font-weight: 500; }
.sec-cta-bar .cta-label strong { color: var(--primary); font-weight: 700; }
.sec-cta-bar .btn-53 {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 28px; border-radius: 8px; font-size: 14px; font-weight: 600;
  background: linear-gradient(135deg, #ff7a00, #ff9c40); color: #fff;
  text-decoration: none; transition: all .3s; border: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(255,122,0,.3); white-space: nowrap;
}
.sec-cta-bar .btn-53:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,122,0,.45); }
.sec-cta-bar .btn-53:active { transform: translateY(0); }
@media (max-width: 768px) {
  .sec-cta-bar { flex-direction: column; gap: 12px; text-align: center; padding: 16px 20px; }
  .sec-cta-bar .cta-label { text-align: center; }
}

/* ===== Floating Sidebar Customer Service ===== */
/* 53KF浮动按钮和自动弹出邀请框均正常显示，不通过CSS隐藏 */
/* 浮动按钮由JS精准隐藏（仅隐藏图标，不影响邀请弹窗） */

.tafu-float-sidebar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: 4px 0 28px rgba(13, 43, 92, 0.18), 0 0 0 3px rgba(255,122,0,0.15);
  border-radius: 0 14px 14px 0;
  overflow: visible;
  font-family: inherit;
  animation: tafsPulse 2.5s ease-in-out infinite;
}

@keyframes tafsPulse {
  0%, 100% { box-shadow: 4px 0 28px rgba(13, 43, 92, 0.18), 0 0 0 3px rgba(255,122,0,0.15); }
  50% { box-shadow: 4px 0 38px rgba(255,122,0,0.35), 0 0 0 10px rgba(255,122,0,0.1); }
}

.tafu-float-sidebar::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 0 14px 14px 0;
  border: 2px solid transparent;
  animation: tafsBorderFlash 2.5s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes tafsBorderFlash {
  0%, 100% { border-color: rgba(255,122,0,0); box-shadow: 0 0 0 rgba(255,122,0,0); }
  50% { border-color: rgba(255,122,0,0.5); box-shadow: 0 0 18px rgba(255,122,0,0.25); }
}

.tafu-float-sidebar-item {
  position: relative;
  width: 86px;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  border-bottom: 1px solid #f0f2f5;
  color: var(--primary);
  background: var(--white);
  overflow: visible;
}

.tafu-float-sidebar-item:first-child {
  border-radius: 0 14px 0 0;
  background: linear-gradient(135deg, var(--accent), #ff9500);
  color: var(--white);
  animation: tafsBlink 1.2s ease-in-out infinite;
}

@keyframes tafsBlink {
  0%, 100% { background: linear-gradient(135deg, var(--accent), #ff9500); }
  25% { background: linear-gradient(135deg, #ffc04d, var(--accent)); }
  50% { background: linear-gradient(135deg, #ff9500, var(--accent)); }
  75% { background: linear-gradient(135deg, var(--accent), #ffc04d); }
}

.tafu-float-sidebar-item:first-child .tfs-icon {
  animation: tafsIconBounce 1.2s ease-in-out infinite;
}

@keyframes tafsIconBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.tafu-float-sidebar-item:first-child .tfs-label {
  font-weight: 700;
  font-size: 12px;
}

.tafu-float-sidebar-item:first-child::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px 0 0 0;
  background: transparent;
  box-shadow: 0 0 12px rgba(255,122,0,0.5);
  animation: tafsGlow 1.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes tafsGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(255,122,0,0.25); }
  25% { box-shadow: 0 0 24px rgba(255,122,0,0.7); }
  50% { box-shadow: 0 0 10px rgba(255,122,0,0.4); }
  75% { box-shadow: 0 0 28px rgba(255,122,0,0.65); }
}

.tafu-float-sidebar-item:first-child::after {
  content: '●';
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 10px;
  color: #fff;
  animation: tafsDot 1.2s ease-in-out infinite;
}

@keyframes tafsDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.6); }
}

.tafu-float-sidebar-item:last-child { border-bottom: none; border-radius: 0 0 14px 0; }

.tafu-float-sidebar-item:hover,
.tafu-float-sidebar-item.active {
  background: var(--primary);
  color: var(--white);
}

.tafu-float-sidebar-item:first-child:hover,
.tafu-float-sidebar-item:first-child.active {
  background: linear-gradient(135deg, #e66d00, var(--accent));
}

.tafu-float-sidebar-item .tfs-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 6px;
  fill: currentColor;
  flex-shrink: 0;
}

.tafu-float-sidebar-item .tfs-label {
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.tafu-float-panel {
  position: absolute;
  left: 96px;
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  width: 300px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 10px 36px rgba(13, 43, 92, 0.2);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 10000;
}

.tafu-float-sidebar-item.active .tafu-float-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.tafu-float-panel::after {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px 8px 8px 0;
  border-style: solid;
  border-color: transparent var(--white) transparent transparent;
}

.tafu-float-panel h4 {
  font-size: 16px;
  color: var(--primary);
  margin: 0 0 12px;
  font-weight: 700;
}

.tafu-float-panel .tfs-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  font-size: 18px;
  line-height: 1;
  border-radius: 50%;
  transition: all 0.2s;
}

.tafu-float-panel .tfs-close:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}

.tfs-phone-form { display: flex; margin-bottom: 10px; }
.tfs-phone-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 6px 0 0 6px;
  font-size: 14px;
  outline: none;
}
.tfs-phone-form input:focus { border-color: var(--accent); }
.tfs-phone-form button {
  padding: 10px 14px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.tfs-phone-form button:hover { background: var(--accent-dark); }
.tfs-phone-tip {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}
.tfs-wechat-qr {
  width: 180px;
  height: 180px;
  margin: 0 auto 14px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tfs-wechat-qr img { width: 100%; height: 100%; object-fit: cover; }
.tfs-wechat-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-light);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-dark);
}
.tfs-wechat-id button {
  padding: 4px 10px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}
.tfs-wechat-id button:hover { background: var(--primary-light); }
.tfs-success {
  padding: 10px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
  margin-top: 10px;
}
.tfs-error {
  padding: 10px;
  background: #ffebee;
  color: #c62828;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .tafu-float-sidebar {
    top: auto;
    bottom: 80px;
    transform: none;
    left: 0;
    border-radius: 0 10px 10px 0;
  }
  .tafu-float-panel {
    left: 96px;
    top: auto;
    bottom: 0;
    transform: translateX(-10px);
    width: 280px;
  }
  .tafu-float-sidebar-item.active .tafu-float-panel {
    transform: translateX(0);
  }
  .tafu-float-panel::after {
    top: auto;
    bottom: 24px;
    transform: none;
    left: -8px;
    border-width: 8px 8px 8px 0;
    border-color: transparent var(--white) transparent transparent;
  }
}

/* ===== Dynamic CMS Cards (programs & teachers) ===== */
/* Program Cards */
.prog-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 28px 32px;
  box-shadow: var(--shadow); transition: .3s;
}
.prog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.prog-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.prog-card-header .prog-icon { font-size: 40px; }
.prog-card-header h3 { font-size: 20px; color: var(--primary); font-weight: 700; }
.prog-desc { font-size: 14px; color: var(--text-body); line-height: 1.8; margin-bottom: 16px; }
.prog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.prog-tag {
  padding: 4px 12px; background: rgba(13,43,92,.06); color: var(--primary);
  border-radius: 20px; font-size: 12px;
}
.prog-meta { display: flex; gap: 24px; margin-bottom: 16px; font-size: 13px; color: var(--text-light); }
.prog-actions { display: flex; gap: 12px; }

/* Teacher Cards */
.tea-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 28px 20px;
  text-align: center; box-shadow: var(--shadow); transition: .3s;
}
.tea-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-6px); }
.tea-avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; margin: 0 auto 14px; }
.tea-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tea-avatar-placeholder {
  width: 100%; height: 100%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700;
}
.tea-card h4 { font-size: 16px; color: var(--text-dark); font-weight: 700; margin-bottom: 4px; }
.tea-title { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.tea-bio { font-size: 12px; color: var(--text-body); line-height: 1.6; margin-bottom: 12px; }
.tea-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 14px; }
.tea-tag {
  padding: 2px 10px; background: rgba(255,122,0,.08); color: var(--accent);
  border-radius: 12px; font-size: 11px;
}

/* ===== 加载动画 ===== */
.loading-placeholder { }
.loading-spinner {
  display: inline-block;
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-placeholder { }

/* ===== 校园环境 图集（文件夹相册） ===== */
.env-album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; margin-bottom: 28px; }
.env-album { position: relative; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 2px 12px rgba(13,43,92,.08); cursor: pointer; transition: transform .3s, box-shadow .3s; border: 1px solid #eef2f7; }
.env-album:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(13,43,92,.16); }
.env-album-cover { width: 100%; height: 180px; object-fit: cover; display: block; background: linear-gradient(135deg,#0d2b5c,#1a4280); }
.env-album.no-cover .env-album-cover { display: flex; }
.env-album-ph { display: flex; align-items: center; justify-content: center; font-size: 54px; color: rgba(255,255,255,.85); }
.env-album-info { padding: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.env-album-info h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.env-album-text { flex: 1; min-width: 0; }
.env-album-subtitle { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.env-album-desc { font-size: 13px; color: var(--text-light); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.env-album-count { font-size: 13px; color: var(--accent); font-weight: 600; white-space: nowrap; margin-top: 2px; }

/* 灯箱 */
.env-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(8,18,38,.94); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 30px; }
.env-lightbox.show { display: flex; }
.env-lb-stage { max-width: 92vw; max-height: 72vh; display: flex; flex-direction: column; align-items: center; }
.env-lb-stage img { max-width: 92vw; max-height: 64vh; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,.5); background: #fff; }
.env-lb-cap { color: #fff; font-size: 15px; margin-top: 14px; text-align: center; max-width: 90vw; }
.env-lb-counter { color: rgba(255,255,255,.7); font-size: 13px; margin-top: 6px; }
.env-lb-close { position: absolute; top: 18px; right: 24px; width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; cursor: pointer; transition: .2s; }
.env-lb-close:hover { background: rgba(255,255,255,.25); }
.env-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: none; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; cursor: pointer; transition: .2s; }
.env-lb-nav:hover { background: var(--accent); }
.env-lb-prev { left: 24px; }
.env-lb-next { right: 24px; }
.env-lb-thumbs { display: flex; gap: 10px; margin-top: 18px; max-width: 92vw; overflow-x: auto; padding: 6px 2px; }
.env-lb-thumb { width: 72px; height: 52px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .55; border: 2px solid transparent; transition: .2s; flex-shrink: 0; }
.env-lb-thumb.active, .env-lb-thumb:hover { opacity: 1; border-color: var(--accent); }

/* ===== 校长寄语 ===== */
.principal-detail { display: flex; gap: 40px; align-items: flex-start; background: linear-gradient(135deg,#f4f8ff 0%, #ffffff 100%); border: 1px solid #eef2f7; border-radius: 16px; padding: 36px; box-shadow: 0 2px 12px rgba(13,43,92,.06); }
.principal-col { flex: 0 0 260px; min-width: 0; }
.principal-portrait { width: 100%; }
.principal-portrait img { width: 100%; height: 320px; object-fit: cover; border-radius: 14px; display: block; background: #eef2f7; }
.principal-portrait .img-ph { display: flex; align-items: center; justify-content: center; font-size: 72px; height: 320px; border-radius: 14px; background: #eef2f7; }
.principal-credential-wrap { margin-top: 20px; background: #fff; border: 1px solid #eef2f7; border-radius: 12px; padding: 16px 18px; }
.principal-credential-title { font-size: 15px; font-weight: 800; color: var(--primary); margin-bottom: 10px; padding-left: 2px; }
.principal-credential { margin: 0; padding: 0; list-style: none; }
.principal-credential li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 2.1; color: var(--text-body); }
.principal-credential li::before { content: ''; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.principal-body { flex: 1; min-width: 0; }
.principal-name { font-size: 24px; font-weight: 800; color: var(--primary); }
.principal-title { font-size: 14px; color: var(--accent); font-weight: 600; margin: 6px 0 18px; }
.principal-msg { font-size: 15px; line-height: 2; color: var(--text-body); white-space: pre-line; }
.principal-sign { margin-top: 18px; text-align: right; font-size: 15px; font-weight: 700; color: var(--primary); }

@media (max-width: 768px) {
  .env-album-grid { grid-template-columns: repeat(2, 1fr); }
  .principal-detail { flex-direction: row; align-items: flex-start; padding: 24px; gap: 20px; }
  .principal-col { flex: 0 0 130px; max-width: 130px; width: auto; margin: 0; }
  .principal-portrait img,
  .principal-portrait .img-ph { height: 160px; }
  .principal-body { min-width: 0; }
}

/* ===== Mobile stacking fixes (<=768) ===== */
@media (max-width: 768px) {
  /* Card grids: two columns on tablet/phone */
  .adv-grid,
  .values-grid,
  .feature-cards,
  .class-types,
  .course-grid,
  .student-grid,
  .teacher-grid,
  .campus-grid,
  .news-grid,
  .video-grid,
  .prog-stats,
  .nl-stats-band {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hero CTA buttons: stack vertically */
  .carousel-slide .slide-btns {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
  }
  .carousel-slide .slide-btns .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    text-align: center;
  }

  /* Quick action bar: single column instead of 2x2 */
  .quick-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: -20px 16px 0;
    padding: 16px;
  }
  .quick-item {
    padding: 10px 12px;
  }
  .quick-item .qi-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  .quick-item .qi-text h4 {
    font-size: 15px;
  }
  .quick-item .qi-text p {
    font-size: 12px;
  }

  /* Hide the right/left floating sidebar on mobile: bottom sticky bar already covers chat/phone */
  .tafu-float-sidebar {
    display: none !important;
  }

  /* Page banner: stack title and breadcrumb vertically */
  .page-banner {
    flex-direction: column;
    justify-content: center;
    height: auto;
    min-height: 120px;
    padding: 24px 16px;
  }
  .page-banner .breadcrumb {
    margin-top: 6px;
    font-size: 13px;
  }

  /* Slightly tighter section spacing */
  .sec-title h2 {
    font-size: 26px;
  }
}

/* ===== Phone-specific tightening (<=480) ===== */
@media (max-width: 480px) {
  /* Card grids: two columns on phone (per request: no tall single-stack) */
  .adv-grid,
  .values-grid,
  .feature-cards,
  .class-types,
  .course-grid,
  .student-grid,
  .teacher-grid,
  .campus-grid,
  .news-grid,
  .video-grid,
  .prog-stats,
  .nl-stats-band,
  .env-album-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* Structural layouts (text+image, forms, QR): keep single column */
  .program-item,
  .qr-section,
  .article-layout,
  .article-nav,
  .td-hero-grid,
  .td-body-grid,
  .consult-grid,
  .about-preview-grid,
  .about-intro-grid {
    grid-template-columns: 1fr !important;
  }

  /* Footer: 3 columns on phone (logo intro full-width top row) */
  .footer-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px 12px !important;
    text-align: left !important;
  }
  .footer-col:first-child {
    grid-column: 1 / -1;
  }
  .footer-col .logo { margin-bottom: 12px !important; }
  .footer-col h4 { font-size: 14px; margin-bottom: 10px; }
  .footer-col ul li { margin-bottom: 5px; }
  .footer-col ul li a { font-size: 12px; }
  .footer-col p { font-size: 12px; line-height: 1.7; margin-bottom: 0; }
  .footer-contact-item { margin-bottom: 8px; gap: 6px; }
  .footer-contact-item .fci-icon { font-size: 14px; margin-top: 1px; }
  .footer-contact-item .fci-text { font-size: 12px; line-height: 1.5; }
  .footer-contact-item .fci-text br { display: none; }
  .footer-contact-item .fci-text strong { display: block; }
  .footer-bottom { font-size: 11px; padding-top: 16px; }

  /* Stats bands: 2x2 on phone, easier to scan than a tall vertical stack */
  .stats-grid,
  .about-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .stat-item .stat-num,
  .about-stat .num {
    font-size: 28px !important;
  }
  .stat-item .stat-label,
  .about-stat .label {
    font-size: 13px !important;
    margin-top: 6px;
  }

  .about-stat,
  .stats-grid .stat,
  .prog-stat {
    text-align: center;
  }
  .qr-section {
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Course cards: stack the footer price/link, smaller tags */
  .course-card .cc-img { height: 140px; }
  .course-card .cc-body { padding: 18px; }
  .course-card .cc-body h3 { font-size: 17px; }
  .course-card .cc-body p { font-size: 13px; margin-bottom: 12px; }
  .course-card .cc-features { gap: 5px; margin-bottom: 14px; }
  .course-card .cc-features span {
    font-size: 11px;
    padding: 3px 9px;
  }
  .course-card .cc-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 12px;
  }
  .course-card .cc-footer .more { align-self: flex-end; }

  /* Advantage cards: tighter on small screens */
  .adv-card { padding: 22px 18px; }
  .adv-card .ac-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    font-size: 22px;
    margin-bottom: 14px;
  }
  .adv-card h3 { font-size: 16px; margin-bottom: 8px; }
  .adv-card p { font-size: 13px; }

  /* Program items (enrollment page): smaller banner on phone */
  .program-item .pi-banner { padding: 24px 20px; }
  .program-item .pi-banner .pi-icon { font-size: 40px; margin-bottom: 10px; }
  .program-item .pi-banner h3 { font-size: 18px; }
  .program-item .pi-content { padding: 20px; }
  .program-item .pi-content h4 { font-size: 16px; }
  .program-item .pi-content p { font-size: 13px; }
  .program-item .pi-features span {
    font-size: 11px;
    padding: 4px 10px;
  }

  /* Hero text must not wrap to two lines on small screens */
  .carousel-slide h2 {
    font-size: 22px !important;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .carousel-slide .slide-desc {
    font-size: 13px;
  }
  .carousel-slide .slide-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .carousel-slide .slide-tag {
    font-size: 12px;
    padding: 5px 12px;
  }
  .carousel-slide .slide-btns {
    flex-direction: column !important;
    align-items: center;
    gap: 10px;
  }
  .carousel-slide .slide-btns .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
  }

  /* Principal: small avatar on left, intro/message on SAME row, credentials full-width below */
  .principal-detail {
    display: grid !important;
    grid-template-columns: 88px 1fr !important;
    gap: 12px 14px !important;
    padding: 18px !important;
    align-items: start;
  }
  .principal-col { display: contents !important; }
  .principal-portrait { width: 88px !important; grid-column: 1; grid-row: 1; }
  .principal-portrait img,
  .principal-portrait .img-ph { height: 104px !important; border-radius: 10px !important; font-size: 38px !important; }
  .principal-body { grid-column: 2; grid-row: 1; min-width: 0; }
  .principal-credential-wrap {
    grid-column: 1 / -1; grid-row: 2;
    margin-top: 4px !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
  }
  .principal-credential-title { font-size: 13px !important; margin-bottom: 8px !important; }
  .principal-credential {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px 14px !important;
  }
  .principal-credential li {
    font-size: 11px !important;
    line-height: 1.5 !important;
    padding-left: 11px !important;
    flex: 1 1 calc(50% - 14px);
    min-width: 120px;
  }
  .principal-credential li::before { top: 6px !important; width: 5px !important; height: 5px !important; }
  .principal-name { font-size: 17px; }
  .principal-title { font-size: 12px; margin: 4px 0 10px; }
  .principal-msg { font-size: 13px; line-height: 1.75; }
  .principal-sign { font-size: 12px; margin-top: 10px; }

  /* General images: shrink on phone to avoid tall scrolling */
  .carousel-slide .slide-bg { height: 360px !important; }
  .about-intro-photo, .about-intro-img .img-ph { height: 200px !important; }
  .env-album-cover { height: 110px !important; }
  .course-card .cc-img { height: 115px !important; }
  .teacher-card .t-avatar, .tea-avatar { width: 60px !important; height: 60px !important; }
  .video-item .v-thumb, .video-thumb { height: 105px !important; }

  /* Value/feature cards: smaller icons and tighter text on phone */
  .value-card { padding: 20px 14px; }
  .value-card .vc-icon {
    width: 40px !important; height: 40px !important; font-size: 18px !important; margin-bottom: 10px !important;
  }
  .value-card h3 { font-size: 15px !important; margin-bottom: 6px !important; }
  .value-card p { font-size: 12px !important; line-height: 1.65 !important; }

  /* Quick action bar: compact 2x2 grid with centered icon + text */
  .quick-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
    padding: 14px;
    margin: -16px 12px 0;
  }
  .quick-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 14px 8px;
    border-radius: var(--radius);
    background: var(--bg-light);
  }
  .quick-item .qi-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
    border-radius: 10px;
  }
  .quick-item .qi-text h4 {
    font-size: 14px;
    margin-bottom: 2px;
  }
  .quick-item .qi-text p {
    font-size: 11px;
  }

  /* Section titles smaller */
  .sec-title h2 {
    font-size: 22px;
  }
  .sec-title p {
    font-size: 13px;
    padding: 0 8px;
  }

  /* Banner */
  .page-banner {
    flex-direction: column !important;
    height: auto !important;
    min-height: 110px;
    padding: 20px 16px;
  }
  .page-banner h1 {
    font-size: 22px;
  }

  /* Hide desktop-only floating sidebar */
  .tafu-float-sidebar {
    display: none !important;
  }
}

/* ===== 53KF 客服条：PC 端隐藏，仅移动端显示 ===== */
/* 53KF 脚本会自动注入底部"在线咨询/电话咨询"邀请条（iframe m.php、图标、菜单等）。
   按需求：PC 端（>=769px）全部隐藏，移动端保留。 */
@media (min-width: 769px) {
  iframe[src*="53kf"],
  #mobile_icon_div,
  #icon_module,
  .iconby53-Customerservice,
  .mobile_icon,
  [53kf_menu_versions],
  [id*="53kf"],
  [class*="53kf"] {
    display: none !important;
  }
}
