/* =========================================
   遊戲介紹儀表板 (Game Info Dashboard)
   ========================================= */

/* 1. 主容器 */
.info-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 2. 搜尋列 (Search Bar) */
.info-search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
}

.info-search-bar input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #444;
    border-radius: 50px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s;
}

.info-search-bar input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    outline: none;
}

.info-search-bar i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

/* 觸發秘典的點擊按鈕（取代原本的輸入框） */
.info-search-bar--trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px 14px 50px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: #aaa;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    overflow: hidden;
}

.info-search-bar--trigger::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50px;
    padding: 1px;
    background: linear-gradient(90deg,
        rgba(255, 82, 82, 0.0),
        rgba(255, 82, 82, 0.6),
        rgba(212, 175, 55, 0.6),
        rgba(77, 166, 255, 0.6),
        rgba(77, 166, 255, 0.0));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

.info-search-bar--trigger:hover,
.info-search-bar--trigger:focus-visible {
    background: rgba(20, 15, 30, 0.8);
    color: #fff;
    transform: translateY(-1px);
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.5),
        0 0 18px rgba(255, 82, 82, 0.12),
        0 0 18px rgba(77, 166, 255, 0.12);
    outline: none;
}

.info-search-bar--trigger:hover::before,
.info-search-bar--trigger:focus-visible::before {
    opacity: 1;
}

.info-search-bar--trigger i {
    color: transparent;
    background: linear-gradient(135deg, #ff5252, #4da6ff);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 16px;
    transition: filter 0.25s;
}

.info-search-bar--trigger:hover i {
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6));
}

.info-search-placeholder {
    flex: 1;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.5px;
}

.info-search-bar--trigger:hover .info-search-placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.info-search-kbd-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.info-search-kbd {
    font-family: Consolas, Monaco, monospace;
    font-size: 11px;
    padding: 2px 7px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
    line-height: 1.2;
}

.info-search-kbd-plus {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
}

@media (max-width: 600px) {
    .info-search-bar--trigger { padding: 12px 14px 12px 44px; gap: 10px; }
    .info-search-bar--trigger i { left: 16px; }
    .info-search-placeholder { font-size: 14px; }
    .info-search-kbd { font-size: 10.5px; padding: 2px 6px; }
}

/* 3. 儀表板網格 (Dashboard Grid) */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* 自動適應寬度 */
    gap: 30px;
}

/* 4. 分組區塊 (Groups) */
.dashboard-group {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.dashboard-group:hover {
    transform: translateY(-5px);
    border-color: #555;
}

/* 特別強調的區塊 (如內掛) */
.dashboard-group.highlight-group {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
}

.group-title {
    color: #d4af37;
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 5. 按鈕網格 */
.btn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 一排兩個按鈕 */
    gap: 15px;
}

/* 6. 功能按鈕 (Dashboard Button) */
.dashboard-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2a2a2a;
    color: #ccc;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.dashboard-btn i {
    color: #888;
    width: 20px;
    text-align: center;
    transition: color 0.2s;
}

/* Hover 效果：變亮 + 金色邊框 */
.dashboard-btn:hover {
    background: #333;
    color: #fff;
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.dashboard-btn:hover i {
    color: #d4af37;
}

/* 發光按鈕 (Glow Btn - 用於重要功能) */
.glow-btn {
    background: linear-gradient(135deg, #333, #222);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.glow-btn i {
    color: #d4af37;
}

/* 7. 搜尋結果面板 (Search Results Panel) */
.search-results-panel {
    max-width: 800px;
    margin: 0 auto 40px;
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #ccc;
}

.search-result-item:hover {
    background: #333;
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    color: #fff;
}

.search-result-item:hover .search-result-icon {
    color: #d4af37;
}

.search-result-left {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    border-radius: 8px;
    margin-top: 2px;
}

.search-result-icon {
    font-size: 16px;
    color: #888;
    transition: color 0.2s;
}

.search-result-right {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 16px;
    font-weight: bold;
    color: #eee;
    margin-bottom: 4px;
}

.search-result-group {
    font-size: 12px;
    color: #777;
    margin-bottom: 4px;
}

.search-result-group i {
    margin-right: 4px;
}

.search-result-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
}

.search-highlight {
    color: #d4af37;
    font-weight: bold;
}

.search-content-badge {
    display: inline-block;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.3);
    font-weight: normal;
    vertical-align: middle;
    margin-left: 6px;
}

.search-result-item.content-match {
    border-left: 3px solid rgba(212, 175, 55, 0.4);
}

.search-no-result {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.search-no-result i {
    margin-right: 8px;
    font-size: 20px;
}

@media (max-width: 600px) {
    .search-result-item {
        padding: 12px 15px;
        gap: 12px;
    }
    .search-result-title {
        font-size: 14px;
    }
    .search-result-desc {
        font-size: 12px;
    }
}

/* =========================================
   全域搜尋 Modal — 神策符印（火冰雙色魔導陣）
   ========================================= */

.global-search-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8vh;
    padding-left: 15px;
    padding-right: 15px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.global-search-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.gs-backdrop {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at top, rgba(255, 82, 82, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(77, 166, 255, 0.10) 0%, transparent 50%),
        rgba(5, 5, 12, 0.85);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
}

/* 漂浮粒子（火紅 / 冰藍） */
.gs-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.gs-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0;
    animation: gsParticleRise 8s ease-in infinite;
}

.gs-p-fire {
    background: radial-gradient(circle, #ff8a80 0%, #ff5252 50%, transparent 75%);
    box-shadow: 0 0 8px #ff5252;
}

.gs-p-ice {
    background: radial-gradient(circle, #80d8ff 0%, #4da6ff 50%, transparent 75%);
    box-shadow: 0 0 8px #4da6ff;
}

.gs-particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.gs-particle:nth-child(2) { left: 30%; animation-delay: 1.6s; }
.gs-particle:nth-child(3) { left: 80%; animation-delay: 3.2s; }
.gs-particle:nth-child(4) { left: 20%; animation-delay: 0.8s; }
.gs-particle:nth-child(5) { left: 65%; animation-delay: 2.4s; }
.gs-particle:nth-child(6) { left: 90%; animation-delay: 4.0s; }

@keyframes gsParticleRise {
    0%   { bottom: -10px; opacity: 0; transform: translateX(0); }
    15%  { opacity: 0.7; }
    50%  { transform: translateX(20px); }
    85%  { opacity: 0.7; }
    100% { bottom: 110%; opacity: 0; transform: translateX(-15px); }
}

.gs-dialog {
    position: relative;
    width: 100%;
    max-width: 800px;
    /* 紫黑漸層 + 微弱符文紋路 */
    background:
        radial-gradient(circle at 50% -10%, rgba(255, 82, 82, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 110%, rgba(77, 166, 255, 0.10) 0%, transparent 40%),
        linear-gradient(180deg, #14101e 0%, #0c0a18 100%);
    border: 1px solid transparent;
    background-clip: padding-box;
    border-radius: 16px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.9),
        0 0 80px rgba(255, 82, 82, 0.08),
        0 0 80px rgba(77, 166, 255, 0.08);
    overflow: hidden;
    animation: gsSummon 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 火冰漸層邊框 */
.gs-dialog::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg,
        #ff5252 0%,
        #ff9800 25%,
        #d4af37 50%,
        #00bcd4 75%,
        #4da6ff 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
}

@keyframes gsSummon {
    0%   { transform: translateY(-30px) scale(0.92); opacity: 0; }
    50%  { opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* 旋轉符印 */
.gs-sigil-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 22px auto 8px;
}

.gs-sigil {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 6px rgba(255, 82, 82, 0.35))
            drop-shadow(0 0 6px rgba(77, 166, 255, 0.35));
}

.gs-sigil-outer { animation: gsRotate 24s linear infinite; }
.gs-sigil-inner { animation: gsRotate 14s linear infinite reverse; }

@keyframes gsRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.gs-sigil-glow {
    position: absolute;
    inset: 25%;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(212, 175, 55, 0.35) 0%,
        rgba(255, 82, 82, 0.18) 30%,
        rgba(77, 166, 255, 0.18) 60%,
        transparent 80%);
    filter: blur(8px);
    animation: gsPulse 2.6s ease-in-out infinite;
}

@keyframes gsPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50%      { transform: scale(1.18); opacity: 1; }
}

/* 標題：火 + 冰 雙色 */
.gs-title {
    text-align: center;
    padding: 0 20px 14px;
    font-family: "Noto Sans TC", system-ui, sans-serif;
}

.gs-title-fire,
.gs-title-ice {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 4px;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 18px currentColor;
}

.gs-title-fire {
    background-image: linear-gradient(180deg, #ff8a80, #ff5252);
}

.gs-title-ice {
    background-image: linear-gradient(180deg, #80d8ff, #4da6ff);
}

.gs-title-sub {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.gs-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    margin: 0 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gs-header:focus-within {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow:
        0 0 0 3px rgba(255, 82, 82, 0.08),
        0 0 0 6px rgba(77, 166, 255, 0.05),
        0 0 18px rgba(212, 175, 55, 0.18);
}

.gs-header > i {
    background: linear-gradient(135deg, #ff5252, #4da6ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 18px;
    flex-shrink: 0;
}

.gs-header input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #f0e8ff;
    font-size: 16px;
    padding: 4px 0;
    min-width: 0;
    font-family: "Noto Sans TC", system-ui, sans-serif;
}

.gs-header input::placeholder { color: rgba(255, 255, 255, 0.3); }

.gs-kbd {
    font-family: Consolas, Monaco, monospace;
    font-size: 11px;
    padding: 2px 7px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.gs-kbd:hover {
    background: rgba(255, 82, 82, 0.15);
    border-color: rgba(255, 82, 82, 0.5);
    color: #fff;
}

.gs-results {
    max-height: 50vh;
    overflow-y: auto;
    padding: 14px 12px 8px;
    margin: 0 8px;
}

.gs-results::-webkit-scrollbar { width: 6px; }
.gs-results::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff5252, #4da6ff);
    border-radius: 3px;
    opacity: 0.5;
}

.gs-tip {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 30px 20px;
    font-size: 13px;
    line-height: 1.8;
}

.gs-tip i {
    background: linear-gradient(135deg, #ff9800, #d4af37);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 16px;
    margin-right: 6px;
}

.gs-tip .gs-tip-hint {
    display: block;
    margin-top: 8px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

/* 最近 / 熱門搜尋區塊 */
.gs-section {
    padding: 8px 14px 4px;
}

.gs-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 9px;
}

.gs-section-head i {
    margin-right: 5px;
    color: #d4af37;
}

.gs-section-clear {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: color 0.15s;
}

.gs-section-clear:hover { color: #ff8a80; }

.gs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gs-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.16s;
    user-select: none;
}

.gs-chip i { font-size: 11px; color: rgba(255, 255, 255, 0.4); }

.gs-chip:hover {
    background: linear-gradient(90deg, rgba(255, 82, 82, 0.12), rgba(77, 166, 255, 0.12));
    border-color: rgba(212, 175, 55, 0.4);
    color: #fff;
    transform: translateY(-1px);
}

.gs-chip:hover i { color: #d4af37; }

/* 熱門 chip — 火焰色強調 */
.gs-chip-hot {
    border-color: rgba(255, 152, 0, 0.25);
}

.gs-chip-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff5252, #ff9800);
    color: #fff;
    font-size: 10.5px;
    font-weight: bold;
}

.gs-chip-hot:nth-child(n+4) .gs-chip-rank {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
}

.gs-chip-hot:hover {
    border-color: rgba(255, 152, 0, 0.6);
    box-shadow: 0 0 12px rgba(255, 152, 0, 0.2);
}

.gs-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.18s;
    border-left: 2px solid transparent;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    margin-bottom: 3px;
    position: relative;
}

.gs-item:hover,
.gs-item.is-active {
    background: linear-gradient(90deg,
        rgba(255, 82, 82, 0.10) 0%,
        rgba(77, 166, 255, 0.10) 100%);
    border-left-color: #d4af37;
    color: #fff;
    transform: translateX(2px);
}

.gs-item.is-active::after {
    content: "✦";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #d4af37;
    font-size: 13px;
    text-shadow: 0 0 6px #d4af37;
}

.gs-item-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-top: 1px;
    transition: all 0.18s;
}

.gs-item:hover .gs-item-icon,
.gs-item.is-active .gs-item-icon {
    background: linear-gradient(135deg, rgba(255, 82, 82, 0.18), rgba(77, 166, 255, 0.18));
    border-color: rgba(212, 175, 55, 0.4);
    color: #d4af37;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.gs-item-body { flex: 1; min-width: 0; }

.gs-item-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #eee;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gs-item-group {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 3px;
}

.gs-item-group i {
    margin-right: 4px;
    color: rgba(212, 175, 55, 0.6);
}

.gs-item-desc {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gs-item-badge {
    display: inline-block;
    font-size: 10.5px;
    padding: 1px 6px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255, 82, 82, 0.15), rgba(77, 166, 255, 0.15));
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-left: 6px;
    vertical-align: middle;
}

.gs-item-badge.gs-badge-ext {
    background: linear-gradient(90deg, rgba(0, 188, 212, 0.18), rgba(77, 166, 255, 0.18));
    color: #4dd0e1;
    border-color: rgba(0, 188, 212, 0.4);
}

.gs-item-badge.gs-badge-ext i {
    font-size: 9.5px;
    margin-right: 2px;
}

.gs-item.is-external:hover,
.gs-item.is-external.is-active {
    background: linear-gradient(90deg,
        rgba(0, 188, 212, 0.10) 0%,
        rgba(77, 166, 255, 0.10) 100%);
    border-left-color: #00bcd4;
}

.gs-item.is-external:hover .gs-item-icon,
.gs-item.is-external.is-active .gs-item-icon {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.18), rgba(77, 166, 255, 0.18));
    border-color: rgba(0, 188, 212, 0.4);
    color: #4dd0e1;
    box-shadow: 0 0 12px rgba(0, 188, 212, 0.25);
}

