@charset "utf-8";

/* ==========================================================================
寶島嘉年華：UI Design System 
   
   雙主題架構 (Dual-Theme System): 
   - Default: 雙仙變裝秀 (Divine Immortals) - 象牙神聖白、廟宇紅與法器金
   - .theme-p3: 台味發大財 (Taiwanese Neon Stage) - 台啤綠、夜市青與旺來金
   
   目錄結構 (Architecture): 
   01. Design Tokens (全域變數與雙主題色彩) 
   02. Base & Reset (基礎重置與共用設定) 
   03. Typography (排版與標題) 
   04. Layout & Grid (佈局與網格系統) 
   05. Components (獨立 UI 組件：按鈕、標籤、提示框) 
   06. Cards (商品與展示卡片模組) 
   07. Tables (任務與規則表格) 
   08. Legacy (舊版 2010 遺留樣式，為向下相容保留) 
   09. Responsive (RWD 響應式設定)
   10. Specific Tweaks (特定頁面微調)
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Design Tokens (全域變數與雙主題設定)
   -------------------------------------------------------------------------- */
:root {
  /* -- 共用字體設定 (Typography Tokens) -- */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  
  /* -- 共用基礎變數 (Base Tokens) -- */
  --bg: #f7faf7;
  --bg-white: #ffffff;
  --bg-dark: #121212;
  --shadow-sm: 0 4px 6px rgba(0,0,0,.04);
  --shadow-md: 0 10px 30px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.35);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --max-width: 1100px;
  --gap-small: 8px;
  --gap-medium: 12px;
  --gap-large: 25px;

  /* =========================================================
     [主題 A] 聖母金紅
     視覺元素：廟宇奶油底、聖母紅、金項鍊素材金、天后權杖翡翠綠
     ========================================================= */
  /* Surfaces (表面與背景) */ 
  --surface-page: #FFF9F2;      /* 廟宇奶油底 */
  --surface-card: #FFFFFF;      /* 卡片純白 */
  --surface-soft: #FFEFEA;      /* 淺紅奶霜 */

  /* Borders & Dividers */ 
  --border-default: rgba(212, 175, 55, .45);
  --divider: rgba(140, 20, 20, .10);

  /* Text (文字) */ 
  --text-primary: #3D0D0D;      /* 深紅褐 (主文字) */
  --text-muted: #8E6D6D;        /* 赭石灰 (次要文字) */

  /* Brand Colors (品牌主色 - 聖母紅) */ 
  --brand-primary: #D62B1F;     /* 慶典大紅 (按鈕/強調) */
  --brand-strong: #9B1C14;      /* 深宮紅 (標題/重點) */

  /* Accents (點綴色) */ 
  --accent-primary: #8b7630;    /* 金項鍊素材金 */
  --accent-secondary: #00A693;  /* 天后權杖翡翠綠 */
  --accent-danger: #00897B;     /* 保留原預設以免其他元件報錯 */

  /* States */ 
  --row-even: rgba(214, 43, 31, .04); /* 淺紅底 */
  --state-hover: rgba(212, 175, 55, .15);

  /* Headers & Tables */ 
  --header-bg: linear-gradient(180deg, #F8D882, #D4AF37); /* 黃金漸層 */
  --header-text: #3D0D0D;
  --header-topbar: linear-gradient(90deg, #FFFDF8, #FFE8D6);

  /* -- Size & Component Tokens -- */ 
  --text-sm: 13px; 
  --radius-xs: 8px; 
  --space-xs: 4px; 
  --space-sm: 14px; 
  --tag-bg: var(--surface-soft); 
  --tag-border-color: var(--border-default); 
  --tag-text-color: var(--brand-primary); 

  /* -- 產包卡片變數 -- */ 
  --pack-card-bg: var(--surface-card);
  --pack-header-bg: var(--surface-soft);
  --pack-name-color: var(--brand-primary);
  --pack-desc-color: var(--text-primary);
  --pack-price-color: var(--brand-strong); /* 已替換為深宮紅 */
  --pack-btn-bg: var(--brand-primary);
  --pack-btn-text: #FFFFFF;

  /* -- 大廳與任務表格變數 -- */ 
  --hall-header-bg: var(--header-bg);
  --hall-header-text: var(--text-primary);
  --hall-btn-bg: var(--accent-primary);
  --task-header-bg: linear-gradient(180deg, #E53935, #B71C1C) !important;
  --task-header-text: var(--surface-card); 
  --task-border: rgba(212, 175, 55, 0.45);
  --task-reward-color: var(--brand-primary);
}
/* ========================================================= 
   [主題 B] 台味發大財 (Neon Stage Theme - 台客霓虹與發財金) 
   視覺重構：全面改用「台啤綠、夜市青、旺來金」
   ========================================================= */
.theme-p3 { 
  /* Surfaces */ 
  --surface-page: #04120C;            /* 台啤深玻璃色 */ 
  --surface-card: #0A2216;            /* 卡片底：舞台暗綠 */ 
  --surface-soft: #113624;            /* 內層：霓虹反光綠 */ 

  /* Borders & Dividers */ 
  --border-default: rgba(0, 255, 115, .40); 
  --divider: rgba(255, 255, 255, .15); 

  /* Text */ 
  --text-primary: #FFFFFF; 
  --text-muted: #A3C9B5; 
  --text-invert: #04120C; 

  /* Brand Colors */ 
  --brand-primary: #00E5FF;           /* 秀場霓虹青 */ 
  --brand-strong: #00FF73;            /* 台啤綠 */ 

  /* Accents */ 
  --accent-primary: #FFCC00;          /* 旺來發財金 */ 
  --accent-danger: #FF2E55;           /* 舞台雷射紅 */ 

  /* States & Headers */ 
  --row-even: rgba(0, 255, 115, .08); 
  --state-hover: rgba(255, 204, 0, .20); 
  --header-bg: #061A10; 
  --header-topbar: linear-gradient(90deg, #0A2216, #061A10); 

  /* -- Component Tokens Override -- */ 
  --tag-bg: rgba(0, 255, 115, 0.15); 
  --tag-border-color: rgba(0, 255, 115, 0.80); 
  --tag-text-color: var(--brand-strong); 

  /* -- Page Title Override -- */ 
  --page-title-color: var(--accent-primary); 
  --page-title-shadow:  
    0 0 10px rgba(0, 255, 115, 0.8), 
    0 0 20px rgba(0, 255, 115, 0.5),
    0 0 30px rgba(0, 229, 255, 0.3); 

  /* -- 產包卡片變數覆寫 -- */ 
  --pack-card-bg: var(--surface-card); 
  --pack-header-bg: #0D2E1F; 
  --pack-name-color: var(--brand-strong); 
  --pack-desc-color: var(--text-muted); 
  --pack-price-color: var(--accent-primary);
  --pack-btn-bg: var(--accent-primary); 
  --pack-btn-text: #04120C; 

  /* -- 表格變數覆寫 -- */ 
  --hall-header-bg: var(--header-bg); 
  --hall-header-text: var(--accent-primary); 
  --hall-btn-bg: var(--brand-primary); 
  --task-header-bg: linear-gradient(180deg, #008C4A, #004D29) !important;
  --task-header-text: #FFFFFF !important; 
  --task-border: rgba(255, 204, 0, 0.50); 
  --task-reward-color: var(--accent-primary); 
}

/* --------------------------------------------------------------------------
   02. Base & Reset (基礎重置與設定)
   -------------------------------------------------------------------------- */
body {
  margin: 0;
  min-width: 1050px;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  /*color: #333;*/
  color:var(--accent-primary);
  background-image: url(images/bg_r.png);
  background-size: auto;
  background-position: top center;
  background-repeat: repeat;
}

/* --------------------------------------------------------------------------
   03. Typography (排版與標題)
   -------------------------------------------------------------------------- */
.page-title {
  font-family: var(--font-sans);
  line-height: 1.4;
  text-align: center;
  font-size: 28px;
  letter-spacing: 6px;
  margin: 25px 0 10px;
  font-weight: 800; 
  color: var(--brand-strong); 
  text-shadow: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.section-title {
  color: var(--text-muted); 
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 2px;
  border-bottom: 2px solid var(--brand-primary); 
  display: inline-block;
  padding-bottom: 8px;
}

.info-box, .notice {
  background: var(--surface-soft);
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 12px;
  margin-bottom: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}
.info-box{
    margin:50px auto;
}
.notice strong { color: var(--text-primary); font-weight: 800; }

.info-box .info-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px; 
}
.info-box .info-row:last-child {
  margin-bottom: 0;
}
.info-box .title {
  display: inline-block; 
  margin: 0 10px 0 0;
  flex-shrink: 0;
}
.title + .info-box {
  margin: 30px auto;
}

.info-box .desc {
  color: var(--text-primary);
  font-weight: bold;
  padding-top: 1px; 
}
.info-box .desc img {
  height: 2em; 
  width: auto; 
  vertical-align: middle; 
  margin: -8px 4px; 
  position: relative;
  z-index: 1; 
}

.info-box .info-image {
  text-align: center;
 /* margin-top: 18px; 
  padding-top: 18px; 
  border-top: 1px dashed var(--divider); */
}
.info-box .info-image img {
  max-width: 100%; 
  height: auto;
  border-radius: 8px; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
}

.title {
  font-size: 18px;
  font-weight: bold;
  color: var(--brand-primary);
  border-left: 4px solid var(--accent-primary); 
  padding-left: 12px;
  margin: 0 0 16px 0;
  display: flex; 
  align-items: center; 
  gap: 6px; 
}
.title-desc {
  padding-left: 16px; 
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px; 
}
.title-desc strong {
  color: var(--brand-strong);
  font-weight: 800;
}

.rule-row {
  display: flex;
  align-items: flex-start; 
  margin: 0 0 16px 0; 
}
.rule-row .title {
  margin: 0 8px 0 0;
  flex: 0 0 auto; 
}
.rule-row .rule-desc {
  margin-bottom: 0; 
  padding-left: 0; 
  padding-top: 2px; 
}

.sub {
  text-align: center;
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 28px;
  font-weight: 600;
  color: var(--accent-primary);
  opacity: 0.7;             
}
body.theme-p3 .sub {
  color: var(--brand-strong); 
  opacity: 0.8;
}
.sub span { color: var(--brand-primary); }

/* Text Helpers */
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-primary); font-weight: 700; }
.center { margin: 0 auto; text-align: center; }

.alert-box {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--surface-card); 
  border: 2px dashed var(--accent-danger); 
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  color: var(--text-primary);
  line-height: 1.5;
}
.alert-box .alert-label {
  color: var(--accent-danger);
  font-weight: 900;
  margin-right: 4px; 
}

/* --------------------------------------------------------------------------
03. Typography (針對規則行優化版本)
   -------------------------------------------------------------------------- */

.rule-row {
    display: flex;
    align-items: flex-start;
    margin: 0 0 16px 0;
    line-height: 1.6;
}
.rule-row .title {
    flex: 0 0 auto;
    margin: 0 12px 0 0;
    padding-left: 12px;
    font-size: 18px;
    font-weight: 900;             /* 極粗體 */
    color: var(--brand-primary);   /* 預設主題改用品牌主色 */
    border-left: 4px solid var(--accent-primary);
    display: flex;
    align-items: center;
    white-space: nowrap;
}
/* 2. 內容：確保在暗處絕對清晰 */
.rule-row .rule-desc, 
.rule-row .desc {
    flex: 1;
    margin: 0;
    padding-top: 2px;
    font-size: 17px;
    font: weight 800px;
    color: #FFFFFF;         
}

/* 內容中的強調標記 (如日期、關鍵字) */
.rule-row .desc strong, 
.rule-row .rule-desc strong {
    color: var(--accent-primary); 
    font-weight: 800;
}
/* --------------------------------------------------------------------------
   04. Layout & Grid (佈局與網格)
   -------------------------------------------------------------------------- */
.container { padding: 30px 0; }
.clear { clear: both; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  width: 100%;
  max-width: 1200px;
  margin: 30px auto;
}
.reward-section .grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 280px));
  justify-content: center;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   05. Components (獨立 UI 組件)
   -------------------------------------------------------------------------- */
