/* 走进和美页面；头尾、主题色和基础字号共用 style.css。 */
.about-page {
  background: white;
}

.about-banner {
  height: calc(746 * var(--u));
  position: relative;
  background: linear-gradient(#0003, #0003), url('../images/about/banner.jpg') center / cover no-repeat;
  color: white;
}

.about-banner > div {
  position: absolute;
  top: calc(328 * var(--u));
  left: 0;
  right: 0;
  text-align: center;
}

.about-banner > div p {
  font: 700 calc(62 * var(--u))/1.3 Arial, sans-serif;
  color: #ffffff66;
}

.about-banner h1 {
  margin-top: calc(-42 * var(--u));
  font-size: calc(28 * var(--u));
  font-weight: 400;
}

.about-subnav {
  height: calc(79 * var(--u));
  background: white;
}

.about-subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.about-breadcrumb {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--u));
  font-size: calc(16 * var(--u));
  color: #777;
  white-space: nowrap;
}

.about-breadcrumb svg {
  display: block;
  width: calc(18 * var(--u));
  height: calc(18 * var(--u));
  fill: #444;
}

.about-sections {
  display: flex;
  align-self: stretch;
  gap: calc(55 * var(--u));
}

.about-sections a,.about-sections button {
  display: flex;
  align-items: center;
  position: relative;
  padding: 0;
  background: none;
  border: 0;
  font-size: calc(20 * var(--u));
  color: #777;
  white-space: nowrap;
}

.about-sections a.active {
  color: #333;
}

.about-sections a.active::after,.about-sections a:hover::after,.about-sections button:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(82 * var(--u));
  height: 3px;
  background: var(--red);
}

.about-profile {
  padding-top: calc(90 * var(--u));
}

.about-profile .about-description {
  margin-top: calc(34 * var(--u));
  width: 92%;
  line-height: 1.7;
}

.about-profile .stats {
  margin: calc(50 * var(--u)) auto calc(67 * var(--u));
}

.about-profile .company-visual img {
  filter: brightness(.8);
}

.about-profile .play-icon {
  background: #0007;
  color: white;

}

.departments {
  padding: calc(100 * var(--u)) 0 calc(110 * var(--u));
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(18 * var(--u));
  margin-top: calc(40 * var(--u));
}

/* 发展历程：年份与中心卡片在 about.js 中联动。 */
.company-history {
  height: calc(855 * var(--u));
  padding-top: calc(100 * var(--u));
  overflow: hidden;
  background: #f7f7f7 url('../images/about/history-bg.png') center / auto 78% no-repeat;
}

.history-stage {
  position: relative;
  height: calc(400 * var(--u));
  margin-top: calc(80 * var(--u));
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.history-stage:active {
  cursor: grabbing;
}

.history-stage::before {
  content: '';
  position: absolute;
  left: calc((1500 * var(--u) - 100vw) / 2);
  width: 100vw;
  top: calc(194 * var(--u));
  height: 1px;
  background: #ddd;
}

.history-years {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: 100%;
}

.history-years button {
  position: relative;
  padding: calc(82 * var(--u)) 0 0;
  height: 100%;
  border: 0;
  background: transparent;
  font: 400 calc(60 * var(--u))/1.2 Arial, sans-serif;
  color: #666;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.history-years button:first-child,.history-years button:last-child {
  padding-top: calc(235 * var(--u));
}

.history-years button::after {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(188 * var(--u));
  width: calc(12 * var(--u));
  height: calc(12 * var(--u));
  border-radius: 50%;
  background: #aaa;
  transform: translateX(-50%);
}

.history-years button:hover {
  color: var(--red);
}

.history-years button:hover::after {
  background: var(--red);
}

.history-card {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: calc(436 * var(--u));
  height: calc(382 * var(--u));
  padding: calc(14 * var(--u));
  background: white;
  text-align: center;
}

.history-card img {
  display: block;
  width: 100%;
  height: calc(212 * var(--u));
  object-fit: cover;
}

.history-card h3 {
  font-size: calc(28 * var(--u));
  line-height: 1.5;
  font-weight: 400;
}

.history-card p {
  width: 90%;
  margin: 0 auto;
  font-size: calc(16 * var(--u));
  line-height: 1.3;
  color: #888;
}

.history-controls {
  display: flex;
  justify-content: center;
  margin-top: calc(26 * var(--u));
}

.history-controls button {
  width: calc(218 * var(--u));
  height: calc(40 * var(--u));
  border: 0;
  background: #e5e5e5;
  color: #888;
}

.history-controls button:first-child {
  background: var(--red);
  color: white;
}

.history-controls button:hover {
  background: #d90028;
  color: white;
}

/* 企业文化 */
.company-culture {
  padding: calc(100 * var(--u)) 0 calc(102 * var(--u));
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(43 * var(--u));
  margin-top: calc(42 * var(--u));
}

.culture-card {
  height: calc(360 * var(--u));
  padding: calc(75 * var(--u)) calc(20 * var(--u)) 0;
  background: #f7f7f7;
  text-align: center;
}

.culture-card img {
  height: calc(56 * var(--u));
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.culture-card h3 {
  margin-top: calc(10 * var(--u));
  font-size: calc(30 * var(--u));
  font-weight: 400;
}

.culture-card > span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ccc;
  margin: calc(12 * var(--u)) auto calc(16 * var(--u));
}

.culture-card p {
  font-size: calc(16 * var(--u));
  line-height: 1.65;
  color: #999;
}

/* 循环展示：只复制已有素材，滑动不会新增虚构人物或证书。 */
.company-team {
  height: calc(795 * var(--u));
  padding-top: calc(100 * var(--u));
  background: #f7f7f7;
}

.company-honors {
  height: calc(817 * var(--u));
  padding-top: calc(95 * var(--u));
}



.honor-slider {
  --visible: 4;
  --gap: calc(20 * var(--u));
  margin-top: calc(62 * var(--u));
}









.team-card {
  text-align: center;
}

.team-card img {
  display: block;
  width: 100%;
  height: calc(350 * var(--u));
  object-fit: cover;
  border-radius: 14px;
  pointer-events: none;
}

.team-card h3 {
  margin-top: calc(25 * var(--u));
  font-size: calc(25 * var(--u));
  font-weight: 400;
}

.team-card p {
  margin-top: calc(6 * var(--u));
  font-size: calc(18 * var(--u));
  color: #888;
}













.honor-card {
  border: 1px solid #eee;
  text-align: center;
}

.honor-image {
  width: 100%;
  height: calc(385 * var(--u));
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  border: 0;
  padding: calc(15 * var(--u));
  cursor: zoom-in;
}

.honor-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90%;
  object-fit: contain;
  pointer-events: none;
}

