/* src/styles/tokens.css */

/* ═══ 设计令牌 ═══════════════════════════════════
   象牙底、墨靛文字与陶土行动色；色调取自现场照片（木桌、衣物、窗光）。
   中性色统一为暖石色相，文字灰由墨靛推出，只按明度分级。
   accent 只用于主要操作；highlight 是焦糖色，用于数字与装饰线。
   三项业务各有专属色：课程=雾蓝，活动=焦糖，软件=鼠尾草绿；认知类课程=豆沙紫。
   首屏、行动区与内页页头使用浅色底与柔和光晕；页脚是唯一的深色区域（inverse-*）。
   明暗主题共享语义与层级，深色模式同步调整全部令牌。 */
:root {
  --page: #fdfaf6;
  --card: #fffefc;
  --wash: #f9f5f0;
  --note-surface: #f1ebe3;
  --band: #f6f0e8;
  --canvas: #f6f0e8;
  --ink: #1c2035;
  --ink-2: #505466;
  --ink-3: #656877;
  --line: #e0dad2;
  --line-2: #ece7e1;
  --control-line: #8c857d;
  --accent: #b95236;
  --accent-hover: #9e402b;
  --accent-ink: #ffffff;
  --accent-tint: #ffece2;
  --highlight: #965c2a;
  --highlight-rule: #cd8f57;
  --secondary: #394a7b;
  --secondary-tint: #e9eefb;
  --interactive: #262b49;
  --interactive-hover: #191d34;
  --interactive-ink: #ffffff;
  --c-course: #345f82;
  --c-course-tint: #e5f1fc;
  --c-event: #8c541f;
  --c-event-tint: #fceedb;
  --c-software: #366650;
  --c-software-tint: #e3f4eb;
  --c-cog: #85506a;
  --c-cog-tint: #faebf2;
  --hero-bg: #f8eee5;
  --glow-warm: rgba(249, 214, 191, 0.9);
  --glow-cool: rgba(210, 232, 251, 0.9);
  --glow-green: rgba(213, 240, 224, 0.85);
  --inverse-bg: #15182f;
  --foot-bg: #15182f;
  --foot-bg-end: #0b0e1e;
  --inverse-ink: #f9f4ee;
  --inverse-muted: #c3c7d5;
  --inverse-line: #3e435d;
  --inverse-highlight: #edc69d;
  --ph-a: #ece5dd;
  --success: #256142;
  --success-tint: #e9f3ed;
  --error: #b53c28;
  --error-tint: #fff0ec;
  --sheet-r: 20px;
  --r-card: 10px;
  --r-big: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-fast: 180ms;
  --motion-page: 360ms;
  --motion-reveal: 560ms;
  --shadow-1: 0 1px 2px rgba(28, 32, 53, 0.04), 0 6px 18px -12px rgba(28, 32, 53, 0.16);
  --shadow-2: 0 18px 40px -26px rgba(28, 32, 53, 0.26), 0 4px 12px -8px rgba(28, 32, 53, 0.1);
  --shadow-photo: 0 22px 46px -28px rgba(28, 32, 53, 0.36), 0 4px 12px -8px rgba(28, 32, 53, 0.12);
  --top: 76px;
  --top-min: 60px;
  --fs: 100%;
  --hs: 1;
  --f-body:
    -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    'Source Han Sans SC', sans-serif;
  --f-display: var(--f-body);
}
:root[data-fs='lg'] {
  --fs: 115.625%;
}
:root:lang(en) {
  --f-body:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, 'PingFang SC', 'Microsoft YaHei',
    sans-serif;
}
@media (max-width: 820px) {
  :root {
    --sheet-r: 18px;
  }
}
:root.df {
  --f-display: 'BLJ Display', var(--f-body);
  --hs: 1.1;
}

/* 深色模式：下面两块内容必须保持一致（系统偏好与显式 data-theme 各一份）。 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --page: #13151f;
    --card: #1d202c;
    --wash: #222431;
    --note-surface: #252836;
    --band: #191b26;
    --canvas: #0e1018;
    --ink: #f4efea;
    --ink-2: #c4c7d1;
    --ink-3: #aaadba;
    --line: #3b3f4e;
    --line-2: #2d303d;
    --control-line: #7c808d;
    --accent: #e78d6a;
    --accent-hover: #f3a581;
    --accent-ink: #121524;
    --accent-tint: #492a1f;
    --highlight: #eaba83;
    --highlight-rule: #d19c65;
    --secondary: #a8c2ef;
    --secondary-tint: #253045;
    --interactive: #c3d1ef;
    --interactive-hover: #dbe5f9;
    --interactive-ink: #15192d;
    --c-course: #98c3e8;
    --c-course-tint: #1e3243;
    --c-event: #e9bb82;
    --c-event-tint: #422f18;
    --c-software: #9ccab2;
    --c-software-tint: #1f362b;
    --c-cog: #ddaec3;
    --c-cog-tint: #3e2933;
    --hero-bg: #181b27;
    --glow-warm: rgba(108, 65, 40, 0.38);
    --glow-cool: rgba(48, 80, 108, 0.4);
    --glow-green: rgba(55, 85, 69, 0.32);
    --inverse-bg: #0a0c1a;
    --foot-bg: #0b0d1a;
    --foot-bg-end: #050710;
    --inverse-ink: #f4efea;
    --inverse-muted: #babdca;
    --inverse-line: #2e3242;
    --inverse-highlight: #ecc296;
    --ph-a: #252836;
    --success: #91d4ad;
    --success-tint: #18362a;
    --error: #ffb09c;
    --error-tint: #382820;
    --shadow-1: 0 2px 10px -4px rgba(0, 0, 0, 0.5);
    --shadow-2: 0 16px 40px -24px rgba(0, 0, 0, 0.8);
    --shadow-photo: 0 20px 44px -26px rgba(0, 0, 0, 0.8);
  }
}
:root[data-theme='dark'] {
  --page: #13151f;
  --card: #1d202c;
  --wash: #222431;
  --note-surface: #252836;
  --band: #191b26;
  --canvas: #0e1018;
  --ink: #f4efea;
  --ink-2: #c4c7d1;
  --ink-3: #aaadba;
  --line: #3b3f4e;
  --line-2: #2d303d;
  --control-line: #7c808d;
  --accent: #e78d6a;
  --accent-hover: #f3a581;
  --accent-ink: #121524;
  --accent-tint: #492a1f;
  --highlight: #eaba83;
  --highlight-rule: #d19c65;
  --secondary: #a8c2ef;
  --secondary-tint: #253045;
  --interactive: #c3d1ef;
  --interactive-hover: #dbe5f9;
  --interactive-ink: #15192d;
  --c-course: #98c3e8;
  --c-course-tint: #1e3243;
  --c-event: #e9bb82;
  --c-event-tint: #422f18;
  --c-software: #9ccab2;
  --c-software-tint: #1f362b;
  --c-cog: #ddaec3;
  --c-cog-tint: #3e2933;
  --hero-bg: #181b27;
  --glow-warm: rgba(108, 65, 40, 0.38);
  --glow-cool: rgba(48, 80, 108, 0.4);
  --glow-green: rgba(55, 85, 69, 0.32);
  --inverse-bg: #0a0c1a;
  --foot-bg: #0b0d1a;
  --foot-bg-end: #050710;
  --inverse-ink: #f4efea;
  --inverse-muted: #babdca;
  --inverse-line: #2e3242;
  --inverse-highlight: #ecc296;
  --ph-a: #252836;
  --success: #91d4ad;
  --success-tint: #18362a;
  --error: #ffb09c;
  --error-tint: #382820;
  --shadow-1: 0 2px 10px -4px rgba(0, 0, 0, 0.5);
  --shadow-2: 0 16px 40px -24px rgba(0, 0, 0, 0.8);
  --shadow-photo: 0 20px 44px -26px rgba(0, 0, 0, 0.8);
}

/* 业务线：在元素上加 line-course / line-event / line-software（或 line-dev）后，
   内部图标、标签、顶线等通过 --biz / --biz-tint 取用对应颜色。 */
.line-course {
  --biz: var(--c-course);
  --biz-tint: var(--c-course-tint);
}
.line-event {
  --biz: var(--c-event);
  --biz-tint: var(--c-event-tint);
}
.line-software,
.line-dev {
  --biz: var(--c-software);
  --biz-tint: var(--c-software-tint);
}
.line-cog {
  --biz: var(--c-cog);
  --biz-tint: var(--c-cog-tint);
}


