/* hero.css — 首屏
   灵感来源：编辑性杂志大标题排版（大衬线 + 克制副标 + 一组按钮 + 底部 meta 线） */

.hero {
  padding-top: 140px;
  padding-bottom: var(--section-y);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero__copy {
  min-width: 0;
}

/* Editorial micro-tagline above the hero title — used on long-form
   builds (e.g. /en/) where the brand tagline was pulled out of the
   nav to keep the navigation row in alignment. */
.hero__tagline {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 20px;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: 0.02em;
  max-width: 18ch;
  margin-bottom: 28px;
}
.hero__title .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.hero__sub {
  max-width: 58ch;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* 右列产品图 —— 径向渐变 mask 让边缘融化进页面底色，无边框无阴影 */
.hero__visual {
  margin: 0;
  position: relative;
  /* 让产品视觉超出列宽呼吸一点 */
  width: calc(100% + 80px);
  margin-right: -80px;
  margin-left: 0;
}
.hero__visual-img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(
    ellipse 62% 70% at 50% 54%,
    #000 35%,
    rgba(0, 0, 0, 0.85) 55%,
    transparent 92%
  );
          mask-image: radial-gradient(
    ellipse 62% 70% at 50% 54%,
    #000 35%,
    rgba(0, 0, 0, 0.85) 55%,
    transparent 92%
  );
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}
/* 主题切换：站点用 :root[data-theme] 控制色板，img 跟着挂 / 摘 */
:root[data-theme="light"] .hero__visual-img--dark { display: none; }
:root[data-theme="dark"]  .hero__visual-img--light { display: none; }
/* 没设 theme 时（首屏脚本前的极短瞬间）默认隐藏 dark 版，避免双图叠 */
:root:not([data-theme="dark"]) .hero__visual-img--dark { display: none; }

/* 底部 meta 行：版本 / 平台 / 硬件 —— 编辑性"脚注" */
.hero__meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 72px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.hero__meta > div {
  padding-right: 20px;
  border-right: 1px solid var(--rule-soft);
}
.hero__meta > div:last-child { border-right: 0; }
.hero__meta dt {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.hero__meta dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--ink);
}
.hero__meta dd .unit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-left: 4px;
}

@media (max-width: 820px) {
  .hero { padding-top: 80px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__title { max-width: none; }
  .hero__visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .hero__meta { grid-template-columns: repeat(2, 1fr); gap: 20px 0; margin-top: 24px; }
  .hero__meta > div:nth-child(2) { border-right: 0; }
}

@media (max-width: 640px) {
  .hero__meta { grid-template-columns: 1fr; }
  .hero__meta > div { border-right: 0; border-bottom: 1px solid var(--rule-soft); padding: 14px 0; }
  .hero__meta > div:last-child { border-bottom: 0; }
}
