/* ==========================================================================
   公司建站系统 —— 区块样式库（导航 / 轮播 / 产品 / 新闻 / 优势 / 数据 …）
   --------------------------------------------------------------------------
   为什么单独一个文件：
     同一份区块 HTML 要在 6 套主题下都成立，差异只允许来自「CSS 变量」。
     这里只写「版式与皮肤」，颜色一律取 var(--brand)/var(--text)/var(--line)…，
     所以换主题（换配色）时这些样式自动跟着变，不需要改这里。

   用法：区块外层已经有 is-xxx / skin-xxx 类，后台「模板 DIY」里选一下即可。
     轮播   .blk-banner.skin-full | split | card | minimal | cover | cinema | fresh | bold
     优势   .blk-features.is-card | plain | tint | icon-left | numbered
     产品   .blk-products.skin-card | border | overlay | minimal
     新闻   .blk-news.skin-list | card | feature | timeline | grid | grid3
     数据   .blk-stats.is-brand | dark | light | outline
     导航   .cms-header.nav-classic | center | dark | pill | transparent | underline | glass | gradient
     下拉   .cms-header.drop-fade（默认）| drop-zoom | drop-slide | drop-flip

   本系统由上海创缘网络科技有限公司开发　张天慈　15000261114
   ========================================================================== */

/* ================================================================ 导航 */
.cms-header .header-inner { position: relative; }

/* 下拉子菜单：所有导航样式通用的淡入 + 上浮动画（桌面端悬停 / 键盘聚焦都可唤出）。
   ★ transform 必须保留 translateX(-50%)：style.css 把 .nav-sub 定位在 left:50%，
     v1.2.1 曾把 transform 覆盖成纯 translateY，下拉整体右移半宽、贴边菜单直接被挤出屏幕，
     表现就是「下拉不显示」。 */
