/* ============================================================
   瑞辰辉 RCH · 主题 rchtray
   about.css —— 关于我们页专属
   只在 about.dwt 里引用，依赖 core.css 的令牌与 shell.css 的外壳。
   骨架（.about / .toc / .asec / .stat4 / .culture / .cul / .adv8 /
   .tline / .tl）全部来自 page.css，本文件只补那套底座没有的东西：
   三格统计、简介视频、活动图集、荣誉分组、图集灯箱。
   资源规则：模板里不写 <style> / style=""，样式只在本文件
   ============================================================ */

/* ---------- 两栏容器 ---------- */
/* .about 的右栏需要一个统一容器，否则 .asec:last-child 的收边判断会落到 grid 上 */
.asecs{min-width:0}
.asec-d{
  font-family:var(--mono);font-size:9px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--tx-30);margin:-8px 0 18px;
}

/* ---------- 01 简介：富文本 ---------- */
/* .asec p 只管段落，富文本里还有 strong / ul / a / img 需要接住 */
.asec-body{margin-top:2px}
.asec-body p strong,.asec-body p b{color:var(--metal);font-weight:500}
.asec-body ul,.asec-body ol{margin:0 0 14px;padding-left:18px}
.asec-body li{font-size:14px;line-height:1.95;color:var(--tx-50);margin-bottom:6px}
/* 后台把整段说明塞进了 li > h5：浏览器默认 h5 只给 .83em 粗体，14px 的父级到它只剩 11.6px。
   这里接住，按正文排版，不再按标题收小。 */
.asec-body h5{font-size:14px;font-weight:400;line-height:1.95;color:var(--tx-50);margin:0}
.asec-body li::marker{color:rgba(255,185,85,.6)}
.asec-body a{color:var(--metal);text-decoration:none;border-bottom:1px solid rgba(255,255,255,.14);transition:.25s}
.asec-body a:hover{color:var(--amber);border-bottom-color:rgba(255,185,85,.5)}
.asec-body img{max-width:100%;height:auto;border-radius:4px;display:block;margin:6px 0 16px}
.asec-body h3,.asec-body h4{
  font-size:13.5px;font-weight:500;color:var(--metal);letter-spacing:-.01em;
  margin:18px 0 8px;
}