.gs-item.is-external.is-active::after {
    color: #4dd0e1;
    text-shadow: 0 0 6px #4dd0e1;
    content: "↗";
}

.gs-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    padding: 40px 20px;
    font-size: 14px;
}

.gs-empty i {
    font-size: 28px;
    opacity: 0.3;
    margin-bottom: 10px;
    display: block;
    background: linear-gradient(135deg, #ff5252, #4da6ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gs-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.4);
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.2);
}

.gs-footer .gs-shortcut { margin-left: auto; }

.gs-mark {
    color: transparent;
    background-image: linear-gradient(90deg, #ff5252, #d4af37, #4da6ff);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 900;
    padding: 0 1px;
    text-shadow: 0 0 4px rgba(212, 175, 55, 0.5);
}

@media (max-width: 600px) {
    .global-search-modal { padding-top: 4vh; }
    .gs-sigil-wrap { width: 88px; height: 88px; margin: 18px auto 6px; }
    .gs-title-fire, .gs-title-ice { font-size: 19px; letter-spacing: 3px; }
    .gs-title-sub { letter-spacing: 2px; }
    .gs-header { padding: 12px 16px; margin: 0 14px; }
    .gs-header input { font-size: 15px; }
    .gs-results { padding: 10px 8px; margin: 0 6px; }
    .gs-item { padding: 9px 12px; }
    .gs-item-title { font-size: 13.5px; }
    .gs-footer { gap: 10px; font-size: 10.5px; padding: 9px 16px; }
    .gs-footer .gs-shortcut { display: none; }
}

/* 右下角浮動觸發按鈕：神策符印縮影 */
.global-search-trigger {
    position: fixed;
    right: 18px;
    bottom: 95px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 82, 82, 0.18) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(77, 166, 255, 0.18) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, #1a1525 0%, #0a0814 100%);
    border: 1px solid transparent;
    cursor: pointer;
    z-index: 9990;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    padding: 0;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.5),
        0 0 12px rgba(255, 82, 82, 0.25),
        0 0 12px rgba(77, 166, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.global-search-trigger::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    padding: 1px;
    background: conic-gradient(from 0deg,
        #ff5252, #ff9800, #d4af37, #4da6ff, #00bcd4, #ff5252);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: gsRotate 8s linear infinite;
}

.global-search-trigger svg {
    width: 70%;
    height: 70%;
    position: relative;
    z-index: 1;
    animation: gsRotate 18s linear infinite reverse;
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
}

.global-search-trigger:hover {
    transform: scale(1.1);
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.6),
        0 0 18px rgba(255, 82, 82, 0.45),
        0 0 18px rgba(77, 166, 255, 0.45);
}

.global-search-trigger:active { transform: scale(0.95); }

@media (max-width: 600px) {
    .global-search-trigger {
        right: 14px;
        bottom: 82px;
        width: 48px;
        height: 48px;
    }
}

/* =========================================
   遊戲介紹內頁樣式 (Info Detail Pages)
   ========================================= */

/* 1. 數據卡片網格 (Stats Grid) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #222, #111);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
}

.stat-icon {
    font-size: 24px;
    color: #666;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-value small {
    font-size: 14px;
    color: #888;
    margin-left: 2px;
}

.stat-label {
    font-size: 14px;
    color: #d4af37;
    text-transform: uppercase;
}

/* 2. 設定列表 (Config List) */
.config-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.config-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #333;
    font-size: 16px;
}

.config-list li:last-child {
    border-bottom: none;
}

.config-label {
    color: #aaa;
}

.config-value {
    color: #fff;
    font-weight: bold;
}

.config-value.highlight {
    color: #d4af37;
}

/* 3. 提示區塊 (Info Note) */
.info-note {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    color: #ddd;
    font-size: 14px;
    line-height: 1.6;
}

.info-note i {
    color: #d4af37;
    margin-right: 5px;
}

/* 4. 活動加倍區塊 (Bonus Box) */
.highlight-card {
    border-color: #ff6b6b;
    /* 紅色邊框強調 */
    background: rgba(58, 28, 28, 0.3);
}

.badge-red {
    background: #ff6b6b;
    color: #fff;
}

.bonus-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bonus-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 8px;
}

.bonus-change {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bonus-change .old {
    text-decoration: line-through;
    color: #888;
    font-size: 14px;
}

.bonus-change .new {
    color: #greenyellow;
    /* 螢光綠 */
    font-weight: bold;
    font-size: 18px;
}

/* 5. 現代化表格 (Modern Table) */
.table-responsive {
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.modern-table th {
    background: #222;
    color: #d4af37;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    border-bottom: 2px solid #333;
}

.modern-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #333;
    color: #ccc;
    font-size: 14px;
}

.modern-table td.plus {
    color: #4da6ff;
    /* 藍色數值 */
    font-weight: bold;
}

/* 6. 攻略按鈕網格 (Guide Links) */
.guide-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.guide-btn {
    display: flex;
    align-items: center;
    background: #222;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s;
    border: 1px solid #333;
}

.guide-btn:hover {
    background: #333;
    border-color: #d4af37;
    transform: translateX(5px);
}

.guide-icon {
    font-size: 24px;
    margin-right: 15px;
}

.guide-text {
    flex: 1;
    font-weight: bold;
}

.guide-btn .arrow {
    color: #666;
    transition: color 0.3s;
}

.guide-btn:hover .arrow {
    color: #d4af37;
}

/* 職業圖示列 */
.class-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 24px;
    color: #555;
}



/* =========================================
   職業介紹專用樣式 (Role Info Styles)
   ========================================= */

/* 1. 職業切換導航 (Role Navigation) */
.role-nav-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    border: 1px solid #333;
}

.role-nav-btn {
    padding: 8px 20px;
    background: #222;
    color: #888;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.role-nav-btn:hover,
.role-nav-btn.active {
    background: #d4af37;
    color: #000;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* 2. 職業主卡片 (Role Main Card) */
.role-card {
    display: flex;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid #333;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    position: relative;
}

/* 金色邊框光暈 */
.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #d4af37;
    box-shadow: 0 0 15px #d4af37;
}

/* 左側圖片區 */
.role-img-box {
    flex: 1;
    min-width: 300px;
    background: radial-gradient(circle at center, #333 0%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.role-char-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
    transition: transform 0.3s;
}

.role2-img-box {
    flex: 1;
    min-width: 300px;
    background: radial-gradient(circle at center, #333 0%, #000 100%);
    display: flex;
    /* align-items: center; */
    justify-content: center;
    /* padding: 20px; */
    position: relative;
}

.role-card:hover .role-char-img {
    transform: scale(1.05);
}

/* 右側文字區 */
.role-info-box {
    flex: 1.5;
    padding: 40px;
}

.role-title {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
}

.role-title span {
    font-size: 14px;
    background: #d4af37;
    color: #000;
    padding: 3px 10px;
    border-radius: 4px;
    vertical-align: middle;
}

.role-desc {
    color: #ccc;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    border-left: 2px solid #444;
    padding-left: 20px;
}

/* 3. 能力進度條 (Stats Bars) */
.role-stats {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.stat-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-name {
    width: 80px;
    color: #888;
    font-size: 14px;
}

.stat-bar-bg {
    flex: 1;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #ffeebb);
    border-radius: 4px;
    position: relative;
}

/* 光暈動畫 */
.stat-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

/* =========================================
   職業導航列 (Role Navigation Bar)
   ========================================= */
/* =========================================
   7. 職業介紹專用寬版容器 (Wider Container)
   ========================================= */
.role-container {
    max-width: 1000px;
    /* 這裡設定為你要的 1000px */
    margin: 0 auto;
    /* 置中 */
    padding: 20px;
    color: #ddd;
}

/* 確保在手機上不會因為太寬而破版 */
@media (max-width: 1024px) {
    .role-container {
        max-width: 95%;
        /* 平板或手機時自動縮小 */
    }
}

/* 外層包裝：確保置中 */
.role-nav-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 40px;
    /* 與下方內容拉開距離 */
}

/* 導航容器：玻璃質感膠囊 */
.role-nav-container {
    display: flex;
    flex-wrap: wrap;
    /* 手機版自動換行 */
    justify-content: center;
    gap: 10px;
    /* 按鈕間距 */
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.6);
    /* 深黑半透明 */
    border: 1px solid #333;
    border-radius: 50px;
    /* 大圓角 */
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 按鈕樣式 */
.role-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    /* 圖示與文字距離 */
    padding: 10px 25px;
    color: #888;
    /* 預設顏色 (暗) */
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    border-radius: 30px;
    /* 按鈕圓角 */
    transition: all 0.3s ease;
    border: 1px solid transparent;
    /* 預留邊框空間 */
    background: transparent;
}

/* 小圖示 */
.role-icon {
    font-size: 18px;
    filter: grayscale(100%);
    /* 預設黑白 */
    transition: all 0.3s;
}

/* --- 滑鼠移過去 (Hover) --- */
.role-nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: #666;
    transform: translateY(-2px);
    text-decoration: none;
}

/* --- 被選中狀態 (Active) --- */
/* 當按鈕加上 class="active" 時 */
.role-nav-item.active {
    background: #d4af37;
    /* 金色實心背景 */
    color: #000;
    /* 文字變黑 */
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    /* 金色發光 */
    font-weight: 900;
}

.role-nav-item.active .role-icon {
    filter: grayscale(0%);
    /* 圖示恢復彩色 (如果有的話) */
}


/* 現代化表格樣式 */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    /* 手機版可左右滑動 */
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid #333;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
    color: #ccc;
    font-size: 15px;
    min-width: 500px;
    /* 確保在手機上不會擠成一團，強迫滑動 */
}

.modern-table th {
    background: linear-gradient(180deg, #333, #222);
    color: #d4af37;
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid #d4af37;
    white-space: nowrap;
}

.modern-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #333;
}

/* 斑馬紋 */
.modern-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* 滑鼠移過去變色 */
.modern-table.table-hover tr:hover td {
    background: rgba(212, 175, 55, 0.1);
    color: #fff;
}

/* 數值強調色 */
.plus {
    color: #4da6ff;
    /* 藍色 */
    font-weight: bold;
}

.tag-gold {
    font-size: 12px;
    background: #d4af37;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    font-weight: bold;
}

/* =========================================
   等級經驗表專用樣式 (Level Exp Table)
   ========================================= */

/* 卷軸容器美化 */
.scroll-table-container::-webkit-scrollbar {
    width: 8px;
}

.scroll-table-container::-webkit-scrollbar-track {
    background: #111;
}

.scroll-table-container::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.scroll-table-container::-webkit-scrollbar-thumb:hover {
    background: #d4af37;
}

/* 固定表頭 */
.sticky-header th {
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* 等級區間顏色 (Rank Colors) */
/* 專業 (50+) - 藍色調 */
.rank-professional td {
    color: #4da6ff;
}

/* 博學 (55+) - 青色調 */
.rank-scholar td {
    color: #00e5ff;
}

/* 貴族 (60-69) - 紫色調 */
.rank-noble td {
    color: #d896ff;
}

/* 皇室 (70-79) - 紅色調 */
.rank-royal td {
    color: #ff6b6b;
}

/* 王者 (80-84) - 金色調 */
.rank-king td {
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

/* 傳說 (85) - 霓虹特效 */
.rank-legend td {
    color: #fff;
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.2), rgba(0, 0, 255, 0.2));
    border: 1px solid #d4af37;
    font-weight: 900;
    font-size: 18px;
    text-shadow: 0 0 10px #d4af37;
}

/* 每 10 級的分隔線高亮 */
.highlight-row {
    border-top: 2px solid #333;
}


.btn-link {
    color: #ccc;
    transition: color 0.3s;
}

.btn-link:hover {
    color: #d4af37;
}

.reward-link {
    color: #4da6ff;
    text-decoration: none;
    font-weight: bold;
}

.reward-link:hover {
    color: #fff;
    text-decoration: underline;
}

.class-link {
    color: #d4af37;
    /* 金色 */
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 5px;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.3);
}

.class-link:hover {
    color: #fff;
    background: rgba(212, 175, 55, 0.3);
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.tag-gold {
    background: #d4af37;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
}


/* 網格佈局 */
.astro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 卡片樣式 */
.astro-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.astro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-color: #d4af37;
}

/* 標題區 */
.astro-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.type-icon {
    width: auto;
    max-width: 100%;
    display: block;
}

.type-name {
    font-size: 18px;
    font-weight: bold;
}

/* 星盤盤面圖 */
.astro-img {
    text-align: center;
    margin-bottom: 15px;
    background: #000;
    border-radius: 5px;
    padding: 5px;
}

.plate-img {
    max-width: 100%;
    border-radius: 4px;
}

/* 能力列表 */
.astro-stats {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 單行項目 */
.astro-stats li {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
    font-size: 14px;
    color: #ccc;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

/* 多行項目 */
.astro-stats li.multi-line {
    display: block;
}

/* 多行項目中的主行 */
.main-line {
    display: flex;
    align-items: center;
}

/* 子標題行 */
.sub-line {
    display: flex;
    align-items: center;
    margin-top: 5px;
    margin-left: 28px;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
    width: fit-content;
}

.sub-text {
    color: #d4af37;
    font-size: 12px;
}

/* 圖示尺寸 */
.stat-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    flex-shrink: 0;
}

.sub-icon {
    width: 18px;
    height: 18px;
    margin-right: 5px;
    flex-shrink: 0;
}

/* 連結樣式優化 - 關鍵修正 */
.item-link,
.loc-link {
    color: #d4af37;
    /* 改為金色，非常顯眼 */
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px dashed #d4af37;
    /* 增加虛線底線 */
    transition: all 0.3s;
    cursor: pointer;
}

.item-link:hover,
.loc-link:hover {
    color: #fff;
    border-bottom-color: #fff;
    text-shadow: 0 0 5px #d4af37;
}

.btn-back {
    cursor: pointer;
}


/* 數值說明框 */
.weapon-stats-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-left: 3px solid #d4af37;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #ccc;
    line-height: 1.6;
}

