/* ==========================================================================
   GRIT · 板块黑框 hero（grit-sect-hero.css）v1
   8 个主题页统一：黑色大框 + 左侧文案 + 右侧代码 3D 线框模型（不超出框）
   ========================================================================== */
.atelier-hero.grit-hero-black {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 320px;
  border-radius: 18px;
  padding: 2.2rem 2.4rem 2.4rem;
  background:
    radial-gradient(120% 140% at 88% 12%, rgba(255, 215, 106, 0.10) 0%, rgba(255, 215, 106, 0) 46%),
    radial-gradient(120% 160% at 8% 0%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(158deg, #2B2B2E 0%, #141416 46%, #0B0B0D 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  color: #FAF9F6;
}
.atelier-hero.grit-hero-black::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 120% at 20% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 120% at 20% 0%, #000 30%, transparent 78%);
}
.atelier-hero.grit-hero-black > * { position: relative; z-index: 2; }
.atelier-hero.grit-hero-black .hero-eyebrow {
  color: rgba(255, 215, 106, 0.85);
  letter-spacing: 0.16em;
  font-size: 0.62rem;
  text-transform: uppercase;
}
.atelier-hero.grit-hero-black .hero-title {
  color: #FFFDF7;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.atelier-hero.grit-hero-black .hero-motto {
  color: rgba(255, 232, 176, 0.86);
  border-color: rgba(255, 215, 106, 0.28);
}
.atelier-hero.grit-hero-black p { color: rgba(255, 255, 255, 0.80) !important; }
.atelier-hero.grit-hero-black .gh3-note {
  max-width: 34rem;
  margin: 0.85rem 0 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}
/* 右侧 3D 区域：只占右半边，绝不出框 */
.atelier-hero.grit-hero-black .gh3-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  mask-image: radial-gradient(120% 100% at 70% 50%, #000 52%, transparent 92%);
  -webkit-mask-image: radial-gradient(120% 100% at 70% 50%, #000 52%, transparent 92%);
}
.atelier-hero.grit-hero-black .gh3-cv {
  display: block;
  width: 100%;
  height: 100%;
}
/* 首页：在球体周围撒的漂浮粒子（不超出黑框） */
.atelier-hero .gh3-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  mask-image: radial-gradient(105% 105% at 82% 42%, #000 58%, transparent 96%);
  -webkit-mask-image: radial-gradient(105% 105% at 82% 42%, #000 58%, transparent 96%);
}
@media (max-width: 1400px) {
  .atelier-hero.grit-hero-black .gh3-wrap { width: 52%; }
}
html.gf-no-motion .atelier-hero.grit-hero-black .gh3-wrap { opacity: 0.9; }


/* v20 修：黑框内标题强制白字（各页原来有深色/渐变标题样式） */
.atelier-hero.grit-hero-black .hero-title{
  color:#FFFDF7!important;
  -webkit-text-fill-color:#FFFDF7!important;
  background:none!important;
  text-shadow:0 2px 22px rgba(0,0,0,0.55);
}
.atelier-hero.grit-hero-black .hero-eyebrow{color:rgba(255,215,106,0.88)!important;}


/* ==========================================================================
   v21 · 黑框英文大标题（对齐首页 "GRIT. Personal AI" 的观感）
   ========================================================================== */
.atelier-hero.grit-hero-black .hero-title.gh3-en {
  font-family: "Times New Roman", Georgia, "Songti SC", serif;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2.3rem, 3.4vw, 3.3rem);
  letter-spacing: 0.015em;
  text-transform: uppercase;
  line-height: 1.04;
  margin: 0.55rem 0 0;
  color: #FFFDF7 !important;
  -webkit-text-fill-color: #FFFDF7 !important;
  background: none !important;
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.55);
}
.atelier-hero.grit-hero-black .gh3-note { max-width: 30rem; }


/* ==========================================================================
   v22 · 黑框完全对齐首页（尺寸/内边距/圆角/字体/排版）+ 网格加深
   首页实测：1152×272 · padding 57.6/48/44.8 · radius 20 · 标题 54.4px 斜体 800
             眉标 11.2px · 字距 3.36px · 口号 12.48px · 网格 rgba(255,255,255,.05)
   ========================================================================== */
.atelier-hero.grit-hero-black {
  min-height: 272px;
  height: 272px;
  padding: 57.6px 48px 44.8px;
  border-radius: 20px;
  margin: 0 0 32px;
}
.atelier-hero.grit-hero-black > p {
  max-width: 33rem;
  margin: 0.35rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.92rem !important;
  line-height: 1.6;
}
.atelier-hero.grit-hero-black .hero-eyebrow {
  font-size: 11.2px !important;
  letter-spacing: 3.36px !important;
  color: rgba(255, 255, 255, 0.55) !important;
  text-transform: uppercase;
  font-weight: 600;
}
.atelier-hero.grit-hero-black .hero-title.gh3-en {
  font-family: "Space Grotesk", "Noto Sans SC", system-ui, sans-serif !important;
  font-style: italic;
  font-weight: 800;
  font-size: 54.4px;
  letter-spacing: -1.088px;
  line-height: 1.04;
  margin: 9.6px 0 3.2px;
  background: linear-gradient(100deg, #FFF6D8 0%, #FFE08A 38%, #FFD76A 62%, #E8A020 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  text-shadow: none;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.45));
}
.atelier-hero.grit-hero-black .hero-motto {
  font-size: 12.48px;
  margin-top: 17.6px;
}
/* 网格加深：8 个板块页 */
.atelier-hero.grit-hero-black::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px) !important;
  background-size: 64px 64px !important;
}
/* 网格加深：首页（它自己带的 .hero-grid 层） */
.atelier-hero .hero-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.11) 1px, transparent 1px) !important;
  background-size: 64px 64px !important;
}

/* 去掉内容后面那块半透明矩形面板：内容直接浮在球场背景上 */
@media (min-width: 1600px) {
  body > main,
  main#main-content,
  main.atelier-main {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
}
