/* ===========================================================
   华森板材官网 · 扩展样式（新增页面/组件，沿用主风格变量）
   =========================================================== */

/* ---------- 导航语言切换 ---------- */
.nav-lang {
  font-size: 12px; padding: 4px 12px; border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px; color: #e6e0d6; margin-left: 2px; transition: .25s;
}
.nav-lang:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: var(--gold); }

/* ---------- 内页页头横幅 ---------- */
.page-hero {
  background: linear-gradient(90deg, #26221c 0%, #3a332a 100%);
  color: #fff; padding: 52px 20px 46px; text-align: center;
}
.page-hero .en { color: var(--gold); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.page-hero h1 { font-size: 30px; margin-top: 6px; letter-spacing: 1px; }
.page-hero p { color: #cfc7bb; margin-top: 10px; font-size: 14px; max-width: 720px; margin-left:auto; margin-right:auto; }

.breadcrumb { font-size: 12.5px; color: var(--muted); padding: 16px 0 0; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { margin: 0 6px; color: #c9c1b4; }

/* ---------- 产品列表 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap: 24px; }
.product-card { background: var(--white); border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; transition:.3s; display:flex; flex-direction:column; }
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.thumb { position:relative; aspect-ratio:4/3; overflow:hidden; background:var(--bg-2); }
.thumb img { width:100%; height:100%; object-fit:cover; transition:.5s; }
.product-card:hover .thumb img { transform: scale(1.05); }
.tag { position:absolute; left:12px; top:12px; background:rgba(28,26,23,.78); color:#fff; font-size:11px; padding:4px 10px; border-radius:4px; }
.card-body { padding:16px 18px 20px; display:flex; flex-direction:column; flex:1; }
.card-body h3 { font-size:15.5px; margin-bottom:2px; }
.card-body .en { font-size:11.5px; color:var(--muted); margin-bottom:10px; }
.spec-line { font-size:12.5px; color:var(--ink-2); margin:3px 0; display:flex; gap:6px; }
.spec-line b { font-weight:600; color:var(--muted); min-width:42px; }
.card-body .more { margin-top:auto; padding-top:14px; color:var(--brand); font-weight:600; font-size:13px; }

/* 类目筛选 */
.filter { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-bottom:30px; }
.filter button, .filter a { padding:8px 18px; border-radius:999px; border:1px solid var(--line); background:var(--white); font-size:13px; color:var(--ink-2); cursor:pointer; transition:.25s; font-family:inherit; }
.filter button:hover, .filter a:hover { border-color:var(--brand); color:var(--brand); }
.filter button.active, .filter a.active { background:var(--ink); border-color:var(--ink); color:#fff; }
.filter a.sub { font-size:12.5px; padding:7px 14px; color:var(--muted); }
.filter a.sub.active { background:var(--brand); border-color:var(--brand); color:#fff; }

/* ---------- 产品详情 ---------- */
.detail { display:grid; grid-template-columns:1fr 1fr; gap:40px; padding:24px 0 40px; }
.gallery-main { border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:var(--bg-2); cursor:zoom-in; }
.gallery-main img { width:100%; aspect-ratio:4/3; object-fit:cover; }
.gallery-thumbs { display:flex; gap:12px; margin-top:12px; flex-wrap:wrap; }
.gallery-thumbs div { width:92px; aspect-ratio:4/3; border:2px solid transparent; border-radius:8px; overflow:hidden; cursor:pointer; background:var(--bg-2); }
.gallery-thumbs div.on { border-color:var(--brand); }
.gallery-thumbs img { width:100%; height:100%; object-fit:cover; }
.detail-info h1 { font-size:26px; line-height:1.35; }
.detail-info .en { font-size:13px; color:var(--muted); margin-bottom:14px; }
.detail-info .summary { font-size:14px; color:var(--ink-2); padding:14px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.key-param { display:grid; grid-template-columns:1fr 1fr; gap:10px 18px; margin:18px 0; }
.key-param div { font-size:13.5px; }
.key-param span { color:var(--muted); }
.detail-btns { display:flex; gap:12px; margin-top:6px; flex-wrap:wrap; }
.detail-btns .btn { flex:1; min-width:140px; text-align:center; }
.btn { display:inline-block; padding:12px 26px; border-radius:6px; font-size:14px; font-weight:600; transition:.25s; border:1px solid transparent; }
.btn-primary { background:var(--gold); color:#2a2118; }
.btn-primary:hover { background:#d9b279; transform:translateY(-1px); }
.btn-dark { background:var(--ink); color:#fff; }
.btn-dark:hover { background:#000; }

.tabs { display:flex; gap:4px; border-bottom:1px solid var(--line); margin-bottom:22px; flex-wrap:wrap; }
.tabs button { padding:10px 20px; background:none; border:none; border-bottom:2px solid transparent; font-family:inherit; font-size:14px; color:var(--muted); cursor:pointer; transition:.2s; }
.tabs button.active { color:var(--ink); border-color:var(--brand); font-weight:600; }
.panel { display:none; }
.panel.active { display:block; }
.spec-table { width:100%; border-collapse:collapse; font-size:13.5px; }
.spec-table th, .spec-table td { border:1px solid var(--line); padding:10px 14px; text-align:left; }
.spec-table th { background:var(--bg-2); width:170px; color:var(--ink-2); font-weight:600; }
.feature-list li { padding:8px 0 8px 22px; position:relative; font-size:14px; color:var(--ink-2); }
.feature-list li::before { content:"✓"; position:absolute; left:0; color:var(--brand); font-weight:700; }
.chips { display:flex; gap:8px; flex-wrap:wrap; }
.chips span { font-size:12.5px; padding:5px 12px; background:var(--bg-2); border-radius:999px; color:var(--ink-2); }
.related-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:20px; }

/* ---------- 图片灯箱 ---------- */
.lightbox { position:fixed; inset:0; z-index:999; background:rgba(0,0,0,.9); display:none; align-items:center; justify-content:center; }
.lightbox.open { display:flex; }
.lightbox img { max-width:90%; max-height:90%; border-radius:6px; }
.lightbox .lb-close { position:absolute; top:18px; right:26px; color:#fff; font-size:34px; cursor:pointer; line-height:1; }
.lightbox .lb-prev, .lightbox .lb-next { position:absolute; top:50%; transform:translateY(-50%); color:#fff; font-size:44px; cursor:pointer; padding:10px; user-select:none; }
.lightbox .lb-prev { left:18px; } .lightbox .lb-next { right:18px; }

/* ---------- 案例 / 新闻 / 证书 卡片 ---------- */
.media-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:24px; }
.media-card { background:var(--white); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; transition:.3s; display:flex; flex-direction:column; }
.media-card:hover { box-shadow:var(--shadow-hover); transform:translateY(-4px); }
.media-card .mc-media { aspect-ratio:16/10; overflow:hidden; background:var(--bg-2); }
.media-card .mc-media img { width:100%; height:100%; object-fit:cover; transition:.5s; }
.media-card:hover .mc-media img { transform:scale(1.05); }
.mc-body { padding:16px 18px 20px; display:flex; flex-direction:column; flex:1; }
.mc-body .mc-meta { font-size:12px; color:var(--muted); margin-bottom:6px; display:flex; gap:12px; flex-wrap:wrap; }
.mc-body h3 { font-size:16px; margin-bottom:6px; }
.mc-body p { font-size:13.5px; color:var(--ink-2); flex:1; }
.mc-body .more { margin-top:12px; color:var(--brand); font-weight:600; font-size:13px; }
.mc-body .cat-pill { display:inline-block; font-size:11px; padding:3px 10px; background:var(--bg-2); color:var(--ink-2); border-radius:999px; }

/* 证书网格（居中图片） */
.cert-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:20px; }
.cert-card { background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:14px; text-align:center; transition:.3s; }
.cert-card:hover { box-shadow:var(--shadow-hover); transform:translateY(-3px); }
.cert-card .cert-img { aspect-ratio:3/4; background:var(--bg-2); border-radius:8px; overflow:hidden; cursor:zoom-in; }
.cert-card .cert-img img { width:100%; height:100%; object-fit:cover; }
.cert-card h4 { font-size:14px; margin:12px 0 6px; }
.cert-card .cert-dl { font-size:12.5px; color:var(--brand); font-weight:600; }

/* ---------- 文章详情 ---------- */
.article { max-width:820px; margin:0 auto; }
.article h1 { font-size:26px; line-height:1.4; }
.article .art-meta { color:var(--muted); font-size:13px; margin:12px 0 20px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.article .art-body { font-size:15px; color:var(--ink-2); line-height:1.9; }
.article .art-body img { max-width:100%; border-radius:8px; margin:14px 0; }
.article .art-body p { margin:12px 0; }
.article .art-body h3 { margin:22px 0 10px; color:var(--ink); }
.article .art-body ul { list-style:disc; padding-left:22px; margin:10px 0; }

/* ---------- 关于我们 / 联系 ---------- */
.about-grid { display:grid; grid-template-columns:1.1fr 0.9fr; gap:44px; align-items:start; }
.about-grid .about-list { display:grid; grid-template-columns:1fr 1fr; gap:12px 20px; margin-top:18px; }
.about-grid .about-list li { font-size:13.5px; color:var(--ink-2); padding-left:18px; position:relative; }
.about-grid .about-list li::before { content:""; position:absolute; left:0; top:9px; width:6px; height:6px; background:var(--gold); border-radius:50%; }
.contact-grid { display:grid; grid-template-columns:0.9fr 1.1fr; gap:44px; }
.contact-info li { display:flex; gap:12px; padding:12px 0; border-bottom:1px dashed var(--line); font-size:14px; }
.contact-info li b { color:var(--muted); font-weight:600; min-width:72px; }
.form { background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:26px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.field { margin-bottom:14px; }
.field label { display:block; font-size:12.5px; color:var(--muted); margin-bottom:6px; }
.field input, .field select, .field textarea { width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:6px; font-family:inherit; font-size:13.5px; color:var(--ink); background:#fff; transition:.2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(139,94,52,.1); }
.field textarea { resize:vertical; min-height:96px; }
.form button { width:100%; border:none; cursor:pointer; font-family:inherit; }
.form-note { font-size:12px; color:var(--muted); margin-top:10px; text-align:center; }
.captcha-row { display:flex; gap:12px; align-items:center; }
.captcha-row .captcha-img { height:42px; width:120px; cursor:pointer; border:1px solid var(--line); border-radius:6px; }

/* 地图 */
.map-box { border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; margin-top:20px; }
.map-box iframe { display:block; width:100%; height:420px; border:0; }

/* ---------- 询盘成功提示 ---------- */
.form-success { background:#eaf6ee; color:#2f7a47; border:1px solid #bcddc6; padding:14px 16px; border-radius:8px; font-size:14px; margin-top:8px; }
.form-error { background:#fbeceb; color:#b23b35; border:1px solid #f2c8c5; padding:14px 16px; border-radius:8px; font-size:14px; margin-top:8px; }

/* ---------- 分页 ---------- */
.pagination { display:flex; gap:8px; justify-content:center; margin-top:36px; flex-wrap:wrap; }
.pagination a, .pagination span { padding:8px 14px; border:1px solid var(--line); border-radius:6px; font-size:13px; background:var(--white); color:var(--ink-2); }
.pagination a:hover { border-color:var(--brand); color:var(--brand); }
.pagination .cur { background:var(--ink); color:#fff; border-color:var(--ink); }
.pagination .disabled { opacity:.4; pointer-events:none; }

/* ---------- 空状态 ---------- */
.empty { text-align:center; color:var(--muted); padding:60px 0; font-size:14px; }

/* ---------- 响应式 ---------- */
@media (max-width:960px){
  .about-grid, .contact-grid, .detail { grid-template-columns:1fr; gap:28px; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:640px){
  .nav { width:100%; order:3; margin-left:0; overflow-x:auto; }
  .header-cta { display:none; }
  .form-row, .key-param { grid-template-columns:1fr; }
  .page-hero h1 { font-size:24px; }
  .footer-grid { grid-template-columns:1fr; }
}