.cms-header .nav-sub {
  display: block; opacity: 0; visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.cms-header .nav > li:hover > .nav-sub,
.cms-header .nav > li:focus-within > .nav-sub {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.cms-header.nav-gradient .nav-sub,
.cms-header.nav-glass .nav-sub { transform: translate(-50%, 6px) scale(.98); }
.cms-header.nav-gradient .nav > li:hover > .nav-sub,
.cms-header.nav-gradient .nav > li:focus-within > .nav-sub,
.cms-header.nav-glass .nav > li:hover > .nav-sub,
.cms-header.nav-glass .nav > li:focus-within > .nav-sub { transform: translate(-50%, 0) scale(1); }

/* 下拉特效（站点设置 → 外观 → 下拉菜单特效；默认 fade 淡入上浮，写在最后以覆盖上面的皮肤差异） */
.cms-header.drop-zoom .nav-sub { transform: translate(-50%, 8px) scale(.92); transform-origin: 50% 0; }
.cms-header.drop-zoom .nav > li:hover > .nav-sub,
.cms-header.drop-zoom .nav > li:focus-within > .nav-sub { transform: translate(-50%, 0) scale(1); }
.cms-header.drop-slide .nav-sub { transform: translate(calc(-50% + 18px), 0); }
.cms-header.drop-slide .nav > li:hover > .nav-sub,
.cms-header.drop-slide .nav > li:focus-within > .nav-sub { transform: translate(-50%, 0); }
.cms-header.drop-flip .nav-sub { transform: translate(-50%, 0) rotateX(-12deg); transform-origin: 50% 0; }
.cms-header.drop-flip .nav > li:hover > .nav-sub,
.cms-header.drop-flip .nav > li:focus-within > .nav-sub { transform: translate(-50%, 0) rotateX(0deg); }
/* v1.2.3 新增：纵向展开（scaleY 自顶部生长） */
.cms-header.drop-grow .nav-sub { transform: translate(-50%, 0) scaleY(.7); transform-origin: 50% 0; opacity: 0; }
.cms-header.drop-grow .nav > li:hover > .nav-sub,
.cms-header.drop-grow .nav > li:focus-within > .nav-sub { transform: translate(-50%, 0) scaleY(1); }
/* v1.2.3 新增：轻摆入场（rotateZ 微摆 + 上浮） */
.cms-header.drop-swing .nav-sub { transform: translate(-50%, -8px) rotate(-3deg); transform-origin: 50% 0; }
.cms-header.drop-swing .nav > li:hover > .nav-sub,
.cms-header.drop-swing .nav > li:focus-within > .nav-sub { transform: translate(-50%, 0) rotate(0deg); }

/* 居中：logo 一行居中，菜单一行居中，功能按钮浮到右上角 */
.cms-header.nav-center .header-inner {
  flex-wrap: wrap; justify-content: center; height: auto; padding: 16px 0 10px; gap: 8px;
}
.cms-header.nav-center .logo { width: 100%; justify-content: center; }
.cms-header.nav-center .nav { flex: 1 1 100%; justify-content: center; }
.cms-header.nav-center .header-actions { position: absolute; right: 0; top: 14px; }
.cms-header.nav-center .nav-sub { top: 46px; }

/* 深色导航条 */
.cms-header.nav-dark {
  background: #151c29; border-bottom-color: #26303f;
}
.cms-header.nav-dark .logo-name { color: #fff; }
.cms-header.nav-dark .nav > li > a { color: rgba(255, 255, 255, .82); }
.cms-header.nav-dark .nav > li > a:hover,
.cms-header.nav-dark .nav > li.active > a { color: #fff; }
.cms-header.nav-dark .btn-ghost { border-color: rgba(255, 255, 255, .26); color: rgba(255, 255, 255, .88); }
.cms-header.nav-dark .btn-ghost:hover { border-color: #fff; color: #fff; }
.cms-header.nav-dark .search-mini .input {
  background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff;
}
.cms-header.nav-dark .search-mini .input::placeholder { color: rgba(255, 255, 255, .55); }
.cms-header.nav-dark .nav-toggle span,
.cms-header.nav-dark .nav-toggle span::before,
.cms-header.nav-dark .nav-toggle span::after { background: #fff; }
.cms-header.nav-dark .nav-sub { background: #1c2534; border-color: #2b3546; }
.cms-header.nav-dark .nav-sub a { color: rgba(255, 255, 255, .82); }
.cms-header.nav-dark .nav-sub a:hover { color: #fff; background: rgba(255, 255, 255, .06); }

/* 胶囊菜单 */
.cms-header.nav-pill .nav { gap: 4px; align-items: center; }
.cms-header.nav-pill .nav > li > a {
  line-height: 38px; height: 38px; padding: 0 16px; border-radius: 999px; margin: 0 2px;
}
.cms-header.nav-pill .nav > li > a:hover,
.cms-header.nav-pill .nav > li.active > a { background: var(--brand-soft); color: var(--brand); }
.cms-header.nav-pill .nav > li.active > a::after { display: none; }
.cms-header.nav-pill .nav-sub { top: 54px; }

/* 下划线特效：悬停下划线从中间生长，当前项常亮 */
.cms-header.nav-underline .nav > li > a { position: relative; }
.cms-header.nav-underline .nav > li > a::after {
  content: ''; position: absolute; left: 50%; bottom: 6px; width: 0; height: 2px;
  background: var(--brand); border-radius: 2px;
  transform: translateX(-50%); transition: width .22s ease;
}
.cms-header.nav-underline .nav > li > a:hover::after,
.cms-header.nav-underline .nav > li.active > a::after { width: calc(100% - 20px); }

/* 毛玻璃特效：半透明磨砂悬浮条，悬停项亮起 */
.cms-header.nav-glass {
  background: rgba(255, 255, 255, .62);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: rgba(255, 255, 255, .5);
  box-shadow: 0 8px 30px rgba(15, 30, 60, .08);
}
.cms-header.nav-glass .nav > li > a {
  border-radius: 10px; margin: 0 2px; transition: background .18s ease, color .18s ease;
}
.cms-header.nav-glass .nav > li > a:hover,
.cms-header.nav-glass .nav > li.active > a {
  background: rgba(255, 255, 255, .8); color: var(--brand);
  box-shadow: 0 4px 14px rgba(15, 30, 60, .1);
}
.cms-header.nav-glass .nav > li.active > a::after { display: none; }
.cms-header.nav-glass .nav-sub {
  background: rgba(255, 255, 255, .9); border-color: rgba(255, 255, 255, .6);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}

/* 品牌渐变特效：整条导航取品牌渐变底，白字白图标，下拉回落白底 */
.cms-header.nav-gradient {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand) 62%, var(--accent, var(--brand)));
  border-bottom-color: transparent;
}
.cms-header.nav-gradient .logo-name { color: #fff; }
.cms-header.nav-gradient .nav > li > a { color: rgba(255, 255, 255, .88); }
.cms-header.nav-gradient .nav > li > a:hover,
.cms-header.nav-gradient .nav > li.active > a { color: #fff; }
.cms-header.nav-gradient .btn-ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.cms-header.nav-gradient .search-mini .input {
  background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .26); color: #fff;
}
.cms-header.nav-gradient .search-mini .input::placeholder { color: rgba(255, 255, 255, .6); }
.cms-header.nav-gradient .nav-toggle span,
.cms-header.nav-gradient .nav-toggle span::before,
.cms-header.nav-gradient .nav-toggle span::after { background: #fff; }
.cms-header.nav-gradient .nav-sub { background: #fff; border-color: var(--line); }
.cms-header.nav-gradient .nav-sub a { color: var(--text); }
.cms-header.nav-gradient .nav-sub a:hover { color: var(--brand); background: var(--brand-soft); }

/* 透明浮层：覆盖在首屏上，滚动后变实（app.js 会加 .is-solid） */
.cms-header.nav-transparent {
  position: absolute; left: 0; right: 0; top: 0;
  background: transparent; border-bottom-color: transparent; backdrop-filter: none;
}
.cms-header.nav-transparent + .header-top,
.page-header + .header-top { display: none; }
.cms-header.nav-transparent .logo-name { color: #fff; }
.cms-header.nav-transparent .nav > li > a { color: rgba(255, 255, 255, .9); }
.cms-header.nav-transparent .nav > li > a:hover,
.cms-header.nav-transparent .nav > li.active > a { color: #fff; }
.cms-header.nav-transparent .btn-ghost { border-color: rgba(255, 255, 255, .3); color: #fff; }
.cms-header.nav-transparent .search-mini .input {
  background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); color: #fff;
}
.cms-header.nav-transparent .search-mini .input::placeholder { color: rgba(255, 255, 255, .6); }
.cms-header.nav-transparent .nav-toggle span,
.cms-header.nav-transparent .nav-toggle span::before,
.cms-header.nav-transparent .nav-toggle span::after { background: #fff; }
.cms-header.nav-transparent.is-solid {
  position: fixed; background: rgba(255, 255, 255, .97); border-bottom-color: var(--line);
  backdrop-filter: saturate(180%) blur(8px); box-shadow: 0 6px 20px rgba(20, 35, 70, .07);
}
.cms-header.nav-transparent.is-solid .logo-name { color: var(--text); }
.cms-header.nav-transparent.is-solid .nav > li > a { color: var(--text); }
.cms-header.nav-transparent.is-solid .nav > li > a:hover,
.cms-header.nav-transparent.is-solid .nav > li.active > a { color: var(--brand); }
.cms-header.nav-transparent.is-solid .btn-ghost { border-color: var(--line); color: var(--text-2); }
.cms-header.nav-transparent.is-solid .search-mini .input {
  background: #fff; border-color: var(--line); color: var(--text);
}
.cms-header.nav-transparent.is-solid .nav-toggle span,
.cms-header.nav-transparent.is-solid .nav-toggle span::before,
.cms-header.nav-transparent.is-solid .nav-toggle span::after { background: var(--text); }
/* 透明导航时首屏要顶上，避免被导航条压住内容 */
.cms-header.nav-transparent .nav { justify-content: flex-end; }

/* ================================================================ 轮播版式 */
/* 版式 2：左文右图分栏 —— 图片只占右侧，左侧为浅色文案区 */
.blk-banner.skin-split .banner-slide { background: var(--bg-2); }
.blk-banner.skin-split .banner-slide::after { background: none; }
.blk-banner.skin-split .banner-bg {
  left: auto; right: 0; width: 52%;
  border-radius: 0 0 0 48px;
}
.blk-banner.skin-split .banner-inner { max-width: 520px; padding: 56px 0; }
.blk-banner.skin-split .banner-title { color: var(--text); font-size: 40px; }
.blk-banner.skin-split .banner-sub { color: var(--text-2); }
.blk-banner.skin-split .btn-primary { background: var(--brand); color: #fff; }
.blk-banner.skin-split .btn-primary:hover { background: var(--brand-dark); color: #fff; }
.blk-banner.skin-split .banner-dots i { background: rgba(20, 30, 50, .22); }
.blk-banner.skin-split .banner-dots i.on { background: var(--brand); }

/* 版式 3：居中卡片 —— 文案包在一张白卡里，压在图片上方 */
.blk-banner.skin-card .banner-slide::after { background: rgba(8, 14, 26, .28); }
.blk-banner.skin-card .banner-inner {
  max-width: 720px; margin: 0 auto; text-align: center;
  padding: 44px 46px; background: rgba(255, 255, 255, .95);
  border-radius: 20px; box-shadow: 0 26px 64px rgba(10, 20, 40, .24);
}
.blk-banner.skin-card .banner-title { color: var(--text); font-size: 36px; }
.blk-banner.skin-card .banner-sub { color: var(--text-2); }
.blk-banner.skin-card .banner-btns { justify-content: center; }
.blk-banner.skin-card .btn-primary { background: var(--brand); color: #fff; }
.blk-banner.skin-card .btn-primary:hover { background: var(--brand-dark); color: #fff; }
.blk-banner.skin-card .banner-dots i { background: rgba(20, 30, 50, .22); }
.blk-banner.skin-card .banner-dots i.on { background: var(--brand); }

/* 版式 4：极简 —— 只在左下角留一行字，没有按钮，气质干净 */
.blk-banner.skin-minimal .banner-slide { align-items: flex-end; }
.blk-banner.skin-minimal .banner-slide::after {
  background: linear-gradient(to top, rgba(8, 14, 26, .82), rgba(8, 14, 26, 0) 58%);
}
.blk-banner.skin-minimal .banner-inner { max-width: 640px; padding: 0 0 68px; }
.blk-banner.skin-minimal .banner-title { font-size: 32px; margin-bottom: 8px; }
.blk-banner.skin-minimal .banner-sub { font-size: 15px; margin-bottom: 0; }
.blk-banner.skin-minimal .banner-btns { display: none; }

/* 版式 5：全图铺满 —— 图片原样铺满整屏，顶部不压暗色，文字压在底部浅渐变上 */
.blk-banner.skin-cover .banner-slide { align-items: flex-end; }
.blk-banner.skin-cover .banner-slide::after {
  background: linear-gradient(to top, rgba(8, 14, 26, .62), rgba(8, 14, 26, 0) 42%);
}
.blk-banner.skin-cover .banner-bg { filter: saturate(1.05); }
.blk-banner.skin-cover .banner-inner { max-width: 760px; padding: 0 0 64px; }
.blk-banner.skin-cover .banner-title {
  font-size: 40px; text-shadow: 0 2px 18px rgba(8, 14, 26, .5);
}
.blk-banner.skin-cover .banner-sub { text-shadow: 0 1px 10px rgba(8, 14, 26, .55); }
.blk-banner.skin-cover .banner-dots i { background: rgba(255, 255, 255, .45); }
.blk-banner.skin-cover .banner-dots i.on { background: #fff; }

/* 版式 6：影院暗角 —— 四周深色晕影像看电影，文字白字居左下，气质厚重 */
.blk-banner.skin-cinema .banner-slide::after {
  background:
    radial-gradient(120% 90% at 50% 42%, rgba(8, 14, 26, 0) 38%, rgba(8, 14, 26, .78) 100%),
    linear-gradient(to top, rgba(8, 14, 26, .55), rgba(8, 14, 26, 0) 36%);
}
.blk-banner.skin-cinema .banner-bg { filter: contrast(1.06) saturate(1.1); }
.blk-banner.skin-cinema .banner-inner { max-width: 700px; padding: 0 0 72px; }
.blk-banner.skin-cinema .banner-title {
  font-size: 44px; letter-spacing: 2px; text-shadow: 0 3px 22px rgba(8, 14, 26, .65);
}
.blk-banner.skin-cinema .banner-sub { color: rgba(255, 255, 255, .86); }
.blk-banner.skin-cinema .btn-primary { background: #fff; color: #161c28; border-color: #fff; }
.blk-banner.skin-cinema .btn-primary:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.blk-banner.skin-cinema .banner-dots i { background: rgba(255, 255, 255, .4); }
.blk-banner.skin-cinema .banner-dots i.on { background: #fff; }

/* 版式 7：清新白卡 —— 文案装在左下角一张白色圆角卡里，明亮轻快 */
.blk-banner.skin-fresh .banner-slide { align-items: flex-end; }
.blk-banner.skin-fresh .banner-slide::after {
  background: linear-gradient(to top, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 44%);
}
.blk-banner.skin-fresh .banner-inner {
  max-width: 560px; margin: 0 0 56px; padding: 34px 38px;
  background: rgba(255, 255, 255, .96); border-radius: 18px;
  box-shadow: 0 22px 54px rgba(10, 20, 40, .18);
}
.blk-banner.skin-fresh .banner-title { color: var(--text); font-size: 34px; }
.blk-banner.skin-fresh .banner-sub { color: var(--text-2); }
.blk-banner.skin-fresh .banner-dots i { background: rgba(255, 255, 255, .55); }
.blk-banner.skin-fresh .banner-dots i.on { background: #fff; box-shadow: 0 0 0 3px rgba(20, 35, 70, .18); }

/* 版式 8：大字标语 —— 超大标题居中、副标题在下，无按钮，视觉冲击强 */
.blk-banner.skin-bold .banner-slide {
  align-items: center; justify-content: center; text-align: center;
}
.blk-banner.skin-bold .banner-slide::after {
  background: linear-gradient(180deg, rgba(8, 14, 26, .38), rgba(8, 14, 26, .12) 40%, rgba(8, 14, 26, .5));
}
.blk-banner.skin-bold .banner-inner { max-width: 900px; margin: 0 auto; }
.blk-banner.skin-bold .banner-title {
  font-size: 54px; font-weight: 800; letter-spacing: 4px; line-height: 1.25;
  text-shadow: 0 4px 26px rgba(8, 14, 26, .55);
}
.blk-banner.skin-bold .banner-sub {
  font-size: 17px; color: rgba(255, 255, 255, .88); letter-spacing: 1px;
}
.blk-banner.skin-bold .banner-btns { justify-content: center; }
.blk-banner.skin-bold .btn-primary { background: #fff; color: #161c28; border-color: #fff; }
.blk-banner.skin-bold .btn-primary:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.blk-banner.skin-bold .banner-dots { justify-content: center; }
.blk-banner.skin-bold .banner-dots i { background: rgba(255, 255, 255, .45); }
.blk-banner.skin-bold .banner-dots i.on { background: #fff; }

/* ================================================================ 优势卡片 */
/* 左图标右文 */
.blk-features.is-icon-left .blk-feature {
  display: flex; align-items: flex-start; gap: 16px; text-align: left;
}
.blk-features.is-icon-left .blk-feature-icon {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 13px; margin-bottom: 0;
}
.blk-features.is-icon-left .blk-feature-icon svg { width: 24px; height: 24px; }
.blk-features.is-icon-left .blk-feature-txt h3 { margin-top: 2px; }

/* 大号序号 */
.blk-features.is-numbered { counter-reset: blkf; }
.blk-features.is-numbered .blk-feature {
  counter-increment: blkf; position: relative;
  background: transparent; border: 0; box-shadow: none;
  padding: 4px 0 4px 66px; transform: none !important;
}
.blk-features.is-numbered .blk-feature:hover { box-shadow: none; }
.blk-features.is-numbered .blk-feature::before {
  content: "0" counter(blkf);
  position: absolute; left: 0; top: -4px;
  font-size: 42px; font-weight: 800; line-height: 1; letter-spacing: -1.5px;
  color: var(--brand); opacity: .2;
}
.blk-features.is-numbered .blk-feature-icon { display: none; }

/* 版式 5：两列大卡 —— 3 行 × 2 列，共 6 条，图大字大，资讯感强 */
.blk-news.skin-grid .blk-grid { grid-template-columns: repeat(2, 1fr); }
.blk-news.skin-grid .blk-news-cover { aspect-ratio: 16 / 9; }
.blk-news.skin-grid .blk-news-card h3 { font-size: 19px; }

/* 版式 6：三列紧凑网格 —— 2 行 × 3 列，共 6 条，信息密度高 */
.blk-news.skin-grid3 .blk-grid { grid-template-columns: repeat(3, 1fr); }

/* ================================================================ 产品皮肤 */
/* 皮肤 2：描边悬浮 */
.blk-products.skin-border .blk-product { background: transparent; border-color: var(--line); }
.blk-products.skin-border .blk-product:hover {
  border-color: var(--brand); transform: translateY(-4px); box-shadow: none;
}
.blk-products.skin-border .blk-product:hover h3 { color: var(--brand); }

/* 皮肤 3：图文叠加（图上压字） */
.blk-products.skin-overlay .blk-product {
  position: relative; border: 0; background: #10151f; color: #fff; border-radius: var(--radius);
}
.blk-products.skin-overlay .blk-product-cover { position: relative; }
.blk-products.skin-overlay .blk-product-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 10, 20, .88), rgba(6, 10, 20, .1) 62%, transparent);
}
.blk-products.skin-overlay .blk-product-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 20px 20px;
}
.blk-products.skin-overlay .blk-product-body h3 { color: #fff; }
.blk-products.skin-overlay .blk-product-body p { color: rgba(255, 255, 255, .76); }
.blk-products.skin-overlay .blk-price { color: #fff; }
.blk-products.skin-overlay .blk-badge {
  background: rgba(255, 255, 255, .2); color: #fff; border-color: transparent;
}
.blk-products.skin-overlay .blk-product:hover { transform: translateY(-5px); }

/* 皮肤 4：极简无边框 */
.blk-products.skin-minimal .blk-product { background: transparent; border: 0; border-radius: 0; }
.blk-products.skin-minimal .blk-product-cover { border-radius: var(--radius); }
.blk-products.skin-minimal .blk-product-body { padding: 14px 2px 0; }
.blk-products.skin-minimal .blk-product:hover { transform: none; box-shadow: none; }
.blk-products.skin-minimal .blk-product:hover h3 { color: var(--brand); }

/* 封面比例（v1.3.18）：默认 1:1 正方形（基础规则在 style.css）。
   这里只负责「客户在装修面板里改成横图 / 竖图」时覆盖，避免产品区出现横幅观感。
   用与皮肤同级的类名，且 blocks.css 在 style.css 之后加载，层叠结果确定。 */
.blk-products.ratio-4x3 .blk-product-cover { aspect-ratio: 4 / 3; }
.blk-products.ratio-3x4 .blk-product-cover { aspect-ratio: 3 / 4; }

/* ================================================================ 新闻排版 */
/* 版式 3：头条 + 紧凑列表 */
.blk-news.skin-feature .blk-news-feature {
  display: grid; grid-template-columns: 1.12fr .88fr; gap: 26px; align-items: start;
}
.blk-news-lead {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: all .22s;
}
.blk-news-lead:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.blk-news-lead-cover { aspect-ratio: 16 / 9; background: var(--brand-soft); overflow: hidden; }
.blk-news-lead-cover img { width: 100%; height: 100%; object-fit: cover; }
.blk-news-lead-body { padding: 20px 22px 22px; }
.blk-news-tag {
  display: inline-block; padding: 2px 11px; border-radius: 999px; font-size: 12px;
  background: var(--brand); color: #fff; margin-bottom: 10px;
}
.blk-news-lead-body h3 { font-size: 21px; line-height: 1.45; margin-bottom: 10px; }
.blk-news-lead-body p { font-size: 14px; color: var(--text-2); margin: 0 0 12px; }
.blk-news-lead-body .blk-news-date { font-size: 12.5px; color: var(--text-3); }
.blk-news-brief { display: grid; gap: 10px; }
.blk-news-brief li a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 13px 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); transition: all .2s;
}
.blk-news-brief li a:hover { border-color: var(--brand); }
.blk-news-brief b {
  font-weight: 500; font-size: 14.5px; line-height: 1.5; min-width: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blk-news-brief span { font-size: 12.5px; color: var(--text-3); flex: 0 0 auto; }

/* 版式 4：时间轴 */
.blk-news-timeline { position: relative; }
.blk-news-timeline::before {
  content: ''; position: absolute; left: 131px; top: 14px; bottom: 14px;
  width: 2px; background: var(--line);
}
.blk-news-node {
  display: grid; grid-template-columns: 120px 24px 1fr; align-items: start;
  padding: 13px 0; transition: all .2s;
}
.blk-news-when {
  font-size: 13px; color: var(--text-3); text-align: right; padding-top: 3px; padding-right: 12px;
}
.blk-news-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--brand);
  margin: 8px auto 0; position: relative; z-index: 2;
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.blk-news-holder { padding-left: 16px; min-width: 0; }
.blk-news-holder b { display: block; font-size: 16px; margin-bottom: 4px; }
.blk-news-holder em { font-style: normal; font-size: 13.5px; color: var(--text-3); }
.blk-news-node:hover b { color: var(--brand); }

/* ================================================================ 数据统计 */
/* 样式 4：描边分栏 */
.blk-stats.is-outline { background: transparent; }
.blk-stats.is-outline .blk-grid { gap: 18px; }
.blk-stats.is-outline .blk-stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 16px;
}
.blk-stats.is-outline .blk-stat b { color: var(--brand); }
.blk-stats.is-outline .blk-stat span { color: var(--text-2); opacity: 1; }

/* ================================================================ 响应式 */
@media (max-width: 1023px) {
  .cms-header.nav-center .header-actions { position: static; width: 100%; justify-content: center; }
  .cms-header.nav-center .nav { justify-content: center; }
  .blk-banner.skin-split .banner-bg { left: 0; right: 0; width: 100%; border-radius: 0; }
  .blk-banner.skin-split .banner-slide::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, .93), rgba(255, 255, 255, .4));
  }
  .blk-banner.skin-split .banner-inner { max-width: 100%; }
  .blk-news.skin-feature .blk-news-feature { grid-template-columns: 1fr; }
  .blk-news.skin-grid .blk-grid, .blk-news.skin-grid3 .blk-grid { grid-template-columns: repeat(2, 1fr); }
}
/* 抽屉断点与 style.css 对齐（860px）：此前写成 1023px，860–1023px 视口里
   子菜单被强制常显、没有下拉动画 —— 修复「下拉效果不显示」的第二个根因 */
@media (max-width: 860px) {
  .cms-header .nav-sub { opacity: 1; visibility: visible; transform: none !important; transition: none; }
}
@media (max-width: 767px) {
  .blk-features.is-numbered .blk-feature { padding-left: 54px; }
  .blk-features.is-numbered .blk-feature::before { font-size: 34px; }
  .blk-news-timeline::before { left: 9px; }
  .blk-news-node { grid-template-columns: 1fr; padding-left: 34px; position: relative; }
  .blk-news-when { text-align: left; padding: 0 0 2px; }
  .blk-news-dot { position: absolute; left: 4px; top: 16px; margin: 0; }
  .blk-news-holder { padding-left: 0; }
  .blk-banner.skin-card .banner-inner { padding: 30px 22px; }
  .blk-banner.skin-cover .banner-title { font-size: 28px; }
  .blk-news.skin-grid .blk-grid, .blk-news.skin-grid3 .blk-grid { grid-template-columns: 1fr; }
  .blk-banner.skin-card .banner-title { font-size: 27px; }
  .blk-banner.skin-minimal .banner-inner { padding-bottom: 42px; }
}

/* ================================================================ 软件下载页（v1.2.2） */
.dl-list { display: flex; flex-direction: column; gap: 14px; }
.dl-item {
  display: flex; align-items: center; gap: 18px;
  background: var(--card, #fff); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 24px; transition: box-shadow .18s, border-color .18s;
}
.dl-item:hover { border-color: var(--brand); box-shadow: 0 10px 28px rgba(15, 30, 60, .08); }
.dl-icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: var(--brand-soft, rgba(0, 0, 0, .04)); color: var(--brand);
}
.dl-main { flex: 1 1 auto; min-width: 0; }
.dl-title { margin: 0; font-size: 16px; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dl-ver {
  font-style: normal; font-size: 12px; color: var(--brand);
  background: var(--brand-soft, rgba(0, 0, 0, .04)); border-radius: 999px; padding: 1px 10px;
}
.dl-intro { margin: 4px 0 0; font-size: 13px; color: var(--text-2); }
.dl-meta { margin: 8px 0 0; font-size: 12px; color: var(--text-3); display: flex; gap: 14px; flex-wrap: wrap; }
.dl-auth { color: var(--brand); }
.dl-act { flex: 0 0 auto; }
@media (max-width: 640px) {
  .dl-item { flex-wrap: wrap; }
  .dl-act { width: 100%; display: flex; justify-content: flex-end; }
}
.page-empty { text-align: center; padding: 70px 0; color: var(--text-2); }
.page-empty .btn { margin-top: 16px; }

/* ================================================================ 在线客服浮窗（v1.2.3）
   三种展开效果：cs-balloon 气泡展开 | cs-side 侧边滑出 | cs-grid 宫格弹层
   两种位置：cs-pos-right 右下 | cs-pos-left 左下。纯 CSS（勾选框驱动），无 JS 依赖。 */
.cs-float { position: fixed; bottom: 26px; z-index: 980; font-size: 14px; }
.cs-float.cs-pos-right { right: 22px; }
.cs-float.cs-pos-left { left: 22px; }
.cs-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

/* 悬浮按钮 */
.cs-float .cs-btn {
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  width: 58px; height: 58px; border-radius: 50%; position: relative; z-index: 3;
  background: var(--brand, #4c6ef5); color: #fff; box-shadow: 0 10px 26px rgba(20, 40, 90, .28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cs-float .cs-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(20, 40, 90, .34); }
.cs-float .cs-ico { font-size: 26px; line-height: 1; }
.cs-float .cs-x { display: none; font-size: 22px; line-height: 1; }

/* 面板公共 */
/* ★ z-index 必须高于 .cs-btn(3)：贴右侧居中（cs-pos-mid，默认位置）时面板 right:0，
   与贴着右边缘的悬浮按钮在水平方向重叠 56px 左右；而 .cs-btn 带 z-index:3，
   会把面板右侧那一条「盖住」——表现为面板里的电话/微信、右下角的按钮点不动，
   点到的是浮钮（把面板收起来）。加一层 z-index 后面板整体可点，
   同时面板标题栏里补了一个「收起」按钮，保证面板盖住浮钮后仍然能关闭。 */
.cs-float .cs-panel {
  position: absolute; bottom: 74px; width: 300px; background: #fff; border-radius: 16px;
  border: 1px solid rgba(30, 50, 90, .08); box-shadow: 0 18px 50px rgba(20, 40, 90, .22);
  opacity: 0; visibility: hidden; pointer-events: none; z-index: 4;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.cs-float.cs-pos-right .cs-panel { right: 0; }
.cs-float.cs-pos-left .cs-panel { left: 0; }
.cs-float .cs-head {
  position: relative; padding: 14px 46px 14px 18px; font-weight: 600; color: #fff;
  border-radius: 15px 15px 0 0; background: var(--brand, #4c6ef5);
}
/* 面板内的「收起」：用 label+for 驱动同一个勾选框，和不依赖 JS 的既有交互保持一致 */
.cs-float .cs-close {
  position: absolute; top: 11px; right: 12px; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  border-radius: 50%; font-size: 14px; line-height: 1; color: #fff;
  background: rgba(255, 255, 255, .2); transition: background .15s ease;
}
.cs-float .cs-close:hover { background: rgba(255, 255, 255, .34); }
.cs-float .cs-body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.cs-float .cs-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 10px; border-radius: 10px; color: var(--text, #333); text-decoration: none;
  transition: background .15s ease;
}
.cs-float .cs-row:hover { background: rgba(76, 110, 245, .07); }
.cs-float .cs-k { font-size: 13px; color: var(--text-2, #7a8499); flex: 0 0 auto; }
.cs-float .cs-v { font-weight: 600; text-align: right; word-break: break-all; }
.cs-float .cs-qr { justify-content: center; }
.cs-float .cs-qr img { max-width: 148px; border-radius: 10px; display: block; }

/* 勾选展开 */
.cs-float .cs-toggle:checked ~ .cs-panel { opacity: 1; visibility: visible; pointer-events: auto; }
.cs-float .cs-toggle:checked ~ .cs-btn .cs-ico { display: none; }
.cs-float .cs-toggle:checked ~ .cs-btn .cs-x { display: block; }

/* 效果一：气泡展开（向上弹出） */
.cs-float.cs-balloon .cs-panel { transform: translateY(12px) scale(.88); transform-origin: 100% 100%; }
.cs-float.cs-pos-left.cs-balloon .cs-panel { transform-origin: 0 100%; }
.cs-float.cs-balloon .cs-toggle:checked ~ .cs-panel { transform: translateY(0) scale(1); }

/* 效果二：侧边滑出（按钮为贴边竖条，面板横向滑入） */
.cs-float.cs-side .cs-btn {
  width: 46px; height: 158px; border-radius: 14px; writing-mode: vertical-rl; letter-spacing: 4px;
  font-size: 15px; gap: 8px;
}
.cs-float.cs-side .cs-ico { font-size: 20px; }
.cs-float.cs-side .cs-panel { bottom: 0; }
.cs-float.cs-pos-right.cs-side .cs-panel { right: 54px; transform: translateX(16px); }
.cs-float.cs-pos-left.cs-side .cs-panel { left: 54px; transform: translateX(-16px); }
.cs-float.cs-side .cs-toggle:checked ~ .cs-panel { transform: translateX(0); }

/* 效果三：宫格弹层（全屏遮罩 + 大卡片宫格） */
.cs-float.cs-grid .cs-panel {
  position: fixed; inset: 0; width: auto; border-radius: 0; background: rgba(16, 26, 48, .5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0;
}
.cs-float.cs-grid .cs-toggle:checked ~ .cs-panel { opacity: 1; }
.cs-float.cs-grid .cs-head {
  position: relative; background: none; color: #fff; font-size: 20px; border-radius: 0;
  margin-bottom: 16px; padding: 0;
}
.cs-float.cs-grid .cs-body {
  background: #fff; border-radius: 18px; padding: 18px; width: min(540px, 92vw);
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  transform: scale(.92); transition: transform .22s ease;
}
.cs-float.cs-grid .cs-toggle:checked ~ .cs-panel .cs-body { transform: scale(1); }
.cs-float.cs-grid .cs-row {
  flex-direction: column; align-items: flex-start; gap: 6px;
  background: #f5f7fc; border-radius: 14px; padding: 16px;
}
.cs-float.cs-grid .cs-k { color: var(--brand, #4c6ef5); font-weight: 600; }
.cs-float.cs-grid .cs-v { text-align: left; }
.cs-float.cs-grid .cs-qr { align-items: center; }

@media (max-width: 640px) {
  .cs-float { bottom: 18px; }
  .cs-float.cs-pos-right { right: 14px; }
  .cs-float.cs-pos-left { left: 14px; }
  /* ★ 加 :not(.cs-pos-mid)：贴右侧居中的位置有自己的定位规则，
     不能被子菜单般的「侧边滑出」规则用 !important 抢走（抢走了就往页面中间跳）。 */
  .cs-float.cs-pos-mid:not(.cs-grid) { right: 0; }
  .cs-float.cs-side:not(.cs-pos-mid) .cs-panel { bottom: auto; top: 50%; transform: translateY(-50%) !important; }
  .cs-float.cs-side:not(.cs-pos-mid) .cs-toggle:checked ~ .cs-panel { transform: translateY(-50%) !important; }
  .cs-float.cs-grid .cs-body { grid-template-columns: 1fr; }
  .cs-float.cs-pos-mid:not(.cs-grid) .cs-panel { width: min(320px, 86vw); }
}

/* ================================================================ 客服位置：贴右侧垂直居中（v1.2.4，需求「浮动在右侧中间」）
   为什么用「整屏 flex 容器 + pointer-events 穿透」而不是给 .cs-float 加 transform：
   transform 会让该元素成为 fixed 后代的包含块 —— 宫格效果的全屏遮罩 position:fixed;inset:0
   会退化成按钮大小的一块，直接坏掉。flex 居中不产生这个副作用。 */
.cs-float.cs-pos-mid {
  right: 0; left: 0; top: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 10px;
  pointer-events: none;
}
.cs-float.cs-pos-mid > .cs-btn { pointer-events: auto; }
.cs-float.cs-pos-mid > .cs-consult { pointer-events: auto; }
.cs-float.cs-pos-mid:not(.cs-grid) .cs-btn {
  width: auto; min-width: 56px; height: auto; padding: 15px 11px;
  border-radius: 14px 0 0 14px; flex-direction: column; gap: 7px;
}
.cs-float.cs-pos-mid:not(.cs-grid) .cs-btn:hover { transform: translateX(-2px); }
.cs-float.cs-pos-mid:not(.cs-grid) .cs-ico { font-size: 24px; }
.cs-float.cs-pos-mid .cs-x { font-size: 20px; }
.cs-float.cs-pos-mid .cs-label {
  display: block; writing-mode: vertical-rl; letter-spacing: 3px; font-size: 13px; line-height: 1;
}

/* 面板：出现在按钮左侧并整体垂直居中 */
.cs-float.cs-pos-mid:not(.cs-grid) .cs-panel {
  bottom: auto; top: 50%; right: 0;
  transform: translate(14px, -50%) scale(.9); transform-origin: 100% 50%;
}
.cs-float.cs-pos-mid:not(.cs-grid) .cs-toggle:checked ~ .cs-panel { transform: translate(0, -50%) scale(1); }
.cs-float.cs-pos-mid.cs-side:not(.cs-grid) .cs-panel { right: 62px; }
.cs-float.cs-pos-mid.cs-side:not(.cs-grid) .cs-btn { height: auto; }

/* 其它位置才显示竖排文字（圆钮/侧条放不下） */
.cs-float:not(.cs-pos-mid) .cs-label { display: none; }

/* 在线咨询快捷按钮（v1.2.4）：没配外部客服系统时回落到站内留言页，开箱可用 */
.cs-float .cs-consult {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px; white-space: nowrap; font-size: 13px; font-weight: 600;
  background: var(--brand, #4c6ef5); color: #fff;
  box-shadow: 0 8px 20px rgba(20, 40, 90, .22); transition: transform .18s ease, box-shadow .18s ease;
}
.cs-float .cs-consult:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20, 40, 90, .3); }
.cs-float .cs-consult-ico { font-size: 15px; line-height: 1; }

/* ================================================================ AI 客服对话（v1.2.6）
   对话区长在客服面板里，人工入口（在线咨询 / 电话）始终在下方可见 ——
   所以 AI 失败时不需要「重开一个窗口」，访客往下点就是人工。
   面板宽度只有 300px（移动端更窄），所以气泡必须自动换行、输入框允许收缩（min-width:0）。 */
.cs-float .cs-ai { padding: 12px 14px 10px; border-bottom: 1px dashed var(--line, #e6e9f0); }
.cs-float .cs-ai-log {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 210px; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px;
}
.cs-float .cs-ai-msg {
  max-width: 86%; padding: 8px 11px; border-radius: 12px;
  font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
}
.cs-float .cs-ai-msg.ai {
  align-self: flex-start; background: var(--bg-2, #f6f8fc); color: var(--text, #333);
  border-bottom-left-radius: 4px;
}
.cs-float .cs-ai-msg.me {
  align-self: flex-end; background: var(--brand, #4c6ef5); color: #fff;
  border-bottom-right-radius: 4px;
}
.cs-float .cs-ai-msg.err {
  align-self: flex-start; background: #fff5f5; color: #b32b23;
  border-bottom-left-radius: 4px;
}
.cs-float .cs-ai-msg.loading {
  align-self: flex-start; background: var(--bg-2, #f6f8fc); color: var(--text-2, #7a8499);
  border-bottom-left-radius: 4px;
}
.cs-float .cs-ai-form { display: flex; gap: 8px; margin-top: 10px; }
.cs-float .cs-ai-input {
  flex: 1 1 auto; min-width: 0; padding: 9px 12px; font: inherit; font-size: 13px;
  border: 1px solid var(--line, #e6e9f0); border-radius: 999px;
  background: #fff; color: var(--text, #333);
}
.cs-float .cs-ai-input:focus {
  outline: 0; border-color: var(--brand, #4c6ef5); box-shadow: 0 0 0 3px rgba(76, 110, 245, .12);
}
.cs-float .cs-ai-send {
  flex: 0 0 auto; padding: 9px 15px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--brand, #4c6ef5); color: #fff; font-size: 13px; font-weight: 600;
}
.cs-float .cs-ai-send:disabled { opacity: .55; cursor: not-allowed; }
.cs-float .cs-ai-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 8px; font-size: 12px; color: var(--text-2, #7a8499);
}
.cs-float .cs-ai-badge {
  padding: 2px 7px; border-radius: 999px; font-size: 11px;
  background: #fff7e6; color: #ad6800; border: 1px solid #ffe0a3;
}
.cs-float .cs-ai-human { color: var(--brand, #4c6ef5); font-weight: 600; text-decoration: none; }
.cs-float .cs-ai-human:hover { text-decoration: underline; }

/* 小屏：面板本身要能整体滚动，否则「面板比屏幕还高」时上半截永远点不到 */
@media (max-width: 640px) {
  .cs-float .cs-ai-log { max-height: 150px; }
  .cs-float:not(.cs-grid) .cs-panel { max-height: min(78vh, 520px); overflow-y: auto; }
}
/* 宫格效果的对话区：卡片宽 540px，气泡可以放宽一点 */
.cs-float.cs-grid .cs-ai { width: min(540px, 92vw); border-bottom: 0; padding: 0 0 12px; }
.cs-float.cs-grid .cs-ai-msg { max-width: 78%; }

/* ---------------------------------------- 站内人工客服（v1.2.8 留言，v1.3.0 起实时对话） */
.cs-float .cs-msg { padding: 12px 16px 14px; border-bottom: 1px solid rgba(30, 50, 90, .07); }
.cs-float .cs-msg-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px;
}
.cs-float .cs-msg-title { font-size: 13px; font-weight: 700; color: var(--text-1, #1f2a3d); }
.cs-float .cs-msg-back {
  border: 0; background: none; padding: 2px 4px; cursor: pointer; font-size: 12px;
  color: var(--brand, #4c6ef5);
}
.cs-float .cs-msg-back:hover { text-decoration: underline; }
/* 消息气泡完全复用 cs-ai-msg；日志区高度略低 */
.cs-float .cs-msg-log {
  height: 170px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
  padding: 4px 2px; margin-bottom: 10px; overscroll-behavior: contain;
}
.cs-float .cs-msg-prof { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.cs-float .cs-msg-prof .cs-ai-input { width: 100%; }
.cs-float .cs-msg-prof-btn {
  border: 0; background: none; padding: 0; cursor: pointer; font-size: 12px;
  color: var(--brand, #4c6ef5);
}
.cs-float .cs-msg-prof-btn:hover { text-decoration: underline; }
.cs-float .cs-msg-tab {
  border: 0; background: none; padding: 0; cursor: pointer; font-size: 12px;
  color: var(--brand, #4c6ef5); font-weight: 600;
}
.cs-float .cs-msg-tab:hover { text-decoration: underline; }
/* 客服来新消息而访客不在聊天页签时的红点提示（v1.3.0） */
.cs-float .cs-msg-tab { position: relative; }
.cs-float .cs-msg-tab.has-unread::after {
  content: ''; position: absolute; top: -3px; right: -9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #e8590c; box-shadow: 0 0 0 2px #fff;
}
.cs-float .cs-msg-note { font-size: 12px; color: var(--text-2, #7a8499); line-height: 1.6; }
.cs-float.cs-grid .cs-msg { width: min(540px, 92vw); }
@media (max-width: 640px) {
  .cs-float .cs-msg-log { max-height: 150px; }
}

/* ================================================================ 商城（v1.2.4） */

/* 通用小件 */
.notice-bar {
  padding: 11px 16px; margin-bottom: 18px; border-radius: var(--radius-sm, 8px); font-size: 14px;
  background: var(--brand-soft, #eef4ff); color: var(--brand-dark, #14489c);
  border: 1px solid rgba(76, 110, 245, .16);
}
.panel-tip {
  padding: 14px 16px; border-radius: var(--radius-sm, 8px); font-size: 14px; line-height: 1.7;
  background: var(--bg-2, #f6f8fc); color: var(--text-2, #5b6478);
  border: 1px dashed var(--line, #e6e9f0);
}
.btn.btn-sm { padding: 6px 13px; font-size: 13px; border-radius: 8px; }
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  color: var(--brand, #4c6ef5); transition: opacity .16s;
}
.link-btn:hover { opacity: .78; }
.link-btn.danger { color: #c0392b; }
.price-from {
  font-style: normal; font-size: 13px; font-weight: 500; margin-left: 3px; color: var(--text-3, #8d95a6);
}

/* ---- 购物车角标 ---- */
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; font-size: 19px; background: var(--bg-2, #f6f8fc); }
.cart-link:hover { background: var(--brand-soft, #eef4ff); }
.cart-badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #e4572e; color: #fff; font-size: 11px; line-height: 18px;
  font-weight: 700; text-align: center; box-shadow: 0 2px 6px rgba(228, 87, 46, .4);
}

/* ---- 规格选择 ---- */
.sku-pick { margin: 18px 0 6px; }
.sku-dim { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.sku-name { flex: 0 0 62px; font-size: 14px; color: var(--text-2, #5b6478); line-height: 34px; }
.sku-opts { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; }
.sku-opt {
  padding: 7px 16px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 14px;
  background: var(--bg-2, #f6f8fc); color: var(--text, #1f2430);
  border: 1px solid var(--line, #e6e9f0); transition: all .16s;
}
.sku-opt:hover { border-color: var(--brand, #4c6ef5); color: var(--brand, #4c6ef5); }
.sku-opt.on { background: var(--brand-soft, #eef4ff); border-color: var(--brand, #4c6ef5); color: var(--brand, #4c6ef5); font-weight: 600; }
.sku-opt.off { opacity: .42; cursor: not-allowed; text-decoration: line-through; }
.sku-picked { font-size: 13px; color: var(--text-2, #5b6478); margin-top: 4px; }
.sku-picked b { color: var(--text, #1f2430); }

/* ---- 数量步进 ---- */
.qty-box { display: inline-flex; align-items: stretch; border: 1px solid var(--line, #e6e9f0);
  border-radius: 10px; overflow: hidden; background: #fff; }
.qty-btn {
  width: 40px; border: 0; background: var(--bg-2, #f6f8fc); cursor: pointer; font-size: 17px;
  color: var(--text-2, #5b6478); line-height: 1; transition: background .16s;
}
.qty-btn:hover { background: var(--brand-soft, #eef4ff); color: var(--brand, #4c6ef5); }
.qty-input {
  width: 58px; border: 0; text-align: center; font: inherit; font-size: 15px; color: var(--text, #1f2430);
  background: #fff; -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-box.sm .qty-btn { width: 32px; font-size: 15px; }
.qty-box.sm .qty-input { width: 46px; font-size: 14px; }

/* ---- 商品详情购买区 ---- */
.buy-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.buy-side { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; }

/* ---- 购物车页 ---- */
.cart-loading { padding: 26px 0; color: var(--text-3, #8d95a6); font-size: 14px; text-align: center; }
.cart-table td, .cart-table th { vertical-align: middle; }
.cart-row.is-invalid .cp-name, .cart-row.is-invalid .num { opacity: .5; }
.cart-prod { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.cp-cover {
  flex: 0 0 62px; width: 62px; height: 62px; border-radius: 10px; overflow: hidden;
  background: var(--bg-2, #f6f8fc); display: flex; align-items: center; justify-content: center;
}
.cp-cover img { width: 100%; height: 100%; object-fit: cover; }
.cp-cover span { font-size: 12px; color: var(--text-3, #8d95a6); }
.cp-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cp-name { font-weight: 600; color: var(--text, #1f2430); }
.cp-name:hover { color: var(--brand, #4c6ef5); }
.cp-spec { font-size: 12px; color: var(--text-3, #8d95a6); }
.cp-bad { font-size: 12px; color: #c0392b; }
.cart-invalid {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm, 8px);
  background: #fff6f5; color: #a8372a; font-size: 13px; border: 1px solid #f6dcd8;
}
.cart-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 18px; padding: 14px 20px; border-radius: var(--radius, 12px);
  background: #fff; border: 1px solid var(--line, #e6e9f0); box-shadow: var(--shadow, 0 2px 10px rgba(23,43,85,.06));
  position: sticky; bottom: 12px; z-index: 30;
}
.cb-left, .cb-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cb-all { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.cb-sum { font-size: 14px; color: var(--text-2, #5b6478); }
.cb-amount { font-size: 20px; color: #c0392b; }

/* ---- 结算页 ---- */
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.co-main { min-width: 0; }
.co-side { position: sticky; top: 90px; }
.co-side .panel-body { padding: 16px 20px 20px; }
.co-sum-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 14px; color: var(--text-2, #5b6478); }
.co-sum-row b { color: var(--text, #1f2430); font-weight: 600; }
.co-sum-row b.minus { color: #c0392b; }
.co-sum-row.total { border-top: 1px dashed var(--line, #e6e9f0); margin-top: 8px; padding-top: 12px; font-size: 15px; }
.co-sum-row.total b { font-size: 22px; color: #c0392b; }
.co-balance {
  display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 11px 13px; cursor: pointer;
  border-radius: var(--radius-sm, 8px); background: var(--bg-2, #f6f8fc); font-size: 13px;
}
.co-balance b { margin-left: auto; color: var(--brand, #4c6ef5); }
.co-coupon .cc-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-2, #5b6478); margin-bottom: 10px; }
.coupon-list { display: flex; flex-direction: column; gap: 8px; }
.coupon-pick {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer;
  border-radius: var(--radius-sm, 8px); border: 1px solid var(--line, #e6e9f0); transition: all .16s;
}
.coupon-pick:hover { border-color: var(--brand, #4c6ef5); }
.coupon-pick.off { opacity: .55; cursor: not-allowed; }
.coupon-pick .cp-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.coupon-pick b { color: #c0392b; font-size: 15px; }
.coupon-pick em { font-style: normal; font-size: 13px; color: var(--text, #1f2430); }
.coupon-pick i { font-style: normal; font-size: 12px; color: var(--text-3, #8d95a6); }
.pay-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pay-type {
  display: flex; align-items: center; gap: 10px; padding: 13px 15px; cursor: pointer;
  border-radius: var(--radius-sm, 8px); border: 1px solid var(--line, #e6e9f0);
  background: #fff; transition: all .16s;
}
.pay-type:hover { border-color: var(--brand, #4c6ef5); }
.pay-type.off { opacity: .5; cursor: not-allowed; }
.pay-type input:checked ~ .pt-body b { color: var(--brand, #4c6ef5); }
.pay-type .pt-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-type b { font-size: 14px; }
.pay-type em { font-style: normal; font-size: 12px; color: var(--text-3, #8d95a6); }

/* ---- 收银台 ---- */
.pay-order { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; padding-bottom: 18px; border-bottom: 1px dashed var(--line, #e6e9f0); }
.pay-order > div { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.pay-order span { color: var(--text-3, #8d95a6); }
.pay-order b { font-size: 15px; }
.pay-order .amount b { font-size: 24px; color: #c0392b; }
.pay-action { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.pay-result { margin-top: 22px; padding: 20px; border-radius: var(--radius, 12px); background: var(--bg-2, #f6f8fc); text-align: center; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr-canvas img, .qr-img { width: 220px; height: 220px; display: block; border-radius: 10px; background: #fff; padding: 8px; }
.qr-tip { margin: 0; font-size: 13px; color: var(--text-2, #5b6478); }
.qr-raw { word-break: break-all; font-size: 12px; color: var(--text-2, #5b6478); }
.pay-mock p { margin: 0 0 14px; font-size: 14px; color: var(--text-2, #5b6478); }
.pay-redirect p { margin: 0 0 12px; font-size: 14px; }

/* ---- 订单列表 / 详情 ---- */
.order-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 16px 0 6px; }
.order-tabs a {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: 999px;
  font-size: 14px; color: var(--text-2, #5b6478); background: var(--bg-2, #f6f8fc);
}
.order-tabs a:hover { color: var(--brand, #4c6ef5); }
.order-tabs a.on { background: var(--brand, #4c6ef5); color: #fff; }
.order-tabs a i { font-style: normal; font-size: 12px; opacity: .8; }
.order-card { border: 1px solid var(--line, #e6e9f0); border-radius: var(--radius, 12px); margin-top: 14px; overflow: hidden; }
.oc-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px;
  background: var(--bg-2, #f6f8fc); font-size: 13px; color: var(--text-2, #5b6478);
}
.oc-no { font-weight: 600; color: var(--text, #1f2430); }
.oc-status { margin-left: auto; font-weight: 600; }
.oc-items { padding: 6px 16px; }
.oc-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line, #e6e9f0); }
.oc-item:last-child { border-bottom: 0; }
.oc-cover { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: var(--bg-2, #f6f8fc); display: flex; align-items: center; justify-content: center; }
.oc-cover img { width: 100%; height: 100%; object-fit: cover; }
.oc-cover span { font-size: 11px; color: var(--text-3, #8d95a6); }
.oc-info { flex: 1 1 auto; min-width: 0; }
.oc-name { font-weight: 600; font-size: 14px; }
.oc-spec { font-size: 12px; color: var(--text-3, #8d95a6); }
.oc-price { font-size: 13px; color: var(--text-2, #5b6478); white-space: nowrap; }
.oc-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 16px; background: var(--bg-2, #f6f8fc); }
.oc-sum { font-size: 13px; color: var(--text-2, #5b6478); }
.oc-sum b { font-size: 18px; color: #c0392b; }
.oc-act { display: flex; gap: 8px; flex-wrap: wrap; }
.st-pending { color: #d9820a; }
.st-paid { color: #14713f; }
.st-shipped { color: var(--brand, #4c6ef5); }
.st-finished { color: #14713f; }
.st-canceled { color: var(--text-3, #8d95a6); }
.st-refunded { color: #c0392b; }
.order-steps { display: flex; gap: 10px; flex-wrap: wrap; padding: 4px 0 20px; }
.os-node { flex: 1 1 140px; padding: 12px 14px; border-radius: var(--radius-sm, 8px); background: var(--bg-2, #f6f8fc); border-left: 3px solid var(--line, #e6e9f0); }
.os-node.on { background: var(--brand-soft, #eef4ff); border-left-color: var(--brand, #4c6ef5); }
.os-node b { display: block; font-size: 14px; }
.os-node span { font-size: 12px; color: var(--text-3, #8d95a6); }
.order-amount { margin-top: 18px; padding: 14px 18px; border-radius: var(--radius-sm, 8px); background: var(--bg-2, #f6f8fc); }
.order-amount > div { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; font-size: 14px; color: var(--text-2, #5b6478); }
.order-amount b { color: var(--text, #1f2430); }
.order-amount b.minus { color: #c0392b; }
.order-amount .total { border-top: 1px dashed var(--line, #e6e9f0); margin-top: 6px; padding-top: 12px; }
.order-amount .total b { font-size: 22px; color: #c0392b; }
.order-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.order-info-grid h4 { font-size: 14px; margin: 0 0 8px; }
.order-info-grid p { margin: 0 0 5px; font-size: 13px; color: var(--text-2, #5b6478); }
.order-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line, #e6e9f0); }

/* ---- 页脚友情链接 ---- */
.footer-friend {
  display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap;
  padding: 16px 0 4px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 8px;
}
.footer-friend .ff-title { flex: 0 0 auto; font-size: 13px; opacity: .7; }
.footer-friend .ff-list { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }
.footer-friend .ff-list a { opacity: .8; }
.footer-friend .ff-list a:hover { opacity: 1; }

@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .co-side { position: static; }
  .order-info-grid { grid-template-columns: 1fr; }
  .cart-bar { position: static; }
  .cb-right { width: 100%; justify-content: space-between; }
}
@media (max-width: 640px) {
  .buy-bar { gap: 10px; }
  .buy-bar .btn { flex: 1 1 auto; }
  .sku-dim { flex-direction: column; gap: 6px; }
  .sku-name { line-height: 1.6; }
  .oc-foot { flex-direction: column; align-items: flex-start; }
  .pay-order { grid-template-columns: 1fr; }
}

/* ==========================================================================
   优惠券（v1.2.5）：会员中心领券活动 / 我的券包 / 商品页价格区可领券
   ========================================================================== */
.coupon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.coupon-card {
  display: flex; align-items: center; gap: 14px;
  border: 1px dashed #e63946; border-radius: var(--radius-sm, 8px);
  padding: 14px 16px; background: linear-gradient(135deg, rgba(230, 57, 70, .05), transparent);
}
.coupon-card.coupon-discount { border-color: #e67e22; background: linear-gradient(135deg, rgba(230, 126, 34, .06), transparent); }
.coupon-val { flex: 0 0 auto; min-width: 64px; text-align: center; color: #e63946; font-weight: 700; }
.coupon-card.coupon-discount .coupon-val { color: #e67e22; }
.coupon-val b { font-size: 26px; line-height: 1.1; display: block; }
.coupon-val small { font-size: 14px; }
.coupon-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--text-2, #5b6478); }
.coupon-name { font-size: 14px; color: var(--text, #1f2430); }
.coupon-card.coupon-used { opacity: .55; filter: grayscale(1); }
.coupon-state { flex: 0 0 auto; font-size: 12px; color: var(--text-3, #8d95a6); }
.coupon-state-ok { color: #e63946; font-weight: 600; }
/* 商品详情价格区的可领券小条 */
.coupon-line { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.coupon-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px dashed #e63946; color: #e63946; border-radius: 6px;
  padding: 4px 10px; font-size: 12px; line-height: 1.5; background: rgba(230, 57, 70, .04);
}
.coupon-chip.coupon-chip-discount { border-color: #e67e22; color: #e67e22; background: rgba(230, 126, 34, .05); }
.coupon-chip b { font-size: 13px; }
.coupon-chip-cond { opacity: .8; }
.coupon-get { color: inherit; font-weight: 600; text-decoration: none; padding-left: 6px; border-left: 1px solid currentColor; cursor: pointer; }
.coupon-get:hover { text-decoration: underline; }
.coupon-chip-tag { font-style: normal; opacity: .7; }
@media (max-width: 760px) {
  .coupon-grid { grid-template-columns: 1fr; }
  .coupon-val b { font-size: 22px; }
  .coupon-line { gap: 6px; }
  .coupon-chip { padding: 3px 8px; font-size: 12px; }
}

/* ==========================================================================
   在线充值（v1.2.5）：会员中心「我的余额」页的档位卡片与支付交互
   ========================================================================== */
.recharge-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.recharge-plan {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 1px solid var(--line, #e6e9f0); border-radius: var(--radius-sm, 8px);
  padding: 14px 10px; cursor: pointer; text-align: center; transition: border-color .15s, background .15s;
}
.recharge-plan input { position: absolute; opacity: 0; pointer-events: none; }
.recharge-plan.on { border-color: #e63946; background: rgba(230, 57, 70, .05); }
.rp-amount { font-size: 17px; color: var(--text, #1f2430); }
.rp-bonus { font-size: 12px; color: #e63946; font-weight: 600; }
.recharge-custom { margin-top: 12px; }
.recharge-custom label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2, #5b6478); }
.recharge-custom input { max-width: 180px; }
.recharge-actions { display: flex; gap: 10px; margin-top: 14px; align-items: center; }
.recharge-actions select { max-width: 260px; }
.recharge-result { margin-top: 16px; }
.recharge-result .pay-mock, .recharge-result .pay-redirect { padding: 14px; border: 1px dashed var(--line, #e6e9f0); border-radius: var(--radius-sm, 8px); }
.recharge-result .qr-box { text-align: center; }
.recharge-result .qr-canvas { display: inline-block; padding: 10px; border: 1px solid var(--line, #e6e9f0); border-radius: var(--radius-sm, 8px); }
.recharge-result .qr-img { width: 180px; height: 180px; display: block; }
.recharge-result .qr-tip { font-size: 13px; color: var(--text-3, #8d95a6); margin-top: 8px; }

/* ==========================================================================
   限时特价角标（v1.2.5）：商品列表 / 详情 / 推荐卡的「特价」标签与划线价
   ========================================================================== */
.card .card-cover { position: relative; }
.sale-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: #e63946; color: #fff; font-size: 12px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px; line-height: 1.6;
}
.price-old-inline { text-decoration: line-through; color: var(--text-3, #8d95a6); font-size: 12px; margin-left: 6px; }
.sale-end-tip { font-size: 12px; color: #e63946; margin-top: 4px; }
@media (max-width: 760px) {
  .recharge-plans { grid-template-columns: repeat(2, 1fr); }
  .recharge-actions { flex-direction: column; align-items: stretch; }
  .recharge-actions select { max-width: none; }
}

/* v1.2.5 移动端：客服面板收起态用 display:none（visibility:hidden 仍占布局，
   300px 宽面板会撑出横向滚动条）；展开态恢复 block。 */
@media (max-width: 560px) {
  .cs-float .cs-panel { display: none; }
  .cs-float .cs-toggle:checked ~ .cs-panel { display: block; }
}

/* v1.2.5 移动端：会员-余额页防撑破
   select 的 min-content 由最长 option 决定（约 464px）、记录表 6 列约 466px，
   会把 member-wrap 的 1fr 轨道撑到 510px（375px 视口横向溢出）。 */
@media (max-width: 760px) {
  .member-wrap { grid-template-columns: minmax(0, 1fr); }
  .panel-body { overflow-x: auto; }
  .recharge-actions select { width: 100%; min-width: 0; }
}

/* ================================================================ 社区问答（v1.3.8）
   一套样式覆盖「列表 / 详情 / 提问 / 我的」四页。颜色一律取主题变量，
   所以六套主题自动跟着换配色（与 blocks.css 里其它区块同一约定）。
   改这里要**六份一起改** —— 用 _dev/_append_qa_css.py 追加，别手改单个文件。 */

.qa-top { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin: 26px 0 16px; }
.qa-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; flex: 1 1 340px; }
.qa-search input[type=search], .qa-search input[type=text] {
  flex: 1 1 200px; min-width: 0; height: 42px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--text); background: #fff;
}
.qa-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.qa-search .btn { height: 42px; border-radius: 999px; padding: 0 24px; }
.qa-reset { font-size: 13px; color: var(--text-3); }
.qa-top-act { display: flex; gap: 10px; flex-wrap: wrap; }

.qa-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.qa-cats a {
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--text-2); background: #fff;
}
.qa-cats a:hover { border-color: var(--brand); color: var(--brand); }
.qa-cats a.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.qa-filter { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 14px; }
.qa-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.qa-tabs a {
  padding: 5px 13px; border-radius: 8px; font-size: 13px; color: var(--text-2); background: var(--bg-2);
}
.qa-tabs a:hover { color: var(--brand); }
.qa-tabs a.on { background: var(--brand); color: #fff; }
.qa-tabs a em { font-style: normal; opacity: .75; margin-left: 4px; font-size: 12px; }
.qa-tabs.is-sub a { background: transparent; border: 1px solid var(--line); }
.qa-tabs.is-sub a.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }

.qa-list { border-top: 1px solid var(--line); }
.qa-row { display: flex; gap: 18px; padding: 18px 6px; border-bottom: 1px solid var(--line); }
.qa-row:hover { background: #fbfcfe; }
.qa-row-stat {
  flex: 0 0 78px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 0;
  text-align: center; align-content: start; padding-top: 2px;
}
.qa-row-stat b, .qa-row-stat em { font-style: normal; font-size: 16px; font-weight: 600; color: var(--brand); }
.qa-row-stat em { color: var(--text-3); }
.qa-row-stat span { font-size: 11px; color: var(--text-3); }
.qa-row-main { flex: 1 1 auto; min-width: 0; }
.qa-row-main h3 { font-size: 16px; margin: 0 0 6px; line-height: 1.5; }
.qa-row-main h3 a { color: var(--text); }
.qa-row-main h3 a:hover { color: var(--brand); }
.qa-brief { margin: 0 0 8px; font-size: 13px; color: var(--text-2); }
.qa-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; font-size: 12px; color: var(--text-3); }

.qa-tag {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  font-style: normal; font-size: 11px; line-height: 18px; vertical-align: 2px;
  background: var(--bg-2); color: var(--text-2);
}
.qa-tag.is-solved { background: #e8f6ec; color: #1f7a3f; }
.qa-tag.is-pending { background: #fff4e5; color: #a06000; }
.qa-tag.is-closed { background: #f0f1f4; color: #5b6478; }
.qa-tag.is-top { background: var(--brand-soft); color: var(--brand); }

/* ---------------------------------------------------------------- 详情页 */
.qa-dmeta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.qa-q, .qa-a, .qa-best, .qa-form, .qa-login, .qa-notice {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 20px 22px;
}
.qa-q { margin-bottom: 22px; }
.qa-content { font-size: 15px; color: var(--text); word-wrap: break-word; overflow-wrap: anywhere; }
.qa-content img, .qa-content video, .qa-content iframe { max-width: 100%; }
.qa-content table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.qa-content table td, .qa-content table th { border: 1px solid var(--line); padding: 8px 10px; }
.qa-act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.qa-act .btn { height: 34px; padding: 0 16px; font-size: 13px; border-radius: 8px; }
.qa-hint { font-size: 12px; color: var(--text-3); }

.qa-best { border-color: #bfe3c9; background: #f6fdf8; margin-bottom: 22px; }
.qa-best-h {
  font-size: 14px; font-weight: 600; color: #1f7a3f; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.qa-best-h::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: #1f7a3f; }
.qa-best .qa-a { border: 0; padding: 0; }

.qa-sec { font-size: 16px; margin: 26px 0 14px; }
.qa-sec em { font-style: normal; color: var(--text-3); font-size: 14px; font-weight: 400; }
.qa-a { margin-bottom: 14px; }
.qa-a-head {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-size: 12px; color: var(--text-3); margin-bottom: 10px;
  padding-bottom: 10px; border-bottom: 1px dashed var(--line);
}
.qa-a-head b { font-size: 14px; color: var(--text); }
.qa-floor { color: var(--brand); }
.qa-children { margin: 12px 0 0 18px; padding-left: 14px; border-left: 2px solid var(--brand-soft); }
.qa-a.is-sub { background: var(--bg-2); border-color: transparent; padding: 14px 16px; margin-bottom: 10px; }
.qa-a.is-sub .qa-a-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 6px; }

/* ---------------------------------------------------------------- 提问 / 我的 */
.qa-form { margin-top: 18px; }
.qa-form-h { font-size: 16px; margin: 0 0 12px; }
.qa-field { margin-bottom: 16px; }
.qa-field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 7px; font-weight: 600; }
.qa-field input[type=text] {
  width: 100%; height: 44px; padding: 0 15px; font-size: 15px; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.qa-field select {
  height: 44px; min-width: 220px; max-width: 100%; padding: 0 12px; font-size: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--text);
}
.qa-field input:focus, .qa-field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.qa-notice { background: var(--brand-soft); border-color: transparent; color: var(--text-2); font-size: 13px; margin-bottom: 18px; }
.qa-rules { white-space: pre-wrap; margin: 0; font-size: 13px; color: var(--text-2); }
.qa-tips { font-size: 13px; color: var(--text-2); }
.qa-tips li { position: relative; padding-left: 14px; margin-bottom: 8px; }
.qa-tips li::before { content: '·'; position: absolute; left: 2px; color: var(--brand); font-weight: 700; }
.qa-side-row { font-size: 13px; color: var(--text-2); margin: 0 0 8px; }
.qa-side-num { font-size: 14px; color: var(--text); margin: 0 0 12px; }
.qa-login { text-align: center; }
.qa-off { text-align: center; padding: 50px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }
.qa-off b { display: block; font-size: 17px; margin-bottom: 10px; }
.qa-off span { display: block; color: var(--text-3); font-size: 14px; margin-bottom: 18px; }
.qa-tip {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 9999;
  background: rgba(20, 28, 40, .92); color: #fff; padding: 10px 22px; border-radius: 999px;
  font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-width: 88vw;
}

/* 手机端：统计列改成标题上方的一行，否则 78px 固定列会把标题挤成两三行 */
@media (max-width: 760px) {
  .qa-row { flex-direction: column; gap: 10px; }
  .qa-row-stat { flex: none; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0 14px; text-align: left; }
  .qa-children { margin-left: 8px; padding-left: 10px; }
  .qa-tabs { gap: 4px; }
  .qa-field select { width: 100%; min-width: 0; }
}

/* ================================================================ 商城首页 / 知识付费 / 拼团（v1.3.11）
   六套主题共用同一份 blocks.css（逐字节一致），配色一律取主题变量，
   所以新页面在六套主题下都跟着品牌色走，不需要逐主题再调一遍。 */

/* ---------------------------------------------------------------- 商城 */
.shop-wrap { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 26px; align-items: start; }
.shop-side {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 16px;
}
.shop-side-h {
  padding: 14px 18px; font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}
.shop-tree { padding: 8px 0 12px; }
.shop-node {
  display: block; padding: 9px 18px; font-size: 14px; color: var(--text-2);
  border-left: 3px solid transparent; transition: background .15s, color .15s;
}
.shop-node:hover { background: var(--bg-2); color: var(--brand); }
.shop-node.on { color: var(--brand); background: var(--brand-soft); border-left-color: var(--brand); font-weight: 600; }
.shop-lv0 { font-weight: 600; color: var(--text); }
.shop-lv2 { padding-left: 34px; font-size: 13px; }
.shop-side-foot { padding: 12px 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }

.shop-main { min-width: 0; }
.shop-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.shop-top-item {
  display: flex; gap: 14px; padding: 12px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow .18s, transform .18s;
}
.shop-top-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.shop-top-cover { width: 110px; height: 110px; flex: none; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); }
.shop-top-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-top-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.shop-top-body h3 { margin: 0; font-size: 15px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-top-body p { margin: 0; font-size: 13px; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-top-price { margin-top: auto; color: #d4380d; font-size: 17px; font-weight: 700; }
.shop-top-price em { font-style: normal; font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: 6px; }

.shop-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.shop-search { display: flex; gap: 8px; }
.shop-input {
  width: 240px; height: 40px; padding: 0 14px; font-size: 14px; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
}
.shop-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.shop-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.shop-tab {
  padding: 7px 14px; font-size: 13px; color: var(--text-2); border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg);
}
.shop-tab:hover { color: var(--brand); border-color: var(--brand); }
.shop-tab.on { color: #fff; background: var(--brand); border-color: var(--brand); }
.shop-total { margin-left: auto; font-size: 13px; color: var(--text-3); }
.shop-total b { color: var(--brand); }

.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shop-card {
  display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.shop-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: transparent; }
.shop-card-cover { position: relative; aspect-ratio: 1 / 1; background: var(--bg-2); overflow: hidden; }
.shop-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.shop-card:hover .shop-card-cover img { transform: scale(1.05); }
.shop-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--text-3); font-size: 13px; }
.shop-badge {
  position: absolute; left: 10px; top: 10px; padding: 3px 9px; font-size: 12px; color: #fff;
  background: #d4380d; border-radius: 999px;
}
.shop-badge.group { background: #fa8c16; }
.shop-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.shop-card-body h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card-body p { margin: 0; font-size: 12px; color: var(--text-3);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.shop-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.shop-price b { color: #d4380d; font-size: 18px; }
.shop-price s { color: var(--text-3); font-size: 12px; }
.shop-group-tip { font-style: normal; font-size: 12px; color: #fa8c16; }
.shop-card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }

/* ---------------------------------------------------------------- 拼团 */
.gb-box {
  margin: 14px 0 18px; padding: 14px 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, #fff7e6, #fff1f0); border: 1px solid #ffd8bf;
}
.gb-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.gb-head b { font-size: 24px; color: #d4380d; }
.gb-head span { font-size: 13px; color: #ad4e00; }
.gb-team { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed #ffd8bf; font-size: 13px; color: #ad4e00; }
.gb-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.gb-act .muted { font-size: 12px; }

.team-section { padding-top: 28px; }
.team-card {
  display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 28px;
  padding: 24px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.team-cover { border-radius: var(--radius); overflow: hidden; background: var(--bg-2); aspect-ratio: 1 / 1; }
.team-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-info h1 { margin: 0 0 12px; font-size: 22px; line-height: 1.4; }
.team-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.team-price-now { font-size: 30px; font-weight: 700; color: #d4380d; }
.team-price-old { font-size: 13px; color: var(--text-3); text-decoration: line-through; }
.team-need { font-style: normal; font-size: 12px; color: #fff; background: #fa8c16; padding: 3px 10px; border-radius: 999px; }
.team-status { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; font-size: 13px; color: var(--text-2); }
.team-pill { padding: 3px 10px; font-size: 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.team-pill.ok { background: #f6ffed; color: #389e0d; }
.team-pill.fail { background: var(--bg-2); color: var(--text-3); }
.team-progress { margin: 10px 0 16px; }
.team-bar { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.team-bar i { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #fa8c16, #d4380d); transition: width .3s; }
.team-count { margin-top: 8px; font-size: 13px; color: var(--text-2); }
.team-count b { color: #d4380d; }
.team-members { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; }
.team-member { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.team-member.ghost { opacity: .6; border-style: dashed; }
.team-avatar { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: var(--brand-soft);
  color: var(--brand); font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-nick { font-size: 13px; color: var(--text); max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-leader { font-style: normal; font-size: 11px; color: #fa8c16; }
.team-act { display: flex; flex-wrap: wrap; gap: 10px; }
.team-note { margin: 16px 0 0; font-size: 12px; color: var(--text-3); line-height: 1.9; }

/* ---------------------------------------------------------------- 知识付费：列表 */
.course-cats { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.course-cat {
  padding: 8px 16px; font-size: 14px; color: var(--text-2); border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg);
}
.course-cat em { font-style: normal; font-size: 12px; color: var(--text-3); margin-left: 4px; }
.course-cat:hover { color: var(--brand); border-color: var(--brand); }
.course-cat.on { color: #fff; background: var(--brand); border-color: var(--brand); }
.course-cat.on em { color: rgba(255, 255, 255, .8); }
.course-vip-tip { font-size: 12px; color: var(--text-3); margin-left: auto; }
.course-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.course-search { display: flex; gap: 8px; }
.course-input {
  width: 220px; height: 40px; padding: 0 14px; font-size: 14px; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
}
.course-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.course-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.course-tab { padding: 7px 14px; font-size: 13px; color: var(--text-2); border-radius: 999px; border: 1px solid var(--line); }
.course-tab:hover { color: var(--brand); border-color: var(--brand); }
.course-tab.on { color: #fff; background: var(--brand); border-color: var(--brand); }
.course-free.on { background: #389e0d; border-color: #389e0d; }
.course-total { margin-left: auto; font-size: 13px; color: var(--text-3); }
.course-total b { color: var(--brand); }

.course-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.course-card {
  display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: box-shadow .18s, transform .18s;
}
.course-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.course-cover { position: relative; aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; }
.course-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.course-card:hover .course-cover img { transform: scale(1.04); }
.course-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--text-3); font-size: 13px; }
.course-tag { position: absolute; left: 10px; top: 10px; padding: 3px 9px; font-size: 12px;
  color: #fff; background: rgba(0, 0, 0, .55); border-radius: 999px; }
.course-tag.free { background: #389e0d; }
.course-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.course-body h3 { margin: 0; font-size: 15px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-body p { margin: 0; font-size: 12px; color: var(--text-3);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.course-meta { display: flex; gap: 10px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.course-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.course-price b { font-size: 18px; color: #d4380d; }
.course-price b.free { color: #389e0d; }
.course-price em { font-style: normal; font-size: 12px; color: var(--text-3); }

/* ---------------------------------------------------------------- 知识付费：详情 */
.crumb-bar { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px 0; }
.cd-section { padding-top: 26px; }
.cd-top { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 28px; margin-bottom: 32px; }
.cd-cover { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow); }
.cd-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-info h1 { margin: 0 0 10px; font-size: 24px; line-height: 1.4; }
.cd-sub { margin: 0 0 12px; font-size: 14px; color: var(--text-2); }
.cd-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--text-3); margin-bottom: 16px; }
.cd-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cd-price b { font-size: 30px; color: #d4380d; }
.cd-price b.free { color: #389e0d; }
.cd-vip { font-style: normal; font-size: 12px; color: #fff; background: #722ed1; padding: 3px 10px; border-radius: 999px; }
.cd-try { font-size: 12px; color: #389e0d; }
.cd-act { display: flex; flex-wrap: wrap; gap: 10px; }
.cd-hint { margin: 12px 0 0; font-size: 13px; color: var(--text-3); }
.cd-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.cd-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.cd-tabs a { padding: 10px 18px; font-size: 15px; color: var(--text-2); border-bottom: 2px solid transparent; }
.cd-tabs a.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.cd-pane { display: none; }
.cd-pane.on { display: block; }
.cd-lessons { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cd-lesson { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: 14px;
  border-bottom: 1px solid var(--line); background: var(--bg); }
.cd-lesson:last-child { border-bottom: 0; }
a.cd-lesson:hover { background: var(--brand-soft); color: var(--brand); }
.cd-lesson.locked { color: var(--text-3); background: var(--bg-2); }
.cd-no { width: 26px; flex: none; font-size: 12px; color: var(--text-3); }
.cd-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-lock { font-size: 12px; color: var(--text-3); }
.cd-play { font-size: 12px; color: var(--brand); }
.cd-try-tag { font-size: 12px; color: #389e0d; }
.cd-note { font-size: 13px; color: var(--text-2); }
.cd-note p { margin: 0 0 8px; line-height: 1.7; }
.cd-related a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.cd-related a:last-child { border-bottom: 0; }
.cd-rel-name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-related em { font-style: normal; color: #d4380d; flex: none; }

/* ---------------------------------------------------------------- 知识付费：学习页 */
.cl-section { padding-top: 22px; }
.cl-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.cl-player { background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.cl-player video, .cl-player iframe { width: 100%; height: 100%; display: block; border: 0; }
.cl-none { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  color: #bbb; font-size: 14px; }
.cl-head { padding: 16px 0 10px; }
.cl-head h1 { margin: 0 0 6px; font-size: 20px; }
.cl-sub { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-3); }
.cl-lock-tip { color: #fa8c16; }
.cl-nav { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.cl-nav .disabled { opacity: .45; cursor: not-allowed; }
.cl-about { padding-top: 20px; }
.cl-about h3 { font-size: 16px; margin: 0 0 12px; }
.cl-side { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); box-shadow: var(--shadow); }
.cl-side-h { padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.cl-side-h b { display: block; font-size: 15px; margin-bottom: 4px; }
.cl-side-h span { font-size: 12px; color: var(--text-3); }
.cl-list { max-height: 460px; overflow-y: auto; }
.cl-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 13px;
  border-bottom: 1px solid var(--line); }
.cl-item:last-child { border-bottom: 0; }
a.cl-item:hover { background: var(--brand-soft); }
.cl-item.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.cl-item.locked { color: var(--text-3); }
.cl-no { width: 22px; flex: none; font-size: 12px; color: var(--text-3); }
.cl-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-free { font-size: 11px; color: #389e0d; }
.cl-play { font-size: 11px; color: var(--brand); }
.cl-lock { font-size: 11px; color: var(--text-3); }
.cl-empty { padding: 20px 16px; font-size: 13px; color: var(--text-3); }
.cl-buy { padding: 14px 16px; border-top: 1px solid var(--line); background: var(--bg-2); }
.cl-buy p { margin: 0 0 10px; font-size: 12px; color: var(--text-3); }

/* ---------------------------------------------------------------- 会员中心：我的课程 / 我的拼团 */
.my-course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.my-course { display: flex; gap: 14px; padding: 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg); transition: box-shadow .18s; }
.my-course:hover { box-shadow: var(--shadow-hover); }
.my-course-cover { width: 120px; height: 84px; flex: none; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); }
.my-course-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.my-course-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.my-course-body h3 { margin: 0; font-size: 15px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.my-course-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-3); }
.my-course-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.my-course-foot .muted { font-size: 12px; }

.team-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.team-row:last-of-type { border-bottom: 0; }
.team-row-cover { width: 74px; height: 74px; flex: none; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); }
.team-row-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-row-info { flex: 1; min-width: 0; }
.team-row-name { font-size: 14px; font-weight: 600; margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-row-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-3); }
.team-row-progress { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.team-row-progress .team-bar { flex: 1; }
.team-row-progress span { font-size: 12px; color: var(--text-3); flex: none; }
.team-row-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1080px) {
  .shop-grid, .course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cd-top { grid-template-columns: 300px minmax(0, 1fr); gap: 20px; }
  .team-card { grid-template-columns: 280px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 860px) {
  .shop-wrap, .cd-body, .cl-wrap { grid-template-columns: minmax(0, 1fr); }
  .shop-side { position: static; }
  .shop-tree { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
  .shop-node { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
  .shop-node.on { border-color: var(--brand); }
  .shop-lv2 { padding-left: 12px; }
  .shop-top { grid-template-columns: minmax(0, 1fr); }
  .shop-grid, .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-top, .team-card { grid-template-columns: minmax(0, 1fr); }
  .my-course-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .shop-grid, .course-grid { grid-template-columns: minmax(0, 1fr); }
  .shop-search, .course-search { width: 100%; }
  .shop-input, .course-input { flex: 1; width: auto; min-width: 0; }
  .shop-total, .course-total { margin-left: 0; }
  .team-row { flex-wrap: wrap; }
  .team-row-act { flex-direction: row; align-items: center; width: 100%; justify-content: flex-end; }
  .cd-tabs a { padding: 9px 12px; font-size: 14px; }
}