/* src/styles/base.css */
/* ═══ 基础 ═══════════════════════════════════════ */
* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top) + 12px);
  font-size: var(--fs);
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1,
h2,
h3,
h4,
.h1 {
  margin: 0;
  line-height: 1.3;
  font-weight: 700;
  text-wrap: pretty;
  letter-spacing: 0.005em;
}
/* 大标题均衡换行；卡片内的短标题用 pretty，避免为了平均行宽而提前断行留下大片空白。 */
h1,
h2,
.h1 {
  text-wrap: balance;
}
/* 标题允许在窄屏自然换行，不通过隐藏溢出来裁掉文字。 */
h1,
h2,
h3,
.h1 {
  word-break: normal;
  overflow-wrap: break-word;
}
/* 标题字体：得意黑单字重，自带粗细，关掉合成加粗；窄体字面偏小，用 --hs 放大一点 */
h1,
h2,
.h1,
.display {
  font-family: var(--f-display);
}
.df h1,
.df h2,
.df .h1,
.df .display {
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0.01em;
}
p {
  margin: 0;
}
figure {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
svg {
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--accent-tint);
  color: var(--ink);
}
.wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}
@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 40px);
  }
}
.tnum {
  font-variant-numeric: tabular-nums;
}
/* 栅格子项默认 min-width:auto，会被长标题/不可断的中文撑破列宽，统一放开；新增栅格容器记得加进来 */
.sec-split > *,
.head-grid > *,
.feat > *,
.feat-item > *,
.team > *,
.cta > *,
.svc > *,
.course-group > *,
.cg-side > *,
.course-grid > *,
.how > *,
.case-row > *,
.case-pics > *,
.story > *,
.trust > *,
.faq-layout > *,
.contact-grid > *,
.ways-grid > *,
.tracks > *,
.process-layout > *,
.fit > *,
.flow > *,
.figures > * {
  min-width: 0;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--card);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
}
.skip:focus {
  left: 0;
}

.sec {
  padding: 76px 0;
}
.sec-lg {
  padding: 92px 0;
}
.sec-tight {
  padding: 48px 0 76px;
}
.band {
  padding: 84px 0;
  background: var(--band);
}
.acts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--highlight-rule);
}
/* 分栏页头：左标题 / 右说明 */
.sec-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px 64px;
  align-items: end;
  margin-bottom: 44px;
}
.sec-split h2 {
  font-size: calc(clamp(1.8rem, 3.9vw, 2.7rem) * var(--hs));
  line-height: 1.22;
}
.sec-split .eyebrow + h2 {
  margin-top: 12px;
}
.sec-split > p,
.sec-split .side > p {
  color: var(--ink-2);
  font-size: 1.03rem;
}
.sec-split .side .btn {
  margin-top: 20px;
}
.sec-split:has(.side) {
  align-items: start;
}
.sec-split:has(.side) > h2,
.sec-split:has(.side) > div:first-child {
  align-self: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 26px;
  border-radius: var(--r-big);
  border: 1px solid color-mix(in srgb, var(--accent-hover) 35%, transparent);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-1);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.btn:hover {
  transform: translateY(-1px);
  background: var(--accent-hover);
  box-shadow: var(--shadow-1);
}
.btn-line {
  background: color-mix(in srgb, var(--card) 70%, transparent);
  color: var(--secondary);
  border-color: var(--line);
  box-shadow: none;
}
.btn-line:hover {
  background: var(--secondary-tint);
  border-color: var(--secondary);
  box-shadow: none;
}
/* 正文主按钮使用品牌橙红，深色区域使用更明亮的同色系操作色。 */
.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.18s;
}
.btn:hover svg {
  transform: translateX(3px);
}

/* ═══ 图片位 ═════════════════════════════════════
   图片加载失败时 phFail() 加 .empty，使用业务说明作为可读回退 */
.ph {
  position: relative;
  overflow: hidden;
  background: var(--ph-a);
  border-radius: var(--r-card);
}
.ph > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph > figcaption {
  display: none;
}
.ph.empty {
  background: var(--ph-a);
}
.ph.empty > img {
  display: none;
}
.ph.empty > figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 12px;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--ink-3);
}
.ph.empty > figcaption::before {
  content: '';
  width: 26px;
  height: 26px;
  margin-bottom: 6px;
  background: currentColor;
  opacity: 0.45;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.2h3.2l1.7-2.4h7.2l1.7 2.4h3.2v10.6H3.5z'/%3E%3Ccircle cx='12' cy='13.3' r='3.3'/%3E%3C/svg%3E")
    center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.2h3.2l1.7-2.4h7.2l1.7 2.4h3.2v10.6H3.5z'/%3E%3Ccircle cx='12' cy='13.3' r='3.3'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.ph.empty > figcaption b {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-3);
  word-break: break-all;
}
.page-head .lead,
.sec-split p,
.hero2-copy .lead {
  text-wrap: pretty;
}
.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;
}
@media (max-width: 820px) {
  .sec {
    padding: 56px 0;
  }
  .sec-lg {
    padding: 64px 0;
  }
  .sec-tight {
    padding: 28px 0 56px;
  }
  .band {
    padding: 60px 0;
  }
  .sec-split {
    grid-template-columns: 1fr;
    margin-bottom: 30px;
  }
}