/* 简介视频：独立一整块，不与正文挤在一行 */
.abt-video{margin:22px 0 6px;border-radius:4px;overflow:hidden;background:#0A0D0F;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
.abt-video video{display:block;width:100%;height:auto;max-height:min(58vh,520px);background:#000}

/* ---------- 三格统计 ---------- */
/* page.css 的 .stat4 是四列，这里只有三项，多出来的一格会留白，所以另起一个三列版本 */
.stat3{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1px;margin:24px 0 4px;
  background:rgba(255,255,255,.07);border-radius:4px;overflow:hidden;
}
.stat3 .st{padding:16px 14px;background:linear-gradient(180deg,#22272C,#1B2024)}

/* 页头右侧读数：.st b 默认是 19–30px 的读数尺寸，三项并排会把标题区顶开。
   包在 min-width 里是因为 page.css 的 720 断点把 .phead-meta 整块隐藏了，
   本文件在它之后加载，不加条件会把那条隐藏规则盖掉。 */
@media(min-width:721px){
  .phead-meta{display:flex;flex-direction:row;align-items:flex-end;gap:clamp(16px,3vw,42px)}
  .phead-meta .st b{font-size:clamp(15px,1.6vw,19px);line-height:1}
  .phead-meta .st span{margin-top:5px;font-size:7.5px}
}

/* ---------- 04 员工活动：图集 ---------- */
/* 站 1 走活动表只有一条，一张大图铺满；站 2 回落条目表有三条，自动排成三列 */
.abt-act{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin-top:6px}
.abt-act-f{
  margin:0;position:relative;overflow:hidden;border-radius:4px;background:#0D1013;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);
}
.abt-act-b{
  display:block;width:100%;padding:0;border:0;background:none;cursor:pointer;
  position:relative;overflow:hidden;aspect-ratio:4/3;
}
.abt-act-b img{
  width:100%;height:100%;object-fit:cover;display:block;
  filter:contrast(1.04) saturate(.9) brightness(.94);
  transition:transform .8s var(--ease),filter .6s;
}
.abt-act-f:hover .abt-act-b img{transform:scale(1.035);filter:contrast(1.04) saturate(1) brightness(1)}
/* 双图及以上才提示可点：右上角一枚计数器，数字由 about.js 在开灯箱时不用管，这里只做视觉 */
.abt-act-b::after{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,transparent 58%,rgba(9,11,13,.5) 100%);
  opacity:0;transition:opacity .4s;
}
.abt-act-f:hover .abt-act-b::after{opacity:1}

/* 只有一条活动时不要用 4:3 铺满整栏，高度会吃掉半屏（三列时保持 4:3 的方图比例） */
.abt-act-f:only-child .abt-act-b{aspect-ratio:16/9}

.abt-act-c{padding:12px 13px 14px}
.abt-act-c b{display:block;font-size:12.5px;font-weight:500;color:var(--metal);margin-bottom:5px;letter-spacing:-.01em}
.abt-act-c span{display:block;font-size:11px;line-height:1.85;color:var(--tx-30)}

/* ---------- 05 荣誉：按子分类分组 ---------- */
.abt-grp + .abt-grp{margin-top:24px}
.abt-grp-t{
  font-family:var(--mono);font-size:9px;letter-spacing:.2em;text-transform:uppercase;
  color:rgba(255,185,85,.8);margin:0 0 12px;padding-bottom:8px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.abt-honor{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.abt-hon{margin:0}
.abt-hon-b{
  display:block;width:100%;padding:0;border:0;cursor:pointer;border-radius:4px;overflow:hidden;
  background:#12161A;box-shadow:inset 0 0 0 1px rgba(255,255,255,.07);
}
.abt-hon-b img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;transition:transform .7s var(--ease)}
.abt-hon-b:hover img{transform:scale(1.04)}
.abt-hon figcaption{padding:9px 2px 0}
.abt-hon figcaption b{display:block;font-size:11.5px;font-weight:500;color:var(--metal);line-height:1.5}
.abt-hon figcaption span{display:block;margin-top:3px;font-size:10.5px;line-height:1.7;color:var(--tx-30)}

/* ---------- 图集灯箱 ---------- */
.abt-lb{
  /* 必须高过 shell.css 的页头（z-index:900）与抽屉（899），
     否则灯箱铺不满整屏、右上角的关闭键会被页头压住看不到 */
  position:fixed;inset:0;z-index:9200;
  display:flex;align-items:center;justify-content:center;gap:clamp(8px,2vw,22px);
  padding:clamp(14px,3vw,36px);
  background:rgba(7,9,11,.94);backdrop-filter:blur(6px);
}
/* hidden 属性必须压过上面的 display:flex，否则灯箱永远开着 */
.abt-lb[hidden]{display:none}
.abt-lb-i{
  max-width:min(92vw,1180px);max-height:82vh;width:auto;height:auto;
  object-fit:contain;border-radius:3px;background:#0A0D0F;
  box-shadow:0 30px 70px -30px rgba(0,0,0,.9),inset 0 0 0 1px rgba(255,255,255,.08);
}
/* 三个按钮同一副键帽外观，位置各归各位 */
.abt-lb-x,.abt-lb-p,.abt-lb-n{
  flex:none;border:0;cursor:pointer;border-radius:3px;
  background:linear-gradient(180deg,#3A4047,#262C32);
  font-family:var(--mono);line-height:1;color:var(--metal);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 6px 16px -8px rgba(0,0,0,.8);
  transition:color .25s,background .25s;
}
.abt-lb-x:hover,.abt-lb-p:hover,.abt-lb-n:hover{color:var(--amber);background:linear-gradient(180deg,#454C54,#2C333A)}
.abt-lb-p,.abt-lb-n{width:44px;height:64px;font-size:22px}
.abt-lb-x{position:absolute;top:clamp(10px,2vw,20px);right:clamp(10px,2vw,20px);width:38px;height:38px;font-size:17px}
.abt-lb-c{
  position:absolute;left:50%;bottom:clamp(10px,2.4vw,22px);transform:translateX(-50%);
  font-family:var(--mono);font-size:9px;letter-spacing:.2em;color:var(--tx-30);
}
/* 单图时左右键没有意义，由 about.js 打 .is-one 关掉 */
.abt-lb.is-one .abt-lb-p,.abt-lb.is-one .abt-lb-n{display:none}
/* 灯箱打开时锁住滚动，背景不跟着滑 */
.abt-lock,.abt-lock body{overflow:hidden}

/* ---------- 响应式 ---------- */
@media(max-width:1080px){
  /* 单栏后侧栏变成横向 chip 条，跟着页面滚，不用再 sticky */
  .toc{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
  .toc a{flex:none}
  /* page.css 让 .toc-h 占满整行换到 chip 上方，靠的是 flex-wrap:wrap；
     这里为了保证 chip 不换行改成了 nowrap，那条 width:100% 就失效，
     标题会被挤成一根竖排窄条。窄屏 chip 自带 01–06 编号，直接不显示。 */
  .toc-h{display:none}
  .stat3{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:720px){
  /* 三格统计横排：竖排三块会把首屏占满，数字本身很短，不需要一整行 */
  .stat3{grid-template-columns:repeat(3,1fr)}
  .stat3 .st{padding:13px 12px}
  .stat3 .st b{font-size:clamp(15px,4.6vw,19px)}
  .abt-act{grid-template-columns:1fr}
  .abt-honor{grid-template-columns:repeat(auto-fill,minmax(128px,1fr))}
  .abt-lb-p,.abt-lb-n{width:36px;height:52px;font-size:18px}
  .abt-lb{gap:4px;padding:10px}
  /* 窄屏上下留白少，图要能占满一屏才看得清 */
  .abt-lb-i{max-width:calc(100vw - 20px);max-height:76vh}
}
