/* ============================================================
   广州永瑞控股集团有限公司（永瑞集团 YGR）· 官网样式系统
   版式基准：品牌方提供的首页设计稿 + 品牌方 banner 素材（2026-10-08）
   ------------------------------------------------------------
   配色为**实测值**，不是估计值（实测自品牌方自己的 banner 高分辨率原图，
   设计稿缩略图只有 339px 宽、JPEG 混色严重，不可用于取色）：
     · 主色 / 标题紫 / 描边按钮  #4C50E5   H238 S.67 V.90
     · 渐变另一端（紫红）        #C05CD0   H292 S.56 V.82
     · 页面底色                  #F8F9FE   与设计稿次底色 #F7F7FF 同族
     · 页脚底色                  #535353
   对比度：白底 #4C50E5 文字 5.86:1（≥4.5，正文可用）；白字 #4C50E5 底 5.86:1。
   渐变仅用于 2 处按钮与少量强调块（紫红渐变强调色占比 < 5%）——
   渐变端的 #C05CD0 对白字只有 3.69:1，够大按钮用，但不能做正文底色。
   ============================================================ */
:root {
  /* 品牌色 */
  --brand: #4C50E5;
  --brand-hover: #3B3FD6;
  --brand-deep: #2B2E9E;
  --brand-alt: #C05CD0;
  --brand-soft: #EEEBFD;
  --brand-tint: #F4F2FE;
  --grad: linear-gradient(135deg, #C05CD0 0%, #4C50E5 62%);
  --indigo: #5A58A8;
  --indigo-deep: #443F8C;

  /* 中性色 */
  --bg: #F8F9FE;
  --surface: #FFFFFF;
  --surface-2: #F7F7FF;
  --ink: #1D1D1F;
  --muted: #6E6E73;
  --faint: #A9A9B4;
  --line: #E9E9F5;
  --footer: #535353;

  /* 语义色 */
  --success: #34C759;
  --warning: #FF9F0A;
  --danger: #FF3B30;

  /* 圆角与阴影 */
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(28, 28, 80, .03), 0 8px 28px rgba(28, 28, 80, .05);
  --shadow-pop: 0 8px 20px rgba(28, 28, 80, .08), 0 20px 60px rgba(28, 28, 80, .12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
img { display: block; max-width: 100%; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 820px; }

/* ===== 顶部导航：白色毛玻璃 ===== */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
/* 导航品牌位用「横向锁定版」logo-h.png（979×303，比例 3.23:1），无透明留白。
   nav-wrap 固定 64px 高，38px 约占 59%，是「有存在感但不顶格」的比例。
   ⚠️ 别在这里改用完整锁定版 logo.png —— 它的副标行高只有主标题的 1/4.5，
      38px 下会缩成 4~7px 糊成一团。完整版只用于页脚和大尺寸场景。 */
.brand-img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 26px; min-width: 0; }
.nav-links a {
  font-size: 14px; color: var(--ink); font-weight: 400;
  padding: 4px 0; white-space: nowrap;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--brand); }
.nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 9px 20px; background: var(--brand); color: #fff;
  border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: all .15s ease;
}
.nav-cta:hover { background: var(--brand-hover); transform: translateY(-1px); }

/* ===== 导航右侧：语言下拉菜单（保留控件，中文单语站不渲染）=====
   由后端 publish_product_pages 在 SITE_LOCALES 多于 1 个语种时输出。 */
.lang-switch { position: relative; }
.lang-switch > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: transparent;
  font-size: 13px; color: var(--ink); white-space: nowrap;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-globe {
  width: 15px; height: 15px; flex: none; opacity: .7;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.lang-switch > summary::after {
  content: ""; width: 5px; height: 5px; margin-left: 1px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px); opacity: .5;
  transition: transform .2s ease;
}
.lang-switch > summary:hover,
.lang-switch[open] > summary {
  background: var(--surface-2); border-color: var(--line); color: var(--brand);
}
.lang-switch[open] > summary::after { transform: rotate(-135deg) translate(-2px, 0); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-pop);
  padding: 6px; min-width: 176px;
  animation: langMenuIn .16s ease-out both;
}
.lang-menu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px;
}
@keyframes langMenuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 14px; line-height: 1.4; color: var(--ink);
  transition: background .14s ease, color .14s ease;
}
.lang-menu a:hover { background: var(--surface-2); color: var(--brand); }
.lang-menu a.is-on { color: var(--brand); font-weight: 500; background: var(--brand-soft); }
.lang-menu a.is-on::after { content: "\2713"; font-size: 12px; font-weight: 700; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  transition: all .15s ease; cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(76, 80, 229, .30); }
/* 渐变按钮：首页共三类用法 —— 联系区「免费电话」、留言表单「提交需求」，
   以及主卡 / 执照卡底部的按钮（.card-more / .lic-more，各自单独定义）。
   都是小面积实心块，紫红渐变总面积占比仍远低于 5%。
   Banner 图里的渐变按钮是烧进像素的，不算 CSS 用量。 */
