:root {
  --bg: #07070f;
  --bg-card: #10101e;
  --bg-alt: #0c0c1a;
  --purple: #b86ef5;
  --pink: #f06bf0;
  --cyan: #6ee8f5;
  --text: #eeeeff;
  --muted: #8888aa;
  --border: #22223a;
  --gradient: linear-gradient(135deg, var(--purple), var(--pink));
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── HERO ── */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  z-index: 0;
  transform: scale(1.03);
}

@media (max-width: 768px) {
  /* 上下分離：標題頂部、日期底部，人像在中間完整露出 */
  .hero {
    justify-content: space-between;
  }

  .hero-bg {
    object-position: center 0%;
    transform: scale(1);
  }

  /* 頂部幾乎全透明，讓標題浮在星空上 */
  .hero-overlay {
    background:
      linear-gradient(to bottom,
        rgba(3,0,10,.55)  0%,
        rgba(3,0,10,.15) 12%,
        rgba(3,0,10,.02) 30%,
        rgba(3,0,10,.02) 60%,
        rgba(3,0,10,.60) 75%,
        rgba(3,0,10,.97) 100%
      );
  }

  .hero-overlay::after {
    background: radial-gradient(ellipse at 50% 95%, rgba(40,10,110,.6) 0%, rgba(20,5,70,.25) 40%, transparent 65%);
  }

  /* 標題區：頂部留一點空間放在星空裡 */
  .hero-wordmark {
    padding: 48px 20px 0;
  }

  .hero h1 {
    font-size: clamp(44px, 15vw, 64px);
    letter-spacing: 8px;
    filter: drop-shadow(0 0 18px rgba(184,110,245,.45));
  }

  .hero h2 {
    font-size: clamp(7px, 2vw, 10px);
    letter-spacing: 5px;
  }

  /* 日期區：貼底 */
  .hero-content {
    padding: 0 16px 32px;
  }

  .location {
    font-size: 10px;
    letter-spacing: 4px;
    margin-bottom: 14px;
  }

  .dates { gap: 8px; margin-bottom: 10px; }

  .date-badge {
    font-size: 13px;
    padding: 6px 18px;
  }

  .venue { font-size: 10px; margin-bottom: 20px; }

  .hero-cta {
    font-size: 11px;
    padding: 8px 22px;
    letter-spacing: 2px;
  }
}

/* 4-layer overlay: top fade + vignette sides + bottom ramp + blue glow */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(3,0,10,.88)  0%,
      rgba(3,0,10,.42) 22%,
      rgba(3,0,10,.08) 45%,
      rgba(3,0,10,.08) 58%,
      rgba(3,0,10,.72) 78%,
      rgba(3,0,10,.97) 100%
    );
}

/* side vignette */
.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 50%,   rgba(0,0,0,.55) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 50%, rgba(0,0,0,.55) 0%, transparent 55%);
}

/* blue-purple floor glow, matching the photo's floor light */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 92%, rgba(50,15,130,.55) 0%, rgba(30,5,80,.2) 35%, transparent 65%);
}

/* scanline grain — editorial / K-pop photobook feel */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,.06) 3px,
    rgba(0,0,0,.06) 4px
  );
  pointer-events: none;
}

.tour-badge {
  display: inline-block;
  border: 1px solid rgba(184,110,245,.55);
  color: rgba(210,170,255,.85);
  font-size: 9px;
  letter-spacing: 6px;
  padding: 4px 18px;
  border-radius: 20px;
  margin-bottom: 16px;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,.25);
}

