/* site-common.css - 详情页统一公共样式 v2
   覆盖全部46个模板class，100%覆盖 */

/* ===== body基础reset（覆盖旧style.css全局污染） ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: #fff;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
div { display: block; height: auto; }
p { color: #555; font-size: 15px; margin-bottom: 16px; text-shadow: none; }
img { max-width: 100%; height: auto; width: auto; object-fit: contain; }
a { color: #0a58ca; text-decoration: none; font-size: inherit; padding: 0; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: #222; line-height: 1.3; text-shadow: none; }
ul, li { list-style: none; margin: 0; padding: 0; }
table { border-collapse: collapse; }
td, th { padding: 8px 12px; }

/* ===== 基础布局 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 40px 0;
}
.section.gray {
  background: #f7f8fa;
}

/* ===== 面包屑 + 返回按钮 ===== */
.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: #666;
  border-bottom: 1px solid #eee;
}
.breadcrumb a {
  color: #0a58ca;
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb #backToCenter {
  float: right;
  background: #f0f4f8;
  border: 1px solid #d0d8e0;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
  color: #333;
  text-decoration: none;
}
.breadcrumb #backToCenter:hover { background: #e2e8f0; }

/* ===== 产品概览：左图右信息 ===== */
.pd-overview {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.pd-img {
  flex: 0 0 45%;
}
.pd-img img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.pd-info {
  flex: 1;
}
.pd-info h1 {
  font-size: 26px;
  margin: 0 0 16px;
  color: #222;
}
.pd-info p {
  line-height: 1.8;
  color: #555;
  margin: 0 0 12px;
}
.info-row {
  padding: 10px 0;
  border-bottom: 1px dashed #e5e5e5;
  font-size: 15px;
  color: #333;
}

/* ===== 区块标题 ===== */
.section h2 {
  font-size: 22px;
  margin: 0 0 24px;
  padding-left: 12px;
  border-left: 4px solid #0a58ca;
  color: #222;
}

/* ===== 产品特征 ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.feature h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: #222;
}
.feature p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}
.feat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #e8f0fe;
  border-radius: 8px;
  font-size: 18px;
  margin-bottom: 10px;
  font-style: normal;
}

/* ===== 花色系列 ===== */
.sku-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.sku-card {
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.sku-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.sku-thumb {
  width: 100%;
  height: 140px;
  overflow: hidden;
}
.sku-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sku-code {
  font-size: 12px;
  color: #999;
  padding: 6px 8px 2px;
}
.sku-name {
  font-size: 13px;
  color: #333;
  padding: 0 8px 8px;
}
.sku-warning {
  color: #e67e22;
  font-size: 13px;
  margin: 0 0 16px;
}

/* ===== 技术参数表 ===== */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.spec-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}
.spec-table td:first-child {
  width: 30%;
  font-weight: 600;
  color: #555;
  background: #fafbfc;
}
.generic-note {
  color: #999;
  font-size: 13px;
  margin: 0 0 12px;
}

/* ===== FAQ ===== */
.faq-item {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.faq-item h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: #222;
}
.faq-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* ===== CTA联系区 ===== */
.cta {
  text-align: center;
  padding: 20px 0;
}
.cta h2 {
  border: none;
  padding: 0;
  font-size: 22px;
  margin: 0 0 8px;
}
.cta p {
  color: #666;
  margin: 0 0 20px;
}
.pd-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.phone-num {
  font-size: 28px;
  font-weight: 700;
  color: #c0392b;
}
.share-trigger,
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #0a58ca;
  background: #0a58ca;
  color: #fff;
  text-decoration: none;
  line-height: 1.5;
}
.btn-outline {
  background: transparent;
  color: #0a58ca;
}
.share-trigger:hover,
.btn:hover {
  opacity: .9;
}

/* ===== 相关产品 ===== */
.rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.rel-pd {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: transform .2s;
  display: block;
}
.rel-pd:hover {
  transform: translateY(-2px);
}
.rp-img {
  width: 100%;
  height: 140px;
  overflow: hidden;
}
.rp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rp-body {
  padding: 12px;
}
.rp-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.rp-sub {
  font-size: 12px;
  color: #999;
}

