/* ============================================================
   SECONDARY PAGES — 二级/三级页面专用样式
   ============================================================ */

/* ---------- dropdown nav ---------- */
.nav-dropdown { position: relative; display: flex; align-items: center; }
/* 让下拉触发器与其他导航项同为 block，保证垂直对齐一致 */
.nav-dropdown > a { display: block; }
.nav-dropdown .caret { font-size: 10px; margin-left: 3px; }
.dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 8px 0; opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s; z-index: 110;
}
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-menu a { display: block; padding: 10px 18px; font-size: 13px; color: var(--ink); border: 0; }
.dropdown-menu a:hover { background: var(--sand); color: var(--brown); }

/* ---------- page banner ---------- */
.page-banner { position: relative; min-height: 280px; display: grid; align-items: center; overflow: hidden; background: var(--ink); }
.page-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.page-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28,22,18,.75), rgba(28,22,18,.35)); }
.page-banner-overlay { position: relative; z-index: 1; padding: 60px 0; color: #fff; }
.page-banner-overlay h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 600; margin: 0; letter-spacing: -.01em; }
.page-banner-overlay p { font-size: 15px; font-weight: 300; letter-spacing: .08em; margin: 8px 0 0; opacity: .9; }

/* ---------- breadcrumb ---------- */
.breadcrumb { padding: 18px 0; font-size: 12px; color: var(--muted); }
.breadcrumb a:hover { color: var(--brown); }
.breadcrumb span { margin: 0 8px; }
.breadcrumb span:first-of-type { margin-left: 0; color: var(--line); }

/* ---------- filters ---------- */
.catalog { padding-top: 20px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 24px; }
.filter-tab {
  padding: 10px 20px; border: 1px solid var(--line); border-radius: 4px;
  background: #fff; color: var(--muted); font-size: 13px; font-weight: 500;
  transition: all .2s;
}
.filter-tab:hover { border-color: var(--brown); color: var(--brown); }
.filter-tab.on { background: var(--brown); border-color: var(--brown); color: #fff; }
.filter-row { display: flex; align-items: center; gap: 12px; justify-content: flex-end; margin-bottom: 28px; font-size: 13px; color: var(--muted); }
.filter-row select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 13px; }
.result-count { margin-left: 12px; font-size: 12px; }

/* ---------- product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; transition: box-shadow .25s, transform .25s; }
.product-card:hover { box-shadow: 0 14px 36px rgba(0,0,0,.1); transform: translateY(-4px); }
.product-card-img { position: relative; display: block; overflow: hidden; background: var(--sand); }
.product-card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-code { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); padding: 3px 8px; border-radius: 3px; font-size: 10px; letter-spacing: .06em; color: var(--brown); font-weight: 600; }
.product-card-body { padding: 20px; }
.product-card-body h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.product-card-body h3 a:hover { color: var(--brown); }
.product-spec { font-size: 12px; color: var(--muted); margin: 0 0 14px; min-height: 20px; }
.product-more { color: var(--brown); font-size: 12px; font-weight: 600; }
.empty-state { text-align: center; color: var(--muted); padding: 60px 0; }

/* ---------- product detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.main-image { position: relative; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--sand); }
.main-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }
.zoom-hint { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.6); color: #fff; border: 0; border-radius: 3px; padding: 6px 10px; font-size: 11px; cursor: pointer; }
.thumbs { display: flex; gap: 10px; margin-top: 14px; }
.thumb { width: 78px; height: 78px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: var(--sand); }
.thumb.on { border-color: var(--brown); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 600; margin: 6px 0 18px; line-height: 1.2; }
.product-id { color: var(--brown); font-size: 12px; letter-spacing: .12em; font-weight: 600; margin: 0; }
.detail-desc { color: var(--muted); margin: 0 0 28px; }
.detail-info h2 { font-size: 16px; font-weight: 600; margin: 0 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.spec-list { list-style: none; padding: 0; margin: 0 0 28px; }
.spec-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.spec-list li::before { content: '— '; color: var(--brown); }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary, .btn-outline { display: inline-block; padding: 13px 30px; border-radius: 4px; font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.btn-primary { background: var(--brown); color: #fff; }
.btn-primary:hover { background: var(--brown-dark); }
.btn-outline { border: 1px solid var(--brown); color: var(--brown); }
.btn-outline:hover { background: var(--brown); color: #fff; }
.detail-note { font-size: 12px; color: var(--muted); margin-top: 20px; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.9); display: grid; place-items: center; padding: 40px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 28px; background: transparent; border: 0; color: #fff; font-size: 36px; line-height: 1; cursor: pointer; }

/* ---------- about page ---------- */
.about-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-page-text h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; margin: 8px 0 24px; line-height: 1.2; }
.about-page-text p { color: var(--muted); }
.about-page-img img { width: 100%; border-radius: 4px; }

/* ---------- process ---------- */
.process-section { background: var(--sand); }
.process-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-list li { position: relative; padding-top: 20px; border-top: 2px solid var(--brown); }
.process-list li span { display: block; font-size: 28px; font-weight: 700; color: var(--brown); opacity: .5; margin-bottom: 10px; }
.process-list h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.process-list p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- news list / detail ---------- */
.news-list { display: grid; gap: 40px; }
.news-list-item { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: center; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.news-list-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.news-list-body time { color: var(--brown); font-size: 12px; letter-spacing: .08em; }
.news-list-body h2 { font-size: 22px; font-weight: 600; margin: 8px 0 12px; line-height: 1.35; }
.news-list-body h2 a:hover { color: var(--brown); }
.news-list-body p { color: var(--muted); margin: 0 0 16px; }
.article-inner { max-width: 820px; margin-inline: auto; }
.article time { color: var(--brown); font-size: 12px; letter-spacing: .08em; }
.article h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 600; line-height: 1.25; margin: 12px 0 28px; }
.article img { width: 100%; border-radius: 4px; margin-bottom: 28px; }
.article p { font-size: 16px; line-height: 1.9; color: var(--muted); margin-bottom: 24px; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- back to top ---------- */
.back-top {
  position: fixed; right: 24px; bottom: 92px; z-index: 90;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 18px; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--brown); color: #fff; border-color: var(--brown); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .about-page-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .news-list-item { grid-template-columns: 240px 1fr; }
}
@media (max-width: 720px) {
  .page-banner { min-height: 200px; }
  .product-grid { grid-template-columns: 1fr; }
  .filter-tabs { justify-content: flex-start; }
  .filter-row { justify-content: flex-start; flex-wrap: wrap; }
  .process-list { grid-template-columns: 1fr; }
  .news-list-item { grid-template-columns: 1fr; gap: 18px; }
  .back-top { right: 16px; bottom: 80px; }
}
