/* assets/css/style.css - 核心樣式表 (完整合併版) */

/* =========================================
   1. CSS 變數定義 (淺色/深色主題切換核心)
   ========================================= */
:root {
  /* 淺色模式 (預設) */
  --bg-body-grad-1: #dff3ff;
  --bg-body-grad-2: #b7ddff;
  --bg-card: rgba(255, 255, 255, 0.96);
  --bg-header: linear-gradient(90deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
  
  --text-main: #102a43;
  --text-sub: #64748b;
  --border-color: rgba(15, 23, 42, 0.1);
  --card-shadow: 0 4px 6px rgba(0,0,0,0.05);

  --nav-text: rgba(255,255,255,0.9);
  --nav-hover-bg: rgba(255,255,255,0.15);
  
  /* 果實稀有度標籤顏色 (淺色版) */
  --tag-common: #f8f9fa;   --tag-common-text: #6c757d;
  --tag-uncommon: #e8f5e9; --tag-uncommon-text: #2e7d32;
  --tag-rare: #e3f2fd;     --tag-rare-text: #1565c0;
  --tag-legendary: #f3e5f5;--tag-legendary-text: #7b1fa2;
  --tag-mythical: #ffebee; --tag-mythical-text: #c62828;
  
  /* 種族標籤顏色 (淺色版) */
  --tag-v1: #f5f5f5; --tag-v1-text: #666;
  --tag-v2: #e3f2fd; --tag-v2-text: #1565c0;
  --tag-v3: #f3e5f5; --tag-v3-text: #7b1fa2;
  --tag-v4: #ffebee; --tag-v4-text: #c62828;
}

/* 當 body 加上 .dark-mode 類別時，覆寫變數 */
body.dark-mode {
  --bg-body-grad-1: #0f172a;
  --bg-body-grad-2: #1e293b;
  --bg-card: #1e293b;
  /* Header 在深色模式維持原樣，因為原本就是深藍色 */
  
  --text-main: #e2e8f0; /* 淺灰白 */
  --text-sub: #94a3b8;  /* 灰藍 */
  --border-color: #334155;
  --card-shadow: 0 4px 10px rgba(0,0,0,0.3);
  
  /* 果實稀有度標籤顏色 (深色版) */
  --tag-common: #374151;   --tag-common-text: #9ca3af;
  --tag-uncommon: #064e3b; --tag-uncommon-text: #6ee7b7;
  --tag-rare: #1e3a8a;     --tag-rare-text: #93c5fd;
  --tag-legendary: #581c87;--tag-legendary-text: #d8b4fe;
  --tag-mythical: #7f1d1d; --tag-mythical-text: #fca5a5;
}

/* =========================================
   2. 全域設定 (Base global styles)
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  background: linear-gradient(to bottom, var(--bg-body-grad-1), var(--bg-body-grad-2));
  color: var(--text-main);
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #0284c7;
  text-decoration: none;
}
body.dark-mode a {
  color: #38bdf8; /* 深色模式下連結亮一點 */
}

/* 背景大 LOGO */
.site-bg {
  position: fixed;
  inset: 0;
  background: url("../img/bloxfruits_logo_qingmingshanghetun.jpg") center 10% / 60vmin no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: multiply; /* 淺色模式用 */
}
body.dark-mode .site-bg {
  opacity: 0.05;
  mix-blend-mode: overlay; /* 深色模式用 */
}

/* =========================================
   3. 頁首 (Header) & 導覽列 (Nav)
   ========================================= */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0; /* 內距交給 inner */
  position: sticky;
  top: 0;
  background: var(--bg-header);
  border-bottom: 4px solid #fbbf24;
  z-index: 20000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Header 內部容器 */
.header-inner {
  width: 100%; max-width: 100%; margin: 0; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; 
  height: 90px;
}

.logo-wrap { display: flex; align-items: center; }
.logo-link { text-decoration: none; display: flex; align-items: center; gap: 15px; }

