/* 公司介绍页（company.html）专用样式 — v7 影像 hero + 微动效 */

.company-page { padding-bottom: 48px; }

/* ===== Hero：真实影棚/项目现场大图面板（居中） ===== */
.company-hero {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  padding: 50px 24px 22px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 22px;
  text-align: center;
  isolation: isolate;
  background: #07090d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

/* 轮播图层容器：mask 让图片从 52% 高度才开始淡出（底部仍不可能露出图像像素） */
.company-hero-bg {
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 52%, transparent 96%);
  pointer-events: none;
  z-index: -1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease;
  /* 注意：不能用 background 简写——内联 style 的 background-image 会覆盖简写里的渐变层，
     scrim 必须放在 ::before（v16-v19 的 scrim 就是这样失效的，图片一直裸奔显示） */
  background-position: center 42%;
  background-size: cover;
  background-repeat: no-repeat;
}

/* 暗化 scrim 层 */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,10,16,.55) 0%, rgba(6,10,16,.6) 48%, rgba(7,9,13,.88) 74%, rgba(7,9,13,.96) 100%);
}

.hero-bg.is-active { opacity: 1; }

/* 第 2 张起图片靠上定位（贴 hero 顶部；第 1 张仍按 42% 取构图最佳的中段）
   这两张原图上部偏暗，所以 scrim 相应调轻，保证画面看得见 */
.company-hero-bg .hero-bg:nth-child(n+2) {
  background-position: center top;
}

.company-hero-bg .hero-bg:nth-child(n+2)::before {
  background: linear-gradient(180deg, rgba(6,10,16,.24) 0%, rgba(6,10,16,.34) 48%, rgba(7,9,13,.78) 74%, rgba(7,9,13,.93) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { transition: none; }
}

/* 底部与页面底色衔接 */
.company-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, #07090d 78%);
  pointer-events: none;
  z-index: -1;
}

.company-hero .eyebrow {
  justify-content: center;
  margin-bottom: 16px;
}

.company-hero-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.012em;
  text-shadow: 0 4px 26px rgba(2,6,12,.65), 0 12px 46px rgba(10,123,255,.2);
}

.company-hero-title em {
  font-style: normal;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
  text-shadow: 0 4px 26px rgba(2,6,12,.65), 0 12px 46px rgba(10,123,255,.22);
}

.company-hero-sub {
  max-width: 100%;
  margin: 14px 0 0;
  color: #c3ccd8;
  font-size: 15px;
  line-height: 1.75;
  text-shadow: 0 2px 14px rgba(2,6,12,.7);
}

/* 数据条 */
.company-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 14px 0 0;
  border: 1px solid var(--line);
  border-top-color: rgba(255,255,255,.03);
  border-radius: 14px;
  background: var(--line);
  overflow: hidden;
  box-shadow: 0 26px 60px -46px rgba(10,123,255,.5);
  text-align: center;
}

.company-stat {
  padding: 18px 16px 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.008) 60%),
    rgba(10,14,20,.6);
}

.company-stat b {
  display: block;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  background: linear-gradient(120deg, #ffffff, #a9c8e8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.company-stat span {
  display: block;
  margin-top: 5px;
  color: #6d7c8e;
  font-size: 12px;
  letter-spacing: .05em;
}

/* ===== 区块 ===== */
.company-section { margin-top: 40px; }

.company-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

/* 标题右侧渐隐细线 */
.company-section-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  margin-left: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,.14), rgba(255,255,255,.02) 65%, transparent);
}

.company-section-title h2 { margin: 0; font-size: 20px; letter-spacing: -.006em; }

