/* ===== 基础重置 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #555555;
  --line: #e5e5e5;
  --border: #000000;
  --max: 1200px;
  --footer-bg: #111111;
  --footer-fg: #ffffff;
  --footer-muted: #bbbbbb;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.center {
  text-align: center;
}

.align-left {
  text-align: left;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.75;
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  padding: 8px 18px;
}

/* ===== 页眉 ===== */
.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: none;
  width: 100%;
  padding: 0 40px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--fg);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.nav a:hover {
  text-decoration: underline;
}

/* ===== 通用区块标题 ===== */
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-lead {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 48px;
  text-align: center;
}

section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

/* ===== 首屏轮播 ===== */
.hero {
  border-top: none;
  padding: 0;
}

.carousel {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.slides {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.55)),
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='520' viewBox='0 0 1200 520'%3E%3Crect fill='%23333' width='1200' height='520'/%3E%3Ctext x='50%25' y='50%25' fill='%23666' font-size='20' text-anchor='middle' dominant-baseline='middle'%3EBanner 背景图%3C/text%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.slide.active {
  opacity: 1;
}

.slide-slogan {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: #fff;
}

.slide-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: #fff;
}

.slide-sub {
  max-width: 680px;
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
}

.dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.dot.active {
  background: #fff;
}

/* ===== 关于金鼎 ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}

.about-lead {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 28px;
}

.visual-box {
  width: 100%;
  height: 320px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
  background: #f8f8f8;
}

.visual-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border: 1.5px solid var(--border);
  border-radius: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
}

.stat-num {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1;
}

.stat-unit {
  font-size: 18px;
}

.stat-label {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

/* ===== 专业服务 ===== */
.services .section-title,
.services .section-lead {
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.service-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.service-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
}

.service h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.service p {
  color: var(--muted);
  font-size: 15px;
  flex: 1;
  margin-bottom: 16px;
}

.service-link {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.service-link:hover {
  text-decoration: underline;
}

/* ===== 荣誉资质 ===== */
.honors .section-title,
.honors .section-lead {
  text-align: center;
}

.cert-stage {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cert {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
}

.cert-large {
  width: 220px;
  padding: 48px 20px;
  font-size: 17px;
}

.cert-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.cert-wall .cert {
  padding: 22px 12px;
}

/* ===== 客户案例 ===== */
.cases .section-title,
.cases .section-lead {
  text-align: center;
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.logo {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 24px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
}

.logo-img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}

/* ===== 金鼎视野 ===== */
.vision .section-title,
.vision .section-lead {
  text-align: center;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.article-featured {
  grid-row: span 2;
  justify-content: flex-end;
}

.article-num {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.2;
}

.article-tag {
  display: inline-block;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  width: fit-content;
}

.article h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.article p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px;
  flex: 1;
}

/* ===== 新闻中心 ===== */
.news .section-title {
  text-align: center;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-date {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  margin: 20px 20px 8px;
}

.news-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 20px 16px;
  line-height: 1.5;
}

.news-thumb {
  margin-top: auto;
  height: 160px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.news-thumb-img {
  margin-top: auto;
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* ===== 党建与社会责任 ===== */
.responsibility .section-title {
  text-align: center;
}

.resp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.resp {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
}

/* ===== 加入我们 ===== */
.join .section-title,
.join .section-lead {
  text-align: center;
}

/* ===== 联系我们 ===== */
.contact {
  background: var(--footer-bg);
  color: var(--footer-fg);
  border-top: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-brand .brand {
  color: var(--footer-fg);
  font-size: 24px;
  margin-bottom: 12px;
  display: inline-block;
}

.contact-tag {
  color: var(--footer-muted);
  font-size: 15px;
  max-width: 280px;
}

.contact-info p {
  color: var(--footer-muted);
  font-size: 15px;
  margin-bottom: 12px;
}

.contact-info strong {
  color: var(--footer-fg);
}

.contact-qr {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}

.qr {
  text-align: center;
}

.qr-box {
  width: 100px;
  height: 100px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--footer-fg);
  margin-bottom: 8px;
}

.qr-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 8px;
  background: #fff;
}

.qr p {
  font-size: 12px;
  color: var(--footer-muted);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 32px 0;
}

.footer-inner {
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-nav a {
  color: var(--footer-fg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-copy {
  color: var(--footer-muted);
  font-size: 13px;
}

/* ===== 模式切换按钮（右上角） ===== */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mode-toggle {
  display: inline-block;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.mode-toggle:hover {
  opacity: 0.8;
}

/* ===== 单页 / 聚焦模式 ===== */
/* 容器高度压缩到当前模块：header 置顶，仅展示当前菜单内容，联系我们置底 */
body.focus-mode #content > section {
  display: none;
  padding: 48px 0;
}

body.focus-mode #content > section.active {
  display: block;
}

/* 联系我们始终作为底部 footer 展示 */
body.focus-mode #contact {
  display: block !important;
}

/* 聚焦模式下隐藏版权页脚，仅保留 header + 联系我们 footer */
body.focus-mode .site-footer {
  display: none;
}

body.focus-mode .dots {
  display: none;
}

@media (max-width: 560px) {
  .mode-toggle {
    padding: 6px 12px;
    font-size: 13px;
  }
  .header-right {
    gap: 10px;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .header-inner {
    padding: 0 20px;
  }
  .nav {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-grid,
  .article-grid,
  .news-grid,
  .resp-grid,
  .cert-wall,
  .logo-wall {
    grid-template-columns: repeat(2, 1fr);
  }
  .cert-stage {
    flex-direction: column;
    align-items: center;
  }
  .cert-large {
    width: 100%;
    max-width: 320px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-qr {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 64px;
  }
  .brand {
    font-size: 18px;
  }
  .carousel {
    height: 420px;
  }
  .stats,
  .service-grid,
  .article-grid,
  .news-grid,
  .resp-grid,
  .cert-wall,
  .logo-wall {
    grid-template-columns: 1fr;
  }
  .cert-large {
    max-width: none;
  }
  section {
    padding: 56px 0;
  }
}
