:root {
  --bg: #0a0b14;
  --bg-elevated: #12131f;
  --bg-card: #161728;
  --bg-panel: #1c1d32;
  --border: #2e2f4a;
  --border-soft: rgba(155, 92, 255, 0.18);
  --text: #f2eefc;
  --text-muted: #9a95b5;
  --text-soft: #cdc6e6;
  --accent: #9B5CFF;
  --accent-soft: rgba(155, 92, 255, 0.16);
  --accent-2: #c4a1ff;
  --accent-2-soft: rgba(196, 161, 255, 0.12);
  --warm: #f0c674;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
  --font: "Noto Sans TC", "PingFang HK", "Hiragino Sans GB", "Microsoft JhengHei", system-ui, sans-serif;
  --max: 520px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(900px 480px at 10% -10%, rgba(155, 92, 255, 0.28), transparent 55%),
    radial-gradient(700px 420px at 100% 5%, rgba(107, 63, 204, 0.18), transparent 50%),
    radial-gradient(600px 360px at 50% 110%, rgba(155, 92, 255, 0.08), transparent 45%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  padding: 1.1rem 0 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(155, 92, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(155, 92, 255, 0.15);
}
.brand-text strong {
  display: block;
  font-size: 0.98rem;
}
.brand-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.nav {
  display: flex;
  gap: 0.75rem;
  font-size: 0.86rem;
}
.nav a { color: var(--text-muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

.funnel-hero, .hero {
  padding: 1.5rem 0 0.85rem;
  text-align: center;
}
.hero-avatar {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  margin: 0 auto 0.9rem;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 12px 36px rgba(155, 92, 255, 0.35);
}
.hero h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.55rem, 5vw, 1.95rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.handle {
  margin: 0 0 0.55rem;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.95rem;
}
.tagline {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.95rem;
}
.pill {
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #dcc7ff;
  font-size: 0.74rem;
  border: 1px solid rgba(155, 92, 255, 0.3);
}

.cta-stack {
  display: grid;
  gap: 0.7rem;
  margin: 0.4rem 0 1.15rem;
}
.cta-primary {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 1.15rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #9B5CFF 0%, #7a3fe0 55%, #5b2bb8 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(155, 92, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-primary:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(155, 92, 255, 0.5);
}
.cta-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.cta-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: left;
}
.cta-copy strong {
  font-size: 1.12rem;
  letter-spacing: 0.01em;
}
.cta-meta, .cta-stars {
  font-size: 0.82rem;
  opacity: 0.92;
}
.cta-secondary {
  display: block;
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(155, 92, 255, 0.45);
  background: rgba(155, 92, 255, 0.08);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.cta-secondary:hover {
  text-decoration: none;
  background: rgba(155, 92, 255, 0.16);
}

.card {
  background: linear-gradient(180deg, rgba(155, 92, 255, 0.05), transparent 40%), var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.15rem 1.25rem;
  margin-bottom: 1rem;
}
.card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.hint {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.repo-list, .archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.repo-list li + li, .archive-list li + li {
  margin-top: 0.45rem;
}
.repo-list a {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  color: inherit;
  text-decoration: none;
}
.repo-list a:hover {
  border-color: rgba(155, 92, 255, 0.45);
  background: #221f3a;
}
.repo-rank {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.repo-body { min-width: 0; }
.repo-name {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.repo-desc {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.repo-stars {
  color: var(--warm);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.archive-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  align-items: center;
}
.archive-list li > a:first-child {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  color: inherit;
  text-decoration: none;
}
.archive-list li > a:first-child:hover {
  border-color: rgba(155, 92, 255, 0.45);
}
.arch-ep { font-weight: 800; color: var(--accent-2); }
.arch-week { color: var(--text-soft); font-size: 0.88rem; }
.arch-stars { color: var(--warm); font-size: 0.82rem; font-weight: 600; }
.arch-yt {
  font-size: 0.78rem;
  color: var(--accent-2);
  padding: 0.45rem 0.55rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.4rem 0 1.5rem;
}
.chip {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-soft);
  font-size: 0.82rem;
  text-decoration: none;
}
.chip:hover {
  border-color: var(--accent);
  color: #fff;
  text-decoration: none;
}

.ep-meta {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.ep-badge {
  background: var(--accent-soft);
  color: var(--accent-2);
  border: 1px solid rgba(155, 92, 255, 0.35);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-weight: 700;
  font-size: 0.78rem;
}
.dot::before {
  content: "·";
  margin-right: 0.55rem;
  opacity: 0.5;
}
.back {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
}
.desc-pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin: 0.45rem 0;
}
.disclaimer {
  margin: 0.6rem auto 0;
  max-width: 26rem;
  font-size: 0.72rem;
  opacity: 0.85;
}

@media (max-width: 380px) {
  .cta-copy strong { font-size: 1rem; }
  .repo-list a { grid-template-columns: 1.4rem 1fr; }
  .repo-stars { grid-column: 2; justify-self: start; }
}

/* Growth funnel extras */
.shorts-tip {
  position: sticky;
  top: 0;
  z-index: 50;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(90deg, rgba(155, 92, 255, 0.95), rgba(91, 43, 184, 0.95));
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: -0.35rem 0 1.1rem;
}
.share-btn {
  appearance: none;
  border: 1px solid rgba(155, 92, 255, 0.4);
  background: rgba(155, 92, 255, 0.1);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}
a.share-btn { display: inline-flex; align-items: center; }
.share-btn:hover {
  background: rgba(155, 92, 255, 0.22);
  text-decoration: none;
}
.share-btn.is-copied {
  border-color: rgba(126, 224, 195, 0.5);
  color: #b8f5df;
}
.share-hint {
  color: var(--text-muted);
  font-size: 0.75rem;
}
.footer-tip {
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(155, 92, 255, 0.1);
  border: 1px dashed rgba(155, 92, 255, 0.35);
  color: var(--text-soft);
  font-size: 0.78rem;
  text-align: left;
  line-height: 1.55;
}
