/* ==========================================================================
   界月委託招標所 Kaigetsu Tender Hall - Stylesheet
   Theme: Deep Abyss Neon (深淵霓虹暗色系)
   
   [Table of Contents]
   1. Variables & Resets       (變數與基礎重置)
   2. Backgrounds & Effects    (背景與全域特效)
   3. Typography & Layout      (排版與容器佈局)
   4. Navigation & Drawer      (頂部導覽與側邊欄)
   5. UI Components            (共用元件：按鈕、卡片、表單、標籤)
   6. Page: Creators           (創作者頁面專屬)
   7. Page: Public Bids        (招標大廳專屬)
   8. Page: Track Commissions  (進度查詢專屬)
   9. Page: Admin              (後台管理專屬)
   10. Modals & Overlays       (彈出視窗)
   11. Footer                  (頁尾)
   12. Animations & Extras     (動畫、跑馬燈、統計板)
   13. Page: About             (關於我們專屬品牌故事特效)
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Variables & Resets (變數與基礎重置)
   -------------------------------------------------------------------------- */
:root {
  /* 背景與文字 */
  --bg0: #0b0710;
  --bg1: #120817;
  --txt: rgba(255, 255, 255, 0.88);
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.12);

  /* 霓虹暖色系 (主視覺) */
  --warm1: #ff7a18; /* 亮橘 */
  --warm2: #ff3d7f; /* 桃紅 */
  --warm3: #a855f7; /* 霓虹紫 */
  --warm4: #ffd166; /* 暖金 */

  /* UI 參數 */
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --shadow-hover: 0 20px 60px rgba(255, 122, 24, 0.15);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: 
    radial-gradient(1200px 900px at 20% 10%, rgba(255, 122, 24, 0.18), transparent 60%),
    radial-gradient(900px 800px at 85% 15%, rgba(255, 61, 127, 0.16), transparent 55%),
    radial-gradient(1200px 900px at 60% 90%, rgba(168, 85, 247, 0.15), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--txt);
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(10px);
}

body.is-ready {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}


/* --------------------------------------------------------------------------
   2. Backgrounds & Effects (背景與全域特效)
   -------------------------------------------------------------------------- */
.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.blob {
  position: absolute;
  width: 520px;
  height: 520px;
  filter: blur(80px);
  opacity: 0.5;
  border-radius: 50%;
  animation: drift 14s ease-in-out infinite;
}

.b1 {
  left: -140px;
  top: -120px;
  background: radial-gradient(circle at 30% 30%, var(--warm1), transparent 70%);
}

.b2 {
  right: -180px;
  top: -80px;
  background: radial-gradient(circle at 40% 40%, var(--warm2), transparent 75%);
  animation-delay: -5s;
}

.b3 {
  left: 35%;
  bottom: -220px;
  background: radial-gradient(circle at 30% 30%, var(--warm3), transparent 75%);
  animation-delay: -9s;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.15;
}


/* --------------------------------------------------------------------------
   3. Typography & Layout (排版與容器佈局)
   -------------------------------------------------------------------------- */
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 44px 0;
}

.sectionHead {
  margin-bottom: 16px;
}

.sectionHead h1, 
.sectionHead h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 40px);
  color: #fff;
}

.sectionHead p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .grid--2 {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------------------------------------
   4. Navigation & Drawer (頂部導覽與側邊欄)
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(11, 7, 16, 0.65);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--warm1), var(--warm2));
  box-shadow: 0 4px 12px rgba(255, 122, 24, 0.4);
}

.brand__text {
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.nav a.is-active {
  border: 1px solid rgba(255, 122, 24, 0.3);
  background: rgba(255, 122, 24, 0.1);
  color: var(--warm4);
}

/* 手機版漢堡按鈕 */
.navBtn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.navBtn span {
  display: block;
  height: 2px;
  width: 18px;
  background: #fff;
  margin: 4px auto;
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav { display: none; }
  .navBtn { display: block; }
}

/* 側邊導覽欄 */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 49;
}

.backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 88vw);
  background: rgba(18, 8, 23, 0.95);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(102%);
  transition: transform 0.25s ease;
  z-index: 50;
  padding: 74px 14px 14px;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer a {
  display: block;
  padding: 12px;
  border-radius: 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.drawer a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.drawer a.is-active {
  background: rgba(255, 122, 24, 0.1);
  color: var(--warm4);
}


/* --------------------------------------------------------------------------
   5. UI Components (共用元件)
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cardTitle {
  margin: 0 0 8px;
  color: #fff;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 122, 24, 0.3);
  box-shadow: var(--shadow-hover);
}

/* 按鈕 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--warm1), var(--warm2));
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 61, 127, 0.3);
}

.btn.primary:hover {
  box-shadow: 0 6px 16px rgba(255, 61, 127, 0.5);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* 標籤與狀態 */
.pill {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 500;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 24, 0.3);
  background: rgba(255, 122, 24, 0.1);
  color: var(--warm4);
  font-weight: 500;
}

.badge--hot {
  border-color: rgba(255, 61, 127, 0.4);
  background: rgba(255, 61, 127, 0.15);
  color: #ff85a1;
}

/* 表單元件 */
.input, .select, textarea.input {
  width: min(520px, 100%);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.input:focus, .select:focus, textarea.input:focus {
  border-color: var(--warm1);
  background: rgba(0, 0, 0, 0.4);
}

.select { width: auto; }
.input::placeholder { color: rgba(255, 255, 255, 0.3); }
textarea.input { resize: vertical; }


/* --------------------------------------------------------------------------
   6. Page: Creators (創作者頁面)
   -------------------------------------------------------------------------- */
.creatorToolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.creatorSearch {
  flex: 1 1 360px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.creatorSearchIcon {
  position: absolute;
  left: 14px;
  color: var(--muted);
}

.creatorSearch .input {
  padding-left: 42px;
}

.creatorSelect {
  flex: 0 1 220px;
  min-width: 200px;
}

.creatorGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 980px) { .creatorGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .creatorGrid { grid-template-columns: 1fr; } }

.creatorCard {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.creatorCard:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 122, 24, 0.4);
  box-shadow: var(--shadow-hover);
}

.creatorBanner {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.15), rgba(168, 85, 247, 0.15));
  border-bottom: 1px solid var(--line);
}

.creatorContent {
  padding: 0 16px 16px;
}

.creatorHead {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-top: -30px;
  position: relative;
  z-index: 2;
  margin-bottom: 12px;
}

.creatorImg {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--bg1);
  border: 4px solid #160e1d;
  flex: 0 0 auto;
  box-sizing: content-box;
}

.creatorMeta {
  min-width: 0;
  margin-bottom: 2px;
}

.creatorName {
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 18px;
}

.creatorChips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 24, 0.1);
  border: 1px solid rgba(255, 122, 24, 0.2);
  color: var(--warm4);
  font-weight: 500;
}

.creatorActionsRow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin-top: 14px;
}

.creatorBtns { display: flex; gap: 10px; flex-wrap: wrap; }
.creatorUpdated { color: var(--muted); white-space: nowrap; }

/* 畫廊輪播 */
.creatorGalleryWrap { position: relative; margin-top: 12px; }
.creatorGallery {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding: 6px 4px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.creatorGallery::-webkit-scrollbar { display: none; }

.shot {
  flex: 0 0 auto;
  width: 66px;
  height: 66px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.3);
  scroll-snap-align: start;
  cursor: pointer;
  transition: all 0.18s ease;
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot:hover {
  transform: translateY(-2px);
  border-color: var(--warm1);
  box-shadow: 0 6px 14px rgba(255, 122, 24, 0.3);
}

/* 排單摺疊面板 */
.creatorQueueWrap {
  margin-top: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

.queueToggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.queueToggle:hover {
  background: rgba(255, 122, 24, 0.1);
  color: var(--warm4);
}

.queueStatusDot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.queueStatusDot.open { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
.queueStatusDot.closed { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
.queueStatusDot.vacation { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.6); }

.queueIcon { transition: transform 0.3s ease; font-size: 10px; color: var(--muted); }
.queueToggle.is-open .queueIcon { transform: rotate(180deg); }
.queueContent { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.queueContent.is-open { grid-template-rows: 1fr; }
.queueInner { overflow: hidden; }
.queueText {
  padding: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 4px;
}


/* --------------------------------------------------------------------------
   7. Page: Public Bids (招標大廳)
   -------------------------------------------------------------------------- */
.bidToolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.bidSearch { flex: 1 1 360px; display: flex; align-items: center; gap: 10px; position: relative; }
.bidSearchIcon { position: absolute; left: 14px; color: var(--muted); }
.bidSearch .input { padding-left: 42px; }
.bidSelect { flex: 0 1 220px; min-width: 200px; }
.bidGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .bidGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .bidGrid { grid-template-columns: 1fr; } }
.bidCard { cursor: pointer; }
.bidCard .cardTitle { font-weight: 800; line-height: 1.3; }


/* --------------------------------------------------------------------------
   8. Page: Track Commissions (進度查詢)
   -------------------------------------------------------------------------- */
.trackToolbar { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 900px) { .trackToolbar { grid-template-columns: 1fr; } }
.trackField .small { margin-bottom: 6px; }
.trackActions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.trackGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .trackGrid { grid-template-columns: 1fr; } }

.trackPay {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.2);
}
.trackPayRow { display: flex; justify-content: space-between; gap: 10px; }
.trackBar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  margin-top: 10px;
}
.trackBarFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--warm1), var(--warm2));
  border-radius: 999px;
}