.info-bar {
  background: var(--brand-primary);
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  margin: 20px 0 40px;
}
.info-bar span {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(46, 125, 50, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
}
.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(46, 125, 50, .85);
}

.badge {
  font-size: 12px;
  letter-spacing: 1px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(46, 125, 50, .35);
  color: var(--text-muted);
  background: rgba(241, 248, 233, .75);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   06. Cards (卡片與商品展示模組)
   -------------------------------------------------------------------------- */
.card {
  flex: 0 0 auto;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  background: var(--surface-card);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow-sm);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px var(--shadow-md);
  border-color: var(--accent-primary);
}

/* [預設主題] 春日慕夏 */
.card-top {
  padding: 12px 12px 0;
  background: linear-gradient(180deg, rgba(255, 248, 242, 0.95) 0%, rgba(255, 241, 234, 0.85) 100%);
}
.card .meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px;
}
.card .name {
  font-size: 1.1rem;
  line-height: 1.75rem;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin: 0 0 8px;
  display: block;
  width: 100%;
  font-weight: 700;
}
.card .tag {
  font-family: var(--font-sans); 
  line-height: 1.2;  
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 1px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--tag-border-color);
  background: var(--tag-bg);
  color: var(--tag-text-color);
  text-align: center;
  margin: 0 auto;
  padding: var(--space-xs) var(--space-sm);
  display: inline-block;
  width: fit-content;
}
.card .price {
  text-align: center;
  font-size: 16px;
  display: block;
  color: var(--accent-primary);
  font-weight: bold;
}

