/* ============================================================
   BESTBRIGHT 弘熙 — 内页专属样式
   ============================================================ */

/* ---------- 内页顶部 Banner ---------- */
.page-banner {
  position: relative; margin-top: var(--header-h); min-height: 330px;
  background: linear-gradient(115deg, #8f1812 0%, #bc221a 55%, #cf4632 100%);
  display: flex; align-items: center; overflow: hidden; color: #fff;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 45%, rgba(255,255,255,.18) 0, transparent 40%),
              radial-gradient(circle at 18% 110%, rgba(0,0,0,.2) 0, transparent 45%);
}
.page-banner::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 420px; height: 420px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255,255,255,.05), 0 0 0 120px rgba(255,255,255,.04);
}
.page-banner .container { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 40px; }
.breadcrumb { font-size: 12px; color: rgba(255,255,255,.7); letter-spacing: 1px; margin-bottom: 20px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 10px; opacity: .6; }
.page-banner h1 { font-size: 46px; font-weight: 700; letter-spacing: 5px; line-height: 1.25; }
.page-banner .pb-en { display: block; font-size: 14px; letter-spacing: 8px; color: rgba(255,255,255,.55); text-transform: uppercase; margin-top: 10px; }
.page-banner .pb-desc { margin-top: 20px; max-width: 640px; font-size: 15px; line-height: 1.9; color: rgba(255,255,255,.85); }

/* ============================================================
   产品页
   ============================================================ */
