/* =============================================================================
 * 自定义拖拽模板 · 统一视觉系统（V1.78.55 自定义模板升级）
 * -----------------------------------------------------------------------------
 * 前台 sections（app/Site/Template/custom/sections/*）与后台设计器预览（AJAX
 *   renderHtml）共用本文件 —— 单一真源，零漂移。
 *
 * 设计原则（浅色系 · 与全站 tokens 一致）：
 *   - 颜色只走主题 CSS 变量（custom-presets.css 在 [data-ctk-theme] 作用域覆盖）。
 *   - 中性阴影用 rgba(15,23,42,*) 灰阶，不引入品牌色裸值。
 *   - 圆角统一 16px、卡片柔和阴影、留白节奏化。
 *   - 玻璃拟态：surface 卡片 + 1px 描边 + 软阴影，轻量通透。
 * ========================================================================== */

/* ---------- 区块骨架 ---------- */
/* #1269 · 区块底色走 --ct-sec-bg 变量下发（默认透明，透出页面底色） */
.ct-section { padding: 56px 20px; background: var(--ct-sec-bg, transparent); }
.ct-inner { max-width: var(--ct-inner-w, 1120px); margin: 0 auto; }
.ct-head { text-align: center; margin-bottom: 30px; }
.ct-title { font-size: 28px; line-height: 1.25; margin: 0 0 8px; color: var(--text); font-weight: 800; letter-spacing: -.01em; }
.ct-sub { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.7; }
.ct-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--primary); background: var(--primary-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }

/* #1269 · 「浅白 / 页面底色」交替的斑马纹节奏：一半区块贴 --surface，一半透明。
 *
 * 原先这行是写在 section 上的内联 `style="background:var(--surface)"`，两层问题：
 *   ① 视图内联样式是项目红线（无法缓存 / CSP 要额外放行 / 样式散落在 PHP 里改色要满仓库找）；
 *   ② 内联优先级最高 ⇒ 会把 .ct-sec 上的 ct-bg-dark / ct-bg-grad 整块深色背景**糊死**
 *      —— 用户在设计器里选了深色/渐变背景，这 10 个区块毫无反应，看着像开关坏了。
 *      （与 .ct-hero.ct-hero--pure 同源：**自带的东西必须能被下发覆盖**，不能写死。）
 *
 * ⇒ 改为变量下发，并让它在 .ct-sec 显式选了背景时让位（透明，透出父级通栏背景）。 */
.ct-section--surface { --ct-sec-bg: var(--surface); }
.ct-sec.ct-bg-soft .ct-section--surface,
.ct-sec.ct-bg-tint .ct-section--surface,
.ct-sec.ct-bg-dark .ct-section--surface,
.ct-sec.ct-bg-grad .ct-section--surface { --ct-sec-bg: transparent; }

/* ---------- 网格 ---------- */
.ct-grid { display: grid; gap: 20px; }
.ct-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ct-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ct-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* =============================================================================
 * #1008 外观层（背景 / 对齐 / 留白 / 宽度 / 列数 / 比例 / 卡片风格）
 * -----------------------------------------------------------------------------
 * 由 CustomTemplate::renderHtml() 输出外层 <div class="ct-sec …">，
 *   .ct-sec 上挂修饰类，靠 CSS 变量下发到内部 —— sections/*.php 零改动，单一真源。
 * 颜色红线：全部走主题 CSS 变量，深色态用「变量覆盖」实现反白，绝不写裸 HEX 在区块里。
 * ========================================================================== */

/* 内容宽度：变量下发，.ct-inner 统一消费 */
.ct-sec { --ct-inner-w: 1120px; }
.ct-w-narrow { --ct-inner-w: 880px; }
.ct-w-wide   { --ct-inner-w: 1320px; }

