﻿/* ========== About Page Styles ========== */
/* About 区块：关于我们、行业伙伴、数据统计、行业内容切换 */

/* ========== About Us ========== */
.about-section {
  padding: 100px var(--wrap-pad-x);
  max-width: var(--wrap-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-left .section-label {
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--color-gray-mid);
  font-weight: 400; /* Regular */
  margin-bottom: 16px;
}
.about-left h2 {
  font-family: var(--font-body);
  font-weight: var(--fw-title);
  font-size: 32px;
  line-height: 1.4;
  color: var(--color-black);
  margin-bottom: 24px;
}
.about-left p {
  font-family: var(--font-body);
  font-weight: var(--fw-desc);
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 16px;
}
/* 各品牌文案行数不同，占位高度由 industry-carousel.js 按当前语言实测后锁定 */

/* About Industries */
.about-industries {
  display: flex;
  gap: 32px;
  margin-top: 36px;
}
.about-industries .ind-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-industries .ind-item:active { transform: scale(0.92); }
.about-industries .ind-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-gray);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.35s, background 0.35s;
}
.about-industries .ind-item.active .ind-icon { border-color: transparent; background: transparent; }
.about-industries .ind-icon svg.icon-svg { width: 20px; height: 20px; stroke: #999; fill: none; stroke-width: 1.5; transition: stroke 0.35s; }
.about-industries .ind-item.active .ind-icon svg.icon-svg { stroke: var(--color-primary); }
.about-industries .ind-icon .border-ring {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 52px;
  height: 52px;
  pointer-events: none;
  opacity: 0;
}
.about-industries .ind-item.active .ind-icon .border-ring { opacity: 1; }
.about-industries .ind-icon .border-ring rect {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
}
.about-industries .ind-item.active .ind-icon .border-ring rect {
  animation: indBorderDraw 4s linear forwards;
}
.about-industries .ind-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: #888;
  transition: color 0.35s;
}
.about-industries .ind-item.active .ind-label {
  color: var(--color-primary);
  font-weight: 700;
}

.about-right {
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-right img {
  /* 相对列宽收 20%：1440 下 506→405，1920 下 703→562 */
  width: 80%;
  max-width: 576px;
  /* 容器固定 1:1：五张品牌图比例 0.99~1.67，方图（REITZ 徽标 0.99）撑满，
     横图（Schimpf 1.67）上下留白。原先 5:3 会把方图压到 252 高，
     圆形徽标只剩 249 宽、左右各空 85px。
     不设 min-width：1024 及以下列宽只有 369，设最小值会让图片被 overflow-x 裁掉。 */
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transform: perspective(800px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.5s;
}
.about-right img:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}

/* ========== About Section Counter ========== */
.counter-value {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 48px;
  color: var(--color-primary);
  line-height: 1;
}
.counter-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: #888;
  margin-top: 6px;
}
.about-stats {
  display: flex;
  gap: 48px;
  margin-top: 32px;
}
.about-stat-item {
  display: flex;
  flex-direction: column;
}

/* ========== About Industry Content Switch ========== */
.industry-content {
  margin-top: 20px;
  font-family: var(--font-body);
  font-weight: var(--fw-desc);
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  opacity: 0;
}
.industry-content.show {
  max-height: 240px;
  opacity: 1;
}