.canvas {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
  background: var(--surface-soft);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.fashion-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.single-item .fashion-thumb {
  object-fit: contain;
  transform: scale(1.6);
  transform-origin: bottom center;
  filter: drop-shadow(0 8px 12px var(--shadow-sm));
}

.info {
  padding: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--surface-card);
  border-top: 1px solid var(--divider);
}

/* ========================================================= 
   [Theme Override] 台味霓虹主題 - 卡片專屬覆寫
   ========================================================= */
body.theme-p3 .card {
  background:
    linear-gradient(180deg, rgba(255,204,0,.08), transparent 30%),
    linear-gradient(0deg, rgba(0,255,115,.08), transparent 45%),
    var(--surface-card);
  border: 1px solid var(--border-default);
}
body.theme-p3 .card:hover {
  background:
    linear-gradient(180deg, rgba(255,204,0,.15), transparent 32%),
    linear-gradient(0deg, rgba(0,255,115,.12), transparent 50%),
    var(--surface-soft);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 255, 115, 0.2);
  transition: .18s ease;
}
body.theme-p3 .card .name {
  color: var(--text-primary);
  text-shadow: 0 0 12px rgba(0, 255, 115, 0.4); 
}
body.theme-p3 .card-top {
  background: linear-gradient(180deg, rgba(0, 255, 115, 0.15) 0%, rgba(10, 34, 22, 0.95) 100%);
  box-shadow: inset 0 1px 0 rgba(0, 255, 115, 0.2);
}
body.theme-p3 .card .tag {
  color: var(--brand-strong);
  border: 1px solid rgba(0,255,115,.60);
  background: rgba(0,255,115,.10);
}
body.theme-p3 .card .price {
  color: var(--accent-primary);
  font-weight: 900;
}

