/* ============================================================
   外贸网站前台样式 —— 2026 版（v0.4.3）
   设计语言「未来贸易」：深空蓝 × 电光青 × 琥珀点缀，
   玻璃拟态导航、渐变文字、柔和阴影、克制动效；零框架依赖。
   兼容性约定：v0.4.2 及之前的全部类名保留并增强，勿删。
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  /* 2026 主色板 */
  --navy: #0a2540;        /* 深空蓝：页头/页脚/数据条基底 */
  --navy-2: #10345c;
  --blue: #0e5fb8;        /* 品牌蓝：链接/主按钮 */
  --blue-dark: #0a4a94;
  --cyan: #22d3ee;        /* 电光青：强调/渐变端点 */
  --cyan-soft: rgba(34, 211, 238, .14);
  --amber: #f59e0b;       /* 琥珀：点缀/徽标 */
  --ink: #14212e;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f4f7fb;
  --card: #ffffff;
  --grad-brand: linear-gradient(135deg, #0a2540 0%, #0e5fb8 55%, #22d3ee 130%);
  --grad-cta: linear-gradient(135deg, #0e5fb8, #1fa2d8);
  --shadow-sm: 0 1px 3px rgba(10, 37, 64, .08);
  --shadow-md: 0 8px 28px rgba(10, 37, 64, .12);
  --shadow-lg: 0 18px 48px rgba(10, 37, 64, .18);
  --radius: 12px;
}
html { scroll-behavior: smooth; }
body { font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
       color: var(--ink); background: var(--card); line-height: 1.65;
       -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: 13px; }

/* ---------- header（2026：玻璃拟态 + 顶部能量条） ---------- */
.site-header { position: sticky; top: 0; z-index: 10;
               background: rgba(255, 255, 255, .82);
               backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
               border-bottom: 1px solid rgba(226, 232, 240, .9);
               box-shadow: var(--shadow-sm); }
.site-header::before { content: ""; display: block; height: 3px;
                       background: linear-gradient(90deg, var(--navy), var(--blue) 45%, var(--cyan)); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800;
        font-size: 18px; letter-spacing: .01em;
        background: linear-gradient(120deg, var(--navy), var(--blue) 70%, var(--cyan));
        -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-mark { color: var(--cyan); -webkit-text-fill-color: var(--cyan); }
/* v0.5：上传的 LOGO 图片——去掉父级渐变文字裁剪，按高度等比缩放，最高 44px */
.logo.has-img { background: none; -webkit-background-clip: border-box;
                background-clip: border-box; color: inherit; }
.logo-img { display: block; height: 44px; width: auto; max-width: 240px;
            object-fit: contain; }
/* LOGO 加载失败时回退为「◆ + 公司名」，不留空白 */
.logo.has-img .logo-mark, .logo.has-img .logo-text { display: none; }
.logo.has-img.has-broken-img .logo-mark,
.logo.has-img.has-broken-img .logo-text { display: inline; }
.main-nav { display: flex; gap: 24px; flex: 1; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--ink); padding: 6px 2px;
              border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.main-nav a.active, .main-nav a:hover { color: var(--blue); border-color: var(--cyan); }
.lang-switch { font-size: 13px; color: var(--muted); border: 1px solid var(--line);
               padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.7);
               transition: all .15s; }
.lang-switch:hover { color: var(--blue); border-color: var(--cyan);
                     box-shadow: 0 0 0 3px var(--cyan-soft); }

/* ---------- hero / 轮播（2026：深空渐变 + 光晕） ---------- */
.hero, .carousel { background: var(--grad-brand); color: #fff; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; right: -140px; top: -140px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.35) 0%, rgba(34,211,238,0) 68%);
  pointer-events: none; }
.hero::before { content: ""; position: absolute; left: -120px; bottom: -160px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,95,184,.45) 0%, rgba(14,95,184,0) 70%);
  pointer-events: none; }
.hero { padding: 84px 0; }
.hero h1 { font-size: 40px; margin-bottom: 12px; font-weight: 800; letter-spacing: .01em; }
.hero p { opacity: .88; margin-bottom: 26px; font-size: 17px; max-width: 760px; }
.btn { display: inline-block; border: none; cursor: pointer; font-size: 14px;
       padding: 10px 20px; border-radius: 8px; font-weight: 600;
       transition: transform .15s, box-shadow .15s, opacity .15s; }
.btn:hover { opacity: .92; transform: translateY(-1px); }
.btn-primary { background: var(--grad-cta); color: #fff;
               box-shadow: 0 6px 18px rgba(14, 95, 184, .35); }
.hero .btn-primary { background: #fff; color: var(--blue); }
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: 10px; }

/* sections（2026：渐变短划标题） */
.section { padding: 40px 0 12px; }
.section-title { font-size: 24px; font-weight: 800; margin-bottom: 20px;
                 display: flex; align-items: center; gap: 12px; }
.section-title::before { content: ""; width: 34px; height: 5px; border-radius: 3px;
                         background: linear-gradient(90deg, var(--blue), var(--cyan)); flex: none; }
.page-title { font-size: 28px; font-weight: 800; margin: 32px 0 18px; }
.page-head { display: flex; align-items: center; justify-content: space-between;
             flex-wrap: wrap; gap: 14px; margin: 30px 0 18px; }
