@charset "utf-8";

/* ==========================================================================
   玫瑰盛典：花舞春日祭 (Rose Festival) UI Design System
   
   雙主題架構 (Dual-Theme System):
   - Default: 春日慕夏 (Mucha Rose Dream) - 象牙奶油與玫瑰金
   - .theme-p3: 赤色試探 (Neon Bar) - 深夜紫黑與霓虹酒紅
   
   目錄結構 (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 響應式設定)
   ========================================================================== */


/* --------------------------------------------------------------------------
   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] 慕夏春日玫瑰 (Mucha Light Theme - 預設)
     ========================================================= */
  /* Surfaces (表面與背景) */
  --surface-page: #FFF8F2;      /* 象牙奶油底（整頁） */
  --surface-card: #FFFFFF;      /* 卡片純白 */
  --surface-soft: #FFF1EA;      /* 淡玫瑰奶霜（區塊底/表頭底） */

  /* Borders & Dividers (邊框與分隔線) */
  --border-default: rgba(210, 178, 120, .45); /* 香檳金細框 */
  --divider: rgba(45, 30, 65, .10);           /* 淡紫灰分隔線 */

  /* Text (文字) */
  --text-primary: #2D1E41;      /* 墨紫（主文字） */
  --text-muted: #6D5A7D;        /* 薰衣草灰（次要文字） */

  /* Brand Colors (品牌主色) */
  --brand-primary: #D46A86;     /* 玫瑰粉（強調/按鈕） */
  --brand-strong: #B84A67;      /* 深玫瑰（標題/重點） */

  /* Accents (點綴色 - Mucha 金) */
  --accent-primary: #967f56;    /* 香檳金（描邊/標籤/Icon） */
  --accent-danger: #C63D5A;     /* 莓紅（警示/稀有掉落） */

  /* States (互動狀態) */
  --row-even: rgba(212, 106, 134, .06);       /* 玫瑰粉淡底（偶數列） */
  --state-hover: rgba(210, 178, 120, .18);    /* 金色霧光 Hover */

  /* Headers (表頭與頂部) */
  --header-bg: #FFE6DE;         /* 表頭淡粉米 */
  --header-topbar: linear-gradient(90deg, #FFE3E0, #FFF3D9); /* 淡粉至淡金漸層 */

/* -- 基礎尺寸變數 (Size Tokens) -- */
  --text-sm: 13px;
  --radius-xs: 8px;
  --space-xs: 4px;
  --space-sm: 14px;

  /* -- Tag 組件語意化變數 (Component Tokens)  -- */
  --tag-bg: var(--surface-soft);
  --tag-border-color: var(--border-default);
  --tag-text-color: var(--brand-strong);

  /* -- 產包卡片變數  -- */
  --pack-card-bg: var(--surface-card);      /* 純白底 */
  --pack-header-bg: var(--surface-soft);    /* 淡玫瑰奶霜表頭 */
  --pack-name-color: var(--brand-strong);   /* 深玫瑰標題 */
  --pack-desc-color: var(--text-primary);   /* 墨紫深色內文 (確保亮底清晰) */
  --pack-price-color: var(--accent-danger); /* 莓紅價格 */
  --pack-btn-bg: var(--accent-primary);     /* 香檳金按鈕 */
  --pack-btn-text: #FFFFFF;                 /* 白字配金底 */

  /* -- [A. 大廳表格] 時程資訊 (簡潔優雅) -- */
  --hall-header-bg: var(--header-bg);         /* 淡粉米底 */
  --hall-header-text: var(--text-primary);    /* 墨紫字 */
  --hall-btn-bg: var(--accent-primary);       /* 香檳金 */

  /* -- [B. 任務表格] 核心獎勵 (華麗高對比) -- */
  --task-header-bg: linear-gradient(180deg, var(--brand-strong), var(--brand-primary)) !important; 
  --task-header-text: var(--surface-card);
  --task-border: rgba(210, 178, 120, 0.45);    /* 慕夏金邊 */
  --task-reward-color: var(--brand-primary);  /* 玫瑰粉獎勵 */

}

/* =========================================================
   [主題 B] 赤色試探 (Neon Dark Theme - 哥德紅黑金)
   ========================================================= */