.btn-grad { background: var(--grad); color: #fff; }
.btn-grad:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(120, 60, 190, .34); }
.btn-ghost { background: transparent; color: var(--brand); border-color: #CFCBF7; }
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-tint); }
.btn-outline-light { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline-light:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ===== 首屏通栏轮播 =====
   图是品牌方做好的**成品 banner**（文字与按钮都烧在像素里），轮播只负责换图。

   ⚠️ 上下都要羽化，否则 banner 的四边会出现可见硬边。实测底图：
      · 顶边中段 rgb(227,217,241) —— 中间一团紫光，两端才是 #F8F9FE，差 ~25 级；
      · 底边中段 rgb(243,243,252)，两端 #F8F9FE，差 ~6 级。
     所以给 img 加一条「上下各 6% / 5% 透明」的遮罩，让它自己融进区块底色。
     6% = 30px，远在 eyebrow（y76 起，占 15%）和底部说明行（y443–455）之外，不会切到字。
     ⚠️ 遮罩加在 <img> 上而不是容器上 —— 指示点是 .bs-track 的兄弟节点，
       不会被遮罩牵连，仍然清晰。 */
.banner-slider { position: relative; background: #F8F9FE; }
.bs-viewport { position: relative; overflow: hidden; }
.bs-track { display: flex; transition: transform .62s cubic-bezier(.4, 0, .2, 1); }
.bs-slide { flex: 0 0 100%; min-width: 0; }

/* .bs-link 承担画布：给定宽高比 → 图片加载前高度就确定，不会有布局跳动（CLS）。
   桌面 1920×500 = 3.84:1；≤760px 换成 860×500 的左栏裁切版（见 HTML 里的 <picture>）。 */
.bs-link {
  display: block; position: relative;
  aspect-ratio: 1920 / 500; overflow: hidden; background: #F8F9FE;
}
.bs-link picture { display: block; position: absolute; inset: 0; }
.bs-img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 95%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 95%, transparent 100%);
}

/* 左右箭头：桌面/键盘用。默认隐藏（Apple 风），悬停或键盘聚焦才出现。
   触摸设备没有 hover，靠滑动 + 圆点，箭头会挡内容，所以 ≤900px 直接不渲染。 */