.page-head h1 { font-size: 26px; font-weight: 800; }
.search-form { display: flex; gap: 8px; }
.search-form input { width: 260px; padding: 10px 13px; border: 1px solid var(--line);
                     border-radius: 8px; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.search-form input:focus { outline: none; border-color: var(--cyan);
                           box-shadow: 0 0 0 3px var(--cyan-soft); }

/* ---------- 2026 数据条（首页：数字贸易信任背书） ---------- */
.stats-band { background: var(--grad-brand); color: #fff; margin-top: 34px;
              border-radius: 16px; overflow: hidden; position: relative; }
.stats-band::after { content: ""; position: absolute; right: -80px; top: -90px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.3) 0%, rgba(34,211,238,0) 70%); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
              padding: 30px 26px; position: relative; z-index: 1; }
.stat-cell { text-align: center; padding: 6px 8px; }
.stat-num { font-size: 30px; font-weight: 800; letter-spacing: .01em;
            background: linear-gradient(120deg, #fff, var(--cyan));
            -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 13px; opacity: .82; margin-top: 4px; }

/* ---------- 2026 能力区块（未来贸易服务特色） ---------- */
.feat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
             padding: 6px 0 22px; }
.feat-card { border: 1px solid var(--line); border-radius: var(--radius);
             background: var(--card); padding: 22px 20px; box-shadow: var(--shadow-sm);
             transition: transform .18s, box-shadow .18s, border-color .18s; position: relative;
             overflow: hidden; }
.feat-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
                     background: linear-gradient(90deg, var(--blue), var(--cyan));
                     transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md);
                   border-color: transparent; }
.feat-card:hover::before { transform: scaleX(1); }
.feat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex;
             align-items: center; justify-content: center; font-size: 21px;
             background: var(--cyan-soft); color: var(--blue-dark); margin-bottom: 12px; }
