/* ============================================================
   多美达官网 · 首页设计稿样式
   依赖: tokens.css (设计 Token) + Bootstrap 5
   ============================================================ */

/* ---------- 基础 ---------- */
body {
  font-family: var(--font-family-base);
  color: var(--color-text-main);
  background: var(--color-bg-page);
  line-height: var(--line-height-base);
}
h1, h2, h3, h4 { line-height: var(--line-height-heading); font-weight: var(--font-weight-bold); }
img { max-width: 100%; }
a { text-decoration: none; }

.container { max-width: var(--container-max); }

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--color-brand-900);
  color: rgb(255 255 255 / 0.85);
  font-size: var(--font-size-sm);
  padding: var(--space-2) 0;
}
.topbar i { color: var(--color-accent-500); }

/* ---------- 主导航 ---------- */
.site-header {
  background: var(--color-bg-white);
  box-shadow: var(--shadow-sm);
  z-index: 1030;
}
.site-header .navbar { min-height: var(--header-height); padding: 0; }
.brand-logo { height: 40px; width: auto; }
.brand-name {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-brand-700);
  letter-spacing: 2px;
}
.brand-name small { font-size: var(--font-size-sm); color: var(--color-text-sub); letter-spacing: 3px; }
.site-header .nav-link {
  color: var(--color-text-main);
  font-weight: var(--font-weight-medium);
  padding: var(--space-4) var(--space-6) !important;
  position: relative;
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--color-brand-500); }
.site-header .nav-link.active::after {
  content: "";
  position: absolute;
  left: var(--space-6); right: var(--space-6); bottom: var(--space-2);
  height: 3px; border-radius: var(--radius-full);
  background: var(--color-accent-500);
}
.nav-cta {
  background: var(--color-brand-700);
  color: #fff !important;
  border-radius: var(--radius-md);
  margin-left: var(--space-4);
  padding-inline: var(--space-6) !important;
}
.nav-cta:hover { background: var(--color-brand-500); }

/* ---------- Banner 轮播 ---------- */
.hero-carousel .carousel-item img {
  width: 100%;
  height: min(72vh, 640px);
  min-height: 420px;
  object-fit: cover;
  filter: brightness(0.62);
}
.hero-caption {
  text-align: left;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--container-max);
  bottom: 18%;
  padding: 0 var(--space-4);
}
.hero-eyebrow {
  color: var(--color-accent-500);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 4px;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}
.hero-title {
  color: #fff;
  font-size: clamp(1.75rem, 4.5vw, var(--font-size-4xl));
  text-shadow: 0 2px 12px rgb(0 0 0 / 0.35);
}
.btn-accent {
  background: var(--color-accent-500);
  border: none;
  color: var(--color-brand-900);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-md);
}
.btn-accent:hover { background: var(--color-accent-600); color: #fff; }
.hero-carousel .carousel-indicators [data-bs-target] {
  width: 28px; height: 4px; border-radius: var(--radius-full);
}

/* ---------- 数据带 ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--color-brand-800), var(--color-brand-700));
  padding: var(--space-12) 0;
  margin-top: -1px;
}
.stat-num {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-family-en);
  line-height: 1.1;
}
.stat-unit { font-size: var(--font-size-lg); margin-left: 4px; color: var(--color-accent-500); }
.stat-label { color: rgb(255 255 255 / 0.75); margin-top: var(--space-1); }

/* ---------- 区块通用 ---------- */
.section { padding: var(--space-20) 0; }
@media (max-width: 767.98px) { .section { padding: var(--space-12-m) 0; } }
.section-eyebrow {
  color: var(--color-brand-500);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 3px;
  margin-bottom: var(--space-2);
}
.eyebrow-light { color: var(--color-accent-500); }
.section-title { font-size: var(--font-size-3xl); color: var(--color-text-main); }
.section-desc { color: var(--color-text-sub); }

/* ---------- 公司简介 ---------- */
.section-about { background: var(--color-bg-page); }
.about-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.about-img-sub {
  position: absolute;
  right: calc(-1 * var(--space-6)); bottom: calc(-1 * var(--space-8));
  width: 45%;
  border-radius: var(--radius-md);
  border: 6px solid var(--color-bg-page);
  box-shadow: var(--shadow-md);
}
.about-points li {
  display: flex; align-items: center; gap: var(--space-2);
  color: var(--color-text-main);
  padding: var(--space-2) 0;
}
.about-points i { color: var(--color-success); font-size: 1.25rem; }
.btn-outline-brand {
  border: 2px solid var(--color-brand-700);
  color: var(--color-brand-700);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-6);
  font-weight: var(--font-weight-medium);
}
.btn-outline-brand:hover { background: var(--color-brand-700); color: #fff; }

/* ---------- 产品卡片 ---------- */
.product-card {
  display: block;
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-normal);
  height: 100%;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.product-card img {
  width: 100%; height: 220px; object-fit: contain;
  background: var(--color-bg-page);
  padding: var(--space-4);
  transition: transform var(--transition-slow);
}
.product-card:hover img { transform: scale(1.05); }
.product-body { padding: var(--space-6); }
.product-body h3 { font-size: var(--font-size-xl); color: var(--color-brand-700); }
.product-body p { color: var(--color-text-sub); font-size: var(--font-size-sm); margin: var(--space-2) 0 var(--space-4); }
.product-more { color: var(--color-brand-500); font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); }
.product-card:hover .product-more i { transform: translateX(4px); }
.product-more i { transition: transform var(--transition-fast); }