.bs-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .86); color: var(--brand);
  box-shadow: 0 4px 16px rgba(28, 28, 80, .14);
  opacity: 0; transition: opacity .2s ease, background .2s ease, color .2s ease;
}
.banner-slider:hover .bs-arrow,
.bs-arrow:focus-visible { opacity: 1; }
.bs-arrow:hover { background: var(--brand); color: #fff; }
.bs-arrow::before {
  content: ""; width: 9px; height: 9px;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(2px, -2px);
}
.bs-next::before { transform: rotate(-135deg) translate(2px, -2px); }
.bs-prev { left: 20px; }
.bs-next { right: 20px; }

/* 指示点压在 banner 内部（bottom:12px）。放在图外的独立条里会踩底边接缝。 */
.bs-dots {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2;
  display: flex; justify-content: center; gap: 9px;
  pointer-events: none;
}
.bs-dot {
  pointer-events: auto;
  width: 26px; height: 5px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(76, 80, 229, .26); cursor: pointer;
  transition: background .2s ease, width .2s ease;
}
.bs-dot:hover { background: rgba(76, 80, 229, .52); }
.bs-dot.is-active { width: 40px; background: var(--brand); }

/* ===== 原 Hero 区样式已全部删除（2026-10-09）=====
   Hero 与正上方的 banner 轮播版式完全重复（标签条 + 大标题 + 正文 + 两个按钮 + 底部小字），
   已整块移除，原先那一组 hero 相关规则（容器 / 标签条 / 标题 / 正文 / 按钮行 / 底部小字）
   连同两处媒体查询里的字号覆盖一并清掉，不再需要。

   它原本的 56px 上边距 + 68px 下边距提供了「轮播→正文」之间的呼吸感，
   删掉后这段留白随之消失，所以下面单独给首个区块补回来。

   本注释刻意不写 hero 的类名选择器字面量，避免按选择器扫样的检查把自己数进去。 */
.banner-slider + .section { padding-top: 96px; }

/* ===== 数据条 ===== */
.stats-bar {
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin: -30px auto 0;
  max-width: 1140px;
  padding: 32px 0;
  box-shadow: var(--shadow-card);
  position: relative; z-index: 2;
}
.stats-wrap { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 24px; }
.stats-wrap .stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stats-wrap .stat strong { font-size: 32px; font-weight: 600; color: var(--brand); letter-spacing: -0.02em; }
.stats-wrap .stat span { font-size: 13px; color: var(--muted); }

/* ===== Section 通用 ===== */
.section { padding: 84px 0; }
/* 交替底色用**显式类**而不是 :nth-child(even)。
   nth-child 按元素位置选择，中间插一个新 section 会让后面所有区块的明暗整体翻转，
   FAQ 之类白卡片区块会直接变成「白底白卡」失去层次。显式类与位置解耦。 */
.section-alt { background: var(--surface); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
/* h1 与 h2 共用一套样式：全站唯一的 h1 现在落在「核心业务」区块（原 Hero 里那个已删），
   两者视觉必须完全一致，否则换个标签就会看出字重/字号变了。 */
.section-head h1,
.section-head h2 {
  font-size: 36px; color: var(--ink); font-weight: 600;
  margin: 0 0 12px; letter-spacing: -0.02em;
}
/* 标题下的渐变小横条：全站统一的品牌强调，占比极小 */
.section-head h1::after,
.section-head h2::after {
  content: ""; display: block; width: 48px; height: 4px; border-radius: 2px;
  background: var(--grad); margin: 16px auto 0;
}
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }

/* ===== 核心业务卡片（编号 + 图标 + 文案 + 按钮）===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px 26px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
a.product-card { display: flex; color: inherit; }
a.product-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
  border-color: #DCD8FA;
}
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
/* 序号按设计稿做成品牌紫（原来是浅灰 --faint，对比度不够、也不像稿子） */
.product-no {
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  color: var(--brand);
}
.product-icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
/* 标题下加一条分隔线，与设计稿的卡片版式一致（标题 → 细线 → 正文 → 按钮） */
.product-card h3 {
  font-size: 21px; color: var(--ink); margin: 0 0 14px; font-weight: 600;
  letter-spacing: -0.01em;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.product-card p { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }
/* 后台动态渲染出的卡片会多一行「适用对象」，压暗收小，避免和摘要争夺视线 */
.product-card .product-meta { font-size: 13px; color: var(--faint); margin: -8px 0 14px; }
.product-card ul { margin-bottom: 22px; }
.product-card ul li {
  font-size: 14px; color: var(--ink); padding: 7px 0 7px 22px; position: relative;
}
.product-card ul li::before {
  content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 600;
}
/* 主卡底部按钮：按设计稿改成紫红渐变药丸（白字、圆角矩形）。
   设计稿里这六张卡的按钮就是渐变实心块，与「仅用于 2 处按钮」的旧口径不同 ——
   渐变总面积占比仍远低于 5%（六枚小药丸），所以按稿子改。
   注意 .card-more 只用在首页主卡上。 */
.card-more {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center;
  align-self: flex-start;
  padding: 10px 22px; border-radius: 8px;
  background: var(--grad); color: #fff;
  font-size: 13.5px; font-weight: 500;
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}
a.product-card:hover .card-more {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(120, 60, 190, .30);
}

/* ===== 业务版块优选：4 列等高网格（靛紫标题条 + 项目符号列表）=====
   ⚠️ 这里曾经用 CSS 多列（columns）——已废弃，原因值得留档：
      columns 靠「列内不许拆卡」+ 自动均衡列高来排版，而 16 个板块的服务项数
      差异极大（2 ~ 23 项），卡片又是不可分割的整体，均衡必然失败：
      实测第 1 列排到 1450px，第 2 列只有 800px（下一张 23 项的「海外创业服务」
      塞不下），版面正中间因此空出一大块，四列底边也各不相同。
   改成 4 列等高网格后：同一行的卡片由 grid 自动顶底对齐，四列底边平齐，
      整片目录是一个规整的矩形。代价是同一行里服务项少的卡片底部会留白，
      这是「等高对齐」的必然结果，属于版式需要 —— 不要改回 align-items:start，
      那样四列底边会重新参差。
   ⚠️ 板块顺序不是随意的：index.html 里这 16 张卡已按**服务项数量从多到少**
      重排成 4 行 × 4 列。因为行高由该行最高的卡决定，把四张最大的卡放进同一行
      才能让「每行最高卡之和」最小（23+11+6+5 = 45 项，已暴力校验是 4×4 的下界）。
      排序工具见 tools/reorder_catalog.py。 */
.catalog {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.cat-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.cat-card h3 {
  margin: 0; padding: 11px 16px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  color: #fff; background: linear-gradient(135deg, #6C68C9, var(--indigo));
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
/* 有对应产品页的板块，标题条整体可点，右侧补一个箭头提示 */
.cat-card h3 a { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; color: #fff; }
.cat-card h3 a::after { content: "→"; font-size: 13px; opacity: .7; transition: transform .16s ease; }
.cat-card h3 a:hover::after { transform: translateX(3px); opacity: 1; }
.cat-card ul { padding: 12px 16px 14px; }
.cat-card li {
  font-size: 13px; color: var(--muted); line-height: 1.55;
  padding: 3px 0 3px 12px; position: relative;
}
.cat-card li::before {
  content: ""; position: absolute; left: 0; top: 10.5px;
  width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--brand-alt);
}

/* ===== 关于我们：左视觉 / 右文案 + 数据块 =====
   ⚠️ 这里同样**不能**给插画套底色面板。插画 PNG 自带的背景是纯 #F8F9FE，
      一旦外面套一层浅紫渐变面板，矩形范围内的底色（#F8F9FE）与面板底色不等，
      整块图会显出一个更亮的方框。所以让插画直接浮在本区块的底色上（同为 #F8F9FE），
      与 banner 区块的处理保持一致（那边也是纯色底、不给面板）。 */
.about-grid { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 46px; align-items: center; }
.about-visual { display: grid; place-items: center; }
.about-visual img { width: 100%; max-width: 470px; height: auto; }
.about-text h3 { font-size: 24px; margin: 0 0 14px; font-weight: 600; letter-spacing: -0.01em; }
.about-text p { color: var(--muted); margin: 0 0 14px; font-size: 14.5px; }
.about-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.about-fact {
  background: var(--surface); border-radius: var(--radius-md);
  border: 1px solid var(--line); padding: 16px 12px; text-align: center;
}
.about-fact strong {
  display: block; font-size: 22px; font-weight: 700; color: var(--brand);
  letter-spacing: -0.01em; line-height: 1.25;
}
.about-fact span { font-size: 12px; color: var(--muted); }

/* ===== 服务优势：4 列图标卡 ===== */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.adv-item {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 26px 22px; box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.adv-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.adv-icon {
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand);
}
.adv-item h3 { font-size: 17px; margin: 0 0 8px; font-weight: 600; color: var(--ink); }
.adv-item p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.7; }

/* ===== 各类营业执照办理：4 列 × 2 行 =====
   区块按设计稿新增（原站没有）。每张卡是「标题 + 分隔线 → 正文 → 执照特点标签行 → 按钮」。
   ⚠️ 正文长度差异很大（最长的外资公司注册比民办非企多三行），所以卡片用 flex 纵向排布、
      按钮 margin-top:auto 顶到卡底，整行卡片视觉上底边对齐。
   ⚠️ 标签行用 flex-wrap 而不是 grid —— 「适用规模较大、拟融资上市企业」这类长标签
      在窄列里会独占一行，grid 固定列数会被撑破。 */
.license-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lic-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 22px 20px 20px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.lic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: #DCD8FA; }
.lic-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600; color: var(--ink);
  margin: 0 0 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
}
.lic-icon { flex: none; display: inline-grid; place-items: center; color: var(--brand); }
.lic-card p { font-size: 13px; color: var(--muted); line-height: 1.72; margin: 0 0 16px; }
.lic-tags {
  display: flex; flex-wrap: wrap; gap: 7px;
  border-top: 1px solid var(--line);
  padding-top: 14px; margin-bottom: 18px;
}
.lic-tags-title {
  flex: 0 0 100%; margin-bottom: 2px;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.lic-tag {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  background: var(--brand-tint); color: var(--brand);
  font-size: 12px; line-height: 1.55;
}
.lic-more {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px; border-radius: 8px;
  background: var(--grad); color: #fff;
  font-size: 13px; font-weight: 500;
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}
.lic-more:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(120, 60, 190, .30); }

/* ===== 团队合影 + 集团成员 ===== */
.team-photo {
  position: relative; margin: 0 auto 40px; max-width: 1060px;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 18px 50px rgba(28, 28, 80, .16);
}
.team-photo img { width: 100%; height: auto; display: block; }
/* 合影外圈的柔光：让照片从浅底上「浮」起来，而不是一块硬贴上去的方图 */
.team-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(28, 28, 80, .06);
}
.sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sub-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 14px 16px;
  box-shadow: var(--shadow-card);
}
.sub-no {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700; color: #fff; background: var(--grad);
}
.sub-item h4 { font-size: 14px; margin: 4px 0 2px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.sub-item p { font-size: 12.5px; margin: 0; color: var(--muted); line-height: 1.55; }

/* ===== 服务团队 =====
   版式照客户设计稿（/Users/duanfeng/Downloads/网站）：卡片整块是靛紫渐变底，
   内部再内缩 10px 放一条白色面板装正文；姓名 / 职务在头部带左侧，
   人像贴右侧并**让头顶伸出头部带上沿**（设计稿里高出 29px）。
   人像素材由 tools/extract_experts.py 从设计稿里抠出来（带透明通道的 PNG），
   设计稿坐标与换算关系写在该脚本头部；换设计稿就要同步改那边的坐标。

   为什么不再用字母占位：设计稿里本来就有 6 位成员的真实人像，直接用即可；
   拿网图或 AI 生成人像冒充员工才是不能做的。 */
.expert-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: 22px;
  /* 行距要留得下上一行卡片人像头顶伸出的那一截（最大约 41px），否则会压到上一行 */
  row-gap: 54px;
}
.expert-card {
  position: relative;
  /* 设计稿里卡片底色是**纯色** (81,83,228)=#5153E4，逐点取样一致、没有渐变，
     和本站 --brand #4C50E5 差 1 个色阶以内 → 直接用品牌色，白字对它 5.86:1 达标 */
  background: var(--brand);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  /* 白面板四周留一条靛紫边（设计稿内缩 10px） */
  padding: 0 10px 10px;
  /* 人像头顶要伸到卡片上沿之外，所以这里不能裁 */
  overflow: visible;
  transition: transform .2s ease, box-shadow .2s ease;
}
.expert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.expert-head {
  position: relative;
  display: flex; align-items: center;
  /* 头部带高度随卡宽等比（设计稿头部带 320×82），再封顶 116px：
     ≤900px 单列时卡宽能到 800+px，不封顶会把带头拉到 200px 以上，
     而姓名还是 19px，比例就散了 */
  aspect-ratio: 320 / 82;
  max-height: 116px;
  min-height: 72px;   /* aspect-ratio 不被支持时的兜底 */
  padding: 0 8px 0 20px;
  color: #fff;
}
.expert-id { position: relative; z-index: 1; }
/* 字号照设计稿：姓名 ≈22px / 职务 ≈15px（按 320px 卡宽实测的字面高反推），
   本站卡宽 360px，按比例收到 21px / 14px —— 再大就压过全站其它卡片标题了 */