.honor-card h3 {
  height: calc(64 * var(--u));
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(18 * var(--u));
  font-weight: 400;
}

.honor-slider .slider-controls {
  margin-top: calc(31 * var(--u));
}

.honor-dialog,.planning-dialog {
  margin: auto;
}

.honor-dialog {
  width: min(1000px, 94vw);
  padding: 45px 25px 25px;
}

.honor-dialog img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 75vh;
  margin: auto;
}

.planning-dialog p {
  font-size: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .about-banner {
    height: 420px;
  }

  .about-banner > div {
    top: 180px;
  }

  .about-banner > div p {
    font-size: 48px;
  }

  .about-banner h1 {
    font-size: 24px;
    margin-top: -25px;
  }

  .about-subnav {
    height: auto;
  }

  .about-subnav-inner {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .about-breadcrumb {
    padding: 15px 0;
    font-size: 13px;
    gap: 12px;
  }

  .about-breadcrumb svg {
    width: 15px;
    height: 15px;
  }

  .about-sections {
    width: 100%;
    gap: 28px;
    overflow-x: auto;
  }

  .about-sections a,.about-sections button {
    min-height: 50px;
    font-size: 15px;
  }

  .about-profile {
    padding-top: 55px;
  }

  .about-profile .about-description {
    width: 100%;
    margin-top: 30px;
    font-size: 14px;
    line-height: 1.9;
  }

  .about-profile .stats {
    margin: 30px auto 35px;
  }

  

  .departments {
    padding: 55px 0;
  }

  .department-grid {
    gap: 15px;
    margin-top: 30px;
  }

  .company-history {
    height: 650px;
    padding-top: 55px;
    background-size: auto 70%;
    overflow: hidden;
  }

  .history-stage {
    height: 350px;
    margin-top: 45px;
  }

  .history-stage::before {
    left: -10vw;
    width: 120vw;
    top: 175px;
  }

  .history-years button {
    font-size: 30px;
    padding-top: 70px;
  }

  .history-years button:first-child,.history-years button:last-child {
    padding-top: 220px;
  }

  .history-years button::after {
    top: 170px;
    width: 10px;
    height: 10px;
  }

  .history-card {
    width: 32%;
    height: 315px;
    padding: 10px;
  }

  .history-card img {
    height: 160px;
  }

  .history-card h3 {
    font-size: 24px;
  }

  .history-card p {
    font-size: 12px;
    line-height: 1.5;
    width: 100%;
  }

  .history-controls {
    margin-top: 20px;
  }

  .history-controls button {
    width: 120px;
    height: 36px;
  }

  .company-culture {
    padding: 55px 0;
  }

  .culture-grid {
    gap: 18px;
    margin-top: 30px;
  }

  .culture-card {
    height: 300px;
    padding: 35px 14px 0;
  }

  .culture-card img {
    height: 45px;
  }

  .culture-card h3 {
    font-size: 23px;
  }

  .culture-card p {
    font-size: 12px;
  }

  .company-team,.company-honors {
    height: auto;
    padding: 55px 0;
  }

  .about-slider {
    --visible: 3;
    --gap: 20px;
    margin-top: 35px;
  }

  .honor-slider {
    --visible: 2;
  }

  .team-card img {
    height: 290px;
  }

  .team-card h3 {
    font-size: 22px;
    margin-top: 18px;
  }

  .team-card p {
    font-size: 14px;
  }

  .slider-controls {
    margin-top: 28px;
  }

  .honor-image {
    height: 300px;
    padding: 15px;
  }

  .honor-card h3 {
    height: 48px;
    font-size: 16px;
  }

}

@media (max-width: 520px) {
  .about-banner {
    height: 330px;
  }

  .about-banner > div {
    top: 145px;
  }

  .about-banner > div p {
    font-size: 38px;
  }

  .about-banner h1 {
    font-size: 21px;
    margin-top: -19px;
  }

  .department-grid,.culture-grid {
    grid-template-columns: 1fr;
  }

  .company-history {
    height: 620px;
  }

  .history-stage {
    margin-top: 35px;
    height: 350px;
  }

  .history-years {
    grid-template-columns: 1fr 1fr;
    gap: 50%;
  }

  .history-years span,.history-years button:first-child,.history-years button:last-child {
    display: none;
  }

  .history-years button {
    font-size: 19px;
    padding-top: 150px;
    z-index: 1;
  }

  .history-years button::after {
    top: 190px;
    width: 7px;
    height: 7px;
  }

  .history-stage::before {
    top: 193px;
  }

  .history-card {
    width: 65%;
    height: 330px;
    z-index: 2;
  }

  .history-card img {
    height: 165px;
  }

  .history-card p {
    font-size: 13px;
  }

  .culture-card {
    height: auto;
    min-height: 280px;
    padding-bottom: 30px;
  }

  .culture-card p {
    font-size: 14px;
  }

  .about-slider {
    --visible: 2;
    --gap: 16px;
  }

  .team-card img {
    height: 220px;
    border-radius: 8px;
  }

  .team-card h3 {
    font-size: 19px;
  }

  .team-card p {
    font-size: 13px;
  }

  .honor-slider {
    --visible: 1;
  }

  .honor-image {
    height: 310px;
  }

}

/* 图标及时间轴位置微调 */
.culture-card img {
  margin-left: auto;
  margin-right: auto;
}

.history-years {
  display: block;
  position: relative;
}

.history-years button {
  position: absolute;
  top: 0;
  width: calc(160 * var(--u));
  height: 100%;
  transform: translateX(-50%);
}

.history-years button:nth-child(1) {
  left: 4%;
}

.history-years button:nth-child(2) {
  left: 25%;
}

.history-years button:nth-child(4) {
  left: 76%;
}

.history-years button:nth-child(5) {
  left: 96%;
}

@media (max-width: 520px) {
  .history-years button {
    width: 17%;
  }

  .history-years button:nth-child(2) {
    left: 4%;
  }

  .history-years button:nth-child(4) {
    left: 96%;
  }

}

/* 事业部：默认显示原图和名称，移入后过渡到浅灰文字面板。 */
.department-card {
  position: relative;
  display: block;
  width: 100%;
  height: calc(360 * var(--u));
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #f7f7f7;
  text-align: center;
}
.department-card > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.department-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(70 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0006;
  color: white;
  font-size: calc(25 * var(--u));
  transition: opacity .3s ease;
}
.department-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(26 * var(--u));
  background: #f7f7f7;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
}
.department-title {
  font-size: calc(25 * var(--u));
  color: #444;
}
.department-line {
  display: block;
  width: 26px;
  height: 2px;
  flex-shrink: 0;
  margin: calc(12 * var(--u)) 0 calc(16 * var(--u));
  background: var(--red);
}
.department-copy {
  display: block;
  color: #888;
  font-size: calc(19 * var(--u));
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.department-copy > span { display: block; }
.department-card.is-open .department-overlay {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.department-card.is-open .department-caption { opacity: 0; }
.department-card.is-open > img { transform: scale(1.04); }
.department-card:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (max-width: 900px) {
  .department-card { height: 250px; }
  .department-overlay { padding: 18px; }
  .department-caption { height: 45px; font-size: 18px; }
  .department-title { font-size: 20px; }
  .department-line { margin: 10px 0 12px; }
  .department-copy { font-size: 14px; line-height: 1.75; }
}
@media (max-width: 520px) {
  .department-card { height: 250px; }
  .department-copy { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .department-overlay { transition: none; transform: none; }
}