.trackTimeline {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  display: none;
}
.trackTimeline.is-open { display: block; }
.tlItem { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.tlItem:first-child { border-top: none; padding-top: 0; }
.tlDot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 6px;
  background: var(--warm1);
  box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.2);
  flex: 0 0 auto;
}
.tlBody { min-width: 0; }
.tlRow { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tlBadge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 24, 0.3);
  background: rgba(255, 122, 24, 0.1);
  color: var(--warm4);
  font-size: 12px;
  font-weight: 600;
}
.tlDate { color: var(--muted); }
.tlLabel { font-weight: 700; color: #fff; }


/* --------------------------------------------------------------------------
   9. Page: Admin (後台管理)
   -------------------------------------------------------------------------- */
.adminLayout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
  align-items: start;
}
@media (max-width: 960px) { .adminLayout { grid-template-columns: 1fr; } }
.adminSide { position: sticky; top: 84px; height: fit-content; }
.adminSide .adminNavBtn { width: 100%; justify-content: flex-start; margin-top: 10px; }
.adminSide .adminNavBtn.is-active {
  border-color: rgba(255, 122, 24, 0.3);
  background: rgba(255, 122, 24, 0.1);
  color: var(--warm4);
}
.adminMain { min-width: 0; }


/* --------------------------------------------------------------------------
   10. Modals & Overlays (彈出視窗)
   -------------------------------------------------------------------------- */
.modal-open { overflow: hidden; }

.imgModal, #bidModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imgModal__backdrop, #bidModal .modalBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

/* 前台圖片瀏覽視窗寬度 */
.imgModal__panel, #bidModal .modalCard {
  position: relative;
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  border-radius: 20px;
  padding: 24px;
  background: #160e1d;
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
  transform: translateY(10px);
  animation: modalIn 0.2s ease forwards;
}

/* 🌟 後台編輯表單視窗專屬寬度 */
.adminModal__panel {
  position: relative;
  width: min(680px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  border-radius: 20px;
  padding: 24px;
  background: #160e1d;
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
  transform: translateY(10px);
  animation: modalIn 0.2s ease forwards;
  z-index: 10;
}

@keyframes modalIn { to { transform: translateY(0); opacity: 1; } }

.imgModal__img {
  width: 100%;
  height: min(70vh, 620px);
  object-fit: contain;
  display: block;
  background: rgba(0,0,0,0.5);
  border-radius: 12px;
}

.imgModal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
}

.imgModal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
}
.imgModal__nav:hover { background: rgba(255,122,24,0.2); color: var(--warm4); }
.imgModal__nav.prev { left: 10px; }
.imgModal__nav.next { right: 10px; }


