/* ============================================================
   量子膜子页面特有样式 — 导航 · 布局 · 文章 · 案例 · 建筑膜 · 联系
   依赖 common.css
   ============================================================ */

/* ---------- Section Common (子页布局) ---------- */
.section { padding: 80px 24px; max-width: 1280px; margin: 0 auto; }
.section-alt { background: var(--bg-white); }
.section-accent { background: var(--bg-light); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; letter-spacing: -.01em; }
.section-header p { font-size: .95rem; color: var(--text-muted); max-width: 480px; margin: 0 auto; }
.section-header .label {
  display: inline-block; padding: 4px 14px; border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  margin-bottom: 12px; color: var(--brand-gold); background: rgba(200,164,92,.1);
}

.section-footer { text-align: center; margin-top: 32px; }
.section-footer a { color: var(--brand-blue); font-weight: 600; font-size: 15px; transition: var(--transition); }
.section-footer a:hover { color: var(--brand-gold); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  max-width: 1280px; margin: 20px auto 0; padding: 0 24px;
  font-size: .82rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--brand-blue); }
.breadcrumb a:hover { text-decoration: underline; color: var(--brand-gold); }
.breadcrumb .sep { margin: 0 6px; color: var(--text-muted); }

/* ---------- Page Header (子页标题区) ---------- */
.page-header { text-align: center; padding: 60px 24px 40px; }
.page-header h1 { font-size: 2.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.page-header p { font-size: 1rem; color: var(--text-muted); }

/* ---------- Info Grid & Box ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 24px 0; }
.info-box { background: var(--bg-light); padding: 16px 20px; border-radius: var(--radius-sm); }
.info-box .key { font-size: .78rem; color: var(--text-muted); margin-bottom: 4px; }
.info-box .val { font-size: .95rem; color: var(--text-primary); font-weight: 500; }

/* ---------- Detail Hero & Gallery ---------- */
.detail-hero { width: 100%; max-height: 420px; overflow: hidden; border-radius: 0 0 var(--radius-lg) var(--radius-lg); margin-bottom: 32px; }
.detail-hero img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; }

.detail-gallery {
  max-width: 800px; margin: 32px auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px;
}
.detail-gallery img { width: 100%; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); transition: transform .3s ease; cursor: pointer; }
.detail-gallery img:hover { transform: scale(1.03); }