.feat-title { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.feat-desc { font-size: 13.5px; color: var(--muted); }

/* catalog */
.catalog { display: grid; grid-template-columns: 230px 1fr; gap: 26px; padding-bottom: 40px; }
.side { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
        align-self: start; background: var(--bg); box-shadow: var(--shadow-sm); }
.side-title { font-weight: 700; font-size: 13px; margin-bottom: 8px; color: var(--muted);
              text-transform: uppercase; letter-spacing: .06em; }
.side-link { display: block; padding: 8px 11px; border-radius: 8px; font-size: 14px;
             color: var(--ink); transition: background .12s, color .12s; }
.side-link:hover, .side-link.active { background: var(--cyan-soft); color: var(--blue); font-weight: 600; }

/* product grid & cards（2026：无边框浮起卡片） */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.card { border-radius: var(--radius); overflow: hidden; background: var(--card);
        box-shadow: var(--shadow-sm); border: 1px solid transparent;
        transition: box-shadow .18s, transform .18s; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-img { aspect-ratio: 4/3; background: var(--bg); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img-empty { display: flex; align-items: center; justify-content: center;
                  height: 100%; font-size: 34px; color: var(--line); }

/* v0.9.1 首页精选随机轮播：只加容器过渡，卡片自身样式与布局保持不变。
   换批时容器淡出→内容替换→淡入，避免内容硬跳；高度由等高卡片维持稳定。 */
.js-featured-grid { transition: opacity .24s ease; }
.js-featured-grid.is-swapping { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .js-featured-grid { transition: none; }
  .js-featured-grid.is-swapping { opacity: 1; }
}
.card-body { padding: 13px 15px 15px; }
.card-name { font-weight: 600; font-size: 15px; margin-bottom: 4px;
             overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-cat { font-size: 12px; color: var(--blue); margin-top: 4px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; width: 100%; }

/* chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 22px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px;
        font-size: 14px; color: var(--ink); background: var(--card);
        transition: all .15s; }
.chip:hover { border-color: var(--cyan); color: var(--blue);
              box-shadow: 0 0 0 3px var(--cyan-soft); }

/* breadcrumb */
.breadcrumb { margin: 22px 0 14px; font-size: 13px; color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }

/* product detail */
.detail { display: grid; grid-template-columns: minmax(320px, 480px) 1fr; gap: 36px;
          margin: 12px 0 8px; }
.detail-main { position: relative; aspect-ratio: 4/3; background: var(--bg);
               border-radius: var(--radius); overflow: hidden; }
.detail-cover { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.detail-main .detail-cover { display: block; height: 100%; object-fit: contain; }
.detail-cover-empty { aspect-ratio: 4/3; display: flex; align-items: center;
                      justify-content: center; font-size: 60px; color: var(--line);
                      background: var(--bg); border-radius: var(--radius); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumb { position: relative; width: 72px; height: 54px; padding: 0; overflow: hidden;
         border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
         cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.thumb:hover { border-color: var(--blue); }
.thumb.is-active { border-color: var(--blue);
                   box-shadow: 0 0 0 2px var(--cyan-soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
/* 图片加载失败：隐藏裂图，容器显示占位符，避免空白块 */
img.is-broken { display: none; }
.card-img, .detail-main, .thumb, .news-card-img { position: relative; }
.card-img.has-broken-img::after, .detail-main.has-broken-img::after,
.thumb.has-broken-img::after, .news-card-img.has-broken-img::after {
  content: "◆"; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; color: var(--line);
  font-size: 34px; background: var(--bg); }
.thumb.has-broken-img::after { font-size: 16px; }
.detail-info h1 { font-size: 27px; font-weight: 800; margin-bottom: 16px; }
.info-table { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.info-table th { text-align: left; width: 130px; color: var(--muted); font-weight: 500;
                 padding: 8px 10px 8px 0; vertical-align: top; }
.info-table td { padding: 8px 0; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--bg);
             border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.spec-table td { padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-table tr:last-child td { border-bottom: none; }
.prose { max-width: 820px; color: var(--ink); font-size: 15px; }
.prose p { margin-bottom: 12px; }
.about-cover { width: 100%; max-width: 820px; max-height: 340px; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 18px; box-shadow: var(--shadow-md); }

/* footer（2026：深空底 + 渐变上缘） */
.site-footer { background: linear-gradient(180deg, #0a2540 0%, #081c31 100%);
               color: #c6d2dd; margin-top: 60px; position: relative; }
.site-footer::before { content: ""; display: block; height: 3px;
                       background: linear-gradient(90deg, var(--navy), var(--blue) 45%, var(--cyan)); }
.footer-grid { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 30px;
               padding: 40px 20px 24px; }
.footer-title { font-weight: 700; color: #fff; margin-bottom: 10px; font-size: 15px; }
.footer-link { display: block; font-size: 13px; color: #9fb0bf; padding: 3px 0;
               transition: color .12s, padding-left .12s; }
.footer-link:hover { color: var(--cyan); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 15px 20px;
                 color: #7d8f9f; }

/* news */
.news-list { display: flex; flex-direction: column; gap: 22px; max-width: 900px; }
.news-item { display: flex; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.news-thumb { flex: 0 0 220px; border-radius: var(--radius); overflow: hidden;
              background: var(--bg); box-shadow: var(--shadow-sm); }
.news-thumb img { width: 100%; height: 140px; object-fit: cover; }
.news-body { flex: 1; min-width: 0; }
.news-title { font-size: 19px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.news-title a:hover { color: var(--blue); }
.news-summary { margin-top: 8px; font-size: 14px; color: #3d4a57; }
.news-more { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--blue);
             font-weight: 600; }
.news-more:hover { color: var(--cyan); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.news-card { border-radius: var(--radius); padding: 16px; background: var(--card);
             box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-card-img img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px;
                     margin-bottom: 10px; }
.news-card-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; line-height: 1.45; }
.news-card-sum { margin-bottom: 8px; }
.section-title-link:hover { color: var(--blue); }
.crumbs { margin-bottom: 14px; }
.crumbs a:hover { color: var(--blue); }
.article { max-width: 820px; }
.article-cover { margin: 18px 0; border-radius: var(--radius); overflow: hidden;
                 box-shadow: var(--shadow-md); }
.article-lead { font-size: 16px; color: #3d4a57; padding: 12px 16px; background: var(--bg);
                border-left: 3px solid var(--cyan); border-radius: 0 8px 8px 0; margin-bottom: 18px; }
.related-news { list-style: none; max-width: 820px; }
.related-news li { padding: 9px 0; border-bottom: 1px solid var(--line);
                   display: flex; justify-content: space-between; gap: 16px; }
.related-news a:hover { color: var(--blue); }

/* P5 商务：阶梯价 / RFQ / 报价 / PI */
.tier-block { margin: 16px 0; padding: 12px 14px; background: var(--bg);
              border-radius: var(--radius); border: 1px solid var(--line); }
.tier-title { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.tier-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tier-table th { text-align: left; color: var(--muted); font-weight: 500;
                 padding: 4px 6px 6px 0; border-bottom: 1px solid var(--line); }
.tier-table td { padding: 5px 6px 5px 0; border-bottom: 1px solid var(--line); }
.tier-table tr:last-child td { border-bottom: none; }

.rfq-form { max-width: 760px; }
.rfq-form .form-row { margin-bottom: 16px; }
.rfq-form.two, .rfq-form .form-row.two { display: grid;
  grid-template-columns: 1fr 1fr; gap: 16px; }
.rfq-form label { display: block; font-size: 14px; color: #3d4a57; }
.rfq-form input, .rfq-form select, .rfq-form textarea {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px;
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.rfq-form input:focus, .rfq-form select:focus, .rfq-form textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
.req { color: #a32d2d; }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 16px; }
.alert { background: #fcebeb; border: 1px solid #f0c2c2; color: #a32d2d;
         padding: 9px 14px; border-radius: 8px; margin-bottom: 14px; }
.done-card { max-width: 620px; padding: 28px; background: var(--bg);
             border-radius: var(--radius); border: 1px solid var(--line); }

.doc-head { display: flex; justify-content: space-between; gap: 24px;
            align-items: flex-start; margin-bottom: 22px; flex-wrap: wrap; }
.doc-meta { text-align: right; font-size: 13px; }
.doc-table { margin-top: 8px; }
.doc-table th { font-size: 13px; padding: 9px 10px; background: var(--bg); }
.doc-total { max-width: 360px; margin: 18px 0 18px auto; text-align: right;
             border-top: 2px solid var(--cyan); padding-top: 10px; }
.doc-total .grand { font-size: 20px; font-weight: 600; color: var(--blue); margin-top: 6px; }
.tag { display: inline-block; font-size: 12px; padding: 1px 9px; border-radius: 10px;
       border: 1px solid var(--line); color: var(--muted); }
.tag.ok { color: #0f6e56; border-color: #bcd9d1; background: #e8f3f0; }
.tag.bad { color: #a32d2d; border-color: #f0c2c2; background: #fcebeb; }
.tag.grey { color: var(--muted); }

/* ---------- 公告条（2026：琥珀微光） ---------- */
.notice-bar { background: linear-gradient(90deg, #fff8e6, #fffdf6);
              border-bottom: 1px solid #f0e0b0; color: #7a5b12; font-size: 13px; }
.notice-bar-inner { display: flex; align-items: center; gap: 12px; min-height: 34px;
                    padding-top: 6px; padding-bottom: 6px; }
.notice-label { flex: none; font-weight: 700; padding: 1px 9px; border-radius: 10px;
                background: linear-gradient(120deg, #f5dfa0, #f0cf7e); }
.notice-items { display: flex; gap: 20px; overflow: hidden; white-space: nowrap; }
.notice-item { overflow: hidden; text-overflow: ellipsis; }
.notice-thumb { width: 20px; height: 20px; object-fit: cover; border-radius: 3px;
  vertical-align: -4px; margin-right: 5px; border: 1px solid #f0e0b0; }

/* ---------- 轮播（v0.8.1：原图完整展示 + 手动导航 + 渐入） ---------- */
.carousel { background: var(--grad-brand); color: #fff; overflow: hidden; position: relative; }
.carousel-slide {
  position: relative;
  display: none;
  align-items: center;
  /* 高度由图片原始比例（宽幅 banner）自动撑开，不再强制 min-height + cover 裁切 */
  background: linear-gradient(135deg, #0a2540 0%, #0e5fb8 100%);
}
.carousel-slide.active { display: flex; }
.carousel-img {
  display: block;
  width: 100%;
  height: auto;
  /* contain 保证整张图完整显示，两侧由 .carousel 的深蓝渐变承接；
     原图高度统一 300px，桌面端宽度拉伸但不变形 */
  object-fit: contain;
  background: transparent;
}
/* 当图片自身不够宽时（如 958px 宽在 1440px 视口），用浅蓝底承接两侧留白，
   避免出现突兀的黑条 */
.carousel-slide::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,95,184,.18) 0%, transparent 22%, transparent 78%, rgba(10,37,64,.32) 100%);
  pointer-events: none;
  z-index: 1;
}
.carousel-caption { position: absolute; inset: 0; z-index: 2; color: #fff;
                    display: flex; flex-direction: column; justify-content: center;
                    padding: 0 20px; max-width: 1200px; margin: 0 auto; width: 100%; }
.carousel-caption h1 { font-size: 42px; margin-bottom: 12px; font-weight: 800;
                       text-shadow: 0 2px 18px rgba(10, 37, 64, .45);
                       animation: riseIn .6s ease both; }
.carousel-caption p { font-size: 18px; opacity: .94; margin-bottom: 24px; max-width: 720px;
                      animation: riseIn .6s .12s ease both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); }
                    to { opacity: 1; transform: none; } }

/* 手动导航按钮 */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(10, 37, 64, .26);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background .18s, transform .18s, box-shadow .18s, opacity .18s;
  opacity: 0;
  /* 默认淡入，hover / :focus-visible 才显现；保持 banner 干净 */
}
.carousel:hover .carousel-btn, .carousel:focus-within .carousel-btn { opacity: 1; }
.carousel-btn:hover { background: rgba(14, 95, 184, .72); box-shadow: 0 4px 14px rgba(0,0,0,.28); }
.carousel-btn:active { transform: translateY(-50%) scale(.94); }
.carousel-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; opacity: 1; }
.carousel-prev { left: 18px; }
.carousel-next { right: 18px; }

/* 圆点指示器 */
.carousel-dots {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 3;
  display: inline-flex; gap: 8px;
  padding: 6px 12px;
  background: rgba(10, 37, 64, .3);
  border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .45);
  transition: background .18s, transform .18s, width .22s;
}
.carousel-dot.active { background: #fff; width: 24px; border-radius: 6px; }
.carousel-dot:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- 响应式：平板 ---------- */
@media (max-width: 900px) {
  .rfq-form .form-row.two { grid-template-columns: 1fr; }
  .doc-head { flex-direction: column; }
  .doc-meta { text-align: left; }
  .catalog { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .main-nav { gap: 12px; } .header-inner { gap: 12px; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .news-item { flex-direction: column; gap: 12px; }
  .news-thumb { flex: none; width: 100%; }
  .news-thumb img { height: 180px; }
  .carousel-caption h1 { font-size: 34px; }
  .carousel-btn { width: 36px; height: 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-band { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 响应式：手机 ---------- */
@media (max-width: 600px) {
  .container { padding: 0 14px; }
  /* v0.8.1：纵向排列必须解除固定高度与换行，否则 column+wrap+66px 会把
     logo/导航/语言切换横向铺开，导致页面右侧溢出（390~500px 实测 +33px） */
  .header-inner { flex-direction: column; align-items: flex-start; gap: 8px;
                  flex-wrap: nowrap; height: auto; min-height: 0;
                  padding-top: 10px; padding-bottom: 10px; }
  .main-nav { gap: 8px 14px; flex-wrap: wrap; width: 100%; }
  .main-nav a { font-size: 14px; }
  .lang-switch { align-self: flex-start; }
  .hero h1 { font-size: 28px; } .hero p { font-size: 15px; }
  .catalog { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .notice-bar-inner { align-items: flex-start; flex-direction: column; gap: 4px; }
  .notice-items { flex-direction: column; gap: 2px; width: 100%; white-space: normal; }
  .carousel-caption h1 { font-size: 22px; }
  .carousel-caption p { font-size: 14px; }
  .carousel-btn { width: 32px; height: 32px; opacity: 1; top: auto; bottom: 46px; transform: none; }
  .carousel-prev { left: 12px; }
  .carousel-next { right: 12px; }
  .carousel-dots { bottom: 8px; gap: 6px; padding: 5px 10px; }
  .carousel-dot { width: 8px; height: 8px; }
  .carousel-dot.active { width: 18px; }
  .doc-table { display: block; overflow-x: auto; }
  .grid-2, .form-row.two { grid-template-columns: 1fr !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 20px 14px; }
  .stat-num { font-size: 24px; }
  .feat-band { grid-template-columns: 1fr; }
  /* 产品图库：主图改方形，缩略图横向滚动，保证多图在窄屏仍可逐张切换 */
  .detail-main { aspect-ratio: 1/1; }
  .thumbs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px;
            -webkit-overflow-scrolling: touch; }
  .thumb { flex: 0 0 auto; width: 62px; height: 46px; }
}

/* ---------- 列表分页组件（产品列表 / 新闻列表共用，v0.8 重构） ---------- */
.pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 20px; margin-top: 28px; padding: 16px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm); color: var(--muted); font-size: 14px;
}
.pagination-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px;
                   min-width: 0; }
.pagination-info .pagination-range { color: #94a3b8; }
.pagination-info .pagination-pages { color: var(--navy); font-weight: 600; }

/* 控件行：允许换行，窄屏下整体居中，杜绝按钮被裁切 */
.pagination-controls { display: flex; flex-wrap: wrap; align-items: center;
                       justify-content: center; gap: 8px; margin-left: auto; min-width: 0; }
.page-numbers {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  list-style: none; margin: 0; padding: 0;
}
.page-numbers > li { display: flex; }
.page-btn, .page-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 12px; margin: 0;
  border: 1px solid var(--line); border-radius: 9px;
  background: #fff; color: var(--ink); text-decoration: none; white-space: nowrap;
  font-size: 14px; line-height: 1; transition: color .15s, border-color .15s,
  background .15s, box-shadow .15s, transform .12s;
}
a.page-btn:hover, a.page-num:hover {
  border-color: var(--blue); color: var(--blue); background: var(--cyan-soft);
  transform: translateY(-1px); box-shadow: 0 3px 10px rgba(14, 95, 184, .12);
}
a.page-btn:active, a.page-num:active { transform: translateY(0); }
.pagination .page-btn.disabled, .pagination .page-btn[aria-disabled="true"] {
  color: #cbd5e1; background: #f8fafc; border-color: var(--line);
  box-shadow: none; cursor: not-allowed;
}
.page-num.current {
  background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700;
  box-shadow: 0 4px 12px rgba(14, 95, 184, .28);
}
.page-gap { min-width: 24px; height: 34px; display: inline-flex;
            align-items: center; justify-content: center; color: #cbd5e1; }
.pagination-jump, .pagination-size { display: flex; align-items: center; gap: 6px; }
.pagination-jump label, .pagination-size label {
  display: flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap;
}
.pagination-jump input[type="number"] {
  width: 64px; height: 34px; padding: 0 8px; text-align: center;
  border: 1px solid var(--line); border-radius: 9px; font-size: 14px; color: var(--ink);
}
.pagination-jump input[type="number"]:focus,
.pagination-size select:focus { outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--cyan-soft); }
.pagination-size select {
  height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; font-size: 14px; color: var(--ink); cursor: pointer;
}
.pagination .btn { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 9px; }

/* 平板：信息与控件分两行，控件靠左 */
@media (max-width: 900px) {
  .pagination { gap: 12px 14px; padding: 14px 16px; }
  .pagination-controls { margin-left: 0; justify-content: flex-start; }
  .page-numbers { gap: 4px; }
}
/* 手机：全部居中，按钮自适应宽度，跳页/条数各自成行 */
@media (max-width: 600px) {
  .pagination { margin-top: 22px; padding: 14px 12px; gap: 12px; font-size: 13px; }
  .pagination-info { width: 100%; justify-content: center; text-align: center; }
  .pagination-controls { width: 100%; margin-left: 0; justify-content: center; }
  .page-btn, .page-num { min-width: 32px; height: 32px; padding: 0 9px; font-size: 13px; }
  .page-gap { height: 32px; min-width: 18px; }
  .pagination-jump, .pagination-size { width: 100%; justify-content: center; }
  .pagination-jump input[type="number"] { width: 56px; height: 32px; }
  .pagination-size select { height: 32px; }
  .pagination .btn { height: 32px; }
}
/* 超窄屏：省略号隐藏，避免页码换行后断开视觉节奏 */
@media (max-width: 360px) {
  .page-gap { display: none; }
}

/* ============ 新闻富文本与信息条（v0.7.2） ============ */
.article-cat { display: inline-block; margin-bottom: 8px; padding: 2px 10px; border-radius: 999px;
  background: rgba(37, 99, 235, .08); color: #2563eb; font-size: 12.5px; letter-spacing: .02em; }
.article-sub { margin: -4px 0 12px; color: var(--muted, #64748b); font-size: 16px; line-height: 1.6; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 18px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 20px; }
.tag-chip { padding: 3px 10px; border-radius: 999px; background: var(--surface-alt, #f1f5f9);
  border: 1px solid var(--border, #e2e8f0); color: var(--text-sub, #475569); font-size: 12.5px; }
.richtext { line-height: 1.85; font-size: 15.5px; color: var(--text, #1e293b); word-break: break-word; }
.richtext > :first-child { margin-top: 0; }
.richtext p { margin: 0 0 14px; }
.richtext h1, .richtext h2, .richtext h3, .richtext h4 { margin: 28px 0 12px; line-height: 1.35; color: var(--text, #0f172a); }
.richtext h1 { font-size: 26px; }
.richtext h2 { font-size: 22px; }
.richtext h3 { font-size: 18px; }
.richtext h4 { font-size: 16px; }
.richtext ul, .richtext ol { margin: 0 0 16px; padding-left: 26px; }
.richtext li { margin: 4px 0; }
.richtext blockquote { margin: 16px 0; padding: 10px 18px; border-left: 3px solid #2563eb;
  background: var(--surface-alt, #f8fafc); color: var(--text-sub, #475569); }
.richtext pre { margin: 16px 0; padding: 14px 16px; background: #0f172a; color: #e2e8f0;
  border-radius: 8px; overflow-x: auto; font-size: 13px; line-height: 1.6; }
.richtext pre code { background: none; color: inherit; padding: 0; }
.richtext code { padding: 1px 6px; background: var(--surface-alt, #f1f5f9); border-radius: 4px;
  font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.richtext img, .richtext video { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0; display: block; }
.richtext a { color: #2563eb; text-decoration: underline; }
.richtext hr { border: 0; border-top: 1px solid var(--border, #e2e8f0); margin: 26px 0; }
.richtext table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.richtext th, .richtext td { border: 1px solid var(--border, #e2e8f0); padding: 8px 12px; text-align: left; }
.richtext th { background: var(--surface-alt, #f8fafc); font-weight: 600; }
.richtext figure { margin: 16px 0; }
.richtext figcaption { text-align: center; color: var(--muted, #64748b); font-size: 12.5px; margin-top: 6px; }
@media (max-width: 720px) {
  .richtext { font-size: 15px; }
  .richtext table { display: block; overflow-x: auto; white-space: nowrap; }
  .article-meta { gap: 4px 12px; }
}
.news-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.badge-pinned { display: inline-block; padding: 1px 8px; border-radius: 4px; background: #fef3c7;
  color: #b45309; font-size: 11.5px; font-weight: 600; }
.news-cat { font-size: 12px; color: #2563eb; background: rgba(37, 99, 235, .08);
  padding: 1px 8px; border-radius: 999px; }

/* ============================================================
   v0.7.3 产品详情全面升级：
   - 玻璃拟态包装卡片 + 渐变横条 + 光晕
   - 唛头图 hover 缩放 / 点击预览 / 圆角阴影
   - 纸箱规格 premium 表格
   - 整体视觉统一（breadcrumb、CTA、detail card）
   - 全响应式 + 浏览器兼容
   ============================================================ */

/* breadcrumb（v0.7.3：紧凑 + 分隔符） */
.breadcrumb { margin: 24px 0 10px; font-size: 13px; color: var(--muted);
              display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--blue); }
.bc-sep { color: var(--line); user-select: none; font-weight: 300; }

/* ---------- 详情主卡片（v0.7.3 视觉升级） ---------- */
.detail-card { display: grid; grid-template-columns: minmax(300px, 480px) 1fr;
               gap: 40px; margin: 16px 0 0; padding: 32px;
               background: var(--card); border-radius: 20px;
               box-shadow: var(--shadow-md); border: 1px solid rgba(226, 232, 240, .6);
               position: relative; overflow: hidden; }
.detail-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-brand); }
.detail-main { position: relative; aspect-ratio: 4/3; background: var(--bg);
               border-radius: 14px; overflow: hidden; cursor: zoom-in;
               transition: transform .25s ease, box-shadow .25s ease; }
.detail-main:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.detail-main img { width: 100%; height: 100%; object-fit: contain; }
.zoom-badge { position: absolute; right: 12px; bottom: 12px;
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(10, 37, 64, .68); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(6px) scale(.9);
  transition: opacity .2s, transform .2s; pointer-events: none; }
.detail-main:hover .zoom-badge, .mark-frame:hover .zoom-badge,
.js-preview-trigger:hover .zoom-badge { opacity: 1; transform: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px;
          margin-top: 10px; }
.thumb { border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0;
         background: var(--bg); cursor: pointer; transition: border-color .15s, transform .15s; }
.thumb:hover { transform: translateY(-1px); }
.thumb.is-active { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
.thumb img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.detail-info h1.product-title { font-size: 28px; font-weight: 800; margin-bottom: 18px;
                                letter-spacing: -.005em;
                                background: linear-gradient(135deg, var(--ink) 0%, var(--navy-2) 100%);
                                -webkit-background-clip: text; background-clip: text; color: transparent; }
.info-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-bottom: 20px; }
.info-table th { text-align: left; width: 130px; color: var(--muted); font-weight: 500;
                 padding: 9px 12px 9px 0; font-size: 13.5px; }
.info-table td { padding: 9px 0; font-size: 14px; color: var(--ink); }
.info-table tr th, .info-table tr td { border-bottom: 1px dashed rgba(226, 232, 240, .7); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.mono { font-family: "SF Mono", "JetBrains Mono", ui-monospace, Consolas, monospace;
        font-variant-numeric: tabular-nums; }
.align-right { text-align: right; }

/* 阶梯价 / 参考价（v0.7.3 卡片化） */
.tier-block { margin: 4px 0 20px; padding: 16px 18px; background: linear-gradient(180deg, var(--bg) 0%, #eef3fb 100%);
              border-radius: 14px; border: 1px solid rgba(226, 232, 240, .8);
              position: relative; }
.tier-block::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--blue)); border-radius: 2px; }
.tier-title { font-weight: 700; font-size: 14.5px; margin-bottom: 10px; color: var(--navy); }
.tier-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tier-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 10px 6px 0;
                 border-bottom: 1px dashed var(--line); }
.tier-table td { padding: 7px 0; border-bottom: 1px dashed rgba(226, 232, 240, .5); }
.tier-table tr:last-child td { border-bottom: none; }

/* CTA（v0.7.3 更有存在感的询价按钮） */
.cta-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
           padding: 14px 28px; font-size: 15px; font-weight: 700;
           background: var(--grad-cta); color: #fff; border-radius: 12px;
           box-shadow: 0 10px 28px rgba(14, 95, 184, .32), 0 2px 6px rgba(14, 95, 184, .24);
           transition: transform .2s ease, box-shadow .2s ease; cursor: pointer;
           border: none; text-decoration: none; }
.cta-btn:hover { transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(14, 95, 184, .4), 0 4px 10px rgba(14, 95, 184, .28); }
.cta-btn:active { transform: translateY(0); }
.cta-arrow { transition: transform .2s ease; }
.cta-btn:hover .cta-arrow { transform: translateX(3px); }

/* ============================================================
   v0.7.3 核心：「包装与唛头 Packing & Shipping Marks」精致卡片
   ============================================================ */
.section-packing { padding-top: 32px; }
/* v0.8.3：唛头图固定在左列（300px），全部包装参数走右列；窄屏自动上下堆叠 */
.packing-card {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 24px 36px; align-items: start;
  padding: 28px 32px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, .7);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  isolation: isolate;  /* 子元素不会溢出父层 */
}
.packing-card--solo { grid-template-columns: minmax(0, 1fr); }
.packing-body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.packing-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 14px; margin: 0;
}
.packing-row {
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 14px; background: #fff;
  border: 1px solid rgba(226, 232, 240, .85); border-radius: 12px; min-width: 0;
}
.packing-row dt { font-size: 11.5px; font-weight: 600; color: #64748b; letter-spacing: .01em; }
.packing-row dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--navy); word-break: break-word; }
.packing-sub-title { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.packing-table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(226, 232, 240, .85); border-radius: 12px; background: #fff;
}
.packing-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 420px; }
.packing-table th {
  padding: 10px 14px; text-align: left; font-size: 12px; font-weight: 700;
  color: var(--navy); background: #f7faff;
  border-bottom: 1px solid rgba(226, 232, 240, .95); white-space: nowrap;
}
.packing-table td {
  padding: 10px 14px; color: var(--ink);
  border-bottom: 1px solid rgba(226, 232, 240, .6);
}
.packing-table tbody tr:last-child td { border-bottom: 0; }
.packing-table .row-index { color: #94a3b8; width: 56px; }
.packing-table .align-right { text-align: right; }
.packing-card-glow { position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(600px 200px at 100% 0%, rgba(34, 211, 238, .12), transparent 60%),
              radial-gradient(500px 200px at 0% 100%, rgba(14, 95, 184, .08), transparent 60%); }

/* 唛头 figure（可点击预览） */
.mark-figure { margin: 0; display: flex; flex-direction: column; gap: 10px; align-self: flex-start;
               cursor: zoom-in; transition: transform .2s ease; min-width: 0; }
.mark-figure:hover { transform: translateY(-3px); }
.mark-frame { position: relative; width: 280px; max-width: 100%;
  border-radius: 16px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 6px; min-height: 120px;
  background: linear-gradient(135deg, #f8fafc, #eef3fb);
  box-shadow: 0 14px 32px rgba(10, 37, 64, .14), 0 2px 6px rgba(10, 37, 64, .08);
  border: 1px solid rgba(226, 232, 240, .8);
  transition: box-shadow .25s ease, transform .25s ease; }
.mark-figure:hover .mark-frame {
  box-shadow: 0 18px 40px rgba(10, 37, 64, .2), 0 4px 10px rgba(14, 95, 184, .12); }
/* v0.8：唛头图/标签图限制最大高度并保持原始比例，超高图不再撑破版面 */
.mark-frame img { display: block; width: 100%; height: auto;
                  max-height: var(--img-mark-h, 340px); object-fit: contain;
                  border-radius: 10px;
                  transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.mark-figure:hover img { transform: scale(1.04); }
.mark-caption { display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; font-size: 12.5px; font-weight: 600;
  color: var(--blue); background: var(--cyan-soft);
  border-radius: 999px; }
.mark-caption-icon { display: inline-flex; }

/* 包装说明（note） */
.packing-note-wrap { margin-top: 0; padding-top: 14px;
  border-top: 1px dashed rgba(14, 95, 184, .15); }
.packing-note-title { display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--navy);
  margin-bottom: 8px; }
.packing-note-body { font-size: 14px; line-height: 1.8; color: var(--ink);
                     white-space: normal; }
/* v0.8.3：平板 / 手机改为上下堆叠：唛头图在上、参数在下，表格可横向滚动 */
@media (max-width: 900px) {
  .packing-card { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 20px; }
  .mark-figure { align-self: stretch; }
}

/* ---------- 纸箱规格 premium 表格（v0.7.3） ---------- */
.spec-card { background: var(--card); border-radius: 16px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(226, 232, 240, .7);
  overflow: hidden; }
.spec-table { width: 100%; border-collapse: separate; border-spacing: 0;
              background: transparent; border-radius: 0; margin: 0; }
.spec-table thead th { text-align: left; font-weight: 700; font-size: 13px;
  color: var(--navy); padding: 12px 18px;
  background: linear-gradient(180deg, #f8fbff, #eef3fb);
  border-bottom: 2px solid var(--line); letter-spacing: .01em; }
.spec-table tbody td { padding: 12px 18px; border-bottom: 1px solid rgba(226, 232, 240, .5);
                       font-size: 14px; }
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table tbody tr { transition: background .15s ease; }
.spec-table tbody tr:hover td { background: rgba(34, 211, 238, .05); }
.row-index { color: var(--muted); font-weight: 600; width: 56px; }
.carton-table th:first-child, .carton-table td:first-child { width: 56px; text-align: center; }

/* ---------- Lightbox / Preview Overlay（v0.7.3 新增） ---------- */
.js-lightbox { position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 25, 45, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px; animation: lb-in .22s ease; cursor: zoom-out; }
.js-lightbox img { max-width: min(92vw, 1600px); max-height: 88vh;
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  animation: lb-img .25s cubic-bezier(.2, .8, .2, 1); cursor: default; object-fit: contain;
  background: #fff; }
.js-lightbox .lb-close { position: absolute; top: 18px; right: 22px;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s; }
.js-lightbox .lb-close:hover { background: rgba(255, 255, 255, .28); transform: rotate(90deg); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-img { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }

/* ---------- 响应式（v0.7.3） ---------- */
@media (max-width: 900px) {
  .detail-card { grid-template-columns: 1fr; gap: 24px; padding: 24px; border-radius: 16px; }
  .detail-info h1.product-title { font-size: 24px; }
  .mark-frame { width: 240px; }
}
@media (max-width: 720px) {
  .detail-card { padding: 18px; }
  .detail-info h1.product-title { font-size: 22px; }
  .info-table th { width: 108px; font-size: 13px; padding: 7px 8px 7px 0; }
  .info-table td { font-size: 13.5px; padding: 7px 0; }
  .packing-card { padding: 20px; border-radius: 16px; }
  .mark-frame { width: 100%; }
  .thumbs { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
  .cta-btn { width: 100%; justify-content: center; }
  .spec-table th, .spec-table td { padding: 10px 12px; font-size: 13px; }
  .section { padding: 28px 0 6px; }
  .section-title { font-size: 20px; margin-bottom: 14px; }
  .js-lightbox { padding: 20px; }
  .js-lightbox img { max-height: 82vh; }
}
/* Reduced motion：用户偏好关闭动效时降级 */
@media (prefers-reduced-motion: reduce) {
  .cta-btn, .mark-figure, .detail-main, .thumb { transition: none; }
  .mark-frame img { transition: none; }
  .cta-btn:hover { transform: none; }
  .mark-figure:hover img { transform: none; }
  .lb-in, .lb-img { animation: none; }
}

/* ============================================================
   v0.8 图片尺寸规范与多端阈值（配合 /media-t 缩略图 + width/height 属性）
   目标：图片不溢出、不拉伸、不抖动（CLS≈0），首屏只加载必要尺寸。
   桌面 ≥1024px：列表卡 260px / 详情主图 460px / 唛头 280px
   平板 768–1023px：列表卡 220px / 详情单列
   手机 <768px：列表卡随栅格 / 详情全宽 / 唛头最大 300px 高
   ============================================================ */
:root {
  --img-card-max-w: 480px;   /* 卡片图实际下发尺寸上限 */
  --img-detail-max-w: 960px; /* 详情主图下发尺寸上限 */
  --img-mark-max-w: 720px;   /* 唛头图下发尺寸上限 */
  --img-mark-h: 340px;       /* 唛头图展示最大高度 */
}

/* 保持比例：带 width/height 属性的图片在重排时按属性比例占位 */
.detail-gallery, .card-img, .thumb, .mark-frame, .news-card-img { min-width: 0; }
.detail-main { max-height: 520px; }
.detail-main img, .card-img img, .thumb img,
.mark-frame img, .news-card-img img, .prose img { max-width: 100%; }
/* 富文本（新闻正文）里的插图同样受控，避免超宽撑破栏目 */
.prose img { width: auto; height: auto; max-height: 520px; object-fit: contain;
             border-radius: 10px; margin: 8px 0; }

@media (max-width: 1023px) {
  :root { --img-mark-h: 300px; }
  .detail-main { max-height: 460px; }
  /* 平板：侧栏收窄为 190px，主区留足宽度让产品保持 2 列以上 */
  .catalog { grid-template-columns: 190px 1fr; gap: 18px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
}
@media (max-width: 767px) {
  :root { --img-mark-h: 280px; }
  .detail-main { max-height: 380px; aspect-ratio: 4/3; }
  /* 手机：分类侧栏改为顶部横向标签条，产品主区占满整行 */
  .catalog { grid-template-columns: 1fr; gap: 14px; }
  .side { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; }
  .side-title { width: 100%; margin-bottom: 0; }
  .side-link { padding: 6px 10px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
  .mark-frame { width: 100%; }
  .prose img { max-height: 360px; }
}
@media (max-width: 420px) {
  :root { --img-mark-h: 240px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .side-link { padding: 5px 9px; font-size: 13px; }
  .card-name { font-size: 14px; }
}
/* 高 DPR 屏不必放大位图（缩略图已按最大展示尺寸×2 提供） */

/* -----------------------------------------------------------
 * 多图轮播（media-carousel.js）
 * 容器沿用 .card-img / .detail-main / .mark-frame 既有宽高比与圆角，
 * 图片叠放绝对定位，仅用 opacity 过渡，不改变原有布局与尺寸。
 * ----------------------------------------------------------- */
.js-media-carousel > .mc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
/* 首帧留在文档流内：容器无固定宽高比时（如唛头图框）由它撑开高度 */
.js-media-carousel > .mc-slide:first-child { position: relative; }
.js-media-carousel > .mc-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.js-media-carousel > .mc-slide img { width: 100%; height: 100%; display: block; }
/* 加载失败的帧整体隐藏，由脚本跳过，不保留裂图占位 */
.js-media-carousel > .mc-slide.is-failed { display: none; }
@media (prefers-reduced-motion: reduce) {
  .js-media-carousel > .mc-slide { transition: none; }
}

