/* ============================================================
   云枢科技 · 企业官网首页
   结构：变量 → 重置 → 基础组件 → 各区块 → 响应式 → 动效降级
   ============================================================ */

/* -------------------- 1. 设计变量 -------------------- */
:root {
  /* 品牌色：取自粤登科 logo 主色（约 #004090），金色点缀"登科"意象 */
  --brand-700: #083a7c;
  --brand-600: #0a4796;
  --brand-500: #2a6cb8;
  --brand-100: #d9e6f6;
  --brand-50:  #eef4fb;
  --accent:    #c8963e;   /* 装饰用金色，不作正文文字色 */
  --gold:      #96690f;   /* 文字用深金，保证对比度 */

  /* 中性色（正文对比度 ≥ 4.5:1） */
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --line:    #e2e8f0;
  --line-soft: #eef2f7;

  --bg:      #ffffff;
  --bg-soft: #f8fafc;

  /* 圆角 / 阴影 */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 8px 28px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .04);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12), 0 8px 20px rgba(15, 23, 42, .06);
  --shadow-brand: 0 10px 26px rgba(10, 71, 150, .28);

  /* 布局 */
  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --header-h: 70px;

  /* 字体 */
  --font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
               "Noto Sans CJK SC", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* -------------------- 2. 重置 -------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
svg { flex-shrink: 0; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color .2s var(--ease);
}

button { font: inherit; color: inherit; }

/* 键盘聚焦：仅在键盘导航时显示，鼠标点击不显示 */
:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--brand-100); color: var(--ink-900); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 50%; top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: .7rem 1.2rem;
  background: var(--ink-900);
  color: #fff;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: .9rem;
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

/* -------------------- 3. 布局工具 -------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.6rem, 7vw, 6.2rem); }
.section-soft { background: var(--bg-soft); }

/* 锚点跳转时避开吸顶导航，否则标题会被盖住 */
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.eyebrow {
  display: inline-block;
  margin-bottom: .75rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.section-head h2 {
  font-size: clamp(1.55rem, 1.15rem + 1.7vw, 2.35rem);
  margin-bottom: .85rem;
}

.section-sub {
  color: var(--ink-600);
  font-size: clamp(.98rem, .94rem + .2vw, 1.08rem);
}

.text-gradient {
  /* 主标题渐变只用蓝色系，金色在白底上对比度不足，不能用于文字 */
  background: linear-gradient(100deg, var(--brand-600) 4%, #2f74d8 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -------------------- 4. 按钮 -------------------- */
.btn {
  --btn-py: .72rem;
  --btn-px: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: var(--btn-py) var(--btn-px);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease),
              background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(10,71,150,.34); }

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-700);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { border-color: var(--ink-400); color: var(--ink-900); transform: translateY(-2px); }

.btn-lg { --btn-py: .92rem; --btn-px: 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* -------------------- 5. 页头 -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(15, 23, 42, .05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink-900);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -.01em;
}
.brand:hover { color: var(--ink-900); }

/* 图片版 logo（圆形徽章，透明底） */
.brand-mark { display: block; width: 34px; height: 34px; object-fit: contain; }

.brand-name small {
  margin-left: .22rem;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink-400);
  vertical-align: middle;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2.2rem); }

.nav-list { display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 1.9rem); }

.nav-list a {
  position: relative;
  color: var(--ink-600);
  font-size: .94rem;
  font-weight: 500;
  padding-block: .35rem;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brand-600);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-list a:hover { color: var(--ink-900); }
.nav-list a:hover::after { transform: scaleX(1); }

