/* 首页专用样式(只在 index 页加载,排在 theme.css 之后)。
   首屏铺满视频、About、各区块的首页版式。全站共用的视觉层在 theme.css,页脚在 ir.css 末尾。 */

/* 色值变量、页面底色、悬浮胶囊导航都在 theme.css(全站共用) */

/* ── 首屏:铺满视频 + 左下品牌 + 贴底股份信息 ── */
.home-hero {
  position: relative;
  display: block;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--fog);
}
/* 先显示海报图,视频下好开播后再淡入盖上(见 script.js) */
video.home-hero-media {
  opacity: 0;
  transition: opacity 600ms ease;
}
video.home-hero-media.is-playing {
  opacity: 1;
}
.home-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  /* 片子信息量大,压饱和、压对比、轻微虚化,让它退成背景 */
  filter: saturate(0.45) contrast(0.82) brightness(1.06) blur(1.5px);
  transform: scale(1.02);
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(233, 236, 238, 0.22), rgba(233, 236, 238, 0.22)),
    linear-gradient(to top, rgba(233, 236, 238, 0.97) 0, rgba(233, 236, 238, 0.88) 220px, rgba(233, 236, 238, 0) 58%),
    linear-gradient(to right, rgba(233, 236, 238, 0.55) 0, rgba(233, 236, 238, 0) 55%);
}
.home-hero-main {
  position: absolute;
  left: clamp(18px, 6vw, 88px);
  bottom: 172px;
  z-index: 2;
}
.home-hero-main h1 {
  margin: 0;
  font-size: clamp(56px, 8.4vw, 128px);
  font-weight: 100;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #111;
}
.home-hero-main h1 span {
  color: #3f9f55;
}
.home-hero-main .hero-brand-line {
  margin: 28px 0 0;
  font-size: 22px;
  font-weight: 300;
  color: #1d2120;
  letter-spacing: 0.04em;
}
.home-hero-main .hero-sub {
  max-width: 560px;
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #4a4f4d;
}
.home-hero .ticker-card {
  position: absolute;
  left: clamp(18px, 6vw, 88px);
  right: clamp(18px, 5.5vw, 80px);
  bottom: 36px;
  z-index: 2;
  max-width: none;
  margin: 0;
  gap: 0;
  border: 0;
  border-top: 1px solid var(--hair-l);
  border-radius: 0;
  background: transparent;
}
.home-hero .ticker-card > div {
  padding: 14px 20px 0 0;
  background: transparent;
}
.home-hero .ticker-card > div + div {
  padding-left: 20px;
  border-left: 1px solid var(--hair-l);
}
.home-hero .ticker-card small {
  color: var(--text-3);
  letter-spacing: 0.14em;
}
.home-hero .ticker-card strong {
  color: #111;
  font-size: 18px;
  font-weight: 300;
}
.home-hero .ticker-card strong .ticker-sub {
  color: var(--text-3);
  font-size: 12px;
}
.home-hero .ticker-card a {
  color: var(--green-deep);
}

/* ── 区块统一规则:细线 + 标签 + 细体大标题;底色两档交替;统一节奏 ── */
body[data-page="home"] .page-section,
body[data-page="home"] .teaser-section,
body[data-page="home"] .cta-band {
  padding: clamp(80px, 9vw, 128px) clamp(18px, 6vw, 88px);
}
body[data-page="home"] .page-section.alt { background: var(--fog); }
body[data-page="home"] .page-section:not(.alt) { background: var(--fog-2); }
body[data-page="home"] .cta-band { background: var(--fog); }
body[data-page="home"] .teaser-section { background: var(--fog-2); }

body[data-page="home"] .section-head,
body[data-page="home"] .section-title {
  max-width: none;
  margin: 0 0 clamp(36px, 4vw, 56px);
  text-align: left;
}
body[data-page="home"] .eyebrow.dark,
body[data-page="home"] .cta-band .eyebrow,
.home-about-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: var(--green-deep);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
body[data-page="home"] .eyebrow.dark::before,
body[data-page="home"] .cta-band .eyebrow::before,
.home-about-label::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
body[data-page="home"] .section-head h2,
body[data-page="home"] .section-title h2,
body[data-page="home"] .cta-band h2,
.home-about-grid h2 {
  margin: 0;
  font-size: clamp(32px, 3.9vw, 56px);
  font-weight: 200;
  line-height: 1.18;
  color: #111;
}

/* ── About:左标题右说明 + 细线数据排 ── */
.home-about {
  padding: clamp(80px, 10vw, 140px) clamp(18px, 6vw, 88px) clamp(64px, 8vw, 110px);
  background: var(--fog-2);
}
.home-about-label {
  margin-bottom: 36px;
}
.home-about-label span {
  color: var(--text-3);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
}
.home-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.home-about-grid h2 .nowrap {
  white-space: nowrap;
}
.home-about-grid h2 .muted {
  color: #8a8f8c;
}
.home-about-lead {
  max-width: 520px;
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.85;
}
.home-about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--hair-l);
}
.home-about-stats > div {
  padding: 28px 32px 0 0;
}
.home-about-stats > div + div {
  padding-left: 32px;
  border-left: 1px solid var(--hair-l);
}
.home-about-stats strong {
  display: block;
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 100;
  line-height: 1;
  color: #111;
  letter-spacing: -0.02em;
}
.home-about-stats strong small {
  margin-left: 8px;
  font-size: 0.32em;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--text-2);
}
.home-about-stats span {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #1d2120;
}
.home-about-stats .sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-4);
}

