/* ==========================================================================
   ModuCore 静态复刻 — 首页样式（page-home.css）
   --------------------------------------------------------------------------
   内容：Hero（全屏背景 + 毛玻璃承诺条）/ 服务瓦片 / Who we are 浅色横幅 /
         Why ModuCore 薄荷绿边线网格横幅
   依据：moducore.ai 首页组件样式（Aurora Teal 配色）
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero：100vh 全屏背景 + 径向压暗遮罩
   -------------------------------------------------------------------------- */
.hero {
  align-items: center;
  background: url(../images/home-bg-1.png) 50% / cover;
  color: #fff;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 115px 0 65px;
  position: relative;
}

/* 径向渐变遮罩：顶部极光青绿光晕 + 边缘压暗，保证文字可读 */
.hero-shade {
  background:
    radial-gradient(ellipse at 78% 0%, rgba(46, 230, 168, .26), transparent 55%),
    radial-gradient(ellipse at center, rgba(0, 0, 0, .1) 0, rgba(0, 0, 0, .36) 70%, rgba(0, 0, 0, .68));
  inset: 0;
  position: absolute;
}

.hero-content {
  position: relative;
  text-align: center;
}

/* 原站此元素无 margin:auto —— img 为 block 不受 text-align 影响，故靠左显示 */
.hero-logo {
  height: 58px;
  object-fit: contain;
  width: 58px;
}

.hero-name {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 17px 0 23px;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.1vw, 1.45rem);
  font-weight: 600;
  margin: 0;
}

.hero-subtagline {
  color: #d9efe5;
  line-height: 1.65;
  margin: 16px auto 28px;
  max-width: 650px;
}

/* 毛玻璃承诺条：双栏 + 中缝 1px 竖分隔线 */
.hero-promise {
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  background: rgba(2, 11, 8, .38);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin: 0 auto;
  max-width: 830px;
}

.hero-promise > div {
  padding: 18px 28px;
}

.hero-promise h2 {
  font-size: 1rem;
  margin: 0 0 7px;
}

.hero-promise p {
  color: #d9efe5;
  font-size: .9rem;
  line-height: 1.5;
  margin: 0;
}

/* 中缝竖线：上下留 14px 的半透明薄荷白 */
.hero-promise > span {
  background: rgba(237, 251, 245, .72);
  margin: 14px 0;
  width: 1px;
}

/* Hero 双按钮：等宽两列 */
.hero-actions {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
  margin: 14px auto 0;
  max-width: 830px;
}

.hero-actions .button {
  font-size: .88rem;
  min-height: 47px;
}

/* Hero 次按钮：暗底薄荷白描边 */
.hero-outline {
  background: rgba(2, 11, 8, .32);
  border-color: rgba(237, 251, 245, .5);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   2. 服务区（深色）：eyebrow + 标题 + 2x2 图片瓦片
   -------------------------------------------------------------------------- */
.service-section {
  background: #020b08;
}

.home-heading {
  margin-bottom: 45px;
  max-width: 710px;
}

/* 首页区块大标题（服务 / Why 共用） */
.home-heading h1,
.why-title h1 {
  font-size: clamp(2.3rem, 4.6vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1.02;
  margin: 0;
}

.home-heading > p:last-child {
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.75;
  margin: 18px 0 0;
}

/* 服务瓦片网格 */
.service-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

/* 单个瓦片：整卡为链接，背景图 + 底部黑色渐变压暗 */
.service-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 300px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

/* 瓦片背景图：绝对定位铺满，hover 放大 + 提亮 */
.service-tile img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: .64;
  position: absolute;
  transition: transform .45s ease, opacity .35s;
  width: 100%;
}

/* 底部渐变遮罩（::after 伪元素） */
.service-tile::after {
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, .9));
  content: "";
  inset: 0;
  position: absolute;
}

/* 文案层：锚定左下角 */
.service-tile > div {
  inset: auto 28px 25px;
  position: absolute;
  z-index: 1;
}

/* 编号：薄荷绿小字宽字距 */
.service-tile span,
.why-grid span {
  color: var(--accent);
  font-size: .72rem;
  letter-spacing: .13em;
}

.service-tile h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 13px 0 7px;
}

.service-tile p {
  color: #c4dfd3;
  line-height: 1.55;
  margin: 0;
  max-width: 480px;
}

/* 右下角薄荷绿箭头 */
.service-tile b {
  bottom: 0;
  color: var(--accent);
  font-size: 1.45rem;
  position: absolute;
  right: 0;
}

.service-tile:hover img {
  opacity: .82;
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   3. Who we are：浅色横幅（背景图压亮）+ 深色文字
   -------------------------------------------------------------------------- */
.about-band {
  background: url(../images/home-bg-3.png) 50% / cover;
  color: #07231b;
}

/* 浅色区域内 eyebrow / 导语改用深薄荷绿 */
.home-heading.dark .eyebrow {
  color: #0e7a55;
}

.home-heading.dark > p:last-child {
  color: #33544a;
}

/* 浅色卡片：半透明白底 + 轻投影 */
.about-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.about-grid article {
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(0, 0, 0, .045);
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .04);
  padding: 30px;
}

.about-grid img {
  height: 57px;
  object-fit: contain;
  width: 57px;
}

.about-grid h2 {
  font-size: 1.32rem;
  font-weight: 600;
  margin: 55px 0 12px;
}

.about-grid p {
  color: #35544a;
  line-height: 1.68;
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. Why ModuCore：深色横幅 + 薄荷绿边线网格
   -------------------------------------------------------------------------- */
.why-band {
  background:
    linear-gradient(180deg, rgba(1, 8, 6, .35), rgba(1, 8, 6, .88)),
    url(../images/about-bg-1.png) 50% / cover;
}

.why-title {
  max-width: 700px;
}

/* 薄荷绿半透明共享边线网格（顶线加重） */
.why-grid {
  border-left: 1px solid rgba(46, 230, 168, .22);
  border-top: 1px solid rgba(46, 230, 168, .45);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 52px;
}

.why-grid article {
  background: rgba(2, 11, 8, .45);
  border-bottom: 1px solid rgba(46, 230, 168, .22);
  border-right: 1px solid rgba(46, 230, 168, .22);
  min-height: 265px;
  padding: 30px;
}

.why-grid h2 {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 76px 0 10px;
}

.why-grid p {
  color: #a9cdbf;
  line-height: 1.65;
  margin: 0;
}

.feature-button {
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   5. 响应式（≤720px：全部单列）
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .about-grid,
  .hero-actions,
  .hero-promise,
  .service-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  /* 承诺条中缝由竖线变为横线 */
  .hero-promise > span {
    height: 1px;
    margin: 0 18px;
    width: auto;
  }

  .hero-promise > div {
    padding: 18px;
  }

  .hero-actions {
    margin-top: 14px;
  }

  .service-tile {
    min-height: 260px;
  }

  .why-grid article {
    min-height: 220px;
  }

  .why-grid h2 {
    margin-top: 45px;
  }
}