/* ===== 分享面板 ===== */
.share-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 998;
}
.share-panel {
  display: none;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  z-index: 999;
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
}
.share-panel.open,
.share-mask.open {
  display: block;
}
.share-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.share-panel-header h3 {
  margin: 0;
  font-size: 18px;
}
.share-panel-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}
.share-options {
  display: flex;
  gap: 20px;
  justify-content: space-around;
}
.share-option {
  border: none;
  background: none;
  cursor: pointer;
  text-align: center;
}
.share-option-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 8px;
  color: #fff;
}
.share-option-icon.wechat { background: #07c160; }
.share-option-icon.copy { background: #0a58ca; }
.share-option-icon.qrcode { background: #7b68ee; }
.share-option span {
  font-size: 13px;
  color: #555;
}
.share-panel-footer {
  margin-top: 20px;
  text-align: center;
}
.share-cancel-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #f0f0f0;
  font-size: 15px;
  cursor: pointer;
}
.share-toast {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.75);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  z-index: 1000;
  font-size: 14px;
}
.share-toast.show {
  display: block;
}

/* ===== reveal 动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s, transform .6s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .pd-overview {
    flex-direction: column;
  }
  .pd-img {
    flex: none;
  }
  .pd-img img {
    height: 320px;
  }
  .features,
  .sku-grid,
  .rel-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .section {
    padding: 24px 0;
  }
  .breadcrumb #backToCenter {
    float: none;
    display: inline-block;
    margin-top: 8px;
  }
}

/* ===== 网站变量 ===== */
:root {
  --primary: #0f4c81;
  --primary-dark: #0a3558;
  --accent: #e8862d;
  --text-light: #6b7684;
  --border: #e3e8ef;
  --bg-gray: #f4f6f9;
}

/* ===== 顶部导航header ===== */
.header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(15, 76, 129, .08);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
  padding: 0 20px;
}
.header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.header .logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.header .logo-text .cn {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 1px;
  white-space: nowrap;
}
.header .nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.header .nav a {
  color: #333;
  text-decoration: none;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 6px;
}
.header .nav a:hover {
  color: var(--primary);
  background: var(--bg-gray);
}
.header .nav-cta {
  background: var(--primary);
  color: #fff !important;
  border-radius: 6px;
}
.header .nav-cta:hover {
  background: var(--primary-dark);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 3px;
}

/* ===== 底部footer ===== */
.footer {
  background: #0f3a5e;
  color: #c9dbe8;
  font-size: 13.5px;
  margin-top: 40px;
}
.footer-top {
  padding: 40px 0 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}
.footer h4 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.footer .f-brand p {
  margin-top: 10px;
  line-height: 1.8;
  color: #8fa8be;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer li {
  margin-bottom: 8px;
}
.footer li a {
  color: #c9dbe8;
  text-decoration: none;
}
.footer li a:hover {
  color: #fff;
}
.footer .f-contact li {
  display: flex;
  gap: 6px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 14px 0;
  text-align: center;
  font-size: 12.5px;
  color: #7d96ad;
}
.footer-bottom a {
  color: #a9c1d8;
}