.theme-p3 {
  /* Surfaces */
  --surface-page: #07030D;            /* 深夜幕黑 */
  --surface-card: #140818;            /* 卡片底：深黑紫 */
  --surface-soft: #1E0C2A;            /* 內層：亮暗紫 */

  /* Borders & Dividers */
  --border-default: rgba(255, 210, 112, .40); /* 亮金箔線 */
  --divider: rgba(255, 255, 255, .12);

  /* Text */
  --text-primary: #FFF2FF;            /* 亮淡粉白 */
  --text-muted: #D7C7E8;              /* 淡紫灰 */
  --text-invert: #0B0710;             /* 反轉黑 */

  /* Brand Colors */
  --brand-primary: #B0123A;           /* 濃酒紅 */
  --brand-strong: #6E0020;            /* 深邃黑紅 */

  /* Accents */
  --accent-primary: #FFD270;          /* 亮香檳金 */
  --accent-danger: #FF2E5E;           /* 銳利莓紅（霓虹感） */

  /* States & Headers */
  --row-even: rgba(255, 255, 255, .05);
  --state-hover: rgba(255, 210, 112, .18);    /* 明顯的金色 Hover 霧光 */
  --header-bg: #24002E;                       /* 深紫表頭 */
  --header-topbar: linear-gradient(90deg, #6E0020, #24002E);

/* -- Tag 組件語意化變數覆寫 - 赤色試探主題 -- */
  --tag-bg: rgba(255, 210, 112, 0.10);
  --tag-border-color: rgba(255, 210, 112, 0.60);
  --tag-text-color: var(--accent-primary);

  /* -- Page Title 組件變數覆寫 (赤色霓虹主題) -- */
  --page-title-color: var(--text-primary); /* 文字轉為最亮的淡粉白，提升辨識度 */
  --page-title-shadow: 
    0 0 10px rgba(255, 46, 94, 0.6),   /* 內層銳利紅光 */
    0 0 20px rgba(176, 18, 58, 0.4);   /* 外層擴散酒紅光暈 */

 /* -- 產包卡片變數覆寫 (赤色試探：暗黑系) -- */
  --pack-card-bg: var(--surface-card);      /* 深黑紫卡片底 */
  --pack-header-bg: #3A0011;                /* 哥德深黑紅表頭 */
  --pack-name-color: var(--text-primary);   /* 亮粉白標題 */
  --pack-desc-color: var(--text-muted);     /* 淺紫灰內文 */
  --pack-price-color: var(--accent-primary);/* 亮金價格 */
  --pack-btn-bg: var(--accent-primary);     /* 亮金按鈕 */
  --pack-btn-text: #140818;                 /* 黑字配金底*/   

  /* -- [A. 大廳表格 - 暗黑版] -- */
  --hall-header-bg: var(--header-bg);         /* 深紫表頭 */
  --hall-header-text: var(--text-primary); 
  --hall-btn-bg: var(--accent-primary);       /* 亮金 */

  /* -- [B. 任務表格 - 暗黑版] -- */
  --task-header-bg: linear-gradient(180deg, #6E0020, #24002E) !important;
  --task-header-text: var(--accent-primary) !important;
  --task-border: rgba(255, 210, 112, 0.40);   /* 亮金箔邊框 */
  --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;
  /* 舊版相容背景 */
  background-image: url(images/bg_r.png);
  background-size: auto;
  background-position: top center;
  background-repeat: repeat;
}


/* --------------------------------------------------------------------------
   03. Typography (排版與標題)
   -------------------------------------------------------------------------- */

/* 頁面大標題 (Page Title) - 支援雙主題*/
.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;
}
body.theme-p3 .page-title {
  color: var(--brand-strong);
}

.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;
}
.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(--text-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; 
}

/* --------------------------------------------------------------------------
   04. Layout & Grid (佈局與網格)
   -------------------------------------------------------------------------- */
.container {
  padding: 30px 0;
}

/* 響應式通用網格 */
.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;
}


.clear { clear: both; }


/* --------------------------------------------------------------------------
   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);
}
/* ---------------------------------------------------------
   [預設主題] 春日慕夏 (Mucha Rose Dream) 
   象牙奶油 (Ivory Cream) 與微光玫瑰金 (Rose Gold) 的溫暖漸層
   --------------------------------------------------------- */
.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;
}
/* ---------------------------------------------------------
   [主題 B] 赤色試探 (Neon Bar) 
   深夜紫黑 (Dark Purple/Black) 頂部透出微弱霓虹酒紅 (Neon Burgundy)
   --------------------------------------------------------- */
