/* ============================================================
   12 种首页排版风格（只改变结构、节奏、信息摆放）
   ============================================================ */

body[class*="sp-layout-"] .sp-hero-inner { position: relative; }
body[class*="sp-layout-"] .sp-section { scroll-margin-top: 88px; }

/* 1. 左右分栏 */
body.sp-layout-split-hero .sp-hero-inner { grid-template-columns: 1.06fr .94fr; gap: clamp(28px, 5vw, 76px); }
body.sp-layout-split-hero .sp-hero h1 { font-size: clamp(34px, 4.4vw, 58px); }

/* 2. 居中舞台 */
body.sp-layout-centered-stage .sp-hero { min-height: 72vh; display: flex; align-items: center; }
body.sp-layout-centered-stage .sp-hero-inner { grid-template-columns: 1fr; max-width: 980px; text-align: center; gap: 28px; }
body.sp-layout-centered-stage .sp-hero-copy { display: flex; flex-direction: column; align-items: center; }
body.sp-layout-centered-stage .sp-hero-art { display: none; }
body.sp-layout-centered-stage .sp-eyebrow,
body.sp-layout-centered-stage .sp-hero-actions,
body.sp-layout-centered-stage .sp-hero-stats { justify-content: center; }
body.sp-layout-centered-stage .sp-hero h1 { font-size: clamp(40px, 6.5vw, 86px); letter-spacing: -.05em; }

/* 3. 杂志错位 */
body.sp-layout-editorial-stack .sp-hero { padding-block: clamp(56px, 8vw, 110px); }
body.sp-layout-editorial-stack .sp-hero-inner { grid-template-columns: 1fr; max-width: 1080px; }
body.sp-layout-editorial-stack .sp-hero-copy { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr); gap: 22px 44px; align-items: end; }
body.sp-layout-editorial-stack .sp-hero-art { display: none; }
body.sp-layout-editorial-stack .sp-eyebrow { grid-column: 1 / -1; }
body.sp-layout-editorial-stack .sp-hero h1 { grid-column: 1; font-size: clamp(42px, 7vw, 100px); line-height: .95; letter-spacing: -.06em; }
body.sp-layout-editorial-stack .sp-lede { grid-column: 2; align-self: end; padding-bottom: 10px; }
body.sp-layout-editorial-stack .sp-hero-actions,
body.sp-layout-editorial-stack .sp-hero-stats { grid-column: 1 / -1; }
body.sp-layout-editorial-stack .sp-section-head h2 { font-size: clamp(30px, 4.2vw, 58px); letter-spacing: -.04em; }
body.sp-layout-editorial-stack .sp-job:nth-child(2n) { transform: translateY(16px); }

/* 4. Bento 网格 */
body.sp-layout-bento-grid .sp-jobs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
body.sp-layout-bento-grid .sp-job { grid-column: span 2; min-height: 132px; padding: 20px; border-radius: 18px; }
body.sp-layout-bento-grid .sp-job:nth-child(1) { grid-column: span 4; }
body.sp-layout-bento-grid .sp-job:nth-child(4n) { grid-column: span 3; }
body.sp-layout-bento-grid .sp-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
body.sp-layout-bento-grid .sp-benefit { padding: 22px; border-radius: 18px; }
body.sp-layout-bento-grid .sp-about { display: grid; grid-template-columns: 1fr .8fr; gap: 40px; }

/* 5. 非对称拼贴 */
body.sp-layout-asymmetric .sp-hero-inner { display: block; min-height: 430px; }
body.sp-layout-asymmetric .sp-hero-copy { position: relative; z-index: 2; max-width: 64%; padding: 40px 0 20px; }
body.sp-layout-asymmetric .sp-hero-art { position: absolute; right: -4%; bottom: 0; width: 44%; height: 310px; z-index: 1; }
body.sp-layout-asymmetric .sp-hero h1 { font-size: clamp(42px, 6vw, 82px); max-width: 800px; }
body.sp-layout-asymmetric .sp-section:nth-child(odd) .sp-section-head { padding-left: 12%; }
body.sp-layout-asymmetric .sp-section:nth-child(even) .sp-section-head { padding-right: 12%; text-align: right; }
body.sp-layout-asymmetric .sp-about { grid-template-columns: 1.2fr .8fr; }

/* 6. 全屏主视觉 */
body.sp-layout-fullscreen-media .sp-hero { min-height: 84vh; display: flex; align-items: flex-end; }
body.sp-layout-fullscreen-media .sp-hero-inner { grid-template-columns: 1fr; width: 100%; padding-bottom: 30px; }
body.sp-layout-fullscreen-media .sp-hero-copy { max-width: 900px; }
body.sp-layout-fullscreen-media .sp-hero-art { display: none; }
body.sp-layout-fullscreen-media .sp-hero h1 { font-size: clamp(42px, 7vw, 96px); }
body.sp-layout-fullscreen-media .sp-hero-photo { position: absolute; inset: 0; max-height: none; border-radius: 0; z-index: 0; }
body.sp-layout-fullscreen-media .sp-hero-photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; filter: brightness(.55); }
body.sp-layout-fullscreen-media .sp-hero-inner { position: relative; z-index: 2; }

/* 7. 侧栏聚焦 */
body.sp-layout-sidebar-focus .sp-hero-inner { grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: clamp(28px, 4vw, 60px); align-items: start; }
body.sp-layout-sidebar-focus .sp-hero-copy { position: sticky; top: 100px; }
body.sp-layout-sidebar-focus .sp-hero h1 { font-size: clamp(30px, 3.5vw, 48px); }
body.sp-layout-sidebar-focus .sp-hero-art { height: 460px; }
body.sp-layout-sidebar-focus .sp-home-sections { padding-left: clamp(220px, 24vw, 360px); }
body.sp-layout-sidebar-focus .sp-section-head { position: sticky; top: 76px; }