.stat-label {
    color: #d4af37;
    font-weight: bold;
    margin-right: 5px;
}

.stat-val {
    color: #fff;
    font-weight: bold;
}

/* 武器網格佈局 */
.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* 自動適應 */
    gap: 15px;
}

/* 特別樣式：單一項目置中 */
.weapon-grid.single-item {
    display: flex;
    justify-content: center;
}

.weapon-grid.single-item .weapon-item {
    width: 100%;
    max-width: 400px;
}

/* 特別樣式：兩欄佈局 */
.weapon-grid.two-col {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* 武器項目卡片 */
.weapon-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.weapon-item:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

.weapon-link {
    text-decoration: none;
    display: block;
}

.weapon-name {
    color: #d4af37;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
    padding-bottom: 5px;
}

.weapon-img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.item-link-inline {
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed #d4af37;
}

.item-link-inline:hover {
    color: #fff;
}


/* 導航容器：Flex 彈性佈局，自動換行 */
.weapon-nav-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    /* 置中對齊 */
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 按鈕樣式 */
.weapon-nav-btn {
    flex: 1 1 auto;
    /* 自動伸縮 */
    min-width: 120px;
    /* 最小寬度，避免手機版太擠 */
    max-width: 200px;
    text-align: center;
    padding: 10px 15px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid #444;
    border-radius: 4px;
    color: #ccc;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* 圖示與文字間距 */
}

/* 滑鼠懸停效果 */
.weapon-nav-btn:hover {
    background: linear-gradient(180deg, #333 0%, #222 100%);
    border-color: #d4af37;
    /* 金色邊框 */
    color: #d4af37;
    /* 金色文字 */
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

/* 請確認您的網站有載入這段 CSS */

/* 1. 容器與標題 */
.info-page-container {
    padding: 20px;
    background: #0d0d0d;
    /* 確保背景是深色 */
    color: #ccc;
    max-width: 1200px;
    margin: 0 auto;
}

.modern-title {
    text-align: center;
    font-size: 28px;
    color: #d4af37;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* 2. 按鈕導航列 (Tab Buttons) */
.role-nav-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.role-nav-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 50px;
    border: 1px solid #333;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.role-nav-item {
    padding: 10px 25px;
    color: #888;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.role-nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.role-nav-item.active {
    background: #d4af37;
    /* 金色背景 */
    color: #000;
    /* 黑色文字 */
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* 3. 卡片與區塊 (Cards) */
.step-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.step-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.step-title {
    font-size: 20px;
    color: #fff;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #d4af37;
    margin-top: 10px;
}

/* 4. 現代化表格 (Modern Table) */
.table-responsive {
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    min-width: 600px;
    /* 手機上強迫滑動，避免擠壓 */
}

.modern-table th {
    background: #222;
    color: #d4af37;
    padding: 15px;
    border-bottom: 2px solid #444;
}

.modern-table td {
    padding: 12px;
    border-bottom: 1px solid #333;
    color: #ccc;
    text-align: center;
    vertical-align: middle;
    /* 垂直置中 */
}

.modern-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* 5. 特別強調文字 (Highlight) */
.plus {
    color: #4da6ff;
    font-weight: bold;
}

/* 藍色數值 */
.tag-gold {
    background: #d4af37;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.rank-professional td {
    color: #ffd700;
}

/* 高階文字金色 */
.rank-legend td {
    color: #fff;
    text-shadow: 0 0 5px #d4af37;
    /* 傳說級發光 */
}

/* 6. 其他元件 */
.btn-back {
    display: inline-block;
    padding: 8px 15px;
    color: #888;
    text-decoration: none;
    margin-bottom: 20px;
    border: 1px solid #444;
    border-radius: 5px;
}

.btn-back:hover {
    background: #333;
    color: #fff;
}

/* 圖示顏色 */
.weapon-nav-btn i {
    color: #d4af37;
}

/* 強化等級標籤樣式 */
.enchant-level {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 900;
    min-width: 50px;
    background: #333;
    border: 1px solid #555;
}

/* 不同強化階段的顏色 */
.lv-7 {
    color: #4da6ff;
    border-color: #4da6ff;
}

/* 藍色 */
.lv-9 {
    color: #d896ff;
    border-color: #d896ff;
}

/* 紫色 */
.lv-10 {
    color: #ffd700;
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

/* 金色 */
.lv-11 {
    color: #ff4444;
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

/* 紅色 */
.lv-13 {
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 10px #fff;
    background: rgba(255, 255, 255, 0.2);
}

/* 發光白 */

/* 特效 GIF 樣式 */
.effect-gif {
    width: 100px;
    /* 設定適當大小，太大會撐爆表格高度 */
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #444;
    background: #000;
    transition: transform 0.3s;
}

.effect-gif:hover {
    transform: scale(1.5);
    /* 滑鼠移過去放大檢視 */
    border-color: #d4af37;
    z-index: 10;
    position: relative;
}

/* 表格垂直置中 */
.modern-table td {
    vertical-align: middle !important;
}

/* 王魂網格系統 */
.soul-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* 自動適應寬度 */
    gap: 20px;
    margin-top: 15px;
}

/* 單個王魂卡片 */
.soul-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.soul-item:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
}

/* 王魂頭部 (圖示+名稱) */
.soul-header {
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 1px dashed #444;
    padding-bottom: 10px;
    width: 100%;
}

.soul-icon {
    width: 128px;
    /* 設定適當大小 */
    height: auto;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.soul-name {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 特效展示區 */
.soul-effect {
    text-align: center;
    width: 100%;
}

.effect-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.effect-img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    /* 讓特效圖有點光暈感 */
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.8));
}

/* 發光按鈕樣式 (若之前沒定義) */
.glow-btn {
    background: linear-gradient(135deg, #222, #111);
    border: 1px solid #d4af37;
    transition: all 0.3s;
}

.glow-btn:hover {
    background: #d4af37;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}


/* 強化數字徽章 */
.enchant-badge {
    display: inline-block;
    width: 40px;
    text-align: center;
    padding: 3px 0;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    background: #333;
    border: 1px solid #555;
    color: #ccc;
}

/* 不同等級的徽章顏色 */
.lv-safe {
    color: #fff;
    border-color: #666;
}

.lv-normal {
    color: #4da6ff;
    border-color: #4da6ff;
}

/* 藍 */
.lv-high {
    color: #d896ff;
    border-color: #d896ff;
}

/* 紫 */
.lv-gold {
    color: #ffd700;
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

/* 金 */
.lv-red {
    color: #ff5252;
    border-color: #ff5252;
    background: rgba(255, 82, 82, 0.1);
}

/* 紅 */
.lv-legend {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 8px #fff;
}

/* 機率文字 */
.rate-text {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 16px;
}

/* 進度條背景 */
.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: #222;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #333;
}

/* 進度條填充 */
.progress-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease-out;
    /* 動畫效果 */
    position: relative;
}

/* 進度條光暈動畫 (選用) */
.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}



@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* 手機版優化：按鈕稍微變小 */
@media (max-width: 768px) {
    .weapon-nav-btn {
        font-size: 13px;
        padding: 8px 10px;
        min-width: 45%;
        /* 一行顯示約兩個 */
    }
}


/* 手機版優化 */
@media (max-width: 600px) {
    .role-nav-container {
        border-radius: 15px;
        /* 手機版不用那麼圓，節省空間 */
        padding: 10px;
        gap: 8px;
    }

    .role-nav-item {
        padding: 8px 15px;
        /* 按鈕縮小一點 */
        font-size: 14px;
        flex: 1 1 auto;
        /* 自動填滿寬度 */
        justify-content: center;
    }
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* 4. 手機版適配 */
@media (max-width: 768px) {
    .role-card {
        flex-direction: column;
    }

    .role-img-box {
        min-height: 300px;
    }

    .role-info-box {
        padding: 25px;
    }

    .role-title {
        font-size: 28px;
    }
}

/* 手機版微調 */
@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        /* 手機上兩欄 */
    }

    .bonus-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .bonus-change {
        width: 100%;
        justify-content: space-between;
    }
}

/* 7. 手機版適配 */
@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        /* 手機版變成單欄 */
    }

    .btn-grid {
        grid-template-columns: 1fr 1fr;
        /* 按鈕維持兩個一排，比較好點 */
    }
}


/* --- [新增] Flexbox 列表樣式 (取代 Table) --- */
.item-category-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.item-category-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    /* 頂部對齊 */
    gap: 20px;
}

/* 左側標題區 */
.category-header {
    min-width: 80px;
    /* 固定最小寬度 */
    text-align: center;
    padding-top: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.category-name {
    color: #d4af37;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.search-all-btn {
    font-size: 12px;
    color: #888;
    text-decoration: none;
    display: inline-block;
    border: 1px solid #444;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.3);
}

.search-all-btn:hover {
    color: #fff;
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

/* 右側內容區 */
.category-content {
    flex: 1;
    /* 佔滿剩餘空間 */
    display: flex;
    flex-wrap: wrap;
    /* 關鍵：允許換行 */
    gap: 10px;
}

/* 手機版優化 (寬度小於 600px) */
@media (max-width: 600px) {
    .item-category-row {
        flex-direction: column;
        /* 變成上下排列 */
        gap: 10px;
    }

    .category-header {
        width: 100%;
        flex-direction: row;
        /* 標題跟按鈕左右排 */
        justify-content: space-between;
        border-bottom: 1px solid #333;
        padding-bottom: 10px;
        margin-bottom: 5px;
    }

    .category-name {
        margin-bottom: 0;
        font-size: 15px;
    }
}

/* [優化樣式] */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.item-tag-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #ccc;
    transition: all 0.3s;
    cursor: pointer;
}

.item-tag-link:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(5px);
    color: #fff;
}

.item-tag-link.set {
    border-left: 3px solid #4caf50;
}

.item-tag-link.title {
    border-left: 3px solid #9c27b0;
}

/* 稱號專用紫色邊框 */

.item-val {
    background: #333;
    color: #4da6ff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.item-list-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.simple-tag {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    color: #ccc;
    display: inline-flex;
    align-items: center;
}

.simple-tag small {
    color: #4da6ff;
    font-weight: bold;
    margin-left: 5px;
}

.simple-tag.high {
    border-color: #ff5252;
    color: #fff;
}

.simple-tag.high small {
    color: #ff5252;
}

/* 精神屬性表專用 */
.stat-table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
}

.stat-table th {
    background: #333;
    color: #d4af37;
    padding: 10px;
}

.stat-table td {
    border: 1px solid #444;
    padding: 8px;
}

/* --- [新增] 列表項目的滑鼠互動特效 --- */

/* 1. 設定連結本身的過渡動畫 */
.category-content a {
    text-decoration: none;
    /* 去除底線 */
    display: inline-block;
    /* 讓 transform 生效 */
    transition: transform 0.2s ease;
    /* 動作變換的時間 */
}

/* 2. 滑鼠移過去時，整個按鈕微微上浮 */
.category-content a:hover {
    transform: translateY(-3px);
    /* 往上浮動 3px */
}

/* 3. 滑鼠移過去時，裡面的標籤 (.simple-tag) 變色 */
.category-content a:hover .simple-tag {
    background: rgba(212, 175, 55, 0.2);
    /* 背景變為淡淡的金色 */
    border-color: #d4af37;
    /* 邊框變亮金色 */
    color: #fff;
    /* 文字變全白 */
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    /* 增加金色光暈 */
}

/* 4. 針對原本就是紅色的高階裝備 (.high)，滑過去改發紅光 */
.category-content a:hover .simple-tag.high {
    background: rgba(255, 82, 82, 0.2);
    border-color: #ff5252;
    box-shadow: 0 0 15px rgba(255, 82, 82, 0.4);
}

/* 網格佈局 */
.armor-set-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