/* ── 平台四件事 / 物业三项:细线分栏,不用卡片 ── */
body[data-page="home"] .step-grid,
body[data-page="home"] .value-grid {
  gap: 0;
  margin-top: 0;
  border-top: 1px solid var(--hair-l);
}
body[data-page="home"] .step-item,
body[data-page="home"] .value-card {
  padding: 26px 28px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body[data-page="home"] .step-item + .step-item,
body[data-page="home"] .value-card + .value-card {
  border-left: 1px solid var(--hair-l);
}
body[data-page="home"] .step-item:first-child,
body[data-page="home"] .value-card:first-child {
  padding-left: 0;
}
body[data-page="home"] .step-item span {
  color: var(--green-deep);
}
body[data-page="home"] .step-item h3,
body[data-page="home"] .value-card h3 {
  margin: 12px 0 10px;
  font-size: 24px;
  font-weight: 300;
  color: #111;
}
body[data-page="home"] .value-card h3 {
  margin-top: 0;
}
body[data-page="home"] .step-item p,
body[data-page="home"] .value-card p {
  color: #555b58;
  line-height: 1.7;
}

/* 接入程度说明:两项状态并排,实心 = 已打通,空心 = 接入监看 */
.scope-note {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin: 40px 0 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid var(--hair-l);
}
.scope-note li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--text-3);
}
.scope-note li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #9aa09d;
  transform: translateY(-1px);
}
.scope-note li.is-full::before {
  background: var(--green-deep);
  border-color: var(--green-deep);
}

/* ── 物业合作入口:左标题,右说明与按钮 ── */
body[data-page="home"] .cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  column-gap: clamp(32px, 6vw, 96px);
  align-items: end;
  color: var(--ink);
  text-align: left;
}
body[data-page="home"] .cta-band > .eyebrow { grid-column: 1; grid-row: 1; }
body[data-page="home"] .cta-band > h2 { grid-column: 1; grid-row: 2; align-self: start; }
body[data-page="home"] .cta-band > p:not(.eyebrow) {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  max-width: 520px;
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.85;
}
body[data-page="home"] .cta-band > .cta-actions {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
body[data-page="home"] .cta-band .contact-link {
  color: #111;
  border-color: var(--hair-l);
  background: transparent;
  backdrop-filter: none;
}
body[data-page="home"] .cta-band .contact-link:first-child {
  color: #fff;
  background: #2c2f2f;
  border-color: #2c2f2f;
}
body[data-page="home"] .cta-band .contact-link:hover {
  background: rgba(0, 0, 0, 0.04);
}
body[data-page="home"] .cta-band .contact-link:first-child:hover {
  background: #1d2020;
}

/* ── 投资者关系:3×2 细线网格 ── */
body[data-page="home"] .ir-grid {
  gap: 0;
  border-top: 1px solid var(--hair-l);
  border-left: 1px solid var(--hair-l);
}
body[data-page="home"] .ir-card {
  padding: 28px 28px 30px;
  border: 0;
  border-right: 1px solid var(--hair-l);
  border-bottom: 1px solid var(--hair-l);
  border-radius: 0;
  background: transparent;
}
body[data-page="home"] .ir-card:hover {
  background: #fff;
  transform: none;
}
body[data-page="home"] .ir-card h3 {
  font-size: 22px;
  font-weight: 300;
}

/* ── 窄屏 ── */
@media (max-width: 860px) {
  .home-hero-media {
    inset: 0 0 auto 0;
    width: 100vw;
    height: 66vh;
    object-position: 62% 50%;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%);
    mask-image: linear-gradient(to bottom, #000 62%, transparent 96%);
  }
  .home-hero::after {
    height: 66vh;
    background: linear-gradient(to top, rgba(233, 236, 238, 1) 0, rgba(233, 236, 238, 0) 40%);
  }
  .home-hero-main {
    position: relative;
    left: auto;
    bottom: auto;
    padding: calc(66vh - 20px) 18px 0;
  }
  .home-hero .ticker-card {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 28px 18px 40px;
    grid-template-columns: 1fr 1fr;
  }
  .home-hero .ticker-card > div + div {
    padding-left: 0;
    border-left: 0;
  }
  .home-about-grid,
  body[data-page="home"] .cta-band {
    grid-template-columns: 1fr;
    align-items: start;
  }
  body[data-page="home"] .cta-band > * {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  body[data-page="home"] .cta-band > p:not(.eyebrow) {
    margin-top: 20px;
  }
  .home-about-stats {
    grid-template-columns: 1fr;
  }
  .home-about-stats > div + div {
    margin-top: 28px;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--hair-l);
  }
  body[data-page="home"] .step-item,
  body[data-page="home"] .value-card {
    padding: 22px 0;
    border-left: 0 !important;
    border-bottom: 1px solid var(--hair-l);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-media {
    display: none;
  }
}

/* 英文标题比中文长得多,首屏字标收一档 */
html[lang="en"] .home-hero-main h1 {
  font-size: clamp(44px, 6.4vw, 96px);
}
