/* 两个独立项目使用同一套页面骨架规则。颜色依据 https://midu.design/kiwebank。 */
:root {
  --page-background: #050505;
  --surface: rgba(255, 255, 255, 0.07);
  --text-primary: #fff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --muted: var(--text-secondary);
  --footer-gradient: linear-gradient(180deg, rgba(0, 0, 0, 0) 15.079%, rgba(255, 0, 34, 0.6) 62.857%, rgba(255, 125, 78, 0.85) 83.333%);
}
html, body, .page-shell { background: var(--page-background); }
body { color: var(--text-primary); }
.menu-button { left: calc(50% - var(--menu-width) / 2); letter-spacing: 0; }
.menu-status, .hero-meta, .hero-copy { color: var(--text-secondary); }
.contact-button { color: #030303; }

/* 普通媒体容器无描边，整张图片单独用父容器裁切圆角，防止透明边缘露灰。 */
.dark-panel { background: var(--surface); border: 0; box-shadow: none; }
.overview-media > .dark-panel, .media-07.dark-panel { background: transparent; }
.overview-media img { object-fit: cover; border-radius: 0; }
.media-07 > img { border-radius: 0; }

.rail-card { background: var(--surface); opacity: 0.8; }
.rail-card.is-active { opacity: 1; }
.rail-label, .overview-summary, .challenge-copy,
.rail-marketing .rail-card-content > p, .marketing-copy { color: var(--text-secondary); }
.rail-card h3 { color: var(--text-primary); }
.rail-overview.is-active { height: var(--overview-card-height, 511px); overflow: visible; }
.rail-marketing.is-active { height: var(--marketing-card-height, 329px); }
.rail-overview .overview-summary { height: auto; }
.overview-summary p { margin: 0 0 16px; }
.overview-summary .business-metrics { margin: 0 0 16px; font-weight: 400; }
.business-metrics li { position: relative; padding-left: 16px; width: 100%; }
.business-metrics li::before { position: absolute; left: 0; }
.business-metrics .metric-label { display: inline; text-align: left; }
.challenge-group { padding-top: 0; }
.challenge-item, .challenge-item:last-child { flex: 0 0 auto; gap: 32px; }
.challenge-item .challenge-copy, .challenge-item:last-child .challenge-copy { height: auto; }
.challenge-copy p + p { margin-top: 24px; }
.marketing-copy { margin-top: 32px; font-size: 16px; line-height: 24px; }
.marketing-copy p { margin: 0; }
.marketing-copy p + p { margin-top: 24px; }
.metric-tooltip { font-weight: 400; visibility: hidden; pointer-events: auto; }
.metric-tooltip::after { content: ""; position: absolute; top: 100%; left: 0; width: 100%; height: 8px; }
.metric-with-detail:not(.tooltip-dismissed):hover .metric-tooltip,
.metric-with-detail:not(.tooltip-dismissed):focus-within .metric-tooltip { visibility: visible; }
.metric-with-detail.tooltip-dismissed .metric-tooltip { opacity: 0; visibility: hidden; }

/* 社媒内容的布局共用，展示板品牌背景仍使用各项目稿件配色。 */
.social-post-row { position: absolute; left: 152px; top: 64px; width: 624px; height: 432px; display: flex; gap: 24px; }
.social-post-column { width: 192px; flex: 0 0 192px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.social-post-crop { position: relative; width: 192px; height: 384px; flex: 0 0 auto; overflow: hidden; border-radius: var(--media-radius); }
.social-post-column:nth-child(2) .social-post-crop img { left: -216px; top: 0; }
.social-platform-logo { display: block; height: 16px; object-fit: contain; }
.logo-instagram { width: 72px; }
.logo-platform { width: 20px; }
.logo-x { width: 16px; }

.footer-intro > span, .footer-intro strong, .footer-links a { color: var(--text-primary); }
.footer-links > div > span { color: var(--text-secondary); }
.footer-word { background-image: var(--footer-gradient); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rail-card, .rail-label, .rail-card-content, .section-card-rail { transition-duration: 0s; }
}

/* Keep deferred footer entries in the DOM without displaying or focusing them. */
.footer-links a[hidden] { display: none; }

/* Shared card geometry: expanded 32/32/32/24; collapsed 16/auto/16/24. */
.rail-card {
  --rail-inset-top: 32px;
  --rail-inset-bottom: 32px;
  --rail-label-height: 24px;
  --rail-content-gap: 40px;
  padding: 16px 0 16px 24px;
}
.rail-card.is-active { padding: var(--rail-inset-top) 32px var(--rail-inset-bottom) 24px; }
.rail-card .rail-label, .rail-card.is-active .rail-label { height: var(--rail-label-height); line-height: var(--rail-label-height); }
.rail-card:not(.is-active) .rail-label { width: max-content; max-width: none; white-space: nowrap; }
.rail-card.is-active .rail-label { width: 296px; }
.rail-card .rail-card-content { width: 296px; margin-top: var(--rail-content-gap); display: flow-root; }

/* Reference Overview agenda occupies 514px at desktop, starting at y=98
   in a 710px viewport. Keep that anchor independent of this project's copy.
   Header clearance is a minimum; long copy remains scrollable below it. */
.section-card-track {
  position: absolute;
  left: 40px;
  top: var(--rail-section-start, 1632px);
  height: var(--rail-section-height, 6000px);
  width: var(--sidebar);
  z-index: 20;
  pointer-events: none;
}
.section-card-viewport {
  position: sticky;
  pointer-events: auto;
  top: 0;
  height: 100vh;
  width: calc(var(--sidebar) + 24px);
  --rail-reference-half: 257px;
  padding: max(88px, calc(50vh - var(--rail-reference-half))) 24px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ffffff30 transparent;
}
/* Reference first-card visual tops at 710px: open 98px, closed 111.54px.
   Keep these anchors when this three-card case has different copy heights. */
.section-card-viewport:has(.rail-overview:not(.is-active)) { --rail-reference-half: 243.459375px; }
.section-card-viewport { transition: padding-top 450ms cubic-bezier(.12,.23,.5,1); }
.overview-summary > .business-metrics:last-child { margin-bottom: 0; }
.section-card-rail,
.section-card-rail.is-visible {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  margin-block: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: none;
}
/* Content grows downward from the reference anchor, never toward the logo. */
.rail-card {
  --rail-motion-duration: 450ms;
  transition-timing-function: cubic-bezier(.12,.23,.5,1);
}
.rail-label,.rail-card-content { transition-timing-function: cubic-bezier(.12,.23,.5,1); }
/* Keep challenge content and its animated outer height on the same curve. */
.rail-challenge .challenge-card-content {
  transition:
    height var(--rail-motion-duration) cubic-bezier(.12,.23,.5,1),
    opacity var(--rail-motion-duration) cubic-bezier(.12,.23,.5,1),
    transform var(--rail-motion-duration) cubic-bezier(.12,.23,.5,1),
    visibility 0s linear var(--rail-motion-duration);
}
@media (prefers-reduced-motion: reduce) {
  .section-card-viewport,.rail-card,.rail-label,.rail-card-content { transition-duration: 0s; }
}

/* Match the reference scrollbar hider: scrolling remains enabled. */
* { scrollbar-width: none !important; -ms-overflow-style: none !important; }
*::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; background: transparent !important; }
/* Lenis owns wheel/anchor interpolation; avoid a second native smooth curve. */
html { scroll-behavior: auto; }
/* Only the light bleeds beyond the fixed 1440px content canvas. */
.page-shell, .hero { overflow: visible; }
.hero { background: transparent; }

/* Figma 2026-09-28: hero subtitle uses Inter Regular 16px. */
.hero-meta { font-family: "Inter", "PingFang SC", sans-serif; font-size: 16px; font-weight: 400; line-height: 16px; letter-spacing: 0.32px; }