/* src/styles/navigation.css */
/* Keep the menu breakpoint in sync with MOBILE_QUERY in navigation.mjs. */
/* ═══ 顶栏：滚动后收紧 + 底边阅读进度；手机端下滑隐藏、上滑出现 ═══ */
.topbar {
  --top-bg: var(--page);
  --header-duration: 320ms;
  --header-ease: var(--ease-out);
  --nav-duration: 280ms;
  --nav-exit: var(--motion-fast);
  --nav-indicator-duration: 300ms;
  position: sticky;
  top: 0;
  z-index: 70;
  margin-bottom: 0;
  background: var(--top-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
  transition:
    box-shadow 0.25s ease,
    transform var(--header-duration) var(--header-ease),
    margin-bottom var(--header-duration) var(--header-ease),
    background-color 0.25s ease,
    border-color 0.25s ease;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--top);
  transition:
    height var(--header-duration) var(--header-ease),
    min-height var(--header-duration) var(--header-ease);
}
.topbar.shrink {
  --top-bg: color-mix(in srgb, var(--page) 94%, transparent);
  /* Compensate for the shrinking row with the same curve, keeping document
     flow height stable throughout the transition, including narrow screens. */
  margin-bottom: calc(var(--top) - var(--top-min));
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-1);
}
.topbar.shrink .wrap {
  height: var(--top-min);
}
.topbar.hide:not(:focus-within) {
  transform: translateY(-102%);
}
.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--highlight-rule);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  min-width: 0;
}
.logo .mk {
  width: 44px;
  height: 44px;
  flex: none;
  transform-origin: center;
}
.topbar .logo .mk {
  transition: transform var(--header-duration) var(--header-ease);
}
.topbar.shrink .logo .mk {
  transform: scale(0.864);
}
.logo .mk{background:center/contain no-repeat url("logo.png?v=e0cf28cce751")}
.logo b {
  display: block;
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}
.logo i {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  font-weight: 600;
  white-space: nowrap;
}
.nav {
  --nav-inline: 15px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  position: relative;
  padding: 9px var(--nav-inline);
  border-radius: 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.18s;
  white-space: nowrap;
}
.nav a:hover {
  color: var(--secondary);
}
.nav a.on {
  background: transparent;
  color: var(--secondary);
}
@media (min-width: 1121px) {
  .nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: var(--nav-inline);
    right: var(--nav-inline);
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--nav-indicator-duration) var(--ease-out);
  }
  .nav a.on::after,
  .nav a:hover::after,
  .nav a:focus-visible::after {
    transform: scaleX(1);
  }
  .nav-underline {
    position: absolute;
    left: 0;
    bottom: 2px;
    width: var(--nav-line-width, 0px);
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transform: translateX(var(--nav-line-x, 0px));
    pointer-events: none;
    transition:
      transform var(--nav-indicator-duration) var(--ease-out),
      width var(--nav-indicator-duration) var(--ease-out),
      opacity 150ms ease;
  }
  .nav.underline-ready .nav-underline {
    opacity: 1;
  }
  .nav.underline-ready a::after {
    opacity: 0;
  }
}
@media (max-width: 1120px) {
  .nav-underline {
    display: none;
  }
  .nav a.on::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 2px;
    height: 18px;
    background: var(--accent);
    transform: translateY(-50%);
  }
}
.tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--r-card);
  display: grid;
  place-items: center;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition:
    color 0.18s,
    background-color 0.18s,
    border-color 0.18s;
  flex: none;
}
.icon-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  background: var(--secondary-tint);
}
.icon-btn svg {
  width: 19px;
  height: 19px;
}
.lang {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 44px;
  padding: 0 15px;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
}
.lang svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.fs-btn b {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}
.fs-btn small {
  font-size: 0.68rem;
  font-weight: 800;
}
/* 宽屏显示“大字”文字说明；较窄时只保留图标，名称由 aria-label 提供。 */
.fs-text {
  display: none;
}
@media (min-width: 1360px) {
  .preferences-ready .fs-btn {
    width: auto;
    grid-auto-flow: column;
    gap: 6px;
    padding: 0 14px;
  }
  .fs-text {
    display: inline;
    font-size: 0.86rem;
    font-weight: 700;
  }
}
:root[data-fs='lg'] .fs-btn {
  border-color: var(--secondary);
  color: var(--secondary);
  background: var(--secondary-tint);
}
.menu-btn[aria-expanded='true'] {
  border-color: var(--secondary);
  background: var(--secondary-tint);
  color: var(--secondary);
}
.menu-btn {
  display: none;
}
.menu-glyph {
  position: relative;
  display: block;
  width: 20px;
  height: 16px;
}
.menu-glyph > span {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform var(--nav-duration) var(--ease-out);
}
.menu-glyph > span:first-child {
  top: 4px;
}
.menu-glyph > span:last-child {
  top: 11px;
}
.menu-btn[aria-expanded='true'] .menu-glyph > span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.menu-btn[aria-expanded='true'] .menu-glyph > span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}
@media (max-width: 480px) {
  .topbar .logo i {
    display: none;
  }
}
@media (max-width: 380px) {
  .topbar .wrap {
    gap: 8px;
  }
  .topbar .logo {
    gap: 6px;
  }
  .topbar .logo .mk {
    width: 36px;
    height: 36px;
  }
  .topbar.shrink .logo .mk {
    transform: scale(0.9);
  }
  .topbar .logo b {
    font-size: 0.9rem;
  }
  .topbar .tools {
    gap: 4px;
  }
  .topbar .icon-btn {
    width: 44px;
  }
  .topbar .lang {
    width: auto;
    padding-inline: 9px;
  }
  .topbar .lang svg {
    display: none;
  }
}
@media (max-width: 1120px) {
  :root {
    --top: 66px;
    --top-min: 56px;
  }
  .topbar .wrap {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--top);
    padding-block: 11px;
  }
  .topbar .nav {
    position: static;
    order: 3;
    flex-basis: 100%;
    flex-wrap: wrap;
    padding: 4px 0 0;
  }
  .topbar .nav a {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 1rem;
  }
  .js-ready .topbar .wrap {
    flex-wrap: nowrap;
    padding-block: 0;
    height: var(--top);
    min-height: 0;
  }
  .js-ready .topbar.shrink .wrap {
    height: var(--top-min);
  }
  .js-ready .topbar .nav {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    padding: 8px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow-2);
    max-height: calc(100dvh - var(--top) - 88px);
    overflow: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
      opacity var(--nav-exit) ease,
      transform var(--nav-exit) var(--ease-out),
      visibility 0s var(--nav-exit);
  }
  .js-ready .topbar .nav.open {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition:
      opacity var(--nav-duration) ease,
      transform var(--nav-duration) var(--ease-out),
      visibility 0s;
  }
  .js-ready .topbar .nav a {
    padding: 13px 16px;
  }
  .js-ready .menu-btn {
    display: grid;
  }
  .topbar .btn {
    display: none;
  }
}
.topbar .tools > .btn {
  white-space: nowrap;
  flex: none;
}


/* src/styles/components.css */
/* ═══ 数据条 ═══ */

.figures {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 72px 0 0;
  border-block: 1px solid var(--line);
}
.figures.figures-4 {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0;
}
.figures > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding: 26px 24px;
  border-left: 1px solid var(--line);
}
.figures > div:first-child {
  border-left: 0;
  padding-left: 0;
}
.figures dt {
  font-size: 0.9rem;
  color: var(--ink-3);
  font-weight: 600;
}
.figures dd {
  margin: 0;
  font-size: calc(clamp(1.9rem, 3.3vw, 2.6rem) * var(--hs));
  font-weight: 700;
  line-height: 1.05;
}
.df .figures dd {
  font-weight: 400;
}
.figures dd em {
  font-style: normal;
  color: var(--highlight);
  font-size: 0.56em;
  margin-left: 5px;
  font-weight: 600;
}
@media (max-width: 900px) {
  .figures,
  .figures.figures-4 {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 48px;
  }
  .figures.figures-4 {
    margin-top: 0;
  }
  .figures > div,
  .figures > div:first-child {
    padding: 18px 14px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .figures > div:nth-child(-n + 2) {
    border-top: 0;
  }
  .figures > div:nth-child(even) {
    border-left: 1px solid var(--line);
  }
  .figures:not(.figures-4) > div:last-child {
    grid-column: 1/-1;
  }
}

/* ═══ 通用小件 ═══════════════════════════════════ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px;
  box-shadow: var(--shadow-1);
}
.ico {
  width: 46px;
  height: 46px;
  border-radius: var(--r-card);
  display: grid;
  place-items: center;
  background: var(--biz-tint, var(--secondary-tint));
  color: var(--biz, var(--secondary));
  flex: none;
}
.ico svg {
  width: 23px;
  height: 23px;
}
/* 图标与分类标签默认用墨蓝；位于业务线（.line-*）内时取对应业务色。 */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--wash);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 3px 11px;
}
.kind {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--biz, var(--secondary));
  background: var(--biz-tint, var(--secondary-tint));
  border-radius: 6px;
  padding: 4px 12px;
  line-height: 1.5;
}
.who {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--ink-3);
}

/* ═══ 精选案例：一大两小 ═════════════════════════ */
.feat {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}
.feat-item {
  position: relative;
  display: grid;
  grid-template-columns: 40% 60%;
  border-radius: var(--r-big);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--biz, var(--line));
  box-shadow: var(--shadow-1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.feat-item:hover,
.feat-item:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: color-mix(in srgb, var(--biz, var(--secondary)) 45%, var(--line));
  border-top-color: var(--biz, var(--line));
}
.feat-item .ph {
  border-radius: 0;
  height: 100%;
  min-height: 250px;
}
.feat-item .ph > img {
  transition: transform 0.6s var(--ease-out);
}
.feat-item .ph.shot {
  background: var(--wash);
  padding: 12px;
}
.feat-item .ph.shot > img {
  object-fit: contain;
  object-position: center;
}
.feat-item:hover .ph > img {
  transform: scale(1.025);
}
.feat-body {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.feat-body h3 {
  margin-top: 12px;
  font-size: 1.2rem;
  text-wrap: pretty;
}
.feat-body .desc {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--ink-2);
  text-wrap: pretty;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--secondary);
}
.more svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s;
}
.feat-item:hover .more svg {
  transform: translateX(4px);
}
/* 大卡：图在上、文字在下。不把标题压在截图上——截图本身有文字，叠字会读不清 */
.feat-item.feat-1 {
  grid-row: 1/3;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}
.feat-item.feat-1 .ph {
  aspect-ratio: 16/10;
  height: auto;
  min-height: 0;
  border-bottom: 1px solid var(--line);
}
.feat-item.feat-1 .feat-body {
  padding: 32px 36px 34px;
  justify-content: flex-start;
}
.feat-item.feat-1 h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}
.feat-item.feat-1 .desc {
  font-size: 1rem;
}
@media (max-width: 900px) {
  .feat {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }
  .feat-item.feat-1 {
    grid-row: auto;
  }
}
@media (max-width: 560px) {
  .feat-item {
    grid-template-columns: 1fr;
  }
  .feat-item:not(.feat-1) .ph {
    aspect-ratio: 16/10;
    min-height: 0;
  }
  .feat-body,
  .feat-item.feat-1 .feat-body {
    padding: 22px;
  }
}