/* 獎勵預覽卡片 (Reward Preview Card) */
.reward-card {
  display: flex; 
  flex-direction: column; 
  min-height: 380px !important; 
  justify-content: space-between !important;
  align-items: center; 
  padding: 0 0 20px 0 !important; 
  box-sizing: border-box !important;
}
.reward-card .card-top {
  width: 100% !important;
  background-color: var(--surface-soft) !important; 
  padding: 12px 0 !important;
  border-bottom: 1px solid var(--border-default) !important; 
  display: flex !important;
  justify-content: center !important;
}
.reward-card .name {
  color: var(--brand-strong) !important; 
  font-size: 22px !important;
  font-weight: bold !important;
  margin: 0 !important;
  background: transparent !important; 
}
.reward-card .canvas.spotlight {
  display: flex !important; 
  justify-content: center !important;
  align-items: center !important;
  width: 90% !important;
  height: 250px !important; 
  background: radial-gradient(circle, var(--state-hover) 0%, transparent 70%) !important; 
  border-radius: 12px !important;
  position: relative;
  margin: 15px auto !important; 
}
.reward-card .fashion-thumb {
  max-width: 100% !important; 
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important; 
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2)) !important;
}
.reward-card .tag {
  margin: 0 auto !important; 
  background: var(--tag-bg) !important; 
  color: var(--tag-text-color) !important; 
  border: 1px solid var(--tag-border-color) !important; 
  padding: 6px 24px !important;
  border-radius: 4px !important;
  font-size: 16px !important;
  font-weight: bold !important;
}

/* 產包專區 (Pack Grid) */
.pack-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 30px auto;
}
.pack-grid-3col .card {
  background: var(--pack-card-bg);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pack-grid-3col .card-top {
  padding: 0; 
  background: none; 
}
.pack-grid-3col .name {
  display: block;
  width: 100%;
  background: var(--pack-header-bg);
  color: var(--pack-name-color);
  font-size: 18px;
  font-weight: 800;
  padding: 14px 0; 
  margin: 0;
  text-align: center;
  border-bottom: 1px solid var(--border-default);
  text-shadow: none; 
  box-sizing: border-box;
}
.pack-grid-3col .meta {
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.pack-grid-3col .fashion-thumb {
  width: 85%;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
}
.pack-grid-3col .meta p {
  color: var(--pack-desc-color);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  margin: 0;
}
.pack-grid-3col .price {
  color: var(--pack-price-color);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  margin: 5px 0;
}
.pack-grid-3col .rank-link {
  background: var(--pack-btn-bg);
  color: var(--pack-btn-text) !important;
  font-family: var(--font-sans); 
  line-height: 1.2;
  padding: 12px 0;
  width: 85%;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s, filter 0.2s;
  text-decoration: none !important;
}
.pack-grid-3col .rank-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.1); 
}

