/* 内页共享样式（企业公益 / 加入我们 / 企业风采） */

/* =========================================================
   企业公益
   ========================================================= */
.charity { padding: 20px 0 90px; background: #fff; }
.charity-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.ctab {
  border: 0;
  cursor: pointer;
  background: #f6f7fb;
  color: var(--text-1);
  font-size: 17px;
  font-weight: 500;
  padding: 15px 30px;
  border-radius: 6px;
  transition: background .25s ease, color .25s ease;
  font-family: var(--body-font);
}
.ctab:hover { background: #e8f6fb; }
.ctab.active { background: var(--cyan); color: var(--text-1); }

.charity-panel { display: none; }
.charity-panel.active {
  display: flex;
  gap: 60px;
  animation: fadeUp .5s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.charity-media {
  flex: 0 0 33%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(19,45,76,.1);
  aspect-ratio: 4 / 3;
}
.charity-media img { width: 100%; height: 100%; object-fit: cover; }
.charity-media--wide { aspect-ratio: 1383 / 779; }
.charity-media--wide img { object-fit: contain; }
/* 仅首图内联展示，附加图片仅用于点击预览轮播 */
.charity-media img.charity-extra { display: none; }
.charity-text { flex: 1; }
.charity-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.charity-head .num {
  font-size: 40px;
  font-weight: 700;
  color: var(--blue);
  font-family: var(--head-font);
}
.charity-head h2 { font-size: 30px; font-weight: 500; color: var(--text-1); line-height: 1.4; }
.charity-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 26px; max-width: 657px; }
.charity-list li {
  position: relative;
  padding-left: 26px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-2);
  text-align: justify;
}
/* 副标题（加粗深色） */
.charity-sub {
  display: block;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-1);
  margin-bottom: 8px;
}
/* 正文内容（浅灰） */
.charity-desc {
  display: block;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-2);
  text-align: justify;
}

/* =========================================================
   加入我们
   ========================================================= */
.join { padding: 30px 0 100px; background: #fff; }
.join-body {
  display: flex;
  gap: 80px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
}
.join-list { flex: 1; display: flex; flex-direction: column; gap: 40px; }
.join-item { position: relative; padding-left: 22px; }
.join-item h3 { font-size: 28px; font-weight: 500; color: var(--text-1); margin-bottom: 10px; }
.join-item p { font-size: 17px; line-height: 1.8; color: var(--text-2); }
.join-item a { color: var(--blue); }
.join-item a:hover { text-decoration: underline; }
.join-photo {
  flex: 0 0 42%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(19,45,76,.14);
  aspect-ratio: 425 / 583;
}
.join-photo img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   联系我们（地图 + 公司信息 + 联系方式卡片）
   ========================================================= */
.contact { padding: 40px 0 90px; background: #fff; }

/* 顶部：地图 + 公司信息 */
.contact-top {
  display: flex;
  align-items: center;
  gap: 70px;
  max-width: 1280px;
  margin: 0 auto 70px;
  padding-bottom: 60px;
}
.contact-map {
  flex: 0 0 auto;
  width: 658px;
  max-width: 50%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(19,45,76,.12);
}
.contact-map img { width: 100%; height: auto; display: block; }
.contact-info { flex: 1; min-width: 0; }
.contact-info h2 {
  font-weight: 500;
  font-weight: 500;
  font-size: 36px;
  color: #333333;
  margin-bottom: 26px;
}
.contact-info .ci-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  color: var(--text-2);
  margin-bottom: 32px;
  line-height: 1.5;
}
.contact-info .ci-row span{
  font-weight: 400;
  font-size: 24px;
  color: #333333;
}
.contact-info .ci-row svg {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  color: var(--blue);
  margin-top: 2px;
}
.contact-info .ci-row .ci-ico {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  object-fit: contain;
  margin-top: 2px;
}

/* 底部：4 个联系方式卡片 */
.contact-cards {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  max-width: 680px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.cc {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.cc-ico { width: 64px; height: 64px; flex: 0 0 64px; }
.cc-text { min-width: 0; }
.cc-text h4 { font-size: 20px; font-weight: 500; color: var(--text-1); margin-bottom: 8px; }
.cc-text a, .cc-text span { font-size: 16px; color: var(--text-2); word-break: break-word; }
.cc-text a:hover { color: var(--blue); text-decoration: underline; }

/* =========================================================
   图片全屏 Lightbox（企业公益图片点击放大）
   ========================================================= */
.charity-media { cursor: zoom-in; }
.charity-media { position: relative; }
.charity-media::after {
  content: "";
  position: absolute;
  right: 16px; bottom: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Cpath d='M14 14l5 5M9 6v6M6 9h6'/%3E%3C/svg%3E") center/20px no-repeat;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.charity-media:hover::after { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 82vw;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  animation: lbZoom .3s ease;
}
@keyframes lbZoom { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.lightbox-close {
  position: absolute;
  top: 28px; right: 36px;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,.28); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 58px; height: 58px;
  border: 0;
  padding: 0;
  font-size: 0;
  color: transparent;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  cursor: pointer;
  opacity: .9;
  transition: opacity .2s ease, transform .2s ease;
}
.lightbox-nav:hover { opacity: 1; transform: translateY(-50%) scale(1.08); }
.lightbox-prev { left: 3vw; background-image: url("../images/figma/Group%202090056692@2x.png"); }
.lightbox-next { right: 3vw; background-image: url("../images/figma/Group%202090056691@2x.png"); }
.lightbox-nav[hidden] { display: none; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 992px) {
  .charity-panel.active { flex-direction: column; }
  .charity-media { flex: none; width: 100%; }
  .join-grid { grid-template-columns: 1fr; }
  /* 联系我们：地图与信息竖排，卡片两列 */
  .contact-top { flex-direction: column; align-items: stretch; gap: 32px; }
  .contact-map { width: 100%; max-width: 100%; }
  .contact-cards { gap: 30px 24px; }
  .cc { flex: 1 1 42%; }
}
@media (max-width: 768px) {
  .charity-tabs { gap: 10px; }
  .ctab { font-size: 14px; padding: 10px 16px; }
  .charity-head h2 { font-size: 22px; }
  .charity-head .num { font-size: 30px; }
  .charity-list li { font-size: 15px; }
  .join-card { padding: 28px 24px; }
  .join-card h3 { font-size: 22px; }
  /* 联系卡片单列 */
  .cc { flex: 1 1 100%; }
  .contact-info h2 { font-size: 24px; }
  .contact-info .ci-row { font-size: 16px; }
}