body.theme-p3 .card-top {
  background: linear-gradient(180deg, rgba(110, 0, 32, 0.45) 0%, rgba(20, 8, 24, 0.95) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 46, 94, 0.15); 
}
.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;
}

/* ---------------------------------------------------------
   標籤 (Tag) - 預設：春日慕夏 (Mucha Rose Dream)
   --------------------------------------------------------- */
.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,210,112,.08), transparent 30%),
    linear-gradient(0deg, rgba(176,18,58,.10), transparent 45%),
    var(--surface-card);
  border: 1px solid var(--border-default);
}
body.theme-p3 .card:hover {
  background:
    linear-gradient(180deg, rgba(255,210,112,.16), transparent 32%),
    linear-gradient(0deg, rgba(176,18,58,.16), transparent 50%),
    var(--surface-soft);
  transform: translateY(-3px);
  transition: .18s ease;
}
body.theme-p3 .card .name {
  color: var(--text-primary);
  text-shadow: 0 0 14px rgba(176,18,58,.28); 
}
body.theme-p3 .card .tag {
  color: var(--accent-primary);
  border: 1px solid rgba(255,210,112,.60);
  background: rgba(255,210,112,.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; 
}
/* 產包標題 (Header Banner) 滿版設定 */
.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; /* 取消左右 padding，由 text-align 控管 */
  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: #140818 !important; /* 強制深黑紫底 */
  border-color: rgba(255, 210, 112, 0.40) !important;
}
.theme-p3 .pack-grid-3col .meta p {
  color: #D7C7E8 !important; 
}
.theme-p3 .pack-grid-3col .rank-link {
  background: #FFD270 !important; /* 金底 */
  color: #140818 !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) 
   --------------------------------------------------------- */
.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: 30px 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;
  /*font-size: 14px;*/
  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);
}

.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; }
/* ---------------------------------------------------------
   區廳任務獎勵表 (Task Table)
   --------------------------------------------------------- */
.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-cell--reward .qty {
  color: var(--task-reward-color);
  font-weight: 900;
  font-size: 18px;
}

.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: 800; }


/*前三名預覽表格*/
.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); 
}

/* 2. 表頭 (thead) 設定 */
.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);
}

/* 3. 表格內容 (tbody) 設定 */
.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;
}

/* 4. 名次欄位特化 (第一欄) */
.hall .table--tasks tbody td:first-child {
  font-weight: bold;
  font-size: 18px;
  color: var(--brand-strong); 
}

/* 5. 虛寶圖片瘦身 (只限制 hall 裡面的圖片，解決爆版) */
.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);
}

/* 6. 虛寶文字說明微調 (第三欄) */
.hall .table--tasks tbody td:nth-child(3) {
 /* font-size: 14px; */
  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: 16p x; line-height: 1.8; }


/* --------------------------------------------------------------------------
   08. Legacy (舊版 2010 年代 Funtown 版面，為向下相容保留)
   註：此區塊依賴 images/ 下的圖素，類別名稱已避開與現代組件衝突
   -------------------------------------------------------------------------- */
#outer {
  width: 100%;
  background-image: url(images/bg.png);
  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.png) no-repeat top left; }
#outer #weapper #header #menu { width:920px; height: 158px; position: absolute; top: 408px; 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: 65px; position: absolute; right: 0px; }/*25原先設定*/
.icon01 a { display: block; width: 117px; height: 65px; 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: 44px; position: absolute; top: 65px; right:0px; }/*25原先設定*/
.icon02 a { display: block; width: 117px; height: 44px; 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: 288px; height: 63px; position: absolute; left: 33px; top: 2px; }
.but01 a { display: block; width: 288px; height: 63px; 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: 288px; height: 63px; position: absolute; left: 300px; top: 2px; }
.but02 a { display: block; width: 288px; height: 63px; 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: 318px; height: 63px; position: absolute; left: 566px; top: 2px; }
.but03 a { display: block; width: 318px; height: 63px; background-image: url(images/but_03.png); background-repeat: no-repeat; background-position: 0px 158px; }
.but03 a:hover { background-position: top left; }

/*注意事項*/
.but07 { display: block; width: 74px; height: 74px; position: absolute; top: 330px; right: 80px; }
.but07 a { display: block; width: 74px; height: 74px; 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; }
}





