/* ============================================================
   公司简介页 v2 · 独立视觉体系
   不复用首页的 hp-* 卡片样式，用「档案卡 / 展厅画廊 / 流程轴」
   建立区别于首页的公司介绍页观感。
   加载位置：template-about.php 通过 wp_enqueue_style 按需引入（见 functions.php）
   ============================================================ */

/* 英文公司简介：长标题/长词适配 */
.ab-banner h1{ overflow-wrap:break-word; }
body.page-template-template-en-about .ab-banner h1{ font-size:32px; max-width:900px; }
body.page-template-template-en-about .ab-banner-sub{ max-width:860px; }
body.page-template-template-en-about .ab2-facts-grid dd{ font-size:17px; overflow-wrap:break-word; }
body.page-template-template-en-about .ab2-process-list h3{ font-size:15px; }

.ab2-kicker{ margin:0 0 12px; font-size:12px; font-weight:700; letter-spacing:4px; color:var(--accent-dark); }
.ab2-head{ max-width:720px; margin:0 auto 48px; text-align:center; }
.ab2-head h2{ margin:0 0 12px; font-size:32px; font-weight:700; line-height:1.4; color:var(--primary-dark); }
.ab2-head p{ margin:0; font-size:16px; line-height:1.9; color:var(--muted); }

/* ---------- 公司速览：档案式 facts ---------- */
.ab2-facts{ padding:58px 0 62px; background:var(--bg); border-bottom:1px solid var(--border); }
.ab2-facts-head{ display:flex; align-items:center; gap:22px; margin-bottom:34px; }
.ab2-facts-head h2{ margin:0; font-size:21px; font-weight:700; color:var(--primary-dark); white-space:nowrap; }
.ab2-line{ flex:1; height:1px; background:var(--border); }
.ab2-facts-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:0; margin:0; border:1px solid var(--border); border-radius:12px; background:#fff; overflow:hidden; }
.ab2-facts-grid > div{ padding:26px 32px; border-right:1px solid var(--border); border-bottom:1px solid var(--border); }
.ab2-facts-grid > div:nth-child(3n){ border-right:none; }
.ab2-facts-grid > div:nth-last-child(-n+3){ border-bottom:none; }
.ab2-facts-grid dt{ font-size:13px; letter-spacing:1px; color:var(--muted); }
.ab2-facts-grid dd{ margin:8px 0 0; font-size:21px; font-weight:700; line-height:1.4; color:var(--primary-dark); }