/* 單個套裝卡片 */
.set-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #444;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.set-item-card:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* 卡片頭部 */
.set-header {
    background: linear-gradient(90deg, #222, #1a1a1a);
    padding: 10px 15px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.set-title {
    font-size: 18px;
    font-weight: bold;
    color: #d4af37;
}

.set-source {
    font-size: 12px;
}

/* 階級標籤 */
.tier-tag {
    background: #333;
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 5px;
    border: 1px solid #555;
}

.tier-tag.t2 {
    background: #673ab7;
    border-color: #673ab7;
}

/* 紫色 */
.tier-tag.t3 {
    background: #e91e63;
    border-color: #e91e63;
}

/* 桃紅 */

/* 狀態標籤 */
.upgrade-tag {
    font-size: 12px;
    color: #00e676;
    border: 1px solid #00e676;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: normal;
}

.no-upgrade-tag {
    font-size: 12px;
    color: #ff4081;
    border: 1px solid #ff4081;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: normal;
}

/* 內容區塊 */
.set-body {
    padding: 15px;
    display: flex;
    gap: 20px;
}

/* 左側：圖片與裝備區 */
.set-visual {
    width: 200px;
    /* 加寬以容納 2x2 網格 */
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.set-preview-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #444;
    background: #000;
    margin-bottom: 10px;
}

/* 裝備列表樣式 (電腦版 2x2 網格) */
.set-components {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2欄排列 */
    gap: 5px;
    width: 100%;
    margin-bottom: 10px;
}

.comp-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 4px;
    font-size: 12px;
    color: #aaa;
    border: 1px solid #333;
}

.comp-item img {
    width: 32px;
    /* 圖片 32px */
    height: 32px;
    margin-right: 4px;
}

/* 右側：能力數值區 */
.set-stats {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
}

/* 能力徽章 */
.stat-badge {
    background: #2a2a2a;
    color: #ccc;
    border: 1px solid #444;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    display: inline-block;
}

.stat-badge.hp {
    color: #f44336;
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.stat-badge.mp {
    color: #2196f3;
    border-color: #2196f3;
    background: rgba(33, 150, 243, 0.1);
}

.stat-badge.atk {
    color: #ff9800;
}

.stat-badge.matk {
    color: #9c27b0;
}

.stat-badge.dmg {
    color: #4caf50;
}

.stat-badge.high {
    font-weight: bold;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* 鎖定狀態 */
.set-item-card.locked {
    opacity: 0.6;
    filter: grayscale(80%);
    pointer-events: none;
}

.set-item-card.locked:hover {
    transform: none;
    border-color: #444;
}

/* 手機版適配 */
@media (max-width: 600px) {
    .armor-set-grid {
        grid-template-columns: 1fr;
    }

    .set-body {
        flex-direction: column;
        align-items: center;
    }

    .set-visual {
        width: 100%;
    }

    /* 手機版也是 2x2 (2個一列)，維持一致性 */
    .set-components {
        grid-template-columns: 1fr 1fr;
    }

    .set-stats {
        justify-content: center;
    }
}

/* === 套裝升階/轉換資訊區塊 === */
.set-extra-info {
    border-top: 1px solid #333;
}

.set-extra-info:empty {
    display: none;
}

.extra-section {
    padding: 12px 15px;
}

.extra-section + .extra-section {
    border-top: 1px solid #333;
}

.extra-section-title {
    font-size: 14px;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 10px;
}

.extra-section-title i {
    margin-right: 6px;
}

.extra-section-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 升階項目 */
.upgrade-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    padding: 10px;
}

.upgrade-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}

.upgrade-detail:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: #aaa;
    min-width: 100px;
    flex-shrink: 0;
}

.detail-label i {
    width: 14px;
    text-align: center;
    margin-right: 4px;
}

.detail-arrow {
    color: #666;
}

.detail-value {
    color: #e0e0e0;
    font-weight: bold;
}

.detail-value.material {
    color: #ff9800;
}

.detail-value.chance {
    color: #4caf50;
}

.detail-value.max-tier {
    color: #ffd700;
    font-style: italic;
}

/* 升階鏈 */
.upgrade-chain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #444;
}

.chain-step {
    font-size: 12px;
    color: #888;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.03);
}

.chain-step.chain-current {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-weight: bold;
}

.chain-arrow {
    color: #555;
    font-size: 10px;
    margin-right: 2px;
}

/* 製作/轉換項目 */
.craft-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    padding: 10px;
}

.craft-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.craft-npc {
    color: #81d4fa;
}

.craft-npc i {
    margin-right: 4px;
}

.craft-result {
    color: #ce93d8;
}

.craft-result i {
    margin-right: 4px;
}

.craft-materials {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.craft-material {
    font-size: 12px;
    color: #ffcc80;
    background: rgba(255, 152, 0, 0.08);
    border: 1px solid rgba(255, 152, 0, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
}

.craft-material i {
    margin-right: 3px;
    font-size: 11px;
}

/* 手機版適配 - 升階/轉換 */
@media (max-width: 600px) {
    .upgrade-detail {
        flex-wrap: wrap;
    }

    .detail-label {
        min-width: auto;
    }

    .craft-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .upgrade-chain {
        gap: 4px;
    }
}

/* 小按鈕樣式 */
.glow-btn.small {
    font-size: 12px;
    padding: 5px 10px;
    display: inline-block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* 導航容器 */
.item-nav-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 按鈕基本樣式 */
.item-nav-btn {
    flex: 1 1 auto;
    min-width: 100px;
    /* 手機版最小寬度 */
    max-width: 180px;
    text-align: center;
    padding: 10px 15px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid #444;
    border-radius: 4px;
    color: #ccc;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

/* 滑鼠懸停 */
.item-nav-btn:hover {
    background: linear-gradient(180deg, #333 0%, #222 100%);
    border-color: #d4af37;
    color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* ★ Active 亮燈樣式 (當前頁面) */
.item-nav-btn.active {
    background: linear-gradient(180deg, #d4af37 0%, #a08420 100%);
    /* 金色背景 */
    color: #000;
    /* 黑色文字 */
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    /* 發光效果 */
    transform: translateY(-2px);
}

/* Active 狀態下的圖示顏色改為黑色 */
.item-nav-btn.active i {
    color: #000;
}

/* 一般狀態下的圖示顏色 */
.item-nav-btn i {
    color: #d4af37;
}

/* 手機版微調 */
@media (max-width: 600px) {
    .item-nav-btn {
        padding: 8px 5px;
        font-size: 13px;
        min-width: 45%;
        /* 手機上一排兩個 */
    }
}

/* 變身卡網格 */
.poly-grid {
    display: grid;
    /* 電腦版格子稍微加大一點 (150px -> 180px) 以容納 140px 的圖片 */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 10px;
}

/* 基礎變身用大卡片 (維持原樣) */
.poly-grid.basic {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* 單個變身卡片 (基礎) */
.poly-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    border-radius: 10px;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s;
}

.poly-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* 階級顏色定義 */
.rank-common {
    border-top: 3px solid #999;
}

.rank-advanced {
    border-top: 3px solid #00e676;
}

.rank-rare {
    border-top: 3px solid #2979ff;
}

/* 變身標題 */
.poly-header {
    padding: 10px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.3);
    color: #ddd;
}

/* 基礎變身大圖 */
.poly-img-large {
    width: 100%;
    height: auto;
    display: block;
}

/* 單個變身項目 (英雄/傳說/神話) */
.poly-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    /* 讓內容靠下對齊 */
    min-height: 180px;
    /* 設定最小高度，讓卡片整齊 */
}

.poly-item:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.05);
    z-index: 10;
    /* 放大時浮在最上層 */
}

/* ★★★ 修改這裡：圖片放大至 140px ★★★ */
.poly-item img {
    max-width: 140px;
    /* 電腦版最大寬度 */
    max-height: 140px;
    /* 電腦版最大高度 */
    width: auto;
    height: auto;
    margin-top: 10px;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.7));
    /* 陰影加深一點 */
    object-fit: contain;
    /* 保持比例 */
}

.poly-name {
    font-size: 15px;
    font-weight: bold;
    color: #ccc;
    margin-bottom: 10px;
    margin-top: auto;
    /* 將文字推到底部 */
    text-shadow: 1px 1px 2px #000;
}

/* 高階變身邊框色 */
.rank-hero {
    border-color: #ff5252;
}

.rank-hero .poly-name {
    color: #ff5252;
}

.rank-hero:hover {
    box-shadow: 0 0 15px rgba(255, 82, 82, 0.4);
}

.rank-legend {
    border-color: #ffd700;
}

.rank-legend .poly-name {
    color: #ffd700;
}

.rank-legend:hover {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.rank-mythic {
    border-color: #e040fb;
}

.rank-mythic .poly-name {
    color: #e040fb;
}

.rank-mythic:hover {
    box-shadow: 0 0 15px rgba(224, 64, 251, 0.4);
}

/* ★★★ 手機版調整 (RWD) ★★★ */
@media (max-width: 600px) {
    .poly-grid {
        /* 手機版改回一排 3 個 (比較剛好) 或 2 個 */
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .poly-grid.basic {
        grid-template-columns: 1fr;
    }

    /* 手機版卡片縮小 */
    .poly-item {
        min-height: 110px;
        padding: 5px;
    }

    /* 手機版圖片縮小，不然會爆版 */
    .poly-item img {
        max-width: 80px !important;
        /* 強制縮小回 80px */
        max-height: 80px !important;
        margin-top: 5px;
    }

    .poly-name {
        font-size: 12px;
        margin-bottom: 5px;
    }
}


/* 容器：類似頁籤的排列 */
.sub-tab-group {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    /* 底部一條線，營造頁籤感 */
    padding-bottom: 5px;
}

/* 按鈕樣式 */
.sub-tab-btn {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: bold;
    color: #888;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    /* 上方圓角，下方直角 */
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
    border-bottom: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* 滑鼠懸停 */
.sub-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* ★ Active 亮燈狀態 */
.sub-tab-btn.active {
    color: #d4af37;
    /* 金色文字 */
    background: linear-gradient(to top, rgba(212, 175, 55, 0.1), transparent);
    border-color: #d4af37;
    /* 金色邊框 */
    border-bottom: 2px solid #000;
    /* 蓋住底線，製造連通感 */
    margin-bottom: -2px;
    /* 微調位置 */
    box-shadow: 0 -5px 10px rgba(212, 175, 55, 0.1);
}

/* 手機版優化 */
@media (max-width: 600px) {
    .sub-tab-btn {
        flex: 1;
        justify-content: center;
        font-size: 13px;
        padding: 10px 5px;
    }
}

/* 合成流程圖 */
.synthesis-process {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.syn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #ccc;
    font-size: 13px;
}

.syn-item.result {
    color: #d4af37;
}

.item-icon {
    width: 48px;
    height: 48px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #000;
}

.item-icon.large {
    width: 64px;
    height: 64px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    border-color: #d4af37;
}

/* 小圖示網格 (用於金變示意) */
.icon-grid-mini {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    background: #000;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #444;
}

.icon-grid-mini img {
    width: 24px;
    height: 24px;
}

.syn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #ccc;
}

/* 殘頁圖示網格 */
.page-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 5px;
    justify-items: center;
    margin-top: 10px;
}

.page-icon-grid img {
    width: 32px;
    height: 32px;
    transition: transform 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
}

.page-icon-grid img:hover {
    transform: scale(1.2);
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.2);
    z-index: 10;
}

/* 租賃流程圖廊 */
.rent-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.rent-item {
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.rent-item img {
    width: 100%;
    height: auto;
    display: block;
}

.rent-caption {
    padding: 8px;
    font-size: 13px;
    color: #aaa;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid #333;
}

/* 手機版適配 */
@media (max-width: 600px) {
    .synthesis-process {
        flex-direction: column;
        gap: 10px;
    }

    .fa-arrow-right {
        transform: rotate(90deg);
        /* 箭頭改向下 */
    }

    .rent-gallery {
        grid-template-columns: 1fr;
        /* 手機版單欄顯示 */
    }
}

/* 2x2 網格佈局 */
.rent-gallery-v2 {
    display: grid;
    /* 電腦版固定兩欄，確保圖片夠大 */
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

/* 單個卡片容器 */
.rent-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #444;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.rent-card:hover {
    border-color: #9c27b0;
    /* 紫色邊框 */
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(156, 39, 176, 0.2);
}

/* 左上角步驟編號 */
.step-number {
    position: absolute;
    top: 0;
    left: 0;
    background: #9c27b0;
    color: #fff;
    padding: 5px 12px;
    font-weight: bold;
    font-size: 14px;
    border-bottom-right-radius: 12px;
    z-index: 2;
}

/* 圖片視窗 (重點修改) */
.img-viewport {
    width: 100%;
    height: 400px;
    /* 固定高度，讓所有卡片一樣高 */
    background: #000;
    /* 深黑背景襯托 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-bottom: 1px solid #333;
}

/* 圖片設定：完整顯示 (Contain) */
.img-viewport img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* 關鍵：讓長圖完整顯示，不被切掉 */
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
}

/* 底部文字區 */
.rent-info {
    padding: 15px;
    text-align: left;
}

.rent-info h4 {
    margin: 0 0 5px 0;
    color: #d4af37;
    font-size: 16px;
}

.rent-info p {
    margin: 0;
    font-size: 13px;
    color: #aaa;
}

/* 手機版 RWD */
@media (max-width: 768px) {
    .rent-gallery-v2 {
        grid-template-columns: 1fr;
        /* 手機版改回單欄 */
    }

    .img-viewport {
        height: 350px;
        /* 手機版高度稍微縮小 */
    }
}

/* 娃娃網格 (比照變身卡 poly-grid) */
.doll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 10px;
}

/* 單個娃娃卡片 */
.doll-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 180px;
    /* 固定高度 */
    position: relative;
    overflow: hidden;
}

.doll-item:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    z-index: 10;
}

/* 圖片設定 (電腦版 140px) */
.doll-item img {
    max-width: 140px;
    max-height: 140px;
    width: auto;
    height: auto;
    margin-top: 10px;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.6));
    object-fit: contain;
}

/* 名稱設定 */
.doll-name {
    font-size: 15px;
    font-weight: bold;
    color: #ccc;
    margin-bottom: 10px;
    margin-top: auto;
    text-shadow: 1px 1px 2px #000;
    z-index: 2;
}

/* 階級顏色 (邊框與文字) */
.rank-common {
    border-bottom: 3px solid #999;
}

.rank-advanced {
    border-bottom: 3px solid #00e676;
}

.rank-advanced .doll-name {
    color: #00e676;
}

.rank-rare {
    border-bottom: 3px solid #2979ff;
}

.rank-rare .doll-name {
    color: #2979ff;
}

.rank-hero {
    border-color: #ff5252;
    box-shadow: inset 0 0 20px rgba(255, 82, 82, 0.1);
}

.rank-hero .doll-name {
    color: #ff5252;
}

.rank-hero:hover {
    box-shadow: 0 0 15px rgba(255, 82, 82, 0.4);
    border-color: #ff5252;
}

.rank-legend {
    border-color: #ffd700;
    box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.1);
}

.rank-legend .doll-name {
    color: #ffd700;
}

.rank-legend:hover {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    border-color: #ffd700;
}

.rank-mythic {
    border-color: #e040fb;
    box-shadow: inset 0 0 20px rgba(224, 64, 251, 0.1);
}

