@import url('/css/starshine-home.css');

/* ============================================================
   关于我们 —— 依据 Figma 设计稿(409-3488 / 426-3292 / 426-3776)还原
   基础：1rem = 100px；内容区 .ss-wrap = 1640px
   ============================================================ */

/* ---- 顶部横幅 ---- */
.ss-about-hero {
  position: relative;
  height: 5rem;
  background: #181818 url('/starshine/img/about-banner.png') center/cover no-repeat;
  color: #fff;
}
.ss-about-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .7) 1%, rgba(27, 4, 4, .37) 33%, rgba(0, 0, 0, 0) 69%);
}
.ss-about-hero-inner { position: relative; padding: 1.9rem 0 1.15rem; }
.ss-about-hero h1 { margin: 0; font-size: .52rem; line-height: 1; font-weight: 600; color: #fff; }

/* ---- 栏目 tab（胶囊按钮） ---- */
.ss-about-tabs { display: flex; align-items: center; gap: .25rem; margin-top: .42rem; }
.ss-about-tabs a, .ss-about-tabs button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.52rem; height: .5rem; padding: 0 .3rem;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: .25rem;
  background: rgba(255, 255, 255, .2);
  color: #fff; font-size: .18rem; line-height: .3rem;
  text-decoration: none; font-family: inherit; cursor: pointer; white-space: nowrap;
}
.ss-about-tabs a.is-active, .ss-about-tabs button.is-active {
  background: var(--ss-red); border-color: var(--ss-red); font-weight: 500;
}

/* 面板切换 */
.ss-about-panels { position: relative; }
.ss-panel { display: none; }
.ss-panel.is-active { display: block; }