.expert-head strong { display: block; font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.expert-head span { display: block; font-size: 14px; color: rgba(255, 255, 255, .82); margin-top: 2px; }
/* 尺寸全按「头部带高度」的倍数给，于是任意卡宽下比例都不变：
   抠图 210×132、头顶距裁框底 111px、头部带 82px ⇒ 高 = 132/82 ≈ 161%，
   头顶伸出带头 = 0.354 × 带头高。绝对定位的百分比尺寸以 .expert-head 的内边距盒为准。 */
.expert-photo {
  position: absolute; right: 0; bottom: 0;   /* 底边与头部带下沿齐平 */
  height: 161%; width: auto;
  pointer-events: none;
  user-select: none;
}
.expert-body {
  position: relative; z-index: 1;
  background: var(--surface); border-radius: 14px;
  padding: 20px;
}
.expert-body p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.75; }

/* ===== 创业活动 =====
   版式照客户设计稿：卡片四周留 10px，顶部整块是活动实景照片，照片下面才是标题与说明。
   设计稿里这一块**没有图标**，就是实景照片 —— 原来的四个矢量图标按设计稿换掉了。
   素材是客户给的「活动1~4」，与设计稿里那四张图**逐像素同源**（固定 250×135 图框内
   平均差 2.0、最大差 ≤28，只剩 JPEG 重压噪点），所以图框尺寸与比例直接照设计稿用，
   不裁剪也不拉伸。对应关系按**设计稿卡的顺序**认，不是文件编号顺序：
     线下沙龙←活动1  专题讲座←活动2  直播课程←活动4  1对1服务←活动3 */
