/* =========================================
   style.css (全局核心底板 · 清理版)
   仅保留全局变量、基础排版、通用按钮与基础卡片
   header / footer 已拆分到 header.css / footer.css
   ========================================= */

:root {
  --bg: #f5f5f7;
  --white: #ffffff;
  --text: #111111;
  --muted: #6e6e73;
  --line: rgba(17,17,17,.08);
  --dark: #0b1020;
  --dark-soft: #12192d;
  --accent: #1d4ed8;
  --shadow: 0 16px 50px rgba(15, 23, 42, .08);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }

/* --- 布局辅助 --- */
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 40px)); }
.center { text-align: center; }

/* --- 基础排版与文字 --- */
.hero, .sub-hero { padding: 82px 0 48px; }
.hero-home { background: radial-gradient(circle at top right, rgba(29,78,216,.12), transparent 30%), linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%); }
.hero-grid, .split-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 14px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: clamp(36px, 5vw, 68px); line-height: 1.08; letter-spacing: -.04em; margin-bottom: 18px; }
h2 { font-size: clamp(28px, 3.8vw, 48px); line-height: 1.12; letter-spacing: -.03em; margin-bottom: 18px; }
h3 { font-size: 24px; line-height: 1.2; margin-bottom: 12px; }

.lead, .section-intro { font-size: 18px; color: var(--muted); line-height: 1.7; text-wrap: pretty; hyphens: auto; margin-bottom: 1em; }
.lead-tight { line-height: 1.6; }

.hero-title-balanced, .heading-balanced, .heading-method, .heading-success, .heading-local, .heading-cta, .heading-dark {
  font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 0.8em; word-break: keep-all;
}
.hero-title-balanced { font-size: clamp(2.5rem, 5vw, 3.5rem); max-width: 700px; }
.heading-balanced { font-size: clamp(2rem, 4vw, 2.8rem); }
.heading-method, .heading-local, .heading-cta { max-width: 560px; }
.heading-dark, .section-intro-tight, .cta-copy-home { max-width: 760px; margin-left: auto; margin-right: auto; }
.heading-success { max-width: 620px; }
.hero-copy, .text-block-home, .timeline-list-home { max-width: 560px; }
.local-grid .text-block-home { max-width: 620px; }
.page-title { max-width: 860px; font-size: clamp(34px, 4.8vw, 62px); line-height: 1.14; letter-spacing: -.04em; margin-bottom: 18px; }

.text-block p, .cta-copy-home p, .hero-panel p, .card p, .dark-card p {
  word-break: break-word; overflow-wrap: anywhere;
}

/* --- 按钮与链接 --- */
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; letter-spacing: 0.02em; transition: .2s ease; }
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary { background: rgba(17,17,17,.06); color: var(--text); }
.text-block .text-link { color: var(--accent); font-weight: 600; }

/* --- 通用区块与卡片 --- */
.section { padding: 92px 0; }
.section-light { background: var(--bg); }
.section-dark { background: var(--dark); color: #fff; }

.hero-card, .card, .case-card, .cta-card { border-radius: 32px; background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--line); }
.glass { background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.96)); backdrop-filter: blur(16px); }
.hero-card, .card, .case-card { padding: 28px; }
.card.soft { background: rgba(255,255,255,.75); }
.dark-card { background: var(--dark-soft); border-color: rgba(255,255,255,.06); box-shadow: none; }
.dark-card p, .section-dark .eyebrow, .section-dark .section-intro { color: rgba(255,255,255,.72); }

.card-grid { display: grid; gap: 22px; margin-top: 34px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.timeline-list, .bullet-list, .contact-list { padding-left: 18px; color: var(--muted); }
.timeline-list li strong { font-weight: 700; margin-right: 0.5em; }

.cta-card { padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(135deg, #fff, #f3f6ff); }
.cta-card-home { align-items: center; }

/* --- 全局图片预留位 --- */
.visual-photo { overflow: hidden; border-radius: 32px; background: #f3f4f6; border: 1px solid rgba(15, 23, 42, 0.06); }
.visual-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.visual-photo-cover, .visual-photo-side { min-height: 420px; position: relative; }
.visual-photo-cover img, .visual-photo-side img { min-height: 420px; }
.float-note { position: absolute; top: 22px; right: 22px; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 8px 14px; font-size: 13px; z-index: 2; }
.visual-photo-cover .float-note { top: 24px; left: 24px; right: auto; }

/* --- 响应式适配 --- */
@media (max-width: 1200px) {
  .hero-title-balanced { font-size: clamp(40px, 4.8vw, 66px); max-width: 620px; }
}

@media (max-width: 900px) {
  .hero-grid, .split-grid, .reverse, .card-grid.two, .card-grid.three, .card-grid.four, .case-grid, .cta-card { grid-template-columns: 1fr; display: grid; }
  .hero-title-balanced { max-width: 100%; font-size: clamp(34px, 10vw, 52px); }
  .heading-success, .heading-method, .heading-local, .heading-cta, .heading-dark, .text-block-home, .timeline-list-home, .cta-copy-home, .hero-copy { max-width: 100%; }
}

@media (max-width: 768px) {
  .hero-title-balanced, .heading-balanced { line-height: 1.15; }
  .lead, .section-intro, .card p { line-height: 1.65; font-size: 1rem; }
  .page-title { font-size: clamp(30px, 8vw, 42px); line-height: 1.16; }
  .sub-hero .lead, .sub-hero .lead-tight, .section-intro, .section-intro-tight, .text-block p, .card p, .case-card p { font-size: 1rem; line-height: 1.72; }
  .visual-photo-cover, .visual-photo-side, .visual-photo-cover img, .visual-photo-side img { min-height: 260px; }
}