.filter-bar { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 42px; }
.filter-btn {
  padding: 10px 26px; border: 1px solid var(--line); background: #fff; color: var(--text);
  font-size: 14px; font-weight: 600; border-radius: 2px; transition: all .3s var(--ease);
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.product-page-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-page-grid .product-card.is-hidden { display: none; }
.product-media .tag {
  position: absolute; left: 14px; top: 14px; z-index: 2; background: var(--brand); color: #fff;
  font-size: 11px; padding: 4px 10px; letter-spacing: 1px; border-radius: 2px;
}

/* 产品参数说明区 */
.spec-strip { background: var(--bg-soft); padding: 84px 0; }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.spec-card { text-align: center; padding: 34px 20px; background: #fff; border: 1px solid var(--line); transition: all .35s var(--ease); }
.spec-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.spec-icon { width: 62px; height: 62px; margin: 0 auto 20px; border: 2px solid var(--brand); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.spec-icon svg { width: 28px; height: 28px; fill: var(--brand); }
.spec-card h3 { font-size: 17px; color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.spec-card p { font-size: 13px; color: var(--muted); line-height: 1.8; }

/* 产品详情弹层 */
.modal { position: fixed; inset: 0; z-index: 2000; background: rgba(20,18,17,.78); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-dialog { background: #fff; width: 100%; max-width: 880px; max-height: 92vh; overflow: auto; border-radius: var(--radius); transform: translateY(20px); transition: transform .3s var(--ease); }
.modal.open .modal-dialog { transform: none; }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
.modal-figure { background: var(--bg-soft); padding: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
/* 产品多图画廊：叠放 + 淡入淡出 */
.gallery { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 360px; }
.gallery-track { position: absolute; inset: 0; }
.gallery-slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.97); transition: opacity .5s ease, transform .5s ease; pointer-events: none;
}
.gallery-slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92);
  box-shadow: 0 4px 14px rgba(0,0,0,.16); color: var(--brand); font-size: 24px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .25s, color .25s;
}
.gallery-nav:hover { background: var(--brand); color: #fff; }
.gallery-prev { left: -6px; }
.gallery-next { right: -6px; }
.gallery-counter {
  position: absolute; bottom: 8px; right: 8px; z-index: 3; background: rgba(27,26,25,.72);
  color: #fff; font-size: 12px; letter-spacing: 1px; padding: 3px 10px; border-radius: 12px;
}
.gallery-dots { display: flex; justify-content: center; gap: 9px; }
.gallery-dot { width: 9px; height: 9px; border-radius: 50%; background: #cdc5bb; transition: all .3s; }
.gallery-dot.is-active { background: var(--brand); transform: scale(1.25); }
.modal-content { padding: 44px 38px; }
.modal-close { position: absolute; right: 18px; top: 14px; font-size: 30px; line-height: 1; color: #999; }
.modal-close:hover { color: var(--brand); }
.modal-dialog { position: relative; }
.modal-content .m-tag { display: inline-block; font-size: 11px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; margin-bottom: 10px; }
.modal-content h3 { font-size: 26px; color: var(--ink); font-weight: 700; margin-bottom: 6px; }
.modal-content .m-code { font-size: 12px; color: var(--muted); letter-spacing: 2px; margin-bottom: 20px; }
.modal-content p { font-size: 14px; line-height: 2; margin-bottom: 18px; }

/* ============================================================
   关于我们页
   ============================================================ */
.story-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; align-items: center; }
.story-visual { position: relative; }
.story-visual > img { width: 100%; border-radius: var(--radius); }
.story-visual::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold-soft); z-index: -1; border-radius: var(--radius); }
.story-copy h3 { font-size: 30px; color: var(--ink); font-weight: 700; line-height: 1.45; margin-bottom: 8px; }
.story-copy .sc-en { font-size: 12px; letter-spacing: 5px; color: var(--gold); text-transform: uppercase; margin-bottom: 24px; }
.story-copy p { font-size: 15px; line-height: 2.1; margin-bottom: 18px; }
.quote-line { border-left: 3px solid var(--brand); padding-left: 20px; margin: 26px 0; font-size: 18px; color: var(--brand); font-weight: 600; line-height: 1.7; }

/* 价值理念卡片 */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value-card { background: #fff; border: 1px solid var(--line); padding: 40px 30px; text-align: center; transition: all .35s var(--ease); }
.value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--gold-soft); }
.value-icon { width: 72px; height: 72px; margin: 0 auto 22px; background: var(--bg-soft); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .35s; }
.value-card:hover .value-icon { background: var(--brand); }
.value-icon svg { width: 34px; height: 34px; fill: var(--brand); transition: fill .35s; }
.value-card:hover .value-icon svg { fill: #fff; }
.value-card h3 { font-size: 20px; color: var(--ink); font-weight: 700; margin-bottom: 12px; }
.value-card p { font-size: 14px; color: var(--muted); line-height: 1.9; }

/* 发展历程时间轴 */
.timeline { position: relative; max-width: 880px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line); transform: translateX(-50%); }
.tl-item { position: relative; width: 50%; padding: 0 46px 46px 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 46px 46px; }
.tl-dot { position: absolute; top: 6px; right: -8px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); z-index: 2; }
.tl-item:nth-child(even) .tl-dot { left: -8px; right: auto; }
.tl-year { font-size: 28px; font-weight: 700; color: var(--brand); line-height: 1.2; margin-bottom: 8px; }
.tl-item h3 { font-size: 18px; color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.tl-item p { font-size: 14px; color: var(--muted); line-height: 1.9; }
.tl-item:nth-child(odd) { text-align: right; }

/* ============================================================
   联系我们页
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: start; }
.contact-form-wrap { background: #fff; border: 1px solid var(--line); padding: 40px; box-shadow: var(--shadow); }
.contact-form-wrap h3 { font-size: 24px; color: var(--ink); font-weight: 700; margin-bottom: 6px; }
.contact-form-wrap .cf-sub { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; color: var(--ink); font-weight: 600; margin-bottom: 8px; }
.form-group label .req { color: var(--brand); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 2px;
  background: #fdfcfb; font-size: 14px; transition: border-color .3s, box-shadow .3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(188,34,26,.08); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-error { color: var(--brand); font-size: 12px; margin-top: 6px; display: none; }
.form-group.invalid .form-error { display: block; }
.form-group.invalid input, .form-group.invalid textarea { border-color: var(--brand); }
.form-submit { display: flex; align-items: center; gap: 20px; margin-top: 8px; flex-wrap: wrap; }
.form-note { font-size: 12px; color: var(--muted); }
.form-success { display: none; margin-top: 20px; padding: 16px 18px; background: #f0f8f1; border-left: 3px solid #4c9c56; color: #2f6b37; font-size: 14px; }
.form-success.show { display: block; }
.form-fail { display: none; margin-top: 20px; padding: 16px 18px; background: #fdf1f0; border-left: 3px solid var(--brand); color: #a2231d; font-size: 14px; }
.form-fail.show { display: block; }
.form-fail a { color: #a2231d; text-decoration: underline; }
.form-submit .btn[disabled] { opacity: .6; cursor: not-allowed; }
/* 反垃圾蜜罐：对真人不可见且不占布局；机器人自动填充后会被拦截 */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.contact-info h3 { font-size: 24px; color: var(--ink); font-weight: 700; margin-bottom: 6px; }
.contact-info .ci-sub { font-size: 13px; color: var(--muted); margin-bottom: 30px; }
.info-list { display: grid; gap: 18px; }
.info-item { display: flex; gap: 18px; align-items: flex-start; padding: 20px; background: var(--bg-soft); border-left: 3px solid var(--brand); }
.info-item .ico { flex: 0 0 42px; height: 42px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.info-item .ico svg { width: 20px; height: 20px; fill: var(--brand); }
.info-item h4 { font-size: 15px; color: var(--ink); font-weight: 700; margin-bottom: 4px; }
.info-item p { font-size: 14px; color: var(--text); line-height: 1.8; }
.info-item a:hover { color: var(--brand); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .product-page-grid { grid-template-columns: repeat(3, 1fr); }
  .story-layout { gap: 46px; }
}

@media (max-width: 900px) {
  .page-banner h1 { font-size: 36px; }
  .story-layout { grid-template-columns: 1fr; gap: 40px; }
  .story-visual { max-width: 600px; }
  .value-grid { grid-template-columns: 1fr; gap: 18px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .timeline::before { left: 16px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 36px 46px; text-align: left; }
  .tl-item:nth-child(odd) { text-align: left; }
  .tl-dot, .tl-item:nth-child(even) .tl-dot { left: 8px; right: auto; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .product-page-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .page-banner { min-height: 260px; }
  .page-banner h1 { font-size: 30px; letter-spacing: 3px; }
  .page-banner .pb-en { font-size: 11px; letter-spacing: 5px; }
  .page-banner .pb-desc { font-size: 13px; }
  .product-page-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .filter-btn { padding: 8px 16px; font-size: 12px; }
  .spec-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .spec-card { padding: 24px 12px; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-figure { padding: 24px; }
  .gallery { max-width: 260px; }
  .modal-content { padding: 30px 24px; }
  .story-copy h3 { font-size: 24px; }
  .quote-line { font-size: 16px; }
  .contact-form-wrap { padding: 26px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