.rank-mythic .doll-name {
    color: #e040fb;
}

.rank-mythic:hover {
    box-shadow: 0 0 15px rgba(224, 64, 251, 0.4);
    border-color: #e040fb;
}

/* 手機版適配 */
@media (max-width: 600px) {
    .doll-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 手機版一排3個 */
        gap: 8px;
    }

    .doll-item {
        min-height: 110px;
        padding: 5px;
    }

    /* 手機版圖片縮小 (80px) */
    .doll-item img {
        max-width: 80px !important;
        max-height: 80px !important;
        margin-top: 5px;
    }

    .doll-name {
        font-size: 12px;
        margin-bottom: 5px;
    }
}

/* 圖示列表 */
.doll-icon-list {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #444;
}

.doll-icon-list img {
    width: 40px;
    height: 40px;
    transition: transform 0.2s;
}

.doll-icon-list img:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 5px #d4af37);
}

/* 按鈕組 */
.action-btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* 表格內的娃娃項目 */
.doll-row-item {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    /* 手機版置中 */
}

.doll-row-item img {
    width: 32px;
    height: 32px;
}

.doll-row-item span {
    font-weight: bold;
    font-size: 15px;
}

/* 特效 GIF */
.elf-effect-gif {
    max-width: 200px;
    /* 限制最大寬度，避免過大 */
    border-radius: 4px;
}

/* 機率條 */
.prob-bar {
    width: 100px;
    height: 8px;
    background: #333;
    border-radius: 4px;
    margin: 0 auto;
    overflow: hidden;
}

.prob-bar div {
    height: 100%;
    border-radius: 4px;
}

/* --- [優化] 精靈娃娃專用表格 (.elf-table) --- */

.elf-table {
    width: 100%;
    border-collapse: separate;
    /* 為了讓圓角生效 */
    border-spacing: 0;
    background: rgba(0, 0, 0, 0.2);
    /* 深色半透明背景 */
    border: 1px solid #444;
    /* 外框 */
    border-radius: 8px;
    /* 圓角 */
    overflow: hidden;
    /* 確保內容不超出圓角 */
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* 陰影增加立體感 */
}

/* 標題列 (Header) */
.elf-table thead th {
    background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
    /* 深灰漸層 */
    color: #d4af37;
    /* 金色文字 */
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 2px solid #555;
    text-align: center;
    letter-spacing: 1px;
}

/* 內容儲存格 (Body Cells) */
.elf-table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #333;
    /* 分隔線 */
    color: #ddd;
    /* 淺灰文字 */
    vertical-align: middle;
    /* 垂直置中 */
    text-align: center;
    /* 水平置中 */
    font-size: 14px;
}

/* 去除最後一列的底線 (美觀) */
.elf-table tbody tr:last-child td {
    border-bottom: none;
}

/* 滑鼠懸停效果 (配合 .table-hover) */
.elf-table.table-hover tbody tr {
    transition: background 0.3s ease;
}

.elf-table.table-hover tbody tr:hover {
    background: rgba(212, 175, 55, 0.1);
    /* 滑過去呈現淡淡金色背景 */
    cursor: default;
}

/* 表格內的圖片微調 */
.elf-table img {
    vertical-align: middle;
}

/* 手機版適配 (只針對此頁面的 .elf-table 生效) */
@media (max-width: 600px) {

    /* 2. 調整娃娃項目排列 */
    .doll-row-item {
        flex-direction: row;
        /* 手機版維持橫向 (圖左字右) 比較好看 */
        justify-content: center;
        margin-bottom: 5px;
    }

    .doll-row-item span {
        font-size: 15px;
        /* 字體不用太小 */
        margin-left: 10px;
    }

    /* 3. 特效 GIF 放大 */
    .elf-effect-gif {
        max-width: 80%;
        /* 讓圖片大一點，清楚看特效 */
        height: auto;
        margin-top: 5px;
    }
}

/* 道具大圖示 */
.item-icon-large {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 1px solid #555;
    background: #000;
    transition: transform 0.3s;
}

.item-icon-large.glow-purple {
    box-shadow: 0 0 20px rgba(224, 64, 251, 0.4);
    border-color: #e040fb;
}

.item-icon-large:hover {
    transform: scale(1.1);
}

/* 裝備部位標籤 */
.equip-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 10px;
}

.equip-tag {
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid #00bcd4;
    color: #00bcd4;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.equip-tag:hover {
    background: #00bcd4;
    color: #000;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.6);
}

/* 能力列表網格 */
.dark-ability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    /* 自動適應寬度 */
    gap: 10px;
    padding: 10px;
}

.ability-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    color: #ccc;
    font-size: 14px;
    transition: transform 0.2s;
}

.ability-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: #888;
}

/* 特殊能力高亮 */
.ability-item.highlight {
    border-color: #e040fb;
    color: #e040fb;
    background: rgba(224, 64, 251, 0.05);
}

.ability-item.special {
    border-color: #ffd700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.05);
    font-weight: bold;
}

.ability-item.negative {
    border-color: #4caf50;
    /* 防禦負數通常是好的(綠色) */
    color: #4caf50;
}

/* 注意事項區塊 */
.note-box {
    background: rgba(255, 82, 82, 0.1);
    border-left: 4px solid #ff5252;
    padding: 15px;
    border-radius: 4px;
    text-align: left;
}

.note-box h4 {
    margin: 0 0 10px 0;
    color: #ff5252;
    font-size: 16px;
}

.note-box ul {
    margin: 0;
    padding-left: 20px;
    color: #ddd;
}

/* 手機版適配 */
@media (max-width: 600px) {
    .dark-ability-grid {
        grid-template-columns: 1fr;
        /* 手機版單欄 */
    }

    .equip-tag {
        font-size: 13px;
        padding: 5px 15px;
    }
}


/* =========================================
   藥水升級系統專用樣式 (Potion Upgrade System)
   ========================================= */

/* 1. 升級路線圖 (古白專用) */
.upgrade-path {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    align-items: center;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.path-step {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    width: 100%;
    max-width: 450px;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: all 0.3s;
}

.path-step:hover {
    border-color: #aaa;
    background: rgba(255, 255, 255, 0.08);
}

/* 最終階段高亮 */
.path-step.final {
    border-color: #e91e63;
    background: rgba(233, 30, 99, 0.1);
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.2);
}

/* 等級標籤 */
.step-lv {
    background: #333;
    color: #ccc;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
}

.path-step.final .step-lv {
    background: #e91e63;
    color: #fff;
}

/* 數值顯示 */
.step-val {
    font-weight: bold;
    color: #ddd;
    font-size: 15px;
    flex: 1;
    text-align: center;
}

.step-val.highlight {
    color: #fff;
    text-shadow: 0 0 5px #e91e63;
}

/* 需求提示 (浮動在右側) */
.step-req {
    font-size: 12px;
    color: #888;
    position: absolute;
    right: -140px;
    /* 電腦版顯示在右側外部 */
    top: 50%;
    transform: translateY(-50%);
    background: #000;
    padding: 4px 8px;
    border: 1px solid #333;
    border-radius: 4px;
    white-space: nowrap;
}

.step-req::before {
    content: '←';
    margin-right: 5px;
    color: #666;
}

/* 向下箭頭 */
.step-arrow {
    color: #666;
    text-align: center;
    margin: 5px 0;
    font-size: 18px;
    animation: bounce 2s infinite;
}

/* 2. 藥水卡片網格 (綠水/名譽/蛋糕) */
.potion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.potion-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.potion-card:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.potion-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
}

.potion-header img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.potion-header h4 {
    margin: 0;
    color: #d4af37;
    font-size: 18px;
    letter-spacing: 1px;
}

/* 等級列表 */
.potion-levels {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex: 1;
    /* 讓按鈕自動推到底部 */
}

.potion-levels li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #333;
    font-size: 14px;
    color: #aaa;
}

.potion-levels li:last-child {
    border-bottom: none;
}

.potion-levels .lv {
    color: #888;
    font-weight: bold;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

.potion-levels .lv.max {
    color: #e91e63;
    border: 1px solid #e91e63;
    background: rgba(233, 30, 99, 0.1);
}

.potion-levels .val {
    color: #fff;
    font-weight: bold;
}

.potion-levels .req {
    font-size: 12px;
    color: #555;
}

/* 查詢按鈕 */
.potion-link {
    text-align: center;
    display: block;
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.potion-link:hover {
    background: #d4af37;
    color: #000;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* 動畫 */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(5px);
    }

    60% {
        transform: translateY(3px);
    }
}

/* RWD 手機版適配 */
@media (max-width: 600px) {

    /* 讓需求提示在手機上換行顯示，而不是浮在右邊 */
    .step-req {
        position: static;
        transform: none;
        margin-top: 10px;
        display: inline-block;
        width: 100%;
        text-align: center;
        border-top: 1px solid #333;
        padding-top: 5px;
    }

    .step-req::before {
        content: '▼';
        /* 手機版箭頭改向下 */
        margin-right: 5px;
    }

    .path-step {
        flex-wrap: wrap;
        /* 允許換行 */
        justify-content: center;
        gap: 5px;
        border-radius: 12px;
        /* 手機版圓角改小一點 */
    }

    .step-lv {
        margin-right: 10px;
    }
}



/* 惡魔卡片微調 */
.demon-card {
    border-top: 3px solid #d32f2f;
}

.demon-card .modern-table th {
    border-bottom-color: #d32f2f;
}

/* 天使卡片微調 */
.angel-card {
    border-top: 3px solid #1976d2;
}

.angel-card .modern-table th {
    border-bottom-color: #1976d2;
}

/* 連結樣式 */
.item-link-inline {
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
}

.item-link-inline:hover {
    color: #fff;
    border-color: #fff;
}

.coin-val {
    color: #ffd700;
    font-weight: bold;
    font-size: 16px;
}

/* 高價物品特別高亮 */
.coin-val.highlight {
    color: #e040fb;
    /* 紫色 */
    text-shadow: 0 0 5px rgba(224, 64, 251, 0.5);
}


/* 功能亮點網格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.feature-item i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.feature-item span {
    font-size: 13px;
    color: #ccc;
    line-height: 1.4;
}

.feature-item b {
    color: #fff;
    display: block;
    margin-bottom: 3px;
}

/* 教學網格 (左右兩欄) */
.tutorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tutorial-col {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 10px;
    padding: 20px;
}

/* 手機版適配 */
@media (max-width: 768px) {
    .tutorial-grid {
        grid-template-columns: 1fr;
        /* 手機版變單欄 */
    }
}

/* --- 專用表格樣式 --- */
.townsir-table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
    color: #ccc;
    font-size: 15px;
}

.townsir-table th {
    background: linear-gradient(180deg, #333 0%, #222 100%);
    color: #d4af37;
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid #d4af37;
}

.townsir-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #333;
    vertical-align: middle;
}

.townsir-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* 階級圖片 (無放大特效) */
.rank-img {
    border-radius: 4px;
    border: 1px solid #444;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

/* 稱號文字 */
.rank-title {
    font-weight: bold;
    font-size: 1.1em;
}

/* 排名標籤 */
.rank-num {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: #333;
    color: #aaa;
    font-size: 13px;
    font-weight: bold;
    min-width: 50px;
}

.rank-num.first {
    background: #ffd700;
    color: #000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.rank-num.second {
    background: #e0e0e0;
    color: #000;
}

.rank-num.third {
    background: #cd7f32;
    color: #000;
}

/* --- 手機版強制堆疊 (Card View) --- */
@media (max-width: 600px) {
    .townsir-table thead {
        display: none;
        /* 隱藏標題 */
    }

    .townsir-table tr {
        display: block;
        border: 1px solid #444;
        margin-bottom: 15px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        padding: 10px;
    }

    .townsir-table td {
        display: block;
        /* 每個儲存格換行 */
        text-align: center;
        border-bottom: none;
        padding: 5px 0;
        width: 100%;
    }

    /* 微調：讓排名和稱號靠近一點，圖片在最下方 */
    .rank-title {
        margin-bottom: 10px;
        font-size: 1.2em;
    }

    .rank-img {
        max-width: 150px;
        /* 手機版圖片限制寬度，避免過大 */
    }
}

/* 網格系統：電腦版 2 欄 */
.auto-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 10px;
}

/* 單個設定卡片 */
.setting-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #444;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.setting-card:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* 標題列 */
.setting-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 12px 15px;
    font-weight: bold;
    color: #ddd;
    border-bottom: 1px solid #333;
    font-size: 16px;
}

.setting-header i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

/* 圖片容器 */
.setting-body {
    padding: 15px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

/* 圖片樣式 */
.setting-img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #555;
    transition: transform 0.3s;
}

/* 圖片懸停輕微放大 */
.setting-card:hover .setting-img {
    transform: scale(1.02);
    border-color: #aaa;
}

/* 滿版卡片 (HOME鍵) */
.setting-card.full-width {
    grid-column: span 2;
    /* 跨越兩欄 */
    max-width: 600px;
    /* 限制最大寬度，避免圖片拉太長 */
    margin: 0 auto;
    /* 置中 */
    width: 100%;
}

/* 手機版適配 */
@media (max-width: 768px) {
    .auto-settings-grid {
        grid-template-columns: 1fr;
        /* 手機版變單欄 */
    }

    .setting-card.full-width {
        grid-column: span 1;
        /* 手機版回復單欄 */
        max-width: 100%;
    }
}


/* =========================================
   HOME 鍵內掛教學專用樣式 (Info Auto Home)
   Prefix: .page-auto-home
   ========================================= */

/* 卡片容器 */
.page-auto-home .ah-card {
    padding: 0;
    /* 移除預設 padding，由內部控制 */
    overflow: hidden;
}

/* 佈局：左文右圖 */
.page-auto-home .ah-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

