/* ===========================================================
   上海脉锐光电有限公司 · 官网样式
   =========================================================== */

:root {
  --navy: #0a1b33;
  --navy-2: #122f57;
  --accent: #00a3e0;
  --accent-2: #0078c2;
  --ink: #16202c;
  --muted: #64748b;
  --line: #e6ebf2;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(10, 27, 51, .08);
  --shadow-lg: 0 18px 50px rgba(10, 27, 51, .13);
  --container: 1200px;
  --header-h: 74px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(10, 27, 51, .07); }
.header .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; flex: none;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy-2), var(--accent));
  display: grid; place-items: center;
  color: #fff; font-weight: 700; letter-spacing: .5px; font-size: 15px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text .cn { font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: .5px; }
.brand-text .en { font-size: 11px; color: var(--muted); letter-spacing: 1.2px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 8px 16px;
  font-size: 15px;
  color: var(--ink);
  border-radius: 6px;
  transition: color .2s ease, background .2s ease;
}
.nav a:hover { color: var(--accent-2); }
.nav a.is-active { color: var(--accent-2); font-weight: 600; }
.nav a.is-active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { font-size: 14px; color: var(--muted); }
.header-phone strong { color: var(--navy); font-size: 16px; letter-spacing: .3px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--navy); margin: 4px auto; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 26px;
  border-radius: 6px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(0, 163, 224, .28); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex; align-items: center;
  background: var(--navy) url("../../img/hero-lab.jpg") center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6, 17, 33, .93) 0%, rgba(9, 25, 47, .78) 48%, rgba(9, 25, 47, .45) 100%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(900px 420px at 78% 40%, rgba(0, 163, 224, .22), transparent 70%);
}
.hero .container { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 90px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 2px; color: #9fd6ee;
  border: 1px solid rgba(159, 214, 238, .35);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 26px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: 52px; line-height: 1.22; font-weight: 700; letter-spacing: 1px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { max-width: 660px; font-size: 17px; color: rgba(255, 255, 255, .82); margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, .14);
  background: rgba(6, 17, 33, .5);
}
.hero-stats .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding-top: 26px; padding-bottom: 26px;
}
.hero-stats .stat .num { font-size: 30px; font-weight: 700; color: #fff; line-height: 1.3; }
.hero-stats .stat .num span { color: var(--accent); font-size: 18px; margin-left: 2px; }
.hero-stats .stat .label { font-size: 13px; color: rgba(255, 255, 255, .65); letter-spacing: .5px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 96px 0 76px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, #17467d 100%);
  color: #fff; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 85% 20%, rgba(0, 163, 224, .28), transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin: 0 0 14px; font-size: 40px; font-weight: 700; letter-spacing: 1px; }
.page-hero p { margin: 0; max-width: 720px; color: rgba(255, 255, 255, .78); font-size: 16px; }
.breadcrumb { font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 16px; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-tag { color: var(--accent-2); font-size: 13px; letter-spacing: 2.5px; font-weight: 700; margin-bottom: 12px; }
.section-head h2 { margin: 0 0 14px; font-size: 34px; font-weight: 700; color: var(--navy); letter-spacing: .5px; }
.section-head p { margin: 0; color: var(--muted); font-size: 16px; }
.section-head-left { text-align: left; margin-left: 0; }

/* ---------- Business cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(0, 163, 224, .35); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 17, 33, 0) 40%, rgba(6, 17, 33, .55) 100%);
}
.card-media .media-title {
  position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 2;
  color: #fff; font-size: 18px; font-weight: 700; letter-spacing: .5px;
}
.card-body { padding: 22px 22px 26px; }
.card-body p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.card-link { color: var(--accent-2); font-size: 14px; font-weight: 600; }
.card-link:hover { color: var(--accent); }

/* ---------- Service items ---------- */
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .25s ease, box-shadow .25s ease;
}
.service-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(0, 163, 224, .12), rgba(18, 47, 87, .1));
  display: grid; place-items: center; color: var(--accent-2);
}
.service-icon svg { width: 24px; height: 24px; }
.service-item h3 { margin: 0 0 10px; font-size: 18px; color: var(--navy); }
.service-item p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-text h2 { margin: 0 0 16px; font-size: 32px; color: var(--navy); line-height: 1.35; }
.split-text p { color: var(--muted); margin: 0 0 18px; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink); font-size: 15px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(180deg, var(--accent), rgba(0, 163, 224, .15));
}
.timeline li { position: relative; padding-bottom: 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -34px; top: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent);
}
.timeline .year { font-size: 15px; font-weight: 700; color: var(--accent-2); letter-spacing: 1px; }
.timeline .title { font-size: 17px; font-weight: 600; color: var(--navy); margin: 2px 0 6px; }
.timeline .desc { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- News ---------- */
.news-item {
  display: flex; gap: 26px; align-items: flex-start;
  padding: 26px 0; border-bottom: 1px dashed var(--line);
}
.news-item:last-child { border-bottom: none; }
.news-date {
  flex: none; width: 84px; text-align: center;
  background: var(--bg-soft); border-radius: 8px; padding: 10px 0;
}
.news-date .d { display: block; font-size: 24px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.news-date .y { display: block; font-size: 12px; color: var(--muted); }
.news-body h3 { margin: 2px 0 8px; font-size: 18px; color: var(--navy); }
.news-body p { margin: 0; color: var(--muted); font-size: 14.5px; }
.news-tag {
  display: inline-block; font-size: 12px; color: var(--accent-2);
  background: rgba(0, 163, 224, .1); padding: 2px 10px; border-radius: 100px; margin-bottom: 8px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, #123a6b 100%);
  color: #fff; padding: 66px 0; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 240px at 80% 30%, rgba(0, 163, 224, .3), transparent 70%);
}
.cta-band .container { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 8px; font-size: 30px; font-weight: 700; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .78); }

/* ---------- Products page ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 9px 20px; border-radius: 100px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14.5px;
  transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent-2); }
.filter-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.product-cat { margin-bottom: 62px; scroll-margin-top: 100px; }
.product-cat-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.product-cat-head h3 { margin: 0; font-size: 24px; color: var(--navy); }
.product-cat-head .en { font-size: 13px; color: var(--muted); letter-spacing: 1.5px; }
.product-cat > p { margin: 0 0 26px; color: var(--muted); max-width: 860px; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-item {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  background: #fff; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(0, 163, 224, .35); }
.product-item h4 { margin: 0 0 6px; font-size: 17px; color: var(--navy); }
.product-item .model { font-size: 13px; color: var(--accent-2); font-weight: 600; margin-bottom: 10px; }
.product-item p { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.product-item .spec { font-size: 12.5px; color: #8a97a8; border-top: 1px dashed var(--line); padding-top: 12px; }

/* 产品二级分类分组 */
.product-sub { margin-top: 18px; }
.product-sub:first-child { margin-top: 2px; }
.sub-title { font-size: 15px; font-weight: 600; color: var(--navy); margin: 0 0 12px; padding-left: 12px; border-left: 3px solid var(--accent); }
.sub-empty { font-size: 13px; color: #9aa6b6; background: #f4f7fa; border: 1px dashed var(--line); border-radius: 8px; padding: 14px 16px; }
.product-item .sub-badge { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--accent); background: rgba(0,163,224,.10); border: 1px solid rgba(0,163,224,.28); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }

/* 规格书下载按钮 */
.product-item .datasheet-row { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.datasheet-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--navy), #16407a);
  border: 1px solid rgba(0, 163, 224, .5); border-radius: 8px; padding: 8px 14px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.datasheet-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(12, 40, 80, .25); background: linear-gradient(135deg, #16407a, var(--navy)); }
.datasheet-btn svg { width: 15px; height: 15px; }


/* 分类卡片无图时的图标占位 */
.card-media .media-icon { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy), #0e2c4f); color: var(--accent); }
.card-media .media-icon svg { width: 44%; height: 44%; opacity: .9; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; margin-bottom: 18px;
}
.contact-card h4 { margin: 0 0 6px; font-size: 15px; color: var(--muted); font-weight: 500; }
.contact-card .val { font-size: 18px; color: var(--navy); font-weight: 600; }
.contact-card .sub { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; color: var(--ink); margin-bottom: 7px; font-weight: 600; }
.form-group label .req { color: #e5484d; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 8px; background: #fbfcfe; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 163, 224, .12); background: #fff;
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-tip { font-size: 13px; color: var(--muted); margin: 0 0 22px; }
.form-msg { margin-top: 16px; font-size: 14px; display: none; border-radius: 8px; padding: 12px 14px; }
.form-msg.ok { display: block; background: rgba(23, 160, 90, .1); color: #12805a; }
.form-msg.err { display: block; background: rgba(229, 72, 77, .1); color: #b3242a; }

/* 开票信息 */
.billing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 980px; margin: 0 auto;
}
.billing-item {
  display: flex; flex-direction: column; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.billing-item .k { font-size: 13.5px; color: var(--muted); letter-spacing: .5px; }
.billing-item .v { font-size: 17px; color: var(--navy); font-weight: 600; word-break: break-all; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .68); padding: 66px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer h5 { color: #fff; font-size: 16px; margin: 0 0 18px; font-weight: 600; }
.footer li { margin-bottom: 10px; }
.footer li a:hover { color: var(--accent); }
.footer .brand-text .cn { color: #fff; }
.footer .brand-text .en { color: rgba(255, 255, 255, .45); }
.footer-desc { margin: 18px 0 0; max-width: 340px; line-height: 1.8; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact .k { color: rgba(255, 255, 255, .45); flex: none; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255, 255, 255, .5);
}

/* ---------- Data status ---------- */
.data-status {
  font-size: 12.5px; color: var(--muted); text-align: center;
  padding: 8px 14px; margin-top: 18px;
}
.loading-skeleton {
  background: linear-gradient(90deg, #eef2f7 25%, #e3e9f0 37%, #eef2f7 63%);
  background-size: 400% 100%; animation: shimmer 1.4s ease infinite;
  border-radius: 8px; height: 320px;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4, .product-grid, .service-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 42px; }
  .billing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 18px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .nav a.is-active::after { display: none; }
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .split, .contact-grid, .grid-2 { grid-template-columns: 1fr; gap: 34px; }
  .hero { min-height: 520px; }
  .hero h1 { font-size: 34px; }
  .hero-stats .container { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 27px; }
  .page-hero { padding: 66px 0 54px; }
  .page-hero h1 { font-size: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .product-cat-head h3 { font-size: 21px; }
}

@media (max-width: 620px) {
  .grid-4, .grid-3, .product-grid, .service-list { grid-template-columns: 1fr; }
  .billing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats .container { grid-template-columns: repeat(2, 1fr); }
  .form-wrap { padding: 26px 20px; }
  .brand-text .en { display: none; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- 产品详情页（product.html） ---- */
.product-detail { max-width: 940px; margin: 0 auto; }
.loading { color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--accent-2); font-size: 14px; font-weight: 600; }
.back-link:hover { text-decoration: underline; }
.detail-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.detail-head h1 { font-size: 30px; line-height: 1.3; color: var(--navy); margin: 0; }
.detail-head .model { color: var(--muted); font-size: 15px; letter-spacing: .3px; }
.detail-summary { font-size: 17px; color: var(--ink); margin: 0 0 8px; }
.detail-block { margin: 38px 0; }
.detail-block h3 { font-size: 20px; color: var(--navy); margin: 0 0 16px; padding-left: 12px; border-left: 4px solid var(--accent); }
.param-table { width: 100%; border-collapse: collapse; background: var(--bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.param-table th, .param-table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.param-table th { width: 40%; background: var(--bg-soft); color: var(--navy); font-weight: 600; }
.param-table tr:last-child th, .param-table tr:last-child td { border-bottom: none; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-item { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); transition: box-shadow .2s ease, transform .2s ease; }
.gallery-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.gallery-item img { width: 100%; height: 220px; object-fit: contain; background: #fff; }
.detail-spec { color: var(--ink); line-height: 1.8; }

/* ---- 产品卡片可点击（catalog 网格内 <a class="product-item">） ---- */
a.product-item { display: block; color: inherit; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
a.product-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--accent); }

/* ---- 详情页参数网格表 ---- */
.spec-table { width: 100%; border-collapse: collapse; background: var(--bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 14px; }
.spec-table td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; }
.spec-table tr:nth-child(even) td { background: var(--bg-soft); }
.spec-table tr:first-child td { background: var(--navy-2); color: #fff; font-weight: 600; letter-spacing: .5px; }
