/* =============================================================
   pages.css — 各页面专有微调
   ============================================================= */

/* ---------------- 首页 ---------------- */
.cat-card .card-media { aspect-ratio: 1 / 1; }
.cat-card .card-media img { object-fit: contain; padding: var(--sp-5); mix-blend-mode: multiply; }
.cat-card .card-body { text-align: center; align-items: center; }
.cat-card .card-text { min-height: 3.4em; }

.qc-media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-3); }
.qc-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.qc-badge {
  position: absolute;
  left: var(--sp-5); bottom: var(--sp-5);
  background: rgba(255, 255, 255, .94);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--c-blue-800);
  box-shadow: var(--sh-2);
}

/* 关于预告 */
.about-teaser-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-3); }
.about-teaser-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------------- 关于我们 ---------------- */
.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-6);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.brand-card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.brand-card img { height: 96px; width: auto; object-fit: contain; margin-bottom: var(--sp-5); }
.brand-card h3 { font-size: var(--fs-h4); margin-bottom: 6px; }
.brand-card p { font-size: var(--fs-sm); color: var(--c-ink-500); margin: 0; }

.motto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-5); }
.motto {
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--grad-soft);
  border: 1px solid var(--c-line);
}
.motto:nth-child(2) { background: linear-gradient(160deg, #F6EFF9, #FDF5E4); }
.motto:nth-child(3) { background: linear-gradient(160deg, #E6FAF8, #EEF4FF); }
.motto:nth-child(4) { background: linear-gradient(160deg, #FDF5E4, #F6EFF9); }
.motto b { display: block; font-size: var(--fs-h4); color: var(--c-ink-900); margin-bottom: 6px; }
.motto span { font-size: var(--fs-sm); color: var(--c-ink-600); }

/* ---------------- 产品中心 ---------------- */
.product-card .card-media { aspect-ratio: 4 / 3; }
.product-card .card-media img { object-fit: contain; padding: var(--sp-5); mix-blend-mode: multiply; }
.product-card .card-body { gap: 8px; }
.product-card .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-4);
}
.product-card.is-hidden { display: none; }

.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--sp-3); }
.swatch {
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #fff;
}
.swatch img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; }
.swatch span { display: block; padding: 6px 4px; font-size: var(--fs-xs); text-align: center; color: var(--c-ink-600); }

/* ---------------- 实力展示 ---------------- */
.timeline-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-3); }

/* ---------------- 招商合作 ---------------- */
.partner-hero-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-3); }
.partner-hero-media img { width: 100%; object-fit: cover; }
.policy-list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--sp-4); }
.policy-list li {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: #fff;
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-teal-500);
  border-radius: var(--r-md);
}
.policy-list strong { display: block; color: var(--c-ink-900); }
.policy-list p { margin: 0; font-size: var(--fs-sm); color: var(--c-ink-500); }

/* ---------------- 联系我们 ---------------- */
.map-figure {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-bg-soft);
}
.map-figure img { width: 100%; object-fit: cover; }
.map-placeholder {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: var(--sp-7);
  text-align: center;
  background:
    linear-gradient(var(--grad-soft)),
    repeating-linear-gradient(45deg, rgba(30, 90, 214, .05) 0 12px, transparent 12px 24px);
  color: var(--c-ink-600);
}
.map-placeholder svg { width: 44px; height: 44px; color: var(--c-blue-600); margin-bottom: var(--sp-3); }

/* ---------------- 404 ---------------- */
.err-code {
  font-family: var(--font-num);
  font-size: clamp(72px, 16vw, 160px);
  font-weight: var(--fw-black);
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- 打印 ---------------- */
@media print {
  .site-header, .site-footer, .to-top, .nav-scrim, .lightbox, .filter-tabs { display: none !important; }
  body { color: #000; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