@media (max-width: 900px) {
  .header .container {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 16px;
  }
  .header .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  .header .nav.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ===== blocks内容区块统一样式（原页面个性化区块） ===== */
.section-head { text-align: center; margin-bottom: 28px; }
.section-head .en {
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  color: #0a58ca; font-weight: 600; margin-bottom: 8px;
}
.section-head h2 { font-size: 26px; margin: 0 0 10px; color: #1a1a1a; }
.section-head p { color: #666; max-width: 720px; margin: 0 auto; }
.section-title { font-size: 22px; margin: 0 0 16px; }
.section-desc { color: #666; margin: 0 0 16px; }

/* CTA区块 */
.cta-block { text-align: center; padding: 20px 0; }
.cta-block h2 { font-size: 24px; margin: 0 0 10px; }
.cta-block p { color: #666; margin-bottom: 18px; }
.pd-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; }
.btn { display: inline-block; padding: 10px 22px; border-radius: 6px; font-size: 15px; cursor: pointer; border: none; }
.btn-outline { background: #fff; border: 1px solid #0a58ca; color: #0a58ca; }

/* 特征网格 */
.feat-grid, .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.feature, .feat-item { text-align: center; padding: 20px 14px; background: #fff; border-radius: 8px; }
.feature .icon, .feat-item .icon { font-size: 32px; margin-bottom: 10px; display: block; }
.feature h3, .feat-item h3 { font-size: 16px; margin: 0 0 8px; }
.feature p, .feat-item p { color: #666; font-size: 14px; margin: 0; }

/* 花色卡（多套class统一） */
.sku-grid, .color-grid, .colour-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px;
}
.sku-card, .color-card, .colour-item {
  border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden; background: #fff;
  text-align: center; cursor: pointer;
}
.sku-thumb, .color-swatch, .colour-swatch { width: 100%; height: 100px; overflow: hidden; }
.sku-thumb img, .color-swatch img, .colour-swatch img { width: 100%; height: 100%; object-fit: cover; }
.sku-code, .color-code, .colour-code { font-size: 12px; color: #999; padding: 6px 4px 2px; }
.sku-name, .color-name, .colour-name { font-size: 13px; color: #333; padding: 0 4px 8px; }
.sku-spec { font-size: 12px; color: #888; padding: 0 4px 8px; }
.color-swatch-full { width: 100%; height: 140px; border-radius: 8px; margin-bottom: 8px; }
.color-list { display: flex; flex-wrap: wrap; gap: 12px; }

/* 参数表 */
.spec-table, .profile-table { width: 100%; border-collapse: collapse; margin: 10px 0; background: #fff; }
.spec-table th, .spec-table td, .profile-table th, .profile-table td {
  border: 1px solid #e5e7eb; padding: 10px 14px; text-align: left; font-size: 14px;
}
.spec-table th, .profile-table th { background: #f7f8fa; font-weight: 600; width: 30%; }

/* 应用场景/notice列表 */
.notice-list { list-style: none; padding: 0; margin: 0; max-width: 800px; margin-left: auto; margin-right: auto; }
.notice-list li {
  padding: 12px 16px; border-left: 3px solid #0a58ca; background: #f7faff;
  margin-bottom: 10px; border-radius: 0 6px 6px 0;
}
.scene-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.structure-wrap { max-width: 900px; margin: 0 auto; }

/* med-cols */
.med-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .med-cols { grid-template-columns: 1fr; } }

/* 信息行 */
.info-row { padding: 6px 0; border-bottom: 1px dashed #eee; }

/* 灯箱（main.js已有兜底，这里补布局） */
.color-viewer { display: none; }


/* ===== 产品中心列表页样式（v=20261004g 新增，替代旧style.css） ===== */

/* 概览区大容器 */
#facetOverviewWrap { padding: 20px 0 10px; }
.ov-cat-head { display:flex; align-items:baseline; gap:10px; margin:28px 0 14px; padding-bottom:8px; border-bottom:2px solid #e8eef5; }
.ov-cat-name { font-size:18px; font-weight:800; color:#1a1a1a; }
.ov-cat-count { font-size:13px; color:#999; font-weight:400; }

/* 每个品牌概览块 */
.ov-brand { margin-bottom:8px; }
.ov-brand-head { display:flex; align-items:baseline; justify-content:space-between; margin:14px 0 10px; }
.ov-brand-name { font-size:16px; font-weight:700; color:#0f4c81; }
.ov-brand-count { font-size:12px; color:#999; }

/* 概览卡片grid：每行4个 */
.facet-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.facet-card { display:block; background:#fff; border:1px solid #e8eef5; border-radius:10px; overflow:hidden; text-decoration:none; color:#333; transition:transform .2s, box-shadow .2s; }
.facet-card:hover { transform:translateY(-3px); box-shadow:0 6px 18px rgba(15,76,129,.12); }
.facet-card .fg-thumb { width:100%; height:150px; overflow:hidden; background:#f0f4f8; }
.facet-card .fg-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.facet-card .fg-body { padding:12px 14px; }
.facet-card .fg-brand { font-size:11px; color:#0a58ca; font-weight:600; margin-bottom:4px; }
.facet-card .fg-name { font-size:14px; font-weight:700; color:#1a1a1a; margin-bottom:2px; line-height:1.3; }
.facet-card .fg-series { font-size:12px; color:#888; margin-bottom:6px; }
.facet-card .fg-tags { display:flex; flex-wrap:wrap; gap:4px; }
.facet-card .fg-tags span { font-size:11px; color:#666; background:#f0f4f8; padding:2px 8px; border-radius:10px; }

/* 查看更多按钮 */
.ov-more-wrap { text-align:center; margin:16px 0 8px; }
.ov-more { display:inline-block; padding:8px 26px; border:1px solid #0a58ca; color:#0a58ca; border-radius:20px; font-size:13px; font-weight:600; text-decoration:none; transition:.2s; }
.ov-more:hover { background:#0a58ca; color:#fff; }

/* 品牌面板（完整列表） */
.brand-panel { display:none; max-width:1200px; margin:0 auto; }
.brand-panel.active { display:block; }
.brand-panel .section-head { text-align:left; margin-bottom:20px; }
.type-group { display:none; }
.type-group.active { display:block; }
.type-nav { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin:0 0 16px; padding-bottom:6px; }
.type-nav a { padding:4px 14px; border-radius:18px; border:1px solid #d8e0e8; font-size:12px; font-weight:600; color:#666; background:#fff; cursor:pointer; text-decoration:none; transition:.2s; }
.type-nav a:hover { color:#0a58ca; border-color:#0a58ca; }
.type-nav a.active { background:#0a58ca; color:#fff; border-color:#0a58ca; }

/* 分类筛选tab（brandTabs） */
.cat-tabs { display:flex; flex-wrap:wrap; gap:6px; justify-content:center; margin:0 0 20px; }
.cat-tabs a { padding:5px 16px; border-radius:20px; border:1px solid #d8e0e8; font-size:12px; font-weight:600; color:#666; background:#fff; text-decoration:none; cursor:pointer; transition:.2s; }
.cat-tabs a:hover, .cat-tabs a.active { background:#0a58ca; color:#fff; border-color:#0a58ca; }

/* 系列卡片（brand-panel里的完整产品卡） */
.series-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.series-card { background:#fff; border:1px solid #e8eef5; border-radius:10px; overflow:hidden; display:block; text-decoration:none; color:#333; transition:transform .25s, box-shadow .25s; }
.series-card:hover { transform:translateY(-4px); box-shadow:0 8px 22px rgba(15,76,129,.12); }
.series-card .sc-thumb { height:160px; overflow:hidden; background:#f0f4f8; }
.series-card .sc-thumb img { width:100%; height:100%; object-fit:cover; display:block; transition:.4s; }
.series-card:hover .sc-thumb img { transform:scale(1.05); }
.series-card .sc-info { padding:14px; }
.series-card .sc-info h3 { font-size:15px; font-weight:700; color:#1a1a1a; margin-bottom:4px; }
.series-card .sc-info p { font-size:12.5px; color:#888; }
.series-card .sc-info .more { display:inline-block; margin-top:8px; color:#e8862d; font-size:13px; font-weight:600; }

/* 分类标签 */
.cat-label .cl-name { font-size:18px; font-weight:700; color:#1a1a1a; }
.cat-label .cl-en { font-size:12px; letter-spacing:2px; color:#e8862d; text-transform:uppercase; font-weight:700; }

/* 响应式：平板2列，手机1-2列 */
@media (max-width:900px) {
  .facet-grid, .series-cards { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:560px) {
  .facet-grid, .series-cards { grid-template-columns:1fr; }
  .ov-cat-name { font-size:16px; }
}