/* ═══ 编号流程（真实顺序才用编号）═════════════════ */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 48px;
}
.flow.flow-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 0 36px;
}
.flow li {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.flow li::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: var(--highlight-rule);
}
/* 首页四步合作概览：顶线依次取三项业务色，最后一步用行动色收尾。 */
.home-process li:nth-child(1)::before {
  background: var(--c-course);
}
.home-process li:nth-child(2)::before {
  background: var(--c-event);
}
.home-process li:nth-child(3)::before {
  background: var(--c-software);
}
.home-process li:nth-child(4)::before {
  background: var(--accent);
}
.flow-no {
  display: block;
  font-size: calc(2.6rem * var(--hs));
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--secondary);
}
.df .flow-no {
  font-weight: 400;
}
.flow h3 {
  margin-top: 14px;
  font-size: 1.26rem;
}
.flow p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.95rem;
}
@media (max-width: 1000px) {
  .flow.flow-4 {
    grid-template-columns: 1fr 1fr;
    gap: 40px 36px;
  }
}
@media (max-width: 820px) {
  .flow,
  .flow.flow-4 {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .flow-no {
    font-size: 2.2rem;
  }
}

/* ═══ 首页 · 团队 ═════════════════════════════════ */
.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.team-pics {
  position: relative;
  padding: 0 14% 14% 0;
}
.team-pics .t1 {
  aspect-ratio: 4/3.3;
  border-radius: var(--r-big);
  box-shadow: var(--shadow-photo);
}
.team-pics .t1.empty > figcaption {
  padding: 0 30% 22% 0;
}
.team-pics .t2 {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 1/1;
  border-radius: var(--r-card);
  box-shadow:
    0 0 0 4px var(--page),
    var(--shadow-photo);
}
.team-copy h2 {
  margin-top: 12px;
  font-size: calc(clamp(1.7rem, 3.4vw, 2.4rem) * var(--hs));
  line-height: 1.25;
}
.team-copy > p:not(.eyebrow):not(.acts) {
  margin-top: 20px;
  color: var(--ink-2);
}
.values {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 32px;
}
.values li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: start;
}
.values svg {
  grid-row: 1/3;
  width: 22px;
  height: 22px;
  color: var(--secondary);
  margin-top: 3px;
}
.values b {
  font-size: 1.02rem;
  line-height: 1.5;
}
.values span {
  font-size: 0.86rem;
  color: var(--ink-3);
}
@media (max-width: 900px) {
  .team {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ═══ CTA：浅色光晕行动区，陶土按钮与清晰的电话入口 ═══ */
.cta-wrap {
  padding: 0 0 92px;
}
.band + .cta-wrap {
  padding-top: 92px;
}
@media (max-width: 820px) {
  .band + .cta-wrap {
    padding-top: 64px;
  }
}
.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 56px;
  align-items: center;
  padding: 60px 64px;
  border-radius: var(--r-big);
  background:
    radial-gradient(45% 90% at 100% 0%, var(--glow-warm), transparent 70%),
    radial-gradient(40% 90% at 0% 100%, var(--glow-cool), transparent 70%), var(--hero-bg);
  color: var(--ink);
  border: 1px solid var(--line);
}
.cta > * {
  min-width: 0;
}
.cta h2 {
  font-size: calc(clamp(1.7rem, 3.4vw, 2.4rem) * var(--hs));
}
.cta p {
  margin-top: 12px;
  max-width: 36rem;
  color: var(--ink-2);
}
.cta .acts {
  margin-top: 0;
  flex-wrap: nowrap;
  align-items: center;
}
.cta .tel {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.05rem;
  min-height: 48px;
  padding: 11px 22px;
  border-radius: var(--r-big);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 60%, transparent);
  white-space: normal;
  color: var(--ink);
  transition:
    background-color 0.18s,
    border-color 0.18s;
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
}
.cta .tel svg {
  width: 18px;
  height: 18px;
}
.cta .tel:hover {
  background: var(--card);
  border-color: var(--control-line);
}
@media (max-width: 980px) {
  .cta {
    grid-template-columns: 1fr;
    padding: 44px 24px;
  }
  .cta .acts {
    flex-wrap: wrap;
  }
}

/* ═══ 内页页头：左文右图 ═════════════════════════ */
.page-head {
  padding: 64px 0 calc(var(--sheet-r) + 24px);
  background:
    radial-gradient(55% 90% at 100% 0%, var(--glow-warm), transparent 70%),
    radial-gradient(45% 80% at 0% 100%, var(--glow-cool), transparent 70%), var(--hero-bg);
}
.page-head + section {
  position: relative;
  margin-top: calc(var(--sheet-r) * -1);
  border-radius: var(--sheet-r) var(--sheet-r) 0 0;
  background: var(--page);
}
.page-head .figures {
  border-color: color-mix(in srgb, var(--ink) 12%, transparent);
}
.page-head .figures > div {
  border-color: color-mix(in srgb, var(--ink) 12%, transparent);
}
.head-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 64px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-3);
}
.crumb a:hover {
  color: var(--highlight);
}
.crumb [aria-current] {
  color: var(--secondary);
}
.page-head h1 {
  margin-top: 16px;
  font-size: calc(clamp(1.9rem, 4.2vw, 3rem) * var(--hs));
  line-height: 1.2;
}
.page-head .lead {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 1.04rem;
  max-width: 36rem;
}
.page-head h1 {
  word-break: normal;
  overflow-wrap: anywhere;
}
.head-img {
  aspect-ratio: 4/3;
  border-radius: var(--r-big);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-photo);
}
.page-head.compact {
  padding-bottom: calc(var(--sheet-r) + 48px);
}
@media (max-width: 900px) {
  .page-head {
    padding-top: 40px;
  }
  .head-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 40px;
  }
  .head-img {
    aspect-ratio: 16/9;
  }
  .page-head.compact {
    padding-bottom: calc(var(--sheet-r) + 32px);
  }
}

/* ═══ 筛选条（课程 / 案例，吸顶）═════════════════ */
.filters-bar {
  position: sticky;
  top: var(--stick, var(--top));
  z-index: 30;
  margin: 0 0 40px;
  padding: 14px 0;
  background: color-mix(in srgb, var(--page) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: top 0.25s ease;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.filters button {
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 44px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition:
    color 0.18s,
    background-color 0.18s,
    border-color 0.18s;
}
.filters button:hover {
  border-color: var(--secondary);
  background: var(--secondary-tint);
  color: var(--secondary);
}
.filters button[aria-pressed='true'] {
  background: var(--interactive);
  border-color: var(--interactive);
  color: var(--interactive-ink);
}
.filters button[aria-pressed='true']:hover {
  background: var(--interactive-hover);
  border-color: var(--interactive-hover);
}
.filter-note {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--ink-3);
}
.filter-note b {
  color: var(--ink);
  font-weight: 800;
}
.course-selection-note {
  margin: 0 0 12px;
}
@media (max-width: 940px) {
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-padding-inline: 20px;
    padding-bottom: 4px;
    margin-inline: -20px;
    padding-inline: 20px;
  }
  .filters::-webkit-scrollbar {
    height: 3px;
  }
  .filters::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 3px;
  }
  .filters button {
    flex: none;
  }
  .filters-bar {
    padding: 10px 0;
    margin-bottom: 28px;
  }
  .filters-bar .filter-note {
    font-size: 0.8rem;
  }
}
.crumb a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.feat-body .more {
  margin-top: auto;
  padding-top: 18px;
}
@media (max-width: 600px) {
  .cta {
    padding: 32px 24px;
  }
  .cta .acts {
    align-items: stretch;
  }
  .cta .btn,
  .cta .tel {
    flex: 1 1 auto;
    padding-inline: 16px;
  }
  .values {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 380px) {
  .figures > div,
  .figures > div:first-child {
    padding: 18px 10px;
  }
  .figures dt {
    font-size: 0.8rem;
  }
}
.ph.shot > img {
  object-position: left top;
}
.fig-note,
.shot-note {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--ink-3);
}
.mark {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}
.mark::before,
.mark::after {
  content: '';
  position: absolute;
  background: var(--interactive);
  border-radius: 2px;
  transition: transform 0.2s;
}
.mark::before {
  left: 0;
  right: 0;
  top: 7px;
  height: 2px;
}
.mark::after {
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
}
details[open] > summary .mark::after {
  transform: scaleY(0);
}
@media (max-width: 820px) {
  .cta-wrap {
    padding-bottom: 64px;
  }
}