.hero h1 {
  font-size: clamp(68px, 16vw, 140px);
  font-weight: 900;
  letter-spacing: 14px;
  /* white core with slight purple shimmer */
  background: linear-gradient(160deg,
    #e8d5ff 0%,
    #ffffff 40%,
    #f0dcff 70%,
    #c8a0f8 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: .95;
  margin-bottom: 0;
  /* soft glow */
  filter: drop-shadow(0 0 28px rgba(184,110,245,.35));
}

.hero h2 {
  font-size: clamp(8px, 1.6vw, 12px);
  font-weight: 300;
  letter-spacing: 7px;
  color: rgba(200,175,235,.65);
  margin-top: 10px;
}

.hero-wordmark {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 100%;
  padding: 0 20px 48px;
}

.location {
  font-size: clamp(10px, 1.8vw, 14px);
  letter-spacing: 6px;
  color: rgba(190,165,225,.5);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.dates {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.date-badge {
  background: rgba(184,110,245,.12);
  border: 1px solid rgba(184,110,245,.45);
  color: rgba(220,185,255,.95);
  padding: 8px 26px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(184,110,245,.15);
}

.venue {
  color: rgba(175,155,205,.45);
  font-size: 11px;
  letter-spacing: 5px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(210,170,255,.75);
  border: 1px solid rgba(184,110,245,.35);
  padding: 10px 30px;
  border-radius: 30px;
  font-size: 12px;
  letter-spacing: 3px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  background: rgba(0,0,0,.2);
  transition: all .3s;
  text-transform: uppercase;
}

.hero-cta:hover {
  background: rgba(184,110,245,.18);
  color: #fff;
  border-color: rgba(184,110,245,.7);
  box-shadow: 0 0 24px rgba(184,110,245,.2);
  gap: 12px;
}

/* ── NAV ── */
.nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: rgba(16,16,30,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all .2s;
}

.nav a:hover {
  color: var(--purple);
  border-color: var(--purple);
  background: rgba(184,110,245,.08);
}

/* ── SECTIONS ── */
.section { padding: 56px 20px; }
.section-alt { background: var(--bg-alt); }
.container { max-width: 960px; margin: 0 auto; }

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-desc { color: var(--muted); margin-bottom: 24px; font-size: 14px; }

/* ── UPDATE BAR ── */
.update-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px 18px;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.last-update { color: var(--muted); font-size: 13px; }

.update-btn {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 8px 22px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity .2s, transform .1s;
  letter-spacing: .5px;
}

.update-btn:hover { opacity: .88; }
.update-btn:active { transform: scale(.97); }
.update-btn:disabled { opacity: .5; cursor: not-allowed; }

.update-icon { display: inline-block; font-size: 16px; }
.update-btn.loading .update-icon { animation: spin 1s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── POSTS GRID ── */
.posts-grid { display: flex; flex-direction: column; gap: 0; }

.posts-category-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.posts-category-label.mt { margin-top: 28px; }
.posts-category-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.posts-grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: border-color .2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-card:hover { border-color: var(--purple); }

.post-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 10px;
  background: rgba(184,110,245,.12);
  color: var(--purple);
  width: fit-content;
}

.post-tag.community {
  background: rgba(110,232,245,.1);
  color: var(--cyan);
}

.post-header { display: flex; align-items: center; gap: 10px; }

.post-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  flex-shrink: 0;
  color: white;
}

.post-username { font-weight: 600; font-size: 14px; }
.post-date { font-size: 11px; color: var(--muted); }

.post-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  word-break: break-word;
  flex: 1;
}

.post-link {
  font-size: 12px;
  color: var(--purple);
  text-decoration: none;
  margin-top: auto;
}

.post-link:hover { text-decoration: underline; }

.loading, .no-posts {
  text-align: center;
  color: var(--muted);
  padding: 48px 20px;
  grid-column: 1 / -1;
  font-size: 14px;
}

/* ── TRANSPORT ── */
.transport-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.route-display {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  flex-wrap: wrap;
}

.route-node {
  background: rgba(184,110,245,.1);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
}

.route-arrow { color: var(--purple); font-size: 20px; }

.maps-btn {
  background: var(--gradient);
  color: #fff;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  transition: opacity .2s;
  white-space: nowrap;
}

.maps-btn:hover { opacity: .88; }

.transport-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 13px;
  color: var(--muted);
}

#map {
  height: 380px;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

/* ── SUPPORT CARD ── */
.support-placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.placeholder-icon {
  font-size: 36px;
  margin-bottom: 12px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.support-tag {
  background: rgba(240,107,240,.12);
  color: var(--pink);
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 12px;
}

.support-date { color: var(--muted); font-size: 13px; }

.support-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.support-body p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

/* ── UNION SECTION ── */
.union-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.union-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--purple);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}

.union-title {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  line-height: 1.3;
  background: linear-gradient(120deg, var(--text) 0%, rgba(200,170,255,.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.union-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.union-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

/* ── OWNER SUPPORT SECTION ── */
.owner-section {
  position: relative;
}

/* 細左邊框強調 */
.owner-section::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gradient);
}

.owner-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.owner-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.owner-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 20px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 2px;
}

.owner-placeholder-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
}

/* 填好資料後用這個 */
.owner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  max-width: 600px;
}

.owner-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
}

.owner-card-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--pink);
  border: 1px solid rgba(240,107,240,.3);
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.owner-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.owner-card-body p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 7px;
}

/* ── NOTES ── */
.notes-list { display: flex; flex-direction: column; gap: 14px; }

.note-item {
  display: flex;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.note-icon { font-size: 22px; flex-shrink: 0; }

.note-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.note-item p { font-size: 13px; color: var(--muted); }

/* ── FORM ── */
.submit-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.required { color: var(--pink); }

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 13px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
}

.form-group textarea { resize: vertical; }

/* radio group */
.radio-group { display: flex; flex-direction: column; gap: 10px; }

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color .2s;
  font-size: 14px;
}

.radio-option:has(input:checked) {
  border-color: var(--purple);
  background: rgba(184,110,245,.06);
}

.radio-option input[type="radio"] {
  width: auto;
  accent-color: var(--purple);
  flex-shrink: 0;
}

.submit-btn {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: opacity .2s;
  letter-spacing: .5px;
}

.submit-btn:hover { opacity: .88; }

.form-success {
  display: none;
  margin-top: 14px;
  text-align: center;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
}

/* ── FOOTER ── */
.footer {
  text-align: center;
  padding: 28px 20px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
  letter-spacing: .5px;
}

/* ── RESPONSIVE ── */
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .transport-header { flex-direction: column; align-items: flex-start; }
  .route-display { font-size: 14px; }
  .update-bar { flex-direction: column; align-items: flex-start; }
}