.site-logo-img {
  height: 70px; width: auto;
  border-radius: 12px;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.site-logo-img:hover { transform: scale(1.05); }

.site-title {
  font-weight: 900; font-size: 1.5rem; letter-spacing: 1px;
  color: #fff; text-shadow: 2px 2px 0px #0f172a; white-space: nowrap;
}

/* 導覽連結 */
.main-nav { display: flex; align-items: center; gap: 6px; }

.nav-link, .nav-dropdown-toggle {
  text-decoration: none; color: var(--nav-text);
  font-weight: 700; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 25px;
  border: 2px solid transparent; background: none; cursor: pointer;
  font-family: inherit; white-space: nowrap;
  transition: all 0.2s;
}
.nav-link:hover, .nav-dropdown-toggle:hover, .nav-dropdown-toggle.open {
  background: var(--nav-hover-bg); color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.nav-link.active {
  background: #fff; color: #0284c7;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* 揪團按鈕 (金色強調) */
.highlight-link { color: #facc15; border: 2px solid #facc15; }
.highlight-link:hover, .highlight-link.active { background: #facc15; color: #1e3a8a; }

/* NEW 標籤 */
.badge-new {
  position: absolute; top: -5px; right: -5px;
  background: #ef4444; color: #fff; font-size: 0.6rem;
  padding: 2px 4px; border-radius: 4px; line-height: 1;
  animation: bounce 1s infinite alternate;
  box-shadow: 0 0 5px #ef4444;
}
@keyframes bounce { 0% { transform: translateY(0); } 100% { transform: translateY(-3px); } }

/* 下拉選單 */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 120%; left: 0;
  background: #fff; border: 2px solid #e2e8f0; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2); min-width: 180px; padding: 8px;
  z-index: 1001;
}
/* 深色模式下的下拉選單 */
body.dark-mode .nav-dropdown-menu {
  background: #1e293b; border-color: #334155;
}

.nav-dropdown-menu.show { display: block; animation: popIn 0.2s; }
@keyframes popIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.nav-dropdown-menu a {
  display: block; padding: 10px 15px; color: #334155;
  text-decoration: none; font-size: 0.9rem; font-weight: 700;
  border-radius: 8px; transition: 0.1s;
}
body.dark-mode .nav-dropdown-menu a { color: #e2e8f0; }

.nav-dropdown-menu a:hover { background: #eff6ff; color: #0284c7; }
body.dark-mode .nav-dropdown-menu a:hover { background: #334155; color: #38bdf8; }

/* 會員按鈕 */
.nav-user-toggle {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.3); border: 2px solid rgba(255,255,255,0.3);
  color: #fff; padding: 4px 12px 4px 4px; border-radius: 50px;
  cursor: pointer; font-weight: 700; font-size: 0.9rem;
  transition: 0.2s; font-family: inherit; position: relative;
  margin-left: 5px;
}
.nav-user-toggle:hover { background: rgba(255,255,255,0.2); border-color: #fff; }
.nav-user-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; }

.nav-btn-login {
  background: #10b981; color: #fff; padding: 8px 20px; border-radius: 50px;
  text-decoration: none; font-weight: bold; font-size: 0.95rem;
  box-shadow: 0 4px 0 #059669; transition: transform 0.1s; white-space: nowrap;
  border: 2px solid #34d399; margin-left: 5px;
}
.nav-btn-login:active { transform: translateY(2px); box-shadow: none; }

/* 未讀紅點 */
.unread-badge {
  background: #ef4444; color: white; font-size: 0.7rem; 
  padding: 2px 5px; border-radius: 10px; min-width: 18px; 
  text-align: center; line-height: 1; font-weight: 800;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3); border: 2px solid #fff;
}
#nav-unread-badge { position: absolute; top: -5px; right: -5px; }

/* RWD 漢堡選單按鈕 */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; flex-direction: column; gap: 5px; }
.nav-toggle-bar { width: 26px; height: 3px; background: #fff; border-radius: 3px; }

/* RWD 響應式設定 */
@media (max-width: 900px) {
  .header-inner { height: 70px; padding: 0 15px; }
  .site-logo-img { height: 50px; }
  .site-title { display: none; } /* 手機版隱藏標題文字 */

  .nav-toggle { display: flex; }
  
  /* 手機版選單展開樣式 */
  .main-nav {
    display: none; /* 預設隱藏 */

    /* 用 fixed + 100vw，確保點開後寬度會跟著手機螢幕變化 */
    position: fixed;
    top: 70px; left: 0; right: 0;
    width: 100vw;
    max-width: 100vw;
    margin: 0;

    background: #1e293b; /* 深藍底 */
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    align-items: stretch;
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 10px;

    /* 避免選單太長擠出畫面 */
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

/* 透過 JS 加上 .nav-open 類別來顯示 */
  .site-header.nav-open .main-nav { display: flex; }

  .nav-link, .nav-dropdown-toggle { 
    color: #fff; padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); 
    border-radius: 0; text-align: left; width: 100%;
  }
  
  .nav-dropdown-menu { 
    position: static; box-shadow: none; border: none; 
    padding-left: 20px; margin-top: 0; display: none; 
    background: rgba(0,0,0,0.2); width: 100%;
  }
  .nav-dropdown-menu.show { display: block; animation: none; }
  .nav-dropdown-menu a { color: #cbd5e1; }

  .nav-user-toggle { justify-content: center; width: 100%; margin-top: 15px; background: rgba(255,255,255,0.1); }
  .nav-btn-login { display: block; text-align: center; margin: 15px 0 0 0; }
}

@media (min-width: 480px) and (max-width: 900px) {
  .site-title { display: block; font-size: 1rem; }
}

/* =========================================
   4. 主要內容區 (Main Content)
   ========================================= */
.site-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 15px 40px;
  position: relative;
}

/* 卡片區塊 */
.card-section {
  margin-bottom: 25px;
}
.card-section h1, .card-section h2 {
  margin-top: 0; color: var(--text-main);
}
.section-desc {
  color: var(--text-sub); margin-bottom: 15px;
}

/* 通用白色卡片 */
.card, .guide-detail-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  color: var(--text-main);
  transition: background 0.3s, border-color 0.3s;
}


/* =========================================
   4-2. 攻略頁版型（資訊條 + 延伸閱讀 + 左右欄）
   ========================================= */

.guide-meta-block {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  font-size: 0.9rem;
}

.guide-breadcrumb {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.guide-meta-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-meta-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guide-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.9rem;
}

.guide-meta-label {
  color: var(--text-sub);
}

.guide-meta-value {
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
}

.guide-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.guide-meta-tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.75rem;
}

.guide-meta-updated {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-sub);
}

/* 延伸閱讀區塊 */
.guide-related {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}

.guide-related-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.guide-related-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.guide-related-link {
  font-size: 0.85rem;
  color: var(--link-color);
  text-decoration: none;
}

.guide-related-link:hover {
  text-decoration: underline;
}

/* 兩欄版型：左側為攻略資訊卡，右側為圖文內容 */
@media (min-width: 960px) {
  .site-main .guide-meta-block {
    float: left;
    width: 280px;
    margin-right: 20px;
    margin-bottom: 24px;
  }
  .site-main .guide-meta-block ~ .card-section {
    margin-left: 300px;
  }
}

/* 手機 / 平板：改成上下排列 */
@media (max-width: 959.98px) {
  .site-main .guide-meta-block {
    float: none;
    width: 100%;
    margin-right: 0;
  }
  .site-main .card-section {
    margin-left: 0;
  }
}

/* 清除浮動，避免影響頁尾或之後區塊 */
.site-main::after {
  content: "";
  display: block;
  clear: both;
}

/* =========================================
   5. 頁尾 (Footer)
   ========================================= */
.site-footer {
  text-align: center;
  padding: 30px 20px 80px; /* 預留空間給浮動按鈕 */
  font-size: 0.85rem;
  color: var(--text-sub);
}


/* =========================================
   6. 官方 LINE 浮動按鈕與通知
   ========================================= */
.line-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 999;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}

/* 共用按鈕樣式 */
.line-float a, .theme-toggle-btn, .stock-timer-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 50px;
  text-decoration: none; font-size: 0.9rem; font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer; border: none;
}
.line-float a:hover, .theme-toggle-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}
.line-float a:active, .theme-toggle-btn:active {
  transform: translateY(0);
}