/* ---------- 品牌故事 ---------- */
.ab2-story{ padding:92px 0; background:#fff; }
.ab2-story-grid{ display:grid; grid-template-columns:1fr 46%; gap:68px; align-items:center; }
.ab2-story-copy h2{ margin:0 0 22px; font-size:34px; font-weight:700; line-height:1.4; color:var(--primary-dark); }
.ab2-story-text{ margin:0; font-size:16px; line-height:2.05; color:#3D4856; }
.ab2-story-sign{ margin:26px 0 0; padding-top:18px; border-top:1px solid var(--border); font-size:14px; color:var(--muted); }
.ab2-story-media img{ display:block; width:100%; height:400px; object-fit:cover; border-radius:12px; border:1px solid var(--border); box-shadow:0 16px 38px rgba(6,42,85,.14); }

/* ---------- 展厅画廊 ---------- */
.ab2-gallery{ padding:92px 0; background:var(--bg); }
.ab2-gallery-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.ab2-gallery-item{ position:relative; display:block; overflow:hidden; aspect-ratio:4/3; border-radius:12px; background:#fff; border:1px solid var(--border); }
/* 不足 4 张时：给可见项重新编号后按数量平均排布 */
.ab2-gallery-grid.ab2-gallery-4 .ab2-gallery-item:nth-child(1){ grid-column:span 2; grid-row:span 2; aspect-ratio:auto; }
.ab2-gallery-grid.ab2-gallery-3 .ab2-gallery-item:nth-child(1){ grid-column:span 2; grid-row:span 2; aspect-ratio:auto; }
.ab2-gallery-grid.ab2-gallery-3{ grid-template-columns:repeat(3,1fr); }
.ab2-gallery-grid.ab2-gallery-2{ grid-template-columns:repeat(2,1fr); }
.ab2-gallery-grid.ab2-gallery-1{ grid-template-columns:1fr; max-width:640px; }
.ab2-gallery-item img{ display:block; width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.ab2-gallery-item:hover img{ transform:scale(1.05); }
.ab2-gallery-cap{ position:absolute; left:0; right:0; bottom:0; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:16px 20px; background:linear-gradient(0deg,rgba(6,25,52,.92),rgba(6,25,52,0)); color:#fff; }
.ab2-gallery-cap b{ font-size:15px; font-weight:600; }
.ab2-gallery-cap i{ font-size:12px; font-style:normal; color:rgba(255,255,255,.75); white-space:nowrap; }

/* 灯箱 */
.ab2-lightbox{ position:fixed; inset:0; z-index:9999; display:none; align-items:center; justify-content:center; padding:4vw; background:rgba(4,14,30,.94); cursor:zoom-out; }
.ab2-lightbox.is-open{ display:flex; }
.ab2-lightbox img{ max-width:100%; max-height:92vh; object-fit:contain; border-radius:8px; box-shadow:0 24px 80px rgba(0,0,0,.6); }
.ab2-lightbox-close{ position:absolute; top:20px; right:26px; width:44px; height:44px; line-height:42px; text-align:center; font-size:30px; color:#fff; border:1px solid rgba(255,255,255,.4); border-radius:50%; background:rgba(255,255,255,.08); cursor:pointer; }

/* ---------- 服务流程 ---------- */
.ab2-process{ padding:92px 0; background:#fff; }
.ab2-process-list{ position:relative; display:grid; grid-template-columns:repeat(5,1fr); gap:20px; margin:0; padding:0; list-style:none; }
.ab2-process-list::before{ content:""; position:absolute; left:6%; right:6%; top:27px; height:2px; background:linear-gradient(90deg,var(--accent),var(--border)); }
.ab2-process-list li{ position:relative; text-align:center; padding:0 6px; }
.ab2-step-num{ position:relative; z-index:1; display:flex; align-items:center; justify-content:center; width:56px; height:56px; margin:0 auto 22px; border-radius:50%; background:#fff; border:2px solid var(--accent); color:var(--accent-dark); font-size:18px; font-weight:700; }
.ab2-process-list h3{ margin:0 0 10px; font-size:17px; font-weight:700; color:var(--primary-dark); }
.ab2-process-list p{ margin:0; font-size:14px; line-height:1.8; color:var(--muted); }

/* ---------- 包装运输 ---------- */
.ab2-pkg{ padding:82px 0; background:#F4F8FD; }
.ab2-pkg .ab2-kicker{ color:var(--accent-dark); }
.ab2-pkg-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.ab2-pkg-grid figure{ margin:0; padding:0; overflow:hidden; border-radius:var(--radius); background:#fff; box-shadow:0 6px 24px rgba(16,54,102,.08); }
.ab2-pkg-grid a{ display:block; width:100%; aspect-ratio:4/3; overflow:hidden; cursor:zoom-in; }
.ab2-pkg-grid img{ display:block; width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.ab2-pkg-grid a:hover img{ transform:scale(1.04); }
.ab2-pkg-grid figcaption{ padding:12px 16px; font-size:14px; line-height:1.6; color:var(--medium-text,var(--muted)); }
.ab2-pkg-points{ display:flex; flex-wrap:wrap; justify-content:center; gap:12px 36px; margin:36px 0 0; padding:0; list-style:none; }
.ab2-pkg-points li{ display:flex; align-items:center; gap:8px; font-size:15px; font-weight:600; color:var(--primary-dark); }
.ab2-pkg-points li .glyphicon{ color:var(--accent-dark); }
@media(max-width:767px){
  .ab2-pkg{ padding:60px 0; }
  .ab2-pkg-grid{ grid-template-columns:1fr; gap:14px; }
  .ab2-pkg-points{ flex-direction:column; align-items:flex-start; gap:10px; }
}

/* ---------- 资质 ---------- */
.ab2-cred{ padding:82px 0; background:var(--primary-dark); }
.ab2-cred .ab2-head h2{ color:#fff; }
.ab2-cred .ab2-head p{ color:rgba(255,255,255,.8); }
.ab2-cred-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; border:1px solid rgba(255,255,255,.18); border-radius:12px; overflow:hidden; }
.ab2-cred-item{ padding:34px 18px; text-align:center; border-right:1px solid rgba(255,255,255,.18); }
.ab2-cred-item:last-child{ border-right:none; }
.ab2-cred-num{ display:block; font-size:32px; font-weight:700; color:var(--accent); line-height:1.2; }
.ab2-cred-item b{ display:block; margin-top:6px; font-size:15px; color:#fff; }
.ab2-cred-item p{ margin:10px 0 0; font-size:13.5px; color:rgba(255,255,255,.75); line-height:1.7; }

/* ---------- 响应式 ---------- */
@media (max-width:991px){
  .ab2-story-grid{ grid-template-columns:1fr; gap:32px; }
  .ab2-story-media img{ height:340px; }
  .ab2-process-list{ grid-template-columns:repeat(3,1fr); gap:30px 20px; }
  .ab2-process-list::before{ display:none; }
}
@media (max-width:767px){
  .ab2-facts{ padding:42px 0 46px; }
  .ab2-facts-grid{ grid-template-columns:repeat(2,1fr); }
  .ab2-facts-grid > div{ padding:18px 16px; }
  .ab2-facts-grid > div:nth-child(3n){ border-right:1px solid var(--border); }
  .ab2-facts-grid > div:nth-child(2n){ border-right:none; }
  .ab2-facts-grid > div:nth-last-child(-n+3){ border-bottom:1px solid var(--border); }
  .ab2-facts-grid > div:nth-last-child(-n+2){ border-bottom:none; }
  .ab2-facts-grid dd{ font-size:16px; }
  .ab2-story,.ab2-gallery,.ab2-process{ padding:56px 0; }
  .ab2-head{ margin-bottom:32px; }
  .ab2-head h2{ font-size:24px; }
  .ab2-head p{ font-size:14px; }
  .ab2-story-copy h2{ font-size:25px; }
  .ab2-story-text{ font-size:14.5px; line-height:1.9; }
  .ab2-story-media img{ height:250px; }
  .ab2-gallery-grid{ gap:10px; }
  .ab2-gallery-grid.ab2-gallery-4,
  .ab2-gallery-grid.ab2-gallery-3{ grid-template-columns:repeat(2,1fr); }
  .ab2-gallery-grid.ab2-gallery-4 .ab2-gallery-item:nth-child(1),
  .ab2-gallery-grid.ab2-gallery-3 .ab2-gallery-item:nth-child(1){ grid-column:auto; grid-row:auto; aspect-ratio:4/3; }
  .ab2-gallery-cap{ padding:10px 12px; }
  .ab2-gallery-cap b{ font-size:13px; }
  .ab2-process-list{ grid-template-columns:repeat(2,1fr); gap:24px 14px; }
  .ab2-step-num{ width:46px; height:46px; margin-bottom:14px; font-size:15px; }
  .ab2-process-list h3{ font-size:15px; }
  .ab2-process-list p{ font-size:12.5px; }
  .ab2-cred{ padding:56px 0; }
  .ab2-cred-grid{ grid-template-columns:repeat(2,1fr); }
  .ab2-cred-item{ padding:22px 10px; border-bottom:1px solid rgba(255,255,255,.18); }
  .ab2-cred-item:nth-child(2n){ border-right:none; }
  .ab2-cred-item:nth-last-child(-n+2){ border-bottom:none; }
  .ab2-cred-num{ font-size:26px; }
}