/* src/styles/pages/services.css */
/* ═══ 服务页：三类服务与图文说明═══ */
.svc-list {
  display: flex;
  flex-direction: column;
  gap: 92px;
}
.svc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  scroll-margin-top: calc(var(--top) + 40px);
}
.svc:nth-child(even) .svc-media {
  order: 2;
}
.svc-media {
  position: relative;
  padding: 18px;
}
.svc-media::before {
  content: '';
  position: absolute;
  inset: 0 12% 12% 0;
  border-radius: var(--r-big);
  background: var(--biz-tint, var(--note-surface));
}
.svc:nth-child(even) .svc-media::before {
  inset: 0 0 12% 12%;
}
.svc-img {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-big);
  box-shadow: var(--shadow-photo);
}
.svc-body .who {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink-3);
}
.svc-body h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  font-size: calc(clamp(1.7rem, 3.3vw, 2.4rem) * var(--hs));
}
.svc-body > p.desc {
  margin-top: 16px;
  color: var(--ink-2);
}
.svc-body h3 {
  margin-top: 26px;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.checks {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  font-size: 0.96rem;
}
.checks svg {
  width: 18px;
  height: 18px;
  margin-top: 0.3em;
  color: var(--biz, var(--secondary));
}
.svc-body .tags {
  margin-top: 20px;
}
.svc-body .proof {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--note-surface);
  font-size: 0.9rem;
  font-weight: 700;
}
.svc-body .proof span {
  color: var(--ink-3);
  font-weight: 600;
  margin-right: 8px;
}
.svc-body .acts {
  margin-top: 24px;
}
@media (max-width: 900px) {
  .svc-list {
    gap: 64px;
  }
  .svc {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .svc:nth-child(even) .svc-media {
    order: 0;
  }
}
.jump {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-2);
  transition:
    color 0.18s,
    background-color 0.18s,
    border-color 0.18s;
}
.jump a:hover,
.jump a:focus-visible {
  background: var(--secondary-tint);
  border-color: var(--interactive);
  color: var(--ink);
}
.jump svg {
  width: 17px;
  height: 17px;
  color: var(--secondary);
}

/* 适合找我们做软件的情况：一张卡一种处境（引号里是访客自己会说的话） */
.fit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.fit-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-big);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--biz, var(--line));
  padding: 32px 32px 26px;
}
.fit-card h3 {
  font-size: calc(1.3rem * var(--hs));
  line-height: 1.5;
  text-indent: -0.5em;
}
.fit-do {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 0.97rem;
}
.fit-do b {
  display: block;
  margin-bottom: 4px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.fit-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
  flex-wrap: wrap;
}
.fit-proof span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--wash);
  border-radius: 6px;
  padding: 2px 11px;
}
.fit-proof svg {
  width: 15px;
  height: 15px;
  color: var(--biz, var(--highlight));
  transition: transform 0.18s;
}
.fit-proof:hover svg {
  transform: translateX(4px);
}
:root[lang^='en'] .fit-card h3 {
  text-indent: 0;
}
@media (max-width: 980px) {
  .fit {
    grid-template-columns: 1fr;
  }
  .fit-card {
    padding: 26px 24px 22px;
  }
}