/* ---------- Pill Filter ---------- */
.pill-wrap { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.pill {
  padding: 8px 20px; border-radius: var(--radius-pill);
  font-size: .84rem; font-weight: 500;
  border: 1.5px solid var(--border-light);
  background: var(--bg-white); color: var(--text-muted);
  cursor: pointer; transition: all .2s ease;
}
.pill:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.pill.active { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }

/* ---------- Navigation (子页 sticky 导航) ---------- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,31,63,.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.navbar .nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.navbar .nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 700; color: #fff;
  letter-spacing: .5px;
}

.navbar .nav-logo .logo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--grad-gold);
}

.navbar .nav-links { display: flex; gap: 4px; }
.navbar .nav-links a {
  display: inline-flex; align-items: center;
  padding: 6px 16px; border-radius: var(--radius-pill);
  font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.65);
  transition: all .2s ease;
}
.navbar .nav-links a:hover { color: var(--brand-gold); background: rgba(200,164,92,.1); }
.navbar .nav-links a.active { color: var(--brand-gold); font-weight: 600; }

.navbar .menu-btn { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: #fff; }

@media (max-width: 768px) {
  .navbar .menu-btn { display: block; }
  .navbar .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(10,31,63,.98); backdrop-filter: blur(20px);
    flex-direction: column; padding: 12px; gap: 2px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--shadow-lg);
  }
  .navbar .nav-links.open { display: flex; }
  .navbar .nav-links a { border-radius: 10px; padding: 10px 16px; color: rgba(255,255,255,.8); }
}

/* ---------- Hero (子页简化版) ---------- */
.hero {
  background: var(--grad-hero);
  text-align: center; padding: 100px 24px 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -20%;
  width: 140%; height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(200,164,92,.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(0,131,143,.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800; letter-spacing: -.02em; color: #fff;
  line-height: 1.15; margin-bottom: 16px; position: relative;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem; color: rgba(255,255,255,.55);
  max-width: 600px; margin: 0 auto 32px;
  line-height: 1.65; position: relative;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- Product Highlight Cards ---------- */
.product-highlight {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 1000px; margin: 0 auto;
}
.product-hl-card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  padding: 40px 32px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
  transition: var(--transition); cursor: pointer;
}
.product-hl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-hl-card .hl-icon {
  width: 72px; height: 72px; margin: 0 auto 20px;
  border-radius: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.product-hl-card .hl-icon.auto { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.product-hl-card .hl-icon.window { background: linear-gradient(135deg, #e8f8f5, #d4f0eb); }
.product-hl-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.product-hl-card p { font-size: .9rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }

@media (max-width: 640px) {
  .product-highlight { grid-template-columns: 1fr; }
}

/* ---------- Article Detail ---------- */
.article-body {
  max-width: 800px; margin: 0 auto 60px; padding: 0 24px;
  font-size: 1rem; line-height: 1.85; color: var(--text-primary);
}
.article-body h2, .article-body h3, .article-body h4, .article-body h5 { margin: 28px 0 12px; font-weight: 700; color: var(--text-primary); }
.article-body h2 { font-size: 1.5rem; }
.article-body h3 { font-size: 1.2rem; }
.article-body h4 { font-size: 1.08rem; }
.article-body h5 { font-size: .98rem; }
.article-body p { margin-bottom: 16px; }
.article-body a { color: var(--brand-blue); text-decoration: underline; }
.article-body strong { font-weight: 700; color: var(--text-primary); }
.article-body em { font-style: italic; }
.article-body code {
  background: rgba(200,164,92,.1); color: var(--brand-blue);
  padding: 2px 6px; border-radius: 4px; font-size: .9em; font-family: 'SF Mono', Monaco, monospace;
}
.article-body img {
  max-width: 100%; border-radius: var(--radius-sm); margin: 16px 0;
  box-shadow: var(--shadow-sm);
}
.article-body ul, .article-body ol { margin: 12px 0; padding-left: 24px; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  border-left: 4px solid var(--brand-gold); background: rgba(200,164,92,.06);
  padding: 16px 20px; margin: 20px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
}

/* Article Hero & Container */
.article-hero {
  width: 100%; max-height: 460px; overflow: hidden;
  margin-bottom: 40px;
}
.article-hero img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.article-container {
  max-width: 780px; margin: 0 auto; padding: 0 24px 60px;
}
.article-header { text-align: center; margin-bottom: 24px; }
.article-cat-badge {
  display: inline-block; padding: 5px 16px;
  background: rgba(200,164,92,.12); color: var(--brand-gold);
  border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .04em; margin-bottom: 16px;
}
.article-title {
  font-size: 2rem; font-weight: 700; color: var(--text-primary);
  line-height: 1.35; margin-bottom: 16px;
}
.article-meta-bar {
  display: flex; justify-content: center; gap: 24px;
  flex-wrap: wrap;
  font-size: .85rem; color: var(--text-muted);
}
.article-meta-bar span { white-space: nowrap; }
.article-summary {
  background: var(--bg-light); border-radius: var(--radius-md);
  padding: 20px 24px; margin: 24px 0 32px;
  border-left: 4px solid var(--brand-gold);
}
.article-summary p {
  font-size: 1rem; color: var(--text-secondary);
  line-height: 1.75; margin: 0;
}
.article-footer-bar {
  margin-top: 60px; padding-top: 40px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

/* Article gallery */
.article-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px; margin: 24px 0 32px;
}
.article-gallery img {
  width: 100%; height: 180px; object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer; transition: transform .3s ease, box-shadow .3s ease;
}
.article-gallery img:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }

/* ---------- Case Detail ---------- */
.case-gallery {
  max-width: 800px; margin: 0 auto 60px; padding: 0 24px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.case-gallery img {
  width: 100%; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease; cursor: pointer;
}
.case-gallery img:hover { transform: scale(1.03); }

/* ---------- Product Features ---------- */
.product-features { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0; }
.product-features span {
  padding: 6px 16px; background: rgba(200,164,92,.1);
  color: var(--brand-blue); border-radius: var(--radius-pill);
  font-size: .82rem; font-weight: 500;
}

/* ---------- Building Film Product Showcase ---------- */
.product-showcase {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; padding: 0 24px; max-width: 1280px; margin: 0 auto 60px;
}
.product-showcase-item {
  background: var(--bg-white); border-radius: var(--radius-md);
  padding: 28px 24px; text-align: center;
  border: 1px solid var(--border-light); transition: var(--transition);
}
.product-showcase-item:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: rgba(200,164,92,.2);
}
.product-showcase-item .ps-icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  background: rgba(200,164,92,.1); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.product-showcase-item .ps-series {
  display: inline-block; padding: 2px 10px;
  background: rgba(0,131,143,.1); color: var(--accent-teal);
  border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 600; margin-bottom: 8px;
}
.product-showcase-item h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; color: var(--text-primary); }
.product-showcase-item .ps-cat { font-size: .8rem; color: var(--text-muted); }
.product-showcase-item .ps-desc { font-size: .84rem; color: var(--text-muted); margin-top: 8px; }

/* ---------- Contact Section ---------- */
.contact-section { background: var(--bg-white); padding: 80px 24px; }
.contact-inner { max-width: 560px; margin: 0 auto; }

/* ---------- Footer (子页版) ---------- */
.footer {
  background: var(--brand-dark); color: rgba(255,255,255,.45); padding: 60px 24px 32px;
}
.footer .footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer .footer-grid h5 { font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: 16px; }
.footer .footer-grid a { display: block; font-size: .84rem; color: rgba(255,255,255,.45); padding: 4px 0; transition: color .2s; }
.footer .footer-grid a:hover { color: var(--brand-gold); }
.footer .footer-grid p { font-size: .84rem; line-height: 1.6; }
.footer .footer-bottom {
  max-width: 1280px; margin: 40px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .78rem; color: rgba(255,255,255,.35); text-align: center;
}
.footer .footer-bottom a { color: rgba(255,255,255,.45); }

/* ---------- Sub-page Responsive ---------- */
@media (max-width: 768px) {
  .section { padding: 60px 20px; }
  .section-header h2 { font-size: 1.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .detail-hero { height: 240px; border-radius: 0; }
  .detail-gallery { grid-template-columns: 1fr 1fr; }
  .page-header h1 { font-size: 1.6rem; }
  .article-gallery { grid-template-columns: 1fr 1fr; }
  .article-hero { max-height: 300px; }
  .case-gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .footer .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
