.page-home{
  --home-hair: rgba(233, 196, 106, .24);
  --home-glow: rgba(233, 196, 106, .16);
  --home-violet-glow: rgba(96, 58, 162, .30);
  --home-soft: rgba(244, 239, 227, .08);
  background: var(--ink);
  color: var(--star);
  overflow-x: hidden;
}

.page-home section[id]{
  scroll-margin-top: 96px;
}

.page-home .section-lede{
  margin: 12px 0 0;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ash);
}

/* ============ 首屏 ============ */
.home-hero{
  position: relative;
  padding: clamp(20px, 4vw, 40px) 0 clamp(48px, 7vw, 88px);
  overflow: hidden;
}

.home-hero::before{
  content: "";
  position: absolute;
  top: -34%;
  right: -28%;
  width: min(150vw, 1500px);
  height: min(150vw, 1500px);
  background:
    radial-gradient(circle at 50% 50%, var(--home-glow) 0%, rgba(233, 196, 106, 0) 58%),
    radial-gradient(circle at 70% 70%, var(--home-violet-glow) 0%, rgba(43, 30, 77, 0) 60%);
  pointer-events: none;
}

.home-hero-inner{
  position: relative;
  display: grid;
  gap: clamp(30px, 5vw, 56px);
  align-items: center;
}

.hero-copy{
  min-width: 0;
}

.hero-context{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: clamp(16px, 3vw, 26px);
}

.hero-context .pill{
  background: rgba(233, 196, 106, .12);
  border: 1px solid var(--home-hair);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .08em;
}

.hero-context-text{
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ash);
}

.home-hero h1{
  margin: 0 0 clamp(16px, 3vw, 24px);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 6.4vw, 4.1rem);
  line-height: 1.14;
  letter-spacing: -.015em;
}

.home-hero h1 em{
  display: inline-block;
  font-style: normal;
  color: var(--gold);
}

.hero-lede{
  margin: 0;
  max-width: 42ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.82;
  color: var(--star);
  opacity: .88;
}

.hero-copy .aside-note{
  margin: clamp(18px, 3vw, 26px) 0;
}

.hero-copy .aside-note p{
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ash);
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(24px, 4vw, 36px);
}

.hero-facts{
  display: grid;
  gap: 16px 20px;
  margin: 0;
  padding: clamp(18px, 3vw, 22px) 0 0;
  list-style: none;
  border-top: 1px solid var(--home-soft);
}

.hero-facts li{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fact-num{
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  letter-spacing: .02em;
  color: var(--gold);
}

.fact-label{
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ash);
}

.hero-frame{
  position: relative;
  padding-left: 30px;
  min-width: 0;
}

.frame-scale{
  position: absolute;
  left: 0;
  top: 6%;
  bottom: 14%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.frame-scale span{
  display: block;
  width: 24px;
  padding-top: 5px;
  border-top: 1px solid var(--home-hair);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--gold-deep);
}

.hero-figure{
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border: 1px solid var(--line);
  border-radius: clamp(70px, 22vw, 180px) clamp(70px, 22vw, 180px) var(--r-frame) var(--r-frame);
  background: var(--ink-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.hero-figure img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-note{
  margin: 14px 0 0;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.72;
  color: var(--ash);
}

/* ============ 入口位置 ============ */
.home-entry{
  position: relative;
  padding: clamp(40px, 7vw, 80px) 0;
  background: var(--violet);
}

.home-entry::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}

.entry-wrap{
  display: grid;
  gap: clamp(26px, 4vw, 48px);
}

.entry-main h2{
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1.28;
  color: var(--star);
}

.entry-lede{
  margin: 0 0 clamp(20px, 3vw, 28px);
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.82;
  color: rgba(244, 239, 227, .82);
}

.entry-steps{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.entry-steps li{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid rgba(244, 239, 227, .14);
}

.entry-steps li:first-child{
  border-top: 1px solid rgba(244, 239, 227, .14);
}

.step-num{
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--gold);
}

.entry-steps p{
  margin: 0;
  font-size: 14.5px;
  line-height: 1.76;
  color: rgba(244, 239, 227, .86);
}

/* ============ 编号导览 ============ */
.home-guide{
  padding: clamp(48px, 8vw, 96px) 0;
}

.guide-head{
  max-width: 60ch;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.guide-head h2{
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.8vw, 2.5rem);
  line-height: 1.24;
  color: var(--star);
}

.guide-list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.guide-item{
  display: grid;
  gap: 12px;
  padding: clamp(22px, 4vw, 34px) 0;
  border-top: 1px solid var(--home-hair);
}

.guide-item:last-child{
  border-bottom: 1px solid var(--home-hair);
}

.page-home .guide-item .chapter-num{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: .9;
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-deep);
}

.guide-body h3{
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 2.4vw, 1.58rem);
  line-height: 1.32;
  color: var(--star);
}

.guide-body p{
  margin: 0 0 14px;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.82;
  color: var(--ash);
}

.guide-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--home-hair);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}

.guide-link::after{
  content: "→";
}

