.page-home {
  --home-panel: rgba(15, 26, 46, .74);
  --home-shell: rgba(22, 35, 60, .48);
  --home-rule: rgba(201, 162, 74, .32);
  --home-gap: clamp(52px, 7vw, 96px);
  display: block;
}

.page-home :focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- 页面上下文条 ---------- */
.page-home .home-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-top: 22px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.page-home .home-context-dot {
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 162, 74, 0));
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(34px, 5vw, 68px) 0 clamp(46px, 7vw, 94px);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 480px at 82% 6%, rgba(54, 224, 216, .17), transparent 64%),
    radial-gradient(760px 420px at 2% 94%, rgba(255, 122, 89, .13), transparent 62%),
    radial-gradient(620px 380px at 46% 48%, rgba(201, 162, 74, .08), transparent 72%);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(58, 74, 99, .24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 74, 99, .24) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(760px 460px at 76% 26%, #000 0%, transparent 74%);
  mask-image: radial-gradient(760px 460px at 76% 26%, #000 0%, transparent 74%);
}

.page-home .home-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 5vw, 58px);
  align-items: center;
}

@media (min-width: 940px) {
  .page-home .home-hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(40px, 5vw, 72px);
  }
}

.page-home .home-title {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(34px, 6.2vw, 70px);
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--paper);
}

.page-home .home-hero-lede {
  margin-top: clamp(16px, 2vw, 22px);
  max-width: 52ch;
  color: var(--text-dim);
  font-size: clamp(15.5px, 1.15vw, 18px);
  line-height: 1.8;
}

.page-home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: clamp(22px, 3vw, 32px);
}

.page-home .home-hero-note {
  margin: 20px 0 0;
  color: rgba(154, 170, 196, .8);
  font-size: 11.5px;
  letter-spacing: .1em;
}

.page-home .home-hero-visual {
  position: relative;
  z-index: 0;
}

.page-home .home-hero-visual::before {
  content: "";
  position: absolute;
  inset: -16% -12% -14% 16%;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(
    from 200deg,
    rgba(54, 224, 216, .55),
    rgba(201, 162, 74, .42) 38%,
    rgba(255, 122, 89, .38) 66%,
    rgba(54, 224, 216, .55)
  );
  filter: blur(52px);
  opacity: .4;
}

.page-home .home-hero-figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--home-panel);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.page-home .home-hero-figure::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(201, 162, 74, .22);
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.page-home .home-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: .9;
}

.page-home .home-hero-cap {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 5px 10px;
  border: 1px solid var(--home-rule);
  border-radius: var(--radius-sm);
  background: rgba(11, 18, 32, .8);
  color: var(--gold-hi);
  font-size: 11px;
  letter-spacing: .1em;
}

/* ---------- 侧栏索引 + 正文 ---------- */
.page-home .home-layout {
  padding-top: clamp(46px, 7vw, 88px);
}

.page-home .with-rail.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 4vw, 46px);
  align-items: start;
}

.page-home .home-layout > .rail {
  padding-left: 14px;
  border-left: 1px solid var(--line-soft);
}

@media (min-width: 1100px) {
  .page-home .with-rail.home-layout {
    grid-template-columns: var(--rail) minmax(0, 1fr);
    gap: clamp(36px, 4vw, 62px);
  }

  .page-home .home-layout > .rail {
    position: sticky;
    top: 116px;
    align-self: start;
  }
}

.page-home .home-body {
  min-width: 0;
}

.page-home .home-body > .section + .section {
  margin-top: var(--home-gap);
}

.page-home .home-head {
  max-width: 62ch;
  margin-bottom: clamp(24px, 3.4vw, 38px);
}

.page-home .home-h2 {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(25px, 3.4vw, 40px);
  line-height: 1.16;
  letter-spacing: -.015em;
  color: var(--paper);
}

/* ---------- 周期刻度 ---------- */
.page-home .home-cycles-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 34px);
  align-items: start;
}

@media (min-width: 900px) {
  .page-home .home-cycles-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.page-home .home-cycle-tabs .tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--home-shell);
}

.page-home .home-cycle-tabs .tab {
  flex: 1 1 auto;
  min-width: 88px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.page-home .home-cycle-tabs .tab:hover {
  color: var(--paper);
  border-color: var(--home-rule);
}

.page-home .home-cycle-tabs .tab[aria-selected="true"] {
  color: var(--ink);
  background: linear-gradient(120deg, var(--cyan), var(--cyan-soft));
  border-color: var(--cyan);
  box-shadow: 0 12px 30px -20px var(--cyan);
}

.page-home .home-cycle-tabs .tabpanel {
  margin-top: 18px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--home-panel);
  box-shadow: var(--shadow-card);
}