/* 列数：只在显式设置时才定义 --ct-cols；未设置则各网格沿用自己的列数（fallback），视觉零变化 */
.ct-cols-1 { --ct-cols: 1; }
.ct-cols-2 { --ct-cols: 2; }
.ct-cols-3 { --ct-cols: 3; }
.ct-cols-4 { --ct-cols: 4; }
.ct-cols-5 { --ct-cols: 5; }
.ct-cols-6 { --ct-cols: 6; }
.ct-sec .ct-grid-2 { grid-template-columns: repeat(var(--ct-cols, 2), 1fr); }
.ct-sec .ct-grid-3 { grid-template-columns: repeat(var(--ct-cols, 3), 1fr); }
.ct-sec .ct-grid-4 { grid-template-columns: repeat(var(--ct-cols, 4), 1fr); }
.ct-sec .ct-stat-grid { grid-template-columns: repeat(var(--ct-cols, 4), 1fr); }
.ct-sec .ct-gallery  { grid-template-columns: repeat(var(--ct-cols, 3), 1fr); }
.ct-sec .ct-logos    { grid-template-columns: repeat(var(--ct-cols, 4), minmax(0, 1fr)); }

/* 留白节奏 */
.ct-pad-tight .ct-section { padding: 36px 20px; }
.ct-pad-loose .ct-section { padding: 80px 20px; }
.ct-pad-tight .ct-hero { padding: 52px 20px; }
.ct-pad-loose .ct-hero { padding: 104px 20px; }

/* 标题对齐（'left' 由 skinClass 输出 .ct-align-left）
 * #1269 · 顺手摘掉 .ct-align-left .ct-eyebrow-wrap —— 全库无任何区块输出该类，是孤儿选择器。 */
.ct-align-left .ct-head { text-align: left; }

/* 背景：浅灰 / 主色淡染 */
.ct-bg-soft { background: var(--surface2); }
.ct-bg-tint { background: var(--primary-soft); }

/* Hero 高度 */
.ct-h-tall  .ct-hero { padding: 120px 20px; }
.ct-h-short .ct-hero { padding: 48px 20px; }

/* 卡片风格：flat=去阴影 / plain=去阴影去描边（融进背景） */
.ct-flat :is(.ct-card, .ct-stat, .ct-quote-card, .ct-member, .ct-step, .ct-honor, .ct-case, .ct-job, .ct-course, .ct-price, .ct-faq details, .ct-logos figure) { box-shadow: none; }
.ct-plain :is(.ct-card, .ct-stat, .ct-quote-card, .ct-member, .ct-step, .ct-honor, .ct-case, .ct-job, .ct-course, .ct-price, .ct-faq details, .ct-logos figure) {
  box-shadow: none; border-color: transparent; background: transparent;
}
/* #1269 · 同上：只在真有悬停能力的设备上存在 hover 位移，这条抵消才需要存在 */
@media (hover: hover) {
  .ct-plain :is(.ct-card, .ct-stat, .ct-quote-card, .ct-member, .ct-step, .ct-honor, .ct-case, .ct-job, .ct-course, .ct-price):hover { transform: none; }
}

/* 图标风格 */
.ct-icon-outline .ct-card .ct-ico { background: transparent; border: 1.5px solid var(--primary); }
.ct-icon-plain   .ct-card .ct-ico { background: transparent; width: auto; height: auto; font-size: 34px; }

/* 证言：隐藏头像 / 步骤：隐藏序号 */
.ct-no-avatar .ct-quote-author img { display: none; }
.ct-no-num .ct-step .ct-num { display: none; }

/* Logo 灰度 */
.ct-gray .ct-logos img { filter: grayscale(1); opacity: .68; transition: filter .2s ease, opacity .2s ease; }
/* #1269 · 同上：触屏粘性 hover（Logo 会一直停在「去了灰度」的态，颜色花得不对称） */
@media (hover: hover) {
  .ct-gray .ct-logos figure:hover img { filter: grayscale(0); opacity: 1; }
}

/* 对比表斑马纹 + 窄屏横向滚动（防跑版） */
.ct-striped .ct-compare tbody tr:nth-child(even) td { background: var(--surface2); }
.ct-compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ct-compare { min-width: 560px; }