.nav-cta { --btn-py: .62rem; --btn-px: 1.15rem; font-size: .9rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 19px; height: 2px;
  margin: 4px auto;
  background: var(--ink-900);
  border-radius: 2px;
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* -------------------- 6. 首屏 -------------------- */
.hero {
  position: relative;
  padding-block: clamp(2.8rem, 6vw, 5.4rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 78%;
  background:
    radial-gradient(52% 60% at 78% 18%, rgba(6, 182, 212, .16), transparent 70%),
    radial-gradient(48% 58% at 18% 8%, rgba(10, 71, 150, .14), transparent 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .38rem .85rem .38rem .6rem;
  margin-bottom: 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-600);
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .18);
}

.hero h1 {
  font-size: clamp(2rem, 1.15rem + 3.5vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -.03em;
  margin-bottom: 1.15rem;
}

.lede {
  max-width: 34rem;
  font-size: clamp(1rem, .95rem + .3vw, 1.12rem);
  color: var(--ink-600);
  margin-bottom: 1.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 1.9rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  font-size: .875rem;
  color: var(--ink-500);
}
.hero-points li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-points svg { color: var(--brand-600); }

/* 首屏看板（纯 CSS/SVG 绘制） */
.hero-visual {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: .8rem;
}

.dash-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.dash-main {
  flex: 1 1 100%;
  max-width: 400px;
  padding: 1.4rem 1.4rem 1.2rem;
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.dash-title { font-size: .87rem; font-weight: 600; color: var(--ink-700); }
.dash-tag {
  font-size: .72rem;
  font-weight: 600;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: .16rem .55rem;
  border-radius: 999px;
}

.dash-metric { display: flex; align-items: baseline; gap: .55rem; margin-bottom: 1.2rem; }
.dash-metric strong {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink-900);
  line-height: 1;
}
.dash-metric strong small { font-size: 1.05rem; font-weight: 700; color: var(--brand-600); }
.dash-metric span { font-size: .8rem; color: var(--ink-500); }

/* 课程结构卡：8 天集训 / 4 天冲刺 */
.plan-row {
  display: flex;
  align-items: center;
  gap: .95rem;
  padding-block: 1.1rem;
}

.plan-row strong {
  flex: 0 0 3.1rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}
.plan-row strong small {
  margin-left: .08rem;
  font-size: .76rem;
  font-weight: 700;
  color: var(--brand-600);
}

.plan-row b {
  display: block;
  margin-bottom: .1rem;
  font-size: .93rem;
  color: var(--ink-900);
}
.plan-row em {
  font-style: normal;
  font-size: .77rem;
  color: var(--ink-500);
}

.plan-divider { height: 1px; background: var(--line-soft); }

.dash-float {
  flex: 1 1 calc(50% - .5rem);
  max-width: 196px;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem .95rem;
  box-shadow: var(--shadow-md);
}
.dash-float b { display: block; font-size: .82rem; color: var(--ink-900); }
.dash-float em { font-style: normal; font-size: .72rem; color: var(--ink-500); }

/* 两个小卡片为静态展示（应用户要求去除漂浮动画） */
.dash-float-a { transform: none; }
.dash-float-b {
  flex-direction: column;
  align-items: stretch;
  gap: .45rem;
  transform: none;
}

.ring {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: .88rem;
  font-weight: 800;
  color: var(--brand-700);
  background:
    radial-gradient(closest-side, #fff 76%, transparent 78%),
    conic-gradient(var(--brand-600) 98%, var(--brand-100) 0);
}
.ring small { font-size: .6rem; }

.float-row { display: flex; align-items: center; justify-content: space-between; }
.float-row b { font-size: .78rem; }
.ok { font-size: .7rem; font-weight: 600; color: #047857; background: #ecfdf5; padding: .1rem .45rem; border-radius: 999px; }

.progress {
  height: 6px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-600), #5b8fdc);
}

/* -------------------- 7. 客户信任条 -------------------- */
.logos {
  padding-block: 2.2rem;
  border-block: 1px solid var(--line-soft);
  background: #fcfdfe;
}
.logos-label {
  text-align: center;
  font-size: .82rem;
  color: var(--ink-400);
  margin-bottom: 1.1rem;
}
.logos-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem clamp(1.4rem, 4vw, 3.2rem);
}
.logos-list li {
  font-size: clamp(.95rem, .9rem + .2vw, 1.06rem);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink-400);
  filter: grayscale(1);
  transition: color .25s var(--ease), filter .25s var(--ease);
}
.logos-list li:hover { color: var(--ink-700); filter: none; }

/* -------------------- 8. 数据指标 -------------------- */
.stats { padding-block: clamp(2.6rem, 5vw, 4rem); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
}

.stat {
  text-align: center;
  padding: 1.4rem .6rem;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: 0; }

.stat strong {
  display: block;
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink-900);
  line-height: 1.1;
  margin-bottom: .3rem;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: .875rem; color: var(--ink-500); }

