:root {
  --bg: #0b1020;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef2ff;
  --muted: #b8c0e0;
  --accent: #7c9cff;
  --accent-2: #4de2c5;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans TC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 5% -10%, rgba(124, 156, 255, 0.22), transparent 60%),
    radial-gradient(900px 500px at 95% 0%, rgba(77, 226, 197, 0.14), transparent 60%),
    var(--bg);
  line-height: 1.6;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 36px 0 22px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.hero__content,
.hero__stats {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero__content {
  padding: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #d5dcff;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(124, 156, 255, 0.14);
}

h1 {
  margin: 14px 0 6px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

.subtitle {
  margin: 0;
  color: var(--accent-2);
  font-weight: 700;
}

.desc {
  margin: 14px 0 18px;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid rgba(124, 156, 255, 0.35);
  background: rgba(124, 156, 255, 0.16);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(124, 156, 255, 0.23);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
}

.hero__stats {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.stat-card__label {
  color: var(--muted);
  font-size: 13px;
}

.stat-card__value {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 800;
}

.stat-card__value--small {
  font-size: 18px;
  line-height: 1.3;
}

.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.outline {
  padding: 18px;
  margin-bottom: 18px;
}

.outline h2,
.notes h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.outline ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.outline li + li {
  margin-top: 6px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 2px 6px;
  border-radius: 8px;
  color: #e9edff;
}

.timeline {
  display: grid;
  gap: 14px;
}

.step {
  overflow: hidden;
}

.step__toggle {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: transparent;
  color: inherit;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.step__toggle:hover {
  background: rgba(255, 255, 255, 0.02);
}

.step__number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 800;
  background: linear-gradient(180deg, rgba(124,156,255,.26), rgba(124,156,255,.12));
  border: 1px solid rgba(124, 156, 255, 0.35);
  color: #dce5ff;
}

.step__title {
  font-size: 17px;
  font-weight: 700;
}

.step__icon {
  font-size: 18px;
  color: var(--muted);
  transition: transform .2s ease;
}

.step.is-collapsed .step__icon {
  transform: rotate(-90deg);
}

.step__panel {
  border-top: 1px solid var(--line);
  padding: 0 16px 16px;
}

.step.is-collapsed .step__panel {
  display: none;
}

.step__panel p {
  margin: 12px 0 12px;
  color: var(--muted);
}

.shot {
  margin: 0;
  display: grid;
  gap: 8px;
}

.shot img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  cursor: zoom-in;
}

.shot figcaption {
  color: var(--muted);
  font-size: 13px;
}

.notes {
  margin: 18px 0 40px;
  padding: 18px;
}

.notes p {
  margin: 0;
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(4px);
  z-index: 999;
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(1200px, 95vw);
  max-height: 80vh;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow);
  background: #0d1222;
}

.lightbox p {
  margin: 10px 0 0;
  color: #dbe3ff;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  color: white;
  font-size: 20px;
  cursor: pointer;
}

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

  .step__title {
    font-size: 15px;
  }
}