.guide-link:hover,
.guide-link:focus-visible{
  border-bottom-color: var(--gold);
}

/* ============ 版本速览 ============ */
.home-version{
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0;
}

.version-wrap{
  display: grid;
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
}

.version-figure{
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-frame);
  background: var(--ink-2);
}

.version-figure img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.version-body h2{
  margin: 0 0 clamp(18px, 3vw, 26px);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.6vw, 2.3rem);
  line-height: 1.26;
  color: var(--star);
}

.version-list{
  margin: 0 0 clamp(22px, 3vw, 30px);
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.version-list li{
  position: relative;
  padding-left: 18px;
  border-left: 2px solid var(--home-soft);
}

.version-list li:first-child{
  border-left-color: var(--gold);
}

.version-list h3{
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--star);
}

.version-list p{
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--ash);
}

/* ============ 纹理分隔带 ============ */
.home-band{
  height: clamp(110px, 17vw, 220px);
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

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

/* ============ 活动预览 ============ */
.home-events{
  padding: clamp(48px, 8vw, 96px) 0;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 48%, var(--ink) 100%);
}

.events-head{
  max-width: 62ch;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.events-head h2{
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.8vw, 2.5rem);
  line-height: 1.24;
  color: var(--star);
}

.event-grid{
  display: grid;
  gap: 20px;
}

.event-card{
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}

.event-card:hover,
.event-card:focus-within{
  transform: translateY(-2px);
  border-color: var(--gold-deep);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .42);
}

.event-figure{
  margin: 0;
}

.event-figure img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.event-body{
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(18px, 3vw, 26px);
}

.event-body h3{
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.4;
  color: var(--star);
}

.event-body p{
  margin: 0;
  font-size: 14.5px;
  line-height: 1.76;
  color: var(--ash);
}

.event-link{
  margin-top: auto;
  padding-bottom: 3px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--home-hair);
  transition: border-color .25s var(--ease);
}

.event-link:hover,
.event-link:focus-visible{
  border-bottom-color: var(--gold);
}

/* ============ 教程快捷入口（浅色段落） ============ */
.home-tutorial{
  padding: clamp(48px, 8vw, 96px) 0;
  background: var(--star);
  color: var(--night);
}

.tut-head{
  max-width: 58ch;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.home-tutorial .eyebrow{
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--gold-deep);
  color: var(--night);
}

.tut-head h2{
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.6vw, 2.4rem);
  line-height: 1.26;
  color: var(--night);
}

.tut-head p{
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(13, 19, 48, .74);
}

.tut-list{
  margin: 0 0 clamp(24px, 4vw, 36px);
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.tut-list a{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: clamp(15px, 3vw, 22px) clamp(16px, 3vw, 24px);
  border: 1px solid rgba(13, 19, 48, .12);
  border-radius: var(--r-card);
  background: rgba(13, 19, 48, .04);
  color: var(--night);
  text-decoration: none;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}

.tut-list a:hover,
.tut-list a:focus-visible{
  transform: translateY(-2px);
  border-color: var(--gold-deep);
  background: rgba(233, 196, 106, .16);
}

.tut-index{
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gold-deep);
}

.tut-name{
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
}

.tut-time{
  font-size: 12.5px;
  letter-spacing: .04em;
  color: rgba(13, 19, 48, .58);
  white-space: nowrap;
}

.tut-cta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--night);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--night);
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease);
}

.tut-cta:hover,
.tut-cta:focus-visible{
  background: var(--night);
  color: var(--star);
}

/* ============ 下一步 ============ */
.home-next{
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 100px);
}

.home-next h2{
  margin: 0 0 clamp(20px, 3vw, 30px);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.3;
  color: var(--star);
}

.next-list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--home-hair);
  border-top: 1px solid var(--home-hair);
  border-bottom: 1px solid var(--home-hair);
}

.next-list a{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding: clamp(17px, 3vw, 24px) clamp(6px, 2vw, 16px);
  background: var(--ink);
  text-decoration: none;
  transition: background .25s var(--ease), padding-left .25s var(--ease);
}

.next-list a:hover,
.next-list a:focus-visible{
  background: var(--ink-2);
  padding-left: clamp(12px, 3vw, 26px);
}

.next-key{
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 700;
  color: var(--gold);
}

.next-desc{
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ash);
}

/* ============ 响应式 ============ */
@media (min-width: 520px){
  .hero-facts{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 559px){
  .tut-list a{
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 6px;
  }
  .tut-time{
    grid-column: 2;
  }
}

@media (min-width: 820px){
  .guide-item{
    grid-template-columns: 180px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
  }
}

@media (min-width: 900px){
  .entry-wrap{
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: start;
  }
}

@media (min-width: 940px){
  .home-hero-inner{
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 64px);
  }
  .version-wrap{
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  }
}

@media (min-width: 780px){
  .event-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
  .event-card:nth-child(2){
    margin-top: 54px;
  }
}

@media (prefers-reduced-motion: reduce){
  .page-home *{
    transition: none !important;
    animation: none !important;
  }
}