/* 左側文字區 */
.page-auto-home .ah-content {
    flex: 1;
    padding: 25px;
    min-width: 300px;
}

/* 右側圖片區 */
.page-auto-home .ah-image {
    flex: 1;
    min-width: 300px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-left: 1px solid #333;
}

.page-auto-home .ah-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #555;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.page-auto-home .ah-image img:hover {
    transform: scale(1.03);
    border-color: #d4af37;
}

/* 標題與文字 */
.page-auto-home .ah-title {
    color: #d4af37;
    margin: 0 0 15px 0;
    font-size: 20px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 10px;
}

.page-auto-home .ah-desc {
    color: #ccc;
    font-size: 15px;
    line-height: 1.8;
}

/* 清單樣式 */
.page-auto-home .ah-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.page-auto-home .ah-list li {
    margin-bottom: 8px;
    padding-left: 10px;
    border-left: 3px solid #555;
}

/* 提示框 */
.page-auto-home .ah-tip-box {
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid rgba(0, 188, 212, 0.3);
    padding: 10px 15px;
    border-radius: 5px;
    margin: 15px 0;
    font-size: 14px;
    color: #b2ebf2;
}

.page-auto-home .ah-example {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 14px;
    color: #aaa;
    border-left: 3px solid #ffd700;
}

/* 指令清單 */
.page-auto-home .ah-cmd-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.page-auto-home .ah-cmd-list li {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.page-auto-home .cmd-label {
    background: #333;
    color: #aaa;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    min-width: 70px;
    text-align: center;
}

/* 指令代碼塊 (取代原本的 .my_color) */
.page-auto-home .code-tag {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #00bcd4;
    /* 青色邊框 */
    color: #00e5ff;
    /* 青色文字 */
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
}

.page-auto-home .code-tag.small {
    font-size: 13px;
    margin-bottom: 4px;
    display: block;
    /* 讓長列表換行 */
}

.page-auto-home .code-tag.long {
    width: 100%;
    /* 長指令佔滿 */
    background: rgba(0, 0, 0, 0.5);
    border-color: #555;
    color: #ffd700;
    /* 金色文字 */
}

.page-auto-home .highlight {
    color: #00e676;
    /* 綠色高亮 */
    font-weight: bold;
}

/* 手機版適配 */
@media (max-width: 768px) {
    .page-auto-home .ah-layout {
        flex-direction: column;
    }

    .page-auto-home .ah-image {
        border-left: none;
        border-top: 1px solid #333;
        padding: 10px;
    }

    .page-auto-home .ah-content {
        padding: 15px;
    }
}


/* =========================================
   高級內掛介紹專用樣式 (Info Auto Advanced)
   Prefix: .page-auto-advanced
   ========================================= */

/* 對照表格樣式 */
.page-auto-advanced .compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
    font-size: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-auto-advanced .compare-table th {
    background: linear-gradient(180deg, #333 0%, #222 100%);
    color: #ccc;
    padding: 15px;
    border-bottom: 2px solid #444;
    text-align: center;
}

/* 高級內掛標題高亮 */
.page-auto-advanced .compare-table th.highlight-th {
    color: #ffd700;
    border-bottom: 2px solid #ffd700;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.page-auto-advanced .compare-table td {
    padding: 12px;
    border-bottom: 1px solid #333;
    text-align: center;
    color: #888;
    vertical-align: middle;
}

/* 功能名稱靠左 */
.page-auto-advanced .feature-name {
    text-align: left;
    color: #ddd;
    font-weight: bold;
    padding-left: 20px;
}

/* 分隔標題列 */
.page-auto-advanced .section-row td {
    background: rgba(255, 255, 255, 0.05);
    color: #00bcd4;
    font-weight: bold;
    text-align: left;
    padding: 8px 15px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 高級內掛欄位高亮 */
.page-auto-advanced .highlight-td {
    background: rgba(212, 175, 55, 0.03);
    border-left: 1px solid rgba(212, 175, 55, 0.1);
    border-right: 1px solid rgba(212, 175, 55, 0.1);
}

/* 圖示顏色 */
.page-auto-advanced .icon-yes {
    color: #00e676;
    /* 綠勾 */
    font-size: 18px;
}

.page-auto-advanced .icon-no {
    color: #ff5252;
    /* 紅叉 */
    font-size: 18px;
    opacity: 0.5;
}

/* 滑鼠懸停效果 */
.page-auto-advanced .compare-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.page-auto-advanced .compare-table tr:hover .highlight-td {
    background: rgba(212, 175, 55, 0.1);
}

/* 手機版適配 */
@media (max-width: 600px) {
    .page-auto-advanced .feature-name {
        padding-left: 10px;
        font-size: 13px;
    }

    .page-auto-advanced .compare-table th,
    .page-auto-advanced .compare-table td {
        padding: 10px 5px;
        font-size: 13px;
    }

    .page-auto-advanced .icon-yes,
    .page-auto-advanced .icon-no {
        font-size: 14px;
    }
}

/* =========================================
   外掛防禦介紹專用樣式 (Info Defense)
   Prefix: .page-info-defense
   ========================================= */

/* 卡片與佈局 */
.page-info-defense .defense-card {
    padding: 0;
    overflow: hidden;
}

.page-info-defense .defense-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* 左側文字區 */
.page-info-defense .defense-info {
    flex: 1;
    min-width: 300px;
    padding: 30px;
}

.page-info-defense .defense-info h3 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.page-info-defense .defense-info h3 i {
    margin-right: 10px;
}

.page-info-defense .defense-info p {
    color: #ccc;
    line-height: 1.6;
    font-size: 15px;
}

/* 右側媒體區 (圖片/影片) */
.page-info-defense .defense-media {
    flex: 1;
    min-width: 300px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-left: 1px solid #333;
}

.page-info-defense .media-content {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    /* 限制高度避免過大 */
    border-radius: 6px;
    border: 1px solid #444;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* 建議清單 */
.page-info-defense .suggestion-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-info-defense .suggestion-list li {
    margin-bottom: 10px;
    color: #00e676;
    /* 綠色文字 */
    font-size: 14px;
}

.page-info-defense .suggestion-list li i {
    margin-right: 8px;
    color: #00e676;
}

.page-info-defense .suggestion-list li b {
    color: #fff;
}

/* 連結按鈕組 */
.page-info-defense .link-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

/* 手機版適配 */
@media (max-width: 768px) {
    .page-info-defense .defense-layout {
        flex-direction: column;
    }

    .page-info-defense .defense-media {
        width: 100%;
        border-left: none;
        border-top: 1px solid #333;
        padding: 15px;
    }

    .page-info-defense .defense-info {
        width: 100%;
        padding: 20px;
    }
}

/* =========================================
   透視鏡系統專用樣式 (Info Look)
   Prefix: .page-info-look
   ========================================= */

/* 網格佈局 */
.page-info-look .look-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 電腦版左右兩欄 */
    gap: 20px;
    padding: 10px;
}

/* 卡片樣式 */
.page-info-look .look-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #444;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.page-info-look .look-card:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* 卡片標題 */
.page-info-look .look-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #ddd;
    border-bottom: 1px solid #333;
    text-align: center;
}

.page-info-look .look-header i {
    margin-right: 8px;
}

/* 卡片內容 */
.page-info-look .look-body {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page-info-look .look-body p {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 15px;
}

/* 圖片容器與樣式 */
.page-info-look .img-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 6px;
}

.page-info-look .img-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s;
}

.page-info-look .look-card:hover .img-wrapper img {
    transform: scale(1.05);
}

/* 手機版適配 */
@media (max-width: 768px) {
    .page-info-look .look-grid {
        grid-template-columns: 1fr;
        /* 手機版變單欄 */
    }
}


/* =========================================
   遊戲主選單專用樣式 (Info Menu)
   Prefix: .page-info-menu
   ========================================= */

/* 1. 主圖樣式 */
.page-info-menu .main-menu-img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #444;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.2);
}

/* 2. 網格佈局 */
.page-info-menu .menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 電腦版兩欄 */
    gap: 20px;
    padding: 10px;
}

/* 3. 功能卡片 */
.page-info-menu .menu-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #444;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.page-info-menu .menu-card:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* 4. 卡片標題 */
.page-info-menu .menu-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 12px 15px;
    font-size: 16px;
    font-weight: bold;
    color: #ddd;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
}

.page-info-menu .menu-header i {
    margin-right: 10px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* 5. 卡片內容與圖片 */
.page-info-menu .menu-body {
    padding: 15px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-info-menu .menu-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #555;
    transition: transform 0.3s;
}

.page-info-menu .menu-card:hover img {
    transform: scale(1.02);
    border-color: #888;
}

/* 6. 手機版適配 */
@media (max-width: 768px) {
    .page-info-menu .menu-grid {
        grid-template-columns: 1fr;
        /* 手機版變單欄 */
    }
}


/* =========================================
   快捷功能列表專用樣式 (Info Menu List)
   Prefix: .page-info-menu-list
   ========================================= */

/* 網格容器 */
.page-info-menu-list .menu-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 電腦版兩欄並排 */
    gap: 20px;
    padding: 10px;
}

/* 單個功能項目 */
.page-info-menu-list .menu-list-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #444;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
}

.page-info-menu-list .menu-list-item:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* 功能標題區 (左側圖示+文字) */
.page-info-menu-list .item-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px dashed #444;
}

.page-info-menu-list .item-label img {
    width: 48px;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.page-info-menu-list .item-label span {
    font-size: 18px;
    font-weight: bold;
    color: #d4af37;
}

/* 預覽圖片區 */
.page-info-menu-list .item-preview {
    width: 100%;
    background: #000;
    padding: 10px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-info-menu-list .item-preview img {
    max-width: 100%;
    height: auto;
    border: 1px solid #333;
    border-radius: 4px;
    transition: transform 0.3s;
}

.page-info-menu-list .menu-list-item:hover .item-preview img {
    transform: scale(1.02);
    border-color: #888;
}

/* 手機版適配 */
@media (max-width: 768px) {
    .page-info-menu-list .menu-list-grid {
        grid-template-columns: 1fr;
        /* 手機版變單欄 */
    }

    .page-info-menu-list .item-label {
        justify-content: center;
        /* 標題置中 */
    }
}

/* =========================================
   機率介紹頁面專用樣式 (Info Dice)
   Prefix: .page-info-dice
   ========================================= */

/* --- Q&A 區塊 --- */
.page-info-dice .dice-qa-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 10px 0;
}

.page-info-dice .qa-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    position: relative;
}

/* 問題樣式 */
.page-info-dice .qa-item.question {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #aaa;
}

.page-info-dice .qa-item.question .qa-icon {
    color: #aaa;
    font-size: 30px;
}

.page-info-dice .qa-item.question h4 {
    color: #aaa;
    margin: 0 0 5px 0;
    font-size: 14px;
}

/* 回答樣式 */
.page-info-dice .qa-item.answer {
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.page-info-dice .qa-item.answer .qa-icon {
    color: #d4af37;
    font-size: 30px;
}

.page-info-dice .qa-item.answer h4 {
    color: #d4af37;
    margin: 0 0 5px 0;
    font-size: 14px;
}

.page-info-dice .qa-content p {
    margin: 0;
    line-height: 1.6;
    color: #ddd;
    font-size: 15px;
}

/* 箭頭 */
.page-info-dice .qa-arrow {
    text-align: center;
    color: #555;
    font-size: 20px;
}

/* --- 圖片展示區 --- */
.page-info-dice .img-wrapper {
    background: #000;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #444;
    display: inline-block;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-info-dice .img-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 期望值定義區 --- */
.page-info-dice .definition-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #333;
}

.page-info-dice .concept-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-info-dice .concept-list li {
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 2px solid #555;
    color: #ccc;
    line-height: 1.8;
}

/* 文字高亮顏色 (取代原本的 neon colors) */
.page-info-dice .txt-green {
    color: #00e676;
    /* 柔和綠 */
    font-weight: bold;
}

.page-info-dice .txt-red {
    color: #ff5252;
    /* 柔和紅 */
    font-weight: bold;
}

.page-info-dice .highlight-gold {
    color: #ffd700;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-color: rgba(255, 215, 0, 0.5);
}

.page-info-dice .highlight-red {
    color: #ff5252;
    font-weight: bold;
}

/* 手機版適配 */
@media (max-width: 600px) {
    .page-info-dice .qa-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .page-info-dice .qa-item.question,
    .page-info-dice .qa-item.answer {
        border-left: none;
        border-top: 4px solid;
    }
}


/* 時間區塊 */
.page-event-one .event-time-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.page-event-one .et-icon {
    font-size: 40px;
    color: #00bcd4;
}

.page-event-one .et-content h4 {
    margin: 0 0 5px 0;
    color: #aaa;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-event-one .et-content p {
    margin: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
}

.page-event-one .highlight {
    color: #00e676;
    /* 星期幾 - 綠色 */
    font-weight: bold;
    font-size: 18px;
}

.page-event-one .highlight-time {
    color: #ffd700;
    /* 時間 - 金色 */
    font-weight: bold;
    font-size: 20px;
    font-family: 'Segoe UI', sans-serif;
}

/* 規則區塊 (紅色警告感) */
.page-event-one .event-rule-box {
    margin-bottom: 30px;
}

.page-event-one .event-rule-box h3 {
    color: #ff5252;
    margin: 0 0 10px 0;
    font-size: 22px;
}

.page-event-one .event-rule-box p {
    color: #ccc;
    margin: 0 0 15px 0;
}

.page-event-one .rule-highlight {
    display: inline-block;
    background: rgba(211, 47, 47, 0.15);
    border: 1px solid #d32f2f;
    color: #ff8a80;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.2);
}

/* 圖片包裝 */
.page-event-one .event-img-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.page-event-one .event-img-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #444;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-event-one .img-caption {
    margin-top: 10px;
    color: #666;
    font-size: 12px;
}