/* -------------------- 9. 解决方案 -------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(.9rem, 2vw, 1.25rem);
}

.service-card {
  padding: 1.6rem 1.5rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: #c9dbfb;
  box-shadow: var(--shadow-md);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 1.05rem;
  border-radius: 13px;
  background: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid var(--brand-100);
}

.service-card h3 { font-size: 1.08rem; margin-bottom: .55rem; }
.service-card > p { font-size: .91rem; color: var(--ink-600); margin-bottom: 1rem; }

.service-list { display: grid; gap: .4rem; }
.service-list li {
  position: relative;
  padding-left: 1rem;
  font-size: .84rem;
  color: var(--ink-500);
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .68em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-500);
  opacity: .55;
}

/* -------------------- 10. 案例 -------------------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.9rem, 2vw, 1.25rem);
}

.case-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.case-feature { grid-column: span 3; flex-direction: row; }
.case-feature .case-visual { flex: 0 0 42%; }

.case-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 170px;
  overflow: hidden;
  isolation: isolate;
}
.case-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .6;
  z-index: -1;
}
.case-visual span {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
  opacity: .92;
}

.vis-logistics { background: linear-gradient(135deg, #1d4ed8, #06b6d4); }
.vis-chip      { background: linear-gradient(135deg, #4338ca, #7c3aed); }
.vis-retail    { background: linear-gradient(135deg, #0e7490, #14b8a6); }
.vis-insure    { background: linear-gradient(135deg, #1e3a8a, #0ea5e9); }

.case-body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; }

.case-tag {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 600;
  color: var(--brand-700);
  background: var(--brand-50);
  border-radius: 999px;
  padding: .16rem .6rem;
  margin-bottom: .7rem;
}

.case-body h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.case-body > p { font-size: .9rem; color: var(--ink-600); margin-bottom: 1.1rem; }

.case-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.6rem;
  margin: auto 0 0;
  padding-top: .9rem;
  border-top: 1px solid var(--line-soft);
}
.case-metrics div { display: grid; gap: .1rem; }
.case-metrics dt { font-size: .72rem; color: var(--ink-500); }
.case-metrics dd {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--brand-700);
  font-variant-numeric: tabular-nums;
}

/* 合规声明：培训机构不能承诺考试结果，这类小字必须保留 */
.legal-note {
  margin-top: 1.6rem;
  font-size: .78rem;
  line-height: 1.7;
  color: var(--ink-400);
  text-align: center;
}

/* -------------------- 课程班型 -------------------- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.5rem);
}

.course-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.course-card:hover {
  transform: translateY(-4px);
  border-color: #c9dbfb;
  box-shadow: var(--shadow-md);
}

.course-head { margin-bottom: .9rem; }

.course-badge {
  display: inline-block;
  margin-bottom: .75rem;
  padding: .18rem .65rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--gold);
  background: #fdf7ea;
  border: 1px solid #f0e2c6;
  border-radius: 999px;
}

.course-card h3 { font-size: clamp(1.14rem, 1rem + .5vw, 1.4rem); }

.course-desc {
  font-size: .92rem;
  color: var(--ink-600);
  margin-bottom: 1.25rem;
}

.course-points { display: grid; gap: .55rem; margin-bottom: 1.4rem; }
.course-points li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .88rem;
  color: var(--ink-700);
}
.course-points svg { flex: 0 0 auto; margin-top: .28em; color: var(--brand-600); }

.course-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
  padding-top: 1.05rem;
  border-top: 1px solid var(--line-soft);
  font-size: .9rem;
  font-weight: 600;
  color: var(--brand-600);
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.course-link:hover { gap: .6rem; color: var(--brand-700); }

/* -------------------- 上课安排 -------------------- */
.plan-list { display: grid; gap: 1rem; }