.page-home .home-panel-lede {
  margin: 0;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.82;
}

.page-home .home-panel-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-home .home-panel-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.72;
}

.page-home .home-panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(54, 224, 216, .7);
}

.page-home .home-panel-link {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--home-rule);
  color: var(--gold-hi);
  font-size: 13px;
  letter-spacing: .05em;
}

.page-home .home-panel-link:hover {
  color: var(--cyan-soft);
  border-color: var(--cyan);
}

.page-home .home-cycle-figure {
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--home-panel);
  overflow: hidden;
}

.page-home .home-cycle-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- 桌台分类 ---------- */
.page-home .home-desk-figure {
  position: relative;
  margin: 0 0 clamp(22px, 3vw, 32px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .home-desk-figure img {
  display: block;
  width: 100%;
  height: clamp(150px, 22vw, 232px);
  object-fit: cover;
  opacity: .8;
}

.page-home .home-desk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 24px);
}

@media (min-width: 760px) {
  .page-home .home-desk-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-home .home-desk-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.6vw, 28px);
}

.page-home .home-desk-card--cyan { --desk-accent: var(--cyan); }
.page-home .home-desk-card--live { --desk-accent: var(--coral); }
.page-home .home-desk-card--theme { --desk-accent: var(--gold-hi); }

.page-home .home-desk-share {
  color: var(--desk-accent, var(--gold-hi));
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}

.page-home .home-desk-name {
  margin: 0;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 800;
  color: var(--paper);
}

.page-home .home-desk-desc {
  margin: 0;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.78;
}

.page-home .home-desk-bar {
  margin-top: auto;
  height: 3px;
  border-radius: 2px;
  background: rgba(58, 74, 99, .55);
  overflow: hidden;
}

.page-home .home-desk-bar span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--desk-accent, var(--cyan));
}

.page-home .home-desk-cta {
  margin-top: clamp(22px, 3vw, 30px);
}

/* ---------- 在线桌数 ---------- */
.page-home .home-metrics-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: center;
}

@media (min-width: 900px) {
  .page-home .home-metrics-shell {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  }
}

.page-home .home-metrics-figure {
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--home-panel);
  overflow: hidden;
}

.page-home .home-metrics-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .home-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--line-soft);
  overflow: hidden;
}

@media (min-width: 760px) {
  .page-home .home-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-home .home-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(20px, 3vw, 32px) clamp(16px, 2.4vw, 26px);
  background: var(--home-panel);
}

.page-home .home-stat .stat-value {
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--paper);
}

.page-home .home-stat .stat-label {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.65;
}

/* ---------- 常见问题入口 ---------- */
.page-home .home-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 2vw, 20px);
}

@media (min-width: 640px) {
  .page-home .home-faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .page-home .home-faq-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-home .home-faq-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--home-panel);
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.page-home .home-faq-card:hover {
  transform: translateY(-2px);
  border-color: var(--home-rule);
  box-shadow: var(--shadow-card);
}

.page-home .home-faq-share {
  color: var(--cyan);
  font-size: 11.5px;
  letter-spacing: .12em;
}

.page-home .home-faq-card h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--paper);
}

.page-home .home-faq-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.72;
}

.page-home .home-faq-more {
  margin-top: auto;
  padding-top: 12px;
  color: var(--gold-hi);
  font-size: 12.5px;
  letter-spacing: .06em;
}

/* ---------- 服务流程 ---------- */
.page-home .home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--line-soft);
  overflow: hidden;
}

@media (min-width: 760px) {
  .page-home .home-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-home .home-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.8vw, 30px);
  background: var(--home-shell);
}

.page-home .home-step-num {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .16em;
}

.page-home .home-step h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  color: var(--paper);
}

.page-home .home-step p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.74;
}

.page-home .home-process-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: clamp(24px, 3vw, 34px);
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--home-rule);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(201, 162, 74, .12), rgba(201, 162, 74, 0) 58%),
    var(--home-panel);
}

.page-home .home-process-foot p {
  flex: 1 1 280px;
  margin: 0;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.78;
}

.page-home .home-process-foot .mono {
  color: var(--gold-hi);
  font-size: 13px;
}

@media (max-width: 520px) {
  .page-home .home-cycle-tabs .tab {
    min-width: 72px;
    padding: 10px 12px;
  }

  .page-home .home-desk-share {
    font-size: 26px;
  }

  .page-home .home-process-foot {
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-faq-card,
  .page-home .home-cycle-tabs .tab {
    transition: none;
  }

  .page-home .home-faq-card:hover {
    transform: none;
  }
}