/* --------------------------------------------------------------------------
   11. Footer (頁尾)
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  margin-top: 60px;
  background: rgba(11, 7, 16, 0.4);
  backdrop-filter: blur(10px);
}

.footer__inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__brand { display: flex; flex-direction: column; gap: 4px; }
.footer__brand span { color: #fff; font-weight: 800; letter-spacing: 1px; }
.footer__brand small { color: var(--muted); font-size: 13px; }
.footer__links { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}
.footer__links a:hover {
  color: #fff;
  background: rgba(255, 122, 24, 0.1);
  border-color: rgba(255, 122, 24, 0.4);
  box-shadow: 0 4px 12px rgba(255, 122, 24, 0.15);
  transform: translateY(-2px);
}

.footer__links a.discord-link {
  color: var(--warm4);
  border-color: rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.08);
}
.footer__links a.discord-link:hover {
  background: rgba(255, 209, 102, 0.15);
  box-shadow: 0 4px 15px rgba(255, 209, 102, 0.3);
}


/* --------------------------------------------------------------------------
   12. Animations & Extras (動畫特效、首頁看板與統計)
   -------------------------------------------------------------------------- */
.creatorAnim {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--d, 0ms);
}
.creatorAnim.is-in { opacity: 1; transform: translateY(0); }

.reveal {
  opacity: 0;
  transform: translateY(14px) scale(0.99);
  filter: blur(2px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.55s ease;
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

/* 深淵傳送門換頁動畫 */
#page-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg0);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: circle(150% at 50% 50%);
  opacity: 1;
  transition: clip-path 0.55s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.5s ease;
  pointer-events: none;
}

#page-overlay .moon-mark {
  font-size: 54px;
  color: var(--warm4);
  text-shadow: 0 0 20px rgba(255, 209, 102, 0.8), 0 0 40px rgba(255, 122, 24, 0.6);
  animation: moon-pulse 1.2s infinite alternate;
}

@keyframes moon-pulse {
  from { transform: scale(0.95); opacity: 0.8; }
  to { transform: scale(1.05); opacity: 1; }
}

body.is-ready #page-overlay { clip-path: circle(0% at 50% 50%); opacity: 0; }
body.is-leaving #page-overlay { clip-path: circle(150% at 50% 50%); opacity: 1; pointer-events: all; }

/* 首頁動態公告版 */
.announce-board {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.15);
  overflow: hidden;
}

.announce-badge {
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--warm3), #d946ef);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 1px;
  animation: pulse-glow 2s infinite alternate;
}

.announce-content {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}

.announce-track {
  display: inline-block;
  animation: marquee 20s linear infinite;
  font-size: 14.5px;
  color: var(--txt);
}

.announce-board:hover .announce-track { animation-play-state: paused; }
.announce-item { display: inline-block; margin-right: 50px; }
.announce-date { color: var(--warm4); font-weight: 800; margin-right: 8px; }

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 5px rgba(168, 85, 247, 0.2); }
  100% { box-shadow: 0 0 15px rgba(168, 85, 247, 0.6); }
}

/* 首頁統計數據板 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr; }
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 209, 102, 0.4);
}

.stat-value {
  font-size: 38px;
  font-weight: 900;
  color: var(--warm4);
  margin-bottom: 4px;
  text-shadow: 0 0 15px rgba(255, 209, 102, 0.4);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 1px;
}

/* 首頁許願池表單 */
.feedback-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.feedback-card {
  border-color: rgba(255, 61, 127, 0.2);
  box-shadow: 0 10px 40px rgba(255, 61, 127, 0.08);
}

/* --------------------------------------------------------------------------
   13. Page: About (關於我們專屬品牌故事特效)
   -------------------------------------------------------------------------- */
.kaigetsu-block {
  transition: all 0.3s ease;
}

.kaigetsu-block:hover {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 100%);
}

.highlight-boundary {
  color: #b74b7a; /* 質感紫紅色，呼應魔王髮色設定 */
  transition: text-shadow 0.3s ease;
}

.kaigetsu-block:hover .highlight-boundary {
  text-shadow: 0 0 15px rgba(183, 75, 122, 0.6);
}

.highlight-moon {
  color: #4b8b7a; /* 深邃暗綠色，呼應魔王漸層與提燈引路光芒 */
  transition: text-shadow 0.3s ease;
}

.kaigetsu-block:hover .highlight-moon {
  text-shadow: 0 0 15px rgba(75, 139, 122, 0.6);
}
/* --------------------------------------------------------------------------
   13. Dropdown Menu (頂部與側邊下拉選單)
   -------------------------------------------------------------------------- */
/* 電腦版頂部下拉選單 */
.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(18, 8, 23, 0.95);
  min-width: 140px;
  border: 1px solid var(--line);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  padding: 8px;
  transition: all 0.2s ease;
  z-index: 100;
}