/* 台味霓虹產包覆寫 */
.theme-p3 .pack-grid-3col .card {
  background: #061A10 !important; 
  border-color: rgba(0, 255, 115, 0.40) !important;
}
.theme-p3 .pack-grid-3col .meta p {
  color: #A3C9B5 !important; 
}
.theme-p3 .pack-grid-3col .rank-link {
  background: #FFCC00 !important; 
  color: #04120C !important;      
  text-shadow: none !important;
  border: none !important;
}

/* --------------------------------------------------------------------------
   07. Tables & Panels (任務/規則表格與面板)
   -------------------------------------------------------------------------- */
.panel {
  border: 1px solid var(--border-default);
  border-radius: 18px;
  background: var(--surface-card);
  box-shadow: 0 3px 10px var(--shadow-md);
  overflow: hidden;
}
.panel-head {
  background: linear-gradient(135deg, #0b4a3a, #2e7d32);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-head .title {
  font-size: 20px;
  letter-spacing: 3px;
  color: #fff;
  border: none; margin: 0; padding: 0;
}
.panel-body { padding: 18px 18px 22px; }

/* 大廳表格 (Hall & Task Table) */
.section-block {
  margin-bottom: 40px; 
}
.section-block .title {
  margin: 0 0 15px 0;
}
.section-block .hall {
  margin: 0 0 15px 0; 
}
.section-block .info-box{
  margin: 0 0 15px 0; 
}


.hall {
  background-color: var(--surface-card); 
  border: 1px solid var(--border-default); 
  border-radius: var(--radius-sm);     
  overflow: hidden;
  box-shadow: var(--shadow-sm);     
  margin: 50px auto;
  max-width: 1000px;
  line-height: 1.2;
}
.hall-header {
  background-color: var(--brand-primary);
  color: var(--surface-card);
  padding: 12px 20px;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.hall .task-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-primary);
  font-family: var(--font-sans);
}
.hall .task-table thead th {
  background: var(--surface-soft) !important; 
  color: var(--brand-strong) !important;  
  padding: 16px 15px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 5px;
  border-bottom: 2px solid rgba(210, 178, 120, 0.45); 
  text-align: center;
}
.hall .task-table td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--divider); 
  text-align: center;
  vertical-align: middle;
}
.hall .task-table tbody tr:nth-child(even) { background-color: var(--row-even); }
.hall .task-table tbody tr:hover { background-color: var(--state-hover); transition: background-color 0.2s ease; }
.hall .task-table th:nth-child(1), .task-name { text-align: center !important; }
.hall .task-table th:nth-child(3), .reward { text-align: center !important; }
.hall .task-table td.text-left { text-align: left; }
.hall .task-table thead tr td strong { color: var(--text-primary); }

.hall .rank-link {
  display: inline-block;
  background: var(--accent-primary);
  color:var(--bg-white);
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 1px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s, filter 0.2s;
  font-family: var(--font-sans);
  line-height: 1.2;
}
.hall .rank-link:hover {
  background: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.notice-table tr th.task-name{
  width: 28%;
  background-color:inherit;
  border-bottom: 1px solid var(--divider);
}

.task-name {
  color: var(--text-muted);
  font-weight: bold;
  background-color: var(--surface-card);
  vertical-align: middle;
  border-right: 1px solid var(--border-default);
}
.reward { font-weight: bold; color: var(--brand-primary); }
.reward img { height: 1.2em; vertical-align: middle; margin: 0 4px; }

/* 區廳任務獎勵表 */
.table--tasks {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-card);
  border: 2px solid var(--task-border); 
  border-radius: 8px;
}
.table--tasks thead th {
  background: var(--task-header-bg) !important;
  color: var(--task-header-text) !important;
  padding: 18px 12px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 2px;
}
.table--tasks td {
  border-bottom: 1px solid var(--divider);
  padding: 15px;
  color: var(--text-primary);
}
.table--tasks .reward-name {
  color: var(--task-reward-color);
  font-weight: 900;
  font-size: 1.1rem;
}

.task-section__header {
  background: var(--header-topbar);
  color: var(--text-primary);
  border: 1px solid rgba(209,176,90,.35);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  padding: 12px;
}
.task-cell--reward { color: var(--accent-primary); }
.task-cell--reward .qty { 
  color: var(--accent-danger); 
  font-weight: 900; 
  font-size: 18px; 
}

