/**
 * LINQDOM Shell Additions
 * - Header dropdown menus (desktop hover + click)
 * - Mobile drawer menu
 * - Header scrolled state
 * - Hamburger animation
 * - Sticky shadow
 *
 * Loaded AFTER design-tokens.css and style.css
 */

/* ================================================================
 * 1. SITE HEADER (sticky with shadow on scroll)
 * ================================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 32px;
}

/* Brand */
.site-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  color: var(--color-primary);
  font-weight: var(--font-weight-extrabold);
  font-size: 20px;
  transition: var(--transition-base);
}

.site-brand:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 2px 8px var(--color-primary-glow));
}

.site-brand i {
  font-size: 22px;
}

/* 横向中英文 LOGO：LINQDOM | 联创域 */
.site-brand-name {
  font-size: 20px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
}

.site-brand-divider {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: var(--color-border);
}

.site-brand-sub {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  white-space: nowrap;
}

/* 站点 LOGO 图片（后台上传：系统配置 → 基本配置 → Website LOGO） */
.site-brand-logo {
  display: block;
  height: 56px;      /* 放大页头 LOGO（原 40px），仍在 70px 页头内居中 */
  width: auto;
  max-width: 300px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .site-brand-logo {
    height: 40px;    /* 手机端放大页头 LOGO（原 32px） */
  }
}

/* Primary Nav */
.primary-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.primary-nav__list {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.primary-nav__item,
.nav-item,
.nav-item--has-dropdown {
  position: relative;
}

/* Nav link (no dropdown) */
.nav-link {
  text-decoration: none;
  color: var(--color-text-dark);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 24px 0;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link .caret {
  font-size: 10px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.nav-item--has-dropdown.is-open > .nav-link .caret {
  transform: rotate(180deg);
}

.nav-item--has-dropdown.is-open > .nav-link {
  color: var(--color-primary);
}

.nav-item--has-dropdown.is-open > .nav-link::after {
  width: 100%;
}

/* Dropdown menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(8px);
  min-width: 240px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 100;
}

.nav-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 24px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--color-bg-white);
}

.nav-dropdown__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-dropdown__item a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--color-text-dark);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.nav-dropdown__item a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding-left: 24px;
}

.nav-dropdown__item a .dd-icon {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-right: 8px;
  transition: color 0.15s ease;
}

.nav-dropdown__item a:hover .dd-icon {
  color: var(--color-primary);
}

/* ------------------------------------------------------------------
 * Product dropdown flyout (三级菜单)
 * 产品下拉：鼠标悬浮某个产品分类项时，才在该项「右侧」展开该分类的产品
 * 默认 display:none，不占据任何空间
 * ------------------------------------------------------------------ */
.nav-dropdown__item--flyout {
  position: relative;
}

.nav-dropdown__item--flyout > a {
  display: flex;
  align-items: center;
}

.nav-dropdown__item--flyout > a .flyout-arrow {
  margin-left: auto;
  font-size: 9px;
  color: var(--color-text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

/* hover 时箭头向右轻推，提示内容在右侧展开 */
.nav-dropdown__item--flyout:hover > a .flyout-arrow,
.nav-dropdown__item--flyout:focus-within > a .flyout-arrow {
  color: var(--color-primary);
  transform: translateX(3px);
}

.nav-flyout {
  position: absolute;
  top: -13px;
  left: 100%;
  display: none;
  width: 240px;
  margin-left: 8px;
  padding: 10px 0;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
  z-index: 101;
}

/* 透明桥接区：补上「分类项 → 右侧面板」之间的缝隙，鼠标经过时不闪烁 */
.nav-flyout::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  width: 10px;
  height: 100%;
}

/* 只有悬浮/键盘聚焦该分类项时才展开 */
.nav-dropdown__item--flyout:hover .nav-flyout,
.nav-dropdown__item--flyout:focus-within .nav-flyout {
  display: block;
}

.nav-flyout__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-dropdown__item .nav-flyout__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--color-text-dark);
  text-decoration: none;
}

.nav-dropdown__item .nav-flyout__link:hover {
  padding-left: 16px;
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* 缩略图：小图，34px */
.nav-flyout__thumb {
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  background: var(--color-bg-white);
  color: var(--color-text-muted);
  font-size: 13px;
}

.nav-flyout__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-flyout__name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-dropdown__item .nav-flyout__link:hover .nav-flyout__name {
  color: var(--color-primary);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Language toggle */
.lang-toggle {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s;
}

.lang-toggle:hover {
  background: var(--color-bg-section);
}

.lang-toggle .caret {
  font-size: 10px;
  margin-left: 4px;
}

.lang-toggle__menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 140px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 6px 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s;
  z-index: 100;
}

.lang-toggle.is-open .lang-toggle__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lang-toggle__menu a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--color-text-dark);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-toggle__menu a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.lang-toggle__menu a.is-active {
  color: var(--color-primary);
  font-weight: 700;
}

/* ================================================================
 * 2. HAMBURGER MENU TOGGLE (mobile only)
 * ================================================================ */

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================================================================
 * 3. MOBILE DRAWER
 * ================================================================ */

.mobile-drawer {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100vh - 70px);
  height: calc(100dvh - 70px);
  background: var(--color-bg-white);
  z-index: 999;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 16px 0 60px;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-drawer__item {
  border-bottom: 1px solid var(--color-border);
}

.mobile-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  text-decoration: none;
  color: var(--color-text-dark);
  font-size: 15px;
  font-weight: 600;
}

.mobile-drawer__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--color-text-dark);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-family-base);
}

