:root {
  --home-bg: #f8f7fc;
  --home-surface: #ffffff;
  --home-soft: #f1eff9;
  --home-ink: #171527;
  --home-muted: #666279;
  --home-line: #e4e0ee;
  --home-violet: #7048e8;
  --home-violet-dark: #5332bc;
  --home-rose: #e66b93;
  --home-yellow: #f2d36b;
  --home-shadow: 0 20px 54px rgba(48, 36, 87, .12);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  color: var(--home-ink);
  background: var(--home-bg);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.home-page { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 10px 14px;
  color: #fff;
  background: var(--home-ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.home-container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.home-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(228, 224, 238, .86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--home-violet);
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1;
}

.brand-name { font-size: 18px; }

.home-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #49455d;
  font-size: 14px;
  font-weight: 600;
}

.home-links > a:not(.nav-login) {
  position: relative;
  padding: 26px 0;
}

.home-links > a:not(.nav-login)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  background: var(--home-violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.home-links > a:hover::after,
.home-links > a:focus-visible::after { transform: scaleX(1); }

.nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 40px;
  padding: 0 18px;
  color: #fff;
  background: var(--home-violet);
  border-radius: 6px;
}

.nav-login:hover { background: var(--home-violet-dark); }

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: var(--home-ink);
  transition: transform .2s ease, opacity .2s ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.home-hero {
  position: relative;
  min-height: min(780px, calc(100dvh - 72px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #dce4f2;
  border-bottom: 1px solid var(--home-line);
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: url("/assets/xh-ribbon-abstract.jpg");
  background-repeat: no-repeat;
  background-position: 58% 50%;
  background-size: cover;
  filter: saturate(.78) brightness(1.04);
  transform: scale(1.015);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 247, 252, .18);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: inherit;
  padding: 74px 0 86px;
}

.hero-copy {
  width: min(620px, 60%);
  padding: 34px 0;
  text-shadow: 0 1px 22px rgba(248, 247, 252, .95);
}

.hero-note,
.section-note {
  margin: 0 0 18px;
  color: var(--home-violet-dark);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}

.hero-statement {
  margin: 18px 0 20px;
  font-size: 54px;
  line-height: 1.2;
  font-weight: 850;
  text-wrap: balance;
}

.hero-description {
  max-width: 540px;
  margin: 0;
  color: #4e4a60;
  font-size: 17px;
  line-height: 1.85;
  text-wrap: pretty;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.home-button:hover { transform: translateY(-2px); }
.hero-button { margin-top: 32px; min-width: 142px; }

.home-button.primary { color: #fff; background: var(--home-violet); box-shadow: 0 12px 28px rgba(112, 72, 232, .24); }
.home-button.primary:hover { background: var(--home-violet-dark); }
.home-button.outline { color: var(--home-ink); background: #fff; border-color: #d2cce1; }
.home-button.outline:hover { color: var(--home-violet-dark); border-color: var(--home-violet); }
.home-button.light { color: var(--home-violet-dark); background: #fff; }
.home-button.full { width: 100%; }

.home-button:focus-visible,
.home-links a:focus-visible,
.menu-button:focus-visible,
.home-faq-list summary:focus-visible,
.text-link:focus-visible {
  outline: 3px solid rgba(112, 72, 232, .28);
  outline-offset: 3px;
}

.signal-band { color: #fff; background: var(--home-ink); }

.signal-grid {
  min-height: 84px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.signal-grid p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.signal-grid p + p { border-left: 1px solid rgba(255, 255, 255, .14); }
.signal-grid span { color: #c9b9ff; font-size: 11px; }

.home-section { padding: 112px 0; }

.companion-band,
.faq-band { background: var(--home-surface); }

.companion-layout {
  display: grid;
  grid-template-columns: minmax(340px, .9fr) minmax(0, 1.1fr);
  gap: 96px;
  align-items: center;
}

.companion-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 520px;
  overflow: hidden;
  background: #e7e8f5;
  border-radius: 8px;
}

.companion-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.7) contrast(.92);
  transform: scale(1.04);
}

.visual-mark {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 22px 24px;
  color: #fff;
  background: rgba(23, 21, 39, .8);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  backdrop-filter: blur(12px);
}

.visual-mark span { font-family: Arial, sans-serif; font-size: 36px; font-weight: 800; }
.visual-mark strong { font-size: 15px; font-weight: 600; }

.companion-copy h2,
.section-heading h2,
.safety-title h2,
.final-cta h2,
.content-page-hero h1 {
  margin: 0;
  font-size: 43px;
  line-height: 1.3;
  font-weight: 800;
  text-wrap: balance;
}

.companion-intro {
  max-width: 620px;
  margin: 24px 0 36px;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.9;
}

.companion-points { border-top: 1px solid var(--home-line); }

.companion-points article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 25px 0;
  border-bottom: 1px solid var(--home-line);
}

.companion-points article > span {
  color: var(--home-violet);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.companion-points h3 { margin: 0 0 8px; font-size: 19px; }
.companion-points p { margin: 0; color: var(--home-muted); font-size: 14px; line-height: 1.8; }

.moments-band { background: var(--home-soft); }

.moments-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(460px, 1.15fr);
  gap: 100px;
  align-items: start;
}

.section-heading { margin: 0 0 52px; }
.moments-heading { position: sticky; top: 112px; margin: 0; }

.moment-lines { border-top: 1px solid #d8d3e4; }

.moment-lines p {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 26px;
  align-items: baseline;
  margin: 0;
  padding: 34px 0;
  border-bottom: 1px solid #d8d3e4;
}

.moment-lines span { color: var(--home-violet-dark); font-size: 13px; font-weight: 700; }
.moment-lines strong { font-size: 20px; line-height: 1.65; font-weight: 650; }

.pricing-band { background: #fbfafc; }
.centered-heading { max-width: 720px; margin: 0 auto 58px; text-align: center; }
.centered-heading > p:last-child { margin: 18px auto 0; color: var(--home-muted); font-size: 15px; line-height: 1.8; }

.home-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.home-price-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 420px;
  padding: 28px 24px 24px;
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 8px;
}

.home-price-card.featured-card {
  border-color: var(--home-violet);
  box-shadow: var(--home-shadow);
  transform: translateY(-10px);
}

.price-card-head { min-height: 72px; }
.plan-tag { display: block; margin-bottom: 10px; color: var(--home-muted); font-size: 12px; font-weight: 650; }
.plan-tag.recommended { color: var(--home-rose); }
.price-card-head h3 { margin: 0; font-size: 21px; }

.plan-price { display: flex; align-items: baseline; gap: 3px; margin: 26px 0 8px; color: var(--home-violet-dark); }
.plan-price span { font-size: 18px; font-weight: 800; }
.plan-price strong { font-family: Arial, sans-serif; font-size: 42px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.plan-price small { color: var(--home-muted); font-size: 12px; }
.plan-quota { margin: 0; color: var(--home-ink); font-size: 14px; font-weight: 700; }
.plan-description { flex: 1; margin: 22px 0 28px; color: var(--home-muted); font-size: 13px; line-height: 1.8; }

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
  gap: 100px;
  align-items: start;
}

.faq-heading { position: sticky; top: 112px; margin: 0; }
.faq-heading > p:not(.section-note) { margin: 18px 0 24px; color: var(--home-muted); line-height: 1.8; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--home-violet-dark);
  font-size: 14px;
  font-weight: 700;
}

.text-link span { transition: transform .18s ease; }
.text-link:hover span { transform: translateX(4px); }

.home-faq-list { border-top: 1px solid var(--home-line); }
.home-faq-list details { border-bottom: 1px solid var(--home-line); }
.home-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 0;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.home-faq-list summary::-webkit-details-marker { display: none; }
.home-faq-list summary span { color: var(--home-violet); font-size: 22px; font-weight: 400; transition: transform .2s ease; }
.home-faq-list details[open] summary span { transform: rotate(45deg); }
.home-faq-list details p { max-width: 700px; margin: -2px 40px 25px 0; color: var(--home-muted); font-size: 14px; line-height: 1.85; }

.safety-band { background: var(--home-soft); }

.safety-layout {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr);
  gap: 86px;
  align-items: start;
}

.safety-list { border-top: 1px solid #d8d3e4; }
.safety-list p { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; margin: 0; padding: 24px 0; border-bottom: 1px solid #d8d3e4; }
.safety-list strong { font-size: 15px; }
.safety-list span { color: var(--home-muted); font-size: 14px; line-height: 1.7; }
.safety-layout > .text-link { grid-column: 2; justify-self: start; margin-top: -52px; }

.final-cta { padding: 82px 0; color: #fff; background: var(--home-violet); }
.final-cta .section-note { color: #ddd3ff; }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.final-cta-inner p:last-child { margin: 15px 0 0; color: rgba(255, 255, 255, .76); }
.final-cta .home-button { min-width: 140px; }

.home-footer { color: #a9a5b8; background: var(--home-ink); }
.footer-inner { min-height: 112px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; font-size: 13px; }
.footer-brand { color: #fff; }
.footer-inner nav { display: flex; gap: 24px; }
.footer-inner nav a:hover { color: #fff; }
.footer-inner > p { justify-self: end; margin: 0; }

.content-page-main { min-height: calc(100dvh - 184px); }
.content-page-hero { padding: 100px 0 76px; background: var(--home-soft); border-bottom: 1px solid var(--home-line); }
.content-page-hero .home-container { max-width: 820px; }
.content-page-hero p:last-child { max-width: 650px; margin: 22px 0 0; color: var(--home-muted); font-size: 16px; line-height: 1.85; }
.content-page-section { padding: 80px 0 110px; background: #fff; }
.content-page-section .home-container { max-width: 820px; }
.content-page-section .home-faq-list summary { font-size: 18px; }

.safety-article { display: grid; gap: 0; border-top: 1px solid var(--home-line); }
.safety-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--home-line); }
.safety-item > span { color: var(--home-violet); font-family: Arial, sans-serif; font-size: 12px; font-weight: 800; }
.safety-item h2 { margin: 0 0 10px; font-size: 21px; }
.safety-item p { margin: 0; color: var(--home-muted); font-size: 15px; line-height: 1.85; }
.safety-callout { margin-top: 50px; padding: 28px 30px; background: var(--home-soft); border-left: 4px solid var(--home-violet); }
.safety-callout h2 { margin: 0 0 10px; font-size: 20px; }
.safety-callout p { margin: 0; color: var(--home-muted); line-height: 1.85; }

@media (max-width: 1060px) {
  .home-links { gap: 20px; }
  .hero-statement { font-size: 46px; }
  .companion-layout { gap: 58px; }
  .moments-layout, .faq-layout { gap: 58px; }
  .home-pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-price-card.featured-card { transform: none; }
}

@media (max-width: 840px) {
  html { scroll-padding-top: 68px; }
  .home-container { width: min(100% - 36px, 680px); }
  .home-nav { height: 68px; }
  .menu-button { display: block; }
  .home-links {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: #fff;
    border-bottom: 1px solid var(--home-line);
    box-shadow: 0 18px 34px rgba(37, 28, 64, .1);
  }
  .home-links.open { display: grid; }
  .home-links > a:not(.nav-login) { padding: 13px 4px; }
  .home-links > a:not(.nav-login)::after { display: none; }
  .nav-login { margin-top: 8px; }

  .home-hero { min-height: 690px; align-items: flex-end; }
  .hero-image { background-position: 55% 48%; opacity: .76; }
  .hero-inner { min-height: 690px; align-items: flex-end; padding: 70px 0 66px; }
  .hero-copy { width: 100%; padding: 0; }
  .hero-statement { font-size: 44px; }
  .hero-description { max-width: 520px; }

  .signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px 0; }
  .signal-grid p { min-height: 44px; justify-content: flex-start; padding: 0 16px; }
  .signal-grid p:nth-child(odd) { border-left: 0; }

  .home-section { padding: 84px 0; }
  .companion-layout, .moments-layout, .faq-layout, .safety-layout { grid-template-columns: 1fr; gap: 52px; }
  .companion-visual { width: min(100%, 520px); min-height: 0; aspect-ratio: 5 / 4; }
  .moments-heading, .faq-heading { position: static; }
  .moment-lines p { grid-template-columns: 100px minmax(0, 1fr); }
  .safety-layout > .text-link { grid-column: 1; margin-top: -24px; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner > p { grid-column: 1 / -1; justify-self: start; margin-top: -20px; padding-bottom: 22px; }
}

@media (max-width: 560px) {
  .home-container { width: calc(100% - 32px); }
  .brand-symbol { width: 34px; height: 34px; }
  .brand-name { font-size: 17px; }

  .home-hero { min-height: 680px; }
  .hero-image { background-position: 53% 42%; }
  .hero-inner { min-height: 680px; padding: 52px 0 48px; }
  .hero-note { margin-bottom: 12px; font-size: 13px; }
  .hero-copy h1 { font-size: 24px; }
  .hero-statement { margin: 14px 0 17px; font-size: 36px; line-height: 1.24; }
  .hero-description { font-size: 15px; line-height: 1.8; }
  .hero-button { width: 100%; margin-top: 26px; }

  .signal-grid { grid-template-columns: 1fr 1fr; }
  .signal-grid p { gap: 8px; padding: 0 8px; font-size: 12px; }

  .home-section { padding: 70px 0; }
  .companion-layout { gap: 42px; }
  .companion-visual { aspect-ratio: 1 / 1; }
  .visual-mark { right: 16px; bottom: 16px; left: 16px; padding: 17px 18px; }
  .visual-mark span { font-size: 28px; }
  .companion-copy h2, .section-heading h2, .safety-title h2, .final-cta h2, .content-page-hero h1 { font-size: 31px; line-height: 1.34; }
  .companion-intro { margin: 18px 0 28px; font-size: 15px; }
  .companion-points article { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 22px 0; }

  .moments-layout { gap: 36px; }
  .moment-lines p { grid-template-columns: 1fr; gap: 10px; padding: 25px 0; }
  .moment-lines strong { font-size: 17px; }

  .centered-heading { margin-bottom: 38px; text-align: left; }
  .home-pricing-grid { grid-template-columns: 1fr; gap: 12px; }
  .home-price-card { min-height: 390px; padding: 26px 22px 22px; }

  .faq-layout { gap: 34px; }
  .home-faq-list summary { gap: 18px; padding: 22px 0; font-size: 16px; }
  .home-faq-list details p { margin-right: 18px; }
  .safety-layout { gap: 36px; }
  .safety-list p { grid-template-columns: 1fr; gap: 8px; padding: 21px 0; }
  .safety-layout > .text-link { margin-top: -8px; }

  .final-cta { padding: 66px 0; }
  .final-cta-inner { display: grid; gap: 30px; }
  .final-cta .home-button { width: 100%; }

  .footer-inner { min-height: 180px; display: flex; flex-wrap: wrap; align-content: center; justify-content: space-between; gap: 22px; }
  .footer-inner nav { width: 100%; order: 3; }
  .footer-inner > p { margin: 0; padding: 0; }

  .content-page-hero { padding: 72px 0 56px; }
  .content-page-section { padding: 54px 0 78px; }
  .content-page-section .home-faq-list summary { font-size: 16px; }
  .safety-item { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 26px 0; }
  .safety-callout { padding: 24px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