/* ---------- 生产能力（深色） ---------- */
.section-capability {
  background:
    linear-gradient(rgba(18, 40, 63, 0.92), rgba(18, 40, 63, 0.96)),
    url("/static/images/workshop/workshop-4.webp") center/cover fixed;
  padding: var(--space-20) 0;
}
.capability-card {
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  transition: all var(--transition-normal);
}
.capability-card:hover {
  background: rgb(255 255 255 / 0.1);
  transform: translateY(-4px);
}
.capability-card img { width: 100%; height: 200px; object-fit: cover; }
.capability-body { padding: var(--space-6); }
.capability-body h3 { color: #fff; font-size: var(--font-size-lg); }
.capability-body h3 i { color: var(--color-accent-500); margin-right: var(--space-2); }
.capability-body p { color: rgb(255 255 255 / 0.72); font-size: var(--font-size-sm); margin-top: var(--space-2); }

/* ---------- Logo 墙 ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--space-4);
}
@media (max-width: 1199.98px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 575.98px)  { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
.logo-item {
  background: var(--color-bg-page);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  height: 88px;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-3);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
/* 默认全彩显示（不做灰度处理）；悬停轻上浮 + 阴影 */
.logo-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.logo-item img { max-height: 56px; max-width: 100%; object-fit: contain; }

/* ---------- 新闻卡片 ---------- */
.news-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  height: 100%;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.news-cover { height: 200px; overflow: hidden; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.news-card:hover .news-cover img { transform: scale(1.05); }
.news-body { padding: var(--space-6); }
.news-body time { color: var(--color-brand-500); font-size: var(--font-size-sm); font-family: var(--font-family-en); }
.news-body h3 { font-size: var(--font-size-lg); margin: var(--space-2) 0; }
.news-body p { color: var(--color-text-sub); font-size: var(--font-size-sm); margin: 0; }

/* ---------- 快速联系 ---------- */
.section-contact { padding-bottom: var(--space-20); }
.contact-panel {
  background: linear-gradient(120deg, var(--color-brand-700), var(--color-brand-500));
  border-radius: var(--radius-lg);
  padding: var(--space-12);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 767.98px) { .contact-panel { padding: var(--space-8); } }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--color-brand-900); color: rgb(255 255 255 / 0.75); }