.plan-block {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1.4rem, 3vw, 1.9rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.plan-block:hover { border-color: #c9dbfb; box-shadow: var(--shadow-sm); }

.plan-day {
  padding-right: 1rem;
  text-align: center;
  border-right: 1px solid var(--line-soft);
}
.plan-day strong {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--brand-600);
}
.plan-day span { font-size: .8rem; color: var(--ink-500); }

.plan-body h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.plan-body p { font-size: .9rem; color: var(--ink-600); margin-bottom: .95rem; }

.plan-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.plan-tags li {
  font-size: .76rem;
  color: var(--ink-600);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .18rem .65rem;
}

/* -------------------- 师资团队（样式保留，待补充真实师资后启用） -------------------- */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(.9rem, 2vw, 1.25rem);
}

.teacher-card {
  padding: 1.55rem 1.4rem 1.45rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.teacher-card:hover {
  transform: translateY(-4px);
  border-color: #c9dbfb;
  box-shadow: var(--shadow-md);
}

.teacher-avatar {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-600), #3b74d4);
  color: #fff;
  font-size: 1.12rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(10, 71, 150, .22);
}

.teacher-card h3 { font-size: 1.05rem; margin-bottom: .12rem; }

.teacher-role {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: .7rem;
}

.teacher-desc {
  font-size: .87rem;
  color: var(--ink-600);
  margin-bottom: 1rem;
}

.teacher-tag {
  display: inline-block;
  font-size: .73rem;
  color: var(--ink-600);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .14rem .6rem;
}

/* -------------------- 11. 流程 -------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.9rem, 2vw, 1.3rem);
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.5rem 1.35rem 1.4rem;
  background: linear-gradient(180deg, #fff, #fbfdff);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.step:hover { border-color: #c9dbfb; box-shadow: var(--shadow-sm); }

/* 步骤之间的连接箭头 */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.6rem;
  right: -1.3rem;
  width: 1.3rem;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.step-num {
  display: block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--brand-500);
  margin-bottom: .7rem;
}

.step h3 { font-size: 1.02rem; margin-bottom: .5rem; }
.step p { font-size: .88rem; color: var(--ink-600); margin-bottom: 1rem; }

.step-out {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink-600);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .16rem .6rem;
}

/* -------------------- 12. 评价轮播 -------------------- */
.quotes { max-width: 52rem; margin-inline: auto; }

.quote-viewport { overflow: hidden; border-radius: var(--r-xl); }

.quote-track {
  display: flex;
  transition: transform .55s var(--ease);
  will-change: transform;
}

.quote {
  flex: 0 0 100%;
  margin: 0;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}

.quote blockquote {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, .95rem + .45vw, 1.2rem);
  line-height: 1.75;
  color: var(--ink-900);
  font-weight: 500;
  letter-spacing: -.005em;
}

.quote figcaption { display: flex; align-items: center; gap: .75rem; }

.avatar {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-600), #4278cf);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
}

.quote figcaption b { display: block; font-size: .9rem; color: var(--ink-900); }
.quote figcaption em { font-style: normal; font-size: .8rem; color: var(--ink-500); }

.quote-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.4rem;
}

.quote-btn {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-600);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.quote-btn:hover { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }

.quote-dots { display: flex; gap: .4rem; }
.quote-dots button {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: width .3s var(--ease), background-color .3s var(--ease);
}
.quote-dots button.is-active { width: 24px; background: var(--brand-600); }

