/* ============================================================
   集团化板块样式：首页三大业务卡片 / 新闻知识 tab / 联系我们 tab / 子站
   依赖 site.css 的变量与基础类；移动端在文件末尾统一适配。
   ============================================================ */

/* ---------- 首页：集团三大业务板块卡片 ---------- */
.group-blocks { background: var(--bg-2); }
.group-blocks-sub { color: var(--muted); font-size: 15px; }
.group-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.group-card {
  display: block;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.group-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.gc-media { position: relative; display: block; height: 190px; overflow: hidden; }
.gc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.group-card:hover .gc-media img { transform: scale(1.06); }
.gc-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02) 40%, rgba(0,0,0,.28));
}
.gc-tag {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  background: var(--gc, var(--navy)); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: .5px;
  padding: 5px 14px; border-radius: 20px;
}
.gc-body { display: flex; flex-direction: column; padding: 20px 22px 22px; }
.gc-name { font-size: 1.3rem; color: var(--navy); margin-bottom: 2px; }
.gc-sub { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.gc-desc { color: var(--body); font-size: 14px; line-height: 1.75; min-height: 74px; }
.gc-more {
  margin-top: 14px; color: var(--gc, var(--navy)); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.gc-more b { transition: transform .2s ease; font-size: 16px; }
.group-card:hover .gc-more b { transform: translateX(5px); }

/* ---------- 通用 tab（新闻知识 / 联系我们共用） ---------- */
.kn-tabs { background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.kn-tab-bar {
  display: flex; gap: 4px; padding: 10px 14px 0;
  border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.kn-tab {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-size: 16px; font-weight: 600; color: var(--muted);
  padding: 12px 24px 14px; border-bottom: 3px solid transparent;
  margin-bottom: -1px; transition: color .2s, border-color .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.kn-tab:hover { color: var(--navy); }
.kn-tab.active { color: var(--navy); border-bottom-color: var(--gold); }
.kn-tab-count {
  font-size: 12px; font-weight: 500; color: var(--muted);
  background: #e8edf5; border-radius: 10px; padding: 1px 8px;
}
.kn-tab.active .kn-tab-count { background: var(--navy); color: #fff; }
.kn-panel { display: none; padding: 24px 28px 30px; }
.kn-panel.active { display: block; }
.kn-h2 { font-size: 1.15rem; margin: 20px 0 12px; padding-left: 12px; border-left: 4px solid var(--gold); }
.kn-more { text-align: center; margin-top: 22px; }

/* ---------- 联系我们：三小板块 ---------- */
.ct-tabs .kn-tab-bar { padding-top: 14px; }
.ct-tab-bar { flex-wrap: wrap; }
.ct-panel-inner { min-height: 220px; }
.ct-brand-head { padding-bottom: 18px; border-bottom: 1px dashed var(--line); margin-bottom: 20px; }
.ct-brand-tag {
  display: inline-block; color: #fff; background: var(--navy);
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 4px; margin-bottom: 10px;
}
.ct-brand-head h2 { font-size: 1.5rem; margin-bottom: 4px; }
.ct-brand-head p { color: var(--muted); margin: 0; font-size: 14px; }
.ct-two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.ct-about-block { margin-bottom: 18px; }
.ct-about-block h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 10px; }
.ct-about-block p { color: var(--body); font-size: 14px; line-height: 1.85; }
.ct-about-img { float: right; width: 220px; margin: 0 0 12px 20px; border-radius: 8px; overflow: hidden; }
.ct-about-img img { width: 100%; height: auto; }
.ct-contact h3, .ct-two-col h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 12px; }
.ct-sub-links { margin-top: 18px; }
.section-title.center { justify-content: center; text-align: center; margin-bottom: 30px; }

/* ---------- 子站通用 ---------- */
.sub-site .sub-back-group { color: var(--sub-color, var(--navy)); font-weight: 600; }
.sub-hero {
  position: relative; min-height: 460px; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.sub-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: var(--sub-color, var(--navy));
}
.sub-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,30,60,.86) 0%, rgba(10,30,60,.55) 55%, rgba(10,30,60,.15) 100%);
}
.sub-hero-inner { position: relative; z-index: 2; padding: 60px 20px; max-width: 760px; }
.sub-hero-badge {
  display: inline-block; font-size: 13px; letter-spacing: .5px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
  padding: 5px 16px; border-radius: 20px; margin-bottom: 18px;
}
.sub-hero h1 { color: #fff; font-size: 2.6rem; margin-bottom: 10px; }
.sub-hero-slogan { color: var(--gold-2, #e6cf9c); font-size: 1.2rem; font-weight: 600; margin-bottom: 16px; }
.sub-hero-desc { color: rgba(255,255,255,.85); font-size: 15px; line-height: 1.8; max-width: 640px; }
.sub-hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.btn-outline-light {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.7); color: #fff; background: transparent;
  padding: 11px 24px; border-radius: 6px; font-weight: 600; transition: background .2s;
}
.btn-outline-light:hover { background: rgba(255,255,255,.14); }

.sub-page-head { background: var(--sub-color, var(--navy)); }
.sub-page-head h1, .sub-page-head .crumb { color: #fff; }
.sub-page-head p { color: rgba(255,255,255,.85); }
.sub-page-head .crumb a { color: rgba(255,255,255,.8); }

.sub-service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sub-service-card {
  display: flex; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.sub-service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.ssc-img { width: 150px; flex: 0 0 150px; }
.ssc-img img { width: 100%; height: 100%; object-fit: cover; }
.ssc-body { display: flex; flex-direction: column; padding: 16px 16px 16px 0; justify-content: center; }
.ssc-body strong { font-size: 1.1rem; color: var(--navy); margin-bottom: 6px; }
.ssc-body span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.ssc-body b { color: var(--sub-color, var(--navy)); font-size: 13px; margin-top: 10px; }

.sub-adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.sub-adv { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.sa-check {
  flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--sub-color, var(--navy));
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.sub-adv strong { display: block; color: var(--navy); font-size: 1.02rem; margin-bottom: 3px; }
.sub-adv p { color: var(--muted); font-size: 13px; margin: 0; }

.sub-svc-detail {
  display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.sub-svc-detail:nth-child(even) .sub-svc-media { order: 2; }
.sub-svc-media { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.sub-svc-media img { width: 100%; height: 210px; object-fit: cover; }
.sub-svc-text h2 { font-size: 1.4rem; color: var(--navy); }
.sub-svc-text p { color: var(--body); line-height: 1.85; }
.sub-svc-points { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 14px 0 20px; }
.sub-svc-points li { position: relative; padding-left: 20px; color: var(--body); font-size: 14px; }
.sub-svc-points li::before { content: '✓'; position: absolute; left: 0; color: var(--sub-color, var(--navy)); font-weight: 700; }
.sub-about-p { color: var(--body); line-height: 1.9; font-size: 15px; margin-bottom: 16px; }
.inquiry-form { display: flex; flex-direction: column; gap: 14px; }
.inquiry-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--navy); font-weight: 600; }
.inquiry-form input, .inquiry-form textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px;
  font-size: 14px; font-family: inherit; color: var(--ink); outline: none; transition: border-color .2s;
}
.inquiry-form input:focus, .inquiry-form textarea:focus { border-color: var(--sub-color, var(--navy)); }
.inquiry-form textarea { resize: vertical; }

/* ---------- 板块卡片：显眼的大图标入口 ---------- */
.gc-more {
  margin-top: 16px; display: flex; align-items: center; gap: 12px;
  color: var(--gc, var(--navy)); font-weight: 700; font-size: 15px;
}
.gc-enter-icon {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%;
  background: var(--gc, var(--navy)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--gc, var(--navy)) 35%, transparent);
  transition: transform .25s ease, box-shadow .25s ease;
}
.group-card:hover .gc-enter-icon {
  transform: scale(1.12) translateX(3px);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--gc, var(--navy)) 50%, transparent);
}
.gc-enter-label { letter-spacing: .5px; }

/* ---------- 集团介绍（无图 + 数据图标化） ---------- */
.group-intro-sec { background: #fff; }
.gi-head { max-width: 860px; margin: 0 auto; text-align: center; }
.gi-eyebrow { display: block; color: var(--gold, #c8a45c); font-size: 13px; font-weight: 700; letter-spacing: 3px; margin-bottom: 8px; }
.gi-head .section-title { justify-content: center; text-align: center; }
.gi-subtitle { color: var(--navy); font-size: 1.15rem; font-weight: 600; margin: 6px 0 18px; }
.gi-head p { color: var(--body); line-height: 2; font-size: 15.5px; margin: 0 0 12px; }
.gi-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin: 38px 0 30px;
}
.gi-stat {
  background: linear-gradient(180deg, #fbfcfe, #f4f7fb);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 14px 22px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gi-stat:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
/* 集团首页统计大项色块：全站统一使用人力资源板块蓝，不再红/蓝/绿混用 */
.gi-stat-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: #1c5fb3; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.gi-stat-icon svg { width: 28px; height: 28px; }
.gi-stat:nth-child(n) .gi-stat-icon { background: #1c5fb3; }
.gi-stat b { font-size: 1.9rem; color: var(--navy); line-height: 1; font-weight: 800; }
.gi-stat b em { font-size: .9rem; font-style: normal; margin-left: 2px; font-weight: 600; }
.gi-stat-label { color: var(--muted); font-size: 14px; }
.gi-action { text-align: center; }

/* ---------- 醒目「返回集团」入口（需求5）---------- */
.nav-back-group {
  display: inline-flex !important; align-items: center;
  background: linear-gradient(135deg, #1c5fb3, #164b8e) !important;
  color: #fff !important; font-weight: 700;
  padding: 7px 13px !important; border-radius: 8px;
  box-shadow: 0 3px 10px rgba(201,151,63,.32);
  transition: transform .18s ease, box-shadow .18s ease;
}
.nav-back-group:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(28,95,179,.45); color: #fff !important; }

/* ---------- 全站统一「联系我们」版式（需求 1/6/9）---------- */
.ct-page-head { background: linear-gradient(120deg, var(--navy, #143a63), #1d4f86); }
.ct-unified { max-width: 1080px; margin: 0 auto; }
.ct-panel-inner { padding: 4px 0 8px; }
.ct-brand-head { margin-bottom: 26px; }
.ct-brand-head .ct-brand-tag {
  display: inline-block; background: var(--navy, #143a63); color: #fff;
  font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 10px;
}
.ct-brand-head h2 { font-size: 1.7rem; color: var(--navy, #143a63); margin: 0 0 6px; }
.ct-brand-head p { color: var(--muted); margin: 0; font-size: 15px; }
.ct-unified .contact-wrap, .ct-panel-inner .contact-wrap {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 30px; box-shadow: var(--shadow);
}
.ct-cover { margin: 0 0 18px; border-radius: 12px; overflow: hidden; }
.ct-cover img { width: 100%; height: 220px; object-fit: cover; display: block; }
.ct-intro p { color: #475467; line-height: 1.85; margin: 0 0 10px; font-size: 14.5px; }
.ct-sub-h { font-size: 1.05rem; color: var(--navy, #143a63); margin: 20px 0 12px; padding-left: 10px; border-left: 3px solid var(--gold, #c9973f); }
.ct-biz-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.ct-biz-list li { color: #475467; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.ct-biz-list li span { color: var(--gold, #c9973f); font-weight: 800; }
.ct-unified .contact-biz, .ct-panel-inner .contact-biz { background: var(--bg-2, #f5f7fa); border-radius: 14px; padding: 24px; }
.ct-unified .contact-qr, .ct-panel-inner .contact-qr { text-align: center; margin-bottom: 18px; }
.ct-unified .contact-qr img, .ct-panel-inner .contact-qr img { width: 160px; height: 160px; object-fit: contain; border-radius: 8px; }
.ct-unified .contact-qr p, .ct-panel-inner .contact-qr p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.ct-unified .inquiry-form label, .ct-panel-inner .inquiry-form label { display: block; margin-bottom: 13px; color: #475467; font-size: 14px; font-weight: 600; }
.ct-unified .inquiry-form input, .ct-unified .inquiry-form textarea,
.ct-panel-inner .inquiry-form input, .ct-panel-inner .inquiry-form textarea {
  width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 14px; font-family: inherit;
}

/* ---------- 移动端适配 ---------- */
@media (max-width: 900px) {
  .group-cards { grid-template-columns: 1fr; gap: 18px; }
  .gc-media { height: 200px; }
  .gc-desc { min-height: 0; }
  .ct-two-col { grid-template-columns: 1fr; gap: 20px; }
  .ct-unified .contact-wrap, .ct-panel-inner .contact-wrap { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .ct-biz-list { grid-template-columns: 1fr; }
  .ct-cover img { height: 170px; }
  .sub-service-grid, .sub-adv-grid { grid-template-columns: 1fr; }
  .sub-svc-detail { grid-template-columns: 1fr; gap: 18px; }
  .sub-svc-detail:nth-child(even) .sub-svc-media { order: 0; }
  .sub-svc-media img { height: 200px; }
  .sub-hero { min-height: 400px; }
  .sub-hero h1 { font-size: 2rem; }
  .gi-stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 640px) {
  .kn-tab { padding: 11px 14px 12px; font-size: 14px; }
  .kn-tab-count { display: none; }
  .kn-panel { padding: 18px 16px 22px; }
  .ct-about-img { float: none; width: 100%; margin: 0 0 12px; }
  .sub-svc-points { grid-template-columns: 1fr; }
  .sub-hero h1 { font-size: 1.65rem; }
  .sub-hero-slogan { font-size: 1rem; }
  .sub-hero-desc { font-size: 14px; }
  .stats-row { grid-template-columns: repeat(2, 1fr) !important; }
}