.dropdown:hover .dropdown-content {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: center;
  margin-bottom: 2px;
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: none; /* 覆蓋掉頂層 nav a.is-active 的框線 */
}

/* 手機版側邊欄下拉分組 */
.drawer-group {
  margin-bottom: 8px;
}

.drawer-group-title {
  display: block;
  padding: 12px;
  color: var(--warm4);
  font-weight: 600;
  background: rgba(255, 122, 24, 0.1);
  border: 1px solid rgba(255, 122, 24, 0.3);
  border-radius: 14px;
  margin-bottom: 6px;
}

.drawer-group a {
  display: block;
  padding: 10px 12px 10px 32px;
  border-radius: 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 2px;
}

.drawer-group a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}


/* --------------------------------------------------------------------------
   14. Page: About Story (界月命名由來區塊)
   -------------------------------------------------------------------------- */
.about-kaigetsu-section {
  padding-top: 60px;
  margin-top: 60px;
  border-top: 1px dashed var(--line);
}

.kaigetsu-title {
  color: #ffffff;
  font-size: clamp(22px, 3vw, 32px);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 2px;
  line-height: 1.4;
}

.kaigetsu-title span {
  display: block;
  font-size: clamp(16px, 2vw, 18px);
  color: var(--warm4);
  margin-top: 10px;
  text-shadow: 0 0 15px rgba(255, 209, 102, 0.5);
}

.kaigetsu-block {
  margin-bottom: 30px;
  padding: 24px;
  border-left: 3px solid rgba(255,255,255,0.1);
  background: var(--card-bg);
  border-radius: 0 16px 16px 0;
  transition: all 0.3s ease;
}

/* Hover 特效：左側邊框變色發光 */
.kaigetsu-block:hover {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 100%);
  border-left-color: var(--warm2);
  box-shadow: -10px 0 20px -10px rgba(255, 61, 127, 0.2);
}

.kaigetsu-block.block-moon:hover {
  border-left-color: #10b981; /* 綠色月光 */
  box-shadow: -10px 0 20px -10px rgba(16, 185, 129, 0.2);
}

.kaigetsu-subtitle {
  font-size: 18px;
  margin: 0 0 12px 0;
  font-weight: 800;
  transition: all 0.3s ease;
}

/* 融合品牌色彩的文字 */
.highlight-boundary { color: var(--warm2); }
.kaigetsu-block:hover .highlight-boundary { text-shadow: 0 0 12px rgba(255, 61, 127, 0.5); }

.highlight-moon { color: #10b981; }
.kaigetsu-block.block-moon:hover .highlight-moon { text-shadow: 0 0 12px rgba(16, 185, 129, 0.5); }

.kaigetsu-block p {
  line-height: 1.8;
  font-size: 15px;
  margin: 0;
  color: var(--muted);
}
/* --------------------------------------------------------------------------
   15. Banner Section (頂部主視覺橫幅預留區塊)
   -------------------------------------------------------------------------- */
.kaigetsu-banner {
  width: 100%;
  margin: 0 auto 40px; /* 底部留白與下方內容隔開 */
  position: relative;
  z-index: 10;
}

.banner-inner {
  position: relative;
  width: 100%;
  /* 設定 Banner 預設比例 (21:9 電影寬螢幕比例，很適合放角色立繪與 LOGO) */
  aspect-ratio: 21 / 9;
  border-radius: 20px;
  overflow: hidden;
  /* 預設的深淵漸層背景 */
  background: linear-gradient(135deg, rgba(11, 7, 16, 0.8), rgba(28, 14, 38, 0.6));
  border: 1px dashed rgba(255, 209, 102, 0.3); /* 虛線框代表預留區 */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(168, 85, 247, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* 滑鼠移過去時的發光互動 */
.banner-inner:hover {
  border-color: rgba(255, 209, 102, 0.6);
  box-shadow: 0 10px 40px rgba(255, 209, 102, 0.1), inset 0 0 30px rgba(168, 85, 247, 0.15);
}

/* 實際圖片的設定 */
.banner-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0; /* 預設隱藏 */
  transition: opacity 0.5s ease;
}

/* 當 img 標籤的 src 有內容時，自動顯示圖片並覆蓋預設文字 */
.banner-img[src]:not([src=""]) {
  opacity: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

/* 預設佔位設計 (Placeholder 文字) */
.banner-placeholder {
  text-align: center;
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none; /* 避免干擾圖片點擊 */
}

.banner-placeholder .moon-icon {
  font-size: clamp(32px, 5vw, 48px);
  color: var(--warm4); /* 溫暖的月光琥珀色 */
  text-shadow: 0 0 20px rgba(255, 209, 102, 0.6);
  display: block;
  margin-bottom: 10px;
  animation: moon-pulse 2s infinite alternate;
}

.banner-placeholder h2 {
  font-size: clamp(20px, 4vw, 32px);
  margin: 0 0 8px 0;
  letter-spacing: 4px;
  background: linear-gradient(90deg, var(--warm3), var(--warm1));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.8;
}

.banner-placeholder p {
  margin: 0;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--muted);
}
/* 官方 X 連結專屬樣式 (俐落銀白發光) */
.footer__links a.x-link {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.footer__links a.x-link:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}
/* --------------------------------------------------------------------------
   16. System Announcement (圖二：系統跑馬燈)
   -------------------------------------------------------------------------- */
.sys-announce-bar {
  display: flex;
  align-items: center;
  /* 打造圖二的深紫漸層膠囊形狀 */
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.15), rgba(11, 7, 16, 0.8));
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 999px;
  padding: 6px 16px 6px 6px; /* 左側留給 SYSTEM 徽章 */
  margin: 0 auto 40px;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
  transition: box-shadow 0.3s ease;
}

