/* ============ TIANJIANG Design System ============ */
:root {
  --navy-900: #071a2c;
  --navy-800: #0b2339;
  --navy-700: #103049;
  --navy-600: #17405e;
  --blue-600: #1668c4;
  --blue-500: #1e7fe0;
  --cyan-500: #16b8c4;
  --cyan-400: #2dd4d9;
  --accent: #f5a623;
  --ink: #16212e;
  --ink-2: #3d4b5c;
  --muted: #6b7c90;
  --line: #e3e9ef;
  --bg: #f5f8fb;
  --white: #ffffff;
  --grad-brand: linear-gradient(120deg, #0b2339 0%, #124a72 55%, #16b8c4 140%);
  --grad-blue: linear-gradient(135deg, #1668c4, #16b8c4);
  --shadow-sm: 0 2px 10px rgba(11, 35, 57, 0.06);
  --shadow-md: 0 12px 34px rgba(11, 35, 57, 0.12);
  --shadow-lg: 0 24px 60px rgba(11, 35, 57, 0.18);
  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1240px;
  --font: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: min(calc(100% - 48px), var(--maxw)); margin: 0 auto; }
.section { padding: 92px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--white); }

/* Typography */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 800; letter-spacing: 2px;
  color: var(--cyan-500); text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--cyan-500); }
.h-title {
  font-size: clamp(28px, 3.6vw, 44px); font-weight: 800;
  color: var(--navy-900); line-height: 1.18; letter-spacing: -0.5px;
}
.h-sub { font-size: 16px; color: var(--muted); line-height: 1.75; }
.center { text-align: center; }
.center .eyebrow::before { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border: none; border-radius: 8px; cursor: pointer;
  font-size: 14px; font-weight: 700; transition: all .22s ease; white-space: nowrap;
}
.btn-primary { background: var(--grad-blue); color: #fff; box-shadow: 0 8px 22px rgba(22, 104, 196, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(22, 104, 196, .4); }
.btn-cyan { background: var(--cyan-500); color: #fff; }
.btn-cyan:hover { background: #129ea9; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy-800); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-600); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* Cards */
.card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }

/* ============ Site Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  width: min(calc(100% - 48px), var(--maxw)); margin: 0 auto;
  height: 78px; display: flex; align-items: center; gap: 40px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--grad-blue);
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(22,104,196,.3);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text strong { font-size: 22px; font-weight: 800; color: var(--navy-900); letter-spacing: 1px; line-height: 1; display: block; }
.brand-text span { font-size: 9px; color: var(--muted); letter-spacing: 1.4px; text-transform: uppercase; }
/* 后台上传的品牌 logo：替换小图标，与 TIANJIANG 文字并排，按高度自适应保持比例 */
.brand-logo { display: block; height: 46px; width: auto; max-width: 70px; object-fit: contain; object-position: left center; flex-shrink: 0; }
.site-footer .brand-logo.footer-logo { height: 54px; max-width: 80px; object-position: left center; }
.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--ink-2);
  border-radius: 7px; transition: .18s; position: relative;
}
.nav-link:hover { color: var(--blue-600); background: #f0f6fc; }
.nav-link.active { color: var(--blue-600); }
.nav-link.active::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 2px;
  height: 2.5px; border-radius: 3px; background: var(--grad-blue);
}
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone { font-size: 13px; font-weight: 700; color: var(--navy-800); white-space: nowrap; }
.header-phone small { display: block; font-size: 10px; color: var(--muted); font-weight: 500; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--navy-800); }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--navy-900);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% 15%, rgba(22,184,196,.28), transparent 60%),
    radial-gradient(700px 600px at 10% 90%, rgba(22,104,196,.32), transparent 60%),
    linear-gradient(120deg, #071a2c 0%, #0c2e49 60%, #104963 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000, transparent 75%);
}
.hero .inner {
  position: relative; z-index: 2; width: min(calc(100% - 48px), var(--maxw)); margin: 0 auto;
  min-height: 600px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding: 80px 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border-radius: 100px; background: rgba(45,212,217,.12); border: 1px solid rgba(45,212,217,.35);
  color: var(--cyan-400); font-size: 12px; font-weight: 700; letter-spacing: .5px; margin-bottom: 24px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 0 4px rgba(45,212,217,.2); }
.hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.1; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 22px; }
.hero h1 .hl { color: var(--cyan-400); }
.hero p.lead { font-size: 17px; line-height: 1.8; color: #b9ccdd; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 34px; margin-top: 48px; flex-wrap: wrap; }
.hero-trust .t-item strong { display: block; font-size: 26px; font-weight: 800; color: #fff; line-height: 1; }
.hero-trust .t-item span { font-size: 11px; color: #93a9bd; letter-spacing: .5px; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-orbit {
  width: min(100%, 460px); aspect-ratio: 1; position: relative;
}
.hero-orbit .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(45,212,217,.25);
}
.hero-orbit .ring.r2 { inset: 12%; border-style: dashed; border-color: rgba(255,255,255,.14); }
.hero-orbit .ring.r3 { inset: 25%; }
.hero-core {
  position: absolute; inset: 32%; border-radius: 50%;
  background: linear-gradient(145deg, rgba(45,212,217,.22), rgba(22,104,196,.18));
  border: 1px solid rgba(45,212,217,.35);
  display: grid; place-items: center; box-shadow: 0 0 80px rgba(22,184,196,.25) inset, 0 20px 60px rgba(0,0,0,.35);
  backdrop-filter: blur(4px);
}
.hero-core svg { width: 46%; }
.float-chip {
  position: absolute; background: rgba(255,255,255,.96); color: var(--navy-800);
  padding: 11px 15px; border-radius: 11px; box-shadow: var(--shadow-lg);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 9px;
  animation: floaty 5s ease-in-out infinite;
}
.float-chip .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #e6f6fa; color: var(--cyan-500); }
.float-chip .ic.blue { background: #e7f0fd; color: var(--blue-600); }
.float-chip small { display: block; font-size: 10px; color: var(--muted); font-weight: 500; }
.float-chip.c1 { top: 8%; left: -4%; }
.float-chip.c2 { bottom: 12%; right: -2%; animation-delay: -2s; }
.float-chip.c3 { top: 46%; right: -8%; animation-delay: -3.4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* 首屏 Banner 图片轮播（内容管理→首页配置三张图时启用） */
.sr-only { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.hero-banner { position: relative; width: 100%; overflow: hidden; background: #0c2e49; line-height: 0; }
.hero-banner .hb-track { position: relative; width: 100%; }
.hero-banner .hb-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.hero-banner .hb-slide:first-child { position: relative; }
.hero-banner .hb-slide.active { opacity: 1; }
.hero-banner .hb-slide img { display: block; width: 100%; height: auto; }
.hero-banner .hb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.82); color: var(--navy-800); display: grid; place-items: center;
  box-shadow: var(--shadow-md); transition: background .2s, opacity .2s;
}
.hero-banner .hb-arrow:hover { background: #fff; }
.hero-banner .hb-arrow.hb-prev { left: 18px; }
.hero-banner .hb-arrow.hb-prev svg { transform: rotate(180deg); }
.hero-banner .hb-arrow.hb-next { right: 18px; }
.hero-banner .hb-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-banner .hb-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; box-shadow: 0 1px 4px rgba(0,0,0,.3); transition: .2s; }
.hero-banner .hb-dot.active { background: var(--cyan-500); transform: scale(1.25); }
@media (max-width: 720px) {
  .hero-banner .hb-arrow { width: 34px; height: 34px; }
  .hero-banner .hb-arrow.hb-prev { left: 8px; }
  .hero-banner .hb-arrow.hb-next { right: 8px; }
  .hero-banner .hb-dots { bottom: 10px; gap: 7px; }
  .hero-banner .hb-dot { width: 9px; height: 9px; }
}

/* Trust bar */
.trustbar { background: var(--white); border-bottom: 1px solid var(--line); }
.trustbar .inner { width: min(calc(100% - 48px), var(--maxw)); margin: 0 auto; padding: 26px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.trustbar .label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.cert-list { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.cert-list span { font-size: 15px; font-weight: 800; color: var(--navy-700); letter-spacing: .5px; display: flex; align-items: center; gap: 7px; }
.cert-list span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-500); }

/* Section heading */
.sec-head { margin-bottom: 48px; }
.sec-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.sec-head.row .h-sub { max-width: 520px; }
.link-arrow { color: var(--blue-600); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.link-arrow:hover { gap: 13px; }

/* Product card */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .28s ease; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.product-thumb {
  position: relative; aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(150deg, #eaf3fb, #dcecf4);
}
.product-thumb svg { width: 58%; opacity: .9; transition: transform .4s ease; }
.product-card:hover .product-thumb svg { transform: scale(1.08) rotate(-3deg); }
.product-thumb .tag {
  position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 6px;
  background: var(--navy-800); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .5px;
}
.product-thumb .hot { position: absolute; top: 12px; right: 12px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; padding: 5px 9px; border-radius: 6px; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-cat { font-size: 11px; color: var(--cyan-500); font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.product-name { font-size: 14.5px; font-weight: 700; color: var(--navy-800); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px; }
.product-model { font-size: 11px; color: var(--muted); }
.product-body .btn { margin-top: auto; }

/* Feature / value grid */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-item { background: var(--white); padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); transition: .25s; }
.feature-item:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-ic { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; }
.feature-ic.blue { background: #e7f0fd; color: var(--blue-600); }
.feature-ic.cyan { background: #e2f7f8; color: var(--cyan-500); }
.feature-ic.amber { background: #fff3de; color: #e59500; }
.feature-ic.navy { background: #e8eef4; color: var(--navy-700); }
.feature-item h4 { font-size: 17px; color: var(--navy-800); margin-bottom: 10px; font-weight: 700; }
.feature-item p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* About split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split-visual { position: relative; }
.visual-panel {
  border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 460px;
  background: var(--grad-brand); display: grid; place-items: center;
}
.visual-panel svg { width: 70%; opacity: .9; }
.visual-panel::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 22px 22px;
}
.visual-panel.has-photo { background: var(--navy-900); }
.visual-panel.has-photo::after { display: none; }
.visual-panel.has-photo > img { width: 100%; height: 100%; min-height: 460px; object-fit: cover; display: block; }
.stat-float {
  position: absolute; bottom: -20px; right: -20px; background: #fff; border-radius: 14px;
  padding: 20px 26px; box-shadow: var(--shadow-lg); z-index: 3; display: flex; gap: 26px;
}
.stat-float .s strong { font-size: 25px; color: var(--navy-900); font-weight: 800; display: block; line-height: 1; }
.stat-float .s span { font-size: 11px; color: var(--muted); }
.check-list { margin-top: 26px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.check-list li .ck { width: 22px; height: 22px; border-radius: 50%; background: #e2f7f8; color: var(--cyan-500); display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }

/* Stats band */
.stats-band { background: var(--navy-900); color: #fff; }
.stats-band .inner { width: min(calc(100% - 48px), var(--maxw)); margin: 0 auto; padding: 60px 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-b { text-align: center; padding: 0 20px; border-right: 1px solid rgba(255,255,255,.1); }
.stat-b:last-child { border: none; }
.stat-b strong { display: block; font-size: 40px; font-weight: 800; color: var(--cyan-400); line-height: 1; margin-bottom: 10px; }
.stat-b span { font-size: 13px; color: #9fb6ca; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.step { position: relative; padding: 0 18px; text-align: center; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 34px; left: 65%; width: 70%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.step-n { width: 68px; height: 68px; border-radius: 50%; background: var(--white); border: 2px solid var(--cyan-500); display: grid; place-items: center; margin: 0 auto 20px; font-size: 20px; font-weight: 800; color: var(--navy-800); position: relative; z-index: 2; box-shadow: var(--shadow-sm); }
.step h4 { font-size: 15px; color: var(--navy-800); margin-bottom: 8px; }
.step p { font-size: 12.5px; color: var(--muted); line-height: 1.65; }

/* Case card */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: .28s; display: flex; flex-direction: column; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.case-thumb { height: 170px; display: grid; place-items: center; background: linear-gradient(150deg, #eef4fa, #e3eef4); position: relative; }
.case-thumb svg { width: 42%; opacity: .85; }
.case-thumb .industry { position: absolute; bottom: 12px; left: 14px; background: rgba(11,35,57,.88); color: #fff; font-size: 10px; font-weight: 700; padding: 5px 10px; border-radius: 5px; }
.case-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-date { font-size: 11px; color: var(--cyan-500); font-weight: 700; }
.case-title { font-size: 15px; font-weight: 700; color: var(--navy-800); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 45px; }
.case-sum { font-size: 12.5px; color: var(--muted); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Customers & Partners logo wall */
.customers-section { background: linear-gradient(180deg, #eff6fb 0%, #e3eff6 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.customers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.customer-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  height: 116px; padding: 20px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(11,35,57,.04); transition: .25s;
  overflow: hidden;
}
.customer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c9dcea; }
/* 固定图片盒由 object-fit 缩放内容，避免 grid 中 max-height:100% 失效导致白底图片溢出卡片 */
.customer-card img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 1024px) { .customers-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .customers-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .customer-card { height: 96px; padding: 14px; } }

/* News card */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: .28s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-thumb { height: 180px; display: grid; place-items: center; background: linear-gradient(150deg, #eaf3fb, #dcecf4); position: relative; overflow: hidden; }
.news-thumb svg { width: 46%; opacity: .9; }
.news-thumb .cat-tag { position: absolute; top: 14px; left: 14px; background: var(--grad-blue); color: #fff; font-size: 10px; font-weight: 700; padding: 5px 11px; border-radius: 5px; letter-spacing: .4px; }
.news-body { padding: 22px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.news-date { font-size: 11.5px; color: var(--cyan-500); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.news-title { font-size: 16px; font-weight: 700; color: var(--navy-800); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 48px; }
.news-excerpt { font-size: 13px; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-body .link-arrow { margin-top: auto; }
.news-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; }
.news-featured .nf-thumb { min-height: 300px; display: grid; place-items: center; background: var(--grad-brand); position: relative; }
.news-featured .nf-thumb svg { width: 52%; opacity: .92; }
.news-featured .nf-thumb .badge-featured { position: absolute; top: 18px; left: 18px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; padding: 6px 12px; border-radius: 5px; }
.news-featured .nf-body { padding: 42px; display: flex; flex-direction: column; justify-content: center; }
.news-featured .nf-body h3 { font-size: 24px; color: var(--navy-900); font-weight: 800; line-height: 1.35; margin: 14px 0; }
.news-featured .nf-body p { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 22px; }
.news-article { max-width: 860px; }
.news-meta-bar { display: flex; gap: 20px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--line); margin-bottom: 32px; font-size: 13px; color: var(--muted); }
.news-meta-bar span { display: flex; align-items: center; gap: 7px; }
.news-cover { height: 340px; border-radius: var(--radius); background: var(--grad-brand); display: grid; place-items: center; margin-bottom: 38px; overflow: hidden; }
.news-cover svg { width: 40%; opacity: .9; }

/* CTA band */
.cta-band { background: var(--grad-brand); position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 26px 26px; }
.cta-band .inner { position: relative; z-index: 2; width: min(calc(100% - 48px), var(--maxw)); margin: 0 auto; padding: 70px 0; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #fff; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 10px; }
.cta-band p { color: #b9ccdd; font-size: 15px; }

/* Site footer */
.site-footer { background: var(--navy-900); color: #b9ccdd; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 50px; padding-bottom: 50px; }
.footer-brand .brand-mark { margin-bottom: 18px; }
.footer-brand p { font-size: 13px; line-height: 1.8; color: #91a8bd; margin-top: 16px; max-width: 300px; }
.footer-col h5 { color: #fff; font-size: 14px; margin-bottom: 20px; font-weight: 700; }
.footer-col a, .footer-col li { display: block; font-size: 13px; color: #91a8bd; margin-bottom: 12px; transition: .2s; }
.footer-col a:hover { color: var(--cyan-400); }
.footer-contact li { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.6; margin-bottom: 14px; }
.footer-contact svg { flex-shrink: 0; color: var(--cyan-500); margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; text-align: center; font-size: 12px; color: #6d8499; }

/* ============ Detail pages ============ */
.detail-hero { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.detail-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 300px at 80% 0%, rgba(22,184,196,.2), transparent 60%), var(--grad-brand); }
.detail-hero .inner { position: relative; z-index: 2; width: min(calc(100% - 48px), var(--maxw)); margin: 0 auto; padding: 58px 0; }
.crumb { font-size: 12px; color: #8fa9c0; margin-bottom: 16px; }
.crumb a:hover { color: var(--cyan-400); }
.detail-hero h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; max-width: 900px; line-height: 1.25; }
.detail-hero .meta { display: flex; gap: 22px; margin-top: 18px; flex-wrap: wrap; font-size: 13px; color: #a9c0d4; }
.detail-hero .meta span { display: flex; align-items: center; gap: 7px; }

.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.detail-main { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.detail-main section { margin-bottom: 42px; }
.detail-main section:last-child { margin-bottom: 0; }
.detail-main h3 { font-size: 21px; color: var(--navy-900); margin-bottom: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.detail-main h3::before { content: ''; width: 4px; height: 20px; border-radius: 3px; background: var(--grad-blue); }
.detail-main p { color: var(--ink-2); line-height: 1.85; font-size: 14.5px; margin-bottom: 14px; white-space: pre-line; }
.detail-main ul.bullets { display: grid; gap: 11px; }
.detail-main ul.bullets li { display: flex; gap: 11px; color: var(--ink-2); font-size: 14.5px; }
.detail-main ul.bullets li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-500); margin-top: 9px; flex-shrink: 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:nth-child(even) { background: #f8fafc; }
.spec-table td { padding: 12px 16px; }
.spec-table td:first-child { color: var(--muted); font-weight: 600; width: 42%; }
.spec-table td:last-child { color: var(--navy-800); font-weight: 600; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; position: sticky; top: 96px; }
.price-box { background: var(--grad-blue); color: #fff; border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.price-box .lbl { font-size: 12px; opacity: .85; }
.price-box .val { font-size: 30px; font-weight: 800; margin: 4px 0 2px; }
.price-box .sub { font-size: 12px; opacity: .85; }
.side-card h4 { font-size: 14px; color: var(--navy-800); margin-bottom: 16px; font-weight: 700; }
.side-list { display: grid; gap: 13px; }
.side-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; border-bottom: 1px dashed var(--line); padding-bottom: 11px; }
.side-list li span { color: var(--muted); }
.side-list li strong { color: var(--navy-800); text-align: right; }
.faq-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-item:last-child { border: none; }
.faq-item strong { font-size: 14px; color: var(--navy-800); display: block; margin-bottom: 6px; }
.faq-item p { font-size: 13.5px; color: var(--muted); margin: 0; }

.highlight-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { padding: 7px 13px; border-radius: 100px; background: #e7f0fd; color: var(--blue-600); font-size: 12px; font-weight: 700; }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info { display: grid; gap: 18px; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; gap: 16px; }
.info-card .ic { width: 46px; height: 46px; border-radius: 11px; background: #e7f0fd; color: var(--blue-600); display: grid; place-items: center; flex-shrink: 0; }
.info-card h5 { font-size: 13px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.info-card p { font-size: 14.5px; color: var(--navy-800); font-weight: 600; line-height: 1.5; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 22px; color: var(--navy-900); margin-bottom: 6px; font-weight: 800; }
.form-card > p { font-size: 13.5px; color: var(--muted); margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.field label .req { color: #e5484d; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 14px; color: var(--ink); background: #fbfdff; transition: .2s; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 3px rgba(30,127,224,.1); }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success { background: #e8f8ee; color: #0a7a3d; padding: 14px 16px; border-radius: 8px; font-size: 13.5px; margin-bottom: 18px; display: flex; gap: 9px; align-items: center; }

/* about page extras */
.timeline-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.solution-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.solution-item { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.solution-item strong { color: var(--navy-800); font-size: 14px; display: block; margin-bottom: 6px; }
.solution-item span { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.sol-thumb { width: 100%; aspect-ratio: 16 / 8; overflow: hidden; border-radius: 7px; margin-bottom: 12px; background: #eef4f9; display: flex; align-items: center; justify-content: center; }
.sol-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* About capabilities gallery (manual carousel) */
.cap-gallery { position: relative; width: 100%; max-width: 980px; margin: 40px auto 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); background: #eef4f9; line-height: 0; }
.cg-track { position: relative; width: 100%; }
.cg-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.cg-slide:first-child { position: relative; }
.cg-slide.active { opacity: 1; }
.cg-slide img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; }
.cg-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(9,34,56,.55); color: #fff; display: grid; place-items: center; transition: .18s;
}
.cg-arrow:hover { background: rgba(9,34,56,.85); }
.cg-arrow.cg-prev { left: 16px; }
.cg-arrow.cg-prev svg { transform: rotate(180deg); }
.cg-arrow.cg-next { right: 16px; }
.cg-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 9px; }
.cg-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .18s; }
.cg-dot.active { background: var(--cyan-500); transform: scale(1.25); }

/* Loading */
.loading { display: grid; place-items: center; min-height: 60vh; }
.spinner { width: 44px; height: 44px; border: 3px solid var(--line); border-top-color: var(--blue-500); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* responsive */
@media (max-width: 1024px) {
  .product-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid, .solution-row { grid-template-columns: repeat(2, 1fr); }
  .hero .inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .process-grid, .timeline-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band .inner { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .stat-b:nth-child(2) { border: none; }
}
@media (max-width: 720px) {
  .container, .site-header .inner, .hero .inner, .trustbar .inner, .cta-band .inner, .detail-hero .inner, .stats-band .inner { width: min(calc(100% - 32px), var(--maxw)); }
  .nav-menu { display: none; position: absolute; top: 78px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; box-shadow: var(--shadow-md); }
  .nav-menu.open { display: flex; }
  .menu-toggle { display: block; }
  .header-phone { display: none; }
  .product-grid, .feature-grid, .case-grid, .solution-row, .split, .contact-layout, .detail-layout, .footer-grid { grid-template-columns: 1fr; }
  .stats-band .inner { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .sec-head.row { flex-direction: column; align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; }
  .detail-main { padding: 24px; }
  .side-card { position: static; }
  .float-chip { display: none; }
  .stat-float { position: static; margin-top: 20px; }
  .visual-panel, .visual-panel.has-photo > img { min-height: 300px; }
  .cg-arrow { width: 34px; height: 34px; }
  .cg-arrow.cg-prev { left: 8px; }
  .cg-arrow.cg-next { right: 8px; }
  .cg-dots { bottom: 10px; gap: 7px; }
  .cg-dot { width: 9px; height: 9px; }
  .cg-slide img { max-height: 300px; }
  .section { padding: 60px 0; }
}

/* ============ SSR page extras ============ */
.filter-tabs { display:flex; gap:8px; flex-wrap:wrap; }
.filter-tab { padding:9px 16px; border:1.5px solid var(--line); background:#fff; color:var(--ink-2); border-radius:100px; font-size:12.5px; font-weight:700; cursor:pointer; transition:.2s; white-space:nowrap; }
.filter-tab:hover { border-color:var(--blue-500); color:var(--blue-600); }
.filter-tab.active { background:var(--grad-blue); color:#fff; border-color:transparent; }
.product-card[hidden], .news-card[hidden] { display:none; }
a.news-featured { color:inherit; transition:.28s; }
a.news-featured:hover { box-shadow:var(--shadow-md); transform:translateY(-3px); }
.article-sec { margin-bottom:34px; }
.article-sec h2 { font-size:22px; color:var(--navy-900); font-weight:800; margin-bottom:14px; padding-left:14px; border-left:4px solid var(--cyan-500); line-height:1.35; }
.article-sec p { font-size:15px; color:var(--ink-2); line-height:1.9; margin-bottom:14px; white-space:pre-line; }
.side-news { display:grid; gap:14px; }
.side-news a { display:block; padding-bottom:12px; border-bottom:1px dashed var(--line); }
.side-news a:last-child { border:none; padding-bottom:0; }
.side-news span { font-size:11px; color:var(--cyan-500); font-weight:700; display:block; margin-bottom:4px; }
.side-news strong { font-size:12.5px; color:var(--navy-800); line-height:1.5; display:block; }
.side-news a:hover strong { color:var(--blue-600); }
.form-card a { color:var(--blue-600); }
.form-card label a { text-decoration:underline; }

/* ---------- Billing / invoice details ---------- */
.billing-card { max-width:880px; margin:0 auto; background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-sm); }
.billing-table { width:100%; border-collapse:collapse; }
.billing-table th { text-align:left; vertical-align:top; width:38%; padding:16px 22px; font-size:11.5px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); background:#f6f9fc; border-bottom:1px solid var(--line); }
.billing-table td { padding:16px 22px; font-size:14.5px; line-height:1.6; color:var(--ink); border-bottom:1px solid var(--line); }
.billing-table tr:last-child th, .billing-table tr:last-child td { border-bottom:none; }
@media(max-width:640px){ .billing-table th, .billing-table td { display:block; width:100%; } .billing-table th { padding-bottom:4px; border-bottom:none; background:transparent; } .billing-table td { padding-top:2px; } }

/* ---------- 小屏头部紧凑化（品牌名较长时避免挤压溢出） ---------- */
@media (max-width: 560px) {
  .site-header .inner { gap: 10px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
  .brand-mark svg { width: 20px; height: 20px; }
  .brand-text strong { font-size: 16.5px; letter-spacing: .3px; }
  .brand-text span { font-size: 7.5px; letter-spacing: 1px; }
  .brand-logo { height: 36px; max-width: 56px; }
  .site-footer .brand-logo.footer-logo { height: 44px; max-width: 64px; }
  .header-cta { gap: 8px; }
  .header-cta .btn { padding: 9px 12px; font-size: 12.5px; }
  .header-cta .btn svg { display: none; }
}

/* ---------- 平板区间：先隐藏电话、再折叠导航，避免头部挤压 ---------- */
@media (max-width: 1080px) {
  .header-phone { display: none; }
}
@media (max-width: 980px) {
  .nav-menu { display: none; position: absolute; top: 78px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; box-shadow: var(--shadow-md); }
  .nav-menu.open { display: flex; }
  .menu-toggle { display: block; }
}

/* ---------- 上传封面图（真实照片） ---------- */
/* 卡片缩略图：铺满并裁切，保持整齐网格 */
.product-thumb .thumb-img,
.case-thumb .thumb-img,
.news-thumb .thumb-img,
.news-featured .nf-thumb .thumb-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s ease;
}
.product-card:hover .product-thumb .thumb-img,
.case-card:hover .case-thumb .thumb-img,
.news-card:hover .news-thumb .thumb-img { transform: scale(1.05); }

/* 详情页封面大图 */
figure.detail-cover { margin: 0 0 30px 0; }
figure.detail-cover p { text-align: center; text-indent: 0; margin: 0; }
figure.detail-cover .cover-img {
  width: 100%; max-height: 480px; object-fit: cover;
  border-radius: var(--radius); display: block;
  border: 1px solid var(--line); background: var(--bg);
}
.news-cover .cover-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.news-featured .nf-thumb .cover-img { min-height: 300px; }

@media (max-width: 640px) {
  figure.detail-cover .cover-img { max-height: 280px; }
  .news-cover { height: 220px; }
}

/* ============ 右侧浮动联系条（全站） ============ */
.float-bar {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}
.fb-btn {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  transition: transform .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.fb-btn img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  pointer-events: none;
}
.fb-btn:hover,
.fb-btn:focus-visible { transform: scale(1.1); box-shadow: 0 6px 16px rgba(11,35,57,.26); outline: none; }
.fb-btn:active { transform: scale(1.02); }

/* 悬停提示（PC 端） */
.fb-tip {
  position: absolute;
  right: 52px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--navy-900);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transition: .2s ease;
  pointer-events: none;
}
.fb-tip::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: var(--navy-900);
}
.fb-btn:hover .fb-tip,
.fb-btn:focus-visible .fb-tip { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }

/* 微信二维码弹层 */
.fb-pop {
  position: absolute;
  right: 52px;
  top: 50%;
  transform: translateY(-50%);
  width: 208px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(11,35,57,.18);
  padding: 16px 16px 14px;
  text-align: center;
}
.fb-pop[hidden] { display: none; }
.fb-pop-title {
  font-size: 13px; font-weight: 800; color: var(--navy-900);
  margin: 0 0 10px; text-indent: 0;
}
.fb-pop-qr { margin-bottom: 10px; }
.fb-pop-qr:empty { display: none; }
.fb-pop-qr img {
  width: 100%; max-width: 160px; height: auto; display: block; margin: 0 auto;
  border-radius: 8px; border: 1px solid var(--line);
}
.fb-pop-note {
  font-size: 12px; line-height: 1.6; color: var(--muted);
  margin: 0; text-indent: 0;
}
.fb-pop-co {
  font-size: 11px; color: var(--ink-2); margin: 8px 0 0;
  text-indent: 0; font-weight: 600;
}
.fb-pop-close {
  position: absolute; top: 6px; right: 8px;
  background: none; border: none; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--muted);
  padding: 2px 4px;
}
.fb-pop-close:hover { color: var(--ink); }

/* 小屏：略微缩小并靠右贴边，避免遮挡内容 */
@media (max-width: 720px) {
  .float-bar { right: 8px; gap: 4px; }
  .fb-btn, .fb-btn img { width: 36px; height: 36px; }
  .fb-tip { display: none; }
  .fb-pop { right: 44px; width: 186px; }
}
@media (max-width: 380px) {
  .float-bar { right: 6px; }
  .fb-btn, .fb-btn img { width: 32px; height: 32px; }
}

/* ============ 产品图片画廊（主图 + 缩略图条 + 灯箱） ============ */
.pg { margin: 0 0 32px; }
.pg-fallback { margin-bottom: 32px; }

.pg-main {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pg-main img {
  width: 100%; height: 100%;
  object-fit: contain;   /* 产品图完整展示，不裁切 */
  display: block;
  background: #fbfcfe;
  transition: opacity .22s ease;
}
.pg-main img.switching { opacity: .35; }

.pg-zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.pg-zoom-icon {
  position: absolute; right: 12px; bottom: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(11,35,57,.72); color: #fff;
  display: grid; place-items: center;
  opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.pg-main:hover .pg-zoom-icon { opacity: 1; }

.pg-counter {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(11,35,57,.72); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .03em;
  padding: 5px 10px; border-radius: 100px;
}
.pg-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.94); border: 1px solid var(--line);
  color: var(--navy-800); display: grid; place-items: center;
  cursor: pointer; opacity: 0; transition: .2s ease;
  box-shadow: 0 4px 14px rgba(11,35,57,.14);
}
.pg-main:hover .pg-nav { opacity: 1; }
.pg-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.pg-prev { left: 12px; }
.pg-prev svg { transform: rotate(180deg); }
.pg-next { right: 12px; }

/* 缩略图条 */
.pg-thumbs-wrap {
  position: relative;
  margin-top: 12px;
  display: flex; align-items: center; gap: 8px;
}
.pg-thumbs {
  display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth;
  list-style: none; margin: 0; padding: 2px;
  flex: 1;
  scrollbar-width: none; -ms-overflow-style: none;
}
.pg-thumbs::-webkit-scrollbar { display: none; }
.pg-thumb { flex: 0 0 auto; }
.pg-thumb button {
  display: block; width: 76px; height: 76px; padding: 0;
  border: 2px solid var(--line); border-radius: 10px;
  background: #fff; overflow: hidden; cursor: pointer;
  transition: border-color .18s ease, transform .18s ease;
}
.pg-thumb button:hover { border-color: var(--blue-500); transform: translateY(-2px); }
.pg-thumb.active button { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(22,104,196,.15); }
.pg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pg-arrow {
  flex: 0 0 auto; width: 26px; height: 60px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer;
  transition: .18s ease;
}
.pg-arrow:hover { border-color: var(--blue-500); color: var(--blue-600); }
.pg-arrow-prev svg { transform: rotate(180deg); }
.pg-arrow[disabled] { opacity: .32; cursor: default; }

/* 灯箱 */
.pg-lightbox {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(6,18,30,.93);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.pg-lightbox[hidden] { display: none; }
.pg-lightbox img {
  max-width: 94vw; max-height: 86vh;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
  background: #fff;
}
.pg-lb-close {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  font-size: 26px; line-height: 1; cursor: pointer;
}
.pg-lb-close:hover { background: rgba(255,255,255,.26); }
.pg-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  display: grid; place-items: center; cursor: pointer;
}
.pg-lb-nav:hover { background: rgba(255,255,255,.26); }
.pg-lb-prev { left: 20px; }
.pg-lb-prev svg { transform: rotate(180deg); }
.pg-lb-next { right: 20px; }
.pg-lb-count {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.82); font-size: 13px; font-weight: 600;
}

@media (max-width: 720px) {
  .pg-main { aspect-ratio: 1 / 1; }
  .pg-nav { opacity: 1; width: 34px; height: 34px; }
  .pg-thumb button { width: 62px; height: 62px; }
  .pg-arrow { height: 50px; width: 22px; }
  .pg-zoom-icon { opacity: 1; }
}

/* ---------- 布局修正：平板区间两列过窄会导致横向溢出 ---------- */
/* 详情页（含产品画廊）在 1024px 以下改为单列，侧栏不再挤压主内容 */
@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr; gap: 28px; }
  .detail-layout aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: start; }
  .detail-layout aside .price-box { margin-bottom: 0; }
}
/* 网格/弹性子项允许收缩，避免内容撑破父容器 */
.detail-main, .detail-layout > *, .pg, .pg-thumbs-wrap, .pg-thumbs { min-width: 0; }
.pg-thumbs { flex: 1 1 0; }