/* 图片比例 */
.ct-ratio-square :is(.ct-gallery img, .ct-case img) { height: auto; aspect-ratio: 1 / 1; }
.ct-ratio-land   :is(.ct-gallery img, .ct-case img) { height: auto; aspect-ratio: 4 / 3; }
.ct-ratio-wide   :is(.ct-gallery img, .ct-case img) { height: auto; aspect-ratio: 16 / 9; }
.ct-ratio-classic .ct-video-wrap { padding-top: 75%; }
.ct-sec .ct-imgrow img { aspect-ratio: 4 / 3; height: auto; }
.ct-ratio-square .ct-imgrow img { aspect-ratio: 1 / 1; }
.ct-ratio-land .ct-imgrow img { aspect-ratio: 3 / 2; }
.ct-ratio-wide .ct-imgrow img { aspect-ratio: 16 / 9; }

/* 按钮风格（hero / cta） */
.ct-btn-white .ct-cta { background: #fff; color: var(--primary); box-shadow: 0 8px 20px rgba(15, 23, 42, .12); }
.ct-btn-ghost .ct-cta { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); box-shadow: none; }
/* #1269 · 同上：触屏粘性 hover */
@media (hover: hover) {
  .ct-btn-white .ct-cta:hover, .ct-btn-ghost .ct-cta:hover { box-shadow: 0 12px 26px rgba(15, 23, 42, .16); }
}

/* CTA 区块背景变体 */
.ct-cta-sec--grad    { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%); --text: #fff; --muted: rgba(255, 255, 255, .82); }
.ct-cta-sec--primary { background: var(--primary); --text: #fff; --muted: rgba(255, 255, 255, .82); }
.ct-cta-sec--dark    { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); --text: #fff; --muted: rgba(255, 255, 255, .82); }
.ct-cta-sec--soft    { background: var(--surface2); color: var(--text); }
.ct-cta-sec--soft h2 { color: var(--text); }
.ct-cta-sec--soft p  { color: var(--muted); opacity: 1; }
.ct-cta-sec--white   { background: #fff; color: var(--text); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ct-cta-sec--white h2 { color: var(--text); }
.ct-cta-sec--white p  { color: var(--muted); opacity: 1; }

/* 深色背景：用「变量覆盖」实现整块反白（卡片仍保持可读） */
.ct-bg-dark  { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }
.ct-bg-grad  { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%); }
.ct-bg-dark, .ct-bg-grad {
  --text: #fff;
  --muted: rgba(255, 255, 255, .82);
  --border: rgba(255, 255, 255, .18);
  --surface: rgba(255, 255, 255, .08);
  --surface2: rgba(255, 255, 255, .12);
}
.ct-bg-dark .ct-title, .ct-bg-grad .ct-title { color: #fff; }
.ct-bg-dark :is(.ct-card, .ct-stat, .ct-quote-card, .ct-member, .ct-step, .ct-honor, .ct-case, .ct-job, .ct-course, .ct-price, .ct-faq details, .ct-logos figure, .ct-compare thead th) {
  background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16);
}
.ct-bg-grad :is(.ct-card, .ct-stat, .ct-quote-card, .ct-member, .ct-step, .ct-honor, .ct-case, .ct-job, .ct-course, .ct-price, .ct-faq details, .ct-logos figure, .ct-compare thead th) {
  background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22);
}
.ct-bg-dark .ct-stat .ct-val, .ct-bg-grad .ct-stat .ct-val { color: #fff; }
.ct-bg-dark .ct-member-role, .ct-bg-grad .ct-member-role { color: rgba(255, 255, 255, .92); }
.ct-bg-dark .ct-compare td.ct-us, .ct-bg-grad .ct-compare td.ct-us { background: rgba(255, 255, 255, .16); color: #fff; }

/* ---------- 卡片（玻璃拟态） ---------- */
.ct-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}
/* #1269 · hover 效果一律装在 @media (hover: hover) 里 —— 触屏没有「悬停」这件事，
 *   浏览器会在点完之后把 :hover 状态**粘住不释放**（sticky hover），
 *   表现就是：手指划过卡片，整块浮起来再也不回去。判据是设备能力，不是屏幕宽度。 */
@media (hover: hover) {
  .ct-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(15, 23, 42, .1); }
}
.ct-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--text); font-weight: 700; }
.ct-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.ct-card .ct-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; font-size: 26px;
  background: var(--primary-soft); margin-bottom: 14px;
}
.ct-card .ct-meta { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.ct-card .ct-cta { color: var(--primary); font-size: 13px; font-weight: 700; margin-top: 10px; display: inline-block; }

/* ---------- 按钮 ---------- */
.ct-cta {
  display: inline-block; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff; padding: 13px 26px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 15px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .22); transition: transform .15s ease, box-shadow .15s ease;
}
/* #1269 · 同上：触屏粘性 hover */
@media (hover: hover) {
  .ct-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37, 99, 235, .3); }
}
.ct-cta--white { background: #fff; color: var(--primary); box-shadow: 0 8px 20px rgba(15, 23, 42, .12); }
.ct-cta--ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); box-shadow: none; }
.ct-cta--block { display: block; text-align: center; }