.footer-desc { font-size: var(--font-size-sm); }
.footer-title {
  color: #fff; font-size: var(--font-size-base);
  margin-bottom: var(--space-4);
  position: relative; padding-bottom: var(--space-2);
}
.footer-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 28px; height: 3px; border-radius: var(--radius-full);
  background: var(--color-accent-500);
}
.footer-links li, .footer-contact li { padding: var(--space-1) 0; font-size: var(--font-size-sm); }
.footer-links a { color: rgb(255 255 255 / 0.65); }
.footer-links a:hover { color: var(--color-accent-500); }
.footer-contact i { color: var(--color-accent-500); margin-right: var(--space-2); }
.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: var(--font-size-sm);
  color: rgb(255 255 255 / 0.5);
}
.footer-bottom .icp-link { color: rgb(255 255 255 / 0.5); margin-left: 10px; }
.footer-bottom .icp-link:hover { color: var(--color-accent-500); }
.footer-bottom .icp-placeholder { border-bottom: 1px dashed rgb(255 255 255 / 0.3); }
/* 公安备案徽标行 */
.beian-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; }
.police-link { display: inline-flex; align-items: center; gap: 5px; }
.police-badge { width: 14px; height: 15px; display: inline-block; vertical-align: -2px; }

/* ---------- 移动端适配 ---------- */
@media (max-width: 767.98px) {
  .hero-carousel .carousel-item img { height: 68vh; min-height: 380px; }
  .hero-caption { bottom: 10%; }
  .hero-eyebrow { letter-spacing: 2px; font-size: var(--font-size-xs); }
  .section-title { font-size: var(--font-size-2xl); }
  .stat-num { font-size: var(--font-size-2xl); }
  .contact-panel { text-align: center; }
  .contact-panel .btn { width: 100%; }
  .about-img-sub { display: none; }
  .logo-item { height: 72px; }
  .logo-item img { max-height: 44px; }
}

/* Banner 底部渐变遮罩，保证文案可读性 (WCAG AA) */
.hero-carousel .carousel-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(18 40 63 / 0.55), transparent 45%);
  pointer-events: none;
}
.hero-carousel .carousel-caption { z-index: 2; }

/* ---------- 内页 Banner ---------- */
.page-banner {
  background:
    linear-gradient(rgba(18, 40, 63, 0.62), rgba(18, 40, 63, 0.78)),
    url("/static/images/workshop/workshop-4.webp") center/cover;
  color: #fff;
  text-align: center;
  padding: var(--space-16) 0 var(--space-12);
}
.page-banner h1 { font-size: var(--font-size-3xl); margin-bottom: var(--space-2); }
.page-banner p { color: rgb(255 255 255 / 0.6); letter-spacing: 4px; font-family: var(--font-family-en); }

/* ---------- 企业文化卡片 ---------- */
.culture-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  height: 100%;
  transition: all var(--transition-normal);
}
.culture-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.culture-icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-brand-50);
  color: var(--color-brand-500);
  font-size: 1.75rem;
  display: flex; align-items: center; justify-content: center;
}
.culture-card h3 { font-size: var(--font-size-lg); color: var(--color-brand-700); margin-bottom: var(--space-2); }
.culture-card p { color: var(--color-text-sub); font-size: var(--font-size-sm); margin: 0; }

/* ---------- 资质徽章 ---------- */
.cert-badge {
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-4);
  color: #fff;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}
.cert-badge i { display: block; font-size: 2.5rem; color: var(--color-accent-500); margin-bottom: var(--space-2); }
/* 徽标可点击查看认证 PDF（与生产能力页权威认证组功能对齐） */
a.cert-badge { display: block; text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
a.cert-badge:hover { transform: translateY(-4px); border-color: var(--color-accent-500); background: rgb(255 255 255 / 0.06); }
.cert-badge-hint { display: block; font-size: 12px; font-weight: var(--font-weight-normal); opacity: .75; margin-top: var(--space-2); }

/* ---------- 画廊图 ---------- */
.gallery-img {
  width: 100%; height: 220px; object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}
.gallery-img:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }

/* ---------- 设备图 ---------- */
.equip-item { margin: 0; }
.equip-item img {
  width: 100%; height: 180px; object-fit: cover;
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.equip-item figcaption {
  text-align: center; margin-top: var(--space-2);
  font-size: var(--font-size-sm); color: var(--color-text-sub);
}

/* ---------- 联系页 ---------- */
.contact-info li { display: flex; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border-light); }
.contact-info i {
  width: 44px; height: 44px; flex: none;
  background: var(--color-brand-50); color: var(--color-brand-500);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.contact-info strong { display: block; font-size: var(--font-size-sm); color: var(--color-text-sub); font-weight: var(--font-weight-normal); }
.contact-info span, .contact-info a { color: var(--color-text-main); }
.contact-form-panel {
  background: var(--color-bg-page);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
/* 蜜罐字段：视觉与读屏均隐藏 */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }

/* ---------- 产品筛选 ---------- */
.category-filter { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; }
.filter-chip {
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-sub);
  font-size: var(--font-size-sm);
  background: var(--color-bg-white);
  transition: all var(--transition-fast);
}
.filter-chip:hover { border-color: var(--color-brand-500); color: var(--color-brand-500); }
.filter-chip.active { background: var(--color-brand-700); border-color: var(--color-brand-700); color: #fff; }

/* ---------- 产品详情 ---------- */
.product-detail-img {
  width: 100%; max-height: 480px; object-fit: contain;
  background: var(--color-bg-page);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.gallery-img.product-extra { object-fit: contain; background: var(--color-bg-page); }

/* ---------- 产品原图灯箱 ---------- */
img.zoomable { cursor: zoom-in; }
.img-lightbox {
  position: fixed; inset: 0; z-index: 3000;
  background: rgb(8 15 26 / 0.92); display: none;
  align-items: center; justify-content: center;
}
.img-lightbox.open { display: flex; }
.img-lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: 8px; box-shadow: 0 24px 64px rgb(0 0 0 / 0.5); }
.ilb-close {
  position: absolute; top: 18px; right: 22px; width: 44px; height: 44px;
  border-radius: 50%; border: none; cursor: pointer;
  background: rgb(255 255 255 / 0.12); color: #fff; font-size: 1.5rem; line-height: 1;
}
.ilb-close:hover { background: var(--color-accent-500); color: var(--color-brand-900); }
.spec-box {
  background: var(--color-bg-page);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-sm);
  color: var(--color-text-sub);
}

/* ---------- 新闻详情 ---------- */
.news-detail-title { font-size: var(--font-size-2xl); color: var(--color-text-main); }
.news-detail-meta { color: var(--color-text-sub); font-size: var(--font-size-sm); padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border-light); }
.news-detail-cover { width: 100%; border-radius: var(--radius-md); margin: var(--space-6) 0; }
.news-content { line-height: 2; color: var(--color-text-main); }
.news-content img { max-width: 100%; border-radius: var(--radius-md); }
.sidebar-title { font-size: var(--font-size-lg); padding-bottom: var(--space-3); border-bottom: 2px solid var(--color-brand-700); }
.sidebar-news li { padding: var(--space-3) 0; border-bottom: 1px dashed var(--color-border); }
.sidebar-news a { display: block; color: var(--color-text-main); font-size: var(--font-size-sm); }
.sidebar-news a:hover { color: var(--color-brand-500); }
.sidebar-news time { color: var(--color-text-sub); font-size: var(--font-size-xs); font-family: var(--font-family-en); }

