/*
 * 官网首页专用样式。
 *
 * 视觉依据：xman-product/材料/项目通用/网站设计/首页视觉板-最终.html。
 * 颜色、字体与圆角复用 style.css 的 sage 主题令牌，不在首页另建色板。
 */

body.home-page {
  --home-paper: var(--app-bg);
  --home-paper-deep: var(--app-bg-soft);
  --home-white: var(--app-white);
  --home-ink: var(--app-text);
  --home-ink-2: var(--app-text-2);
  --home-ink-3: var(--app-text-3);
  --home-sage: var(--app-primary);
  --home-sage-deep: var(--app-primary2);
  --home-line: var(--app-border-strong);

  position: relative;
  min-width: 320px;
  min-height: 100vh;
  height: auto;
  margin: 0;
  overflow-x: hidden;
  background: var(--home-paper);
  color: var(--home-ink);
}

.home-page a { color: inherit; }

.home-page .page {
  position: relative;
  z-index: 2;
}

.home-page .graph-field {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.home-page .graph-field svg {
  display: block;
  width: 100%;
  height: 100%;
}

.home-page .graph-field .graph-mobile { display: none; }

.home-page .field-fade-top {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 180px;
  pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--home-paper) 92%, transparent), transparent);
}

.home-page .site-header {
  display: flex;
  width: min(1220px, calc(100% - 72px));
  height: auto;
  margin: 0 auto;
  padding: 32px 0 22px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: var(--home-ink);
}

.home-page .brand-lockup {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.home-page .brand-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .12em;
}

.home-page .brand-category {
  color: var(--home-ink-3);
  font-size: 12px;
  letter-spacing: .06em;
}

.home-page .home-main {
  display: block;
  min-height: 0;
  padding: 0;
}

.home-page .hero {
  position: relative;
  display: grid;
  width: min(1220px, calc(100% - 72px));
  min-height: 650px;
  margin: 0 auto;
  padding: 58px 0 82px;
  grid-template-columns: minmax(0, 650px) minmax(420px, 1fr);
  align-items: center;
  gap: 50px;
}

.home-page .hero-copy {
  position: relative;
  z-index: 3;
  max-width: 650px;
  padding: 22px 0 30px;
}

.home-page .hero h1 {
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(56px, 5.15vw, 74px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.05em;
}

.home-page .hero h1 span { display: block; }

.home-page .hero-sub {
  max-width: 590px;
  margin: 30px 0 0;
  color: var(--home-ink-2);
  font-size: 18px;
  line-height: 1.85;
  letter-spacing: .01em;
}

.home-page .mobile-break { display: none; }

.home-page .hero-actions { margin-top: 38px; }

.home-page .primary-button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 29px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--home-sage-deep);
  box-shadow: 0 12px 28px rgba(74, 122, 110, .16);
  color: var(--home-white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
}

.home-page .primary-button:hover { filter: brightness(1.04); }

.home-page .primary-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--home-sage) 34%, transparent);
  outline-offset: 4px;
}

.home-page .hero-space {
  position: relative;
  min-height: 500px;
}

.home-page .proof {
  position: relative;
  padding: 86px 0 96px;
  background: color-mix(in srgb, var(--home-paper-deep) 64%, transparent);
}

.home-page .proof-inner {
  position: relative;
  z-index: 3;
  width: min(1220px, calc(100% - 72px));
  margin: 0 auto;
}

.home-page .proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 28px;
}

.home-page .proof-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.home-page .shot {
  position: relative;
  width: 100%;
  aspect-ratio: .95 / 1;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--home-ink-3) 18%, transparent);
  border-radius: 20px;
  background: var(--home-white);
  box-shadow: 0 18px 44px rgba(41, 50, 45, .075);
}

.home-page .shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-page .proof-card h2 {
  margin: 24px 0 8px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.home-page .proof-card p {
  max-width: 340px;
  margin: 0;
  color: var(--home-ink-2);
  font-size: 15px;
  line-height: 1.75;
}

.home-page .vision {
  position: relative;
  width: min(1220px, calc(100% - 72px));
  margin: 0 auto;
  padding: 126px 0 138px;
  text-align: center;
}

.home-page .vision-copy {
  position: relative;
  z-index: 3;
  margin: 0 auto;
}

.home-page .vision-line {
  max-width: 790px;
  margin: 0 auto;
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.04em;
}

.home-page .vision-line span { display: block; }

.home-page .vision-note {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--home-ink-2);
  font-size: 13px;
  line-height: 1.8;
}

