/* =====================================================================
   Homepage refresh — loaded last.

   The homepage grew through several stacked layers (editorial, v9,
   continuity). This layer settles the parts that disagreed with each
   other: one section-title scale, a real timeline, a calmer FAQ, a header
   with a clear way to join, and a tidy footer. Behaviour is untouched.
   ===================================================================== */

:root{
  --rf-title:clamp(32px,3.4vw,52px);
  --rf-ink:oklch(.96 .006 95);
  --rf-body:oklch(.78 .01 90);
  --rf-faint:oklch(.62 .01 90);
  --rf-rule:oklch(1 0 0 / .09);
  --rf-ease:cubic-bezier(.16,1,.3,1);
}

/* ---------- header ---------- */
.site-header .editorial-menu-label{display:none!important}
.header-quicklinks a.quick-join{
  margin-left:6px;padding:9px 18px!important;border:1px solid oklch(.86 .16 92 / .55)!important;border-radius:999px!important;
  color:var(--gold)!important;font-weight:700!important;
  transition:background-color .25s,color .25s,border-color .25s!important;
}
.header-quicklinks a.quick-join:hover{background:var(--gold)!important;border-color:var(--gold)!important;color:oklch(.18 .012 100)!important}
.header-quicklinks a.quick-join::after{display:none!important}

/* ---------- one title scale for every chapter ---------- */
.past-works .works-intro .section-heading h2,
.timeline .section-heading h2,
.faq .section-heading h2{
  font-size:var(--rf-title)!important;line-height:1.15!important;font-weight:700!important;letter-spacing:-.03em!important;color:var(--rf-ink);
}
.section-heading h2::after{content:none}

/* ---------- timeline: four stops on one line ---------- */
main>section.section.timeline{display:block!important}
.timeline>.section-heading{position:static!important;margin:0 0 clamp(32px,4vw,56px)!important}
.timeline-track{
  position:relative;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 clamp(20px,2.4vw,40px);
  padding-top:28px!important;
}
.timeline-track::before{content:'';position:absolute;top:5px;left:0;right:0;height:1px;background:var(--rf-rule)}
.timeline-track>li{
  position:relative;display:flex!important;flex-direction:column;gap:0;min-height:0!important;
  padding:0!important;border:0!important;
}
.timeline-track>li::before{
  content:''!important;display:block!important;position:absolute;top:-28px;left:0;width:11px;height:11px;border-radius:50%;
  background:var(--bg,oklch(.135 .009 275));border:2px solid var(--gold);transition:none!important;
}
.timeline-track>li:first-child::before{background:var(--gold);box-shadow:0 0 0 5px oklch(.86 .16 92 / .16)}
.timeline-track>li:hover::before{width:11px!important;height:11px!important}
.timeline-track .phase-date{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:2px!important;margin:0 0 14px!important;
  font-size:clamp(22px,2vw,30px)!important;font-weight:700!important;line-height:1.2!important;color:var(--gold)!important;
}
.timeline-track .phase-date>span:first-child{font-size:13px!important;font-weight:400!important;color:var(--rf-faint)!important;letter-spacing:.04em}
.timeline-track h3{margin:0 0 8px!important;font-size:clamp(17px,1.35vw,20px)!important;font-weight:700!important;line-height:1.35!important;letter-spacing:-.01em!important}
.timeline-track>li>p:not(.phase-date){margin:0!important;font-size:14px!important;line-height:1.8!important;color:var(--rf-body)!important;max-width:36ch}
.timeline>.section-footnote{margin:clamp(28px,3vw,44px) 0 0!important;font-size:13px!important;color:var(--rf-faint)!important;max-width:none!important}

