:root {
  --ink: #0c0c0c;
  --paper: #f6f4ee;
  --white: #ffffff;
  --lime: #d6ff3f;
  --coral: #ff5b42;
  --cyan: #59c3ff;
  --muted: #66635e;
  --line: rgba(12, 12, 12, 0.18);
  --safe-bottom: max(16px, env(safe-area-inset-bottom));
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
  overflow-x: hidden;
}

.share-cover-loader {
  position: absolute;
  left: -9999px;
  width: 300px;
  height: 300px;
  object-fit: cover;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.page-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.page-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lime);
}

.hero {
  position: relative;
  min-height: calc(100svh - 64px);
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  isolation: isolate;
}

#signalCanvas,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#signalCanvas {
  z-index: -3;
}

.hero-grid {
  z-index: -2;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 68px;
  margin: 0 auto;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.wordmark-dot {
  width: 12px;
  height: 12px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 18px 0 0 var(--coral);
  margin-right: 18px;
}

.nav-action {
  position: absolute;
  right: max(16px, calc(100% - 374px));
  min-width: 84px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 1180px);
  margin: 0 auto;
  padding: 34px 0 72px;
}

.invited-to {
  display: inline-flex;
  margin: 0 0 24px;
  padding: 8px 12px;
  border-left: 3px solid var(--coral);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.invited-to span {
  color: var(--white);
  font-weight: 700;
}

.event-kicker,
.section-index,
.dialog-kicker {
  margin: 0;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 14px 0 12px;
  font-size: 54px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

.hero h1 .accent-line {
  color: var(--lime);
}

.hero h1 b {
  color: var(--cyan);
  font-weight: 900;
}

.hero-thesis {
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  font-weight: 600;
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 520px;
  margin-bottom: 26px;
}

.hero-meta > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-label {
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
}

.hero-meta strong {
  font-size: 14px;
  line-height: 1.6;
}

.hero-actions,
.venue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-action,
.secondary-action {
  min-width: 128px;
  height: 48px;
  padding: 0 20px;
  border-radius: 4px;
  font-weight: 800;
  cursor: pointer;
}

.primary-action {
  border: 1px solid var(--lime);
  background: var(--lime);
  color: var(--ink);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: var(--white);
}

.scroll-cue {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  writing-mode: vertical-rl;
}

.scroll-cue span {
  width: 1px;
  height: 34px;
  background: var(--lime);
  animation: cue 1.6s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: scaleY(0.45); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

.signal-strip {
  height: 64px;
  overflow: hidden;
  background: var(--lime);
  color: var(--ink);
}

.signal-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  height: 100%;
  animation: marquee 20s linear infinite;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.signal-track i {
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.section-band {
  width: 100%;
  border-bottom: 1px solid var(--line);
}

.section-inner {
  width: min(calc(100% - 32px), 1060px);
  margin: 0 auto;
  padding: 82px 0;
}

.section-header {
  margin-bottom: 44px;
}

.section-header h2,
.venue h2 {
  margin: 12px 0 10px;
  font-size: 40px;
  line-height: 1.12;
  font-weight: 900;
}

.section-header > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.manifesto {
  background: var(--paper);
}

.manifesto-copy {
  margin: 28px 0 46px;
}

.manifesto-copy > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}

.manifesto-copy h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.34;
  font-weight: 900;
}

.manifesto-note {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 20px;
  align-items: center;
  max-width: 650px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}

.note-mark {
  color: var(--coral);
  font-size: 54px;
  line-height: 1;
  font-weight: 900;
}

.manifesto-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.topics {
  background: var(--white);
}

.topic-list {
  border-top: 2px solid var(--ink);
}

.topic {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.topic-no {
  color: var(--coral);
  font-weight: 900;
}

.topic-tag {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.topic h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.4;
}

.topic p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.topic > strong {
  display: none;
  color: rgba(12, 12, 12, 0.12);
  font-size: 12px;
  align-self: center;
}

.agenda {
  background: var(--ink);
  color: var(--white);
}

.section-header.light > p:last-child {
  color: rgba(255, 255, 255, 0.6);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.timeline li {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.timeline time {
  color: var(--lime);
  font-size: 15px;
  font-weight: 900;
}

.timeline div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.timeline strong {
  font-size: 17px;
}

.timeline span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.audience {
  background: var(--cyan);
}

.audience .section-index {
  color: var(--ink);
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 2px solid var(--ink);
}

.audience-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px 12px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(12, 12, 12, 0.28);
}

.audience-item b {
  grid-row: 1 / span 2;
  color: rgba(12, 12, 12, 0.45);
  font-size: 12px;
}

.audience-item strong {
  font-size: 21px;
}

.audience-item span {
  font-size: 13px;
}

.venue {
  background: var(--paper);
}

.venue-layout {
  display: grid;
  gap: 52px;
}

.venue h2 {
  margin: 16px 0 36px;
  font-size: 48px;
}

.venue-badge {
  display: inline-block;
  margin: -18px 0 24px;
  padding: 8px 10px;
  border-left: 3px solid var(--coral);
  background: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.venue-detail {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 6px 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.venue-detail > span {
  grid-row: 1 / span 2;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
}

.venue-detail strong {
  font-size: 16px;
  line-height: 1.6;
}

.venue-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.text-action {
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.qr-panel {
  align-self: end;
  text-align: center;
}

.qr-frame {
  width: min(100%, 292px);
  aspect-ratio: 1;
  margin: 0 auto 18px;
  padding: 14px;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 12px 12px 0 var(--coral);
}

.qr-frame img,
.dialog-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-panel p {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 900;
}

.qr-panel > span {
  color: var(--muted);
  font-size: 12px;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 20px calc(96px + var(--safe-bottom));
  background: var(--coral);
  text-align: center;
}

.footer p {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 900;
}

.footer strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.footer span {
  font-size: 13px;
}

.sticky-rsvp {
  position: fixed;
  z-index: 60;
  left: 12px;
  right: 12px;
  bottom: var(--safe-bottom);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 620px;
  min-height: 64px;
  margin: 0 auto;
  padding: 9px 9px 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(12, 12, 12, 0.94);
  color: var(--white);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(120px);
  transition: transform 260ms ease;
  backdrop-filter: blur(12px);
}

.sticky-rsvp.is-visible {
  transform: translateY(0);
}

.sticky-rsvp div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sticky-rsvp span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
}

.sticky-rsvp strong {
  font-size: 16px;
}

.sticky-rsvp button {
  min-width: 108px;
  height: 46px;
  border: 0;
  border-radius: 4px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.dialog-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(7px);
}

.dialog-backdrop[hidden] {
  display: none;
}

.dialog-panel {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100svh - 36px);
  overflow: auto;
  padding: 34px 24px calc(24px + var(--safe-bottom));
  border-radius: 8px 8px 0 0;
  background: var(--paper);
  text-align: center;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.dialog-panel h2 {
  margin: 8px 0 22px;
  font-size: 28px;
}

.dialog-qr {
  width: 230px;
  height: 230px;
  margin: 0 auto;
  padding: 10px;
  border: 2px solid var(--ink);
  background: var(--white);
}

.dialog-copy {
  margin: 20px auto;
  max-width: 320px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.dialog-copy-action {
  width: 100%;
}

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 104px;
  max-width: calc(100% - 40px);
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.dialog-open {
  overflow: hidden;
}

@media (min-width: 720px) {
  .hero-nav {
    width: min(calc(100% - 80px), 1180px);
    padding: 0;
  }

  .nav-action {
    right: 0;
  }

  .hero-content {
    width: min(calc(100% - 80px), 1180px);
  }

  .hero-content {
    padding-top: 70px;
  }

  .hero h1 {
    font-size: 82px;
  }

  .hero-meta {
    grid-template-columns: 1fr 1fr;
  }

  .hero-meta > div {
    grid-template-columns: 58px 1fr;
  }

  .section-inner {
    width: min(calc(100% - 80px), 1060px);
    padding: 120px 0;
  }

  .manifesto-copy h2 {
    font-size: 50px;
  }

  .topic {
    grid-template-columns: 54px minmax(0, 1fr) 90px;
    gap: 24px;
    align-items: start;
    padding: 36px 0;
  }

  .topic > strong {
    display: block;
  }

  .agenda-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
  }

  .audience-grid {
    grid-template-columns: 1fr 1fr;
  }

  .audience-item:nth-child(odd) {
    padding-right: 34px;
    border-right: 1px solid rgba(12, 12, 12, 0.28);
  }

  .audience-item:nth-child(even) {
    padding-left: 34px;
  }

  .venue-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
  }

  .dialog-backdrop {
    place-items: center;
  }

  .dialog-panel {
    border-radius: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .signal-track,
  .scroll-cue span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