/* 合作怎么走：课程、活动、软件三条线并排，各自的步骤竖着往下走 */
.tracks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.track {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-big);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--biz, var(--line));
  padding: 30px 28px 28px;
}
.track h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: calc(1.3rem * var(--hs));
}
.track-who {
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink-3);
}
.track ol {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  counter-reset: step;
}
.track ol li {
  position: relative;
  padding-left: 42px;
  min-height: 28px;
  counter-increment: step;
}
.track ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--biz-tint, var(--secondary-tint));
  color: var(--biz, var(--secondary));
}
.track ol li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 13.5px;
  top: 32px;
  bottom: -16px;
  border-left: 1px dashed var(--line-2);
}
.track ol b {
  display: block;
  font-size: 1.02rem;
  line-height: 28px;
}
.track ol span {
  display: block;
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 0.92rem;
}
.track-tip {
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.track-tip::before {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  border-radius: 2px;
  margin-bottom: 14px;
  background: var(--biz, var(--highlight-rule));
}
.tracks-note {
  margin-top: 28px;
}
.tracks-note .more {
  margin-top: 0;
  font-size: 0.95rem;
}
.tracks-note .more:hover svg {
  transform: translateX(4px);
}
@media (max-width: 980px) {
  .tracks {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .track {
    padding: 26px 24px 24px;
  }
}
@media (max-width: 600px) {
  .svc-list {
    gap: 64px;
  }
  .svc-media {
    padding: 12px;
  }
  .svc-body h2 {
    gap: 10px;
  }
}
.svc-title {
  min-width: 0;
  overflow-wrap: anywhere;
}


/* src/styles/pages/courses.css */
/* ═══ 课程库 ═════════════════════════════════════ */
.course-group {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.course-group:first-child {
  border-top: 0;
  padding-top: 8px;
}
.course-group[hidden] {
  display: none;
}
/* 主题组数量使用课程色；认知与脑健康组使用认知类的豆沙紫。 */
.course-group {
  --biz: var(--c-course);
}
.course-group[data-k='cog'] {
  --biz: var(--c-cog);
}
.cg-side {
  position: sticky;
  top: calc(var(--stick, var(--top)) + 150px);
  align-self: start;
}
.cg-side h2 {
  margin-top: 0;
  font-size: calc(1.35rem * var(--hs));
}
.cg-count {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 0.88rem;
}
.cg-count b {
  font-size: 1.5rem;
  color: var(--biz);
  font-weight: 800;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
/* 课程卡片：圆点表示康复 / 认知类别（类别名称供读屏使用），标题紧随其后。 */
.course {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 12px 16px;
  transition:
    border-color 0.18s,
    transform 0.18s;
}
.course:hover {
  border-color: var(--control-line);
}
.course h3 {
  min-width: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  word-break: normal;
  color: var(--ink);
}
.course-cat {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex: none;
  margin-top: 0.55em;
  background: var(--c-course);
}
.course-cat.cog {
  background: var(--c-cog);
}
.courses-ready .course-group:not(.expanded) .course-extra {
  display: none;
}
.course-expand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  padding: 8px 20px;
  border: 1px solid var(--control-line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.18s,
    background 0.18s;
}
.course-expand:hover,
.course-expand:focus-visible {
  border-color: var(--interactive);
  background: var(--secondary-tint);
}
.course-expand[aria-expanded='true'] {
  border-color: var(--interactive);
  background: var(--interactive);
  color: var(--interactive-ink);
}
.course-expand[aria-expanded='true']:hover {
  border-color: var(--interactive-hover);
  background: var(--interactive-hover);
}
@media (max-width: 900px) {
  .course-group {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 36px 0;
  }
  .cg-side {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
  }
  .cg-count {
    margin-top: 0;
  }
}
@media (max-width: 620px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
}

.how {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  border-radius: var(--r-big);
  overflow: hidden;
  background: var(--note-surface);
}
.how .ph {
  border-radius: 0;
  height: 100%;
  min-height: 360px;
}
.how-copy {
  padding: 52px 56px;
}
.how-copy h2 {
  font-size: calc(clamp(1.4rem, 2.6vw, 1.8rem) * var(--hs));
}
.how-copy > p {
  margin-top: 14px;
  color: var(--ink-2);
}
.how-items {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
}
.how-items li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.how-items .ico {
  width: 40px;
  height: 40px;
  border-radius: var(--r-big);
  flex: none;
  background: var(--card);
}
.how-items .ico svg {
  width: 20px;
  height: 20px;
}
.how-items b {
  display: block;
  line-height: 1.5;
}
.how-items li > span:last-child > span {
  display: block;
  margin-top: 2px;
  font-size: 0.86rem;
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .how {
    grid-template-columns: 1fr;
    margin-top: 56px;
  }
  .how .ph {
    min-height: 0;
    aspect-ratio: 16/10;
  }
  .how-copy {
    padding: 30px 22px 34px;
  }
  .how-items {
    grid-template-columns: 1fr;
  }
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
}
.course-guide {
  margin-bottom: 48px;
}
.course-guide h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.course-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.course-guide-grid article {
  padding: 24px;
  background: var(--band);
  border-radius: var(--r-card);
}
.course-guide-grid h3 {
  font-size: 1rem;
}
.course-guide-grid p {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
@media (max-width: 820px) {
  .course-guide-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .course-guide-grid article {
    padding: 20px;
  }
}
.legend .course-cat {
  display: inline-block;
  margin: 0 0 0 8px;
}
.series {
  margin-top: 76px;
  padding-top: 68px;
  border-top: 1px solid var(--line);
}
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.series-grid > * {
  min-width: 0;
}
.series-card {
  border-radius: var(--r-big);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 28px 28px 26px;
}
.series-card h3 {
  margin-top: 14px;
  font-size: 1.22rem;
}
.series-card .who {
  margin-top: 8px;
}
.series-card ol {
  margin: 18px 0 0;
  padding: 16px 0 0 1.3em;
  border-top: 1px solid var(--line-2);
  display: grid;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--ink-2);
}
.series-card ol li::marker {
  color: var(--highlight);
  font-weight: 800;
}
@media (max-width: 980px) {
  .series-grid {
    grid-template-columns: 1fr;
  }
  .series {
    margin-top: 72px;
    padding-top: 64px;
  }
}


/* src/styles/pages/cases.css */
/* ═══ 案例页：图文交错 ═══════════════════════════ */
.case-rows {
  display: flex;
  flex-direction: column;
  gap: 88px;
}
.case-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
  scroll-margin-top: calc(var(--top) + 100px);
}
.case-row[hidden] {
  display: none;
}
.case-row.flip .case-pics {
  order: 2;
}
.case-pics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.case-pics .shot-note {
  grid-column: 1/-1;
  margin-top: 0;
}
.cp-main {
  grid-column: 1/-1;
  aspect-ratio: 16/10;
  border-radius: var(--r-big);
  box-shadow: var(--shadow-photo);
}
.cp-sub {
  aspect-ratio: 4/3;
  box-shadow: 0 0 0 1px var(--line-2);
}
.case-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.case-meta .yr {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-3);
}
.case-text h2 {
  margin-top: 16px;
  font-size: calc(clamp(1.5rem, 2.8vw, 2.05rem) * var(--hs));
  line-height: 1.25;
}
.case-text .who {
  margin-top: 8px;
  font-size: 0.9rem;
}
.case-text .desc {
  margin-top: 18px;
  color: var(--ink-2);
}
.case-detail {
  margin-top: 20px;
}
.case-detail h3 {
  font-size: 0.84rem;
  color: var(--ink-3);
  font-weight: 600;
}
.case-detail p {
  margin-top: 6px;
  color: var(--ink-2);
}
.case-text > .more {
  min-height: 44px;
  margin-top: 20px;
}
.facts {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--line);
}
.facts > div {
  padding: 16px 18px 0 0;
}
.facts dt {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-3);
}
.facts dd {
  margin: 4px 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.facts dd b {
  font-size: 1.5rem;
  color: var(--highlight);
  font-weight: 800;
  margin-right: 2px;
}
@media (max-width: 900px) {
  .case-rows {
    gap: 72px;
  }
  .case-row {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .case-row.flip .case-pics {
    order: 0;
  }
}
@media (max-width: 600px) {
  .case-rows {
    gap: 64px;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* src/styles/pages/about.css */
/* ═══ 关于页 ═════════════════════════════════════ */
.cooperation-note {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px 64px;
}
.cooperation-note > * {
  min-width: 0;
}
.cooperation-note h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}
.cooperation-note p {
  margin-top: 12px;
  color: var(--ink-2);
  max-width: 42rem;
}
@media (max-width: 820px) {
  .cooperation-note {
    grid-template-columns: 1fr;
  }
  .cooperation-note > .btn {
    justify-self: start;
  }
}
.story {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
  align-items: start;
}
.story-pics {
  position: sticky;
  top: calc(var(--stick, var(--top)) + 32px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.story-pics .s1 {
  grid-column: 1/-1;
  aspect-ratio: 4/3;
  border-radius: var(--r-big);
  box-shadow: var(--shadow-photo);
}
.story-pics .s2,
.story-pics .s3 {
  aspect-ratio: 1/1;
  box-shadow: 0 0 0 1px var(--line-2);
}
.story-copy p {
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.95;
}
.story-copy p + p {
  margin-top: 22px;
}
.story-copy .story-lead {
  font-size: clamp(1.15rem, 2vw, 1.36rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.8;
}
.community-note {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--stick, var(--top)) + 24px);
}
.story-copy .community-note .eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 0 0 12px;
}
.community-note h2 {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 10px;
}
.story-copy .community-note p:not(.eyebrow) {
  font-size: 0.94rem;
  line-height: 1.8;
  margin: 0;
}
.community-note .more {
  margin-top: 16px;
}
.story-copy .values {
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .story {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .story-pics {
    position: static;
  }
}

.trust {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  margin-top: 72px;
  align-items: start;
}
.cred-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 32px;
}
.cred-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.cred-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 0.28em;
  color: var(--secondary);
}
.cred-list b {
  display: block;
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
}
.info {
  background: var(--note-surface);
  border-radius: var(--r-card);
  padding: 26px 28px;
}
.info dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 18px;
  font-size: 0.9rem;
}
.info dt {
  color: var(--ink-3);
  font-weight: 700;
  white-space: nowrap;
}
.info dd {
  margin: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.info dd a {
  border-bottom: 1px solid var(--control-line);
}
.info dd a:hover,
.info dd a:focus-visible {
  color: var(--secondary);
  border-bottom-color: var(--interactive);
}
@media (max-width: 900px) {
  .trust {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 48px;
  }
}
@media (max-width: 620px) {
  .cred-list {
    grid-template-columns: 1fr;
  }
}

.faq-sec {
  /* The FAQ layout supplies its own divider spacing on every viewport. */
  padding-top: 24px;
}
.faq-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 72px;
  align-items: start;
  padding-top: 76px;
  border-top: 1px solid var(--line);
}
.faq-side {
  position: sticky;
  top: calc(var(--stick, var(--top)) + 32px);
}
.faq-side h2 {
  font-size: calc(clamp(1.7rem, 3.4vw, 2.4rem) * var(--hs));
}
.faq-side > p {
  margin-top: 14px;
  color: var(--ink-2);
}
.faq-ask {
  margin-top: 30px;
  padding: 22px 24px;
  border-radius: var(--r-card);
  background: var(--band);
}
.faq-ask b {
  display: block;
  font-size: 1.02rem;
}
.faq-ask span {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.faq-ask a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--highlight);
}
.faq-ask a svg {
  width: 18px;
  height: 18px;
}
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 22px 4px;
  font-weight: 700;
  font-size: 1.04rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover,
.faq summary:focus-visible,
.faq details[open] > summary {
  color: var(--secondary);
}
.faq .ans {
  padding: 0 36px 24px 4px;
  color: var(--ink-2);
  font-size: 0.95rem;
}
@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 64px;
  }
  .faq-side {
    position: static;
  }
}

.trust.flat {
  margin-top: 0;
}
@media (max-width: 600px) {
  .info {
    padding: 24px 20px;
  }
  .info dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .info dd + dt {
    margin-top: 12px;
  }
}