.mobile-drawer__toggle .caret {
  font-size: 12px;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}

.mobile-drawer__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--color-bg-section);
}

.mobile-drawer__submenu.is-open {
  max-height: 400px;
}

.mobile-drawer__submenu a {
  display: block;
  padding: 12px 24px 12px 40px;
  color: var(--color-text-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.mobile-drawer__submenu a:hover,
.mobile-drawer__submenu a:active {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.mobile-drawer__cta {
  padding: 20px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer__cta .btn-primary {
  width: 100%;
  justify-content: center;
}

.mobile-drawer__lang {
  display: flex;
  gap: 8px;
  padding: 16px 24px 0;
}

.mobile-drawer__lang a {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-dark);
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  transition: all 0.15s ease;
}

.mobile-drawer__lang a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.mobile-drawer__lang a.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Body scroll lock when drawer is open */
body.no-scroll {
  overflow: hidden;
}

/* ================================================================
 * 4. RESPONSIVE BREAKPOINTS
 * ================================================================ */

@media (max-width: 991px) {
  /* Hide desktop nav and language toggle, show hamburger */
  .primary-nav {
    display: none;
  }
  .header-actions .lang-toggle,
  .header-actions .btn-contact {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
}

@media (min-width: 992px) {
  .mobile-drawer {
    display: none !important;
  }
}

/* ================================================================
 * 5. BREADCRUMB + PAGE TITLE BANNER (for shell test page)
 * ================================================================ */

.page-banner {
  background: var(--color-bg-section);
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--color-border);
}

.page-banner h1 {
  font-size: 32px;
  font-weight: var(--font-weight-extrabold);
  margin-bottom: 8px;
  color: var(--color-text-dark);
}

.page-banner .lead {
  font-size: 15px;
  color: var(--color-text-muted);
  max-width: 760px;
}

/* ================================================================
 * 6. CONTENT DEMO BLOCKS (shell test only — strips of sample UI)
 * ================================================================ */

.demo-strip {
  padding: 48px 0;
  border-bottom: 1px dashed var(--color-border);
}

.demo-strip h2 {
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 24px;
  color: var(--color-text-dark);
}

.demo-strip .demo-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* ================================================================
 * 7. HERO BACKGROUND IMAGE (内容块 hero_bg 上传后由 footer 脚本加 .has-hero-bg)
 *    宽屏：cover 铺满首屏；窄屏：图片按宽度铺满 + 容器高度贴合图片比例（无底色留白）
 * ================================================================ */
.has-hero-bg {
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: cover !important;
}

/* 窄屏：高度按图片比例收缩（图多宽、首屏就多高），内容更多时自动增高；
   背景始终 cover 铺满，因此不会出现底色留白 */
@media (max-width: 1199px) {
  .has-hero-bg {
    background-size: cover !important;
    background-position: center !important;
    min-height: calc(100vw / var(--hero-bg-ratio, 1.6)) !important;
  }
  .home-hero.has-hero-bg {
    min-height: calc(100vw / var(--hero-bg-ratio, 1.6)) !important;
  }
}

/* ================================================================
 * 7.1 HERO TEXT COLUMN WIDTH CAP（首屏文字列宽统一 ≤ 55%）
 *     把首屏文字内容限制在最左侧 55% 宽度内，右侧留给背景图/留白，
 *     提升可读性；百分比集中由 --hero-text-max 控制，便于一处微调。
 *     窄屏（≤992px）放开为 100%，避免文字过窄。
 * ================================================================ */
:root {
  --hero-text-max: 55%;
}

.hero-text-col {
  max-width: var(--hero-text-max);
  min-width: 0;
}

@media (max-width: 992px) {
  .hero-text-col { max-width: 100%; }
}

/* 首页首屏：铺满一屏高度（顶部 sticky header 70px），背景图随之占满整个首屏 */
.home-hero {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
}

.home-hero > .container {
  width: 100%;
  position: relative;
  z-index: 2;
}

@supports (min-height: 100dvh) {
  .home-hero {
    min-height: calc(100dvh - 70px);
  }
}

/* 首页首屏：左侧白色雾感渐变（从左侧横滑进入），承载黑色文案 */
.home-hero__panel {
  position: absolute;
  top: -12%;
  left: -8%;
  width: 66%;
  height: 124%;
  z-index: 0;
  pointer-events: none;
  filter: blur(40px);
  background:
    radial-gradient(58% 70% at 22% 42%, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0) 72%),
    radial-gradient(46% 60% at 56% 62%, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0) 78%),
    linear-gradient(96deg, rgba(248,250,252,0.97) 0%, rgba(248,250,252,0.84) 42%, rgba(248,250,252,0) 100%);
  animation: homeHeroPanelIn 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes homeHeroPanelIn {
  from { transform: translateX(-100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero__panel { animation: none; }
}
/* 窄屏：白色雾感占满宽度，竖向过渡避免底部文字压在图片上 */
@media (max-width: 1199px) {
  .home-hero__panel {
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background:
      radial-gradient(90% 45% at 50% 8%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 72%),
      linear-gradient(180deg, rgba(248,250,252,0.98) 0%, rgba(248,250,252,0.9) 55%, rgba(248,250,252,0.82) 100%);
  }
}


/* ================================================================
 * 7.2 首屏文字颜色
 *     由内容块分项色位字段（tc_crumb / tc_eyebrow / tc_title / tc_desc /
 *     tc_badge / tc_btn / tc_stat / tc_pill）配合模板 data-tc 标记驱动，
 *     footer 脚本直接写内联 color !important，无需在此定义样式。
 * ================================================================ */

/* ================================================================
 * 9. 模板内联样式的响应式兜底
 *    模板里大量把 font-size / grid-template-columns 写在内联 style 上，
 *    其优先级高于普通类规则（style.css 里的移动端规则因此失效），
 *    这里统一用 !important 在小屏收敛：标题字号缩小、多列网格折行，
 *    避免文字溢出屏幕、列被压扁。
 * ================================================================ */

/* 平板（≤992px）：多列网格折半 + 标题字号收敛 */
@media (max-width: 992px) {
  h1[style*="font-size"] { font-size: clamp(28px, 4.6vw, 38px) !important; }
  h2[style*="font-size"] { font-size: clamp(22px, 3.4vw, 28px) !important; }
  h3[style*="font-size"] { font-size: clamp(17px, 2.2vw, 20px) !important; }

  [style*="repeat(6,1fr)"], [style*="repeat(6, 1fr)"] { grid-template-columns: repeat(3, 1fr) !important; }
  [style*="repeat(5,1fr)"], [style*="repeat(5, 1fr)"] { grid-template-columns: repeat(3, 1fr) !important; }
  [style*="repeat(4,1fr)"], [style*="repeat(4, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="repeat(3,1fr)"], [style*="repeat(3, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
}

/* 手机（≤768px）：标题字号收敛、两列布局折单列 */
@media (max-width: 768px) {
  h1[style*="font-size"] { font-size: clamp(24px, 7vw, 30px) !important; }
  h2[style*="font-size"] { font-size: clamp(19px, 5.2vw, 24px) !important; }
  h3[style*="font-size"] { font-size: clamp(16px, 4.4vw, 19px) !important; }
  h4[style*="font-size"] { font-size: clamp(14px, 3.8vw, 16px) !important; }

  /* 首页首屏内边距（模板内联 80px 0 100px 过大） */
  .home-hero { padding: 48px 0 56px !important; }

  [style*="repeat(4,1fr)"], [style*="repeat(4, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="repeat(3,1fr)"], [style*="repeat(3, 1fr)"] { grid-template-columns: 1fr !important; }
  [style*="repeat(2,1fr)"], [style*="repeat(2, 1fr)"] { grid-template-columns: 1fr !important; }

  /* 内联写死的两列布局：1fr 1fr / 1.2fr 1fr / 1fr 1.2fr / 2fr 1fr 等 → 单列
     （auto-fit/auto-fill 的自适应网格本身已响应式，这里不干预） */
  [style*="fr 1fr"],
  [style*="1fr 1."],
  [style*="1fr 2fr"],
  [style*="2fr 1"],
  [style*="1fr 3"],
  [style*="3fr 1"] {
    grid-template-columns: 1fr !important;
  }

  /* 固定大宽度容器（模板里偶有 width:1000px 之类） */
  [style*="width:1200px"], [style*="min-width:1200px"],
  [style*="width:1100px"], [style*="min-width:1100px"],
  [style*="width:1000px"], [style*="min-width:1000px"],
  [style*="width:960px"], [style*="min-width:960px"] {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* ================================================================
 * 10. 首页图文卡片（.adv-*）
 *     - 「成长型品牌为何选择 LINQDOM」：配图在上，标题/描述在下
 *       （内容块 home-advantage 的 w1_img ~ w6_img）
 *     - 「户用储能应用场景」：配图在上，图标+文字一行在下
 *       （内容块 home-scene 的 s1_img ~ s6_img）
 *     统一：纯配图，无相框、无阴影、无悬浮
 * ================================================================ */

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto 40px;
}

.adv-card {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.adv-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--color-bg-section, #f8fafc);
  margin-bottom: 16px;
}

/* 未上传配图时的占位（保持卡片高度一致，不塌陷） */
.adv-card__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: var(--color-bg-section, #f8fafc);
  color: #cbd5e1;
  font-size: 30px;
  margin-bottom: 16px;
}

.adv-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-dark, #1e293b);
  margin: 0 0 8px;
}

.adv-card__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-muted, #64748b);
  margin: 0;
}

/* 图标 + 文字同一行（首页应用场景卡片） */
.adv-card__line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text-dark, #1e293b);
}

.adv-card__line i {
  flex: none;
  font-size: 14px;
  color: var(--color-primary, #0ca68a);
}

/* 平板：3 列 → 2 列 */
@media (max-width: 992px) {
  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

/* 手机：单列，配图改为更矮的横向比例，减少滚动长度 */
@media (max-width: 576px) {
  .adv-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 28px;
  }
  .adv-card__img,
  .adv-card__ph {
    aspect-ratio: 16 / 10;
  }
}

/* ================================================================
 * 11. 首页产品平台卡片网格（MODULE 03）
 *     自适应网格：容器上限 1200px，minmax(260px,1fr) 下限保证最多 4 列；
 *     1fr 让卡片撑满整行宽度——3/4 张时更宽且视觉居中平衡；
 *     第 5 张自动落到第 2 行第 1 列（左对齐，不被拉伸/居中）；
 *     窄屏由 auto-fit 自动折 2 列 / 1 列，无需媒体查询。
 * ================================================================ */

.home-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