/* 前三名預覽表格 */
.hall .table--tasks {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-card);
  border: 1px solid var(--border-default); 
  border-radius: 8px;
  overflow: hidden; 
  box-shadow: 0 4px 12px rgba(210, 178, 120, 0.1); 
}
.hall .table--tasks thead th {
  background: var(--task-header-bg) !important; 
  color: var(--task-header-text) !important; 
  padding: 16px 12px;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 1px;
  text-align: center; 
  border-bottom: 2px solid var(--task-border);
}
.hall .table--tasks tbody td {
  border-bottom: 1px solid var(--divider);
  padding: 16px 12px;
  color: var(--text-primary);
  text-align: center; 
  vertical-align: middle; 
  line-height: 1.5;
}
.hall .table--tasks tbody tr:last-child td { border-bottom: none; }
.hall .table--tasks tbody td:first-child {
  font-weight: bold;
  font-size: 18px;
  color: var(--brand-strong); 
}
.hall .table--tasks .fashion-thumb {
  max-width: 120px !important; 
  max-height: 180px !important; 
  object-fit: contain !important; 
  margin-bottom: 8px; 
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15)); 
  transition: transform 0.2s ease; 
}
.hall .table--tasks .fashion-thumb:hover { transform: scale(1.05); }
.hall .table--tasks tbody td:nth-child(3) { color: var(--text-muted); }

/* 頁尾註腳 */
.footnote {
  background: var(--surface-soft);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--border-default);
  margin-bottom: 30px;
}
.footnote h3 { margin: 0 0 15px; color: var(--text-muted); }
.footnote ul { color: var(--text-primary); font-size: 16px; line-height: 1.8;  letter-spacing: 1;}

/* --------------------------------------------------------------------------
   08. Legacy (舊版 2010 年代 Funtown 版面，為向下相容保留)
   -------------------------------------------------------------------------- */
#outer {
  width: 100%;
  background-image: url(images/bg.webp);
  background-size: auto;
  background-position: top center;
  background-repeat: no-repeat;
}
#outer #weapper { width: 1050px; margin-right: auto; margin-left: auto; }
#outer #weapper #header { height: 550px; width: 1050px; position: relative; background: url(images/header.webp) no-repeat top left; }
#outer #weapper #header #menu { width:920px; height: 158px; position: absolute; top: 356px; left: 50%; transform: translateX(-50%);}
#outer #weapper #content { width: 870px; padding: 0px 90px 0px 90px; position: relative; background: url(images/content_bg.png) repeat-y top center; margin-bottom: -2px; }
#outer #weapper #notice { width: 870px; visibility: inherit; font-size: 14px; line-height: 1.8em; }

#logo { display: block; width: 136px; height: 100px; position: absolute; top: 0px; left: 9px; z-index: 9; }
#logo a { display: block; height: 100px; }
.btitle { position: absolute; top: -75px; left: 352px; }

