:root {
  --bg: #0b0a12;
  --bg-soft: #131124;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4f2ff;
  --muted: #a29cbd;
  --accent: #8b5cf6;
  --accent-2: #ec4899;
  --accent-3: #22d3ee;
  --radius: 20px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans TC", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---------- decorative background ---------- */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.blob-a {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: -160px;
  right: -120px;
  animation: drift 16s ease-in-out infinite alternate;
}
.blob-b {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  bottom: 10%;
  left: -140px;
  animation: drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(60px, 40px) scale(1.15);
  }
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

section {
  position: relative;
  z-index: 1;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(11, 10, 18, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.5px;
}
.brand span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(236, 72, 153, 0.4);
}
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}
.btn-sm {
  padding: 9px 18px;
  font-size: 0.9rem;
}

/* ---------- hero ---------- */
.hero {
  padding: 110px 24px 70px;
  text-align: center;
}
.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  animation: fadeUp 0.9s ease both;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 1px;
}
.gradient-text {
  background: linear-gradient(90deg, var(--accent-3), var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--muted);
  max-width: 560px;
  margin: 24px auto 34px;
  font-size: 1.05rem;
}
.hero-sub strong {
  color: var(--text);
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
}
.stat-num {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--text), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- section head ---------- */
.section-head {
  text-align: center;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: 2.1rem;
  font-weight: 700;
}
.section-head p {
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- about ---------- */
.about {
  padding: 80px 24px;
}
.about-inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  backdrop-filter: blur(10px);
}
.avatar-wrap {
  position: relative;
  width: 180px;
  height: 180px;
}
.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  animation: spin 8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.avatar {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  background-image: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.about-text p {
  color: var(--muted);
}
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.tags li {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
}

/* ---------- stats ---------- */
.stats-section {
  padding: 80px 24px;
}
.stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}
.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.5);
}
.stat-icon {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.stat-card-num {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
}
.stat-card-label {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- content cards ---------- */
.content {
  padding: 80px 24px;
}
.content-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
}
.card-media {
  min-height: 160px;
  display: grid;
  place-items: center;
  font-size: 3.2rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.2));
}
.card-body {
  padding: 22px;
}
.card-cat {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--accent-3);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- gallery ---------- */
.gallery {
  padding: 80px 24px;
}
.gallery-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tile {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  background-size: 200%;
  background-position: center;
  transition: transform 0.3s;
}
.tile:hover {
  transform: scale(1.03);
}
.t1 {
  background-image: linear-gradient(160deg, #f59e0b, #ef4444);
}
.t2 {
  background-image: linear-gradient(160deg, #0ea5e9, #6366f1);
}
.t3 {
  background-image: linear-gradient(160deg, #ec4899, #8b5cf6);
}
.t4 {
  background-image: linear-gradient(160deg, #10b981, #0ea5e9);
}
.t5 {
  background-image: linear-gradient(160deg, #6366f1, #8b5cf6);
}
.t6 {
  background-image: linear-gradient(160deg, #f59e0b, #ec4899);
}

/* ---------- join ---------- */
.join {
  padding: 80px 24px 100px;
}
.join-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 56px 40px;
  backdrop-filter: blur(10px);
}
.join-card h2 {
  font-size: 1.9rem;
  margin-bottom: 10px;
}
.join-card > p {
  color: var(--muted);
  margin-bottom: 28px;
}
.join-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.join-form input {
  flex: 1;
  min-width: 180px;
  padding: 13px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.join-form input:focus {
  outline: none;
  border-color: var(--accent);
}
.form-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--accent-3);
  min-height: 1.4em;
}
.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}
.socials a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.socials a:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: translateY(-3px);
}

/* ---------- footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
  }
  .avatar-wrap {
    margin: 0 auto;
  }
  .tags {
    justify-content: center;
  }
  .card.featured {
    grid-template-columns: 1fr;
    grid-column: span 1;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    padding-top: 70px;
  }
}
