/* ============================================================
   创昕达官网 首页 Hero 浅色轮播改版  2026-11-04
   作用范围：仅 HomeHeroCarousel（scope: data-v-dce40c51）
             + 顶部巨幕菜单收窄（scope: data-v-80e95ee4）
   特异性：选择器统一加 .hero-shell[data-v-dce40c51] 前缀 →
           (0,4,0)，高于原样式最高 (0,3,0)，不用 !important
   注意：本文件在主 CSS 之后加载，桌面尺寸声明会压过原
         @media(max-width:768)/640 的声明，所以移动端必须重写
   ============================================================ */

/* ---------- 1. 文案与按钮：浅色底 ⇒ 深色字（全断点生效） ---------- */
.hero-shell[data-v-dce40c51] .hero-copy[data-v-dce40c51]{color:#374151}
.hero-shell[data-v-dce40c51] .hero-copy h1[data-v-dce40c51]{
  color:#1e3a8a;font-weight:800;line-height:1.14;letter-spacing:0}
.hero-shell[data-v-dce40c51] .hero-copy p[data-v-dce40c51]{color:#374151;max-width:none}

/* 三行文案（JS 把 subtitle 按换行拆成 span.hero-line-N） */
.hero-shell[data-v-dce40c51] .hero-copy p .hero-line{display:block}
.hero-shell[data-v-dce40c51] .hero-copy p .hero-line-1{color:#1b8cf5;font-weight:800}
.hero-shell[data-v-dce40c51] .hero-copy p .hero-line-2{position:relative;color:#3b3f46}
.hero-shell[data-v-dce40c51] .hero-copy p .hero-line-3{color:#6b7280}
.hero-shell[data-v-dce40c51] .hero-copy p .hero-line:empty{display:none}

/* 按钮：外层白底描边胶囊 + 内层深蓝实心胶囊白字 + 左侧细箭头（还原设计稿） */
.hero-shell[data-v-dce40c51] .hero-buy[data-v-dce40c51]{
  height:42px;min-width:0;padding:0 4px 0 14px;border:2px solid #0034a6;border-radius:21px;
  background:#fff;color:#0034a6;display:inline-flex;align-items:center;gap:10px;
  font-weight:700;flex-direction:row;box-shadow:0 8px 20px rgba(0,52,166,.12)}
.hero-shell[data-v-dce40c51] .hero-buy[data-v-dce40c51]:hover{
  background:#fff;border-color:#002c8c}
.hero-shell[data-v-dce40c51] .hero-buy[data-v-dce40c51]::before{
  content:"\2192";color:#0034a6;font-size:19px;line-height:1;font-weight:700}
.hero-shell[data-v-dce40c51] .hero-buy[data-v-dce40c51] > *:not(.hero-buy-label){
  display:none}          /* 隐藏原来的双箭头 icon */
.hero-shell[data-v-dce40c51] .hero-buy .hero-buy-label{
  height:34px;padding:0 18px;border-radius:17px;background:#0034a6;color:#fff;
  font-size:15px;font-weight:700;display:inline-flex;align-items:center;line-height:1}
.hero-shell[data-v-dce40c51] .hero-buy[data-v-dce40c51]:hover .hero-buy-label{background:#002c8c}

/* ---------- 2. 轮播圆点 / 箭头：浅色底可读（单张时不渲染，待命） ---------- */
.hero-shell[data-v-dce40c51] .hero-dots .dot[data-v-dce40c51],
.hero-shell[data-v-dce40c51] .hero-dots button[data-v-dce40c51]{
  background:rgba(30,58,138,.22);border:0;width:10px;height:10px;border-radius:50%}
.hero-shell[data-v-dce40c51] .hero-dots .dot.active[data-v-dce40c51],
.hero-shell[data-v-dce40c51] .hero-dots button[aria-current][data-v-dce40c51]{
  background:#1e3a8a}
.hero-shell[data-v-dce40c51] .slide-arrow[data-v-dce40c51]{color:rgba(30,58,138,.55)}
.hero-shell[data-v-dce40c51] .slide-arrow[data-v-dce40c51]:hover{
  color:#1e3a8a;background:rgba(30,58,138,.08)}

/* ---------- 3. 顶部「产品」巨幕菜单收窄到与页面内容同宽 1400 → 1200 ---------- */
.site-header[data-v-80e95ee4] .mega-menu-panel[data-v-80e95ee4]{max-width:1200px}

/* ---------- 4. 桌面 ≥769px：首屏铺满整行，分类栏浮在图上 ---------- */
@media (min-width:769px){
  .hero-shell[data-v-dce40c51] .hero-main[data-v-dce40c51]{
    display:block;min-height:520px;--hx-side:290px}
  .hero-shell[data-v-dce40c51] .category-panel[data-v-dce40c51]{
    position:absolute;left:0;top:0;bottom:0;width:var(--hx-side);z-index:5;
    background-color:rgba(15,23,42,.42);
    background-image:linear-gradient(180deg,rgba(15,23,42,.26) 0%,rgba(15,23,42,.10) 46%,rgba(15,23,42,0) 100%);
    -webkit-backdrop-filter:blur(10px) saturate(120%);
    backdrop-filter:blur(10px) saturate(120%);
    border-right:1px solid rgba(255,255,255,.22);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 10px 26px rgba(15,23,42,.10)}
  .hero-shell[data-v-dce40c51] .category-item[data-v-dce40c51]{
    text-shadow:0 1px 2px rgba(0,0,0,.35)}
  .hero-shell[data-v-dce40c51] .category-item[data-v-dce40c51]:hover,
  .hero-shell[data-v-dce40c51] .category-row.active .category-item[data-v-dce40c51]{
    background-color:rgba(30,58,138,.55);color:#fff}
  .hero-shell[data-v-dce40c51] .hero-image[data-v-dce40c51]{
    min-height:520px;background-size:cover;background-position:100% 50%}

  /* 文案让开 290 分类栏 */
  .hero-shell[data-v-dce40c51] .hero-copy[data-v-dce40c51]{
    left:calc(var(--hx-side) + 30px);right:auto;top:50%;width:380px;max-width:none;
    transform:translateY(-50%)}
  .hero-shell[data-v-dce40c51] .hero-copy h1[data-v-dce40c51]{
    font-size:44px;margin:0 0 10px}
  .hero-shell[data-v-dce40c51] .hero-copy p[data-v-dce40c51]{margin:0 0 26px}
  .hero-shell[data-v-dce40c51] .hero-copy p .hero-line-1{font-size:40px;line-height:1.18}
  .hero-shell[data-v-dce40c51] .hero-copy p .hero-line-2{
    font-size:16px;line-height:1.55;margin-top:12px;padding-top:20px}
  .hero-shell[data-v-dce40c51] .hero-copy p .hero-line-2::before{
    content:"";position:absolute;left:0;top:0;width:44px;height:3px;border-radius:2px;background:#1e3a8a}
  .hero-shell[data-v-dce40c51] .hero-copy p .hero-line-3{font-size:14px;line-height:1.6;margin-top:10px}
  .hero-shell[data-v-dce40c51] .slide-arrow.prev[data-v-dce40c51]{left:calc(var(--hx-side) + 24px)}
}

/* ---------- 5. 769–1200px：分类栏 250，文案跟到 282 ---------- */
@media (min-width:769px) and (max-width:1200px){
  .hero-shell[data-v-dce40c51] .hero-main[data-v-dce40c51]{--hx-side:250px}
  .hero-shell[data-v-dce40c51] .hero-copy[data-v-dce40c51]{
    left:calc(var(--hx-side) + 26px);width:340px}
  .hero-shell[data-v-dce40c51] .hero-copy h1[data-v-dce40c51]{font-size:38px}
  .hero-shell[data-v-dce40c51] .hero-copy p .hero-line-1{font-size:34px}
  .hero-shell[data-v-dce40c51] .hero-copy p .hero-line-2{font-size:15px}
  .hero-shell[data-v-dce40c51] .hero-copy p .hero-line-3{font-size:13px}
}

/* ---------- 6. 移动端 ≤768：布局沿用原样式，只重设字号与图位置 ---------- */
@media (max-width:768px){
  .hero-shell[data-v-dce40c51] .hero-image[data-v-dce40c51]{
    background-position:72% 50%}
  .hero-shell[data-v-dce40c51] .hero-copy h1[data-v-dce40c51]{font-size:28px;margin-bottom:6px}
  .hero-shell[data-v-dce40c51] .hero-copy p[data-v-dce40c51]{margin-bottom:16px}
  .hero-shell[data-v-dce40c51] .hero-copy p .hero-line-1{font-size:21px;line-height:1.3}
  .hero-shell[data-v-dce40c51] .hero-copy p .hero-line-2{
    font-size:13px;line-height:1.5;margin-top:8px;padding-top:14px}
  .hero-shell[data-v-dce40c51] .hero-copy p .hero-line-2::before{width:30px;height:2px}
  .hero-shell[data-v-dce40c51] .hero-copy p .hero-line-3{font-size:12px;line-height:1.5;margin-top:6px}
  .hero-shell[data-v-dce40c51] .hero-buy[data-v-dce40c51]{
    height:38px;min-width:0;padding:0 3px 0 12px;border-radius:19px;gap:8px}
  .hero-shell[data-v-dce40c51] .hero-buy[data-v-dce40c51]::before{font-size:15px}
  .hero-shell[data-v-dce40c51] .hero-buy .hero-buy-label{
    height:30px;padding:0 14px;border-radius:15px;font-size:13px}
}

/* ---------- 9. 巨幕菜单产品区：4 列改 3 列，名字不再截断 ---------- */
@media (min-width:769px){
  .site-header[data-v-80e95ee4] .mega-right[data-v-80e95ee4]{padding:30px 28px}
  .site-header[data-v-80e95ee4] .mega-products-grid[data-v-80e95ee4]{
    grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 24px}
  .site-header[data-v-80e95ee4] .mega-product-item[data-v-80e95ee4]{padding:14px 12px}
  .site-header[data-v-80e95ee4] .product-icon[data-v-80e95ee4]{width:44px;height:44px}
  .site-header[data-v-80e95ee4] .product-name[data-v-80e95ee4]{
    font-size:14px;line-height:1.35;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
}

/* ---------- 10. 巨幕菜单：三列 210/210/剩余 + 一级列照参考站样式 ---------- */
@media (min-width:769px){
  .site-header[data-v-80e95ee4] .mega-menu-panel[data-v-80e95ee4]{
    grid-template-columns:210px 210px minmax(0,1fr)}

  /* 一级列：浅灰底 + 深色字 */
  .site-header[data-v-80e95ee4] .mega-left[data-v-80e95ee4]{
    background-color:#ececec;border-right:1px solid #e0e0e0}
  .site-header[data-v-80e95ee4] .mega-left .category-name[data-v-80e95ee4]{
    color:#333;font-weight:400}
  .site-header[data-v-80e95ee4] .mega-left .menu-arrow[data-v-80e95ee4]{color:#9a9a9a}
  .site-header[data-v-80e95ee4] .mega-category[data-v-80e95ee4]{padding:0 18px 0 22px}
  .site-header[data-v-80e95ee4] .mega-category[data-v-80e95ee4]:hover{background-color:#e2e2e2}
  /* 激活项：白底 + 3px 红左条 + 深色加粗（复用原规则的 border-left:3px transparent） */
  .site-header[data-v-80e95ee4] .mega-category.active[data-v-80e95ee4]{
    background-color:#fff;border-left-color:var(--primary-color)}
  .site-header[data-v-80e95ee4] .mega-category.active .category-name[data-v-80e95ee4]{
    color:#c41e3a;font-weight:700}
  .site-header[data-v-80e95ee4] .mega-category.active .menu-arrow[data-v-80e95ee4],
  .site-header[data-v-80e95ee4] .mega-category:hover .menu-arrow[data-v-80e95ee4]{color:#c41e3a}

  /* 二级列保持白底 + 红底白字，只是变窄，内边距收一点 */
  .site-header[data-v-80e95ee4] .mega-subcategory[data-v-80e95ee4]{padding:0 16px 0 20px}
}

/* 窄屏（769–1024）产品区宽度不够，3 列会再截断，降成 2 列 */
@media (min-width:769px) and (max-width:1024px){
  .site-header[data-v-80e95ee4] .mega-products-grid[data-v-80e95ee4]{
    grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ---------- 11. 产品分类页：默认隐藏底部「全部产品」整块；叶子分类页保留「加载更多」 ----------
   注意：旧规则把 .load-more-bar 无条件隐藏，导致叶子分类页永远只能看前 48 款。
   改成只在「有 products-header（父分类页）」时隐藏，筛选生效时再把整块放出来。 */
.product-list-page[data-v-598ade19] .products-header[data-v-598ade19]{display:none}
.product-list-page[data-v-598ade19] .products-header[data-v-598ade19] + .product-grid[data-v-598ade19]{display:none}
.product-list-page[data-v-598ade19] .products-header[data-v-598ade19] ~ .load-more-bar[data-v-598ade19]{display:none}

/* 侧栏筛选生效时：显示「全部产品」网格与加载更多（父分类也能看到筛选结果） */
.product-list-page[data-v-598ade19].cxd-filtering .products-header[data-v-598ade19]{display:block}
.product-list-page[data-v-598ade19].cxd-filtering .products-header[data-v-598ade19] + .product-grid[data-v-598ade19]{display:grid}
.product-list-page[data-v-598ade19].cxd-filtering .products-header[data-v-598ade19] ~ .load-more-bar[data-v-598ade19],
.product-list-page[data-v-598ade19].cxd-filtering .load-more-bar[data-v-598ade19]{display:block}

/* ---------- 12. 面包屑：首个节点（首页）前面加小房子图标 ---------- */
.breadcrumb-inner[data-v-83fb613a] .breadcrumb-link[data-v-83fb613a]:first-child::before{
  content:"";display:inline-block;width:14px;height:14px;margin-right:6px;vertical-align:-2px;
  background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa0a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3C/svg%3E") center/contain no-repeat}

/* ---------- 13. 产品卡片精简：只留封面图 + 标题 + 更多详情 ---------- */
.product-card[data-v-598ade19] .card-summary[data-v-598ade19]{display:none}

/* ---------- 14. 侧栏「筛选」面板（cxd-filter-20261104.js 注入） ---------- */
.cxd-side-head{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;background:#f1f2f4;border-bottom:1px solid #e6e8eb;font-size:15px;font-weight:600;color:#1f2329;cursor:pointer;user-select:none}
.cxd-side-head:hover{background:#eceef1}
.cxd-side-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cxd-caret{flex:0 0 auto;font-size:11px;color:#9aa0a6;transition:transform .2s}
.cxd-side-head.is-collapsed .cxd-caret{transform:rotate(-90deg)}

.cxd-filters{border-top:8px solid #f5f6f8}
.cxd-group{border-bottom:1px solid #f0f1f3}
.cxd-group-head{display:flex;align-items:center;justify-content:space-between;padding:13px 20px;background:#f1f2f4;font-size:14px;font-weight:600;color:#1f2329;cursor:pointer;user-select:none}
.cxd-group-head:hover{background:#eceef1}
.cxd-group.is-folded .cxd-caret,.cxd-sub.is-folded .cxd-caret{transform:rotate(-90deg)}
.cxd-group.is-folded .cxd-group-body{display:none}
.cxd-sub.is-folded .cxd-opts,.cxd-sub.is-folded .cxd-more{display:none}
.cxd-group-body{padding:4px 0 12px}

.cxd-sub-head{display:flex;align-items:center;justify-content:space-between;padding:12px 20px 8px;font-size:13px;color:#4b5563;cursor:pointer;user-select:none}
.cxd-sub-head:hover{color:#c41e3a}
.cxd-opts{display:flex;flex-direction:column;max-height:320px;overflow-y:auto}
.cxd-opt{display:flex;align-items:center;gap:8px;padding:6px 20px;font-size:13px;line-height:1.4;color:#374151;cursor:pointer}
.cxd-opt:hover{color:#c41e3a}
.cxd-opt input{position:absolute;width:0;height:0;opacity:0;pointer-events:none}
.cxd-box{position:relative;flex:0 0 auto;width:14px;height:14px;border:1px solid #c3c7cd;background:#fff;transition:all .15s}
.cxd-opt input:checked + .cxd-box{background:#c41e3a;border-color:#c41e3a}
.cxd-opt input:checked + .cxd-box::after{content:"";position:absolute;left:4px;top:0;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(42deg)}
.cxd-opt input:checked ~ .cxd-text{color:#c41e3a}
.cxd-opt input:focus-visible + .cxd-box{outline:2px solid rgba(196,30,58,.35);outline-offset:1px}
.cxd-text{word-break:break-word;min-width:0}

.cxd-more{display:block;width:calc(100% - 40px);margin:6px 20px 2px;padding:5px 0;border:1px solid #c41e3a;background:#fff;color:#c41e3a;font-size:12px;line-height:1.4;cursor:pointer;transition:all .15s}
.cxd-more:hover{background:#c41e3a;color:#fff}
.cxd-clear{display:block;width:calc(100% - 40px);margin:12px 20px 4px;padding:6px 0;border:1px solid #dcdfe4;background:#fff;color:#4b5563;font-size:12px;cursor:pointer;transition:all .15s}
.cxd-clear:hover{border-color:#c41e3a;color:#c41e3a}

/* 筛选无结果 */
.cxd-empty{margin:0 0 20px;padding:26px 20px;background-color:#fff;box-shadow:var(--shadow-sm);text-align:center}
.cxd-empty p{margin:0 0 12px;font-size:14px;color:#6b7280}
.cxd-empty .cxd-clear{display:inline-block;width:auto;min-width:120px;margin:0 auto;padding:6px 18px}

@media(max-width:768px){
  .cxd-opts{max-height:none;overflow:visible}
}

/* ---------- 15. 产品详情页：对齐参考站（朗烁光学） ---------- */

/* 15.1 主图 + 缩略图（参考站 .bigphoto / .small-box / .sphoto） */
.product-detail-page[data-v-42a80962] .hero-content{justify-content:space-between;gap:40px}
.product-detail-page[data-v-42a80962] .product-gallery{flex:0 0 41%;max-width:none}
.product-detail-page[data-v-42a80962] .main-image{aspect-ratio:auto;height:400px;border-radius:7px;background-color:#f8f8f8;margin-bottom:13px;overflow:hidden}
.product-detail-page[data-v-42a80962] .thumbnail-list{position:relative;height:78px;padding:0 36px;align-items:center;gap:12px}
.product-detail-page[data-v-42a80962] .thumbnail{width:24%;height:78px;background-color:#f8f8f8;border:1px solid #f8f8f8;border-radius:4px;padding:0}
.product-detail-page[data-v-42a80962] .thumbnail.active{border-color:var(--primary-color)}

/* 缩略图左右切换箭头（cxd-detail-20261104.js 注入） */
.cxd-gallery-arrow{position:absolute;top:0;width:32px;height:78px;display:flex;align-items:center;justify-content:center;
  margin:0;padding:0;border:0;background:none;color:#666;font-size:24px;line-height:1;cursor:pointer;transition:color .15s}
.cxd-gallery-arrow:hover{color:var(--primary-color)}
.cxd-gallery-arrow.is-left{left:0}
.cxd-gallery-arrow.is-right{right:0}

/* 15.2 右侧信息区：标题 → 分类 → 产品说明 → 咨询入口 → 二维码卡 */
.product-detail-page[data-v-42a80962] .product-actions{flex:1;display:flex;flex-direction:column}
.product-detail-page[data-v-42a80962] .product-title{order:1;font-size:24px;line-height:1.45;margin-bottom:10px}
.product-detail-page[data-v-42a80962] .product-category{order:2;margin-bottom:18px;font-size:14px;color:#999}
.product-detail-page[data-v-42a80962] .product-description{order:3;margin-top:0;padding-top:0;border-top:0}
.product-detail-page[data-v-42a80962] .description-title{font-size:20px;line-height:35px;font-weight:700;color:#666;padding-left:0;border-left:0;margin-bottom:14px}
.product-detail-page[data-v-42a80962] .description-content{font-size:15px;line-height:1.9;color:#666}
.product-detail-page[data-v-42a80962] .action-buttons{order:4;margin-top:18px;display:flex;align-items:center;gap:0;flex-wrap:wrap}
.product-detail-page[data-v-42a80962] .wechat-qrcode-card{order:5}

/* 15.3 咨询入口：参考站 .consult（图标+文字、竖线分隔、#999、悬停变红） */
.product-detail-page[data-v-42a80962] .action-btn{display:flex;align-items:center;gap:6px;padding:0 18px;line-height:40px;
  border:0;background:none;color:#999;font-size:15px}
.product-detail-page[data-v-42a80962] .action-btn:first-child{padding-left:0}
.product-detail-page[data-v-42a80962] .action-btn:hover,
.product-detail-page[data-v-42a80962] .action-btn.wechat:hover,
.product-detail-page[data-v-42a80962] .action-btn.online:hover,
.product-detail-page[data-v-42a80962] .action-btn.share:hover{border:0;background:none;color:var(--primary-color)}
.product-detail-page[data-v-42a80962] .action-btn + .action-btn{position:relative}
.product-detail-page[data-v-42a80962] .action-btn + .action-btn::before{content:"";position:absolute;left:0;top:50%;
  width:1px;height:14px;margin-top:-7px;background:#ddd}

/* 15.4 参数表：参考站 .cate-params 灰块成对交替（#e6e6e6 / #f0f0f0） */
.product-detail-page[data-v-42a80962] .specs-table{gap:0 24px}
.product-detail-page[data-v-42a80962] .spec-row{height:44px;line-height:44px;padding:0;border-bottom:0;align-items:center}
.product-detail-page[data-v-42a80962] .spec-label{width:33%;padding-left:12px;font-size:15px;color:#333;flex-shrink:0}
.product-detail-page[data-v-42a80962] .spec-value{flex:1;min-width:0;padding-left:12px;font-size:15px;color:#333}
.product-detail-page[data-v-42a80962] .spec-row:nth-child(4n+1),
.product-detail-page[data-v-42a80962] .spec-row:nth-child(4n+2){background-color:#e6e6e6}
.product-detail-page[data-v-42a80962] .spec-row:nth-child(4n+3),
.product-detail-page[data-v-42a80962] .spec-row:nth-child(4n+4){background-color:#f0f0f0}
/* 注意：不要再用 .spec-row.even 覆盖，它和上面同权重会打乱成对斑马纹 */

/* 15.5 标签栏：参考站 .head-nav（圆角块、选中红底白字） */
.product-detail-page[data-v-42a80962] .tabs-nav{border-bottom:0;gap:6px;margin-bottom:20px;flex-wrap:wrap}
.product-detail-page[data-v-42a80962] .tab-btn{padding:10px 26px;font-size:16px;border-radius:8px;color:#666}
.product-detail-page[data-v-42a80962] .tab-btn.active{color:#fff;background-color:var(--primary-color)}

/* 15.6 光谱曲线：图片原来没有任何尺寸规则，1200×888 撑破 300px 容器、盖住标签栏 */
.product-detail-page[data-v-42a80962] .spectrum-placeholder{height:auto;min-height:300px}
.product-detail-page[data-v-42a80962] .spectrum-image{display:block;width:100%;height:auto;max-width:100%}

/* 15.7 窄屏：单列，主图高度自适应 */
@media (max-width:768px){
  .product-detail-page[data-v-42a80962] .hero-content{flex-direction:column;gap:20px}
  .product-detail-page[data-v-42a80962] .product-gallery{flex:1 1 auto;width:100%;max-width:none}
  .product-detail-page[data-v-42a80962] .main-image{height:auto;aspect-ratio:1;border-radius:6px}
  .product-detail-page[data-v-42a80962] .product-title{font-size:20px}
  .product-detail-page[data-v-42a80962] .spec-row{height:auto;line-height:1.6;padding:10px 0}
  .product-detail-page[data-v-42a80962] .spec-label{width:40%}
}