/* 手機版適配 */
@media (max-width: 600px) {
    .page-event-one .event-time-box {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* =========================================
   寵物與召喚系統專用樣式 (Info Pet)
   Prefix: .page-info-pet
   ========================================= */

/* 分頁切換按鈕 */
.page-info-pet .pet-nav-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.page-info-pet .pet-tab {
    padding: 10px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    border-radius: 30px;
    color: #aaa;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.page-info-pet .pet-tab:hover,
.page-info-pet .pet-tab.active {
    background: #d4af37;
    color: #000;
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.page-info-pet .pet-tab i {
    margin-right: 5px;
}

/* 寵物規則列表 */
.page-info-pet .pet-rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.page-info-pet .pet-rules-list li {
    margin-bottom: 15px;
    color: #ddd;
    line-height: 1.6;
}

.page-info-pet .pet-rules-list li i {
    color: #d4af37;
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.page-info-pet .pet-rules-list b {
    color: #fff;
    margin-right: 5px;
}

/* 規則細節標籤 */
.page-info-pet .rule-detail {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: #b2ebf2;
    margin: 2px;
}

/* 表格樣式微調 */
.page-info-pet .center-text th,
.page-info-pet .center-text td {
    text-align: center;
    vertical-align: middle;
}

/* 寵物階級顏色 */
.page-info-pet .pet-high td {
    color: #81d4fa;
    /* 高等寵物淺藍色 */
}

.page-info-pet .pet-rare td {
    color: #ffd700;
    /* 黃金龍金色 */
    font-weight: bold;
    background: rgba(255, 215, 0, 0.05);
}

/* 召喚需求文字 */
.page-info-pet .cha-req {
    color: #ccc;
    font-size: 14px;
}

.page-info-pet .cha-req.highlight {
    color: #ff5252;
    font-weight: bold;
}

/* 圖示顏色 */
.page-info-pet .icon-yes {
    color: #00e676;
}

.page-info-pet .icon-no {
    color: #555;
    opacity: 0.5;
}

/* 手機版適配 */
@media (max-width: 768px) {
    .page-info-pet .pet-tab {
        padding: 8px 15px;
        font-size: 14px;
    }

    .page-info-pet .cha-req {
        display: block;
        font-size: 12px;
    }
}

/* 讓條列式清單在手機與電腦都整齊 */
.castle-rules-list,
.castle-stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* 每一行的間距 */
}

/* 規則列表的每一項 */
.castle-rules-list li {
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
    font-size: 0.95em;
}

/* 能力值列表的每一項 */
.castle-stats-list li {
    display: flex;
    align-items: center;
    line-height: 2;
    font-size: 1em;
    border-bottom: 1px dashed #444;
    /* 加個虛線分隔，更有質感 */
    padding-bottom: 5px;
    margin-bottom: 5px;
}

/* 最後一項不要虛線 */
.castle-stats-list li:last-child {
    border-bottom: none;
}

.info-clan-score .score-item {
    display: flex;
    justify-content: space-between;
    /* 左右對齊 */
    align-items: center;
    padding: 8px 0;
    /* 增加一點垂直間距 */
    border-bottom: 1px dashed #333;
    /* 每個項目下面加個深色虛線，視覺更連貫 */
}

.info-clan-score .score-item:last-child {
    border-bottom: none;
}

/* 步驟列表樣式 */
.info-clan-emblem-error .fix-step-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-clan-emblem-error .fix-step-list li {
    display: flex;
    align-items: center;
    /* 垂直置中 */
    line-height: 1.6;
    font-size: 1.05em;
    color: #ddd;
    border-bottom: 1px dashed #444;
    padding-bottom: 15px;
}

.info-clan-emblem-error .fix-step-list li:last-child {
    border-bottom: none;
}

/* 圖示樣式 */
.info-clan-emblem-error .icon-fixed {
    width: 30px;
    text-align: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 1.2em;
}

/* 圖片容器 */
.info-clan-emblem-error .img-container-fix {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 25px;
}

/* 步驟列表樣式 */
.info-clan-join .recruit-step-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-clan-join .recruit-step-list li {
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
    font-size: 1em;
    color: #ddd;
}

/* 圖示固定寬度，避免跑版 */
.info-clan-join .icon-fixed {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 4px;
}

/* 方法標題 */
.info-clan-join .method-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #4da6ff;
    margin-bottom: 10px;
    border-left: 4px solid #4da6ff;
    padding-left: 10px;
    display: inline-block;
}

/* 圖片容器 */
.info-clan-join .img-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 25px;
}


/* =========================================
   頁面：製作地圖 (info-npc-map800)
   ========================================= */

.info-npc-map800 .merged-image {
    width: 100%;
    /* 改為 100% 寬度以適應容器 */
    max-width: 1100px;
    /* 最大寬度保持 1100px */
    aspect-ratio: 1100 / 600;
    /* 保持原有的長寬比 */
    position: relative;
    margin: 0 auto;
    border: 2px solid #444;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.info-npc-map800 .merged-image:hover {
    transform: scale(1.02);
    /* 滑鼠懸停時微放大的視覺回饋 */
    border-color: #d4af37;
}

.info-npc-map800 .part {
    position: absolute;
    width: 33.33%;
    height: 33.33%;
    background-size: 100% 100%;
    /* 確保圖片填滿格點 */
    background-repeat: no-repeat;
}

/* 拼接位置定義保持不變 */
.info-npc-map800 .top-left {
    background-image: url('https://i.imgur.com/MnBg9jq.png');
    top: 0;
    left: 0;
}

.info-npc-map800 .top-center {
    background-image: url('https://i.imgur.com/ZayaVya.png');
    top: 0;
    left: 33.33%;
}

.info-npc-map800 .top-right {
    background-image: url('https://i.imgur.com/jVkpgPS.png');
    top: 0;
    left: 66.66%;
}

.info-npc-map800 .center-left {
    background-image: url('https://i.imgur.com/EJsKNx9.png');
    top: 33.33%;
    left: 0;
}

.info-npc-map800 .center {
    background-image: url('https://imgur.com/oQYTMUQ.png');
    top: 33.33%;
    left: 33.33%;
}

.info-npc-map800 .center-right {
    background-image: url('https://i.imgur.com/zLHUNTl.png');
    top: 33.33%;
    left: 66.66%;
}

.info-npc-map800 .bottom-left {
    background-image: url('https://i.imgur.com/JFOjGKf.png');
    top: 66.66%;
    left: 0;
}

.info-npc-map800 .bottom-center {
    background-image: url('https://i.imgur.com/klDN1Rg.png');
    top: 66.66%;
    left: 33.33%;
}

.info-npc-map800 .bottom-right {
    background-image: url('https://i.imgur.com/17WQl5U.png');
    top: 66.66%;
    left: 66.66%;
}

/* 連結文字樣式 */
.info-npc-map800 .map-link {
    text-decoration: none;
    display: block;
}

.info-npc-map800 .map-link:hover h2 {
    color: #fff;
}


/* =========================================
   頁面：市場地圖 (info-npc-map4)
   ========================================= */

.info-npc-map4 .merged-image {
    width: 100%;
    /* 寬度自適應容器 */
    max-width: 1023px;
    /* 限制最大寬度 */
    aspect-ratio: 1023 / 666;
    /* 根據您提供的 50% 比例設定長寬比 */
    position: relative;
    margin: 0 auto;
    border: 2px solid #444;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.info-npc-map4 .merged-image:hover {
    transform: scale(1.02);
    border-color: #d4af37;
}

.info-npc-map4 .part {
    position: absolute;
    width: 50%;
    height: 50%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* 拼接地圖位置與來源 */
.info-npc-map4 .top-left {
    background-image: url('https://imgur.com/ZXx1TP3.png');
    top: 0;
    left: 0;
}

.info-npc-map4 .top-right {
    background-image: url('https://imgur.com/cwOf8cg.png');
    top: 0;
    right: 0;
}

.info-npc-map4 .bottom-left {
    background-image: url('https://imgur.com/VrwgeGW.png');
    bottom: 0;
    left: 0;
}

.info-npc-map4 .bottom-right {
    background-image: url('https://imgur.com/w73cDFn.png');
    bottom: 0;
    right: 0;
}

/* 連結樣式優化 */
.info-npc-map4 .map-link {
    text-decoration: none;
    display: block;
}

.info-npc-map4 .map-link:hover h2 {
    color: #fff;
}

/* 1. 獎勵列表容器：讓它變成一個「置中的方塊」 */
.info-daily .reward-list {
    display: inline-block;
    /* 關鍵：讓 ul 變成行內區塊，才能被外層置中 */
    text-align: left;
    /* 關鍵：讓 ul 裡面的文字恢復靠左排列 */
    margin: 0 auto;
    /* 水平置中 */
    padding: 0 10px;
    /* 左右留點緩衝 */
    width: auto;
    /* 寬度隨內容自動調整 */
    list-style: none;
    /* 移除預設圓點 */
}

/* 2. 單個獎勵項目 */
.info-daily .reward-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* 確保內容靠左 */

    border-bottom: 1px dashed #444;
    /* 虛線分隔 */
    padding-bottom: 12px;
    margin-bottom: 12px;
}

/* 自動移除最後一個項目的底線與下邊距 */
.info-daily .reward-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* 3. 圖示樣式 */
.info-daily .reward-icon {
    width: 24px;
    /* 固定寬度確保對齊 */
    text-align: center;
    margin-right: 12px;
    font-size: 1.1em;
}

/* 4. 標籤文字：設定固定寬度，讓後面的數值垂直對齊 */
.info-daily .reward-label {
    flex: 0 0 150px;
    /* 關鍵：固定佔用 150px 寬度 */
    width: 150px;
    /* 雙重確保 */
    color: #eee;
    margin-right: 0;
    /* 因為有固定寬度，這裡不需要額外間距 */
}

/* 5. 數值樣式 */
.info-daily .reward-value {
    font-weight: bold;
    font-size: 1.1em;
}

/* 6. 輔助說明文字 (如: 長期目標的灰字) */
.info-daily .reward-desc {
    /* 修正：原本少了一個空格 */
    font-size: 0.95em;
    color: #ccc;
}

/* --- 通用顏色工具類 --- */
.info-daily .text-gold {
    color: #ffd700;
}

.info-daily .text-lime {
    color: #adff2f;
}

.info-daily .text-blue {
    color: #4da6ff;
}

.info-daily .text-purple {
    color: #6f42c1;
}

.info-daily .text-red {
    color: #dc3545;
}


/* 1. 列表容器：置中但內容靠左 */
.info-dungeon .reward-list {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
    padding: 0 10px;
    width: auto;
    list-style: none;
}

/* 2. 單個項目 */
.info-dungeon .reward-item {
    display: flex;
    align-items: center;
    /* 預設垂直置中 */
    justify-content: flex-start;
    border-bottom: 1px dashed #444;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

/* 最後一項移除底線 */
.info-dungeon .reward-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* 3. 圖示 */
.info-dungeon .reward-icon {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    font-size: 1.1em;
    flex-shrink: 0;
    /* 防止圖示被擠壓 */
}

/* 4. 標籤文字 (固定寬度以利對齊) */
.info-dungeon .reward-label {
    flex: 0 0 110px;
    /* 設定 110px 應該剛好，可依需求調整 */
    width: 110px;
    color: #eee;
    margin-right: 0;
}

/* 5. 數值與描述文字 */
.info-dungeon .reward-value {
    font-weight: bold;
    font-size: 1.1em;
    color: #fff;
    /* 預設白色 */
}

.info-dungeon .reward-desc {
    font-size: 0.95em;
    color: #ccc;
}

/* --- 通用顏色工具類 --- */
.info-dungeon .text-gold {
    color: #ffd700;
}

.info-dungeon .text-lime {
    color: #adff2f;
}

.info-dungeon .text-blue {
    color: #4da6ff;
}

.info-dungeon .text-purple {
    color: #6f42c1;
}

.info-dungeon .text-red {
    color: #dc3545;
}

.info-dungeon-limited .custom-action-btn {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    border: 1px solid #555;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: 0.3s;
    min-width: 100px;
    /* 讓按鈕寬度統一一點 */
}

.info-dungeon-limited .custom-action-btn:hover {
    background: #555;
    color: #fff;
    border-color: #777;
}

.info-dungeon-limited .custom-action-btn.highlight {
    border-color: #d4af37;
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.info-dungeon-limited .custom-action-btn.highlight:hover {
    background: #d4af37;
    color: #000;
}


/* 列表容器 */
.vip-tier-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 單一階級卡片 */
.vip-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    transition: 0.3s;
}

.vip-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #666;
    transform: translateY(-2px);
}

/* 左側金額 */
.vip-cost {
    flex: 1;
    font-size: 1.1em;
    font-weight: bold;
    color: #ffd700;
    /* 金色 */
    border-right: 1px dashed #555;
    margin-right: 15px;
    padding-right: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 右側福利區塊 */
.vip-bonus {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* 福利標籤 */
.bonus-tag {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
}

.bonus-tag.time {
    background: rgba(77, 166, 255, 0.15);
    color: #4da6ff;
    /* 藍色 */
    border: 1px solid rgba(77, 166, 255, 0.3);
}

.bonus-tag.level {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    /* 紅色 */
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* 高階樣式 (Highlight) */
.vip-item.highlight {
    border-color: #d4af37;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
}

/* 最高階樣式 (Max) */
.vip-item.max-tier {
    border: 1px solid #d4af37;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.15) 0%, rgba(0, 0, 0, 0) 100%);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.vip-item.max-tier .vip-cost {
    color: #fff;
    text-shadow: 0 0 5px #d4af37;
}

/* 手機版適應 */
@media (max-width: 600px) {
    .vip-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .vip-cost {
        border-right: none;
        border-bottom: 1px dashed #555;
        margin-right: 0;
        padding-right: 0;
        margin-bottom: 10px;
        padding-bottom: 10px;
        width: 100%;
    }

    .vip-bonus {
        width: 100%;
    }
}

/* 確保這頁也吃到共用樣式 */
.info-dungeons-3 .reward-list {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
    padding: 0 10px;
    width: auto;
    list-style: none;
}

.info-dungeons-3 .reward-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px dashed #444;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.info-dungeons-3 .reward-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.info-dungeons-3 .reward-icon {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    font-size: 1.1em;
    flex-shrink: 0;
}

.info-dungeons-3 .reward-label {
    flex: 0 0 110px;
    width: 110px;
    color: #eee;
    margin-right: 0;
}

.info-dungeons-3 .reward-value {
    font-weight: bold;
    font-size: 1.1em;
    color: #fff;
}

.info-dungeons-3 .reward-desc {
    font-size: 0.95em;
    color: #ccc;
}

/* 按鈕樣式 */
.info-dungeons-3 .custom-action-btn {
    display: inline-block;
    padding: 8px 15px;
    background: #333;
    color: #eee;
    border: 1px solid #555;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: 0.3s;
}

.info-dungeons-3 .custom-action-btn:hover {
    background: #555;
    color: #fff;
    border-color: #777;
}

.info-dungeons-3 .custom-action-btn.highlight {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    color: #d4af37;
}

.info-dungeons-3 .custom-action-btn.highlight:hover {
    background: #d4af37;
    color: #000;
}

.info-dungeons-2 .reward-list {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
    padding: 0 10px;
    width: auto;
    list-style: none;
}

.info-dungeons-2 .reward-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px dashed #444;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.info-dungeons-2 .reward-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.info-dungeons-2 .reward-icon {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    font-size: 1.1em;
    flex-shrink: 0;
}

.info-dungeons-2 .reward-label {
    flex: 0 0 110px;
    width: 110px;
    color: #eee;
    margin-right: 0;
}

.info-dungeons-2 .reward-value {
    font-weight: bold;
    font-size: 1.1em;
    color: #fff;
}

.info-dungeons-2 .reward-desc {
    font-size: 0.95em;
    color: #ccc;
}

/* 按鈕樣式 */
.info-dungeons-2 .custom-action-btn {
    display: inline-block;
    padding: 8px 15px;
    background: #333;
    color: #eee;
    border: 1px solid #555;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: 0.3s;
}

.info-dungeons-2 .custom-action-btn:hover {
    background: #555;
    color: #fff;
    border-color: #777;
}

.info-dungeons-2 .custom-action-btn.highlight {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    color: #d4af37;
}

.info-dungeons-2 .custom-action-btn.highlight:hover {
    background: #d4af37;
    color: #000;
}

.info-dungeons-1 .reward-list {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
    padding: 0 10px;
    width: auto;
    list-style: none;
}

.info-dungeons-1 .reward-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px dashed #444;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.info-dungeons-1 .reward-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.info-dungeons-1 .reward-icon {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    font-size: 1.1em;
    flex-shrink: 0;
}

.info-dungeons-1 .reward-label {
    flex: 0 0 110px;
    width: 110px;
    color: #eee;
    margin-right: 0;
}

.info-dungeons-1 .reward-value {
    font-weight: bold;
    font-size: 1.1em;
    color: #fff;
}

.info-dungeons-1 .reward-desc {
    font-size: 0.95em;
    color: #ccc;
}

/* 按鈕樣式 */
.info-dungeons-1 .custom-action-btn {
    display: inline-block;
    padding: 8px 15px;
    background: #333;
    color: #eee;
    border: 1px solid #555;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: 0.3s;
}

.info-dungeons-1 .custom-action-btn:hover {
    background: #555;
    color: #fff;
    border-color: #777;
}

.info-dungeons-1 .custom-action-btn.highlight {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    color: #d4af37;
}

.info-dungeons-1 .custom-action-btn.highlight:hover {
    background: #d4af37;
    color: #000;
}

/* 警告區塊樣式 */
.info-camp .warning-box {
    background: rgba(220, 53, 69, 0.15);
    /* 淡紅色背景 */
    border: 1px solid #dc3545;
    border-left: 5px solid #dc3545;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 25px;
    text-align: left;
}

.info-camp .warning-title {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.info-camp .warning-desc {
    color: #ffcdd2;
    margin: 0;
    font-size: 0.95em;
}

/* 規則網格樣式 */
.info-camp .rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 電腦版兩欄 */
    gap: 15px;
    margin-bottom: 25px;
    text-align: left;
}

.info-camp .rule-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #444;
    display: flex;
    align-items: center;
}

.info-camp .rule-icon {
    width: 30px;
    text-align: center;
    margin-right: 10px;
    font-size: 1.2em;
}

.info-camp .rule-content {
    flex: 1;
}

.info-camp .rule-label {
    color: #aaa;
    font-size: 0.85em;
    display: block;
    margin-bottom: 2px;
}

.info-camp .rule-value {
    color: #fff;
    font-weight: bold;
    font-size: 1em;
}

/* 手機版變成單欄 */
@media (max-width: 600px) {
    .info-camp .rules-grid {
        grid-template-columns: 1fr;
    }
}

/* --- 頁面專屬樣式 --- */
.info-clan-join .method-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #4da6ff;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #4da6ff;
}