/* -------------------- 13. FAQ -------------------- */
.faq-wrap { max-width: 54rem; }
.faq-list { display: grid; gap: .7rem; }

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.faq-item:hover { border-color: #c9dbfb; }
.faq-item h3 { margin: 0; font-size: inherit; font-weight: inherit; }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.05rem 1.25rem;
  background: transparent;
  border: 0;
  text-align: left;
  font-size: .98rem;
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
}

.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: background-color .22s var(--ease), border-color .22s var(--ease);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 9px; height: 1.6px;
  background: var(--ink-600);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .26s var(--ease), background-color .22s var(--ease);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-q[aria-expanded="true"] .faq-icon { background: var(--brand-600); border-color: var(--brand-600); }
.faq-q[aria-expanded="true"] .faq-icon::before,
.faq-q[aria-expanded="true"] .faq-icon::after { background: #fff; }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

/* grid 0fr → 1fr 实现高度自适应展开，无需 JS 计算 */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s var(--ease);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

.faq-a-inner { overflow: hidden; }
.faq-a-inner p {
  padding: 0 1.25rem 1.15rem;
  margin: 0;
  font-size: .92rem;
  color: var(--ink-600);
}

/* -------------------- 14. 联系表单 -------------------- */
.contact { background: var(--bg-soft); }

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-points { display: grid; gap: .55rem; margin-top: 1.5rem; }
.contact-points li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: var(--ink-600);
}
.contact-points svg { color: var(--brand-600); }

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .9rem;
  margin-top: 1.8rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.contact-direct span { color: var(--ink-500); }