/* 8. 横向卷轴 */
body.sp-layout-horizontal-reel .sp-hero-inner { grid-template-columns: 1fr; }
body.sp-layout-horizontal-reel .sp-hero-art { display: none; }
body.sp-layout-horizontal-reel .sp-jobs,
body.sp-layout-horizontal-reel .sp-benefits { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
body.sp-layout-horizontal-reel .sp-job,
body.sp-layout-horizontal-reel .sp-benefit { flex: 0 0 min(320px, 78vw); scroll-snap-align: start; }
body.sp-layout-horizontal-reel .sp-jobs::-webkit-scrollbar { height: 6px; }
body.sp-layout-horizontal-reel .sp-jobs::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 10px; }

/* 9. 瀑布网格 */
body.sp-layout-mosaic-wall .sp-jobs { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 14px; }
body.sp-layout-mosaic-wall .sp-job:nth-child(2n) { transform: translateY(28px); }
body.sp-layout-mosaic-wall .sp-job:nth-child(3n) { min-height: 180px; }
body.sp-layout-mosaic-wall .sp-benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
body.sp-layout-mosaic-wall .sp-benefit:nth-child(3n) { transform: translateY(18px); }
body.sp-layout-mosaic-wall .sp-about { grid-template-columns: .9fr 1.1fr; }

/* 10. 极简大字 */
body.sp-layout-minimal-type .sp-hero { min-height: 70vh; display: flex; align-items: center; }
body.sp-layout-minimal-type .sp-hero-inner { grid-template-columns: 1fr; }
body.sp-layout-minimal-type .sp-hero-art { display: none; }
body.sp-layout-minimal-type .sp-hero h1 { font-size: clamp(46px, 8vw, 120px); font-weight: 500; letter-spacing: -.06em; }
body.sp-layout-minimal-type .sp-hero-stats { margin-top: 28px; }
body.sp-layout-minimal-type .sp-section { padding-block: clamp(50px, 8vw, 100px); }
body.sp-layout-minimal-type .sp-job,
body.sp-layout-minimal-type .sp-benefit { border-radius: 0; box-shadow: none; border-width: 1px; }

/* 11. 分屏滚动 */
body.sp-layout-split-scroll .sp-hero-inner { grid-template-columns: 1fr 1fr; align-items: stretch; }
body.sp-layout-split-scroll .sp-hero-copy { position: sticky; top: 100px; align-self: start; }
body.sp-layout-split-scroll .sp-hero-art { height: 100%; min-height: 380px; }
body.sp-layout-split-scroll .sp-about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
body.sp-layout-split-scroll .sp-about-side { position: sticky; top: 100px; align-self: start; }
body.sp-layout-split-scroll .sp-section-head { max-width: 780px; }

/* 12. 层叠卡片 */
body.sp-layout-stacked-cards .sp-hero-inner { grid-template-columns: 1fr; max-width: 900px; }
body.sp-layout-stacked-cards .sp-hero-art { display: none; }
body.sp-layout-stacked-cards .sp-home-sections { padding-top: 0; }
body.sp-layout-stacked-cards .sp-section { max-width: 1040px; margin: -26px auto 0; border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 22px 50px -36px rgba(0,0,0,.35); position: relative; background: var(--bg); }
body.sp-layout-stacked-cards .sp-section:nth-child(2) { margin-top: -14px; }
body.sp-layout-stacked-cards .sp-section:nth-child(3) { margin-top: 10px; }
body.sp-layout-stacked-cards .sp-section-alt { background: var(--surface); }

@media (max-width: 860px) {
  body.sp-layout-editorial-stack .sp-hero-copy,
  body.sp-layout-bento-grid .sp-jobs,
  body.sp-layout-bento-grid .sp-benefits,
  body.sp-layout-asymmetric .sp-hero-inner,
  body.sp-layout-sidebar-focus .sp-hero-inner,
  body.sp-layout-mosaic-wall .sp-jobs,
  body.sp-layout-mosaic-wall .sp-benefits,
  body.sp-layout-split-scroll .sp-hero-inner { display: block; }
  body.sp-layout-asymmetric .sp-hero-copy { max-width: 100%; }
  body.sp-layout-asymmetric .sp-hero-art { position: relative; width: 100%; right: auto; height: 240px; margin-top: 20px; }
  body.sp-layout-bento-grid .sp-job,
  body.sp-layout-bento-grid .sp-job:nth-child(1),
  body.sp-layout-bento-grid .sp-job:nth-child(4n) { grid-column: auto; }
  body.sp-layout-sidebar-focus .sp-home-sections { padding-left: 0; }
  body.sp-layout-horizontal-reel .sp-job,
  body.sp-layout-horizontal-reel .sp-benefit { flex-basis: 82vw; }
  body.sp-layout-mosaic-wall .sp-job:nth-child(2n),
  body.sp-layout-mosaic-wall .sp-benefit:nth-child(3n) { transform: none; }
  body.sp-layout-stacked-cards .sp-section { margin-top: 0; border-radius: 16px; }
  body.sp-layout-fullscreen-media .sp-hero { min-height: 72vh; }
}
/* 全屏主视觉：没有真实头图时，用官网视觉元素做全屏背景，而不是空白 */
body.sp-layout-fullscreen-media .sp-hero-art {
  display: block; position: absolute; right: 3%; bottom: 0; width: min(42vw, 560px); height: 76%;
  opacity: .55; z-index: 1; pointer-events: none; transform: scale(1.04);
}
body.sp-layout-fullscreen-media .sp-hero-copy { position: relative; z-index: 2; }
body.sp-layout-fullscreen-media .sp-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--hero-from) 88%, transparent), transparent 72%);
}