.home-page .site-footer {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--home-line);
  background: var(--home-white);
  color: var(--home-ink-3);
  font-size: 11px;
  line-height: 1.8;
}

.home-page .footer-inner {
  display: flex;
  width: min(1220px, calc(100% - 72px));
  margin: 0 auto;
  padding: 24px 0 26px;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.home-page .footer-group { display: contents; }

.home-page .footer-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.home-page .footer-item + .footer-item::before,
.home-page .footer-group + .footer-group .footer-item:first-child::before {
  content: "｜";
  margin: 0 10px;
  color: var(--home-line);
}

.home-page .footer-item a {
  color: inherit;
  text-decoration: none;
}

.home-page .footer-item a:hover { text-decoration: underline; }

.home-page .filing img {
  width: 14px;
  height: 14px;
  margin-right: 3px;
  object-fit: contain;
  vertical-align: -2px;
}

.home-page .signal-route {
  animation: signalRoute 16s ease-in-out infinite;
}

.home-page .signal-traveler {
  animation: signalVisibility 16s ease-in-out infinite;
}

.home-page .node-catch {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodeCatch 16s ease-in-out infinite;
}

.home-page .node-catch--hero { animation-delay: 0s; }
.home-page .node-catch--upper { animation-delay: 2.1s; }
.home-page .node-catch--middle { animation-delay: 3.8s; }
.home-page .node-catch--right-edge { animation-delay: 6.7s; }
.home-page .node-catch--proof-exit { animation-delay: 10.9s; }
.home-page .node-catch--vision-entry { animation-delay: 12.5s; }
.home-page .node-catch--closing { animation-delay: 14.4s; }

.home-page .ambient-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: ambientBreath 9s ease-in-out infinite;
}

.home-page .ambient-node--a { animation-delay: -1.8s; }
.home-page .ambient-node--b { animation-delay: -5.2s; }
.home-page .ambient-node--c { animation-delay: -7.1s; }

@keyframes signalRoute {
  0%, 10% { opacity: 0; }
  14%, 86% { opacity: .22; }
  92%, 100% { opacity: 0; }
}

@keyframes signalVisibility {
  0% { opacity: 0; }
  1%, 90% { opacity: .88; }
  94%, 100% { opacity: 0; }
}

@keyframes nodeCatch {
  0%, 2.8%, 5.4%, 100% {
    filter: none;
    transform: scale(1);
  }
  3.7% {
    filter: drop-shadow(0 0 8px rgba(92, 138, 124, .48));
    transform: scale(1.12);
  }
  4.5% {
    filter: drop-shadow(0 0 3px rgba(92, 138, 124, .2));
    transform: scale(1.03);
  }
}

@keyframes ambientBreath {
  0%, 100% {
    opacity: .58;
    transform: scale(.96);
  }
  50% {
    opacity: .82;
    transform: scale(1.08);
  }
}

@media (max-width: 900px) {
  .home-page .graph-field { opacity: .72; }
  .home-page .graph-field .graph-desktop { display: none; }
  .home-page .graph-field .graph-mobile { display: block; }

  .home-page .site-header,
  .home-page .hero,
  .home-page .proof-inner,
  .home-page .vision,
  .home-page .footer-inner {
    width: min(calc(100% - 32px), 680px);
  }

  .home-page .hero {
    display: block;
    min-height: 0;
    padding: 34px 0 58px;
  }

  .home-page .hero-space { display: none; }
  .home-page .hero h1 { font-size: clamp(32px, 8.6vw, 38px); }
  .home-page .hero-sub { font-size: 15.5px; line-height: 1.75; }
  .home-page .mobile-break { display: block; }
  .home-page .proof { padding: 54px 0 60px; }

  .home-page .proof-grid {
    display: flex;
    max-width: 100%;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .home-page .proof-card {
    flex: 0 0 86%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .home-page .shot { aspect-ratio: .95 / 1; }
  .home-page .vision { padding: 76px 0 84px; }
  .home-page .vision-line { font-size: clamp(28px, 7.4vw, 32px); line-height: 1.52; }
  .home-page .vision-note { font-size: 12px; line-height: 1.7; }

  .home-page .footer-inner {
    flex-direction: column;
    gap: 4px;
  }

  .home-page .footer-group {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .home-page .footer-item + .footer-item::before,
  .home-page .footer-group + .footer-group .footer-item:first-child::before {
    content: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after { scroll-behavior: auto !important; }
  .home-page .signal-route,
  .home-page .signal-traveler { display: none; }
  .home-page .node-catch,
  .home-page .ambient-node {
    animation: none !important;
    filter: none !important;
    transform: none;
  }
}
