/* =========================================================
   CNC 数控编程培训机构官网 - 全局样式
   设计规范：#165DFF 主色 / #FF7D00 强调 / 12px 圆角 / 玻璃态
   ========================================================= */
:root {
  --primary: #165DFF;
  --primary-dark: #0B3FAE;
  --primary-soft: #E8F3FF;
  --accent: #FF7D00;
  --accent-dark: #D85E00;
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --text: #1D2129;
  --text-2: #4E5969;
  --text-3: #86909C;
  --line: #E5EAF1;
  --navy: #071E54;
  --navy-2: #0D367D;
  --success: #00A870;
  --danger: #F53F3F;
  --radius: 12px;
  --radius-lg: 24px;
  --shadow: 0 14px 38px rgba(30, 67, 124, 0.10);
  --shadow-hover: 0 20px 50px rgba(30, 67, 124, 0.16);
  --container: 1200px;
  --header-h: 76px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-tint { background: #EEF4FB; }
.page-main { min-height: 70vh; }
.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(208, 221, 238, 0.82);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body { padding: 24px; }
.grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.muted { color: var(--text-2); }
.line-clamp-2, .line-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }
.icon { flex: 0 0 auto; }
.badge {
  display: inline-flex; align-items: center; min-height: 28px; padding: 3px 11px;
  color: var(--primary); background: var(--primary-soft); border-radius: 999px; font-size: 13px; font-weight: 700;
}
.eyebrow, .section-kicker {
  display: inline-flex; align-items: center; gap: 9px; color: var(--primary); font-size: 13px;
  font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before, .section-kicker::before { content: ""; width: 26px; height: 3px; border-radius: 9px; background: var(--accent); }
.section-heading { max-width: 740px; margin-bottom: 38px; }
.section-heading.is-center { margin-inline: auto; text-align: center; }
.section-heading.is-center .section-kicker { justify-content: center; }
.section-heading h2 { margin: 9px 0 10px; color: var(--navy); font-size: clamp(28px, 4vw, 42px); line-height: 1.18; letter-spacing: -.03em; }
.section-heading p { margin: 0; color: var(--text-2); font-size: 17px; }
.section-action { display: flex; justify-content: center; margin-top: 36px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: 13px; font-weight: 700; }
.tag-list.light span { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.empty-state { padding: 36px; text-align: center; color: var(--text-2); border: 1px dashed #B8CCE6; border-radius: var(--radius); background: #fff; }

/* Buttons */
.btn {
  min-height: 46px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 700; cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--accent), #FF9A2F); box-shadow: 0 10px 24px rgba(255, 125, 0, .26); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(255, 125, 0, .36); }
.btn-outline { color: var(--navy); background: rgba(255,255,255,.84); border-color: #B7C8DF; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { color: var(--primary); background: var(--primary-soft); }
.btn-light:hover { background: #D7E9FF; }
.btn-block { width: 100%; }
.btn-small { min-height: 38px; padding-inline: 15px; font-size: 14px; }
.btn:disabled { opacity: .65; cursor: wait; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 5px; padding: 0; color: var(--primary); border: 0; background: none; font-weight: 700; cursor: pointer; }
.text-link:hover { color: var(--primary-dark); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--header-h);
  border-bottom: 1px solid transparent; transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .82); border-color: rgba(210, 221, 237, .8);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 9px 28px rgba(25, 59, 108, .09);
}
.nav-wrap { height: 100%; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; color: white; border-radius: 12px; background: linear-gradient(145deg, var(--primary), var(--navy)); box-shadow: 0 8px 20px rgba(22, 93, 255, .22); }
.brand-mark.has-image { background: transparent; box-shadow: none; }
.brand-logo-image { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.brand-copy { display: grid; min-width: 0; line-height: 1.05; }
.brand > span:last-child { display: grid; line-height: 1.05; }
.brand strong { font-size: 23px; letter-spacing: -.04em; }
.brand small { margin-top: 4px; color: var(--text-2); font-size: 11px; letter-spacing: .08em; }
.desktop-nav { margin-left: auto; display: flex; align-items: stretch; height: 100%; }
.desktop-nav a { position: relative; display: flex; align-items: center; padding: 0 16px; color: #243653; font-size: 14px; font-weight: 650; }
.desktop-nav a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary); transform: scaleX(0); transition: transform .22s ease; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--primary); }
.desktop-nav a.active::after { transform: scaleX(1); }
.nav-cta { min-height: 40px; padding-inline: 18px; font-size: 14px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.mobile-menu { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-top: var(--header-h); background: radial-gradient(circle at 78% 30%, rgba(75, 160, 255, .18), transparent 31%), linear-gradient(120deg, #fff 0%, #F4F9FF 55%, #EAF3FF 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(22,93,255,.034) 1px, transparent 1px), linear-gradient(90deg, rgba(22,93,255,.034) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, transparent 8%, #000 60%, transparent); }
.hero-grid { position: relative; min-height: 680px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 50px; }
.hero-copy { z-index: 2; padding: 70px 0 58px; }
.hero-copy h1 { margin: 16px 0 18px; color: var(--navy); font-size: clamp(44px, 6vw, 72px); line-height: 1.04; letter-spacing: -.055em; }
.hero-copy h1 span { color: var(--primary); }
.hero-copy > p { max-width: 620px; margin: 0; color: var(--text-2); font-size: clamp(18px, 2vw, 23px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-tags span { padding: 7px 13px; border-radius: 999px; color: var(--primary-dark); background: rgba(255,255,255,.78); border: 1px solid #CDE0F8; font-size: 13px; font-weight: 700; }
.hero-visual { position: relative; align-self: stretch; min-width: 0; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; mix-blend-mode: multiply; }
.visual-note { position: absolute; right: 6%; bottom: 8%; max-width: 310px; padding: 9px 12px; border: 1px dashed rgba(22,93,255,.45); border-radius: 10px; background: rgba(255,255,255,.78); color: var(--primary-dark); font-size: 11px; backdrop-filter: blur(8px); }
.stats-strip { position: relative; z-index: 4; margin-top: -38px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid rgba(201,216,237,.86); border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.stat-item { position: relative; padding: 28px 18px; text-align: center; }
.stat-item:not(:last-child)::after { content: ""; position: absolute; top: 24%; right: 0; bottom: 24%; width: 1px; background: var(--line); }
.stat-item strong { display: block; color: var(--navy); font-size: 37px; line-height: 1; letter-spacing: -.04em; }
.stat-item strong i { color: var(--accent); font-size: 18px; font-style: normal; }
.stat-item span { display: block; margin-top: 8px; color: var(--text-2); font-size: 14px; }

/* Features */
.feature-card { position: relative; min-height: 218px; padding: 28px; transition: transform .23s ease, box-shadow .23s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.feature-icon { width: 56px; height: 56px; display: grid; place-items: center; color: var(--primary); border-radius: 16px; background: linear-gradient(145deg, #EEF6FF, #DDEEFF); border: 1px solid #D1E4FA; }
.feature-card h3 { margin: 18px 0 7px; color: var(--navy); font-size: 21px; }
.feature-card p { margin: 0; color: var(--text-2); font-size: 14px; }

/* Course Cards */
.course-card { display: flex; flex-direction: column; transition: transform .23s ease, box-shadow .23s ease; }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.course-cover { position: relative; aspect-ratio: 8 / 5; overflow: hidden; background: #EFF5FC; }
.course-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.course-card:hover .course-cover img { transform: scale(1.035); }
.course-cover .badge { position: absolute; left: 16px; top: 16px; background: rgba(255,255,255,.9); }
.course-card .card-body { display: flex; flex-direction: column; flex: 1; }
.course-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 20px; line-height: 1.35; }
.course-card .muted { margin: 0; min-height: 51px; font-size: 14px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 15px; margin: 18px 0 14px; color: var(--text-2); font-size: 13px; }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.mini-list { margin: 0 0 20px; padding: 0; list-style: none; }
.mini-list li { display: flex; align-items: center; gap: 8px; margin: 7px 0; color: #33435D; font-size: 14px; }
.mini-list .icon { color: var(--success); }
.course-card .btn { margin-top: auto; }

/* Download promo */
.download-promo { background: linear-gradient(135deg, #061B4C, #0D3985 62%, #1269C8); }
.promo-panel { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 60px; color: #fff; }
.promo-copy h2 { margin: 10px 0 16px; font-size: clamp(32px, 5vw, 50px); line-height: 1.12; letter-spacing: -.04em; }
.promo-copy p { max-width: 650px; color: rgba(255,255,255,.72); font-size: 17px; }
.promo-copy .tag-list { margin: 24px 0 28px; }
.promo-image { position: relative; padding: 18px; border: 1px solid rgba(255,255,255,.15); border-radius: 28px; background: rgba(255,255,255,.08); box-shadow: inset 0 1px rgba(255,255,255,.18); }
.promo-image img { border-radius: 18px; }
.promo-image span { display: block; margin-top: 10px; color: rgba(255,255,255,.55); font-size: 11px; text-align: center; }

/* Teachers, Cases, News */
.teacher-card, .case-card, .news-card { transition: transform .23s ease, box-shadow .23s ease; }
.teacher-card:hover, .case-card:hover, .news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.teacher-photo { aspect-ratio: 5 / 4; overflow: hidden; background: #EAF2FC; }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.teacher-title { display: flex; justify-content: space-between; gap: 15px; }
.teacher-title h3 { margin: 0; color: var(--navy); font-size: 22px; }
.teacher-title p { margin: 2px 0 0; color: var(--primary); font-size: 13px; font-weight: 700; }
.years { height: fit-content; padding: 5px 9px; border-radius: 999px; color: var(--accent-dark); background: #FFF0E1; font-size: 12px; font-weight: 800; white-space: nowrap; }
.teacher-card .tag-list { margin: 16px 0; }
.teacher-card .muted { margin: 0; font-size: 14px; }
.teacher-detail { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.teacher-detail strong { color: var(--navy); font-size: 14px; }
.teacher-detail p { margin: 5px 0 0; color: var(--text-2); font-size: 14px; }
.case-cover { position: relative; aspect-ratio: 8 / 5; overflow: hidden; background: #EDF4FC; }
.case-cover img { width: 100%; height: 100%; object-fit: cover; }
.case-cover span { position: absolute; left: 14px; top: 14px; padding: 5px 10px; border-radius: 999px; color: #fff; background: rgba(7,30,84,.8); font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); }
.case-card h3, .news-card h3 { margin: 0; color: var(--navy); font-size: 19px; line-height: 1.42; }
.case-card p, .news-card p { margin: 9px 0 0; font-size: 14px; }
.news-card > img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.news-meta { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 12px; color: var(--text-3); font-size: 12px; }
.news-meta span { color: var(--primary); font-weight: 700; }
.news-card .text-link { margin-top: 17px; }

/* Booking */
.booking-section { background: radial-gradient(circle at 15% 50%, rgba(22,93,255,.12), transparent 30%), #EEF4FB; }
.booking-panel { display: grid; grid-template-columns: 1fr .95fr; gap: 65px; align-items: center; padding: 48px; border-radius: 26px; color: #fff; background: linear-gradient(135deg, #061B4C, #0B3D8C); box-shadow: 0 24px 70px rgba(7,30,84,.22); }
.booking-panel h2 { margin: 10px 0 12px; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; }
.booking-panel > div:first-child > p { color: rgba(255,255,255,.7); }
.booking-points { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 24px; }
.booking-points span { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.84); font-size: 14px; }
.booking-points .icon { color: #69D7B1; }
.booking-form-card { padding: 26px; border-radius: 18px; background: rgba(255,255,255,.98); color: var(--text); box-shadow: 0 18px 45px rgba(0,0,0,.13); }
.compact-booking { grid-template-columns: 1fr auto; }

/* Forms */
.lead-form .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lead-form.is-compact .form-grid { grid-template-columns: 1fr; }
.lead-form label { display: grid; gap: 7px; color: #33435D; font-size: 13px; font-weight: 650; }
.lead-form label.full { grid-column: 1 / -1; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; min-height: 46px; padding: 11px 13px; color: var(--text); background: #fff;
  border: 1px solid #D3DCE8; border-radius: 10px; outline: 0; transition: border .2s, box-shadow .2s;
}
.lead-form textarea { resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,93,255,.10); }
.field-error { min-height: 18px; color: var(--danger); font-size: 12px; font-weight: 500; }
.privacy-check { display: flex !important; grid-template-columns: auto 1fr; align-items: flex-start; gap: 9px !important; margin: 14px 0; color: var(--text-2) !important; font-size: 12px !important; font-weight: 500 !important; }
.privacy-check input { width: 16px; min-height: 16px; margin-top: 2px; accent-color: var(--primary); }
.privacy-check a { color: var(--primary); }
.btn-submit { width: 100%; }

/* Footer */
.site-footer { padding: 68px 0 24px; color: rgba(255,255,255,.74); background: linear-gradient(135deg, #06163F, #0B2E6D); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; }
.brand-light { color: #fff; }
.brand-light small { color: rgba(255,255,255,.58); }
.footer-brand p { max-width: 380px; margin: 18px 0 0; }
.footer-grid h3 { margin: 0 0 17px; color: #fff; font-size: 15px; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 9px; }
.footer-grid a:hover { color: #fff; }
.footer-grid span, .footer-grid a, .footer-grid p { font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.46); font-size: 12px; }

/* Floating service */
.floating-service { position: fixed; z-index: 900; right: 18px; top: 50%; transform: translateY(-50%); overflow: hidden; border: 1px solid rgba(208,221,238,.9); border-radius: 16px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.floating-service a, .floating-service button { width: 62px; height: 65px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--primary); cursor: pointer; }
.floating-service > :last-child { border-bottom: 0; }
.floating-service span { display: grid; place-items: center; }
.floating-service em { color: var(--text-2); font-size: 11px; font-style: normal; }
.floating-service a:hover, .floating-service button:hover { background: var(--primary); color: #fff; }
.floating-service a:hover em, .floating-service button:hover em { color: #fff; }

/* Page hero */
.page-hero { padding: calc(var(--header-h) + 54px) 0 54px; overflow: hidden; background: radial-gradient(circle at 82% 35%, rgba(22,93,255,.16), transparent 27%), linear-gradient(125deg, #fff, #EAF3FF); }
.page-hero-grid { min-height: 300px; display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 40px; }
.page-hero h1 { margin: 10px 0 8px; color: var(--navy); font-size: clamp(42px, 6vw, 66px); line-height: 1.08; letter-spacing: -.05em; }
.page-hero p { max-width: 620px; margin: 0; color: var(--text-2); font-size: 18px; }
.page-hero img { width: 100%; max-height: 330px; object-fit: contain; mix-blend-mode: multiply; }
.download-page-hero .page-hero-grid { min-height: 390px; }
.download-page-hero img { max-height: 390px; object-fit: cover; object-position: center; border-radius: 30px; }
.contact-page-hero img { max-height: 340px; object-fit: cover; object-position: 62% center; }
.simple-hero { padding: calc(var(--header-h) + 70px) 0 55px; background: linear-gradient(135deg, #fff, #EAF3FF); }
.simple-hero h1 { margin: 10px 0; color: var(--navy); font-size: clamp(38px, 6vw, 58px); }
.simple-hero p { color: var(--text-2); }

/* Tabs */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-tabs button { min-height: 42px; padding: 0 20px; border: 1px solid #CAD7E8; border-radius: 999px; background: #fff; color: var(--text-2); font-weight: 700; cursor: pointer; transition: .2s; }
.filter-tabs button:hover, .filter-tabs button.active { color: #fff; border-color: var(--primary); background: var(--primary); box-shadow: 0 8px 20px rgba(22,93,255,.2); }
.course-grid .course-card[hidden], .news-grid .news-card[hidden], .software-card[hidden] { display: none; }

/* Course path / fixed bar */
.path-steps { display: grid; grid-template-columns: 1fr 60px 1fr 60px 1fr 60px 1fr; align-items: center; }
.path-steps > div { min-height: 170px; padding: 26px; text-align: center; border: 1px solid #D6E3F2; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.path-steps span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: var(--primary); font-weight: 800; }
.path-steps h3 { margin: 13px 0 5px; color: var(--navy); }
.path-steps p { margin: 0; color: var(--text-2); font-size: 13px; }
.path-steps > i { height: 2px; background: linear-gradient(90deg, #C4D5EA, var(--primary)); }
.has-fixed-enroll { padding-bottom: 86px; }
.fixed-enroll { position: fixed; z-index: 850; inset: auto 0 0; padding: 12px 0; color: #fff; background: rgba(7,30,84,.93); box-shadow: 0 -8px 24px rgba(7,30,84,.18); backdrop-filter: blur(14px); }
.fixed-enroll .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.fixed-enroll strong { display: block; }
.fixed-enroll span { display: block; color: rgba(255,255,255,.66); font-size: 13px; }
.fixed-enroll .container > div:last-child { display: flex; gap: 10px; }
.fixed-enroll .btn { min-height: 42px; }
.fixed-enroll .btn-outline { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.07); }

/* Download page */
.download-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.resource-sidebar { position: sticky; top: calc(var(--header-h) + 20px); overflow: hidden; border: 1px solid #D7E2F0; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.sidebar-title { padding: 21px 20px; color: var(--navy); border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 800; }
.resource-sidebar nav { padding: 12px; }
.resource-sidebar nav button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 12px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); text-align: left; cursor: pointer; }
.resource-sidebar nav button span { min-width: 24px; padding: 1px 6px; text-align: center; border-radius: 999px; background: #EDF2F8; font-size: 11px; }
.resource-sidebar nav button:hover, .resource-sidebar nav button.active { color: #fff; background: linear-gradient(135deg, var(--primary), #3D8CFF); }
.resource-sidebar nav button.active span { color: var(--primary); background: #fff; }
.sidebar-course { margin: 12px; padding: 20px; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #0B2D70, #176CD3); }
.sidebar-course > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.13); }
.sidebar-course h3 { margin: 14px 0 5px; }
.sidebar-course p { margin: 0 0 14px; color: rgba(255,255,255,.7); font-size: 13px; }
.sidebar-course a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.resource-main { min-width: 0; }
.resource-toolbar { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.resource-toolbar h2 { margin: 0; color: var(--navy); }
.resource-toolbar p { margin: 5px 0 0; color: var(--text-2); font-size: 14px; }
.search-box { min-width: 280px; height: 46px; display: flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid #D2DDEA; border-radius: 999px; background: #fff; color: var(--text-3); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; }
.software-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.software-card { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px; border: 1px solid #D7E2F0; border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgba(30,67,124,.07); transition: transform .22s, box-shadow .22s; }
.software-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.software-icon { width: 56px; height: 56px; display: grid; place-items: center; color: var(--primary); border-radius: 14px; background: var(--primary-soft); }
.software-content { min-width: 0; }
.software-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.software-title h3 { display: inline; margin: 0; color: var(--navy); font-size: 17px; }
.software-title > div span { margin-left: 5px; color: var(--primary); font-size: 12px; font-weight: 700; }
.software-title time { color: var(--text-3); font-size: 11px; white-space: nowrap; }
.software-card p { margin: 9px 0 15px; color: var(--text-2); font-size: 13px; }
.software-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.contact-info, .contact-form { padding: 34px; }
.contact-item { display: grid; grid-template-columns: 48px 1fr; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item > span { width: 48px; height: 48px; display: grid; place-items: center; color: var(--primary); border-radius: 13px; background: var(--primary-soft); }
.contact-item h3 { margin: 0 0 3px; color: var(--navy); font-size: 15px; }
.contact-item p, .contact-item a { margin: 0; color: var(--text-2); font-size: 14px; }
.qr-block { display: flex; align-items: center; gap: 18px; margin-top: 24px; padding: 18px; border-radius: 14px; background: #F5F8FC; }
.qr-block img { width: 130px; border-radius: 12px; }
.qr-block p { margin: 0; color: var(--text-2); font-size: 13px; }
.qr-block small { color: var(--text-3); }
.contact-form h2 { margin: 8px 0 4px; color: var(--navy); font-size: 32px; }
.contact-form > p { margin: 0 0 22px; color: var(--text-2); }
.map-panel { overflow: hidden; border: 1px solid #D6E2F0; border-radius: 18px; box-shadow: var(--shadow); }
.map-panel img { width: 100%; }
.equipment-mini { margin-top: 28px; }
.equipment-mini article { padding-bottom: 18px; }
.equipment-mini img { aspect-ratio: 8 / 4; width: 100%; object-fit: cover; }
.equipment-mini h3 { margin: 16px 20px 0; color: var(--navy); }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item { overflow: hidden; border: 1px solid #D7E2F0; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(30,67,124,.05); }
.faq-item button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; color: var(--navy); border: 0; background: transparent; font-weight: 750; text-align: left; cursor: pointer; }
.faq-item button .icon { transition: transform .25s; }
.faq-item.is-open button .icon { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.faq-answer p { overflow: hidden; margin: 0; padding: 0 22px; color: var(--text-2); font-size: 14px; transition: padding .28s; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-item.is-open .faq-answer p { padding-bottom: 21px; }

/* Teacher extras */
.logo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.logo-wall div { min-height: 94px; display: grid; place-items: center; color: #61708B; border: 1px solid #D7E2F0; border-radius: 14px; background: rgba(255,255,255,.85); font-weight: 800; letter-spacing: .05em; }
.equipment-grid article img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.equipment-grid article > div { padding: 22px; }
.equipment-grid h3 { margin: 0 0 7px; color: var(--navy); }
.equipment-grid p { margin: 0; color: var(--text-2); font-size: 14px; }

/* Case page */
.success-ticker { overflow: hidden; padding: 15px 0; color: #fff; background: linear-gradient(90deg, #0A3276, var(--primary)); }
.success-ticker .container { display: flex; align-items: center; gap: 24px; overflow: hidden; }
.success-ticker strong { flex: 0 0 auto; padding-right: 20px; border-right: 1px solid rgba(255,255,255,.25); }
.ticker-window { overflow: hidden; }
.ticker-track { width: max-content; display: flex; gap: 50px; animation: ticker 28s linear infinite; }
.ticker-track span { white-space: nowrap; color: rgba(255,255,255,.82); font-size: 14px; }
@keyframes ticker { to { transform: translateX(-50%); } }
.job-card { position: relative; padding: 26px; }
.job-icon { width: 50px; height: 50px; display: grid; place-items: center; color: var(--primary); border-radius: 14px; background: var(--primary-soft); }
.job-before { margin: 18px 0 7px; color: var(--text-3); font-size: 12px; }
.job-card h3 { margin: 0; color: var(--navy); font-size: 21px; }
.job-card > strong { display: block; margin: 7px 0 4px; color: var(--accent-dark); }
.job-card > p:not(.job-before) { margin: 0; color: var(--text-2); font-size: 13px; }
.privacy-label { display: inline-block; margin-top: 18px; padding: 4px 8px; border-radius: 8px; color: #67758A; background: #EFF3F8; font-size: 10px; }
.review-card { margin: 0; padding: 28px; }
.stars { color: var(--accent); letter-spacing: .15em; }
.review-card > p { min-height: 112px; margin: 16px 0; color: #33435D; font-size: 16px; }
.review-card footer { color: var(--text-3); font-size: 13px; }

/* News */
.news-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; }
.news-page-grid { row-gap: 28px; }

/* Legal */
.legal-content { padding: 44px; }
.legal-content h2 { margin: 28px 0 8px; color: var(--navy); font-size: 23px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--text-2); }

/* Modal */
.modal { position: fixed; z-index: 2000; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,18,48,.64); backdrop-filter: blur(8px); }
.modal-dialog { position: relative; z-index: 1; width: min(700px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 34px; border: 1px solid rgba(255,255,255,.7); border-radius: 22px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.28); animation: modal-in .2s ease-out; }
.modal-large .modal-dialog { width: min(980px, 100%); }
.modal-article .modal-dialog { width: min(800px, 100%); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-close { position: sticky; z-index: 3; top: 0; float: right; width: 40px; height: 40px; display: grid; place-items: center; margin: -15px -15px 0 12px; border: 0; border-radius: 50%; background: #F0F4F9; cursor: pointer; }
.modal-header { padding-right: 25px; }
.modal-header h2 { margin: 10px 0 7px; color: var(--navy); font-size: clamp(26px, 4vw, 36px); line-height: 1.25; }
.modal-header p { margin: 0; color: var(--text-2); }
.detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; margin-top: 26px; }
.detail-grid h3, .modal-services h3, .software-detail-tabs h3 { color: var(--navy); font-size: 17px; }
.outline-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; counter-reset: outline; padding: 0; list-style: none; }
.outline-list li { position: relative; min-height: 54px; display: flex; align-items: center; padding: 10px 12px 10px 45px; border-radius: 10px; background: #F3F7FC; color: #33435D; font-size: 13px; }
.outline-list li::before { counter-increment: outline; content: counter(outline); position: absolute; left: 11px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--primary); font-size: 11px; font-weight: 800; }
.detail-aside { display: grid; gap: 10px; }
.detail-aside > div { padding: 14px; border: 1px solid #DCE5F0; border-radius: 10px; }
.detail-aside span { display: block; color: var(--text-3); font-size: 11px; }
.detail-aside strong { display: block; margin-top: 3px; color: #2D3C54; font-size: 13px; }
.modal-services { margin-top: 20px; }
.modal-services .tag-list span { border-radius: 9px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.software-modal-title { display: grid; grid-template-columns: 64px 1fr; gap: 16px; }
.software-modal-title .software-icon { width: 64px; height: 64px; }
.software-modal-title h2 small { color: var(--primary); font-size: 16px; }
.software-detail-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 25px; }
.software-detail-tabs section { padding: 18px; border: 1px solid #DCE6F1; border-radius: 12px; background: #F8FAFD; }
.software-detail-tabs h3 { margin: 0 0 9px; }
.software-detail-tabs p, .software-detail-tabs li { color: var(--text-2); font-size: 13px; }
.software-detail-tabs ul, .software-detail-tabs ol { margin: 0 0 18px; padding-left: 20px; }
.check-list { padding: 0 !important; list-style: none; }
.check-list li { display: flex; align-items: center; gap: 7px; margin: 9px 0; }
.check-list .icon { color: var(--success); }
.download-lead-form { margin-top: 24px; }
.download-success { padding: 20px 0 10px; text-align: center; }
.success-icon { width: 74px; height: 74px; display: grid; place-items: center; margin: auto; color: #fff; border-radius: 50%; background: var(--success); box-shadow: 0 12px 30px rgba(0,168,112,.25); }
.download-success h2 { margin: 18px 0 4px; color: var(--navy); }
.download-success p { margin: 0; color: var(--text-2); }
.download-links { display: flex; justify-content: center; gap: 12px; margin: 25px 0; }
.safe-note, .article-note { padding: 13px; border-radius: 10px; color: #7A5C2E; background: #FFF7E8; font-size: 12px; text-align: left; }
.article-modal h2 { margin: 10px 0 4px; color: var(--navy); font-size: 34px; line-height: 1.3; }
.article-modal time { color: var(--text-3); font-size: 13px; }
.article-modal img { width: 100%; margin: 24px 0; border-radius: 14px; }
.article-modal > p { color: #33435D; font-size: 16px; line-height: 1.9; }
.wechat-modal { text-align: center; }
.wechat-modal img { width: min(310px, 80%); margin: 0 auto; border-radius: 16px; }
.wechat-modal h2 { margin: 16px 0 5px; color: var(--navy); }
.wechat-modal p { margin: 0; }
.wechat-modal small { color: var(--text-3); }
.toast { position: fixed; z-index: 3000; left: 50%; bottom: 34px; transform: translate(-50%, 25px); max-width: calc(100% - 32px); padding: 12px 18px; color: #fff; border-radius: 10px; background: var(--success); box-shadow: 0 14px 35px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: .25s; }
.toast.error { background: var(--danger); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1080px) {
  .desktop-nav a { padding-inline: 10px; }
  .desktop-nav a::after { left: 10px; right: 10px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr 1fr; min-height: 620px; }
  .hero-copy h1 { font-size: 56px; }
  .download-layout { grid-template-columns: 220px 1fr; }
  .software-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
  .path-steps { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .path-steps > i { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .desktop-nav, .nav-cta { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .mobile-menu { position: absolute; top: calc(100% + 8px); left: 20px; right: 20px; display: grid; gap: 4px; padding: 14px; border: 1px solid #D7E2F0; border-radius: 16px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); transform: translateY(-10px); opacity: 0; visibility: hidden; transition: .2s; }
  .mobile-menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .mobile-menu a:not(.btn) { padding: 11px 13px; border-radius: 9px; color: var(--text-2); font-weight: 650; }
  .mobile-menu a.active { color: var(--primary); background: var(--primary-soft); }
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; padding-top: 35px; }
  .hero-copy { padding-bottom: 0; }
  .hero-visual { min-height: 440px; }
  .hero-visual img { object-position: center; }
  .page-hero-grid { min-height: auto; }
  .page-hero img { max-height: 300px; }
  .promo-panel, .booking-panel, .contact-grid { grid-template-columns: 1fr; }
  .download-layout { grid-template-columns: 1fr; }
  .resource-sidebar { position: static; }
  .resource-sidebar nav { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 15px; }
  .resource-sidebar nav button { flex: 0 0 auto; width: auto; gap: 10px; white-space: nowrap; border: 1px solid #D7E2F0; }
  .sidebar-course { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .software-detail-tabs { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 62px 0; }
  .brand small { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .brand strong { font-size: 21px; }
  .hero-copy { padding-top: 45px; }
  .hero-copy h1 { font-size: 43px; }
  .hero-copy > p { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 330px; }
  .visual-note { left: 5%; right: 5%; bottom: 4%; max-width: none; }
  .stats-strip { margin-top: -18px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat-item { padding: 22px 12px; }
  .stat-item strong { font-size: 31px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .feature-card { min-height: 190px; padding: 20px; }
  .feature-card h3 { font-size: 18px; }
  .feature-card p { font-size: 13px; }
  .promo-panel { gap: 35px; }
  .promo-copy h2 { font-size: 34px; }
  .booking-panel { padding: 28px 20px; gap: 28px; }
  .booking-panel h2 { font-size: 31px; }
  .compact-booking { text-align: left; }
  .lead-form .form-grid { grid-template-columns: 1fr; }
  .lead-form label.full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .floating-service { left: 10px; right: 10px; top: auto; bottom: 8px; transform: none; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 14px; }
  .floating-service a, .floating-service button { width: auto; height: 54px; flex-direction: row; border-right: 1px solid var(--line); border-bottom: 0; }
  .floating-service em { font-size: 12px; }
  .site-footer { padding-bottom: 90px; }
  .page-hero { padding-top: calc(var(--header-h) + 38px); }
  .page-hero h1 { font-size: 43px; }
  .page-hero p { font-size: 16px; }
  .page-hero img { max-height: 250px; }
  .filter-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 5px; }
  .filter-tabs button { flex: 0 0 auto; }
  .path-steps { grid-template-columns: 1fr 1fr; }
  .fixed-enroll { bottom: 62px; }
  .fixed-enroll .container > div:first-child { display: none; }
  .fixed-enroll .container > div:last-child { width: 100%; }
  .fixed-enroll .btn { flex: 1; padding-inline: 9px; font-size: 13px; }
  .has-fixed-enroll { padding-bottom: 155px; }
  .resource-toolbar, .news-toolbar { flex-direction: column; }
  .search-box { width: 100%; min-width: 0; }
  .software-card { grid-template-columns: 44px 1fr; padding: 17px; }
  .software-icon { width: 44px; height: 44px; }
  .software-title { flex-direction: column; }
  .software-actions { align-items: flex-end; }
  .contact-info, .contact-form { padding: 22px; }
  .qr-block { flex-direction: column; text-align: center; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .success-ticker .container { gap: 14px; }
  .success-ticker strong { padding-right: 12px; font-size: 13px; }
  .modal { padding: 10px; }
  .modal-dialog { max-height: calc(100vh - 20px); padding: 24px 18px; border-radius: 17px; }
  .detail-grid { grid-template-columns: 1fr; }
  .outline-list { grid-template-columns: 1fr; }
  .modal-actions, .download-links { flex-direction: column; }
  .modal-actions .btn, .download-links .btn { width: 100%; }
  .article-modal h2 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* 后台内容化与高德地图补充样式 */
.form-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}.amap-container{position:relative;width:100%;height:560px;background:#eaf3ff}.map-fallback{position:absolute;inset:0}.map-fallback>img{width:100%;height:100%;object-fit:cover}.map-fallback-actions{position:absolute;left:28px;bottom:28px;max-width:430px;display:grid;gap:7px;padding:20px 22px;border:1px solid rgba(255,255,255,.8);border-radius:16px;background:rgba(255,255,255,.9);box-shadow:0 18px 45px rgba(11,36,91,.16);backdrop-filter:blur(14px)}.map-fallback-actions strong{color:var(--navy);font-size:20px}.map-fallback-actions span{color:var(--text-2);font-size:14px}.map-fallback-actions .btn{margin-top:6px;width:max-content}.amap-info{padding:4px 6px;min-width:220px}.amap-info strong{color:#0B245B}.amap-info p{margin:5px 0 0;color:#4E5969}.cnc-amap-info{position:relative;box-sizing:border-box;width:max-content;min-width:220px;max-width:320px;padding:14px 18px;border:1px solid rgba(22,93,255,.16);border-radius:12px;background:rgba(255,255,255,.97);box-shadow:0 12px 32px rgba(11,36,91,.18);overflow:visible;white-space:normal;word-break:break-word;line-height:1.5;backdrop-filter:blur(10px)}.cnc-amap-info strong{display:block;margin:0;color:#0B245B;font-size:16px;font-weight:800;line-height:1.45;white-space:normal;overflow:visible}.cnc-amap-info p{display:block;margin:5px 0 0;color:#4E5969;font-size:13px;line-height:1.55;white-space:normal;overflow:visible}.cnc-amap-info-arrow{position:absolute;left:50%;bottom:-9px;width:18px;height:18px;border-right:1px solid rgba(22,93,255,.16);border-bottom:1px solid rgba(22,93,255,.16);background:#fff;transform:translateX(-50%) rotate(45deg)}.hero-visual img,.page-hero img,.promo-image img{filter:none}.visual-note,.promo-image>span{display:none!important}.qr-block img,.wechat-modal img{background:#fff}.page-main{min-height:60vh}
@media(max-width:768px){.amap-container{height:420px}.map-fallback-actions{left:14px;right:14px;bottom:14px;max-width:none;padding:16px}.map-fallback-actions .btn{width:100%}}

/* =========================================================
   V3 布局修复：统一卡片结构、首页数据条和讲师展示
   说明：用于兼容后台内容化后的实际 DOM，避免类名不匹配造成塌陷。
   ========================================================= */
.grid-3 > *, .grid-4 > *, .stats-grid > * { min-width: 0; }
.course-grid, .teacher-grid, .news-grid, .job-grid, .review-grid, .advantage-grid { align-items: stretch; }
.course-card, .teacher-card, .case-card, .news-card { height: 100%; }

/* 首页数据优势：DOM 与样式完全对应，桌面端保持清晰的四列信息层级 */
.stats-grid {
  min-height: 112px;
  overflow: visible;
  border-radius: 20px;
}
.stat-item {
  position: relative;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 22px 24px;
  text-align: left;
}
.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25%;
  right: 0;
  bottom: 25%;
  width: 1px;
  background: var(--line);
}
.stat-icon {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--primary);
  border: 1px solid #D4E5FA;
  border-radius: 15px;
  background: linear-gradient(145deg, #F4F9FF, #E2EFFF);
}
.stat-copy { min-width: 0; }
.stat-copy strong {
  display: block;
  color: var(--navy);
  font-size: clamp(23px, 2.5vw, 32px);
  line-height: 1.05;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.stat-copy > span {
  display: block;
  margin-top: 7px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
}

/* 首页核心优势：复用 feature-card 结构，防止图标、标题和说明挤在一行 */
.advantage-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 28px;
}
.advantage-card .feature-icon { flex: 0 0 auto; }
.advantage-card h3 { margin: 20px 0 8px; }
.advantage-card p { margin: 0; }

/* 课程、案例、资讯卡片采用等高布局 */
.case-card, .news-card { display: flex; flex-direction: column; }
.case-card .card-body, .news-card .card-body { display: flex; flex: 1; flex-direction: column; }
.case-card .muted, .news-card .muted { overflow-wrap: anywhere; }
.news-card .text-link { align-self: flex-start; margin-top: auto; padding-top: 17px; }

/* 讲师卡片：恢复为“人物 + 履历 + 实战项目”视觉，避免大头像占满整卡 */
.teacher-grid { gap: 26px; }
.teacher-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  overflow: visible;
  border-radius: 20px;
  background: rgba(255,255,255,.96);
}
.teacher-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid #D9E6F5;
  border-radius: 14px;
  background: linear-gradient(145deg, #EAF3FF, #F7FAFF);
}
.teacher-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(7,30,84,.18), transparent);
}
.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.teacher-photo .years {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  color: #A94E00;
  background: rgba(255,245,232,.94);
  box-shadow: 0 8px 20px rgba(58,82,119,.10);
  backdrop-filter: blur(10px);
}
.teacher-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 10px 10px;
}
.teacher-title { align-items: flex-start; }
.teacher-title h3 { font-size: 23px; }
.teacher-title p { margin-top: 3px; font-size: 14px; }
.teacher-card .tag-list { margin: 15px 0 13px; }
.teacher-card .tag-list span { padding: 5px 10px; }
.teacher-background {
  min-height: 68px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.65;
}
.teacher-detail { margin-bottom: 16px; }
.teacher-project {
  position: relative;
  min-height: 112px;
  margin-top: auto;
  overflow: hidden;
  border: 1px solid #D8E4F2;
  border-radius: 13px;
  background: #EAF2FC;
}
.teacher-project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,30,84,.82), rgba(7,30,84,.16) 72%);
}
.teacher-project img { width: 100%; height: 112px; object-fit: cover; }
.teacher-project > div {
  position: absolute;
  z-index: 2;
  left: 16px;
  top: 50%;
  max-width: 72%;
  transform: translateY(-50%);
  color: #fff;
}
.teacher-project small { display: block; color: rgba(255,255,255,.72); font-size: 11px; letter-spacing: .08em; }
.teacher-project strong { display: block; margin-top: 4px; font-size: 16px; line-height: 1.35; }
.teacher-full-grid .teacher-background { min-height: 92px; -webkit-line-clamp: 4; }

/* 防止窄桌面和平板上出现文字挤压或卡片溢出 */
@media (max-width: 1080px) {
  .stat-item { gap: 12px; padding-inline: 16px; }
  .stat-icon { flex-basis: 44px; width: 44px; height: 44px; }
  .stat-copy > span { white-space: normal; }
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-item:nth-child(2)::after { display: none; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .teacher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .stats-grid { border-radius: 16px; }
  .stat-item { min-height: 100px; justify-content: flex-start; padding: 18px 14px; }
  .stat-icon { flex-basis: 40px; width: 40px; height: 40px; border-radius: 12px; }
  .stat-copy strong { font-size: 23px; }
  .stat-copy > span { margin-top: 5px; font-size: 12px; }
  .advantage-grid, .advantages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .advantage-card { min-height: 205px; padding: 20px; }
  .advantage-card .feature-icon { width: 48px; height: 48px; }
  .teacher-grid { grid-template-columns: 1fr; }
  .teacher-photo { aspect-ratio: 16 / 9; }
  .teacher-background, .teacher-full-grid .teacher-background { min-height: auto; }
}

/* =========================================================
   V4 下载验证码、学员作品内页与教学设备文章
   ========================================================= */
.case-card,
.equipment-card {
  color: inherit;
  text-decoration: none;
}
.case-card .card-body .text-link { margin-top: auto; padding-top: 15px; }
.equipment-grid .equipment-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  transition: transform .23s ease, box-shadow .23s ease;
}
.equipment-grid .equipment-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.equipment-grid .equipment-card > img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.equipment-grid .equipment-card > div { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.equipment-grid .equipment-card .text-link { margin-top: auto; padding-top: 14px; }
.equipment-mini .equipment-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.equipment-mini .equipment-card > img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.equipment-mini .equipment-card > div { padding: 15px 17px 17px; }
.equipment-mini .equipment-card h3 { margin: 0 0 9px; color: var(--navy); }
.equipment-mini .equipment-card .text-link { font-size: 12px; }

.download-captcha-form { display: grid; gap: 20px; margin-top: 22px; }
.download-captcha-form > label { display: grid; gap: 9px; color: var(--navy); font-weight: 750; }
.captcha-row { display: grid; grid-template-columns: minmax(150px, 1fr) 148px auto; gap: 10px; align-items: center; }
.captcha-row > input {
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #CAD8EA;
  border-radius: 11px;
  outline: 0;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 18px;
  font-weight: 800;
}
.captcha-row > input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,93,255,.10); }
.captcha-image-button { width: 148px; height: 52px; overflow: hidden; padding: 0; border: 1px solid #C7D7EC; border-radius: 11px; background: #EEF5FF; cursor: pointer; }
.captcha-image-button img { display: block; width: 148px; height: 52px; }
.captcha-refresh { height: 52px; padding: 0 14px; border: 1px solid #C7D7EC; border-radius: 11px; color: var(--primary); background: #fff; font-weight: 750; cursor: pointer; }
.captcha-note { margin: -5px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.65; text-align: center; }
.download-captcha-form .field-error { min-height: 18px; color: #D92D20; font-size: 12px; }

.detail-page { background: var(--bg); }
.detail-hero { padding: 130px 0 58px; background: radial-gradient(circle at 82% 22%, rgba(22,93,255,.16), transparent 31%), linear-gradient(145deg,#F7FAFF,#EAF3FF); }
.detail-back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 26px; color: var(--primary); font-size: 14px; font-weight: 750; text-decoration: none; }
.detail-back .icon { transform: rotate(180deg); }
.detail-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, .75fr); align-items: center; gap: 54px; }
.detail-hero .badge { display: inline-flex; margin-right: 12px; }
.detail-hero .eyebrow { display: inline-flex; }
.detail-hero h1 { max-width: 760px; margin: 18px 0 16px; color: var(--navy); font-size: clamp(36px, 5vw, 62px); line-height: 1.1; }
.detail-hero p { max-width: 720px; margin: 0; color: var(--text-2); font-size: 18px; line-height: 1.75; }
.detail-cover { overflow: hidden; border: 1px solid rgba(255,255,255,.85); border-radius: 22px; background: #fff; box-shadow: 0 25px 60px rgba(21,64,126,.16); }
.detail-cover img { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.detail-layout { max-width: 1020px; }
.detail-main { padding: clamp(24px, 4vw, 52px); }
.detail-section + .detail-section { margin-top: 42px; padding-top: 42px; border-top: 1px solid var(--line); }
.detail-section h2 { margin: 0 0 19px; color: var(--navy); font-size: 27px; }
.rich-text p { margin: 0 0 18px; color: #33435D; font-size: 16px; line-height: 1.95; }
.rich-text p:last-child { margin-bottom: 0; }
.detail-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.detail-gallery img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border: 1px solid var(--line); border-radius: 14px; background: #EFF4FA; }
.detail-gallery img:first-child:nth-last-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.detail-video { overflow: hidden; border-radius: 16px; background: #071D4C; box-shadow: 0 18px 42px rgba(7,29,76,.16); }
.detail-video video { display: block; width: 100%; max-height: 620px; background: #071D4C; }
.detail-video-embed { position: relative; aspect-ratio: 16 / 9; }
.detail-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.detail-download { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px !important; border: 1px solid #CFE0F6 !important; border-radius: 16px; background: linear-gradient(135deg,#F7FAFF,#EAF3FF); }
.detail-download h2 { margin-bottom: 6px; font-size: 21px; }
.detail-download p { margin: 0; color: var(--text-2); }
.detail-download .btn { flex: 0 0 auto; }
.detail-not-found { min-height: 74vh; display: grid; align-items: center; padding-top: 130px; }
.detail-not-found .card { padding: 54px; text-align: center; }
.detail-not-found h1 { margin: 12px 0; color: var(--navy); }
.detail-not-found p { margin: 0 auto 25px; color: var(--text-2); }

@media (max-width: 900px) {
  .detail-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .detail-cover { max-width: 720px; }
}
@media (max-width: 640px) {
  .captcha-row { grid-template-columns: minmax(0, 1fr) 130px; }
  .captcha-image-button, .captcha-image-button img { width: 130px; }
  .captcha-refresh { grid-column: 1 / -1; height: 42px; }
  .detail-hero { padding: 102px 0 40px; }
  .detail-hero h1 { font-size: 36px; }
  .detail-hero p { font-size: 16px; }
  .detail-gallery { grid-template-columns: 1fr; }
  .detail-gallery img:first-child:nth-last-child(odd) { grid-column: auto; aspect-ratio: 8 / 5; }
  .detail-download { align-items: stretch; flex-direction: column; }
  .detail-download .btn { width: 100%; }
  .detail-main { border-radius: 16px; }
}

/* =========================================================
   V5：网盘复制、移动端双列内容卡片
   ========================================================= */
.cloud-download-panel{display:grid;gap:10px;margin:24px 0;padding:18px;border:1px solid #CFE0F6;border-radius:14px;background:#F7FAFF;text-align:left}.cloud-download-panel>div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;padding:9px 0;border-bottom:1px solid #E1EAF5}.cloud-download-panel>div:last-child{border-bottom:0}.cloud-download-panel span{color:var(--text-3);font-size:13px}.cloud-download-panel strong{min-width:0;color:var(--navy);font-size:14px;line-height:1.6;overflow-wrap:anywhere}.cloud-download-success .download-links{flex-wrap:wrap}

@media (max-width:640px){
  /* 内容列表在手机端固定为两列，减少单卡过高造成的滚动距离。 */
  .course-grid,.teacher-grid,.case-grid,.news-grid,.equipment-grid,.equipment-mini,.job-grid,.review-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .home-limited-grid>:nth-child(n+5){display:none!important}
  .course-card,.teacher-card,.case-card,.news-card,.equipment-card,.job-card,.review-card{border-radius:14px}
  .course-card .card-body,.case-card .card-body,.news-card .card-body{padding:12px}
  .course-cover .badge{left:8px;top:8px;min-height:23px;padding:2px 7px;font-size:10px}
  .course-card h3,.case-card h3,.news-card h3{font-size:14px;line-height:1.38}
  .course-card .muted,.case-card .muted,.news-card .muted{min-height:auto;font-size:11px;line-height:1.55;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .meta-row{display:grid;gap:5px;margin:10px 0 8px;font-size:10px}.meta-row .icon{width:13px;height:13px}
  .mini-list{margin-bottom:10px}.mini-list li{margin:4px 0;font-size:10px;line-height:1.35}.mini-list li:nth-child(n+3){display:none}.mini-list .icon{width:12px;height:12px}
  .course-card .btn{min-height:36px;padding:0 8px;font-size:11px}.course-card .btn .icon{width:14px;height:14px}
  .teacher-card{padding:6px;border-radius:14px}.teacher-photo{aspect-ratio:4/3;border-radius:10px}.teacher-photo .years{top:7px;right:7px;padding:3px 6px;font-size:9px}
  .teacher-card .card-body{padding:10px 5px 5px}.teacher-title h3{font-size:15px}.teacher-title p{font-size:10px;line-height:1.4}.teacher-card .tag-list{gap:4px;margin:8px 0}.teacher-card .tag-list span{padding:3px 6px;font-size:9px}.teacher-card .tag-list span:nth-child(n+3){display:none}
  .teacher-background,.teacher-full-grid .teacher-background{min-height:0;font-size:10px;line-height:1.5;-webkit-line-clamp:2}.teacher-detail,.teacher-project{display:none}
  .case-cover span{left:8px;top:8px;font-size:9px}.case-card .text-link,.news-card .text-link{padding-top:9px;font-size:10px}.case-card .text-link .icon,.news-card .text-link .icon{width:13px;height:13px}
  .news-meta{gap:4px;font-size:9px}.news-card>img{aspect-ratio:4/3}
  .equipment-grid .equipment-card>div{padding:11px}.equipment-grid .equipment-card h3{font-size:14px}.equipment-grid .equipment-card p{font-size:10px;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.equipment-grid .equipment-card .text-link{font-size:10px;padding-top:8px}
  .job-card,.review-card{padding:14px}.job-card h3{font-size:14px}.job-card p,.job-card small,.review-card p,.review-card footer{font-size:10px}.review-card>span{font-size:24px}
  .section-action{margin-top:24px}.section-action .btn{min-height:42px;font-size:13px}
  .cloud-download-panel>div{grid-template-columns:1fr;gap:4px}
}

@media(max-width:768px){.cnc-amap-info{min-width:180px;max-width:min(280px,calc(100vw - 48px));padding:11px 14px}.cnc-amap-info strong{font-size:14px}.cnc-amap-info p{font-size:12px}}

/* =========================================================
   V5.4 软件图文详情与可选课程信息
   ========================================================= */
.software-modal-title time{display:inline-block;margin-top:7px;color:var(--muted);font-size:12px}
.software-rich-intro{margin-top:22px;color:var(--text);font-size:15px;line-height:1.8;word-break:break-word}
.software-rich-intro p{margin:0 0 14px}.software-rich-intro p:last-child{margin-bottom:0}
.software-rich-intro h3,.software-rich-intro h4{margin:24px 0 10px;color:var(--navy)}
.software-rich-intro ul,.software-rich-intro ol{margin:12px 0;padding-left:24px}
.software-rich-intro blockquote{margin:16px 0;padding:12px 16px;border-left:3px solid var(--blue);border-radius:0 9px 9px 0;background:#F5F8FC;color:var(--muted)}
.software-rich-intro img{display:block;max-width:100%;height:auto;margin:18px auto;border-radius:12px;box-shadow:0 12px 30px rgba(22,55,100,.12)}
.software-changelog{margin-top:24px;padding:18px 20px;border:1px solid var(--line);border-radius:12px;background:#F8FAFD}
.software-changelog h3{margin:0 0 11px;color:var(--navy)}
.software-changelog ul{margin:0;padding-left:20px;color:var(--muted);line-height:1.75}
.detail-summary{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
@media(max-width:600px){.software-rich-intro{font-size:14px}.software-rich-intro img{margin:13px auto;border-radius:9px}.software-changelog{padding:15px}.detail-summary{grid-template-columns:1fr}}