/* ---------- 分页（TP8 驱动输出 <li><a> + active/disabled 类） ---------- */
.pagination {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; list-style: none; padding: 0; margin: 0;
}
.pagination li { display: inline-flex; }
.pagination a, .pagination span {
  min-width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-white);
  color: var(--color-text-main);
  font-size: var(--font-size-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.pagination a:hover {
  color: var(--color-brand-700);
  border-color: var(--color-brand-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.pagination li.active span {
  background: var(--color-brand-700);
  border-color: var(--color-brand-700);
  color: #fff;
  font-weight: 600;
}
.pagination li.disabled span {
  color: rgb(15 23 42 / 0.35);
  border-color: var(--color-border-light);
  box-shadow: none;
}

/* ---------- 多媒体中心：分类 Tab ---------- */
.media-tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-bottom: var(--space-6); }
.media-tab {
  padding: 8px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgb(255 255 255 / 0.25); background: transparent; color: rgb(255 255 255 / 0.8);
  font-size: var(--font-size-sm); transition: all 0.2s;
}
.media-tab:hover { background: rgb(255 255 255 / 0.12); color: #fff; }
.media-tab.active { background: var(--color-accent-500); border-color: var(--color-accent-500); color: var(--color-brand-900); font-weight: 600; }

/* ---------- 2D 旋转相册 ---------- */
.coverflow-wrap { position: relative; max-width: 960px; margin: 0 auto; }
.coverflow { position: relative; height: 360px; perspective: 1200px; }
.cf-item {
  position: absolute; top: 28px; left: 50%; width: 460px; height: 304px;
  border-radius: 14px; overflow: hidden; cursor: pointer; background: #0b1f33;
  box-shadow: 0 18px 44px rgb(0 0 0 / 0.45);
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform-style: preserve-3d;
}
.cf-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.cf-item.is-center { box-shadow: 0 24px 60px rgb(0 0 0 / 0.6), 0 0 0 3px var(--color-accent-500); }
.cf-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 120;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: rgb(255 255 255 / 0.15); color: #fff; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.cf-nav:hover { background: var(--color-accent-500); color: var(--color-brand-900); }
.cf-prev { left: -8px; }
.cf-next { right: -8px; }
.cf-caption { color: rgb(255 255 255 / 0.85); margin-top: var(--space-3); min-height: 1.5em; font-size: var(--font-size-md); }

/* 视频角标 */
.vc-badge {
  position: absolute; left: 10px; bottom: 10px; z-index: 5;
  background: rgb(15 23 42 / 0.8); color: #fff; font-size: var(--font-size-xs);
  padding: 3px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px;
}
.vc-badge-lg { left: 50%; bottom: 50%; transform: translate(-50%, 50%); font-size: var(--font-size-lg); width: 64px; height: 64px; justify-content: center; border-radius: 50%; background: rgb(15 23 42 / 0.65); }

/* ---------- 全部分类图集 ---------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-4); }
.media-card { position: relative; margin: 0; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; background: #eef2f7; aspect-ratio: 4 / 3; }
.media-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.media-card:hover img { transform: scale(1.06); }
.media-card::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 rgb(15 23 42 / 0); transition: box-shadow 0.25s; }
.media-card:hover::after { box-shadow: inset 0 0 0 3px var(--color-accent-500); }

/* ---------- 灯箱 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgb(8 15 26 / 0.94); display: none; }
.lightbox.open { display: flex; align-items: center; justify-content: center; flex-direction: column; }
.lb-stage { max-width: 92vw; max-height: 78vh; display: flex; align-items: center; justify-content: center; }
.lb-stage img { max-width: 92vw; max-height: 78vh; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgb(0 0 0 / 0.5); }
.lb-stage video { max-width: 92vw; max-height: 78vh; border-radius: 8px; box-shadow: 0 20px 60px rgb(0 0 0 / 0.5); background: #000; }
.lb-pdf-wrap { width: min(92vw, 1100px); height: 82vh; display: flex; flex-direction: column; gap: 10px; }
.lb-pdf-wrap iframe { flex: 1; width: 100%; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 20px 60px rgb(0 0 0 / 0.5); }
.lb-pdf-wrap a { align-self: center; color: #cbd5e1; font-size: 14px; text-decoration: none; }
.lb-pdf-wrap a:hover { color: #fff; }

/* 顶部语言切换（i18n 下拉） */
.site-header .dropdown-menu { min-width: 9.5rem; border: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 32px rgb(0 0 0 / 0.14); }
.site-header .dropdown-item { font-size: 14px; padding: 8px 16px; }
.site-header .dropdown-item.active, .site-header .dropdown-item:active { background: #1a3a5c; color: #fff; }
.site-header .nav-link .bi-translate { font-size: 15px; }

/* 懒加载图片占位（loading=lazy 配套，避免 3Mbps 下布局跳动） */
img[loading="lazy"] { background: #eef1f5; }
.lb-foot { margin-top: var(--space-3); display: flex; gap: var(--space-4); align-items: baseline; max-width: 92vw; }
.lb-title { color: #fff; font-size: var(--font-size-md); }
.lb-count { color: rgb(255 255 255 / 0.6); font-family: var(--font-family-en); font-size: var(--font-size-sm); }
.lb-close {
  position: absolute; top: 18px; right: 22px; z-index: 3100; width: 44px; height: 44px;
  border-radius: 50%; border: none; cursor: pointer; background: rgb(255 255 255 / 0.12); color: #fff; font-size: 1.3rem;
}
.lb-close:hover { background: var(--color-accent-500); color: var(--color-brand-900); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3100;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: rgb(255 255 255 / 0.12); color: #fff; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.lb-nav:hover { background: var(--color-accent-500); color: var(--color-brand-900); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

/* ---------- 地图卡片（可导航） ---------- */
.map-card { position: relative; display: block; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); background: #dce8f5; }
.map-card > img { width: 100%; max-height: 240px; object-fit: cover; display: block; }
.map-overlay {
  position: absolute; inset: auto 0 0 0; padding: var(--space-4);
  background: linear-gradient(180deg, transparent, rgb(11 31 51 / 0.94) 45%);
  color: #fff; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-2);
}
.map-overlay .map-addr { font-size: var(--font-size-sm); color: rgb(255 255 255 / 0.9); margin: 0; }
.map-nav-btns { display: flex; gap: var(--space-2); }
.map-nav-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border-radius: 999px; background: var(--color-accent-500); color: var(--color-brand-900);
  font-size: var(--font-size-sm); font-weight: 600; transition: transform 0.15s, background 0.2s;
}
.map-nav-btn.ghost { background: rgb(255 255 255 / 0.16); color: #fff; }
.map-nav-btn:hover { transform: translateY(-2px); color: var(--color-brand-900); background: var(--color-accent-400, var(--color-accent-500)); }
.map-nav-btn.ghost:hover { background: #fff; color: var(--color-brand-900); }

/* 移动端：旋转相册收窄 */
@media (max-width: 575.98px) {
  .coverflow { height: 260px; }
  .cf-item { width: min(80vw, 340px); height: 200px; top: 30px; }
  .cf-prev { left: 0; }
  .cf-next { right: 0; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}

/* ---------- 多媒体中心：模块分组 ---------- */
.media-group { margin-bottom: var(--space-8); }
.media-group:last-child { margin-bottom: 0; }
.media-group-title {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--font-size-lg); color: var(--color-brand-700);
  margin: 0 0 var(--space-4); padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-border-light);
}
.media-group-title i { color: var(--color-accent-500); }
.mg-count {
  font-size: var(--font-size-xs); color: var(--color-text-sub);
  background: var(--color-bg-page); padding: 2px 10px; border-radius: 999px;
  font-family: var(--font-family-en);
}
/* 分组标题深色区变体（关于页资质认证，与生产能力页规格对齐） */
.media-group-title-light { justify-content: center; color: #fff; border-color: rgb(255 255 255 / 0.18); margin-bottom: var(--space-6); }
.media-group-title-light .mg-count { background: rgb(255 255 255 / 0.14); color: rgb(255 255 255 / 0.85); }
/* 图片名称：悬停显示（触屏常显） */
.mc-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  margin: 0; padding: 20px 12px 10px;
  background: linear-gradient(180deg, transparent, rgb(11 31 51 / 0.88));
  color: #fff; font-size: var(--font-size-sm);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.media-card:hover .mc-label { opacity: 1; transform: none; }
@media (hover: none) { .mc-label { opacity: 1; transform: none; } }

/* ---------- 品质管控四图 ---------- */
.qc-item { margin: 0; }
.qc-item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  display: block;
}
.qc-item figcaption {
  text-align: center; font-size: var(--font-size-sm);
  color: var(--color-text-sub); margin-top: var(--space-2);
}

/* ---------- 原图灯箱图名 ---------- */
.img-lightbox .ilb-cap {
  position: absolute; bottom: 22px; left: 0; right: 0;
  text-align: center; color: rgb(255 255 255 / 0.85);
  font-size: var(--font-size-sm); padding: 0 70px;
}

/* ---------- 无障碍：焦点可见性 ---------- */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--color-accent-500);
  outline-offset: 2px;
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