/* src/styles/pages/contact.css */
/* ═══ 联系页 ═════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 26px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-main,
.contact-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-card {
  padding: 34px;
}
.form-card h2 {
  font-size: calc(1.4rem * var(--hs));
}
.form-hint {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.92rem;
}
#enquiryForm {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
#enquiryForm label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 700;
}
#enquiryForm label i {
  font-style: normal;
  color: var(--error);
}
#enquiryForm input,
#enquiryForm select,
#enquiryForm textarea {
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--control-line);
  border-radius: var(--r-big);
  padding: 12px 14px;
  min-height: 48px;
  transition:
    border-color 0.18s,
    background 0.18s;
}
#enquiryForm textarea {
  resize: vertical;
  min-height: 104px;
}
#enquiryForm input::placeholder,
#enquiryForm textarea::placeholder {
  color: var(--ink-3);
  opacity: 1;
}
#enquiryForm input:disabled,
#enquiryForm select:disabled,
#enquiryForm textarea:disabled {
  color: var(--ink-3);
  background: var(--wash);
  border-color: var(--line);
}
#enquiryForm input,
#enquiryForm select,
#enquiryForm textarea {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
#enquiryForm label,
.f2 > * {
  min-width: 0;
}
#enquiryForm input:focus,
#enquiryForm select:focus,
#enquiryForm textarea:focus {
  border-color: var(--interactive);
  background: var(--card);
  outline: 3px solid var(--interactive);
  outline-offset: 1px;
}
#enquiryForm [aria-invalid='true'] {
  border-color: var(--error);
}
#enquiryForm [aria-invalid='true']:focus {
  outline-color: var(--error);
}
.f2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
@media (max-width: 560px) {
  .f2 {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 24px 20px;
  }
}
.form-more {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--page);
  overflow: hidden;
}
.form-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}
.form-more summary::-webkit-details-marker {
  display: none;
}
.form-more summary:hover,
.form-more summary:focus-visible {
  background: var(--secondary-tint);
}
.form-more summary > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.form-more summary b {
  font-size: 0.9rem;
}
.form-more summary small {
  color: var(--ink-3);
  font-size: 0.82rem;
  font-weight: 400;
}
.form-more-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 4px 14px 16px;
  border-top: 1px solid var(--line-2);
}
.form-more-body > label:first-child,
.form-more-body > .preset-note + label {
  margin-top: 12px;
}
.preset-note {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: var(--r-card);
  background: var(--secondary-tint);
  color: var(--secondary);
  font-size: 0.84rem;
  font-weight: 700;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
#enquirySubmit {
  align-self: flex-start;
  margin-top: 4px;
}
#enquirySubmit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
#enquirySubmit[aria-busy='true'] {
  cursor: progress;
}
.form-status {
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 1.4em;
  overflow-wrap: anywhere;
}
.form-status:empty {
  min-height: 0;
  padding: 0;
}
.form-status:not(:empty) {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--wash);
}
.form-status.ok {
  color: var(--success);
  background: var(--success-tint);
}
.form-status.err {
  color: var(--error);
  background: var(--error-tint);
}
.form-privacy {
  font-size: 0.84rem;
  color: var(--ink-3);
  font-weight: 400;
}
.direct {
  padding: 14px 14px 22px;
}
.direct > * {
  margin-left: 12px;
  margin-right: 12px;
}
.direct h2 {
  margin-top: 20px;
  font-size: 1.1rem;
}
.direct .coin-list {
  margin-top: 8px;
}
.handbook h3 {
  margin-top: 14px;
  font-size: 1.08rem;
}
.handbook p {
  margin-top: 9px;
  color: var(--ink-2);
  font-size: 0.9rem;
}
.handbook .btn {
  margin-top: 16px;
}
.ways {
  margin-top: 84px;
}
.ways-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 36px;
}
.ways-grid article {
  padding-top: 28px;
  border-top: 2px solid var(--biz, var(--line));
}
.ways-grid h3 {
  margin-top: 18px;
  font-size: 1.14rem;
}
.ways-grid p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.92rem;
}
@media (max-width: 1000px) {
  .ways-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 36px;
  }
}
@media (max-width: 620px) {
  .ways {
    margin-top: 72px;
  }
  .ways-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.direct.no-photo {
  padding: 26px 14px 22px;
}
.direct.no-photo h2 {
  margin-top: 0;
}
.direct .coin-list {
  list-style: none;
  margin: 16px 12px 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.direct .coin-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
}
.direct .coin-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.direct .coin-list .ico {
  width: 38px;
  height: 38px;
  border-radius: var(--r-card);
}
.direct .coin-list .ico svg {
  width: 19px;
  height: 19px;
}
.direct .coin-list b {
  display: block;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.direct .coin-list li > span:last-child {
  min-width: 0;
}
.direct .coin-list li > span:last-child > span {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.direct .coin-list a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.handbook h2 {
  margin-top: 14px;
  font-size: 1.08rem;
}
.field-hint {
  font-weight: 400;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.form-privacy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* src/styles/footer.css */
/* ═══ 页脚：全站唯一的深色区域，墨靛渐变收束页面 ═══ */
.foot {
  background: linear-gradient(180deg, var(--foot-bg), var(--foot-bg-end));
  color: var(--inverse-ink);
  padding: 72px 0 0;
  border-top: 1px solid var(--inverse-line);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr;
  gap: 40px;
}
.foot-brand .logo {
  margin-right: 0;
}
.foot .logo i {
  color: var(--inverse-muted);
}
.foot-slogan {
  margin-top: 22px;
  font-size: calc(1.5rem * var(--hs));
  line-height: 1.45;
  color: var(--inverse-highlight);
  text-wrap: balance;
}
.foot-brand p:not(.foot-slogan) {
  margin-top: 12px;
  color: var(--inverse-muted);
  font-size: 0.88rem;
  max-width: 26rem;
}
.foot h2 {
  font-size: 0.94rem;
  margin-bottom: 16px;
  color: var(--inverse-ink);
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot ul a,
.foot ul li {
  color: var(--inverse-muted);
  font-size: 0.88rem;
}
.foot ul a:hover {
  color: var(--inverse-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.foot ul a {
  display: inline-block;
  padding-block: 3px;
  overflow-wrap: anywhere;
  transition: color 0.18s;
}
.foot-bottom {
  margin-top: 48px;
  padding: 20px 0 26px;
  border-top: 1px solid var(--inverse-line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--inverse-muted);
}
.foot-bottom a:hover {
  color: var(--inverse-ink);
}
@media (max-width: 900px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .foot-brand {
    grid-column: 1/-1;
  }
}
@media (max-width: 560px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .foot-grid > div:last-child {
    grid-column: 1/-1;
  }
}

/* ═══ 移动端 ═════════════════════════════════════ */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  gap: 10px;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--card) 94%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px -16px color-mix(in srgb, var(--ink) 24%, transparent);
}
.mobile-bar .btn {
  flex: 1;
  min-height: 48px;
}
@media (max-width: 820px) {
  html {
    --mobile-bar-space: calc(80px + env(safe-area-inset-bottom));
    scroll-padding-bottom: calc(var(--mobile-bar-space) + 16px);
  }
  .mobile-bar {
    display: flex;
  }
  body {
    padding-bottom: var(--mobile-bar-space);
  }
}

.foot a:focus-visible {
  outline-color: var(--inverse-ink);
}
@media (max-width: 600px) {
  .foot {
    padding-top: 48px;
  }
  .foot-bottom {
    margin-top: 32px;
  }
  .foot ul a {
    padding-block: 7px;
  }
  .mobile-bar .btn {
    padding-inline: 12px;
  }
}


/* src/styles/pages/home.css */
/* 首页留白：分区标题与正文形成稳定节奏，手机端减少连续空白。 */
.home .sec {
  padding: 76px 0;
}
.home .sec-lg,
.home .band {
  padding: 88px 0;
}
.home .sec-split {
  margin-bottom: 40px;
}
.home .cta-wrap {
  padding-bottom: 76px;
}
/* 首页分区使用平直边界；圆角留给图片、卡片和控件。 */
.is-home {
  background: var(--canvas);
}
/* 避免装饰溢出，同时不建立新的滚动容器。 */
.sheet {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: clip;
  background: var(--page);
}
.sheet-b {
  background: var(--band);
}
.sheet + .sheet {
  border-top: 1px solid var(--line-2);
}
.home .sheet .band {
  background: transparent;
}
@media (max-width: 820px) {
  .home .sec {
    padding: 56px 0;
  }
  .home .sec-lg,
  .home .band {
    padding: 64px 0;
  }
  .home .sec-split {
    margin-bottom: 32px;
  }
  .home .cta-wrap {
    padding-bottom: 64px;
  }
}

/* 静态首屏与三项业务展示。 */
/* 浅色首屏：暖沙底叠加取自照片色调的三处柔和光晕。 */
.hero2 {
  background:
    radial-gradient(50% 80% at 95% 5%, var(--glow-warm), transparent 70%),
    radial-gradient(45% 70% at 0% 95%, var(--glow-cool), transparent 70%),
    radial-gradient(35% 55% at 50% 105%, var(--glow-green), transparent 70%), var(--hero-bg);
  padding: 64px 0 64px;
}
.hero2 .btn-line {
  background: color-mix(in srgb, var(--card) 60%, transparent);
}
.hero2-grid {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 56px;
  align-items: center;
}
.hero2-grid > * {
  min-width: 0;
}
.hero2-copy h1 {
  margin-top: 20px;
  font-size: calc(clamp(2.25rem, 4.6vw, 3.65rem) * var(--hs));
  line-height: 1.24;
  letter-spacing: -0.025em;
}
:lang(en) .hero2-copy h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
}
.hero2-copy .lead {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: clamp(1.04rem, 1.6vw, 1.16rem);
  max-width: 33rem;
}
.collage {
  position: relative;
  padding: 0 0 15% 13%;
}
.collage .c-main {
  aspect-ratio: 16/10;
  border-radius: var(--r-big);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-photo);
  transform: translate3d(0, var(--hero-main-y, 0px), 0);
}
.collage .c-a,
.collage .c-b {
  position: absolute;
  border-radius: var(--r-card);
  box-shadow:
    0 0 0 4px var(--page),
    var(--shadow-photo);
}
.collage .c-a {
  left: 0;
  bottom: 6%;
  width: 44%;
  aspect-ratio: 4/3;
  transform: translate3d(0, var(--hero-a-y, 0px), 0);
}
.collage .c-b {
  right: 5%;
  bottom: 0;
  width: 34%;
  aspect-ratio: 4/3;
  transform: translate3d(0, var(--hero-b-y, 0px), 0);
}
.home .hero2-figs {
  margin-top: 64px;
}
@media (max-width: 940px) {
  .hero2 {
    padding-top: 36px;
  }
  .hero2-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero2-copy {
    max-width: 42rem;
  }
  .collage {
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
    padding: 0 0 17% 9%;
  }
  .home .hero2-figs {
    margin-top: 44px;
  }
}