/* ---------- Hero 首屏 ---------- */
.ct-hero { padding: 72px 20px; }
.ct-hero--gradient { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%); color: #fff; --text: #fff; --muted: rgba(255, 255, 255, .82); }
.ct-hero--primary  { background: var(--primary); color: #fff; --text: #fff; --muted: rgba(255, 255, 255, .82); }
.ct-hero--surface  { background: var(--surface); color: var(--text); }
.ct-hero--light    { background: #fff; color: var(--text); border-bottom: 1px solid var(--border); }
/* #1055 深色态 HERO 标题强制反白：显式 color 兜底，杜绝被全局 h1{color:var(--text)} 级联吃掉 */
.ct-hero--gradient h1, .ct-hero--primary h1 { color: #fff; }
/* #1266 · 高度不再写死：**交给图片自身的宽高比**（与 Core\Hero 的纯图模式同口径）
 *   原写法 `.ct-hero--pure { min-height: 440px }` + inline `background-size:cover` 是质量问题源头：
 *   440px 是照着桌面观感定的，但它与图片比例毫无关系 —— 375px 宽屏上容器是 0.85:1，
 *   而典型 banner 是 3.84:1，cover 会先按高度撑满把整图放大到约 4.5 倍再对中裁，
 *   结果是手机上只看到正中间一条；图里的文字/logo 十有八九就在被切掉的两侧。
 *   ⇒ 改为：img 按原始比例排（不裁不变形），只对「太矮」「太高」两个方向给越界兜底。
 */
.ct-hero--pure { position: relative; display: block; line-height: 0; overflow: hidden; }
/* V1.78.137 · 同上，纯图 hero 零留白：`.ct-hero` 基类（第 177 行）给了 `padding: 72px 20px`。
 *
 * 这里必须双类（0,2,0），单写 `.ct-hero--pure`（0,1,0）会被本文件 @media(max-width:600px)
 * 里那条更靠后的 `.ct-hero { padding: 52px 16px; }` 反压回去 —— 手机上又会冒出来。
 * （同一个教条见 app.css 的 `.hero.hero-image`。） */
.ct-hero.ct-hero--pure { padding: 0; }
.ct-hero-img {
  display: block; width: 100%; height: auto;
  min-height: 260px;     /* 超宽 banner：低于此值屏幕上下各留一大片，观感像分隔符不像首屏 */
  max-height: 620px;     /* 竖版/超长图：再高就把下面的区块全挤出屏 */
  object-fit: cover; object-position: center center;
}
.ct-hero-inner { max-width: 1120px; margin: 0 auto; display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.ct-hero-copy { flex: 1 1 380px; }
.ct-hero h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.15; margin: 0 0 16px; font-weight: 850; letter-spacing: -.02em; }
.ct-hero p { font-size: 17px; line-height: 1.7; margin: 0 0 24px; opacity: .94; }
/* #1007 修复：原写法把「修饰类 + .ct-hero」写成后代关系，而两者其实是同一元素 ⇒
   规则永远匹配不到（死代码）。改为修饰类下的 p 直接命中。 */
.ct-hero--surface p, .ct-hero--light p { color: var(--muted); opacity: 1; }
.ct-hero-figure { flex: 1 1 320px; text-align: center; }
.ct-hero-figure img { max-width: 100%; max-height: 300px; border-radius: 18px; box-shadow: 0 18px 50px rgba(15, 23, 42, .22); }
.ct-hero-fallback { font-size: 96px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.18)); }
/* #1014 纯图模式：背景大图满铺 + 半透明遮罩保证文案可读；整图可点跳转 */
.ct-hero--image { position: relative; color: #fff; }
.ct-hero--image::before { content: ''; position: absolute; inset: 0; background: rgba(15,23,42,.45); z-index: 0; }
.ct-hero--image .ct-hero-inner { position: relative; z-index: 2; pointer-events: none; }
.ct-hero--image .ct-hero-copy a { pointer-events: auto; }
.ct-hero--image .ct-hero-copy h1, .ct-hero--image .ct-hero-copy p { text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.ct-hero-whole { position: absolute; inset: 0; z-index: 1; display: block; }

/* ---------- 图文 ---------- */
.ct-imgrow { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
/* #1269 · 反转排版（原内联 flex-direction） */
.ct-imgrow--reverse { flex-direction: row-reverse; }
.ct-imgrow > div { flex: 1 1 320px; }
.ct-imgrow img { width: 100%; border-radius: 18px; box-shadow: 0 14px 40px rgba(15, 23, 42, .12); }
.ct-imgrow h2 { font-size: 26px; margin: 0 0 14px; color: var(--text); font-weight: 800; }
.ct-imgrow p { color: var(--muted); font-size: 15px; line-height: 1.9; }

/* ---------- CTA 行动号召 ---------- */
.ct-cta-section { position: relative; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%); color: #fff; text-align: center; }
.ct-cta-section h2 { font-size: 28px; margin: 0 0 10px; font-weight: 800; }
/* #1055 深色态 CTA 标题强制反白：显式 color 兜底，杜绝被全局 h2{color:var(--text)} 级联吃掉 */
.ct-cta-sec--grad h2, .ct-cta-sec--primary h2, .ct-cta-sec--dark h2 { color: #fff; }
.ct-cta-section p { font-size: 16px; opacity: .92; max-width: 680px; margin: 0 auto 22px; line-height: 1.7; }
/* #1016 背景大图（bg_image）：满铺 + 半透明遮罩保证文字可读
 * #1269 · 动态 URL 经 --ct-cta-bg 变量下发（这是唯一必须由 PHP 传的部分），
 *   size / position 等静态项回归本文件，不再写内联 style。 */
.ct-cta--image { color: #fff; background-image: var(--ct-cta-bg); background-size: cover; background-position: center; }
.ct-cta--image .ct-inner { position: relative; z-index: 1; }
.ct-cta-mask { position: absolute; inset: 0; background: rgba(15,23,42,.5); z-index: 0; }

/* ---------- 留资 leads（背景通栏 · #1269）----------
 * 原形态是三层套娃：页面底色 → 680px 渐变块（.lf-wrap.lf-hero 自带）→ 640px 白卡片，
 *   于是那条主色渐变只有 680px 宽、两侧各空一大片，看着就是「留资区块左右留白没铺到位」。
 * 根因：**渐变背景挂在了限宽容器里**。partial 的 .lf-wrap.lf-hero 原本是给「hero 里的一整条
 *   通栏渐变」设计的，被塞进 .ct-inner.ct-lead-wrap 之后，它的背景就跟着盒子一起被限宽了。
 * 新分工：**区块负责背景（100% 通栏），表单卡片负责限宽居中**。
 *
 * 「未显式选 bg 时才上默认渐变」——自带背景必须给下发让路，
 *   否则用户在设计器给本区块选了 soft / tint / dark / grad 会与这里的渐变打架（双重背景）。 */
.ct-sec:not(.ct-bg-soft):not(.ct-bg-tint):not(.ct-bg-dark):not(.ct-bg-grad) .ct-lead-sec {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  --text: #fff;
  --muted: rgba(255, 255, 255, .82);
}
/* 撤掉 680px 盒里的那份「假背景」，否则仍会在卡片外面多一圈渐变 */
.ct-lead-sec .lf-wrap.lf-hero { background: transparent; margin: 0; padding: 0; }
/* 卡片作用域还原中性色：上面把 --text 改成了 #fff，而 .lf-card / label / input 全吃 var(--text)，
 *   不还原就是**白底白字**（#1055 同一条教条：改 CSS 变量要注意它会继承进所有后代）。 */
.ct-lead-sec .lf-card { --text: #1e293b; --muted: #64748b; --muted-2: #94a3b8; --border: #e2e8f0; --card: #fff; }
/* 680 → 640：与 .lf-card 同宽，让标题、卡片左右边缘对齐（差 40px 时看着像没对齐又不像故意的） */
.ct-lead-wrap { max-width: 640px; margin: 0 auto; }
.ct-lead-wrap .ct-head { margin-bottom: 18px; }

/* ---------- 文章列表（读真实数据） ---------- */
.ct-post { display: block; text-decoration: none; color: inherit; }
/* #1269 · 缩略图从「写死高度」改为「锁比例」。
 *   写死 `height: 160px` 的病根与 #1266 的 banner 是同一个：容器比例与图片比例脱钩。
 *   同一张图在 3 列里宽 ~347px ⇒ 2.17:1，换成 2 列宽 ~540px ⇒ 3.38:1 ——
 *   **换个列数，同一张图就被裁成完全不同的构图**（不是拉伸变形，是切掉的部分不一样多）。
 *   ⇒ aspect-ratio + object-fit: cover：比例恒定，多出来的部分均匀切掉。
 *   .ct-ratio-* 系列（16:9 / 4:3 / 1:1）仍然可以在外层覆写，两者是同一套机制。 */
.ct-post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; margin-bottom: 12px; display: block; }
.ct-post .ct-meta { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.ct-post h3 { margin: 0 0 6px; font-size: 16px; color: var(--text); font-weight: 700; }
.ct-post p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ---------- 数据条 statistics ---------- */
.ct-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ct-stat { text-align: center; padding: 24px 16px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.ct-stat .ct-val { font-size: 38px; font-weight: 850; color: var(--primary); line-height: 1; letter-spacing: -.02em; }
.ct-stat .ct-unit { font-size: 18px; font-weight: 700; color: var(--primary); margin-left: 2px; }
.ct-stat .ct-label { margin-top: 10px; color: var(--muted); font-size: 14px; }

/* ---------- 客户证言 testimonials ---------- */
.ct-quote-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: 0 8px 24px rgba(15,23,42,.06); display: flex; flex-direction: column; gap: 14px; }
.ct-quote-card .ct-q { font-size: 15px; line-height: 1.8; color: var(--text); flex: 1; }
.ct-quote-card .ct-q::before { content: "“"; color: var(--primary); font-size: 28px; font-weight: 800; margin-right: 4px; }
.ct-quote-author { display: flex; align-items: center; gap: 12px; }
.ct-quote-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 12px rgba(15,23,42,.12); }
.ct-quote-author .ct-name { font-weight: 700; color: var(--text); font-size: 14px; }
.ct-quote-author .ct-role { color: var(--muted); font-size: 12px; }

/* ---------- 图片墙 gallery ---------- */
.ct-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ct-gallery figure { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.ct-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform .25s ease; }
/* #1269 · 同上：触屏粘性 hover（图片放大一旦粘住，缩略图就永久错位） */
@media (hover: hover) {
  .ct-gallery figure:hover img { transform: scale(1.04); }
}
.ct-gallery figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); background: #fff; }

/* ---------- 折叠问答 faq ---------- */
.ct-faq details { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; box-shadow: 0 6px 18px rgba(15,23,42,.05); }
.ct-faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--text); font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.ct-faq summary::-webkit-details-marker { display: none; }
.ct-faq summary::after { content: "+"; font-size: 22px; color: var(--primary); font-weight: 700; }
.ct-faq details[open] summary::after { content: "−"; }
.ct-faq details p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.8; }

/* ---------- 问答栏目 faq_list（#1001）---------- */
.ct-faq-list details { transition: border-color .15s; }
/* #1269 · 同上：触屏粘性 hover */
@media (hover: hover) {
  .ct-faq-list details:hover { border-color: var(--primary); }
}
.ct-faq-more { display: inline-block; margin: 0 0 16px; font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; }
/* #1269 · 同上：触屏粘性 hover */
@media (hover: hover) {
  .ct-faq-more:hover { color: var(--accent); text-decoration: underline; }
}

/* ---------- 团队 team（#1001）---------- */
.ct-member { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px 18px; text-align: center; box-shadow: 0 8px 24px rgba(15,23,42,.06); transition: transform .18s ease, box-shadow .18s ease; }
/* #1269 · 同上：触屏粘性 hover */
@media (hover: hover) {
  .ct-member:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,23,42,.10); }
}
.ct-member-av { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--primary-soft), var(--surface2)); display: flex; align-items: center; justify-content: center; }
.ct-member-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-member-initial { font-size: 30px; font-weight: 800; color: var(--primary); }
.ct-member-name { font-size: 16px; font-weight: 700; color: var(--text); }
.ct-member-role { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--primary); }
.ct-member-bio { margin: 10px 0 0; font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ---------- 流程步骤 steps ---------- */
.ct-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.ct-step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.ct-step .ct-num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); color: #fff; font-weight: 800; margin-bottom: 14px; }
.ct-step h3 { margin: 0 0 8px; font-size: 16px; color: var(--text); }
.ct-step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ---------- 时间线 timeline ---------- */
.ct-timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 28px; }
.ct-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.ct-tl-item { position: relative; margin-bottom: 26px; }
.ct-tl-item::before { content: ""; position: absolute; left: -28px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.ct-tl-date { font-size: 13px; font-weight: 800; color: var(--primary); }
.ct-tl-item h3 { margin: 4px 0 6px; font-size: 17px; color: var(--text); }
.ct-tl-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ---------- 资质荣誉 honors ---------- */
.ct-honor { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.ct-honor .ct-badge { font-size: 34px; flex: none; width: 60px; height: 60px; display: inline-flex; align-items: center; justify-content: center; border-radius: 16px; background: var(--accent-soft); }
.ct-honor .ct-badge--img { padding: 0; overflow: hidden; background: var(--accent-soft); }
.ct-honor .ct-badge--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-honor h3 { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.ct-honor p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- 案例 cases ---------- */
.ct-case { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.ct-case img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.ct-case .ct-case-body { padding: 18px; }
.ct-case .ct-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.ct-case h3 { margin: 0 0 8px; font-size: 16px; color: var(--text); }
.ct-case p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* ---------- 招聘 recruit ---------- */
.ct-job { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.ct-job .ct-job-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.ct-job h3 { margin: 0; font-size: 16px; color: var(--text); }
.ct-job .ct-loc { font-size: 12px; color: var(--primary); background: var(--primary-soft); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.ct-job p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ---------- 课程 course ---------- */
.ct-course { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: 0 8px 24px rgba(15,23,42,.06); display: flex; flex-direction: column; gap: 10px; }
.ct-course .ct-course-top { display: flex; justify-content: space-between; align-items: center; }
.ct-course h3 { margin: 0; font-size: 16px; color: var(--text); }
.ct-course .ct-tag { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.ct-course .ct-price { font-size: 20px; font-weight: 850; color: var(--primary); }
.ct-course p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; flex: 1; }

/* ---------- 价格表 price ---------- */
.ct-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: stretch; }
.ct-price { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 26px; box-shadow: 0 8px 24px rgba(15,23,42,.06); display: flex; flex-direction: column; gap: 14px; }
.ct-price--hot { border: 2px solid var(--primary); box-shadow: 0 16px 40px rgba(37,99,235,.18); position: relative; }
.ct-price--hot::before { content: "主推"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--primary), var(--primary-deep)); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.ct-price h3 { margin: 0; font-size: 19px; color: var(--text); }
.ct-price .ct-price-val { font-size: 30px; font-weight: 850; color: var(--text); }
.ct-price .ct-price-val small { font-size: 14px; color: var(--muted); font-weight: 600; }
.ct-price ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.ct-price li { font-size: 14px; color: var(--text); line-height: 1.5; padding-left: 22px; position: relative; }
.ct-price li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }

/* ---------- 对比表 compare ---------- */
.ct-compare { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 16px; box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.ct-compare th, .ct-compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.ct-compare thead th { background: var(--surface); font-weight: 800; color: var(--text); }
.ct-compare thead th:first-child { color: var(--muted); }
.ct-compare tbody tr:last-child td { border-bottom: none; }
.ct-compare td.ct-us { color: var(--primary); font-weight: 700; background: var(--primary-soft); }
.ct-compare td.ct-them { color: var(--muted); }

/* ---------- 视频 video ---------- */
.ct-video-wrap { position: relative; padding-top: 56.25%; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 40px rgba(15,23,42,.12); background: #0b1220; }
.ct-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* #1015 上传视频（原生 <video> 播放，满铺容器） */
.ct-video-el { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }

/* ---------- Logo 墙 logos ---------- */
.ct-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; align-items: center; }
.ct-logos figure { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(15,23,42,.05); }
.ct-logos img { max-width: 100%; max-height: 56px; object-fit: contain; }
.ct-logos figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- 响应式 ----------
   #1007 关键修复：断点内的选择器必须带上 .ct-sec 前缀，
   否则特异性低于「.ct-sec .ct-grid-3」等外观层规则 ⇒ 自定义列数会盖掉响应式塌列 ⇒ 窄屏跑版。 */
@media (max-width: 900px) {
  .ct-sec .ct-grid-3, .ct-sec .ct-grid-4, .ct-sec .ct-stat-grid, .ct-sec .ct-gallery { grid-template-columns: repeat(2, 1fr); }
  .ct-sec .ct-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ct-hero-inner, .ct-imgrow { gap: 26px; }
}
@media (max-width: 600px) {
  .ct-sec .ct-section { padding: 40px 16px; }
  /* #1266 · 手机上把纯图 hero 的下限调低：此时「够高」的代价是把超宽 banner 两侧切掉，
     而手机屏窄、横向信息密度本来就低，切两侧的观感损失远大于高度损失。 */
  .ct-hero-img { min-height: 150px; max-height: 46vh; }
  .ct-sec .ct-pad-tight .ct-section, .ct-pad-tight .ct-section { padding: 28px 16px; }
  .ct-sec .ct-pad-loose .ct-section, .ct-pad-loose .ct-section { padding: 52px 16px; }
  .ct-sec .ct-grid-2, .ct-sec .ct-grid-3, .ct-sec .ct-grid-4, .ct-sec .ct-stat-grid, .ct-sec .ct-gallery { grid-template-columns: 1fr; }
  .ct-sec .ct-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-hero { padding: 52px 16px; }
  .ct-title { font-size: 23px; }
  .ct-hero h1 { font-size: 30px; }
  .ct-compare { min-width: 480px; font-size: 13px; }
  .ct-compare th, .ct-compare td { padding: 11px 12px; }
}

/* =============================================================================
 * #1269 · 动效无障碍：系统开了「减弱动态效果」时，位移/放大一律取消。
 *   对前庭功能敏感的用户，漂浮感是最常见的眩晕诱因 —— 这不是美化偏好，是可用性要求。
 *   选择器与 @media (hover: hover) 里的逐字一致 ⇒ 专属性相同，**靠源码顺序取胜**（本块在最后）。
 * ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ct-card, .ct-member, .ct-cta, .ct-step, .ct-gallery img, .ct-compare,
  .ct-quote-card, .ct-honor, .ct-case, .ct-job, .ct-course, .ct-price,
  .ct-faq-list details, .ct-logos img { transition: none; }
  .ct-card:hover, .ct-member:hover, .ct-cta:hover, .ct-btn-white .ct-cta:hover,
  .ct-btn-ghost .ct-cta:hover, .ct-plain :is(.ct-card, .ct-stat, .ct-quote-card, .ct-member, .ct-step, .ct-honor, .ct-case, .ct-job, .ct-course, .ct-price):hover {
    transform: none;
  }
  .ct-gallery figure:hover img { transform: none; }
}