.event-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.event-card {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 10px;                 /* 设计稿：卡片四周 10px，照片贴着这条边 */
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.event-photo {
  display: block; width: 100%; height: auto;
  /* 素材原生就是 250×135；比例写死是为了在图片解码前先把位置占住，避免版面跳动 */
  aspect-ratio: 250 / 135;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface-2);   /* 图还没到时是一块淡底，不是白洞 */
}
.event-body { padding: 18px 12px 14px; }   /* 设计稿：图下留白 18px、文字左缩进 ≈12px */
.event-card h3 { font-size: 17px; margin: 0 0 8px; font-weight: 600; }
.event-card p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.7; }

/* ===== 常见问题：双页签 + 双列手风琴 =====
   页签按设计稿新增（关于永瑞集团 / 办理方式）。
   ⚠️ 非当前页签的面板用 [hidden] 隐藏，不用 visibility/opacity ——
      data/products.json 那类脚本抓不到，而 AI 爬虫读原始 HTML 依然能拿到全部问答。
   ⚠️ main.js 的淡入动画会把 .faq-item 的 opacity 先设成 0，
      隐藏面板里的条目永远不会触发 IntersectionObserver；切页签时必须由 JS 补 .is-visible，
      否则第二个页签会是「一片空白」。 */
.faq-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin: -20px 0 30px; }
.faq-tab {
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  padding: 12px 34px; border-radius: 8px;
  background: var(--surface); color: var(--brand);
  border: 1px solid #CFCBF7;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.faq-tab:hover { border-color: var(--brand); background: var(--brand-tint); }
.faq-tab.is-on { background: var(--grad); color: #fff; border-color: transparent; }
.faq-panel[hidden] { display: none; }

/* 手风琴本体：用 columns 而不是 grid —— 各条答案长短差异大，grid 会把同一行两条拉到等高、
   短的那条下面留一大片空白。details 的内容始终在 DOM 里，折叠状态下 AI 爬虫照样读得到。 */
.faq-list { columns: 2 320px; column-gap: 18px; }
.faq-item {
  break-inside: avoid; -webkit-column-break-inside: avoid;
  background: var(--surface); border-radius: var(--radius-md);
  border: 1px solid var(--line);
  overflow: hidden; box-shadow: var(--shadow-card);
  margin: 0 0 14px;
}
.faq-item summary {
  cursor: pointer; padding: 18px 48px 18px 48px; font-weight: 500; font-size: 15.5px;
  color: var(--ink); list-style: none; position: relative;
  transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* 左侧渐变小方块 + 右侧 +/−，与设计稿的问答列表形态一致 */
.faq-item summary::before {
  content: ""; position: absolute; left: 20px; top: 22px;
  width: 14px; height: 14px; border-radius: 5px; background: var(--grad);
}
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: var(--brand); font-weight: 400; transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--brand); }
.faq-item p { padding: 0 22px 20px 48px; color: var(--muted); font-size: 14px; line-height: 1.75; margin: 0; }

/* ===== 联系我们 ===== */
.contact-lead { text-align: center; margin-bottom: 30px; }
.contact-lead-label {
  display: block; font-size: 13px; color: var(--muted);
  letter-spacing: .12em; margin-bottom: 2px;
}
.contact-phone {
  display: inline-block; font-size: 34px; font-weight: 700; letter-spacing: .01em;
  color: var(--brand); margin: 0 0 18px;
}
.contact-actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* 通栏地图：图片原尺寸 1178×380（从设计稿裁出，正好等于内容栏宽），不再缩放。
   不引第三方地图 JS、不需要地图 Key；底部文案与五个网点是真文本，爬虫可读。 */
.contact-map {
  margin: 0 0 26px; line-height: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.contact-map img { width: 100%; height: auto; }

/* 五个网点：两列、行优先填充，落位正好是
   「左列 天河总部 / 越秀分部 / 佛山分部，右列 深圳分部 / 香港分部」——与设计稿一致。 */
.branch-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px;
  padding-bottom: 24px; margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.branch { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.branch-tag {
  flex: none; display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 6px;
  background: var(--grad); color: #fff;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.branch-val { color: var(--ink); line-height: 1.55; }

/* 其余联系信息面板。原来的「假地图插画」已换成上面那张真地图，这里不再分两栏。 */
.addr-panel {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 320px at 78% 10%, rgba(192, 92, 208, .10), transparent 66%),
    linear-gradient(150deg, #F1EFFE, var(--surface-2) 72%);
  border: 1px solid var(--line);
  padding: 32px 34px;
}
.contact-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; align-content: start; }
.contact-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.contact-row .tag {
  flex: none; display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.contact-row span.val { color: var(--ink); line-height: 1.55; }
.contact-row span.val a { color: var(--brand); font-weight: 600; }
.contact-row span.val a:hover { text-decoration: underline; }

/* ===== 留言表单 ===== */
.lead-wrap {
  margin-top: 34px; padding: 40px;
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 40px; align-items: start;
}
.lead-head h3 { font-size: 24px; margin: 0 0 10px; font-weight: 600; letter-spacing: -0.01em; }
.lead-head p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.lead-row { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lead-row-full { grid-column: 1 / -1; }
.lead-row label { font-size: 13px; font-weight: 500; color: var(--ink); }
.lead-row input, .lead-row textarea {
  font: inherit; font-size: 14px; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  resize: vertical; width: 100%;
}
.lead-row input::placeholder, .lead-row textarea::placeholder { color: var(--faint); }
.lead-row input:focus, .lead-row textarea:focus {
  outline: none; background: #fff;
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(76, 80, 229, .14);
}
.lead-row input.is-error, .lead-row textarea.is-error { border-color: var(--danger); }
.lead-actions {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-top: 4px;
}
.lead-actions .btn { border: 1px solid transparent; }
.lead-actions .btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.lead-hint { font-size: 13.5px; color: var(--muted); }
.lead-hint.is-ok { color: #1E8E3E; }
.lead-hint.is-err { color: var(--danger); }

/* ===== Footer：深色底 =====
   ⚠️ logo.png 是为白底设计的（紫色字 + 深色副标），直接压在 #535353 上会糊掉。
      所以在深色页脚里给 logo 加一块白色圆角托板 —— 不改动品牌素材本身。 */
.site-footer { background: var(--footer); padding: 56px 0 36px; color: rgba(255, 255, 255, .86); }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 36px; flex-wrap: wrap; }
.footer-brand { max-width: 460px; }
.footer-logo-plate {
  display: inline-block; background: #fff; border-radius: 14px;
  padding: 14px 20px; margin-bottom: 18px;
}
/* 页脚用完整锁定版 logo.png（979×303）：56px 约合 181px 宽，
   主标题行 ≈26px、副标行 ≈9.6px，是全站唯一能让三行中文都读清的位置。 */
.footer-logo { height: 56px; width: auto; }
.footer-brand p { font-size: 13.5px; color: rgba(255, 255, 255, .74); margin: 0; line-height: 1.7; }
.footer-meta p { font-size: 13px; color: rgba(255, 255, 255, .66); margin: 0 0 5px; }
.footer-meta a { color: rgba(255, 255, 255, .82); border-bottom: 1px solid rgba(255, 255, 255, .28); }
.footer-meta a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .7); }

/* 配合淡入动画的可见态（main.js 动态注入，此处兜底声明，避免样式表被单独加载时闪隐) */
.is-visible { opacity: 1 !important; transform: none !important; }

/* ===== 响应式 ===== */
/* 非中文语种字号微调：拉丁/西里尔/假名字符视觉宽度大于汉字，
   同样字号在英文/俄语/日语下会折行。本站为中文单语，以下规则当前不生效，
   保留供扩语种时直接使用。 */
html:not([lang="zh-CN"]) .section-head h2 { font-size: 32px; }

@media (max-width: 1420px) and (min-width: 901px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
}
@media (max-width: 1180px) and (min-width: 901px) {
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 12.5px; }
  .nav-cta { padding: 7px 14px; font-size: 13px; }
}

@media (max-width: 1024px) {
  .product-grid, .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid, .event-grid { grid-template-columns: repeat(2, 1fr); }
  /* 执照卡 4 列降到 2 列：正文最长的那张（外资公司注册）在 250px 以下会挤成窄条 */
  .license-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta { padding: 7px 14px; font-size: 13px; }
  /* 触摸设备没有 hover，箭头永远露不出来还挡内容 → 直接不渲染，靠滑动 + 圆点 */
  .bs-arrow { display: none; }
  .bs-dots { bottom: 10px; gap: 7px; }
  /* 窄屏留白收一档，与 .section 的 84px 基线同比例缩小 */
  .banner-slider + .section { padding-top: 64px; }
  .bs-dot { width: 20px; height: 4px; }
  .bs-dot.is-active { width: 30px; }
  .stats-wrap { gap: 20px; }
  .stats-wrap .stat strong { font-size: 26px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }
  /* #experts 单列时卡片很宽、头部带被 max-height 封在 116px，
     人像头顶会伸出带头约 40px，比上面那条 36px 的下边距还高 → 会顶进标题，
     这里给它单独放大一档（更大视口卡窄、伸出量小，不用管） */
  #experts .section-head { margin-bottom: 52px; }
  .section-head h2 { font-size: 27px; }
  .section-head p { font-size: 15px; }
  .product-grid, .expert-grid, .adv-grid, .event-grid, .license-grid { grid-template-columns: 1fr; }
  /* #events 单列时卡片有 800+px 宽，而实景素材只有 250px 宽 —— 铺满会糊成一片。
     改成「左图右文」，并把图宽封在原生 250px 以内（最多 1:1）。空集视为不生效。
     2 列档（901~1024px）是过渡断点，放大不到 2 倍，不单独处理。 */
  .event-card { display: flex; align-items: flex-start; gap: 16px; }
  .event-photo { flex: 0 0 45%; max-width: 250px; min-width: 118px; }
  .event-body { padding: 4px 0 0; }
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-facts { grid-template-columns: repeat(2, 1fr); }
  .sub-grid { grid-template-columns: 1fr; }
  .faq-list { columns: 1; }
  .faq-tab { padding: 11px 26px; font-size: 14px; }
  .addr-panel { padding: 26px 22px; }
  .branch-grid { grid-template-columns: 1fr; }
  .contact-rows { grid-template-columns: 1fr; }
  .lead-wrap { grid-template-columns: 1fr; gap: 28px; padding: 32px 26px; margin-top: 28px; }
  .lead-form { grid-template-columns: 1fr; }
  .team-photo { margin-bottom: 30px; }
}

/* ⚠️ 760px 这个值必须和 index.html 里 <source media="(max-width: 760px)"> 完全一致。
   只换源不换画布比例，860×500 的裁切版会被按 3.84:1 裁掉上下大半。 */
@media (max-width: 760px) {
  .bs-link { aspect-ratio: 860 / 500; }
}

@media (max-width: 640px) {
  .nav-wrap { height: 58px; }
  .nav-cta { display: none; }
  .brand-img { height: 30px; }
  .stats-bar { margin-top: -20px; padding: 24px 0; border-radius: var(--radius-md); }
  .stats-wrap { gap: 14px; }
  .stats-wrap .stat strong { font-size: 22px; }
  .section-head h2 { font-size: 24px; }
  html:not([lang="zh-CN"]) .section-head h2 { font-size: 22px; }
  .section-head h2::after { margin-top: 12px; }
  .catalog { grid-template-columns: 1fr; }
  .product-card { padding: 26px 22px 22px; }
  .about-facts { gap: 10px; }
  .about-fact strong { font-size: 19px; }
  .contact-phone { font-size: 26px; }
  .addr-panel { padding: 24px 18px; }
  .lead-wrap { padding: 26px 20px; }
  .footer-logo { height: 48px; }
  .footer-logo-plate { padding: 11px 15px; }
  /* ⚠️ 这里**不能**带上 .event-card：它的 10px 内边距是照片贴边的依据，
     改回 24px/20px 会让照片四周多出一圈白框（设计稿没有）。 */
  .adv-item { padding: 24px 20px; }
  .lic-card { padding: 20px 16px 18px; }
  .lic-title { font-size: 15px; }
  .lic-card p { font-size: 12.5px; }
  .contact-map { border-radius: var(--radius-md); }
  .faq-tab { padding: 10px 20px; font-size: 13.5px; }
}

/* 系统开了「减少动态效果」时，轮播不要滑动换图（JS 那边也会停止自动播放）。
   这条是给「键盘/圆点切换」留的兜底：不滑动，但换图仍然生效。 */
@media (prefers-reduced-motion: reduce) {
  .bs-track { transition: none; }
}