/* 切换品牌时标题 / 正文 / 描述同步淡入，避免文字瞬替换看不出变化 */
@keyframes indTextIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.about-left h2.ind-flash,
.about-left #indIntro.ind-flash,
.about-left .industry-content.ind-flash {
  animation: indTextIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ========== About Responsive ========== */
@media (max-width: 1024px) {
  .about-section { gap: 40px; }
}
@media (max-width: 768px) {
  /* minmax(0,1fr) 而非 1fr：1fr 的最小值是 auto，宽图会把轨道撑到 368px，
     在 390 手机上右侧被 overflow-x 裁掉。 */
  .about-section { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 60px var(--wrap-pad-x); }
  /* 单列时列宽接近视口宽，1:1 会到 596 高，收到 420 免得手机页面拉太长 */
  .about-right img { max-width: 420px; }
}

/* ============================================================
   About Page (about.html) — 公司简介 / 企业文化 / 信任之选
   ============================================================ */

/* Section 通用间距 */
.about-page,
.ap-culture,
.ap-trust {
  padding: 90px 0;
  position: relative;
}
.ap-culture { background: var(--color-gray-light); }

/* 区块标题头 */
.ap-head {
  position: relative;
  margin-bottom: 48px;
  text-align: center;
}
.ap-head .section-label {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--color-gray-mid, #999);
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.ap-head .section-cn {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: var(--fw-title);
  color: var(--color-black);
  position: relative;
  z-index: 1;
  margin: 0;
}
.ap-head .section-cn::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  margin: 14px auto 0;
}

/* ---------- 公司简介：图文 ---------- */
.ap-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.ap-intro-text p {
  font-family: var(--font-body);
  font-weight: var(--fw-desc);
  font-size: 15px;
  line-height: 1.9;
  color: var(--body);
  margin-bottom: 18px;
}
.ap-intro-text p:last-child { margin-bottom: 0; }
.ap-intro-img {
  width: 100%;
  height: 340px;
  padding-top: 10%;
  background-origin: content-box;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* ---------- 企业文化：四卡片 ---------- */
.ap-culture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.ap-ccard {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}
.ap-ccard::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ap-ccard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}
.ap-ccard:hover::before { transform: scaleX(1); }
.ap-ccard .no {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  display: block;
  margin-bottom: 18px;
}
.ap-ccard h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 10px;
}
.ap-ccard p {
  font-family: var(--font-body);
  font-weight: var(--fw-desc);
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

/* ---------- 信任之选：文案上、Logo 墙下 ---------- */
.ap-trust-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}
.ap-trust-left {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.ap-trust-left h3 {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 16px;
}
.ap-trust-left p {
  font-family: var(--font-body);
  font-weight: var(--fw-desc);
  font-size: 14px;
  line-height: 1.9;
  color: var(--body);
  margin: 0;
}
/* ---------- 信任之选：极简浮岛 Logo 墙 ---------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.lblock {
  position: relative;
  background: #fff;
  height: 118px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(20, 60, 120, 0.05), 0 14px 34px -10px rgba(20, 95, 251, 0.20);
  /* 品牌 LOGO 不再向上渐入：直接可见，仅保留 hover 阴影反馈 */
  opacity: 1;
  transform: none;
  transition: box-shadow 0.4s ease;
}
.lblock:hover {
  box-shadow: 0 2px 4px rgba(20, 60, 120, 0.08), 0 20px 44px -12px rgba(20, 95, 251, 0.32);
}
.lb-img {
  max-width: 76%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.lb-img1{
  max-width: 60%;
  max-height: 50%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.lb-img2{
  max-width: 80%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.lblock:hover {
  transform: translateY(-9px);
  box-shadow: 0 3px 6px rgba(20, 60, 120, 0.06), 0 26px 50px -12px rgba(20, 95, 251, 0.32);
}
.lblock:hover .lb-img,
.lblock:hover .lb-img1,
.lblock:hover .lb-img2 {
  transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .lblock { opacity: 1; transform: none; transition: none; }
}

/* ---------- 品牌弹窗（信任之选） ---------- */
.lb-clickable { cursor: pointer; }
.lb-clickable:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* 弹窗打开时锁定背景滚动（JS 同时写入 top 保持滚动位置） */
body.bm-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

.bm-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}
/* 关键：display:flex 会覆盖 hidden 属性的 UA 样式，必须显式还原 */
.bm-overlay[hidden] { display: none; }
.bm-mask {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 46, 0.55);
}
/* 宽屏弹窗：宽度 75%，高度占满，左右露出遮罩 */
.bm-dialog {
  position: relative;
  width: 75%;
  min-width: 320px;
  /* 窗口高度锁定为可视视口，不随各品牌正文行数变化（移动端地址栏收起/展开以 dvh 为准） */
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(6, 24, 52, 0.4);
  animation: bm-in 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.bm-dialog.bm-swap { animation: bm-swap 0.3s ease; }
@keyframes bm-in {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes bm-swap {
  from { opacity: 0.35; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}

.bm-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1c2b3a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.25s ease, transform 0.25s ease;
}
.bm-close:hover { background: #fff; transform: rotate(90deg); }

.bm-banner {
  position: relative;
  height: 260px;
  flex-shrink: 0;
  background: var(--bc, var(--navy));
  overflow: hidden;
}
/* 大图：铺满底层 */
.bm-banner .bm-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bm-body {
  /* 锁定正文容器高度：占满大图与底部按钮之间的固定剩余空间，内容超长时只在容器内部滚动 */
  flex: 1 1 auto;
  height: 0;
  padding: 56px 48px 48px;
  overflow-y: auto;
  min-height: 0;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  /* 内容滚到底时不把滚动传给背景（移动端下拉、桌面端触控板边缘） */
  overscroll-behavior: contain;
  /* 隐藏右侧滚动条（内容仍可滚动，滚轮/触控板/键盘照常工作） */
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* 旧版 Edge / IE */
}
.bm-body::-webkit-scrollbar {      /* Chrome / Safari */
  width: 0;
  height: 0;
  display: none;
}
.bm-company {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.bm-name {
  margin: 12px 0 8px;
  font-size: 24px;
  font-weight: var(--fw-title);
  color: var(--ink);
}
.bm-meta {
  margin: 0;
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
}
.bm-summary {
  margin: 26px 0 0;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-dim);
}
.bm-series-wrap { margin-top: 26px; }
.bm-series-wrap[hidden] { display: none; }
.bm-sub {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
}
.bm-series {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bm-chip {
  padding: 5px 12px;
  background: var(--color-primary-alpha);
  color: var(--navy);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.4;
}
.bm-intro { margin-top: 28px; }
.bm-intro p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--body);
}
.bm-intro img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  margin: 0 auto 14px;
}

.bm-cta-wrap { flex-shrink: 0; padding: 20px 48px 64px; width: 100%; max-width: 1120px; margin: 0 auto; }
.bm-cta-wrap[hidden] { display: none; }
.bm-cta {
  display: block;
  text-align: center;
  padding: 15px 24px;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background 0.25s ease;
}
.bm-cta:hover {
  background: var(--color-primary);
  color: #fff;
}

@media (max-width: 768px) {
  .bm-dialog { width: 100%; }
  .bm-banner { height: 180px; }
  .bm-close { top: 14px; right: 14px; width: 38px; height: 38px; }
  .bm-body { padding: 32px 22px 24px; }
  .bm-name { font-size: 20px; }
  .bm-cta-wrap { padding: 12px 22px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .bm-dialog, .bm-dialog.bm-swap { animation: none; }
}

/* ---------- About Page Responsive ---------- */
@media (max-width: 1024px) {
  .about-page, .ap-culture, .ap-trust { padding: 70px 0; }
  .ap-intro { gap: 40px; }
  .ap-culture-grid { grid-template-columns: repeat(2, 1fr); }
  .ap-trust-body { gap: 36px; }
}
@media (max-width: 768px) {
  .about-page, .ap-culture, .ap-trust { padding: 50px 0; }
    .ap-head .section-cn { font-size: 24px; }
  .ap-intro { grid-template-columns: 1fr; gap: 32px; }
  .ap-intro-img { height: 220px; }
  .ap-culture-grid { grid-template-columns: 1fr; gap: 16px; }
  .ap-ccard { padding: 28px 22px; }
  .ap-trust-left h3 { font-size: 20px; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .lblock { height: 92px; }
}