/* ---- 通用栏目标题（居中 + 红短线） ---- */
.ss-about-sec-head { display: inline-flex; flex-direction: column; align-items: center; gap: .2rem; }
.ss-about-sec-head h2 { margin: 0; font-size: .4rem; line-height: 1.2; color: #000; font-weight: 600; }
.ss-about-sec-head .ss-sec-underline,
.ss-about-sec-head-center .ss-sec-underline {
  display: block; width: .6rem; height: .02rem; background: var(--ss-red);
}
.ss-about-sec-head-center { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* ---- 星晖简介 ---- */
.ss-about-intro { background: #F9F9F9; }
.ss-about-intro-grid {
  display: flex; justify-content: space-between; align-items: center; gap: .6rem;
  padding: .6rem 0; overflow: hidden;
}
.ss-about-copy { width: 8rem; flex: 0 0 8rem; padding-top: .6rem; }
.ss-about-copy h2 { margin: 0; font-size: .4rem; line-height: 48px; color: #000; font-weight: 600; }
.ss-about-slogan { margin: .2rem 0 0; color: var(--ss-red); font-size: .24rem; line-height: 32px; font-weight: 600; }
.ss-about-body { margin-top: .5rem; color: #333; font-size: .16rem; line-height: 30px; }
.ss-about-body p { margin: 0; }
.ss-about-values { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; }
.ss-about-value {
  display: flex; align-items: center; gap: .2rem;
  padding: .2rem .58rem .2rem 0; border-right: 1px solid var(--ss-red);
}
.ss-about-value + .ss-about-value { padding: .2rem .3rem; border-right: none; }
.ss-about-value .ss-value-icon {
  flex: 0 0 .5rem; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--ss-red); display: flex; align-items: center; justify-content: center;
}
.ss-about-value .ss-value-icon img { width: .3rem; height: .3rem; }
.ss-about-value > div { flex: 0 0 2.4rem; }
.ss-about-value strong { display: block; color: #000; font-size: .2rem; line-height: 20px; font-weight: 500; }
.ss-about-value div span { display: block; margin-top: .12rem; color: #666; font-size: .16rem; line-height: 20px; }

/* 简介配图（主图 + 浮动图叠加） */
.ss-about-intro-media { position: relative; width: 7.8rem; height: 6rem; flex: 0 0 7.8rem; }
.ss-about-media-main {
  display: block; width: 7.8rem; height: 6rem; object-fit: cover; margin-top: 0;
}
.ss-about-media-float {
  position: absolute; left: 2.4rem; top: 2.4rem; z-index: 2;
  width: 6.8rem; height: 4.2rem; object-fit: cover;
}

/* ---- 发展历程 ---- */
.ss-about-history {
  position: relative; min-height: 7.5rem; box-sizing: border-box;
  padding: .8rem 0 1.4rem;
  background: url('/starshine/img/about-history-map.png') top center / 100% 7.5rem no-repeat;
}
.ss-about-history .ss-about-sec-head { margin: 0 auto .8rem; }
.ss-about-history-wrap { position: relative; }
/* 视口：单行排列，超出的部分隐藏，支持鼠标/触控横向滑动 */
.ss-about-history-viewport {
  overflow: hidden; cursor: grab; touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.ss-about-history-viewport img { user-drag: none; -webkit-user-drag: none; }
.ss-about-history-track {
  display: flex; flex-wrap: nowrap; gap: .2rem; align-items: flex-start;
  transition: transform .4s ease;
}
.ss-about-milestone {
  position: relative; padding-left: .32rem;
  flex: 0 0 calc((100% - .4rem) / 3);
  max-width: calc((100% - .4rem) / 3);
}
/* 竖向时间轴：顶部红点 + 红色实线（SVG） */
.ss-about-milestone .ss-h-line {
  position: absolute; left: 0; top: .07rem; width: .16rem; height: 3.08rem;
  background: url('/starshine/img/about-history-line.svg') no-repeat top left / .16rem 3.08rem;
}
/* 时间轴底部红色短横线 */
.ss-about-milestone .ss-h-tick {
  position: absolute; left: .09rem; top: 3.15rem; width: .09rem; height: 1px; background: var(--ss-red);
}
/* 年份 + 水平虚线 */
.ss-about-milestone .ss-h-head { display: flex; align-items: center; gap: .1rem; height: .3rem; }
.ss-about-milestone .ss-h-head strong { font-size: .3rem; line-height: 30px; color: var(--ss-red); font-weight: 500; }
.ss-about-milestone .ss-h-dash {
  flex: 1; height: 1px;
  background: repeating-linear-gradient(90deg, #999 0 .02rem, transparent .02rem .04rem);
}
/* 主图 */
.ss-about-milestone .ss-h-media { margin-top: .4rem; }
.ss-about-milestone .ss-h-media img {
  display: block; width: 3.6rem; height: 2rem; object-fit: cover;
}
/* 标题正文 */
.ss-about-milestone .ss-h-body { margin-top: .35rem; display: flex; flex-direction: column; gap: .14rem; }
.ss-about-milestone .ss-h-body h3 { margin: 0; font-size: .2rem; line-height: 20px; color: #000; font-weight: 500; }
.ss-about-milestone .ss-h-body .ss-h-desc, .ss-about-milestone .ss-h-body .ss-h-desc p { margin: 0; font-size: .16rem; line-height: 20px; color: #333; }
.ss-about-history-empty { padding: .6rem; text-align: center; color: #999; font-size: .18rem; }
/* 左右切换圆钮（页面左右两侧） */
.ss-about-history-nav {
  position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
}
.ss-about-history-nav button {
  width: .4rem; height: .4rem; padding: 0; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .26rem; line-height: 1; font-family: inherit; cursor: pointer; pointer-events: auto;
  background: #D9D9D9; color: #333;
  transition: background-color .25s ease, color .25s ease;
}
.ss-about-history-nav button.prev { margin-left: -.4rem; }
.ss-about-history-nav button.next { margin-right: -.4rem; }
.ss-about-history-nav button:hover,
.ss-about-history-nav button:active,
.ss-about-history-nav button:focus-visible { background: var(--ss-red); color: #fff; }
.ss-about-history-nav.is-static { display: none; }

/* ---- 社会责任 ---- */
.ss-about-social { position: relative; padding: .7rem 0 0; overflow: hidden; }
.ss-social-curve {
  position: absolute; left: 50%; top: .2rem; transform: translateX(-50%);
  width: 19.2rem; max-width: none; opacity: .5; pointer-events: none;
}
.ss-about-social-top { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ss-about-lead {
  margin: .3rem auto 0; width: 12rem; max-width: 100%;
  color: #333; font-size: .16rem; line-height: 30px; text-align: center;
}
/* 圆形照片拼贴（依据设计稿绝对定位）
   入场动画：所有圆圈图片与装饰圆点先聚在容器中心（scale 0），再按离中心由近到远逐个弹出 */
.ss-social-collage {
  position: relative; width: min(10.04rem, 100%); max-width: calc(100% - .6rem);
  aspect-ratio: 10.04 / 4.06; margin: .5rem auto 0;
}
.ss-social-collage img {
  position: absolute; display: block; object-fit: cover; border-radius: 50%;
}
.ss-social-collage img,
.ss-social-collage .sc-dot {
  animation: ss-circle-pop .9s cubic-bezier(.22, .61, .36, 1) both;
  animation-delay: var(--pop-delay, 0s);
}
.ss-social-collage .sc-1 { left: 10.956%; top: 44.335%; width: 8.865%; height: 21.921%; --dx: 3.475rem; --dy: -.215rem; --pop-delay: .72s; }
.ss-social-collage .sc-2 { left: 27.590%; top: 0;      width: 17.530%; height: 43.350%; --dx: 1.37rem; --dy: 1.15rem; --pop-delay: .24s; }
.ss-social-collage .sc-3 { left: 49.203%; top: 39.655%; width: 12.948%; height: 32.020%; --dx: -.57rem; --dy: -.23rem; --pop-delay: .06s; }
.ss-social-collage .sc-4 { left: 71.813%; top: 4.433%;  width: 12.052%; height: 29.803%; --dx: -2.795rem; --dy: 1.245rem; --pop-delay: .66s; }
.ss-social-collage .sc-5 { left: 71.813%; top: 51.724%; width: 12.251%; height: 30.296%; --dx: -2.805rem; --dy: -.685rem; --pop-delay: .60s; }
.ss-social-collage .sc-6 { left: 91.136%; top: 41.379%; width: 8.865%;  height: 21.921%; --dx: -4.575rem; --dy: -.095rem; --pop-delay: .84s; }
/* 装饰圆点 */
.ss-social-collage .sc-dot { position: absolute; border-radius: 50%; }
.sc-d1 { left: 35.956%; top: 65.271%; width: 6.076%; height: 15.025%; background: #FFE1E3; --dx: 1.105rem; --dy: -.925rem; --pop-delay: .18s; }
.sc-d2 { left: 0;       top: 47.291%; width: 1.693%; height: 4.187%; border: 1px solid var(--ss-red); --dx: 4.935rem; --dy: .025rem; --pop-delay: .90s; }
.sc-d3 { left: 26.494%; top: 38.177%; width: 2.390%; height: 5.911%; background: var(--ss-red); --dx: 2.24rem; --dy: .36rem; --pop-delay: .42s; }
.sc-d4 { left: 38.446%; top: 43.350%; width: 2.390%; height: 5.911%; background: #FEEDEE; --dx: 1.04rem; --dy: .15rem; --pop-delay: .12s; }
.sc-d5 { left: 47.809%; top: 29.557%; width: 4.980%; height: 12.315%; border: 1px solid var(--ss-red); --dx: -.03rem; --dy: .58rem; --pop-delay: 0s; }
.sc-d6 { left: 58.068%; top: 7.389%;  width: 7.371%; height: 18.227%; background: #EEEEEE; --dx: -1.18rem; --dy: 1.36rem; --pop-delay: .30s; }
.sc-d7 { left: 11.056%; top: 72.660%; width: 3.187%; height: 7.882%; background: #FFEBEB; --dx: 3.75rem; --dy: -1.08rem; --pop-delay: .78s; }
.sc-d8 { left: 24.900%; top: 73.892%; width: 4.183%; height: 10.345%; border: 1px solid var(--ss-red); --dx: 2.31rem; --dy: -1.18rem; --pop-delay: .48s; }
.sc-d9 { left: 55.279%; top: 2.463%;  width: 4.283%; height: 10.591%; border: 1px solid var(--ss-red); --dx: -.745rem; --dy: 1.715rem; --pop-delay: .36s; }
.sc-d10{ left: 77.390%; top: 39.901%; width: 2.390%; height: 5.911%; background: var(--ss-red); --dx: -2.87rem; --dy: .29rem; --pop-delay: .60s; }
@keyframes ss-circle-pop {
  from { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) scale(.4); }
  to   { opacity: 1; transform: translate(0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .ss-social-collage img, .ss-social-collage .sc-dot { animation: none; }
}

/* ---- 环境安全和健康 ---- */
.ss-about-env { background: #F9F9F9; margin-top: .7rem; }
.ss-about-env-grid {
  display: flex; justify-content: space-between; align-items: center; gap: .6rem;
  padding: .8rem 0 1rem;
}
.ss-about-env-copy { flex: 0 0 8rem; width: 8rem; }
.ss-about-env-copy .ss-about-sec-head { align-items: flex-start; }
.ss-about-env-text {
  margin-top: .4rem; color: #333; font-size: .16rem; line-height: 30px;
}
.ss-about-env-list { list-style: none; margin: .3rem 0 0; padding: 0; }
.ss-about-env-list li { display: flex; align-items: center; gap: .12rem; margin-bottom: .12rem; }
.ss-about-env-list li i {
  flex: 0 0 .12rem; width: .12rem; height: .12rem; border-radius: .12rem; background: var(--ss-red);
}
.ss-about-env-list li span { color: #333; font-size: .16rem; line-height: 1.6; }
.ss-about-env-img { display: block; width: 7.4rem; height: 5.8rem; object-fit: cover; flex: 0 0 7.4rem; }

/* ---- 员工之家 ---- */
.ss-about-employee {
  padding: .8rem 0 1rem;
  background-image: url('/starshine/img/about-emp-page-bg.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}
.ss-about-employee .ss-about-sec-head { margin: 0 auto .4rem; }
.ss-about-employee .ss-about-lead { margin-top: 0; }

.ss-emp-carousel {
  position: relative;
  width: 16.4rem; max-width: calc(100% - .6rem);
  height: 5.3rem;
  margin: .5rem auto 0;
}
.ss-emp-stage { position: absolute; inset: 0; }
.ss-emp-slot { position: absolute; margin: 0; border-radius: .1rem; overflow: hidden; }
.ss-emp-slot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ss-emp-center { left: 4.6rem; top: 0; width: 7.2rem; height: 4.8rem; }
.ss-emp-left { left: 0; top: 1.07rem; width: 4rem; height: 2.67rem; }
.ss-emp-right { right: 0; top: 1.07rem; width: 4rem; height: 2.67rem; }
.ss-emp-left::after,
.ss-emp-right::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.ss-emp-caption {
  position: absolute; left: 0; right: 0; top: 5rem; margin: 0;
  text-align: center; color: #333; font-size: .2rem; line-height: 30px;
}
.emp-nav {
  position: absolute; top: 2.26rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .12rem;
  padding: 0; border: none; background: none; cursor: pointer;
  color: #fff; font-family: inherit; font-size: .16rem; line-height: 30px;
}
.emp-nav .emp-arrow { display: block; width: .08rem; height: .16rem; }
.emp-prev { left: 1.56rem; }
.emp-next { right: 1.56rem; }

@media (max-width: 1200px) {
  .ss-about-hero-inner { padding: 1.3rem 0 .8rem; }
  .ss-about-hero h1 { font-size: .4rem; }
  .ss-about-tabs a, .ss-about-tabs button { min-width: 1.2rem; font-size: .16rem; }
  .ss-about-intro-grid { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .ss-about-copy, .ss-about-intro-media { flex-basis: auto; width: 100%; max-width: 100%; }
  .ss-about-copy { padding-top: 0; }
  .ss-about-body { margin-top: .3rem; }
  .ss-about-values { margin-top: .4rem; }
  .ss-about-intro-media { height: auto; }
  .ss-about-media-main { width: 100%; height: auto; margin-top: 0; }
  .ss-about-media-float { display: none; }
  .ss-about-history-track { flex-wrap: wrap; gap: .4rem; }
  .ss-about-milestone { flex: 0 0 100%; max-width: 100%; }
  .ss-about-history-nav { display: none; }
  .ss-about-env-grid { flex-direction: column; align-items: flex-start; }
  .ss-about-env-copy, .ss-about-env-img { flex-basis: auto; width: 100%; max-width: 100%; height: auto; }
  .ss-emp-caption { font-size: .18rem; }
}

@media (max-width: 640px) {
  /* 横幅栏目 tab:窄屏允许换行,防止溢出 */
  .ss-about-tabs { flex-wrap: wrap; gap: .1rem .14rem; margin-top: .24rem; }
  .ss-about-tabs a, .ss-about-tabs button { min-width: 0; height: .4rem; padding: 0 .22rem; border-radius: .2rem; line-height: .4rem; }

  /* 星晖简介:公司标题收小到仅比正文大两个字号(正文 10px),价值点改纵向排列 */
  .ss-about-copy { padding-top: 0; }
  .ss-about-copy h2 { font-size: 14px; line-height: 20px; }
  .ss-about-values { flex-direction: column; align-items: flex-start; gap: .2rem; margin-top: .4rem; }
  .ss-about-value, .ss-about-value + .ss-about-value { padding: 0; border-right: none; }
  .ss-about-value > div { flex: 1 1 auto; }

  /* 发展历程:时间轴配图随屏宽伸缩 */
  .ss-about-milestone .ss-h-media img { width: 100%; height: auto; }

  /* 社会责任:照片拼贴改为百分比布局后随屏宽等比缩放,无需再手动缩放 */
  .ss-social-collage { margin: .3rem auto 0; }

  /* 员工之家:左右副图隐藏,主图占满整行(轮播 JS 仅切换 img src,不受影响) */
  .ss-emp-carousel { height: 4.9rem; }
  .ss-emp-left, .ss-emp-right { display: none; }
  .ss-emp-center { left: 0; top: 0; width: 100%; height: 4rem; }
  .emp-nav { top: 1.76rem; }
  .emp-prev { left: .2rem; }
  .emp-next { right: .2rem; }
  .ss-emp-caption { top: 4.2rem; }
}

/* ============================================================
   英文站「关于我们」横幅窄屏适配
   ------------------------------------------------------------
   英文 tab 文案较长（Company Profile / Milestones /
   Social Responsibility），≤640px 时换行为两行；而横幅高度由
   about-banner 比例（2841/750）决定，393px 屏下仅约 104px，
   第二行 tab 会溢出到横幅外。此处为英文站抬高横幅下限并收紧
   间距，保证标题与两行 tab 完整落在横幅内。
   注意：.ss-about-hero 在 ≤1024px 时带 aspect-ratio（2841/750），
   若只写 min-height，浏览器会由高度反推宽度（135px × 3.79 ≈ 511px）
   导致横向溢出。必须同时写 width:100% 锁定宽度。
   ============================================================ */
@media (max-width: 640px) {
  html[lang="en"] .ss-about-hero { width: 100%; min-height: 2.16rem; }
  html[lang="en"] .ss-about-hero-inner { padding: .3rem 0 .26rem; }
  html[lang="en"] .ss-about-tabs { margin-top: .16rem; }
}

/* ============================================================
   移动端模块间距收紧（关于我们）
   ------------------------------------------------------------
   ≤1200px 时 1rem = 62.5px，发展历程底部原有 1.4rem（87.5px）、
   办公环境/员工保障底部 1rem（62.5px），相邻模块叠加偏大。
   此处统一收紧，使相邻模块合计约 60~70px。
   ============================================================ */
@media (max-width: 1024px) {
  .ss-about-intro-grid { padding: .45rem 0; }
  .ss-about-history { padding: .55rem 0 .9rem; }
  .ss-about-social { padding: .5rem 0 0; }
  .ss-about-env-grid { padding: .55rem 0 .6rem; }
  .ss-about-employee { padding: .55rem 0 .6rem; }
}

/* ============================================================
   移动端 banner 智能居中裁切（关于我们）
   ------------------------------------------------------------
   顶部横幅 about-banner.png 为 2841x750（比例约 3.79）。
   平板（1025-1200px）下 5rem 高对应容器比例约 3.85，几乎完整显示，无需处理；
   手机端宽约 375px 时容器比例仅约 1.2，cover 会裁掉左右两侧约 2/3。
   改为随屏宽等比（aspect-ratio 2.35）+ 居中，显示比例提升到约 60%，主体居中；
   min-height 兜底，保证标题/tab 等内容不被裁切。
   ============================================================ */
@media (max-width: 1024px) {
  .ss-about-hero { height: auto; aspect-ratio: 2841 / 750; min-height: 0; background-position: center; }
  .ss-about-hero-inner { padding: .18rem 0 .14rem; }
}

/* ============================================================
   小屏图片响应式修正
   ============================================================ */
@media (max-width: 1200px) {
  /* 员工保障及福利：背景装饰图改为等比铺满，避免 100% 100% 在内容增高时纵向拉伸变形 */
  .ss-about-employee { background-size: cover; }
  /* 社会责任：顶部弧形装饰图跟随屏宽等比缩放，不再固定 1920px 被裁切 */
  .ss-social-curve { width: 100%; height: auto; }
  /* 员工之家轮播：中等屏宽（641-1200px）下主图整行满宽，避免左右副图与主图横向溢出 */
  .ss-emp-carousel { height: 4.9rem; }
  .ss-emp-left, .ss-emp-right { display: none; }
  .ss-emp-center { left: 0; top: 0; width: 100%; height: 4rem; }
  .emp-nav { top: 1.76rem; color: #fff; background: rgba(0, 0, 0, .45); padding: .04rem .14rem; border-radius: .2rem; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
  .emp-prev { left: .2rem; }
  .emp-next { right: .2rem; }
  .ss-emp-caption { top: 4.2rem; }
}