/* 社群按鈕顏色 */
.line-float a { background: #fff; color: #333; }
.line-float a:nth-last-child(1) { background: #06c755; color: #fff; } /* LINE */
.line-float a:nth-last-child(2) { background: #1877f2; color: #fff; } /* FB Group */
.line-float a:nth-last-child(3) { background: #3b5998; color: #fff; } /* FB Page */

.line-float-icon {
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.2); border-radius: 50%; font-size: 0.9rem;
}
.line-float-text { white-space: nowrap; }

/* 深色模式按鈕 */
.theme-toggle-btn {
  background: #333; color: #facc15;
}

/* 商人倒數計時器 */
.stock-timer-badge {
  background: #0f172a; color: #fff; border: 2px solid #facc15;
  cursor: default; /* 純展示，不點擊 */
}
.stock-timer-badge:hover { transform: none; }
.st-text { font-family: monospace; font-size: 1rem; letter-spacing: 1px; }

/* 手機版調整 */
@media (max-width: 768px) {
  .line-float { right: 15px; bottom: 80px; /* 避開可能的底部導航 */ }
  .line-float-text { display: none; /* 手機版隱藏文字，只留圖示，避免擋路 */ }
  .line-float a, .theme-toggle-btn { padding: 10px; border-radius: 50%; width: 45px; height: 45px; justify-content: center; }
  .stock-timer-badge { padding: 8px 12px; border-radius: 20px; width: auto; height: auto; }
}


/* =========================================
   7. 深色模式特殊覆寫 (針對特定元件)
   ========================================= */
   
/* 讓表單輸入框在深色模式下變暗 */
body.dark-mode input, 
body.dark-mode select, 
body.dark-mode textarea {
    background-color: #0f172a;
    color: #e2e8f0;
    border-color: #475569;
}
body.dark-mode input:focus, 
body.dark-mode select:focus, 
body.dark-mode textarea:focus {
    border-color: #38bdf8;
}

/* 讓次要按鈕變暗 */
body.dark-mode .btn.secondary,
body.dark-mode .filter-btn {
    background-color: #1e293b;
    color: #cbd5e1;
    border-color: #475569;
}
body.dark-mode .filter-btn.active {
    background-color: #0284c7;
    color: #fff;
}

/* 讓提示框變暗 */
body.dark-mode .highlight-box {
    background-color: #1e293b;
    color: #cbd5e1;
    border-left-color: #facc15;
}

/* 修正市集卡片在深色模式的樣子 */
body.dark-mode .market-card {
    background-color: #1e293b;
    border-color: #334155;
}
body.dark-mode .market-card-header {
    background-color: #0f172a;
    border-bottom-color: #334155;
}
body.dark-mode .mc-name-link { color: #e2e8f0; }
body.dark-mode .trade-box { background-color: #0f172a; border-color: #334155; }
body.dark-mode .trade-header { color: #94a3b8; }


/* =========================================
   [NEW] 通知氣泡 (Notification Toast) 樣式
   ========================================= */

.notification-toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none; /* 讓容器不擋點擊 */
}

.notification-toast {
  background: #fff;
  border-left: 5px solid #0ea5e9; /* 藍色邊條 */
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  padding: 12px 15px;
  width: 300px;
  pointer-events: auto; /* 讓卡片本身可點擊 */
  animation: slideInRight 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.3s;
}

.notification-toast:hover {
  transform: translateY(-3px);
}

.notification-toast.fade-out {
  opacity: 0;
  transform: translateX(20px);
}

.toast-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f9ff;
  flex-shrink: 0;
}

.toast-content {
  flex-grow: 1;
  min-width: 0; /* 讓文字截斷生效 */
}

.toast-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-message {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.toast-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.toast-close:hover {
  color: #ef4444;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 手機版調整：通知氣泡靠下置中 */
@media (max-width: 600px) {
  .notification-toast-container {
    bottom: 80px; /* 避開手機版底部選單 */
    right: 10px;
    left: 10px;
    align-items: center;
  }
  .notification-toast {
    width: 100%;
    max-width: 350px;
  }
}

/* =========================================
   [NEW] 個人不推薦通緝榜樣式
   ========================================= */

.wanted-board {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.wanted-card {
  position: relative;
  padding: 16px 14px 18px;
  background: #f6e4b4;
  background-image:
    radial-gradient(circle at 0 0, rgba(255,255,255,0.55) 0, transparent 55%),
    radial-gradient(circle at 100% 0, rgba(255,255,255,0.3) 0, transparent 55%),
    radial-gradient(circle at 0 100%, rgba(0,0,0,0.12) 0, transparent 65%),
    radial-gradient(circle at 100% 100%, rgba(0,0,0,0.18) 0, transparent 65%);
  border: 3px solid #b88a44;
  border-radius: 14px;
  box-shadow:
    0 10px 25px rgba(15,23,42,0.35),
    0 0 0 1px rgba(148,112,60,0.6);
  color: #1f2933;
  overflow: visible;
}

/* 內框線 + 輕微舊紙感裂痕 */
.wanted-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px solid rgba(120,63,4,0.42);
  border-radius: 10px;
  pointer-events: none;
  box-shadow:
    inset 0 0 18px rgba(0,0,0,0.14),
    inset 0 0 4px rgba(0,0,0,0.16);
}

/* 頂部釘子裝飾 */
.wanted-header {
  position: relative;
  text-align: center;
  margin-bottom: 10px;
  padding-top: 6px;
}
.wanted-header::before, .wanted-header::after {
  content: ""; position: absolute; top: -8px; width: 12px; height: 12px; border-radius: 999px; background: #d4d4d4;
  box-shadow: inset 0 0 2px rgba(0,0,0,0.6), 0 1px 2px rgba(0,0,0,0.45);
}
.wanted-header::before { left: 22px; }
.wanted-header::after { right: 22px; }

.wanted-title {
  font-size: 1.35rem; letter-spacing: 0.25em; font-weight: 800; text-align: center; color: #3b1f0b;
}
.wanted-subtitle {
  margin-top: 2px; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: #7c4214;
}

/* 內文 */
.wanted-body {
  display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 8px;
}
.wanted-avatar-placeholder {
  width: 120px; height: 120px; border-radius: 999px; border: 4px solid rgba(146,64,14,0.9);
  background: radial-gradient(circle at 30% 20%, #fff7d6 0, #facc6b 45%, #d9a84f 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 0 0 0 3px rgba(250,204,21,0.7), 0 4px 8px rgba(15,23,42,0.5); margin-bottom: 6px;
}
.wanted-avatar-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 999px;
  filter: sepia(0.3) saturate(0.9) contrast(1.06);
}
.wanted-id {
  font-weight: 700; font-size: 1rem; letter-spacing: 0.06em; color: #3b1f0b;
}
.wanted-tagline, .wanted-reason {
  font-size: 0.78rem; line-height: 1.4; text-align: center; color: #4b3b24;
}
.wanted-footer {
  margin-top: 4px; padding-top: 6px; border-top: 1px solid rgba(120,63,4,0.45);
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 0.75rem;
}
.wanted-bounty { font-weight: 700; color: #7c2d12; }
.wanted-updated { font-size: 0.72rem; color: #6b5131; }

/* Dark mode 調整：維持舊紙風格但整體變暗一點 */
html[data-theme="dark"] .wanted-card {
  background: #1f170f;
  background-image: radial-gradient(circle at 0 0, rgba(250,250,249,0.13) 0, transparent 55%), #1f170f;
  border-color: #a16207; color: #fef3c7;
}
html[data-theme="dark"] .wanted-title { color: #fbbf24; }
html[data-theme="dark"] .wanted-subtitle { color: #fed7aa; }
html[data-theme="dark"] .wanted-tagline, html[data-theme="dark"] .wanted-reason, html[data-theme="dark"] .wanted-updated { color: #fef3c7; }
/* =========================================
   新增兌換商店特效 (Added for Point Shop)
   ========================================= */

/* --- 1. 稱號樣式 (Titles) --- */
.nav-user-name .title-badge {
    font-size: 0.75rem; padding: 1px 5px; border-radius: 4px; 
    margin-left: 5px; vertical-align: middle; font-weight: bold;
}

/* 賞金獵人：深紅底白字 */
.nav-user-name:has(.title-hunter) .title-badge, .title-hunter {
    background: #7f1d1d; color: #fff; border: 1px solid #ef4444;
}
.title-hunter::after { content: " [賞金獵人]"; }

/* 海賊王：黑底金字 */
.nav-user-name:has(.title-pirate_king) .title-badge, .title-pirate_king {
    background: #000; color: #fbbf24; border: 1px solid #fbbf24;
    box-shadow: 0 0 5px #fbbf24;
}
.title-pirate_king::after { content: " [海賊王]"; }

/* 絕世奸商：綠底白字 */
.nav-user-name:has(.title-trader) .title-badge, .title-trader {
    background: #065f46; color: #a7f3d0; border: 1px solid #34d399;
}
.title-trader::after { content: " [絕世奸商]"; }


/* --- 2. ID 顏色特效 (Name Colors) --- */

/* ⚡ 響雷路霸 (藍色閃電) */
.name-thunder {
    color: #0ea5e9;
    text-shadow: 0 0 5px #38bdf8, 0 0 10px #0284c7;
    animation: thunderFlash 1.5s infinite alternate;
}
@keyframes thunderFlash {
    0% { text-shadow: 0 0 5px #38bdf8; filter: brightness(1); }
    100% { text-shadow: 0 0 15px #38bdf8, 0 0 25px #fff; filter: brightness(1.3); }
}

/* 👽 駭客矩陣 (數位綠) */
.name-matrix {
    color: #22c55e;
    font-family: 'Courier New', monospace; /* 復古字體 */
    text-shadow: 2px 2px 0px #000;
    letter-spacing: 1px;
}

/* 👑 土豪金 (流金特效) */
.name-gold {
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
    text-shadow: 0px 1px 1px rgba(0,0,0,0.2);
    background-size: 200% auto;
    animation: shineGold 3s linear infinite;
}
@keyframes shineGold {
    to { background-position: 200% center; }
}

/* =========================================================
   Draco Flow (龍族 V4 流程導覽)
   - 中文在前、英文在後
========================================================= */
.site-main .draco-flow{
  background:#fff;
  border:1px solid #e9ecef;
  border-radius:12px;
  padding:16px 16px 12px 16px;
  margin: 0 0 22px 0;
  box-shadow:0 4px 12px rgba(0,0,0,.06);
}
.site-main .draco-flow-head{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:12px;
}
.site-main .draco-flow-title{
  font-weight:800;
  color:#222;
  font-size:1.02rem;
}
.site-main .draco-flow-sub{
  color:#666;
  font-size:.92rem;
}
.site-main .draco-flow-steps{
  list-style:none;
  display:flex;
  gap:10px;
  padding:0;
  margin:0;
  overflow-x:auto;
}
.site-main .draco-flow-step{
  min-width: 190px;
  flex:0 0 auto;
}
.site-main .draco-flow-link{
  display:block;
  text-decoration:none;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid #f0f0f0;
  background:#fafafa;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.site-main .draco-flow-link:hover{
  transform: translateY(-1px);
  box-shadow:0 6px 14px rgba(0,0,0,.08);
  background:#fff;
}
.site-main .draco-flow-label{
  display:block;
  font-weight:800;
  color:#222;
  margin-bottom:4px;
  line-height:1.25;
}
.site-main .draco-flow-hint{
  display:block;
  color:#666;
  font-size:.86rem;
  line-height:1.3;
}
.site-main .draco-flow-step.done .draco-flow-link{
  border-color:#d6f5e3;
  background:#f2fff7;
}
.site-main .draco-flow-step.done .draco-flow-label{
  color:#0f6b3d;
}
.site-main .draco-flow-step.active .draco-flow-link{
  border-color:#ffe4b0;
  background:#fff7e6;
}
.site-main .draco-flow-step.active .draco-flow-label{
  color:#c76a00;
}
.site-main .draco-flow-note{
  margin-top:10px;
  padding:10px 12px;
  border-radius:10px;
  background:#f8f9fa;
  color:#333;
  font-size:.92rem;
  border:1px dashed #e9ecef;
}
@media (max-width: 768px){
  .site-main .draco-flow-step{min-width: 170px;}
}


/* ===============================
   新手懶人版：8 步驟 + 翻車點
   （由 includes/guide_kids_quick.php 輸出）
   =============================== */
.kids-quick{
  margin: 14px 0 18px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}
.kids-quick-head{ margin-bottom: 10px; }
.kids-quick-title{
  margin: 0 0 6px;
  font-weight: 900;
  font-size: 1.12rem;
  line-height: 1.2;
}
.kids-quick-goal{
  margin: 0 0 6px;
  font-weight: 900;
  color: #0f172a;
}
.kids-quick-sub{
  margin: 0;
  color: rgba(15,23,42,.75);
  font-weight: 800;
  line-height: 1.55;
  font-size: .92rem;
}
.kids-quick-body{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 900px){
  .kids-quick-body{ grid-template-columns: 1fr 1fr; }
}
.kids-quick-col{
  background: rgba(248,250,252,.75);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 14px;
  padding: 12px 12px 10px;
}
.kids-quick-h3{
  margin: 0 0 8px;
  font-weight: 900;
  font-size: 1rem;
}
.kids-quick-ol, .kids-quick-ul{
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.7;
  font-weight: 800;
  color: rgba(15,23,42,.86);
  font-size: .95rem;
}
.kids-quick-ol li, .kids-quick-ul li{ margin: 4px 0; }
.kids-quick-tip{
  margin-top: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(59,130,246,.10);
  border: 1px solid rgba(59,130,246,.22);
  font-weight: 900;
  line-height: 1.6;
}