.info-clan-join .recruit-step-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    line-height: 1.6;
    color: #eee;
}

.info-clan-join .icon-fixed {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    font-size: 1.1em;
    flex-shrink: 0;
    margin-top: 3px;
    /* 微調圖示垂直對齊 */
}

.info-clan-join .img-container {
    text-align: center;
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    /* 圖片之間的間距 */
}

.info-clan-join .img-thumbnail {
    border: 1px solid #444;
    border-radius: 4px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.info-clan-join .img-thumbnail:hover {
    transform: scale(1.02);
    border-color: #666;
}

.info-clan-join .highlight-text {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #ffd700;
}

/* --- 上半部佈局 (Flex) --- */
.info-townsir .intro-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

/* 左側：主圖卡片 */
.info-townsir .main-image-card {
    flex: 1;
    min-width: 300px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.info-townsir .main-image-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
}

.info-townsir .image-caption {
    margin-top: 10px;
    color: #aaa;
    font-size: 0.9em;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 12px;
    border-radius: 12px;
}

/* 右側：規則與副圖 */
.info-townsir .info-content-card {
    flex: 1.5;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 規則列表 (Grid) */
.info-townsir .rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.info-townsir .rule-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #555;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.info-townsir .rule-box:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ff9800;
    transform: translateY(-2px);
}

.info-townsir .rule-icon {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1.1em;
    flex-shrink: 0;
}

.info-townsir .rule-text h4 {
    margin: 0 0 2px 0;
    font-size: 0.95em;
    color: #ff9800;
}

.info-townsir .rule-text p {
    margin: 0;
    font-size: 0.85em;
    color: #ccc;
}

/* 副圖區域 */
.info-townsir .sub-images-row {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.info-townsir .sub-img-item {
    flex: 1;
    position: relative;
    border: 1px solid #444;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}

.info-townsir .sub-img-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.info-townsir .sub-img-item:hover img {
    transform: scale(1.05);
}

.info-townsir .sub-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.8em;
    padding: 4px;
    text-align: center;
}

/* --- 下半部：階級列表 (Table 優化) --- */
.info-townsir .rank-table-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #444;
}

.info-townsir .custom-rank-table {
    width: 100%;
    border-collapse: collapse;
}

.info-townsir .custom-rank-table th {
    background: linear-gradient(180deg, #2a1a35 0%, #150d1a 100%);
    color: #e040fb;
    padding: 15px;
    font-size: 1em;
    text-transform: uppercase;
    border-bottom: 2px solid #9c27b0;
}

.info-townsir .custom-rank-table td {
    padding: 15px;
    border-bottom: 1px solid #333;
    vertical-align: middle;
    text-align: center;
}

.info-townsir .custom-rank-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* 階級圖片 (設定為較大的預覽尺寸) */
.info-townsir .rank-preview-img {
    height: 220px;
    /* 依照您的設定 */
    width: auto;
    border-radius: 6px;
    border: 1px solid #555;
    transition: transform 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* 滑鼠移過去放大 1.5 倍 */
.info-townsir .rank-preview-img:hover {
    transform: scale(1.5);
    z-index: 1000;
    position: relative;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

/* 排名徽章 */
.info-townsir .rank-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    min-width: 60px;
    background: #333;
    color: #aaa;
}

.info-townsir .rank-badge.gold {
    background: linear-gradient(135deg, #ffd700, #b8860b);
    color: #000;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.info-townsir .rank-badge.silver {
    background: linear-gradient(135deg, #e0e0e0, #757575);
    color: #000;
    box-shadow: 0 0 8px rgba(192, 192, 192, 0.3);
}

.info-townsir .rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
    color: #fff;
    box-shadow: 0 0 8px rgba(205, 127, 50, 0.3);
}

/* 手機版適應 */
@media (max-width: 600px) {
    .info-townsir .intro-section {
        flex-direction: column;
    }

    .info-townsir .rules-grid {
        grid-template-columns: 1fr;
    }

    /* 手機版圖片縮小避免破版 */
    .info-townsir .rank-preview-img {
        height: 100px;
    }
}

/* === 聊天色碼頁面 === */
.chatcolor-tip {
    background: linear-gradient(135deg, rgba(40, 40, 50, 0.9), rgba(25, 25, 35, 0.9));
    border: 1px solid rgba(100, 180, 255, 0.15);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
}

.chatcolor-tip-title {
    font-size: 17px;
    font-weight: 700;
    color: #64b5f6;
    margin-bottom: 10px;
}

.chatcolor-tip-title i {
    margin-right: 8px;
    color: #ffd54f;
}

.chatcolor-tip p {
    color: #b0b8c8;
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.7;
}

.chatcolor-demo {
    margin-top: 14px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.chatcolor-demo-row {
    display: flex;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
}

.chatcolor-input {
    font-family: 'Consolas', 'Courier New', monospace;
    color: #80cbc4;
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.chatcolor-tag {
    font-size: 11px;
    color: #888;
    margin-left: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
}

/* 色碼區塊 */
.chatcolor-section {
    margin-bottom: 24px;
}

.chatcolor-section-head {
    font-size: 16px;
    font-weight: 700;
    color: #e0e0e0;
    padding: 12px 18px;
    background: linear-gradient(90deg, rgba(50, 50, 60, 0.8), transparent);
    border-radius: 10px 10px 0 0;
    border-bottom: 2px solid rgba(100, 180, 255, 0.2);
}

.chatcolor-section-head i {
    margin-right: 8px;
    color: #64b5f6;
}

.chatcolor-count {
    float: right;
    font-size: 12px;
    color: #777;
    font-weight: 400;
}

/* 色碼網格 */
.chatcolor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    padding: 16px;
    background: rgba(20, 20, 28, 0.5);
    border-radius: 0 0 10px 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-top: none;
}

.chatcolor-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.chatcolor-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(100, 180, 255, 0.2);
    transform: translateY(-1px);
}

.chatcolor-swatch {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.chatcolor-code {
    font-family: 'Consolas', 'Courier New', monospace;
    color: #80cbc4;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.chatcolor-label {
    color: #999;
    font-size: 12px;
}

@media (max-width: 600px) {
    .chatcolor-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 6px;
        padding: 10px;
    }

    .chatcolor-item {
        padding: 8px 10px;
    }

    .chatcolor-demo-row {
        flex-wrap: wrap;
        gap: 4px;
    }
}

/* 教學頁面專用樣式 */
.tutorial-container {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 50px;
    color: #ddd;
}

/* 每個步驟的卡片 */
.step-card {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 步驟編號 (左上角) */
.step-badge {
    display: inline-block;
    background: #ffa500;
    color: #000;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

/* 步驟說明文字 */
.step-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
    border-left: 3px solid #ffa500;
    padding-left: 10px;
}

/* 圖片樣式 (自動縮放 + 陰影) */
.step-img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
    /* 圖片置中 */
}

/* 底部警示區塊 */
.warning-box {
    background: rgba(255, 0, 255, 0.05);
    /* 淡淡的紫紅色背景 */
    border: 1px solid #ff00ff;
    color: #ff55ff;
    /* 亮一點的洋紅色，在深色背景較好讀 */
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    margin-top: 30px;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.2);
}

/* 列表：更好讀、更好看 */
.emblem-step-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
}

.icon-fixed {
    width: 18px;
    /* 統一 icon 寬度，文字會對齊 */
    text-align: center;
    margin-top: 2px;
    opacity: .95;
}

.emblem-step-list li span {
    color: var(--txt);
    font-size: 16px;
    line-height: 1.75;
}

/* 重點膠囊（用在 exe / 右鍵匯出 / 檔名） */
.kbd-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .92);
    font-weight: 700;
    letter-spacing: .2px;
    margin: 0 2px;
}

/* 注意 / 警告提示（神策用） */
.tip-danger {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 82, 82, 0.08);
    border: 1px solid rgba(255, 82, 82, 0.18);
    border-left: 4px solid rgba(255, 82, 82, 0.95);
    color: rgba(255, 255, 255, .85);
    font-size: .95rem;
}

.tip-danger i {
    margin-right: 8px;
    color: #ff5252;
}

/* 免責聲明 */
.page-disclaimer {
    margin-top: 50px;
    padding: 0 5px;
}

.page-disclaimer .disclaimer-inner {
    padding: 16px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-left: 4px solid rgba(212, 175, 55, 0.6);
    color: rgba(255, 255, 255, 0.55);
    font-size: 12.5px;
    line-height: 1.8;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.page-disclaimer .disclaimer-inner i {
    color: rgba(212, 175, 55, 0.7);
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 14px;
}