@media (max-width:900px){
  .timeline-track{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:40px;padding-top:0!important}
  .timeline-track::before{display:none}
  .timeline-track>li{padding-left:28px!important;border:0!important}
  .timeline-track>li::before{top:7px;left:0}
}
@media (max-width:560px){
  .timeline-track{grid-template-columns:minmax(0,1fr);row-gap:0}
  .timeline-track>li{padding:0 0 32px 28px!important}
  .timeline-track>li:last-child{padding-bottom:4px!important}
  .timeline-track>li:not(:last-child)::after{
    content:''!important;display:block!important;position:absolute!important;left:5px!important;top:22px!important;bottom:-4px!important;
    width:1px!important;height:auto!important;background:var(--rf-rule)!important;opacity:1!important;transform:none!important;
  }
  .timeline-track .phase-date{flex-direction:row!important;align-items:baseline!important;gap:10px!important;margin-bottom:8px!important;font-size:22px!important}
}
/* desktop: line runs dot-to-dot (per-item segments), visible, centred on the dots */
@media (min-width:900.02px){
  .timeline-track{--tl-gap:clamp(20px,2.4vw,40px);column-gap:var(--tl-gap)!important;view-timeline-name:--tl}
  /* base rail + gold fill, both exactly from first dot centre to last dot centre */
  .timeline-track::before,.timeline-track::after{
    content:''!important;position:absolute!important;top:5px!important;height:1px!important;
    left:5px!important;right:calc((100% - 3 * var(--tl-gap)) / 4 - 6px)!important;
  }
  .timeline-track::before{background:oklch(1 0 0 / .1)!important}
  .timeline-track::after{
    height:2px!important;top:4.5px!important;border-radius:2px;
    background:linear-gradient(90deg,oklch(.86 .16 92 / .55),var(--gold))!important;
    box-shadow:0 0 12px oklch(.86 .16 92 / .45);transform-origin:left center;
  }
  .timeline-track>li::before{top:-28px!important;z-index:1}
  .timeline-track>li::after{display:none!important}
  @supports (animation-timeline:view()){
    @media (prefers-reduced-motion:no-preference){
      .timeline-track::after{animation:tl-draw linear both;animation-timeline:--tl;animation-range:entry 70% contain 35%}
      .timeline-track>li::before,.timeline-track>li>*{animation:tl-in linear both;animation-timeline:--tl}
      .timeline-track>li:nth-child(1)::before,.timeline-track>li:nth-child(1)>*{animation-range:entry 70% entry 90%}
      .timeline-track>li:nth-child(2)::before,.timeline-track>li:nth-child(2)>*{animation-range:entry 85% contain 10%}
      .timeline-track>li:nth-child(3)::before,.timeline-track>li:nth-child(3)>*{animation-range:entry 100% contain 22%}
      .timeline-track>li:nth-child(4)::before,.timeline-track>li:nth-child(4)>*{animation-range:contain 15% contain 35%}
      .timeline-track>li::before{animation-name:tl-dot}
    }
  }
}
@keyframes tl-draw{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes tl-dot{from{transform:scale(.3);opacity:0;box-shadow:0 0 0 0 oklch(.86 .16 92 / .5)}60%{transform:scale(1.35);opacity:1}to{transform:scale(1);opacity:1}}
@keyframes tl-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

/* ---------- FAQ: heading left, list right, quiet rules ---------- */
.faq{display:grid!important;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:32px clamp(40px,6vw,112px)!important;align-items:start}
.faq>.section-heading{position:sticky!important;top:calc(var(--header-height,72px) + 40px)!important;margin:0!important}
.faq-list{gap:0!important}
.faq-item{border:0!important;border-top:1px solid var(--rf-rule)!important}
.faq-item:last-child{border-bottom:1px solid var(--rf-rule)!important}
.faq-trigger{min-height:76px!important;padding-block:20px!important}
.faq-question{font-size:clamp(16px,1.35vw,20px)!important;font-weight:500!important;line-height:1.5!important}
.faq-trigger .expand-symbol{width:36px!important;height:36px!important}
.faq-panel-inner p{font-size:15px!important;line-height:1.85!important;color:var(--rf-body)!important;padding-bottom:26px!important}
/* 特殊领域的补充说明：整块降一档字号并压暗，和正文拉开层次，避免长段落糊成一片。 */
.faq-note{margin:2px 0 26px;padding:2px 0 2px clamp(14px,1.6vw,18px);border-left:1px solid var(--rf-rule);opacity:.62}
.faq-panel-inner .faq-note p{
  margin:0!important;padding-bottom:8px!important;max-width:52ch!important;
  font-size:13px!important;line-height:1.8!important;color:var(--rf-body)!important;
}
.faq-panel-inner .faq-note p:last-child{padding-bottom:0!important}
.faq-panel-inner .faq-note .faq-note-title{
  padding-bottom:2px!important;font-size:13.5px!important;font-weight:700!important;
  line-height:1.7!important;letter-spacing:.01em!important;color:var(--rf-ink)!important;
}
.faq-more{
  display:inline-flex;align-items:center;gap:10px;margin-top:26px;
  color:var(--gold);font-size:15px;font-weight:700;text-decoration:none;
}
.faq-more-arrow{transition:transform .25s var(--rf-ease)}
.faq-more:hover .faq-more-arrow{transform:translateX(4px)}
@media (min-width:901px){.faq-more{grid-column:2;justify-self:start}}
@media (max-width:900px){
  .faq{grid-template-columns:minmax(0,1fr)!important}
  .faq>.section-heading{position:static!important}
}

/* ---------- join poster: no replay control ---------- */
.gala-poster-replay{display:none!important}

/* ---------- menu: characters rise out of their own line box ---------- */
.editorial-menu-links>a .menu-link-text{display:inline-block}
/* The glyph wrappers must inherit the title's own type, not the 30px arrow
   style the base sheet applies to every span inside a menu link. */
.editorial-menu-links>a .menu-char,
.editorial-menu-links>a .menu-char-inner{
  font:inherit;letter-spacing:inherit;line-height:inherit;
  opacity:1;align-self:auto;transition:none;
}
.menu-char{
  display:inline-block;overflow:hidden;vertical-align:top;
  padding-block:.14em;margin-block:-.14em;
}
.menu-char-inner{display:inline-block;transform:translateZ(0)}
.editorial-menu-links>a:hover .menu-char,
.editorial-menu-links>a:focus-visible .menu-char,
.editorial-menu-links>a:hover .menu-char-inner,
.editorial-menu-links>a:focus-visible .menu-char-inner{transform:none;opacity:1}

/* ---------- FAQ: a full chapter, not a strip between two others ---------- */
main>section.section.faq{padding-block:clamp(104px,12vw,168px)!important}
.faq-list{gap:0!important;padding-top:6px}
.faq-trigger{min-height:84px!important;padding-block:23px!important}
.faq-panel-inner p{padding-bottom:30px!important}
@media (max-width:900px){
  .faq{padding-block:clamp(72px,11vw,110px)!important}
}

/* ---------- footer ---------- */
.site-footer.site-footer-detailed{
  display:grid!important;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.45fr);
  gap:0 clamp(28px,4vw,72px);
  width:min(calc(100% - 2 * var(--gutter)),var(--chapter-width))!important;
  margin:0 auto!important;
  padding:clamp(56px,6.5vw,100px) 0 calc(34px + env(safe-area-inset-bottom))!important;
  border:0!important;border-top:1px solid var(--rf-rule)!important;
  font-size:13px!important;line-height:1.85;color:var(--rf-faint)!important;
}
.site-footer-detailed .footer-copyright{
  grid-column:1;grid-row:1;display:grid;gap:3px;
  margin:0!important;padding:0!important;border:0!important;
}
.site-footer-detailed .footer-copyright p{font-size:12px!important;letter-spacing:.012em}
.site-footer-detailed .footer-copyright p:first-child{color:var(--rf-ink)}
.site-footer-detailed .footer-credits{
  grid-column:1;grid-row:2;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px clamp(24px,3vw,40px);
  margin:clamp(24px,2.8vw,36px) 0 0!important;padding:0!important;border:0!important;
}
.site-footer-detailed .footer-credit{min-width:0}
.site-footer-detailed .footer-disclaimer{grid-column:2;grid-row:1 / 3;margin:0!important;padding:0!important;border:0!important}
.site-footer-detailed h2{
  margin:0 0 8px!important;font-size:11.5px!important;font-weight:700!important;line-height:1.7!important;
  letter-spacing:.05em;color:var(--rf-ink)!important;
}
.site-footer-detailed h2 [lang="en"]{display:block;margin-top:3px;font-weight:400;letter-spacing:.02em;color:var(--rf-faint)}
.site-footer-detailed p{margin:0!important;font-size:13px!important;line-height:1.85!important;text-wrap:pretty}
.site-footer-detailed .footer-credit p{color:var(--rf-body)}
.site-footer-detailed .footer-credit p+p{color:var(--rf-faint)}
.site-footer-detailed .footer-disclaimer p{color:var(--rf-faint)}
.site-footer-detailed .footer-disclaimer p+p{margin-top:10px!important}
@media (max-width:900px){
  .site-footer.site-footer-detailed{grid-template-columns:minmax(0,1fr);gap:0}
  .site-footer-detailed .footer-disclaimer{
    grid-column:1;grid-row:auto;
    margin-top:clamp(30px,4vw,44px)!important;padding-top:clamp(26px,3vw,36px)!important;
    border-top:1px solid var(--rf-rule)!important;
  }
}
@media (max-width:620px){
  .site-footer-detailed .footer-credits{grid-template-columns:minmax(0,1fr);gap:24px}
}

/* 报名入口下方的次要动作：自助查询审核进度。 */
.join .application-entry{display:flex;flex-direction:column;align-items:center}
.join .application-entry .entry-status-link{width:auto;margin-top:10px;font-size:14px;justify-content:center;gap:10px}
