/* DDHC Technology - Chinese site, Thorlabs-inspired design */
:root {
  --red: #c8202f;
  --red-dark: #a51623;
  --dark: #2b2b2b;
  --gray: #555;
  --light: #f4f4f4;
  --border: #dcdcdc;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  color: var(--dark);
  font-size: 15px;
  line-height: 1.6;
  background: #fff;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--dark); color: #ccc; font-size: 12.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { color: #fff; }
.topbar .contact-line span { margin-left: 22px; }
.topbar .contact-line b { color: #fff; font-weight: 600; }

/* ---------- Header ---------- */
.header { background: #fff; border-bottom: 3px solid var(--red); }
.header .container { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px; background: var(--red); color: #fff;
  font-weight: 800; font-size: 17px; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
}
.logo-text .logo-name { font-size: 21px; font-weight: 800; color: var(--dark); letter-spacing: 1px; }
.logo-text .logo-name em { color: var(--red); font-style: normal; }
.logo-text .logo-sub { font-size: 11px; color: #888; letter-spacing: 2.5px; text-transform: uppercase; }
.header-search { display: flex; }
.header-search input {
  width: 240px; height: 34px; border: 1px solid var(--border); padding: 0 12px; font-size: 13px; outline: none;
}
.header-search button {
  height: 34px; padding: 0 18px; background: var(--red); color: #fff; border: none;
  cursor: pointer; font-size: 13px; font-weight: 600;
}
.header-search button:hover { background: var(--red-dark); }

/* ---------- Navigation ---------- */
.nav { background: var(--red); }
.nav .container { display: flex; }
.nav a {
  color: #fff; padding: 12px 18px; font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .4px; text-decoration: none; display: block;
}
.nav a:hover, .nav a.active { background: var(--red-dark); }
.nav .nav-item { position: relative; }
.nav .dropdown {
  display: none; position: absolute; top: 100%; left: 0; background: #fff;
  min-width: 230px; box-shadow: 0 6px 14px rgba(0,0,0,.15); z-index: 100;
}
.nav .nav-item:hover .dropdown { display: block; }
.nav .dropdown a {
  color: var(--dark); padding: 10px 16px; font-size: 13.5px; text-transform: none;
  font-weight: 400; border-bottom: 1px solid #f0f0f0;
}
.nav .dropdown a:hover { background: var(--light); color: var(--red); }

/* ---------- Breadcrumbs ---------- */
.crumbs { background: var(--light); border-bottom: 1px solid var(--border); font-size: 12.5px; color: #888; }
.crumbs .container { padding: 9px 20px; }
.crumbs a { color: var(--gray); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(rgba(20,20,25,.62), rgba(20,20,25,.62)),
              url("../../images/comdata/74570/202508/202508152302419c3fee.jpg") center 35% / cover no-repeat;
  color: #fff; text-align: center; padding: 92px 20px;
}
.hero h1 { font-size: 34px; font-weight: 800; letter-spacing: .5px; margin-bottom: 10px; }
.hero p { font-size: 16.5px; color: #e8e8e8; letter-spacing: .6px; }
.hero .hero-cta {
  display: inline-block; margin-top: 26px; background: var(--red); color: #fff;
  padding: 11px 34px; font-weight: 700; letter-spacing: .5px; border-radius: 3px;
  text-decoration: none; font-size: 14px;
}
.hero .hero-cta:hover { background: #fff; color: var(--red); text-decoration: none; }

/* ---------- Section headings ---------- */
.section { padding: 46px 0; }
.section.gray { background: var(--light); }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 {
  font-size: 25px; font-weight: 800; color: var(--dark);
  display: inline-block; padding-bottom: 10px; border-bottom: 3px solid var(--red); margin-bottom: 8px;
}
.section-head p { color: var(--gray); font-size: 14.5px; margin-top: 6px; }

/* ---------- Category grid (home) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card {
  background: #fff; border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.cat-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.12); transform: translateY(-3px); text-decoration: none; }
.cat-card .cat-img { height: 210px; overflow: hidden; background: #efefef; }
.cat-card .cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .cat-body { padding: 16px 18px 18px; }
.cat-card .cat-body h3 { font-size: 16.5px; color: var(--dark); margin-bottom: 5px; }
.cat-card .cat-body p { font-size: 13px; color: var(--gray); margin-bottom: 10px; }
.cat-card .cat-link { font-size: 13px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .5px; }

/* ---------- Why us ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: #fff; border-top: 3px solid var(--red); padding: 22px 20px; }
.feature h3 { font-size: 15.5px; margin-bottom: 8px; color: var(--dark); }
.feature p { font-size: 13px; color: var(--gray); }

/* ---------- Page banner (sub pages) ---------- */
.page-banner { background: var(--dark); color: #fff; padding: 44px 0; }
.page-banner .container h1 { font-size: 27px; font-weight: 800; letter-spacing: .4px; }
.page-banner .container p { color: #bbb; font-size: 14px; margin-top: 6px; }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .2s;
}
.product-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.product-card .p-img { height: 190px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #eee; }
.product-card .p-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.product-card .p-img.noimg {
  background: repeating-linear-gradient(45deg, #fafafa, #fafafa 12px, #f2f2f2 12px, #f2f2f2 24px);
  color: #aaa; font-size: 12.5px; letter-spacing: 1px; text-align: center;
}
.product-card .p-body { padding: 15px 17px 17px; flex: 1; display: flex; flex-direction: column; }
.product-card .p-body h3 { font-size: 15px; color: var(--dark); margin-bottom: 8px; line-height: 1.35; }
.product-card .p-body h3 .pnr { color: var(--red); }
.product-card ul { list-style: none; margin-bottom: 12px; flex: 1; }
.product-card ul li {
  font-size: 12.8px; color: var(--gray); padding-left: 14px; position: relative; margin-bottom: 3px;
}
.product-card ul li::before { content: "▪"; position: absolute; left: 0; color: var(--red); }
.product-card .p-link {
  font-size: 12.5px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .5px;
}

/* ---------- Content pages (about / contact) ---------- */
.content-page { padding: 50px 0 60px; }
.content-page .lead { font-size: 17px; color: var(--gray); margin-bottom: 26px; }
.content-page h3 { font-size: 18px; margin: 26px 0 10px; color: var(--dark); border-left: 4px solid var(--red); padding-left: 10px; }
.content-page p { margin-bottom: 13px; color: #3a3a3a; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.contact-box { background: var(--light); border: 1px solid var(--border); padding: 26px 28px; }
.contact-box h3 { margin-top: 0; border: none; padding-left: 0; color: var(--red); font-size: 17px; }
.contact-box .row { margin-bottom: 12px; }
.contact-box .row b { display: inline-block; min-width: 92px; color: var(--dark); }
.contact-box .row span, .contact-box .row a { color: var(--gray); }
.map-note { font-size: 12.5px; color: #999; margin-top: 14px; }

/* ---------- WeChat QR Section ---------- */
.wechat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.wechat-card { background: var(--light); border: 1px solid var(--border); padding: 30px 28px 26px; text-align: center; }
.wechat-card h3 { margin: 0 0 4px; color: var(--red); font-size: 19px; border: none; padding: 0; }
.wechat-card .wechat-role { font-size: 13px; color: #888; margin-bottom: 18px; }
.wechat-card .wechat-img-wrap { display: inline-block; padding: 8px; background: #fff; border: 1px solid #e5e5e5; border-radius: 4px; margin-bottom: 14px; }
.wechat-card .wechat-img-wrap img { width: 180px; height: 180px; display: block; object-fit: contain; }
.wechat-card .wechat-img-wrap.placeholder img { width: 180px; height: 180px; }
.wechat-card .wechat-tip { font-size: 14px; color: var(--dark); margin-bottom: 10px; font-weight: 600; }
.wechat-card .wechat-info { font-size: 14px; color: var(--gray); line-height: 1.9; }
.wechat-card .wechat-info b { color: var(--dark); margin-right: 4px; }
@media (max-width: 720px) {
  .wechat-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #aaa; padding: 44px 0 0; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; padding-bottom: 34px; }
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 14px; }
.footer a { color: #ccc; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 7px; }
.footer .f-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer .f-logo .logo-mark { width: 36px; height: 36px; font-size: 14px; }
.footer .f-logo .name { color: #fff; font-size: 17px; font-weight: 800; letter-spacing: 1px; }
.footer .f-logo .name em { color: var(--red); font-style: normal; }
.copyright { border-top: 1px solid #444; padding: 16px 0; text-align: center; font-size: 12.5px; color: #888; }

/* ---------- Product filter (tabs / series chips / search) ---------- */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.cat-tabs .tab { padding: 9px 16px; border: 1px solid var(--border); background: #fff; color: var(--dark); border-radius: 4px; cursor: pointer; font-size: 14px; font-family: inherit; transition: all .15s; }
.cat-tabs .tab:hover { border-color: var(--red); color: var(--red); }
.cat-tabs .tab.active { background: var(--red); border-color: var(--red); color: #fff; }
.filter-bar { background: #fafafa; border: 1px solid var(--border); border-radius: 6px; padding: 14px 16px; margin: 0 0 26px; }
.filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.f-search { flex: 1 1 240px; min-width: 200px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; font-family: inherit; }
.f-search:focus { outline: none; border-color: var(--red); }
.f-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.f-chips .chip { padding: 6px 12px; border: 1px solid var(--border); background: #fff; color: var(--gray); border-radius: 20px; cursor: pointer; font-size: 13px; font-family: inherit; transition: all .15s; }
.f-chips .chip:hover { border-color: var(--red); color: var(--red); }
.f-chips .chip.active { background: var(--red); border-color: var(--red); color: #fff; }
.f-count { font-size: 13px; color: #888; margin: 10px 2px 0; }
.f-empty { display: none; text-align: center; padding: 48px 16px; color: #888; font-size: 15px; }
.motion-row { margin-top: 8px; }
.f-label { font-size: 13px; color: #888; white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cat-grid, .product-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid, .contact-grid { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .nav .container { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .cat-grid, .product-grid, .feature-grid { grid-template-columns: 1fr; }
  .topbar .contact-line span { display: block; }
}

/* ---------- v2: buttons / card actions / compare checkbox ---------- */
.btn {
  display: inline-block; padding: 10px 20px; border: 1px solid var(--red); border-radius: 4px;
  background: #fff; color: var(--red); font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit; text-decoration: none; line-height: 1.4; transition: all .15s;
}
.btn:hover { background: var(--red); color: #fff; text-decoration: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.p-actions { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 6px; }
.p-actions .p-btn {
  display: inline-block; padding: 7px 14px; background: var(--red); color: #fff;
  border-radius: 4px; font-size: 13px; font-weight: 600; text-decoration: none; transition: all .15s;
}
.p-actions .p-btn:hover { background: var(--red-dark); text-decoration: none; }
.p-actions .p-link { font-size: 13px; }
.product-card { position: relative; }
.cmp-btn {
  position: absolute; top: 8px; right: 8px; z-index: 3; display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.92); border: 1px solid var(--border); border-radius: 4px;
  padding: 3px 8px; font-size: 12px; color: var(--gray); cursor: pointer; user-select: none;
}
.cmp-btn:hover { border-color: var(--red); color: var(--red); }
.cmp-btn input { accent-color: var(--red); cursor: pointer; }

/* ---------- v2: detail page ---------- */
.detail { display: grid; grid-template-columns: minmax(380px, 460px) 1fr; gap: 44px; margin: 10px 0 48px; align-items: start; }
.d-gallery { position: sticky; top: 84px; }
.d-gallery .d-main { border: 1px solid var(--border); border-radius: 8px; padding: 16px; background: #fff; }
.d-gallery .d-main img { width: 100%; max-height: 400px; object-fit: contain; }
.d-gallery .d-main .noimg { height: 220px; display: flex; align-items: center; justify-content: center; color: #999; }
.d-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.d-thumbs img { width: 62px; height: 62px; object-fit: contain; border: 1px solid var(--border); border-radius: 4px; padding: 3px; cursor: pointer; background: #fff; }
.d-thumbs img:hover { border-color: var(--red); }
.d-thumbs img.active { border-color: var(--red); box-shadow: 0 0 0 2px rgba(200, 32, 40, 0.18); }
.d-info h1 { font-size: 26px; color: var(--dark); margin: 4px 0 10px; line-height: 1.3; }
.d-model { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 11px 16px; background: var(--light); border: 1px solid var(--border); border-radius: 8px; }
.d-model span { color: var(--gray); font-size: 13px; }
.d-model b { font-family: "SF Mono", "JetBrains Mono", Consolas, Menlo, monospace; font-size: 20px; color: var(--dark); letter-spacing: .5px; }
.d-model .d-en { margin-left: auto; font-size: 12.5px; }
.d-model .d-pid { font-size: 12px; color: #999; margin-left: 6px; font-style: normal; font-family: "SF Mono", "JetBrains Mono", Consolas, monospace; }
.d-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tag { display: inline-block; padding: 4px 11px; border-radius: 20px; font-size: 12px; background: var(--light); color: var(--gray); border: 1px solid var(--border); }
.tag-series { background: #fdeef0; color: var(--red); border-color: #f5c6cc; }
.tag-cat { background: #eef3fb; color: #2f5fae; border-color: #c9d8f2; }
.tag-motion { background: #f0f7f0; color: #3a7d44; border-color: #cde3cf; }
.tag-travel { background: #fdf6e8; color: #a5711c; border-color: #f0dfb6; }
.d-bullets { list-style: none; margin-bottom: 20px; }
.d-bullets li { padding: 5px 0 5px 18px; position: relative; color: var(--gray); font-size: 14.5px; }
.d-bullets li::before { content: "•"; position: absolute; left: 2px; color: var(--red); font-weight: 800; }
.d-buy { margin-top: 4px; padding: 20px; border-radius: 10px; background: linear-gradient(135deg, #fff5f5, #fffdfc); border: 1px solid rgba(200, 32, 40, .28); }
.d-buy-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.d-buy .btn-lg { font-size: 16px; padding: 13px 28px; }
.d-buy-contacts { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 15px; padding-top: 14px; border-top: 1px dashed rgba(200, 32, 40, .35); color: var(--gray); font-size: 14px; }
.d-buy-contacts b { color: var(--dark); font-size: 15px; margin-right: 4px; }
.d-buy-note { font-size: 12.5px; color: #999; margin: 10px 0 0; }
.sec-title { font-size: 19px; margin: 34px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--red); }
.sec-note { font-size: 13px; color: #888; margin-top: 10px; }
.spec-table { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.spec-table tbody { display: contents; }
.spec-table tr { display: grid; grid-template-columns: 150px 1fr; background: #fff; }
.spec-table th, .spec-table td { border: none; padding: 12px 16px; font-size: 14px; text-align: left; }
.spec-table th { background: var(--light); color: var(--gray); font-weight: 600; }
.spec-table td { color: var(--dark); }
.d-full { list-style: none; }
.d-full li { padding: 6px 0 6px 18px; position: relative; color: var(--gray); }
.d-full li::before { content: "•"; position: absolute; left: 2px; color: var(--red); font-weight: 800; }
.drawing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 8px; }
.drawing-grid a { border: 1px solid var(--border); border-radius: 8px; padding: 8px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.drawing-grid img { width: 100%; height: 150px; object-fit: contain; }
.drawing-grid a:hover { border-color: var(--red); box-shadow: 0 2px 10px rgba(200, 32, 40, .08); }

/* ---------- dimension drawings (official PDF manual pages) ---------- */
.dim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 8px; }
.dim-item { display: block; border: 1px solid var(--border); border-radius: 8px; padding: 10px; background: #fff; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.dim-item:hover { border-color: var(--red); box-shadow: 0 2px 10px rgba(200, 32, 40, .12); transform: translateY(-1px); }
.dim-item img { width: 100%; height: 240px; object-fit: cover; object-position: top center; background: #f4f4f4; border-radius: 4px; }
.dim-item span { display: block; margin-top: 8px; text-align: center; font-size: 13px; color: var(--gray); }
.dim-item:hover span { color: var(--red); }

/* ---------- v2: compare bar + modal ---------- */
.compare-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(43,43,43,.97); color: #fff; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  box-shadow: 0 -4px 18px rgba(0,0,0,.25);
}
.compare-thumbs { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; min-width: 0; }
.cmp-thumb { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border-radius: 6px; padding: 5px 8px; }
.cmp-thumb img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 3px; }
.cmp-name { font-size: 12.5px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-x { border: none; background: none; color: #fff; font-size: 16px; cursor: pointer; line-height: 1; padding: 0 2px; }
.cmp-x:hover { color: #ffb4bc; }
.compare-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.modal-mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal { position: relative; background: #fff; border-radius: 8px; max-width: 1080px; width: 100%; max-height: 88vh; overflow: auto; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.modal-close { position: absolute; top: 10px; right: 14px; border: none; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: #999; z-index: 2; }
.modal-close:hover { color: var(--red); }
.modal-body { padding: 26px 24px 24px; }
.cmp-wrap { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp-table th, .cmp-table td { border: 1px solid var(--border); padding: 10px 12px; font-size: 13.5px; vertical-align: top; text-align: left; }
.cmp-table .cmp-attr { background: var(--light); color: var(--gray); font-weight: 600; white-space: nowrap; width: 110px; }
.cmp-hd img.cmp-img { width: 100%; max-height: 90px; object-fit: contain; margin-bottom: 6px; }
.cmp-hd-name { font-weight: 600; font-size: 13px; line-height: 1.35; }
.cmp-bl { list-style: none; }
.cmp-bl li { padding: 2px 0 2px 14px; position: relative; }
.cmp-bl li::before { content: "•"; position: absolute; left: 0; color: var(--red); font-weight: 800; }
.cmp-act { font-size: 13px; margin-right: 8px; white-space: nowrap; }

/* ---------- v2: inquiry form ---------- */
.inquiry-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 34px; }
.inquiry-form { display: grid; gap: 16px; }
.inquiry-form .f-row { display: grid; grid-template-columns: 140px 1fr; align-items: start; gap: 12px; }
.inquiry-form .f-row label { padding-top: 13px; font-size: 14px; color: var(--gray); font-weight: 600; }
.inquiry-form input, .inquiry-form textarea {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 15px;
  font-family: inherit; outline: none; width: 100%; min-height: 46px;
}
.inquiry-form input:focus, .inquiry-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,32,47,.10); }
.inquiry-form textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.inquiry-form .f-actions { grid-column: 2; display: flex; gap: 10px; flex-wrap: wrap; }
.form-tip { grid-column: 2; font-size: 13px; color: #3a7d44; background: #f0f7f0; border-radius: 4px; padding: 8px 12px; }
.inquiry-side { background: var(--light); border-radius: 6px; padding: 18px 20px; font-size: 14px; align-self: start; }
.inquiry-side h3 { font-size: 16px; margin-bottom: 10px; }
.inquiry-side p { margin-bottom: 8px; color: var(--gray); }
.inquiry-side .note { font-size: 12.5px; color: #999; margin-top: 12px; }

/* ---------- v2: responsive ---------- */
@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .d-gallery { position: static; }
  .d-buy-btns .btn { flex: 1; text-align: center; }
  .inquiry-wrap { grid-template-columns: 1fr; }
  .inquiry-form .f-row { grid-template-columns: 1fr; gap: 4px; }
  .inquiry-form .f-actions, .form-tip { grid-column: 1; }
}

.d-func-gallery { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.d-func-thumb { background: #fafafa; border: 1px solid var(--border); border-radius: 6px; padding: 10px; text-align: center; cursor: zoom-in; transition: transform 0.15s; }
.d-func-thumb:hover { transform: scale(1.02); border-color: var(--red); }
.d-func-thumb img { max-width: 100%; max-height: 320px; object-fit: contain; display: block; margin: 0 auto; }
.d-func-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out; }
.d-func-lightbox.open { display: flex; }
.d-func-lightbox img { max-width: 95vw; max-height: 95vh; object-fit: contain; background: #fff; padding: 10px; }

/* ---- 资料下载区 (downloads.js) ---- */
.dl-section { margin-top: 42px; }
.dl-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border: 1px solid #d7dbe0; border-radius: 8px;
  background: #f7f9fb; color: #1f2937; text-decoration: none;
  font-size: 15px; font-weight: 500; transition: all .2s;
}
.dl-btn:hover { border-color: #0b5fff; color: #0b5fff; background: #fff; box-shadow: 0 2px 10px rgba(11,95,255,.12); }
.dl-btn.dl-request { border-style: dashed; border-color: #d9b45b; background: #fffdf6; color: #8a6d1f; cursor: pointer; }
.dl-btn.dl-request:hover { border-color: #b98a1e; color: #8a6d1f; background: #fffaf0; box-shadow: 0 2px 10px rgba(185,138,30,.14); }
.dl-btn.dl-request .dl-file { color: #a08a4a; }
.dl-btn .dl-ico { font-size: 20px; line-height: 1; }
.dl-btn .dl-file { font-size: 12px; color: #8a929c; font-weight: 400; }
.dl-btn .dl-size { font-size: 12px; color: #8a929c; }
@media (max-width: 640px) {
  .dl-links { flex-direction: column; align-items: stretch; }
  .dl-btn { justify-content: flex-start; }
}

/* 型号总表区块 */
.model-list-sec { margin-top: 28px; }
.model-table thead, .model-table tbody { display: contents; }
.model-table thead tr, .model-table tbody tr { grid-template-columns: 1fr 110px; }
.model-table thead th { background: var(--red); color: #fff; font-weight: 600; }
.model-table td .ml-note { color: #999; font-size: 12px; margin-left: 4px; }
@media (max-width: 640px) { .model-table thead tr, .model-table tbody tr { grid-template-columns: 1fr 84px; } }


/* Image fallback: ddhc-img-guard adds .noimg when an image fails to load */
.noimg{background:repeating-linear-gradient(45deg,#fafafa,#fafafa 12px,#f2f2f2 12px,#f2f2f2 24px);color:#aaa;font-size:12.5px;text-align:center;display:flex;align-items:center;justify-content:center;min-height:120px;}