.contact-direct a { font-weight: 600; color: var(--ink-900); }
.contact-direct a:hover { color: var(--brand-600); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: clamp(1.3rem, 3vw, 1.9rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.field { display: grid; gap: .35rem; }
.field-full { grid-column: 1 / -1; }

.field label {
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-700);
}
.field label span { color: #dc2626; margin-left: .15rem; }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: .72rem .85rem;
  font-family: inherit;
  font-size: .94rem;
  color: var(--ink-900);
  background-color: #fcfdfe;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }

/* 下拉框：去掉系统箭头，换内联 SVG，保证各浏览器外观一致 */
.field select {
  padding-right: 2.3rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.6L6 6.6l5-5' fill='none' stroke='%2364748b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
  cursor: pointer;
}
/* 未选择时显示为占位灰，选完恢复正文色 */
.field select:invalid { color: var(--ink-400); }

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-400); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(10, 71, 150, .16);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.field-error {
  min-height: 0;
  font-size: .78rem;
  color: #dc2626;
}
.field-error:empty { display: none; }

.form-note { font-size: .78rem; color: var(--ink-400); text-align: center; margin-top: .1rem; }

.form-status {
  font-size: .86rem;
  text-align: center;
  margin-top: .4rem;
  color: #047857;
  font-weight: 600;
}
.form-status:empty { display: none; }
.form-status.is-ok { color: #047857; }
.form-status.is-error { color: #b91c1c; }

/* 蜜罐字段：移出可视区而非 display:none，否则部分脚本会跳过不填 */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* -------------------- 15. 页脚 -------------------- */
.site-footer {
  background: #0b1220;
  color: #94a3b8;
  padding-top: clamp(2.6rem, 5vw, 3.8rem);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr);
  gap: clamp(1.8rem, 5vw, 3.5rem);
  padding-bottom: 2.4rem;
}

.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand .brand:hover { color: #fff; }
.footer-brand .brand-name small { color: #64748b; }

/* 深色页脚上给透明底徽章加白色圆托，避免抠图细边外露 */
.footer-brand .brand-mark {
  width: 30px; height: 30px;
  box-sizing: content-box;
  padding: 4px;
  background: #fff;
  border-radius: 50%;
}

/* 品牌 slogan（logo 上的文字行） */
.footer-brand .brand-slogan {
  margin-bottom: .8rem;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: #e3b662;
}
.footer-brand p { font-size: .88rem; line-height: 1.8; color: #7c8ca3; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.footer-nav h3 {
  font-size: .82rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: .06em;
  margin-bottom: .9rem;
}
.footer-nav ul { display: grid; gap: .5rem; }
.footer-nav a { color: #7c8ca3; font-size: .88rem; }
.footer-nav a:hover { color: #fff; }
.footer-nav li { font-size: .88rem; color: #64748b; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding-block: 1.2rem 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .8rem;
  color: #64748b;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.footer-legal a { color: #94a3b8; }
.footer-legal a:hover { color: #cbd5e1; }

/* -------------------- 16. 回到顶部 -------------------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.8rem);
  bottom: clamp(1rem, 3vw, 1.8rem);
  z-index: 80;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-700);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: var(--brand-600); border-color: var(--brand-100); }

/* -------------------- 17. 滚动入场动画 -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* 同组元素依次进入 */
.services-grid .reveal:nth-child(2) { transition-delay: .06s; }
.services-grid .reveal:nth-child(3) { transition-delay: .12s; }
.services-grid .reveal:nth-child(4) { transition-delay: .18s; }
.services-grid .reveal:nth-child(5) { transition-delay: .06s; }
.services-grid .reveal:nth-child(6) { transition-delay: .12s; }
.steps .reveal:nth-child(2) { transition-delay: .08s; }
.steps .reveal:nth-child(3) { transition-delay: .16s; }
.steps .reveal:nth-child(4) { transition-delay: .24s; }

/* -------------------- 18. 响应式 -------------------- */
/* 平板：2 列案例、2 列流程 */
@media (max-width: 1024px) {
  .cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-feature { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
}

/* 小屏平板 / 大手机：首屏单列，导航折叠 */
@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: 2; margin-top: 1.1rem; }
  .hero-copy { order: 1; }
  .dash-main { transform: none; max-width: 440px; }

  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }

  /* 移动端导航抽屉 */
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 1.2rem var(--gutter) 2rem;
    background: #fff;
    border-top: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li + li { border-top: 1px solid var(--line-soft); }
  .nav-list a { display: block; padding: 1rem .2rem; font-size: 1.02rem; }
  .nav-list a::after { display: none; }

  .nav-cta { margin-top: 1.4rem; align-self: stretch; --btn-py: .85rem; }
}

/* 手机：单列 */
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line-soft); }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-soft); padding-bottom: 1.6rem; }

  .cases-grid { grid-template-columns: 1fr; }
  .case-feature { grid-column: auto; flex-direction: column; }
  .case-feature .case-visual { flex: none; }

  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }

  .contact-form { grid-template-columns: 1fr; }

  /* 上课安排：天数块改为横向，避免窄屏挤压 */
  .plan-block { grid-template-columns: 1fr; }
  .plan-day {
    display: flex;
    align-items: baseline;
    gap: .25rem;
    padding-right: 0;
    padding-bottom: .85rem;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .plan-day strong { font-size: 2.2rem; }

  .footer-nav { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }

  .hero-points { gap: .5rem .9rem; font-size: .82rem; }

  .quote { padding: 1.4rem 1.2rem; }

  .logos-list { gap: .8rem 1.4rem; }
  .logos-list li { font-size: .88rem; }

  .to-top { width: 40px; height: 40px; }
}

@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; }
  .brand-name { font-size: 1rem; }
  /* 极窄屏下浮动卡改为各占一行，避免内容被挤压 */
  .dash-float { flex: 1 1 100%; max-width: none; }
}

/* -------------------- 19. 动效降级 & 打印 -------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .to-top, .quote-controls, .contact-form, .hero-glow { display: none !important; }
  body { color: #000; }
  .section { padding-block: 1.2rem; }
  .case-card, .service-card, .step { break-inside: avoid; }
}