.sys-announce-bar:hover {
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.25);
}

.sys-badge {
  background: linear-gradient(135deg, #d946ef, #a855f7);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(217, 70, 239, 0.6);
  margin-right: 16px;
  flex-shrink: 0;
  z-index: 2;
}

.sys-track-wrap {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}

.sys-track {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

.sys-announce-bar:hover .sys-track {
  animation-play-state: paused; /* 滑鼠移過去時停止捲動方便閱讀 */
}

.sys-item {
  margin-right: 50px;
  color: var(--txt);
  font-size: 14.5px;
}

.sys-date {
  color: var(--warm3); /* 霓虹紫日期 */
  font-weight: 800;
  margin-right: 8px;
}

/* --------------------------------------------------------------------------
   17. Activity Cards (圖一：近期活動公告卡片)
   -------------------------------------------------------------------------- */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .activity-grid { grid-template-columns: 1fr; }
}

.activity-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.activity-card:hover {
  transform: translateY(-5px);
  border-color: var(--warm3);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
}

/* 頂部日期區塊 */
.activity-date {
  background: rgba(168, 85, 247, 0.15);
  color: #fff;
  text-align: center;
  padding: 16px;
  border-bottom: 3px solid var(--warm3); /* 日期底下的粗分隔線 */
}

.activity-date .month {
  display: block;
  font-size: 14px;
  opacity: 0.9;
  letter-spacing: 2px;
}

.activity-date .day {
  display: block;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  margin-top: 4px;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.activity-body {
  padding: 24px 20px;
  flex: 1;
}

.activity-title {
  color: #fff;
  font-size: 18px;
  margin: 0 0 12px 0;
  line-height: 1.4;
  font-weight: 800;
}

.activity-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  /* 文字超過四行自動變成省略號 (...) */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 底部發布單位/分類 */
.activity-footer {
  background: rgba(168, 85, 247, 0.08);
  color: var(--warm3);
  text-align: center;
  padding: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  border-top: 1px solid rgba(168, 85, 247, 0.2);
}

/* 開場全螢幕遮罩 */
#entrance-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0b0710; /* 深淵底色 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000; /* 確保在最上層 */
  transition: opacity 1.5s ease, visibility 1.5s;
}

.entrance-content {
  text-align: center;
  animation: fadeIn 2s ease-out;
}

.entrance-logo {
  font-size: 60px;
  color: var(--warm3);
  margin-bottom: 20px;
  filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.5));
}

.entrance-title {
  font-size: 28px;
  letter-spacing: 4px;
  color: #fff;
  margin-bottom: 10px;
}

.entrance-subtitle {
  font-size: 14px;
  color: #888;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

/* 消失時的動畫 */
.hall-opened {
  opacity: 0;
  visibility: hidden;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}