/* 舊版輔助色彩 */
.red { color: #ff60ee; }
div .red { color: #e80000; }
.blue { color: #0060ff; }
tr .blue { color: #004eff; }
.green { color: #00aea4; }
.mint { color: #00fcff; }
.pink { color: #ff00ea; }
.yellow { color: #fff000; }
.purple { color: #7b00d1; }

.legacy-notice { color: #e9051f; font-size: 14px; line-height: 1.5em; background: var(--bg-white); }
.spnotice { background-color: #fffaa8; color: #d21400; line-height: 1.5em; }
.stxt { font-size: 14px; }
.width { font-weight: bold; }
.legacy-title { font-size: 18px; line-height: 24px; font-weight: bold; color: var(--text-muted); }

/* 舊版圖標與按鈕定位 */
.icon01 { display: block; width: 117px; height: 50px; position: absolute; right: 0px; }
.icon01 a { display: block; width: 117px; height: 50px; background-image: url(images/icon_01.png); background-repeat: no-repeat; }
.icon01 a:hover { background-image: url(images/icon_01_2.png); }

.icon02 { display: block; width: 117px; height: 50px; position: absolute; top: 50px; right:0px; }
.icon02 a { display: block; width: 117px; height: 50px; background-image: url(images/icon_02.png); background-repeat: no-repeat; }
.icon02 a:hover { background-image: url(images/icon_02_2.png); }

.sbut_b1 a { display: block; width: 200px; height: 72px; background-image: url(images/sbut_b1.png); background-repeat: no-repeat; }
.sbut_b1 a:hover { background-image: url(images/sbut_b2.png); }

.but01 { display: block; width: 201px; height: 95px; position: absolute; left: 45px; top: 2px; }
.but01 a { display: block; width: 201px; height: 95px; background-image: url(images/but_01.png); background-repeat: no-repeat; background-position: 0px 158px; }
.but01 a:hover { background-position: top left; }

.but02 { display: block; width: 201px; height: 95px; position: absolute; left: 252px; top: 2px; }
.but02 a { display: block; width: 201px; height: 95px; background-image: url(images/but_02.png); background-repeat: no-repeat; background-position: 0px 158px; }
.but02 a:hover { background-position: top left; }

.but03 { display: block; width: 201px; height: 95px; position: absolute; left: 460px; top: 2px; }
.but03 a { display: block; width: 201px; height: 95px; background-image: url(images/but_03.png); background-repeat: no-repeat; background-position: 0px 158px; }
.but03 a:hover { background-position: top left; }

.but04 { display: block; width: 201px; height: 95px; position: absolute; left: 667px; top: 2px; }
.but04 a { display: block; width: 201px; height: 95px; background-image: url(images/but_04.png); background-repeat: no-repeat; background-position: 0px 158px; }
.but04 a:hover { background-position: top left; }

.but07 { display: block; width: 117px; height: 50px; position: absolute; top: 100px; right: 0px; }
.but07 a { display: block; width: 117px; height: 50px; background-image: url(images/but_07_1.png); background-repeat: no-repeat; }
.but07 a:hover { background-image: url(images/but_07_2.png); }

.p1_sbut01, .p1_sbut02, .p1_sbut03,
.p2_sbut01, .p2_sbut02, .p2_sbut03,
.p3_sbut01, .p3_sbut02, .p3_sbut03, .p3_sbut04,
.p4_sbut01, .p4_sbut02,
.p5_sbut01, .p5_sbut02, .p5_sbut03,
.p6_sbut01, .p6_sbut02 { display: block; width: 200px; height: 60px; float: left; margin-right: 5px; }

.p5_sbut01, .p5_sbut02, .p5_sbut03 { width: 120px; height: 80px; }
.p6_sbut01, .p6_sbut02 { width: 116px; height: 80px; }
.p4_sbut01, .p4_sbut02 { height: 70px; }

.p1_sbut01 a:hover, .p1_sbut02 a:hover, .p1_sbut03 a:hover,
.p2_sbut01 a:hover, .p2_sbut02 a:hover, .p2_sbut03 a:hover,
.p3_sbut01 a:hover, .p3_sbut02 a:hover, .p3_sbut03 a:hover, .p3_sbut04 a:hover,
.p4_sbut01 a:hover, .p4_sbut02 a:hover,
.p5_sbut01 a:hover, .p5_sbut02 a:hover, .p5_sbut03 a:hover,
.p6_sbut01 a:hover, .p6_sbut02 a:hover { opacity: 0.7; filter: alpha(opacity=70); }

.slot_link { width: 245px; height: 195px; position: absolute; top: 45px; right: 20px; }
.but_buy { display: block; width: 167px; height: 52px; }
.but_buy a { display: block; width: 167px; height: 52px; background-image: url(images/buy.png); background-repeat: no-repeat; background-position: top left; }
.but_buy a:hover { background-position: 0px -52px; }

.but_casual { width: 100%; padding: 20px 0px 10px 0px; }
.but_align { margin: 0 auto; width: 244px; }
.but_align2 { margin: 0 auto; width: 266px; }
.but_align3 { margin: 0 auto; width: 305px; }

.but_casual .go1 a, .but_casual .go2 a, .but_casual .go3 a { display: block; float: left; width: 122px; height: 41px; background-repeat: no-repeat; background-position: top left; margin: 0 auto; }
.but_casual .go1 a { background-image: url(images/go_01.png); }
.but_casual .go2 a { background-image: url(images/go_02.png); }
.but_casual .go3 a { background-image: url(images/go_03.png); }
.but_casual .go1 a:hover, .but_casual .go2 a:hover, .but_casual .go3 a:hover { background-position: 0px -41px; }

.but_casual .golist a, .but_casual .golist2 a { display: block; height: 41px; background-repeat: no-repeat; background-position: top left; margin: 0 auto; }
.but_casual .golist a { width: 207px; background-image: url(images/go_list.png); }
.but_casual .golist2 a { width: 174px; background-image: url(images/go_list2.png); }
.but_casual .golist a:hover, .but_casual .golist2 a:hover { background-position: 0px -41px; }

.but_casual .go7771 a, .but_casual .go7772 a { display: block; float: left; height: 41px; background-repeat: no-repeat; background-position: top left; margin: 0 auto; }
.but_casual .go7771 a { width: 162px; background-image: url(images/go_7771.png); }
.but_casual .go7772 a { width: 142px; background-image: url(images/go_7772.png); }
.but_casual .go7771 a:hover, .but_casual .go7772 a:hover { background-position: 0px -41px; }

.bottom { height: 120px; margin-right: auto; margin-left: auto; background-image: url(images/content_bottom.png); background-size: auto; background-position: top center; background-repeat: no-repeat; }
.tb_stxt { color: #888; font-size: 12px; line-height: 1.8em; }

/* --------------------------------------------------------------------------
   09. Responsive (RWD 響應式佈局)
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .task-table { font-size: 14px; }
  .task-table td { padding: 10px 8px; }
}

@media (max-width: 560px) {
  body { padding: 28px 12px 44px; }
  .page-title { font-size: 24px; letter-spacing: 4px; }
  .panel-head { flex-direction: column; align-items: flex-start; }
  .grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   10. Specific Tweaks (特定頁面微調)
   -------------------------------------------------------------------------- */
/* 針對寶島任務頁面上方的按鈕區塊新增 margin-top: 30px */
a[name="page1_1"] + center + center div[style*="width:410px"] {
    margin-top: 30px;
}



/* --------------------------------------------------------------------------
   11. Reusable Special Card Component (客製化特殊卡片容器 - 終極封裝版)
   -------------------------------------------------------------------------- */

/* 確保特殊卡片本體滿高 */
.card-special {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 關鍵修復：強制 card-top 在此模式下向下生長，帶動台啤綠背景延伸到底 */
.card-special .card-top {
    flex: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* 特殊卡片標題優化 */
.card-special .name {
    flex: 0 0 auto;
    line-height: 1.3;
}

/* 副標題樣式 (如：活動限定送) */
.card-special__sub-name {
    display: block;
    font-size: 14px;
    color: var(--accent-primary);
    font-weight: normal;
}

/* 內容區本體 */
.card-special__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0 10px 10px;
}

/* 圖片舞台：作為標語定位的基礎 */
.card-special__img-wrap {
    flex: 1; 
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 5px;
    min-height: 160px;
}

.card-special__img-wrap img {
    position: absolute;
    bottom: 0px; 
    width: 100%;
    max-height: 150%; 
    object-fit: contain;
    z-index: 1;
    pointer-events: none; 
}

/* 懸浮標語組件 */
.card-special__notice-wrap {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.card-special__notice-badge {
    display: inline-block;
    background: rgba(4, 18, 12, 0.85);
    border: 1px solid rgba(0, 255, 115, 0.4);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #A3C9B5;
    line-height: 1.3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}



.card-special__floating-notice {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 90%;
  background: rgba(4, 18, 12, 0.6);
  border: 1px dashed rgba(0, 255, 115, 0.3);
  border-radius: 4px;
  padding: 4px;
  font-size: 12px;
  color: #A3C9B5;
  line-height: 1.2;
  text-align: center;
}

/* 底部資訊區：釘在最下方 */
.card-special__footer {
    position: relative;
    z-index: 5;
    text-align: center;
    margin-top: auto; 
    padding-bottom: 10px;
}
/* ==========================================================================
   主選單霓虹按鈕 (but01 ~ but04) Hover 動畫優化 - 極簡純發光版
   ========================================================================== */

/* 1. 平滑的過渡效果 (僅針對 filter 進行漸變) */
.but01 a, .but02 a, .but03 a, .but04 a { 
    transition: filter 0.3s ease-out; 
}

/* 2. 個別按鈕 Hover：無位移、無縮放，僅展現專屬中心霓虹光暈 */

/* 導覽列按鈕 1：寶島任務 (藍色光暈) */
.but01 a:hover { 
    background-position: top left; 
    filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.65)) brightness(1.15); 
}

/* 導覽列按鈕 2：海底摸寶 (綠色光暈) */
.but02 a:hover { 
    background-position: top left; 
    filter: drop-shadow(0 0 18px rgba(0, 255, 115, 0.65)) brightness(1.15); 
}

/* 導覽列按鈕 3：寶牌王 (紅色光暈) */
.but03 a:hover { 
    background-position: top left; 
    filter: drop-shadow(0 0 18px rgba(255, 46, 85, 0.65)) brightness(1.15); 
}

/* 導覽列按鈕 4：最新服飾 (黃金色光暈) */
.but04 a:hover { 
    background-position: top left; 
    filter: drop-shadow(0 0 18px rgba(255, 204, 0, 0.65)) brightness(1.15); 
}

/* 3. 點擊時的下壓回饋 (Active 狀態) - 微微變暗收光，呈現實體點擊感 */
.but01 a:active, .but02 a:active, .but03 a:active, .but04 a:active {
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.8)) brightness(0.9);
    transition: filter 0.1s ease;
}