.company-section-title small {
  color: #5c6b7d;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ===== 核心优势卡片 ===== */
.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.company-grid.company-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.company-card {
  position: relative;
  padding: 18px 20px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.company-card:hover {
  transform: translateY(-3px);
  border-color: rgba(53,148,255,.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 20px 44px -26px rgba(6,90,200,.55);
}

.company-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #fff;
  letter-spacing: -.004em;
}

.company-card h3 span {
  display: inline-block;
  margin-right: 7px;
  color: #4ca5ff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* 线性 SVG 图标（影棚/器材卡） */
.company-card h3 span.company-card-icon {
  margin-right: 9px;
  color: #7fb6ec;
  vertical-align: -3px;
}

.company-card-icon svg { width: 19px; height: 19px; display: block; }

.company-card p {
  margin: 0;
  color: #8f9dad;
  font-size: 13px;
  line-height: 1.7;
}

/* 「所见即所得」点睛卡 */
.company-card-note {
  display: flex;
  align-items: center;
  border-color: rgba(53,148,255,.28);
  background:
    radial-gradient(circle at 90% 110%, rgba(10,123,255,.14), transparent 60%),
    linear-gradient(145deg, rgba(10,123,255,.07), rgba(255,255,255,.012));
}

.company-card-note p strong { color: #cfe5ff; font-weight: 600; }

/* ===== 主营业务标签 ===== */
.company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.company-tags li {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  color: #c2cddb;
  font-size: 14px;
  letter-spacing: .02em;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.company-tags li:hover {
  border-color: rgba(53,148,255,.35);
  background: rgba(53,148,255,.08);
  color: #fff;
}

/* ===== 自研产品条 ===== */
.company-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 22px 26px;
  border: 1px solid rgba(53,148,255,.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 8% 0%, rgba(10,123,255,.12), transparent 55%),
    rgba(255,255,255,.02);
  box-shadow: inset 0 1px 0 rgba(120,180,255,.14);
}

.company-product .company-section-title { margin-bottom: 6px; }

.company-product .company-section-title::after { display: none; }

.company-product-name {
  margin: 0 0 5px;
  font-size: 18px;
  color: #fff;
}

.company-product-desc {
  margin: 0;
  color: #8f9dad;
  font-size: 13.5px;
  line-height: 1.7;
}

/* ===== 影棚 / 设备信息卡 ===== */
.company-spec {
  margin: 0;
  padding: 0;
  list-style: none;
}

.company-spec li {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,.07);
  color: #aab7c7;
  font-size: 13px;
  line-height: 1.65;
}

.company-spec li:last-child { border-bottom: 0; }

.company-spec li b {
  flex: 0 0 5.5em;
  color: #8fa1b5;
  font-weight: 500;
}

/* ===== 页尾行动区 ===== */
.company-cta {
  margin-top: 40px;
  padding: 24px 26px;
  border: 1px solid rgba(53,148,255,.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(10,123,255,.12), transparent 55%),
    rgba(255,255,255,.02);
  box-shadow: inset 0 1px 0 rgba(120,180,255,.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.company-cta h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.006em; }

.company-cta p { margin: 0; color: #7f8b9b; font-size: 13px; }

.company-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== 入场微动效（js-anim 由 head 内联脚本添加；无 JS / 减少动态时全部直接显示） ===== */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}

.js-anim .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
}

/* 调试/截图用：?noanim 直接呈现终态 */
.js-anim.no-instant .reveal { opacity: 1; transform: none; transition: none; }

/* 桌面端：标题与副标题强制单排显示（窄屏自动换行，避免溢出） */
@media (min-width: 900px) {
  .company-hero-sub { white-space: nowrap; }
  .company-hero-title { white-space: nowrap; }
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-hero { padding: 42px 20px 20px; }
}

@media (max-width: 640px) {
  .company-grid,
  .company-grid.company-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .company-section { margin-top: 34px; }
  .company-hero { margin-top: 14px; padding: 34px 16px 18px; border-radius: 18px; }
  .company-hero-title { font-size: 27px; }
  .company-hero-sub { font-size: 14px; }
  .company-stats { margin-top: 10px; }
  .company-stat { padding: 16px 12px 14px; }
  .company-tags li { padding: 8px 14px; font-size: 13px; }
  .company-product { padding: 18px 20px; }
  .company-cta { margin-top: 34px; padding: 20px 20px; }
}