.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.biz-grid > * {
  min-width: 0;
}
.biz {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-big);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--biz, var(--line));
  box-shadow: var(--shadow-1);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s;
}
.biz:hover,
.biz:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: color-mix(in srgb, var(--biz, var(--secondary)) 45%, var(--line));
  border-top-color: var(--biz, var(--line));
}
.biz .ph {
  aspect-ratio: 16/10;
  border-radius: 0;
}
.biz .ph > img {
  transition: transform 0.6s var(--ease-out);
}
.biz:hover .ph > img {
  transform: scale(1.025);
}
.biz-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 24px 24px;
}
.biz-tag {
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}
.biz h3 {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 0;
  font-size: 1.22rem;
  line-height: 1.35;
}
.biz h3 .ico {
  width: 38px;
  height: 38px;
  border-radius: var(--r-big);
}
.biz h3 .ico svg {
  width: 19px;
  height: 19px;
}
.biz-body > p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.93rem;
}
.biz-body > .biz-who {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-2);
}
.biz .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--biz, var(--secondary));
}
.biz .go svg {
  width: 16px;
  height: 16px;
  transition: transform 0.18s;
}
.biz:hover .go svg {
  transform: translateX(4px);
}
@media (max-width: 900px) {
  .biz-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
@media (prefers-reduced-motion: reduce), print {
  .collage .c-main,
  .collage .c-a,
  .collage .c-b {
    transform: none;
  }
}
@media (max-width: 600px) {
  .hero2-copy h1 {
    font-size: 2.25rem;
    line-height: 1.3;
  }
  :lang(en) .hero2-copy h1 {
    font-size: 2.15rem;
    line-height: 1.15;
  }
  .hero2-copy .lead {
    font-size: 1rem;
    line-height: 1.85;
  }
  .hero2-copy .acts {
    gap: 10px;
    margin-top: 24px;
  }
  .hero2-copy .btn {
    padding-inline: 20px;
  }
  .biz-body {
    padding: 24px;
  }
  .biz h3 {
    align-items: center;
    font-size: 1.25rem;
  }
}
@media (max-width: 380px) {
  .hero2-copy h1 {
    font-size: 2.05rem;
  }
}

/* 合作概览：左侧标题与入口，右侧四步两列，区别于其余“标题 + 说明”分区。 */
.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px 72px;
  align-items: start;
}
.process-intro h2 {
  margin-top: 12px;
  font-size: calc(clamp(1.7rem, 3.2vw, 2.3rem) * var(--hs));
  line-height: 1.25;
}
.process-intro > p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--ink-2);
}
.process-intro .tracks-note {
  margin-top: 24px;
}
.process-layout .home-process {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 40px;
}
@media (max-width: 900px) {
  .process-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .process-layout .home-process {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}


/* src/styles/motion.css */
/* Native cross-document transitions keep real links, history and scroll restoration. */
@view-transition {
  navigation: auto;
}
.topbar {
  view-transition-name: site-header;
}
main {
  view-transition-name: page-content;
}
::view-transition {
  pointer-events: none;
}
::view-transition-group(site-header) {
  animation: none;
  z-index: 1;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
}
::view-transition-old(page-content) {
  animation: page-leave var(--motion-fast) ease-out both;
}
::view-transition-new(page-content) {
  animation: page-enter var(--motion-page) var(--ease-out) both;
}
@keyframes page-leave {
  to {
    opacity: 0;
  }
}
@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none;
  }
}


/* src/styles/accessibility.css */
/* 渐进增强：脚本不可用时，导航和全部课程仍可阅读。 */
.fs-btn,
.course-expand,
[data-course-filters],
[data-case-filters] {
  display: none;
}
.preferences-ready .fs-btn {
  display: grid;
}
.courses-ready .course-expand {
  display: inline-flex;
}
.courses-ready [data-course-filters],
.cases-ready [data-case-filters] {
  display: flex;
}
.filters-bar:has([data-course-filters]),
.filters-bar:has([data-case-filters]) {
  display: none;
}
.courses-ready .filters-bar:has([data-course-filters]),
.cases-ready .filters-bar:has([data-case-filters]) {
  display: block;
}
.btn:active,
.icon-btn:active {
  transform: translateY(0);
}
.btn:active {
  box-shadow: inset 0 1px 3px color-mix(in srgb, var(--ink) 18%, transparent);
}
.btn-line:active,
.icon-btn:active {
  background: var(--note-surface);
}
.btn:disabled {
  transform: none;
  box-shadow: none;
}
.topbar:focus-within {
  transform: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
}
@media (max-width: 820px) {
  body:has(#enquiryForm:focus-within) .mobile-bar {
    display: none;
  }
}
@media (hover: none) {
  .btn:hover,
  .biz:hover,
  .feat-item:hover {
    transform: none;
    box-shadow: none;
  }
  .biz:hover .ph > img,
  .feat-item:hover .ph > img {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
@media print {
  :root {
    --page: #fff;
    --band: #fff;
    --card: #fff;
    --ink: #000;
    --ink-2: #333;
    --ink-3: #444;
    --line: #ccc;
    --foot-bg: #fff;
    --inverse-bg: #fff;
    --inverse-line: #ccc;
    --inverse-ink: #000;
    --inverse-muted: #333;
    --inverse-highlight: #333;
    --foot-bg-end: #fff;
    --hero-bg: #fff;
    --glow-warm: transparent;
    --glow-cool: transparent;
    --glow-green: transparent;
  }
  body {
    padding: 0;
    font-size: 11pt;
  }
  .cta {
    box-shadow: none;
  }
  .hero2 {
    --ink: #000;
    --ink-2: #333;
    --ink-3: #444;
    --line: #ccc;
    --line-2: #ccc;
    --ph-a: #eee;
    background: #fff;
    color: #000;
  }
  .topbar,
  .mobile-bar,
  .filters-bar,
  .course-expand,
  .acts,
  .skip {
    display: none !important;
  }
  .home .sec,
  .home .sec-lg,
  .sec,
  .sec-lg,
  .band {
    padding: 28px 0;
  }
  .sheet + .sheet,
  .foot {
    margin-top: 0;
    border-radius: 0;
  }
  .courses-ready .course-group:not(.expanded) .course-extra {
    display: flex;
  }
  .course-group[hidden],
  .case-row[hidden] {
    display: grid !important;
  }
  .cg-side,
  .story-pics,
  .faq-side {
    position: static;
  }
  .course,
  .card,
  .biz,
  .track,
  .facts > div {
    break-inside: avoid;
  }
  .ph {
    break-inside: avoid;
  }
}
