/* BUPT-C-8K — 无畏契约风格 */
:root {
  --bg: #0d0d0f;
  --bg-card: #141518;
  --bg-elevated: #1a1b1f;
  --text: #ece8e1;
  --text-muted: #8b8685;
  --accent: #ff4655;
  --accent-dim: rgba(255, 70, 85, 0.18);
  --accent-gold: #c8aa6e;
  --border: #2a2926;
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.logo-accent {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  padding: 80px 20px 70px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, transparent 0%, var(--accent-dim) 35%, transparent 70%),
    radial-gradient(ellipse 90% 50% at 50% 0%, var(--accent-dim) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  font-weight: 500;
  margin: 0 0 12px;
}

.hero-tagline {
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 0;
  font-weight: 600;
}

.hero-video-wrap {
  margin-top: 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
}

.hero-video {
  display: block;
  width: 100%;
  max-height: 360px;
}

.hero-video-fallback {
  padding: 24px 16px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.hero-video-fallback code {
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* Sections */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.section-intro {
  border-top: none;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.section-lead {
  color: var(--text-muted);
  margin: 0 0 20px;
  font-size: 0.98rem;
}

.section-desc {
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.section-title + .section-lead {
  margin-top: 8px;
}

/* Lists */
.pain-list,
.feature-list,
.spec-list {
  margin: 0 0 32px;
  padding-left: 1.35em;
  color: var(--text);
}

.pain-list li,
.feature-list li,
.spec-list li {
  margin-bottom: 12px;
}

.numbered-list {
  margin: 0 0 32px;
  padding-left: 1.5em;
  color: var(--text);
}

.numbered-list li {
  margin-bottom: 12px;
}

/* 展望 */
.outlook-card {
  margin: 24px 0 32px;
  display: grid;
  gap: 16px;
}

.outlook-now,
.outlook-next {
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
}

.outlook-label {
  display: block;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}

.outlook-game {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.outlook-games {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* Promise block */
.promise-block {
  margin: 40px 0 0;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
}

.promise-block h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--accent);
}

.promise-block p {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.95rem;
}

.promise-block p:last-child {
  margin-bottom: 0;
}

.promise-block .slogan {
  margin-top: 12px;
  font-style: italic;
  color: var(--text-muted);
}

/* Timeline 进展 */
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-content h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
}

.timeline-content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* 图片左右滚动 */
.img-scroll-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  margin: 0 -20px;
  padding: 0 20px 8px;
}

.img-scroll {
  display: flex;
  gap: 16px;
  padding: 8px 0 24px;
  width: max-content;
}

.img-scroll-item {
  scroll-snap-align: start;
  height: 200px;
  min-width: 200px;
  max-width: 320px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-scroll-item img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.img-scroll-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--bg-card);
}

/* 捐赠者：编号 金额 头像 留言 表情包 */
.donor-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.donor-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.donor-table th,
.donor-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.donor-table th {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.donor-table tbody tr:last-child td {
  border-bottom: none;
}

.donor-table .donor-num {
  width: 56px;
  font-weight: 600;
  color: var(--text-muted);
}

.donor-table .donor-amount {
  width: 88px;
  font-weight: 600;
  color: var(--accent);
}

.donor-table .donor-avatar {
  width: 56px;
  padding: 8px;
  position: relative;
}

.donor-table .donor-avatar img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: block;
}

.donor-avatar-fallback {
  display: none;
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.7rem;
  color: var(--text-muted);
  align-items: center;
  justify-content: center;
}

.donor-table .donor-msg {
  color: var(--text);
  font-size: 0.95rem;
}

.donor-table .donor-emoji {
  width: 80px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 预约者：编号 头像 名称，一排3个 */
.waitlist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.waitlist-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.waitlist-ord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.waitlist-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  position: relative;
  flex-shrink: 0;
}

.waitlist-avatar img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.waitlist-avatar img:not([src]) {
  display: none !important;
}

.waitlist-avatar img[src] {
  display: block;
}

.waitlist-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  z-index: 1;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.waitlist-avatar img[src] ~ .waitlist-avatar-placeholder {
  display: none;
}

.waitlist-name {
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
  text-align: center;
  word-break: break-all;
}

/* Footer */
.site-footer {
  padding: 32px 20px;
  border-top: 2px solid var(--border);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 600px) {
  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 0.85rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .timeline-date {
    font-size: 0.8rem;
  }

  .waitlist-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 380px) {
  .waitlist-grid {
    grid-template-columns: 1fr;
  }
}
