/* ==========================================================================
   pages.css — 各页面专属样式
   ========================================================================== */

/* ---------- 关于页：公司简介图文 ---------- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: center;
}

.about-intro .ai-media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about-intro .ai-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-intro .ai-text h2 {
  font-size: 28px;
  margin-bottom: 18px;
  color: var(--text-main);
}

.about-intro .ai-text p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 14px;
  text-align: justify;
}

/* ---------- 首页 新闻/科普 双栏摘要 ---------- */
.home-news-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

/* 首页"公司动态"竖向单列卡片，窄屏防止溢出 */
.home-news-col .news-grid-vertical {
  grid-template-columns: 1fr;
}

.home-news-col .news-grid-vertical .news-card,
.home-news-col .news-grid-vertical .nc-desc {
  min-width: 0;
}

/* 窄屏统一防止 flex/grid 子项溢出 */
.home-news-col,
.home-news-col .hn-head,
.home-news-col .hn-list li,
.home-news-col .hn-list li a {
  min-width: 0;
  max-width: 100%;
}

.home-news-col .hn-list li a {
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-news-col .hn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.home-news-col .hn-head h3 {
  font-size: 24px;
  position: relative;
  padding-bottom: 12px;
}

.home-news-col .hn-head h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

.home-news-col .hn-head a.more {
  font-size: 14px;
  color: var(--text-sub);
}

.home-news-col .hn-head a.more:hover {
  color: var(--primary-dark);
}

.hn-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--border-light);
}

.hn-list li a {
  font-size: 15px;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.hn-list li a:hover {
  color: var(--primary-dark);
}

.hn-list li .hn-date {
  font-size: 12px;
  color: var(--text-sub);
  flex-shrink: 0;
}

/* ---------- 首页：企业风采预览 ---------- */
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ---------- 关于页：数据统计 ---------- */
.stat-band {
  background: linear-gradient(135deg, #62c1b4, #3d9789);
  padding: 50px 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  color: #fff;
}

.stat-grid .st-num {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
}

.stat-grid .st-label {
  font-size: 15px;
  opacity: 0.92;
  margin-top: 6px;
}

/* 关于页：企业理念/文化 区块 */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.culture-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.culture-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.culture-card .cu-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.culture-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.culture-card p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.8;
}

/* 关于页：组织架构 简易列表 */
.org-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.org-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: all 0.25s ease;
}

.org-list li:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.org-list li .ol-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background-color: var(--primary);
  flex-shrink: 0;
}

.org-list li span {
  font-size: 15px;
  color: var(--text-main);
}

/* 关于页：企业历程 */
.timeline {
  position: relative;
  padding-left: 30px;
  max-width: 720px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--primary-light);
}

.timeline li {
  position: relative;
  padding: 0 0 26px 20px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #fff;
  border: 3px solid var(--primary);
}

.timeline li .tl-year {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.timeline li p {
  font-size: 14px;
  color: var(--text-body);
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .home-news-wrap {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .culture-grid,
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .org-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .culture-grid,
  .stat-grid,
  .org-list,
  .gallery-preview {
    grid-template-columns: 1fr;
  }
}
