        /* Aion2 高階解析 - 主要樣式表 */
        /* Global Reset */
        * {
            box-sizing: border-box;
        }

        html,
        body {
            overflow-x: hidden;
            width: 100%;
            max-width: 100vw;
            margin: 0;
            padding: 0;
            /* Prevent bounce scrolling on iOS (optional but helps stability) */
            overscroll-behavior-x: none;
        }

        /* 捲軸 (Scrollbar) 樣式自訂 */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.1);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(255, 217, 61, 0.2);
            /* 樣式設定 */
            border-radius: 10px;
            border: 2px solid transparent;
            background-clip: padding-box;
            transition: background 0.3s;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 217, 61, 0.5);
            border: 2px solid transparent;
            background-clip: padding-box;
        }

        /* 樣式設定 */
        * {
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 217, 61, 0.2) rgba(0, 0, 0, 0.1);
        }

        :root {
            /* 樣式設定 */
            --bg: #0a0e17;
            --bg-secondary: #0f1419;
            --panel: #151b26;
            --panel-elevated: #1a2332;
            --border: #2d3748;
            --border-bright: #4a5568;

            /* 樣式設定 */
            --primary: #ffd93d;
            --primary-dark: #d4af37;
            --primary-glow: rgba(255, 217, 61, 0.2);

            /* 樣式設定 */
            --gold: #ffd93d;
            --gold-bright: #ffe66d;
            --gold-dark: #d4af37;
            --gold-glow: rgba(255, 217, 61, 0.3);

            /* 樣式設定 */
            --blue: #4ed9ff;
            --blue-bright: #80e5ff;
            --blue-dark: #0099cc;
            --blue-glow: rgba(78, 217, 255, 0.2);

            /* 樣式設定 */
            --green: #00ff88;
            --green-bright: #33ffaa;
            --green-glow: rgba(0, 255, 136, 0.25);

            /* 樣式設定 */
            --nezakan: #ff4757;
            --zikel: #7bed9f;
            --triniel: #70a1ff;
            --ariel: #ffa502;
            --asphel: #d63aff;
            --baizel: #ff6348;
            --arcana: #1dd1a1;

            /* 樣式設定 */
            --profile-bg: linear-gradient(135deg, #1a2332 0%, #0f1922 50%, #0a0e17 100%);
            --card-bg: linear-gradient(145deg, rgba(26, 35, 50, 0.6), rgba(15, 25, 34, 0.4));
            --accent-gradient: linear-gradient(135deg, var(--primary), var(--gold));
            --glow-gradient: radial-gradient(circle at center, var(--primary-glow), transparent);
        }

        /* 樣式設定 */
        .rarity-val-legend {
            color: var(--gold) !important;
            font-weight: bold;
        }

        .rarity-val-unique {
            color: #3498db !important;
            font-weight: bold;
        }

        .rarity-val-rare {
            color: #2ecc71 !important;
            font-weight: bold;
        }

        .rarity-val-common {
            color: #adb5bd !important;
        }

        .esc-equip-table tfoot td {
            border-top: 1px solid rgba(255, 215, 0, 0.3);
            background: rgba(255, 215, 0, 0.02);
        }

        body {
            background: var(--bg);
            color: #e6edf3;
            font-family: "Segoe UI", "Microsoft JhengHei", sans-serif;
            /* reset margin padding managed by global rule, but keep font settings */
            font-size: 15px;
            /* ensure vertical scroll is possible but horizontal is not */
            overflow-y: auto;
            overflow-x: hidden;
            padding: 10px;
            /* Safe padding */
            transition: padding-top 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        canvas {
            max-width: 100% !important;
        }

        .esc-equip-table thead th {
            position: sticky;
            top: 0;
            z-index: 10;
            background: #1a2332;
            box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
        }

        /* ⚔️ 角色比較部分標頭 (不再使用 Sticky) */
        .compare-section-header {
            background: rgba(26, 35, 50, 0.98);
            border-left: 4px solid var(--gold);
            padding: 14px 25px;
            color: #fff;
            font-weight: bold;
        }

        /* 取消比較分頁主標題的凍結 */
        #tab-compare .section-header-unified {
            position: relative !important;
            top: auto !important;
            z-index: 10 !important;
            box-shadow: none !important;
        }

        .container {
            width: 100%;
            max-width: 1400px;
            margin: auto;
            box-sizing: border-box;
            overflow: visible !important;
        }

        /* 樣式設定 */
        .input-area {
            background: var(--card-bg);
            border: 2px solid var(--gold);
            padding: 25px;
            border-radius: 16px;
            margin-bottom: 25px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
                0 0 40px var(--gold-glow),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
        }

        @media (max-width: 480px) {
            .input-area {
                padding: 15px;
                /* Reduced padding on mobile */
            }
        }

        .input-area::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: var(--glow-gradient);
            opacity: 0.05;
            animation: rotate 20s linear infinite;
            pointer-events: none;
        }

        @keyframes rotate {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .import-section {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .api-input-group {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
            flex-wrap: wrap;
            box-sizing: border-box;
        }

        .api-input-group input,
        .api-input-group select {
            box-sizing: border-box;
            /* Prevent padding from blowing out width */
            background: rgba(10, 14, 23, 0.8);
            border: 2px solid var(--border);
            color: var(--blue-bright);
            padding: 12px 16px;
            border-radius: 8px;
            font-family: inherit;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 500;
        }

        .api-input-group input:focus,
        .api-input-group select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-glow),
                0 0 20px var(--blue-glow);
            background: rgba(10, 14, 23, 1);
        }

        #charNameInput {
            flex: 2;
            min-width: 100px;
            width: 100%;
            /* Ensure it fills available space */
        }

        .import-controls {
            display: flex;
            gap: 15px;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            padding-top: 15px;
            border-top: 1px solid var(--border);
        }

        textarea {
            width: 90%;
            height: 80px;
            background: rgba(10, 14, 23, 0.8);
            border: 2px solid var(--border);
            color: var(--blue-bright);
            padding: 12px;
            border-radius: 8px;
            font-family: 'Consolas', 'Monaco', monospace;
            resize: vertical;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-glow),
                0 0 20px var(--blue-glow);
            background: rgba(10, 14, 23, 1);
        }

        input[type="file"] {
            display: none;
        }

        .btn-api {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            border: 2px solid var(--primary);
            padding: 0 30px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: bold;
            min-height: 45px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .btn-api::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.5s;
        }

        .btn-api:hover {
            background: linear-gradient(135deg, var(--blue-bright), var(--primary));
            border-color: var(--blue-bright);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px var(--blue-glow),
                0 0 30px var(--primary-glow);
        }

        .btn-api:hover::before {
            left: 100%;
        }

        .btn-api:active {
            transform: translateY(0);
        }

        /* 樣式設定 */
        .share-btn {
            background: rgba(88, 166, 255, 0.1);
            border: 1.5px solid rgba(88, 166, 255, 0.3);
            color: #58a6ff;
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 13px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 800;
            backdrop-filter: blur(5px);
            white-space: nowrap;
        }

        .share-btn:hover {
            background: rgba(88, 166, 255, 0.25);
            border-color: #58a6ff;
            box-shadow: 0 0 20px rgba(88, 166, 255, 0.2);
            transform: translateY(-2px);
        }

        .share-btn .share-icon {
            font-size: 14px;
        }

        .share-btn:active {
            transform: translateY(0);
        }

        /* 卡片 (Card) 容器樣式 */
        .card-share-direct-btn {
            position: absolute;
            top: 10px;
            right: 12px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #8b949e;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 10;
            padding: 0;
            line-height: 1;
        }

        .card-share-direct-btn:hover {
            background: rgba(88, 166, 255, 0.2);
            border-color: #58a6ff;
            color: #58a6ff;
            transform: scale(1.15);
            box-shadow: 0 0 15px rgba(88, 166, 255, 0.3);
        }

        .card-share-direct-btn.copied {
            background: rgba(46, 204, 113, 0.2);
            border-color: #2ecc71;
            color: #2ecc71;
            transform: scale(1.1);
        }

        .card-share-direct-btn .share-icon {
            font-size: 14px;
        }

        .loading-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 10000;
            justify-content: center;
            align-items: center;
            color: var(--gold);
            font-size: 24px;
        }

        /* 樣式設定 */
        .dashboard {
            display: none;
            flex-direction: column;
            gap: 20px;
            overflow: visible !important;
            min-height: 600px;
        }

        @keyframes shimmer {

            0%,
            100% {
                left: -100%;
            }

            50% {
                left: 100%;
            }
        }

        .profile-name {
            font-size: 32px;
            font-weight: 800;
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            filter: drop-shadow(0 0 20px var(--gold-glow));
        }

        .rank-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 15px;
        }

        .rank-badge {
            background: linear-gradient(145deg, rgba(26, 35, 50, 0.6), rgba(15, 25, 34, 0.4));
            border: 2px solid var(--border);
            border-radius: 10px;
            padding: 10px 14px;
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 160px;
            backdrop-filter: blur(10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .rank-badge:hover {
            border-color: var(--primary);
            box-shadow: 0 4px 15px var(--blue-glow);
            transform: translateY(-2px);
        }

        .rank-badge img {
            width: 32px;
            height: 32px;
        }

        .rank-info {
            display: flex;
            flex-direction: column;
        }

        .rank-title {
            font-size: 14px;
            color: #f1eae8;
        }

        .rank-val {
            font-weight: bold;
            font-size: 14px;
            color: var(--gold-bright);
            text-shadow: 0 0 10px var(--gold-glow);
        }

        .rank-change {
            font-size: 10px;
            margin-left: 5px;
        }

        .up {
            color: #ff6c6c;
        }

        .down {
            color: #3fb950;
        }

        .card {
            background: var(--card-bg);
            border: 2px solid var(--border);
            border-radius: 16px;
            padding: 25px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
            margin-bottom: 40px;
            position: relative;
        }

        .card-content-padding {
            padding: 25px;
        }

        /* 彈性佈局 (Flexbox) 設定 */
        .section-header-unified {
            display: flex;
            justify-content: space-between;
            align-items: stretch;
            padding: 0 25px;
            background: rgba(22, 27, 34, 0.9);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px 14px 0 0;
            margin: 0;
            /* 樣式設定 */
            backdrop-filter: blur(10px);
            position: sticky;
            top: 0;
            z-index: 20;
            min-height: 56px;
        }

        .section-header-unified .header-title-group {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px 0;
        }

        .section-header-unified .header-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            flex-shrink: 0;
        }

        .section-header-unified .header-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
        }

        .section-header-unified .header-icon span {
            font-size: 22px;
            line-height: 1;
        }

        .section-header-unified .header-label {
            margin: 0;
            font-size: 19px;
            font-weight: 700;
            color: var(--gold-bright);
            letter-spacing: 0.5px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
            border: none;
            padding: 0;
        }

        .section-header-unified .header-right-extra {
            display: flex;
            align-items: center;
            /* 狀態與數據列樣式 */
            gap: 5px;
        }

        /* 狀態與數據列樣式 */
        .header-right-extra .stat-tabs-header {
            margin-bottom: 0;
            border-bottom: none;
            padding: 0;
            gap: 25px;
            display: flex;
            align-items: stretch;
            align-self: stretch;
            /* 狀態與數據列樣式 */
        }

        .header-right-extra .stat-tab-btn {
            padding: 0 5px;
            font-size: 14px;
            color: #8b949e;
            background: transparent !important;
            border-bottom: 3px solid transparent;
            font-weight: 600;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            margin-bottom: -1px;
            /* 狀態與數據列樣式 */
        }

        .header-right-extra .stat-tab-btn:hover {
            color: #fff;
        }

        .header-right-extra .stat-tab-btn.active {
            color: var(--gold-bright);
            border-bottom-color: var(--gold);
            text-shadow: 0 0 10px rgba(255, 218, 68, 0.3);
            background: transparent !important;
        }

        /* 樣式設定 */
        .integrated-equip-header.section-header-unified {
            margin: 0;
            border-radius: 0;
        }

        /* 卡片 (Card) 容器樣式 */
        .card-sticky-header .section-header-unified {
            margin: 0;
            border-radius: 12px 12px 0 0;
            background: transparent;
            border-bottom: none;
        }

        h3 {
            color: var(--gold-bright);
            margin: 0 0 15px 0;
            font-size: 19px;
            border-left: 5px solid var(--gold);
            padding-left: 12px;
            text-shadow: 0 0 20px var(--gold-glow);
            font-weight: 700;
        }

        .sk-label {
            font-size: 13px;
            color: #94a3b8;
            margin-bottom: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            padding-bottom: 8px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            display: flex;
            align-items: center;
        }

        .stat-tabs-header {
            display: flex;
            gap: 2px;
            margin-bottom: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding: 0 5px;
        }

        .stat-tab-btn {
            padding: 10px 20px;
            font-size: 13px;
            font-weight: 800;
            color: #64748b;
            cursor: pointer;
            transition: all 0.2s;
            border-bottom: 2px solid transparent;
            margin-bottom: -1px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .stat-tab-btn:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.05);
        }

        .stat-tab-btn.active {
            color: var(--gold-bright);
            border-bottom-color: var(--gold);
            background: rgba(255, 217, 61, 0.05);
        }

        .stat-tab-content {
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .stat-tab-content.active {
            display: flex;
            flex-direction: column;
        }

        .new-profile-header-responsive {
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            justify-content: space-between !important;
            gap: 15px !important;
        }

        /* 響應式設定：768px 以下 (手機) */
        @media (max-width: 768px) {
            .section-header-unified {
                padding: 10px 15px !important;
                display: grid !important;
                grid-template-columns: 1fr auto !important;
                grid-template-areas: "title extra" "tabs tabs" !important;
                gap: 8px 10px !important;
                align-items: center !important;
                min-height: auto !important;
                background: rgba(22, 27, 34, 0.4) !important;
                border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
            }

            .section-header-unified .header-title-group {
                grid-area: title !important;
                padding: 0 !important;
                display: flex !important;
                align-items: center !important;
                gap: 8px !important;
                min-width: 0;
            }

            .section-header-unified .header-label {
                font-size: 16px !important;
                font-weight: 800 !important;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                margin: 0 !important;
            }

            .section-header-unified .header-right-extra {
                grid-area: extra !important;
                width: auto !important;
                display: flex !important;
                align-items: center !important;
                justify-content: flex-end !important;
            }

            /* 狀態與數據列樣式 */
            .section-header-unified .header-right-extra:has(.stat-tabs-header) {
                grid-area: tabs !important;
                width: 100% !important;
                justify-content: flex-start !important;
                margin-top: 5px;
                border-top: 1px solid rgba(255, 255, 255, 0.05);
                padding-top: 10px;
            }

            .section-header-unified .stat-tabs-header {
                width: 100% !important;
                max-width: 100% !important;
                overflow-x: auto !important;
                display: flex !important;
                gap: 8px !important;
                padding-bottom: 4px !important;
                -webkit-overflow-scrolling: touch;
            }

            /* 狀態與數據列樣式 */
            .section-header-unified .header-right-extra:not(:has(.stat-tabs-header)) {
                grid-area: extra !important;
            }


            .section-header-unified .stat-tabs-header {
                gap: 5px !important;
                width: max-content;
            }

            .stat-tab-btn {
                padding: 8px 12px !important;
                font-size: 12px !important;
                white-space: nowrap !important;
                /* 狀態與數據列樣式 */
                gap: 4px !important;
            }

            /* 狀態與數據列樣式 */
            .stat-tab-btn i,
            .stat-tab-btn span:first-child {
                font-size: 14px !important;
            }
        }

        /* 狀態與數據列樣式 */
        .stat-row-label {
            color: #FFFFFF !important;
            /* 狀態與數據列樣式 */
            font-weight: bold;
        }

        .skill-description-box,
        .stat-row-desc {
            color: #94a3b8;
            /* 狀態與數據列樣式 */
        }

        /* 狀態與數據列樣式 */
        .api-num-highlight,
        .stat-row-val {
            color: #FCC78B !important;
            /* 狀態與數據列樣式 */
            font-weight: 900;
            text-shadow: 0 0 8px rgba(252, 199, 139, 0.5);
        }

        .stat-list-container {
            display: flex;
            flex-direction: column;
            gap: 5px;
            margin-bottom: 20px;
            background: rgba(0, 0, 0, 0.15);
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            overflow: hidden;
        }

        .stat-general-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            background: rgba(255, 255, 255, 0.02);
        }

        .stat-list-row {
            display: grid;
            grid-template-columns: 1fr auto;
            grid-template-areas:
                "label val"
                "desc desc";
            padding: 10px 16px;
            /* 樣式設定 */
            align-items: center;
            /* 樣式設定 */
            border-bottom: 1px solid rgba(255, 255, 255, 0.03);
            border-right: 1px solid rgba(255, 255, 255, 0.03);
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
            min-height: 40px;
            /* 狀態與數據列樣式 */
        }

        .stat-list-row:nth-child(2n) {
            border-right: none;
        }

        .stat-list-row:hover {
            background: rgba(255, 255, 255, 0.03);
        }

        .stat-row-label {
            grid-area: label;
            font-size: 14px;
            /* 彈性佈局 (Flexbox) 設定 */
            font-weight: 600;
            color: #94a3b8;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .stat-row-val {
            grid-area: val;
            font-size: 18px;
            /* 樣式設定 */
            font-weight: 800;
            color: #fff;
            text-align: right;
            font-family: 'Inter', system-ui, sans-serif;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .stat-row-desc {
            grid-area: desc;
            font-size: 11px;
            color: #4ed9ff;
            opacity: 1;
            padding: 0;
            display: none;
            flex-direction: column;
            gap: 4px;
            margin-top: 12px;
            /* 樣式設定 */
            line-height: 1.5;
            padding-top: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .stat-list-row.expanded .stat-row-desc {
            display: flex;
            /* 狀態與數據列樣式 */
        }

        .stat-row-desc div {
            white-space: nowrap;
            display: flex;
            align-items: center;
        }

        .expand-hint {
            font-size: 9px;
            color: #4b5563;
            margin-top: 2px;
            transition: transform 0.2s;
        }

        .stat-list-row.expanded .expand-hint {
            transform: rotate(180deg);
        }

        /* 狀態與數據列樣式 */
        .stat-tab-content#stat-tab-extra .stat-row-val {
            color: var(--gold-bright);
            text-shadow: 0 0 15px rgba(255, 217, 61, 0.3);
        }

        .stat-tab-content#stat-tab-extra .stat-row-desc {
            color: #ffd93d;
            /* 狀態與數據列樣式 */
            opacity: 0.8;
        }

        .stat-list-row:last-child {
            border-bottom: none;
        }

        .stat-list-row:hover {
            background: rgba(255, 255, 255, 0.03);
        }

        .stat-row-label {
            font-size: 13px;
            font-weight: 600;
            color: #94a3b8;
        }

        .stat-row-desc {
            font-size: 12px;
            color: var(--primary);
            opacity: 0.7;
            padding: 0 15px;
        }

        .stat-row-val {
            font-size: 18px;
            font-weight: 800;
            color: #fff;
            text-align: right;
            font-family: 'Inter', system-ui, sans-serif;
        }

        /* 響應式 (RWD) 佈局設定 */
        @media (max-width: 600px) {
            .stat-list-row {
                grid-template-columns: 1fr auto;
                padding: 12px 15px;
            }

            .stat-row-desc {
                display: none;
            }
        }

        .stat-mini-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-left: 3px solid var(--primary);
            border-radius: 6px;
            padding: 12px 14px;
            display: flex;
            /* Changed from grid to flex */
            flex-direction: column;
            /* Stack items vertically */
            justify-content: space-between;
            /* Distribute space */
            position: relative;
            transition: all 0.2s ease;
            cursor: help;
            min-height: 60px;
        }

        .stat-mini-card:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
            transform: scale(1.02);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
            z-index: 5;
        }

        .stat-mini-label {
            font-size: 12px;
            color: #94a3b8;
            font-weight: 600;
            white-space: nowrap;
        }

        .stat-mini-val {
            font-size: 22px;
            font-weight: 900;
            color: #fff;
            text-align: right;
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            position: absolute;
            /* Position value absolutely */
            top: 12px;
            right: 14px;
        }

        .stat-mini-desc {
            font-size: 11px;
            color: var(--primary);
            opacity: 0.8;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-top: auto;
            /* Push to bottom */
            padding-right: 60px;
            /* Make space for the absolute positioned value */
        }

        .stat-mini-card.extra-stat {
            border-left-color: var(--gold);
        }

        .stat-mini-card.extra-stat .stat-mini-desc {
            color: var(--gold);
        }

        .skill-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
            gap: 8px;
            margin-bottom: 25px;
        }

        .skill-card {
            position: relative;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-left: 3px solid var(--primary);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            min-height: 52px;
            touch-action: manipulation;
        }

        .skill-card:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
            transform: scale(1.02);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
            z-index: 5;
        }

        .skill-card img {
            width: 32px;
            height: 32px;
            border-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.2s ease;
        }

        .skill-card:hover img {
            transform: scale(1.05);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .sk-name {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: #e6edf3;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 90px;
        }

        .tooltip {
            visibility: hidden;
            min-width: 180px;
            max-width: min(350px, calc(100vw - 40px));
            width: auto;
            overflow-wrap: break-word;
            /* 樣式設定 */
            background: linear-gradient(145deg, rgba(26, 35, 50, 0.98), rgba(15, 25, 34, 0.98)) !important;
            backdrop-filter: blur(20px) saturate(180%);
            /* 樣式設定 */
            border: 2px solid rgba(0, 212, 255, 0.3);
            border-top: 3px solid var(--primary);
            border-radius: 12px;
            padding: 16px;
            position: absolute;
            z-index: 9999 !important;
            /* 樣式設定 */
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            margin-bottom: 10px;
            opacity: 0;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            /* 樣式設定 */
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9),
                0 0 30px var(--primary-glow),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            color: #e8f0ff !important;
            pointer-events: auto;
            white-space: normal;
            font-size: 13px;
            line-height: 1.6;
            max-height: 80vh;
            /* 提示框 (Tooltip) 相關樣式 */
            overflow-y: auto;
        }

        /* 提示框 (Tooltip) 相關樣式 */
        .tooltip::before {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            height: 20px;
            bottom: -15px;
            /* 樣式設定 */
            background: transparent;
            pointer-events: auto;
        }

        /* 提示框 (Tooltip) 相關樣式 */
        .tooltip[style*="top:"]::before {
            bottom: auto;
            top: -15px;
        }

        /* 提示框 (Tooltip) 相關樣式 */
        .tooltip b {
            color: var(--gold-bright) !important;
            letter-spacing: 0.5px;
            text-shadow: 0 0 10px var(--gold-glow);
        }

        /* 捲軸 (Scrollbar) 樣式自訂 */
        .tooltip::-webkit-scrollbar {
            width: 6px;
        }

        .tooltip::-webkit-scrollbar-thumb {
            background: rgba(197, 160, 89, 0.5);
            border-radius: 10px;
        }

        .tooltip::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.2);
        }

        /* 提示框 (Tooltip) 相關樣式 */
        .tooltip-close-btn {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 22px;
            height: 22px;
            background: rgba(255, 60, 60, 0.8);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            line-height: 1;
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10001;
            transition: all 0.2s;
            padding: 0;
        }

        .tooltip-close-btn:hover {
            background: rgba(255, 0, 0, 1);
            transform: scale(1.1);
        }

        /* 提示框 (Tooltip) 相關樣式 */
        .tooltip.tooltip-pinned {
            visibility: visible !important;
            opacity: 1 !important;
            pointer-events: auto !important;
        }

        .tooltip.tooltip-pinned .tooltip-close-btn {
            display: flex;
        }

        /* 提示框 (Tooltip) 相關樣式 */
        /* 提示框 (Tooltip) 相關樣式 */
        .stat-mini-card:nth-child(4n+1) .tooltip {
            left: 0;
            transform: translateX(0);
        }

        /* 提示框 (Tooltip) 相關樣式 */
        /* 提示框 (Tooltip) 相關樣式 */
        .stat-mini-card:nth-child(4n) .tooltip {
            left: auto;
            right: 0;
            transform: translateX(0);
        }

        /* 提示框 (Tooltip) 相關樣式 */
        .skill-card .tooltip {
            /* 樣式設定 */
            left: 0;
            transform: none;
        }

        /* 提示框 (Tooltip) 相關樣式 */
        table td:nth-last-child(-n+4) .tooltip {
            left: auto;
            right: 0;
            transform: translateX(0);
        }

        /* 樣式設定 */
        table td {
            overflow: visible !important;
        }

        /* 樣式設定 */
        .hover-calc {
            overflow: visible !important;
        }

        .th-hover,
        .hover-calc,
        .skill-card,
        .stat-mini-card {
            position: relative;
        }

        /* 提示框 (Tooltip) 相關樣式 */
        .th-hover:hover .tooltip,
        .hover-calc:hover .tooltip,
        .skill-card:hover .tooltip,
        .stat-mini-card:hover .tooltip,
        .custom-tooltip-trigger:hover .custom-tooltip-content {
            visibility: visible;
            opacity: 1;
            display: block !important;
        }

        /* 狀態與數據列樣式 */
        .th-hover:hover,
        .hover-calc:hover,
        .skill-card:hover,
        .stat-mini-card:hover {
            z-index: 2000;
        }

        /* 狀態與數據列樣式 */
        .stat-grid-main,
        .skill-list {
            position: relative;
            overflow: visible;
        }

        /* 樣式設定 */

        /* 樣式設定 */
        thead th {
            position: sticky !important;
            top: 0 !important;
            z-index: 100;
            background: linear-gradient(145deg, #1a2332, #151b26);
            box-shadow: inset 0 -2px 0 var(--primary);
            vertical-align: middle !important;
        }

        /* 提示框 (Tooltip) 相關樣式 */
        thead th.th-hover .tooltip {
            position: fixed !important;
            /* 樣式設定 */
            bottom: auto;
            top: auto;
            /* 樣式設定 */
            left: auto;
            transform: none;
            margin: 0;
            border-top: none;
            border-bottom: 3px solid var(--gold);
            z-index: 99999 !important;
            /* 提示框 (Tooltip) 相關樣式 */
        }

        /* 提示框 (Tooltip) 相關樣式 */
        .stat-mini-card .tooltip {
            max-width: min(300px, calc(100vw - 40px));
            /* 樣式設定 */
            bottom: auto !important;
            top: calc(100% + 5px) !important;
            margin-top: 0;
            margin-bottom: 0;
            border-top: none;
            border-bottom: 3px solid var(--primary);
            z-index: 10000 !important;
        }

        /* 提示框 (Tooltip) 相關樣式 */
        .skill-card .tooltip {
            max-width: min(250px, calc(100vw - 40px));
        }

        /* 提示框 (Tooltip) 相關樣式 */
        .hover-calc .tooltip {
            max-width: min(400px, calc(100vw - 40px));
            max-height: 500px;
        }

        /* 提示框 (Tooltip) 相關樣式 */
        tbody tr:nth-child(-n+12) .hover-calc .tooltip {
            bottom: auto !important;
            top: calc(100% + 5px) !important;
            margin-top: 0;
            margin-bottom: 0;
            border-top: none;
            border-bottom: 3px solid var(--primary);
            z-index: 10000 !important;
        }

        /* 彈性佈局 (Flexbox) 設定 */
        .profile-new-header {
            display: flex;
            gap: 20px;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            margin-bottom: 20px;
            padding: 20px;
            background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .profile-left {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .profile-img-lg {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            border: 2px solid var(--gold);
            object-fit: cover;
            box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
        }

        .profile-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .profile-name-row {
            display: flex;
            align-items: baseline;
            gap: 10px;
        }

        .p-name-lg {
            font-size: 24px;
            font-weight: bold;
            color: #fff;
            letter-spacing: 0.5px;
        }

        .p-title-sm {
            font-size: 13px;
            color: var(--blue);
            background: rgba(88, 166, 255, 0.1);
            padding: 2px 6px;
            border-radius: 4px;
        }

        .profile-badges {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin-top: 4px;
        }

        .p-badge {
            font-size: 11px;
            padding: 4px 8px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.05);
            color: #94a3b8;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .profile-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            justify-content: center;
            gap: 5px;
        }

        .item-score-box {
            text-align: right;
        }

        .update-time {
            font-size: 11px;
            color: #475569;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .rank-grid-new {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 10px;
            margin-bottom: 20px;
        }

        .rank-card-new {
            background: rgba(30, 41, 59, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            padding: 12px 15px;
            position: relative;
            overflow: hidden;
            transition: all 0.2s ease;
        }

        .rank-card-new:hover {
            background: rgba(30, 41, 59, 0.6);
            border-color: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
        }

        .rank-card-new::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 3px;
            height: 100%;
            background: var(--blue);
            opacity: 0.5;
        }

        .rank-card-new.active-rank {
            background: rgba(88, 166, 255, 0.15);
            border-color: var(--primary);
            box-shadow: 0 0 15px rgba(88, 166, 255, 0.3);
        }

        .rank-card-new.active-rank::before {
            opacity: 1;
            width: 4px;
            background: var(--primary);
        }

        .rc-label {
            font-size: 11px;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .rc-val {
            font-size: 20px;
            font-weight: bold;
            color: #f1f5f9;
            margin-top: 4px;
        }

        .rc-diff {
            font-size: 11px;
            position: absolute;
            top: 12px;
            right: 12px;
            font-weight: bold;
        }

        .diff-up {
            color: #4ade80;
        }

        .diff-down {
            color: #f87171;
        }

        .diff-same {
            color: #64748b;
        }

        .percentile-grid-new {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 12px;
        }

        .percentile-box {
            background: rgba(255, 255, 255, 0.02);
            padding: 12px 15px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .pt-header {
            display: flex;
            /*  justify-content: space-between; */
            align-items: center;
            margin-bottom: 6px;
        }

        .pt-label {
            font-size: 16px;
            color: #94a3b8;
        }

        .pt-rank {
            font-size: 11px;
            color: var(--gold);
            background: rgba(255, 215, 0, 0.1);
            padding: 2px 6px;
            border-radius: 3px;
        }

        .pt-val-lg {
            font-size: 18px;
            font-weight: bold;
            color: #fff;
        }

        .pt-bar {
            height: 4px;
            background: rgba(255, 255, 255, 0.1);
            margin-top: 8px;
            border-radius: 2px;
            overflow: hidden;
        }

        .pt-fill {
            height: 100%;
            background: var(--primary);
            border-radius: 2px;
        }

        /* 樣式設定 */
        .profile-new-header {
            gap: 30px;
            padding: 30px;
            border-radius: 16px;
            background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .profile-img-lg {
            width: 90px;
            height: 90px;
            border-width: 3px;
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
        }

        .p-name-lg {
            font-size: 36px;
            letter-spacing: 1.5px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        }

        .p-title-sm {
            font-size: 16px;
            padding: 5px 12px;
            border-radius: 6px;
        }

        .profile-badges {
            margin-top: 10px;
            gap: 12px;
        }

        .p-badge {
            font-size: 15px;
            padding: 6px 14px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.15);
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .update-time {
            font-size: 14px;
            color: #4ade80;
            background: rgba(74, 222, 128, 0.15);
            padding: 6px 16px;
            border-radius: 20px;
            border: 1px solid rgba(74, 222, 128, 0.3);
            letter-spacing: 0.5px;
        }

        .active-rank {
            border-color: var(--gold) !important;
            box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
            background: rgba(30, 41, 59, 0.8) !important;
            transform: translateY(-2px);
        }

        .rank-card-new {
            cursor: pointer;
        }

        /* 樣式設定 */
        .header-combine-card {
            background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 30px;
            margin-bottom: 25px;
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        /* 樣式設定 */
        .profile-new-header {
            background: none !important;
            box-shadow: none !important;
            border: none !important;
            padding: 0 !important;
            margin-bottom: 0 !important;
            border-radius: 0 !important;
        }

        /* 樣式設定 */
        .temp-alert {
            background: rgba(255, 193, 7, 0.15);
            border: 1px solid rgba(255, 193, 7, 0.4);
            color: #fbbf24;
            padding: 12px 15px;
            border-radius: 8px;
            font-size: 14px;
            margin: 10px 0 15px 0;
            display: flex;
            align-items: center;
            gap: 10px;
            animation: fadeIn 0.5s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-out {
            opacity: 0 !important;
            transition: opacity 1s ease;
        }

        /* 樣式設定 */
        table {
            border-collapse: separate;
            border-spacing: 0;
            width: 100%;
            /* 樣式設定 */
        }

        table td,
        table th {
            border-right: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
            padding: 12px 10px;
            text-align: center;
            white-space: nowrap;
            vertical-align: middle !important;
        }

        /* 樣式設定 */

        /* 樣式設定 */

        /* 樣式設定 */

        .hover-calc {
            border-bottom: 1px dashed var(--primary);
            cursor: help;
            display: inline-block;
            vertical-align: middle;
        }

        .grid-box-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 20px;

        }

        .info-box {
            background: linear-gradient(145deg, rgba(255, 217, 61, 0.08), rgba(255, 217, 61, 0.03));
            border: 2px solid var(--gold);
            border-radius: 10px;
            padding: 15px;
            height: 100%;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .box-header {
            border-bottom: 2px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 8px;
            margin-bottom: 10px;
            font-weight: 700;
            color: var(--gold-bright);
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .title-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }

        .title-label {
            font-size: 12px;
            color: inherit;
            display: flex;
            align-items: center;
            gap: 6px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            margin-bottom: 8px;
            padding-bottom: 5px;
            font-weight: 600;
            opacity: 0.9;
        }

        .title-val {
            font-size: 16px;
            font-weight: bold;
            color: var(--blue-bright);
            display: block;
            margin-bottom: 8px;
            text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        }

        .title-desc {
            font-size: 14px;
            color: #aaa;
            line-height: 1.4;
        }

        .section-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 25px 0 15px 0;
            color: var(--gold-bright);
            font-size: 1.3em;
            border-bottom: 2px solid var(--border);
            padding-bottom: 10px;
            font-weight: 700;
            text-shadow: 0 0 15px var(--gold-glow);
        }

        #equip-armor-list,
        #equip-accessory-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
            gap: 12px;
        }

        /* 裝備區塊樣式 */
        .equip-tooltip-card {
            background: #0d1117;
            border: 1px solid rgba(255, 217, 61, 0.12);
            border-radius: 12px;
            overflow: hidden;
            position: relative;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .equip-tooltip-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
        }

        .tooltip-body-static {
            padding: 10px 15px;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        /* 提示框：稀有度顏色設定 */
        .equip-tooltip-card.tooltip-rarity-myth {
            border-color: rgba(230, 126, 34, 0.3);
        }

        .equip-tooltip-card.tooltip-rarity-myth .tooltip-header::before {
            background: #e67e22;
        }

        .equip-tooltip-card.tooltip-rarity-unique {
            border-color: rgba(241, 196, 15, 0.3);
        }

        .equip-tooltip-card.tooltip-rarity-unique .tooltip-header::before {
            background: #f1c40f;
        }

        .equip-tooltip-card.tooltip-rarity-legend {
            border-color: rgba(52, 152, 219, 0.3);
        }

        .equip-tooltip-card.tooltip-rarity-legend .tooltip-header::before {
            background: #3498db;
        }

        .equip-tooltip-card.tooltip-rarity-special {
            border-color: rgba(0, 255, 204, 0.25);
        }

        .equip-tooltip-card.tooltip-rarity-special .tooltip-header::before {
            background: #00ffcc;
        }

        .equip-tooltip-card.tooltip-rarity-rare {
            border-color: rgba(46, 204, 113, 0.3);
        }

        .equip-tooltip-card.tooltip-rarity-rare .tooltip-header::before {
            background: #2ecc71;
        }

        .equip-tooltip-card.tooltip-rarity-common {
            border-color: rgba(206, 212, 218, 0.15);
        }

        .equip-tooltip-card.tooltip-rarity-common .tooltip-header::before {
            background: #ced4da;
        }

        /* 提示框 (Tooltip) 相關樣式 */
        .equip-tooltip-card .tooltip-section {
            padding: 6px 15px;
        }

        .equip-tooltip-card .tooltip-header {
            padding: 10px 15px;
        }

        /* 提示框 (Tooltip) 相關樣式 */
        .tooltip-item-icon {
            width: 52px;
            height: 52px;
            object-fit: contain;
            border-radius: 6px;
            background: rgba(0, 0, 0, 0.4);
            padding: 3px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            flex-shrink: 0;
        }

        .tooltip-item-info {
            flex: 1;
            min-width: 0;
        }

        .tooltip-item-name {
            font-size: 15px;
            font-weight: 800;
            color: #fff;
            line-height: 1.3;
            word-break: break-all;
        }

        .equip-item-card {
            background: linear-gradient(145deg, rgba(26, 35, 50, 0.4), rgba(15, 25, 34, 0.2));
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-top-width: 3px;
            border-top-style: solid;
            border-top-color: rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            display: flex;
            min-height: 120px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(5px);
        }

        .equip-item-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 217, 61, 0.1), transparent);
            transition: left 0.6s;
        }

        .equip-item-card:hover {
            background: linear-gradient(145deg, rgba(26, 35, 50, 0.6), rgba(15, 25, 34, 0.4));
            border-color: var(--gold);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px var(--gold-glow),
                0 0 25px var(--gold-glow);
        }

        .equip-item-card:hover::before {
            left: 100%;
        }

        .equip-left-section {
            flex: 5;
            padding: 12px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            border-right: 1px solid rgba(255, 255, 255, 0.05);
        }

        .equip-right-section {
            flex: 5;
            background: rgba(0, 0, 0, 0.2);
            padding: 12px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        /* 健檢報告 (Health Check) 相關樣式 */
        .health-check-container {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
        }

        .health-score-box {
            flex: 1;
            background: linear-gradient(135deg, rgba(30, 30, 40, 0.8), rgba(20, 20, 20, 0.9));
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 20px;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

        .health-score-val {
            font-size: 48px;
            font-weight: 900;
            background: linear-gradient(to bottom, #fff, #ffd700);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
            line-height: 1;
        }

        .health-score-label {
            color: #8b949e;
            font-size: 14px;
            margin-top: 5px;
        }

        .health-details-box {
            flex: 2;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .advice-item {
            background: rgba(255, 255, 255, 0.03);
            border-left: 3px solid #8b949e;
            padding: 10px 15px;
            border-radius: 4px;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .advice-item.critical {
            border-left-color: #ff4757;
            background: rgba(255, 71, 87, 0.1);
        }

        .advice-item.warning {
            border-left-color: #ffa502;
            background: rgba(255, 165, 2, 0.1);
        }

        .advice-item.good {
            border-left-color: #2ed573;
            background: rgba(46, 213, 115, 0.1);
        }

        .stat-highlight-row {
            display: flex;
            justify-content: space-between;
            margin-top: 5px;
            font-size: 13px;
            color: #ccc;
            border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
            padding-bottom: 5px;
        }

        .equip-img-container {
            position: relative;
            width: 44px;
            height: 44px;
            flex-shrink: 0;
        }

        .equip-img-container img {
            width: 44px;
            height: 44px;
            border-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .exceed-badge {
            position: absolute;
            top: -7px;
            right: -7px;
            background: #ff3e3e;
            color: white;
            border: 1px solid #ffd700;
            font-size: 10px;
            padding: 1px 4px;
            border-radius: 4px;
            font-weight: bold;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
            z-index: 2;
        }

        .equip-name {
            font-weight: bold;
            font-size: 14px;
            line-height: 1.4;
            display: flex;
            align-items: center;
            color: var(--blue-bright);
            white-space: normal;
        }

        .base-stat-row {
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            padding: 4px 0;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .random-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: var(--green);
            margin-bottom: 3px;
            font-size: 13px;
            font-weight: 500;
        }

        .skill-badge-mini {
            color: var(--primary);
            margin-top: 5px;
            display: block;
            font-weight: bold;
            border-left: 3px solid var(--primary);
            padding-left: 8px;
            font-size: 12px;
            text-shadow: 0 0 10px var(--blue-glow);

        }

        /* 樣式設定 */
        .trend-tab {
            padding: 8px 16px;
            border: 1px solid var(--border);
            background: rgba(30, 41, 59, 0.8);
            /* 樣式設定 */
            color: #c9d1d9;
            /* 樣式設定 */
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            /* 樣式設定 */
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .trend-tab:hover {
            background: rgba(48, 54, 61, 0.9);
            color: #fff;
            border-color: #8b949e;
        }

        .trend-tab.active {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
            box-shadow: 0 0 10px rgba(88, 166, 255, 0.4);
            /* 狀態與數據列樣式 */
            text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
        }

        /* 狀態與數據列樣式 */
        .stat-sub-tab-btn {
            cursor: pointer;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: bold;
            transition: all 0.2s;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(0, 0, 0, 0.2);
            color: #888;
            white-space: nowrap;
        }

        .stat-sub-tab-btn:hover {
            background: rgba(100, 100, 255, 0.2) !important;
            border-color: rgba(100, 100, 255, 0.5) !important;
            color: #ccc;
        }

        .stat-sub-tab-btn.active {
            background: rgba(100, 100, 255, 0.4) !important;
            border-color: rgba(100, 100, 255, 0.8) !important;
            color: #fff !important;
            box-shadow: 0 0 10px rgba(100, 100, 255, 0.2);
        }

        /* 狀態與數據列樣式 */
        .stat-comparison-grid {
            display: grid;
            grid-template-columns: 1.15fr 0.85fr;
            gap: 20px;
        }

        .stat-ranking-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        /* 樣式設定 */

        /* 樣式設定 */
        /* 樣式設定 */
        tbody tr {
            position: relative;
        }

        tbody tr:hover td {
            background-color: rgba(255, 255, 255, 0.05);
        }

        tbody td {
            position: relative;
            /* 樣式設定 */
        }

        /* 彈性佈局 (Flexbox) 設定 */

        /* 彈性佈局 (Flexbox) 設定 */
        .collapsible-header {
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 15px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            margin-top: 25px;
            border-left: 5px solid var(--gold);
            transition: all 0.2s;
        }

        .collapsible-header:hover {
            background: rgba(255, 255, 255, 0.08);
        }

        .collapsible-header h3 {
            margin: 0;
            border-left: none;
            padding-left: 0;
            font-size: 17px;
        }

        .collapsible-content {
            overflow: hidden;
            max-height: 20000px;
            transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), opacity 0.3s, margin 0.3s;
            opacity: 1;
            margin-top: 15px;
        }

        .collapsible-content.collapsed {
            max-height: 0;
            opacity: 0;
            margin-top: 0;
        }

        .toggle-icon {
            color: var(--gold);
            transition: transform 0.3s;
            font-size: 12px;
        }

        .collapsed .toggle-icon {
            transform: rotate(-90deg);
        }

        /* 樣式設定 */

        /* ==========================================================================
   Step 988: Premium Profile Header Redesign (Overrides previous styles)
   ========================================================================== */

        /* 1. Header Container & Layout */
        .profile-new-header {
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            padding: 30px;
            margin-bottom: 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 30px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
        }

        /* Subtle animated sheen background */
        .profile-new-header::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle at center, rgba(0, 212, 255, 0.03), transparent 70%);
            animation: rotate 30s linear infinite;
            pointer-events: none;
        }

        .profile-left {
            display: flex;
            gap: 25px;
            align-items: flex-start;
            position: relative;
            z-index: 2;
        }

        .profile-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 12px;
            position: relative;
            z-index: 2;
        }

        /* 2. Avatar & Level Badge */
        .profile-avatar-wrapper {
            position: relative;
            width: 120px;
            height: 120px;
        }

        .profile-img-lg {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 3px solid var(--gold);
            box-shadow: 0 0 25px rgba(255, 217, 61, 0.4);
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .profile-img-lg:hover {
            transform: scale(1.05);
        }

        .profile-lv-badge {
            position: absolute;
            bottom: -5px;
            right: -5px;
            background: linear-gradient(135deg, var(--gold), #d4af37);
            color: #0f172a;
            font-size: 11px;
            font-weight: 800;
            padding: 2px 8px;
            border-radius: 12px;
            border: 2px solid #1e293b;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
            z-index: 5;
        }

        /* 3. Name & Title */
        .profile-info {
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding-top: 5px;
        }

        .profile-name-row {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .p-name-lg {
            font-size: 32px;
            font-weight: 800;
            color: #fff;
            text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
            letter-spacing: 0.5px;
            line-height: 1;
        }

        .p-title-sm {
            font-size: 13px;
            font-weight: 600;
            color: var(--blue-bright);
            background: rgba(88, 166, 255, 0.1);
            border: 1px solid rgba(88, 166, 255, 0.2);
            padding: 4px 10px;
            border-radius: 6px;
            letter-spacing: 0.5px;
        }

        /* 4. Meta Badge Grid */
        .profile-meta-grid {
            display: flex;
            flex-direction: column;
            /* 樣式設定 */
            gap: 8px;
            margin-top: 10px;
            width: 100%;
            /* 彈性佈局 (Flexbox) 設定 */
        }

        .meta-item {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            /* 樣式設定 */
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 0 12px;
            border-radius: 8px;
            transition: all 0.2s ease;
            height: 36px;
            width: 100%;
            box-sizing: border-box;
        }

        .meta-item:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
        }

        .meta-icon {
            position: absolute;
            left: 12px;
            font-size: 14px;
            display: flex;
            align-items: center;
        }

        /* 樣式設定 */
        #compare-a4-container {
            width: 100%;
            margin: 0 auto;
            background: transparent;
            position: relative;
        }

        #compare-a4-container table th {
            font-family: 'Microsoft JhengHei', sans-serif;
        }

        #compare-a4-container .compare-row-item {
            transition: none !important;
        }

        #compare-a4-overlay .newspaper-modal {
            background: transparent;
            padding: 0;
            border-radius: 0;
        }

        @media print {
            #compare-a4-container {
                width: 100%;
                box-shadow: none;
            }
        }

        /* Announcement Marquee System */
        .announcement-marquee {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 40px;
            background: rgba(10, 14, 23, 0.95);
            border-bottom: 2px solid var(--gold);
            z-index: 999999;
            display: flex;
            align-items: center;
            overflow: hidden;
            pointer-events: none;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
        }

        .marquee-content {
            display: inline-block;
            white-space: nowrap;
            padding-left: 100%;
            animation: marquee-scroll 25s linear infinite;
            font-weight: 800;
            color: var(--gold-bright);
            font-size: 18px;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        }

        .marquee-text-item {
            display: inline-flex;
            align-items: center;
            gap: 15px;
            margin-right: 100px;
        }

        @keyframes marquee-scroll {
            0% {
                transform: translateX(0);
            }

            100% {
                transform: translateX(-100%);
            }
        }

        /* 內容推擠：跑馬燈出現時向下推 */
        body.has-marquee {
            padding-top: 50px !important;
        }

        .meta-text {
            font-size: 13px;
            color: #94a3b8;
            font-weight: 500;
        }

        .abyss-rank {
            border-color: rgba(255, 123, 123, 0.2);
            background: rgba(255, 123, 123, 0.05);
        }

        .abyss-rank .meta-text {
            color: #ff7b7b;
            font-weight: 700;
        }

        /* 5. Update Time Pill */
        .update-time-pill {
            display: flex;
            align-items: center;
            gap: 6px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            transition: all 0.2s;
        }

        .update-time-pill:hover {
            color: #94a3b8;
            border-color: rgba(255, 255, 255, 0.1);
            background: rgba(30, 41, 59, 0.8);
        }

        .update-icon {
            font-size: 12px;
            opacity: 0.7;
        }

        /* 7. Responsive Adjustments */
        @media (max-width: 1024px) {
            .profile-new-header {
                flex-direction: column;
                align-items: center;
                gap: 15px;
                padding: 15px;
            }

            .profile-right {
                align-items: center;
                width: 100%;
            }



            .profile-info {
                align-items: flex-start;
                text-align: left;
                width: 100%;
            }

            .profile-left {
                flex-direction: row;
                align-items: center;
                width: 100%;
                gap: 15px;
            }

            .profile-avatar-wrapper {
                margin: 0;
                width: 80px;
                height: 80px;
                flex-shrink: 0;
            }

            .profile-img-lg {
                width: 80px;
                height: 80px;
            }

            .profile-lv-badge {
                bottom: -2px;
                right: -2px;
                font-size: 10px;
                padding: 2px 6px;
            }

            .profile-meta-grid {
                justify-content: flex-start;
            }

            .p-name-lg {
                font-size: 24px;
            }

            .card-sticky-header.mobile-flex-header {
                display: flex;
                flex-direction: column;
            }

            .mobile-vertical-title {
                display: none !important;
            }

            .desktop-only-title {
                display: block !important;
            }

            .mobile-header-content {
                flex: 1;
                min-width: 0;
                display: flex;
                flex-direction: column;
            }

            #pinned-stats-panel {
                display: none;
                /* 彈性佈局 (Flexbox) 設定 */
            }

            .combat-analysis-flex-container {
                display: flex;
                flex-direction: row;
                align-items: flex-start;
                width: 100%;
            }

            #pinned-stats-panel {
                width: 200px;
                flex-shrink: 0;
                border-right: 1px solid rgba(255, 255, 255, 0.08);
                background: rgba(0, 0, 0, 0.2);
                padding: 12px;
                position: sticky;
                top: 80px;
                /* 樣式設定 */
                align-self: flex-start;
                max-height: calc(100vh - 100px);
                overflow-y: auto;
                transition: all 0.3s ease;
                margin-right: 0;
            }

            .combat-main-content-area {
                flex: 1;
                min-width: 0;
            }

            /* 響應式設定：1024px 以下 (平板) */
            @media (max-width: 1024px) {
                .combat-analysis-flex-container {
                    flex-direction: column !important;
                    align-items: stretch !important;
                }

                #pinned-stats-panel {
                    width: 100% !important;
                    border-right: none !important;
                    border-bottom: 2px solid var(--gold);
                    position: relative !important;
                    top: auto !important;
                    max-height: 150px !important;
                    display: none;
                    /* ??JS ?????grid */
                    grid-template-columns: repeat(2, 1fr) !important;
                    gap: 6px !important;
                    padding: 8px 12px !important;
                    margin-bottom: 5px !important;
                    background: rgba(0, 0, 0, 0.4) !important;
                }

                #pinned-stats-panel div {
                    font-size: 10px !important;
                }

                #pinned-stats-panel>div:first-child,
                #pinned-stats-panel div:first-child {
                    grid-column: 1 / -1 !important;
                    margin-bottom: 4px !important;
                    font-size: 11px !important;
                    text-align: center !important;
                }

                /* 彈性佈局 (Flexbox) 設定 */
                #combat-analysis-global-controls {
                    display: flex !important;
                    flex-direction: row !important;
                    flex-wrap: wrap !important;
                    gap: 3px !important;
                    justify-content: flex-start !important;
                }

                #combat-analysis-global-controls button {
                    font-size: 10px !important;
                    padding: 4px 8px !important;
                    margin: 0 !important;
                    flex: 1 !important;
                    text-align: center !important;
                }

                .btn-mobile-hide {
                    display: none !important;
                }
            }

            /* 樣式設定 */
            [id^="row-detail-"] {
                flex-direction: column !important;
                gap: 10px !important;
            }

            .detail-col-label {
                display: block !important;
            }

            /* 樣式設定 */
            .desk-title-row {
                flex-wrap: wrap !important;
                gap: 6px !important;
                padding: 8px 12px !important;
            }

            .desktop-only-title {
                font-size: 14px !important;
                padding: 0 !important;
                white-space: nowrap;
                flex-shrink: 0;
            }

            #combat-analysis-global-controls {
                flex-wrap: wrap !important;
                gap: 5px !important;
                justify-content: flex-start !important;
            }

            /* 樣式設定 */
            .mobile-ctrl-break {
                flex-basis: 100% !important;
                height: 0 !important;
            }

            .desk-title-row {
                flex-wrap: wrap !important;
                gap: 6px !important;
                padding: 8px 12px !important;
                justify-content: flex-start !important;
            }

            /* 樣式設定 */
            .custom-tooltip-content {
                position: fixed !important;
                left: 50% !important;
                top: 50% !important;
                bottom: auto !important;
                transform: translate(-50%, -50%) !important;
                width: 90vw !important;
                max-width: 350px !important;
                z-index: 10000 !important;
                box-sizing: border-box !important;
            }

            .split-integrated-layout {
                flex-direction: column !important;
                height: auto !important;
                /* 樣式設定 */
            }

            .integrated-equip-header {
                flex-wrap: wrap !important;
                gap: 10px !important;
                margin-bottom: 15px !important;
            }

            .integrated-equip-header .header-title h3 {
                font-size: 16px !important;
            }

            .integrated-equip-header .stat-tabs-header {
                width: 100% !important;
                justify-content: center !important;
            }

            .equip-sidebar-profile {
                flex: 0 0 auto !important;
                width: 100% !important;
                overflow: visible !important;
                /* 樣式設定 */
                border: none !important;
                /* 樣式設定 */
                padding: 20px !important;
                flex-direction: column !important;
                /* 樣式設定 */
                align-items: center !important;
                gap: 12px !important;
                box-sizing: border-box !important;
            }

            .equip-main-content {
                width: 100% !important;
                padding: 15px !important;
                box-sizing: border-box !important;
                height: 100% !important;
                /* 彈性佈局 (Flexbox) 設定 */
                display: flex !important;
                flex-direction: column !important;
                min-height: 0 !important;
                overflow: hidden !important;
            }

            #integrated-tab-content-area {
                overflow-y: auto !important;
                /* 樣式設定 */
                overflow-x: hidden !important;
                flex: 1 !important;
                min-height: 0 !important;
            }

            /* 樣式設定 */
            .visual-layout-pure-grid {
                flex-direction: column !important;
                align-items: stretch !important;

            }

            .guardian-force-column,
            .ranking-data-column {
                width: 100% !important;
                min-width: 0 !important;
                flex: none !important;
                box-sizing: border-box !important;
            }

            .equip-grid-column>div {
                flex-direction: row !important;
                /* 樣式設定 */
                justify-content: center !important;
                gap: 10px !important;
                flex-wrap: nowrap !important;
            }

            #combat-analysis-global-controls {
                flex-wrap: wrap;
                justify-content: flex-start;
                gap: 8px !important;
            }
        }

        /* 樣式設定 */
        /* 樣式設定 */

        .mobile-vertical-title {
            display: none;
        }

        /* 樣式設定 */
        #nav-target-analysis,
        #nav-target-equip,
        #nav-target-role {
            overflow: visible !important;
        }

        /* 卡片 (Card) 容器樣式 */
        .card-sticky-header {
            position: -webkit-sticky !important;
            position: sticky !important;
            top: 0;
            z-index: 1000;
            background: #0d121c;
            border-bottom: 2px solid var(--gold);
            border-radius: 0 0 12px 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            margin: 0;
            width: 100%;
            transition: all 0.3s ease;
        }

        /* 卡片 (Card) 容器樣式 */
        .card-sticky-header.sticky-disabled {
            position: relative !important;
            top: auto !important;
            border-radius: 12px 12px 0 0 !important;
            box-shadow: none !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        }

        .card-sticky-header::before {
            display: none !important;
        }

        .card-sticky-header:hover {
            background: rgba(10, 14, 23, 1);
        }

        /* 樣式設定 */
        #gain-effect-controls {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            backdrop-filter: none !important;
            margin: 0 !important;
            padding: 1px 10px 2px 25px !important;
        }

        /* 樣式設定 */
        html {
            scroll-behavior: smooth;
        }

        html,
        body {
            overflow: visible !important;
        }

        /* 樣式設定 */
        #mobile-quick-nav {
            display: none !important;
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(13, 18, 28, 0.95);
            border: 1px solid rgba(255, 217, 61, 0.4);
            border-radius: 30px;
            padding: 8px 20px;
            z-index: 9999;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 217, 61, 0.2);
            backdrop-filter: blur(10px);
            width: 85%;
            max-width: 400px;
            justify-content: space-between;
            align-items: center;
        }

        #mobile-quick-nav .nav-btn {
            color: #bdc3c7;
            text-decoration: none;
            font-size: 13px;
            font-weight: bold;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 5px;
            transition: all 0.2s;
        }

        #mobile-quick-nav .nav-btn:hover,
        #mobile-quick-nav .nav-btn:active {
            color: var(--gold);
            transform: translateY(-2px);
            text-shadow: 0 0 5px var(--gold-glow);
        }

        @media (max-width: 1024px) {
            #mobile-quick-nav {
                display: flex !important;
            }

            .nav-btn-wrapper {
                position: relative;
                display: flex;
                flex-direction: column;
                align-items: center;
            }

            .mobile-sub-menu {
                display: none;
                position: absolute;
                bottom: 60px;
                /* 樣式設定 */
                left: 50%;
                transform: translateX(-50%);
                background: rgba(13, 18, 28, 0.98);
                border: 1px solid rgba(255, 217, 61, 0.4);
                border-radius: 12px;
                width: 120px;
                padding: 10px 0;
                z-index: 10000;
                box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
                animation: slideUpFade 0.3s ease;
            }

            .mobile-sub-menu.active {
                display: block;
            }

            .sub-item {
                padding: 12px 15px;
                color: #fff;
                font-size: 14px;
                text-align: center;
                cursor: pointer;
                border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            }

            .sub-item:last-child {
                border-bottom: none;
            }

            .sub-item:active {
                background: rgba(255, 217, 61, 0.1);
                color: var(--gold);
            }

            @keyframes slideUpFade {
                from {
                    transform: translateX(-50%) translateY(10px);
                    opacity: 0;
                }

                to {
                    transform: translateX(-50%) translateY(0);
                    opacity: 1;
                }
            }

            body {
                padding-bottom: 80px;
            }
        }

        /* ============================================================
           NEW: Equipment Split Layout Redesign (Small Block + Tabs)
           ============================================================ */
        /* ============================================================
           NEW: Integrated Equipment System (Standalone Big Block)
           ============================================================ */
        .integrated-equip-header .header-title h3 {
            font-size: 20px;
            font-weight: 900;
            letter-spacing: 1px;
            text-shadow: 0 0 10px rgba(255, 217, 61, 0.3);
        }

        /* 狀態與數據列樣式 */
        .integrated-tabs.stat-tabs-header {
            display: flex;
            background: transparent;
            border: none;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 0;
            overflow: visible;
            padding: 0 5px;
            gap: 15px;
        }

        .integrated-tabs .stat-tab-btn {
            margin: 0;
            border-radius: 0;
            padding: 12px 10px;
            border: none;
            border-bottom: 2px solid transparent;
            background: transparent;
            font-size: 14px;
            font-weight: 700;
            color: #8b949e;
            transition: all 0.2s;
            margin-bottom: -1px;
        }

        .integrated-tabs .stat-tab-btn.active {
            background: transparent;
            color: var(--gold-bright);
            border-bottom: 2px solid var(--gold);
            box-shadow: none;
        }

        /* 彈性佈局 (Flexbox) 設定 */
        .visual-layout-pure-grid {
            display: flex;
            gap: 25px;
            align-items: stretch;
            width: 100%;
            height: 100%;
        }

        /* 彈性佈局 (Flexbox) 設定 */
        .equip-grid-column {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        /* 樣式設定 */
        .guardian-force-column {
            flex: 1.2;
            background: rgba(40, 45, 60, 0.3);
            border-radius: 16px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            width: 100%;
            max-width: 100%;
            border: 1px solid rgba(255, 217, 61, 0.05);
        }

        .guardian-grid-layout {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        .guardian-card-mini {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 6px;
            padding: 10px;
            border-left: 4px solid #3498db;
            transition: transform 0.2s;
        }

        .guardian-card-mini:hover {
            background: rgba(255, 255, 255, 0.08);
            transform: translateY(-2px);
        }

        .guardian-card-mini.completed {
            border-left-color: #e74c3c;
        }

        /* 樣式設定 */
        .ranking-data-column {
            width: 250px;
            background: rgba(40, 45, 60, 0.4);
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .rank-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 18px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.03);
            transition: background 0.2s;
            cursor: pointer;
        }

        .rank-row:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .rank-row:last-child {
            border-bottom: none;
        }

        .rank-row .label {
            color: #8b949e;
            font-weight: 600;
            font-size: 13px;
        }

        .rank-row .value {
            color: #fff;
            font-weight: 900;
            font-family: 'Outfit', sans-serif;
            font-size: 15px;
        }

        .rank-row .val-num {
            color: #fff;
        }

        .rank-row .val-hash {
            color: var(--gold);
            margin-right: 2px;
            opacity: 0.6;
        }

        .rank-row .change-icon {
            font-size: 14px;
            width: 18px;
            text-align: center;
        }

        .rank-row .change-none {
            color: rgba(255, 255, 255, 0.1);
        }

        .rank-row .change-up {
            color: #e74c3c;
        }

        .rank-row .change-down {
            color: #3498db;
        }

        .basic-tab-container {
            display: flex;
            gap: 20px;
            align-items: stretch;
            flex-wrap: wrap;
        }

        .basic-tab-left {
            flex: 1;
            width: 100%;
            max-width: 100%;
            background: rgba(20, 25, 35, 0.4);
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* 樣式設定 */
        .nav-arrow-indicator {
            position: absolute;
            z-index: 30005;
            pointer-events: none;
            width: 80px;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            filter: drop-shadow(0 0 12px var(--gold));
            animation: arrowBounce 0.8s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
        }

        @keyframes arrowBounce {
            from {
                transform: translateY(0) scale(1.1);
            }

            to {
                transform: translateY(-20px) scale(0.9);
            }
        }

        .nav-focus-glow {
            position: absolute;
            z-index: 30004;
            pointer-events: none;
            border: 3px solid var(--gold);
            border-radius: 12px;
            box-shadow: 0 0 50px var(--gold-glow), inset 0 0 25px var(--gold-glow);
            animation: glowPulse 1s infinite alternate ease-in-out;
            transition: all 0.5s ease;
        }

        /* 按鈕 (Button) 互動與樣式 */
        .btn-guide-mini {
            background: rgba(255, 217, 61, 0.1);
            color: var(--gold);
            border: 1px solid rgba(255, 217, 61, 0.3);
            padding: 2px 8px;
            font-size: 11px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s;
            margin-left: 5px;
            font-weight: bold;
            vertical-align: middle;
            line-height: 1;
        }

        .btn-guide-mini:hover {
            background: var(--gold);
            color: #000;
            box-shadow: 0 0 10px var(--gold-glow);
            transform: translateY(-1px);
        }

        /* 響應式設定：1024px 以下 (平板) */
        @media (max-width: 1024px) {
            .btn-guide-mini {
                display: none !important;
            }
        }

        .basic-tab-right {
            width: 350px;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        /* 樣式設定 */
        .score-luxury-card {
            position: relative;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 15px 20px;
            overflow: hidden;
            border-left: 4px solid var(--color);
            transition: transform 0.3s;
        }

        .score-luxury-card:hover {
            transform: scale(1.02);
            background: rgba(255, 255, 255, 0.03);
        }

        .score-luxury-card .card-bg-glow {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, var(--color-alpha), transparent);
            pointer-events: none;
        }

        .score-luxury-card .card-header {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 700;
            color: #8b949e;
            margin-bottom: 5px;
            text-transform: uppercase;
        }

        .score-luxury-card .card-value {
            font-size: 32px;
            font-weight: 900;
            color: #fff;
            letter-spacing: 1px;
            text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
        }

        .score-luxury-card.gold {
            --color: #f1c40f;
            --color-alpha: rgba(241, 196, 15, 0.1);
        }

        .score-luxury-card.orange {
            --color: #e67e22;
            --color-alpha: rgba(230, 126, 34, 0.1);
        }

        .score-luxury-card.purple {
            --color: #9b59b6;
            --color-alpha: rgba(155, 89, 182, 0.1);
        }

        /* 彈性佈局 (Flexbox) 設定 */
        .layout-profile-header {
            display: flex;
            width: 100%;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .layout-center-column {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 180px;
            z-index: 10;
        }

        .layout-meta-tags {
            display: flex;
            flex-direction: column;
            gap: 8px;
            width: 100%;
            margin-top: 15px;
        }

        .meta-tag-btn {
            background: rgba(40, 45, 55, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 8px 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 14px;
            color: #fff;
            font-weight: 600;
            transition: all 0.2s;
        }

        .meta-tag-btn .icon {
            font-size: 12px;
            width: 24px;
            text-align: center;
        }

        .layout-item-list {
            margin-top: 15px;
            width: 100%;
        }

        .ranking-summary-box {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 12px;
            padding: 15px;
            border: 1px dashed rgba(255, 255, 255, 0.1);
        }

        .ranking-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .ranking-item:last-child {
            border-bottom: none;
        }

        .ranking-item .label {
            font-size: 13px;
            color: #8b949e;
        }

        .ranking-item .value {
            font-size: 14px;
            color: #fff;
            font-weight: 700;
        }

        .ranking-item .percent {
            color: #2ecc71;
            font-weight: 800;
            margin-left: 5px;
        }

        .api-time-badge {
            margin-top: auto;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 20px;
            padding: 8px 15px;
            font-size: 11px;
            color: #555;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        /* 彈性佈局 (Flexbox) 設定 */
        .equip-layout-wrapper {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            gap: 15px;
            width: 100%;
            padding: 0;
            background: transparent !important;
            box-shadow: none !important;
            border: none !important;
            min-height: auto !important;
        }

        .slot-item {
            width: 68px;
            height: 68px;
            background: rgba(0, 0, 0, 0.6);
            border-radius: 8px;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            border: 1px solid rgba(255, 255, 255, 0.15);
            transition: all 0.2s;
            cursor: pointer;
            touch-action: manipulation;
        }

        .slot-item:hover {
            border-color: #fff;
            transform: scale(1.05);
            z-index: 5;
        }

        .slot-item img {
            width: 85%;
            height: 85%;
            border-radius: 6px;
        }

        .slot-corner {
            position: absolute;
            top: 4px;
            left: 4px;
            width: 10px;
            height: 10px;
            border-top: 3px solid var(--border-color, #555);
            border-left: 3px solid var(--border-color, #555);
            border-radius: 2px 0 0 0;
            z-index: 2;
        }

        .slot-rarity-myth .slot-corner {
            --border-color: #e67e22;
        }

        .slot-rarity-unique .slot-corner {
            --border-color: #f1c40f;
        }

        .slot-rarity-special .slot-corner {
            --border-color: #00ffcc;
        }

        .slot-rarity-legend .slot-corner {
            --border-color: #3498db;
        }

        .slot-rarity-rare .slot-corner {
            --border-color: #2ecc71;
        }

        .slot-enchant {
            position: absolute;
            bottom: 2px;
            right: 4px;
            color: #fff;
            font-weight: 900;
            font-size: 15px;
            text-shadow: 0 1px 4px #000;
            z-index: 3;
        }

        .slot-exceed {
            position: absolute;
            top: 2px;
            right: 4px;
            background: #e74c3c;
            color: #fff;
            font-size: 11px;
            font-weight: 900;
            padding: 1px 4px;
            border-radius: 4px;
            z-index: 3;
        }

        @media (max-width: 1100px) {
            .basic-tab-container {
                flex-direction: column;
            }

            .basic-tab-left {
                min-width: 0;
                width: 100%;
            }

            .basic-tab-right {
                width: 100%;
            }

            .equip-layout-wrapper {
                transform: scale(0.9);
                transform-origin: top center;
            }
        }

        @media (max-width: 1024px) {
            .equip-layout-wrapper {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
                transform: none;
            }

            .layout-center-column {
                grid-column: span 2;
                width: 100%;
                margin: 15px 0;
            }

            .equip-side-column {
                grid-template-columns: repeat(2, 68px) !important;
                justify-content: center;
            }
        }

        /* ============================================================ */

        /* ============================================================
           NEW: Visual Equipment Layout Tab (Basic Tab)
           ============================================================ */
        .equip-layout-wrapper {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            gap: 10px;
            /* 樣式設定 */
            padding: 20px 10px;
            /* 樣式設定 */
            background: radial-gradient(circle at center, rgba(30, 40, 60, 0.4), rgba(10, 14, 23, 0.9));
            border-radius: 16px;
            position: relative;
            overflow: visible;
            min-height: 480px;
            box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.03);
            margin: 10px 0;
            flex-wrap: wrap;
        }

        .equip-layout-center {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 170px;
            /* 樣式設定 */
            order: 2;
            z-index: 10;
        }

        .character-avatar-frame {
            width: 130px;
            height: 130px;
            position: relative;
            margin-bottom: 25px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .character-avatar-frame .avatar-img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 4px solid #f1c40f;
            background: #0d1117;
            object-fit: cover;
            box-shadow: 0 0 30px rgba(241, 196, 15, 0.4);
            padding: 3px;
        }

        .character-avatar-frame .lv-badge {
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, #f1c40f, #d4ac0d);
            color: #000;
            padding: 4px 18px;
            border-radius: 20px;
            font-weight: 900;
            font-size: 15px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
            border: 2px solid #fff;
            white-space: nowrap;
            z-index: 10;
        }

        .character-avatar-frame .frame-border {
            position: absolute;
            width: 130%;
            height: 130%;
            background: radial-gradient(circle at center, var(--gold-glow), transparent 70%);
            opacity: 0.3;
            z-index: -1;
            animation: pulse-glow 3s infinite ease-in-out;
        }

        @keyframes pulse-glow {

            0%,
            100% {
                transform: scale(1);
                opacity: 0.2;
            }

            50% {
                transform: scale(1.1);
                opacity: 0.4;
            }
        }

        .character-basic-info {
            text-align: center;
            background: rgba(0, 0, 0, 0.4);
            padding: 10px 20px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(5px);
        }

        .character-basic-info .score {
            font-size: 20px;
            font-weight: 900;
            color: #fff;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            text-shadow: 0 0 10px var(--gold-glow);
        }

        .character-basic-info .name {
            font-size: 22px;
            font-weight: 800;
            color: var(--gold-bright);
            margin-bottom: 4px;
            letter-spacing: 1px;
        }

        .character-basic-info .title {
            font-size: 13px;
            color: #8b949e;
            font-weight: 500;
        }

        .equip-side-column {
            display: grid;
            grid-template-columns: repeat(2, 68px);
            grid-gap: 8px;
            /* 裝備區塊樣式 */
            padding: 5px;
            z-index: 5;
        }

        .equip-side-column.left-side {
            order: 1;
        }

        .equip-side-column.right-side {
            order: 3;
        }

        .column-header-icon {
            grid-column: span 2;
            text-align: center;
            margin-bottom: 5px;
            font-size: 28px;
            opacity: 0.6;
            filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
        }

        .slot-item {
            width: 68px;
            height: 68px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
        }

        .slot-item.empty {
            background: rgba(255, 255, 255, 0.02);
            border-style: dashed;
            opacity: 0.3;
        }

        .slot-item:hover:not(.empty) {
            border-color: var(--primary);
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6), 0 0 15px var(--primary-glow);
            z-index: 10;
        }

        .slot-item img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 4px;
        }

        .slot-enchant {
            position: absolute;
            bottom: 3px;
            right: 4px;
            font-size: 13px;
            font-weight: 900;
            color: #fff;
            text-shadow: 1px 1px 0px #000, -1px -1px 0px #000, 1px -1px 0px #000, -1px 1px 0px #000, 0 0 5px rgba(0, 0, 0, 0.8);
            z-index: 3;
        }

        /* 樣式設定 */
        .slot-enchant-exceeded {
            color: #ff7043;
            text-shadow: 1px 1px 0px #000, -1px -1px 0px #000, 1px -1px 0px #000, -1px 1px 0px #000,
                0 0 6px rgba(255, 112, 67, 0.8);
        }

        /* 動畫效果設定 */
        .slot-item-exceeded {
            border-color: rgba(255, 71, 87, 0.6) !important;
            box-shadow: 0 0 8px rgba(255, 71, 87, 0.4), inset 0 0 10px rgba(255, 71, 87, 0.08);
            animation: exceed-pulse 2.5s ease-in-out infinite;
        }

        @keyframes exceed-pulse {

            0%,
            100% {
                box-shadow: 0 0 8px rgba(255, 71, 87, 0.4), inset 0 0 10px rgba(255, 71, 87, 0.08);
            }

            50% {
                box-shadow: 0 0 14px rgba(255, 71, 87, 0.7), inset 0 0 14px rgba(255, 71, 87, 0.15);
            }
        }

        .slot-corner {
            position: absolute;
            top: 2px;
            left: 2px;
            width: 14px;
            height: 14px;
            border-top: 3px solid transparent;
            border-left: 3px solid transparent;
            border-radius: 2px 0 0 0;
            z-index: 2;
        }

        .slot-rarity-myth .slot-corner {
            border-color: #e67e22;
            box-shadow: -2px -2px 5px rgba(230, 126, 34, 0.4);
        }

        .slot-rarity-myth {
            background: radial-gradient(circle, rgba(230, 126, 34, 0.45) 0%, rgba(0, 0, 0, 0.7) 90%);
            border-color: rgba(230, 126, 34, 0.6);
            box-shadow: inset 0 0 20px rgba(230, 126, 34, 0.5), 0 0 8px rgba(230, 126, 34, 0.25);
        }

        .slot-rarity-unique .slot-corner {
            border-color: #f1c40f;
            box-shadow: -2px -2px 5px rgba(241, 196, 15, 0.4);
        }

        .slot-rarity-unique {
            background: radial-gradient(circle, rgba(241, 196, 15, 0.4) 0%, rgba(0, 0, 0, 0.7) 90%);
            border-color: rgba(241, 196, 15, 0.6);
            box-shadow: inset 0 0 20px rgba(241, 196, 15, 0.45), 0 0 8px rgba(241, 196, 15, 0.25);
        }

        .slot-rarity-special .slot-corner {
            border-color: #00ffcc;
            box-shadow: -2px -2px 5px rgba(0, 255, 204, 0.4);
        }

        .slot-rarity-special {
            background: radial-gradient(circle, rgba(0, 255, 204, 0.35) 0%, rgba(0, 0, 0, 0.7) 90%);
            border-color: rgba(0, 255, 204, 0.5);
            box-shadow: inset 0 0 20px rgba(0, 255, 204, 0.4), 0 0 8px rgba(0, 255, 204, 0.2);
        }

        .slot-rarity-legend .slot-corner,
        .slot-rarity-epic .slot-corner {
            border-color: #3498db;
            box-shadow: -2px -2px 5px rgba(52, 152, 219, 0.4);
        }

        .slot-rarity-legend,
        .slot-rarity-epic {
            background: radial-gradient(circle, rgba(52, 152, 219, 0.45) 0%, rgba(0, 0, 0, 0.7) 90%);
            border-color: rgba(52, 152, 219, 0.6);
            box-shadow: inset 0 0 20px rgba(52, 152, 219, 0.5), 0 0 8px rgba(52, 152, 219, 0.25);
        }

        .slot-rarity-rare .slot-corner {
            border-color: #2ecc71;
            box-shadow: -2px -2px 5px rgba(46, 204, 113, 0.4);
        }

        .slot-rarity-rare {
            background: radial-gradient(circle, rgba(46, 204, 113, 0.45) 0%, rgba(0, 0, 0, 0.7) 90%);
            border-color: rgba(46, 204, 113, 0.6);
            box-shadow: inset 0 0 20px rgba(46, 204, 113, 0.5), 0 0 8px rgba(46, 204, 113, 0.25);
        }

        .slot-rarity-common .slot-corner {
            border-color: #ffffff;
        }

        .slot-rarity-common {
            background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(0, 0, 0, 0.7) 90%);
            border-color: rgba(255, 255, 255, 0.3);
            box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.15);
        }

        .slot-exceed {
            position: absolute;
            top: 2px;
            right: 2px;
            background: linear-gradient(135deg, #ff4757, #ff6b81);
            color: #fff;
            font-size: 11px;
            font-weight: 900;
            padding: 1px 5px;
            border-radius: 4px;
            box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.3);
            z-index: 4;
            line-height: 1;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        }

        @media (max-width: 1024px) {
            .equip-layout-wrapper {
                flex-direction: row;
                /* 樣式設定 */
                flex-wrap: wrap;
                /* 樣式設定 */
                justify-content: center;
                gap: 8px;
                /* 裝備區塊樣式 */
                padding: 10px 5px;
            }

            .equip-layout-center {
                order: 1;
                width: 100%;
                margin: 10px 0;
            }

            .equip-side-column.left-side {
                order: 2;
                flex: 1;
                /* 裝備區塊樣式 */
                min-width: 140px;
                max-width: 180px;
            }

            .equip-side-column.right-side {
                order: 3;
                flex: 1;
                /* 樣式設定 */
                min-width: 140px;
                max-width: 180px;
            }

            .slot-item {
                width: 60px;
                /* 樣式設定 */
                height: 60px;
            }
        }

        /* --- Equipment Tooltip System --- */
        .tooltip-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(8px);
            z-index: 100000 !important;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.3s ease;
        }

        /* 裝備區塊樣式 */
        .equip-tooltip.is-hover {
            position: fixed;
            z-index: 100001;
            /* 樣式設定 */
            pointer-events: auto;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
            transform: scale(0.95);
            transform-origin: top left;
        }

        .equip-tooltip {
            width: 100%;
            max-width: 320px;
            background: #0d1117;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
            position: relative;
            display: flex;
            flex-direction: column;
            max-height: 90vh;
            border-top: 2px solid rgba(255, 255, 255, 0.2);
            pointer-events: auto !important;
            contain: layout;
        }

        /* 提示框：稀有度顏色設定 */
        .tooltip-rarity-myth {
            border-top-color: #e67e22 !important;
        }

        .tooltip-rarity-unique {
            border-top-color: #f1c40f !important;
        }

        .tooltip-rarity-legend {
            border-top-color: #3498db !important;
        }

        .tooltip-rarity-special {
            border-top-color: #00ffcc !important;
        }

        .tooltip-rarity-rare {
            border-top-color: #2ecc71 !important;
        }

        .equip-tooltip.tooltip-rarity-myth {
            border-color: rgba(230, 126, 34, 0.4);
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 15px rgba(230, 126, 34, 0.15);
        }

        .equip-tooltip.tooltip-rarity-unique {
            border-color: rgba(241, 196, 15, 0.4);
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 15px rgba(241, 196, 15, 0.15);
        }

        .equip-tooltip.tooltip-rarity-legend {
            border-color: rgba(52, 152, 219, 0.4);
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 15px rgba(52, 152, 219, 0.15);
        }

        .equip-tooltip.tooltip-rarity-special {
            border-color: rgba(0, 255, 204, 0.35);
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 255, 204, 0.15);
        }

        .equip-tooltip.tooltip-rarity-rare {
            border-color: rgba(46, 204, 113, 0.4);
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 15px rgba(46, 204, 113, 0.15);
        }

        .equip-tooltip.tooltip-rarity-common {
            border-color: rgba(206, 212, 218, 0.2);
        }

        .tooltip-header {
            padding: 16px;
            display: flex;
            gap: 15px;
            background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            position: relative;
        }

        .tooltip-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
        }

        .tooltip-rarity-myth .tooltip-header::before {
            background: #e67e22;
        }

        .tooltip-rarity-unique .tooltip-header::before {
            background: #f1c40f;
        }

        .tooltip-rarity-legend .tooltip-header::before {
            background: #3498db;
        }

        .tooltip-rarity-special .tooltip-header::before {
            background: #00ffcc;
        }

        .tooltip-rarity-rare .tooltip-header::before {
            background: #2ecc71;
        }

        .tooltip-rarity-common .tooltip-header::before {
            background: #ced4da;
        }

        .tooltip-icon-frame {
            width: 70px;
            height: 70px;
            background: #000;
            border: 1.5px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 2px;
            flex-shrink: 0;
        }

        .tooltip-icon-frame img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
        }

        .tooltip-title-area {
            display: flex;
            flex-direction: column;
            justify-content: center;
            flex: 1;
        }

        .tooltip-name {
            font-size: 19px;
            font-weight: bold;
            color: #fff;
            margin-bottom: 4px;
            line-height: 1.2;
        }

        .tooltip-name .breakthrough-label {
            color: #e67e22;
            font-size: 14px;
            margin-left: 8px;
            font-weight: 500;
        }

        .tooltip-sub-info {
            font-size: 13px;
            color: #8b949e;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            align-items: center;
        }

        .tooltip-grade-label {
            font-weight: bold;
        }

        .tooltip-rarity-myth .tooltip-grade-label {
            color: #e67e22;
        }

        .tooltip-rarity-unique .tooltip-grade-label {
            color: #f1c40f;
        }

        .tooltip-rarity-legend .tooltip-grade-label {
            color: #3498db;
        }

        /* 樣式設定 */
        .close-tooltip-circle {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 30px;
            height: 30px;
            background: rgba(255, 255, 255, 0.1);
            border: 1.5px solid rgba(255, 255, 255, 0.5);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #fff;
            font-size: 18px;
            font-weight: bold;
            z-index: 10;
            transition: all 0.2s;
        }

        .close-tooltip-circle:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }

        .tooltip-body {
            padding: 10px 14px;
            overflow-y: auto;
            flex: 1;
        }

        /* 捲軸 (Scrollbar) 樣式自訂 */
        .tooltip-body::-webkit-scrollbar {
            width: 4px;
        }

        .tooltip-body::-webkit-scrollbar-thumb {
            background: rgba(255, 217, 61, 0.2);
            border-radius: 10px;
        }

        .tooltip-section {
            margin-bottom: 8px;
        }

        .tooltip-section:not(:first-child) {
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding-top: 8px;
        }

        .tooltip-section-title {
            font-size: 11px;
            color: #636e72;
            margin-bottom: 4px;
            font-weight: bold;
            opacity: 0.8;
            letter-spacing: 0.5px;
        }

        /* 狀態與數據列樣式 */
        .stat-row {
            display: flex;
            align-items: center;
            margin-bottom: 4px;
            font-size: 14px;
            width: 100%;
        }

        .stat-label {
            color: #adb5bd;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .stat-leader {
            flex: 1;
            margin: 0 8px;
            border-bottom: 1px dotted rgba(255, 255, 255, 0.1);
            align-self: flex-end;
            margin-bottom: 4px;
        }

        .stat-value {
            color: #fff;
            font-weight: bold;
            white-space: nowrap;
            flex-shrink: 0;
            text-align: right;
        }

        .stat-value.bonus {
            color: var(--gold);
        }

        /* 樣式設定 */
        .magic-stone-list {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .stone-item {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 6px;
            padding: 8px 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .stone-icon {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
        }

        .stone-text {
            font-size: 12px;
            font-weight: 600;
        }

        /* ?頛??憯????? */
        .val-base {
            color: #fff;
        }

        .val-bonus {
            color: #3498db;
        }

        .val-green {
            color: #2ecc71 !important;
        }

        /* 數值文字顏色設定 */
        .val-orange {
            color: #e67e22 !important;
        }

        /* 提示框 (Tooltip) 相關樣式 */

        .tooltip-footer {
            padding: 10px 16px;
            background: rgba(0, 0, 0, 0.2);
            color: #636e72;
            font-size: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        /* 裝備區塊樣式 */
        .equip-item-card-simple-v2 {
            position: relative;
            background: linear-gradient(145deg, rgba(30, 40, 60, 0.95), rgba(15, 20, 30, 0.98));
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            transition: transform 0.2s, border-color 0.2s;
            margin-bottom: 5px;
            border-left: 4px solid var(--grade-color, #8b949e);
            height: 100%;
            /* 裝備區塊樣式 */
            min-height: 140px;
        }

        .equip-item-card-simple-v2:hover {
            transform: translateY(-3px);
            border-color: rgba(255, 255, 255, 0.2);
            z-index: 10;
        }

        .simple-card-header {
            padding: 12px 15px;
            background: rgba(0, 0, 0, 0.3);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .simple-card-title {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
            flex-wrap: wrap;
        }

        .simple-card-name {
            font-size: 17px;
            font-weight: 800;
            color: var(--grade-color, #fff);
            text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        }

        .simple-card-enchant {
            font-size: 15px;
            color: #fff;
            opacity: 0.9;
            font-weight: bold;
        }

        .simple-card-breakthrough {
            background: rgba(231, 76, 60, 0.15);
            border: 1px solid rgba(231, 76, 60, 0.4);
            color: #ff7b7b;
            padding: 2px 8px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: bold;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }

        .simple-card-body {
            padding: 12px 15px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            /* 樣式設定 */
            gap: 0 20px;
            position: relative;
            z-index: 2;
            flex: 1;
        }

        .simple-card-col {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .simple-card-col-left {
            border-right: 1px solid rgba(255, 255, 255, 0.05);
            padding-right: 10px;
        }

        .simple-card-col-right {
            padding-left: 5px;
        }

        .simple-stat-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
            line-height: 1.4;
            min-height: 20px;
        }

        .simple-skill-row {
            font-size: 12px;
            color: #fff;
            opacity: 0.8;
            padding: 2px 0;
            border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
            margin-bottom: 2px;
        }

        .simple-stat-label {
            color: #8b949e;
            font-weight: 500;
        }

        .simple-stat-value {
            color: #fff;
            font-weight: 600;
            font-family: 'Outfit', sans-serif;
        }

        /* 樣式設定 */
        .simple-stat-row.enchant .simple-stat-label,
        .simple-stat-row.enchant .simple-stat-value {
            color: #e67e22;
        }

        /* 樣式設定 */
        .simple-stat-row.random .simple-stat-label,
        .simple-stat-row.random .simple-stat-value {
            color: #fff;
            opacity: 0.9;
        }

        .simple-card-artwork {
            position: absolute;
            right: -15px;
            bottom: -15px;
            width: 140px;
            height: 140px;
            opacity: 0.25;
            pointer-events: none;
            z-index: 1;
            filter: drop-shadow(0 0 15px black);
            -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
            mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .close-tooltip {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 32px;
            /* 樣式設定 */
            height: 32px;
            background: rgba(0, 0, 0, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.4);
            border-radius: 50%;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
            z-index: 100003 !important;
            transition: all 0.2s ease;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
            pointer-events: auto !important;
        }

        .close-tooltip:hover {
            opacity: 1;
        }

        /* 彈性佈局 (Flexbox) 設定 */
        .visual-layout-pure-grid {
            display: flex;
            gap: 10px;
            align-items: stretch;
            flex-wrap: wrap;
            padding: 20px 10px 10px 10px;

            /* 樣式設定 */
        }

        /* 捲軸 (Scrollbar) 樣式自訂 */

        /* 捲軸 (Scrollbar) 樣式自訂 */
        #integrated-tab-content-area::-webkit-scrollbar {
            width: 6px;
        }

        #integrated-tab-content-area::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 10px;
        }

        #integrated-tab-content-area::-webkit-scrollbar-thumb {
            background: rgba(255, 217, 61, 0.2);
            border-radius: 10px;
        }

        #integrated-tab-content-area::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 217, 61, 0.5);
        }

        /* 樣式設定 */
        .screenshot-result-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 200000;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .screenshot-result-container {
            background: #1a2332;
            border: 2px solid var(--gold);
            border-radius: 12px;
            max-width: 95%;
            max-height: 85%;
            overflow: hidden;
            position: relative;
            box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 20px var(--gold-glow);
            display: flex;
            flex-direction: column;
        }

        .screenshot-result-header {
            padding: 15px;
            background: rgba(0, 0, 0, 0.3);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .screenshot-result-title {
            color: var(--gold-bright);
            font-weight: bold;
            font-size: 16px;
        }

        .screenshot-result-close {
            color: #fff;
            font-size: 24px;
            cursor: pointer;
            line-height: 1;
        }

        .screenshot-result-close:hover {
            color: #fff;
        }

        .screenshot-result-body {
            flex: 1;
            overflow: auto;
            padding: 10px;
            text-align: center;
        }

        .screenshot-result-img {
            max-width: 100%;
            height: auto;
            border-radius: 4px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
        }

        .screenshot-result-footer {
            padding: 15px;
            background: rgba(0, 0, 0, 0.3);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            text-align: center;
        }

        .screenshot-instruction {
            color: #8b949e;
            font-size: 14px;
            margin-bottom: 10px;
        }

        .screenshot-download-btn {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            border: none;
            padding: 10px 25px;
            border-radius: 6px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
        }

        .screenshot-download-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px var(--blue-glow);
        }

        .screenshot-download-btn:active {
            transform: translateY(0);
        }

        /* 作者日記 (Diary) 相關樣式 */
        .diary-float-btn {
            position: fixed;
            right: 20px;
            top: 20px;
            width: 32px;
            height: 32px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 1001;
            transition: all 0.3s ease;
            backdrop-filter: blur(4px);
        }

        .diary-float-btn span {
            font-size: 16px;
            opacity: 0.4;
            filter: grayscale(1);
            transition: all 0.3s;
        }

        .diary-float-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--gold);
            transform: translateY(2px);
        }

        .diary-float-btn:hover span {
            opacity: 1;
            filter: grayscale(0);
        }

        @media (max-width: 1024px) {
            .diary-float-btn {
                right: 15px;
                top: 15px;
                width: 34px;
                height: 34px;
            }
        }

        /* 作者日記 (Diary) 相關樣式 */
        .diary-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
            z-index: 20002;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.3s ease;
        }

        .diary-modal {
            background: #0f172a;
            border: 1px solid var(--border);
            border-top: 4px solid var(--gold);
            border-radius: 12px;
            width: 100%;
            max-width: 500px;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px var(--gold-glow);
            overflow: hidden;
        }

        .diary-header {
            padding: 15px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(255, 255, 255, 0.02);
        }

        .diary-close {
            color: #8b949e;
            font-size: 24px;
            cursor: pointer;
            transition: color 0.2s;
        }

        .diary-close:hover {
            color: #fff;
        }

        .diary-body {
            padding: 20px;
            overflow-y: auto;
            flex: 1;
        }

        .diary-item {
            margin-bottom: 25px;
            padding-bottom: 20px;
            border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
        }

        .diary-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }

        .diary-date {
            font-size: 12px;
            color: var(--gold);
            margin-bottom: 6px;
            font-family: monospace;
            opacity: 0.8;
        }

        .diary-title {
            font-size: 16px;
            font-weight: bold;
            color: #fff;
            margin-bottom: 8px;
        }

        .diary-text {
            font-size: 14px;
            color: #94a3b8;
            line-height: 2;
            word-break: break-all;
        }

        .author-info-container {
            display: block;
            margin-top: 10px;
            overflow: hidden;
            /* 樣式設定 */
        }

        .author-avatar {
            width: 120px;
            height: 120px;
            border-radius: 12px;
            float: left;
            margin-right: 15px;
            margin-bottom: 5px;
            object-fit: cover;
        }

        @media (max-width: 480px) {
            .author-info-container {
                flex-direction: column;
                align-items: flex-start;
                text-align: left;
            }
        }

        .diary-footer {
            padding: 15px;
            background: rgba(0, 0, 0, 0.3);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            text-align: center;
            color: #64748b;
            font-size: 12px;
        }

        .btn-screenshot {
            background: rgba(0, 212, 255, 0.1);
            color: var(--primary);
            border: 1px solid rgba(0, 212, 255, 0.3);
            padding: 6px 16px;
            font-size: 13px;
            font-weight: bold;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin: 0;
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
        }

        .btn-screenshot:hover {
            background: rgba(0, 212, 255, 0.2);
            border-color: var(--primary);
            box-shadow: 0 0 15px var(--primary-glow);
            transform: translateY(-2px);
            color: #fff;
        }

        .btn-screenshot:active {
            transform: translateY(0);
        }

        /* ============================================================
           FINAL MASTER RWD & MODERN ADAPTIVE SYSTEM (2.0)
           ============================================================ */

        /* 響應式 (RWD) 佈局設定 */
        @media (min-width: 1200px) {
            .main-layout-wrapper {
                display: grid !important;
                grid-template-columns: 1fr 2fr !important;
                gap: 25px !important;
                align-items: stretch !important;
            }

            .split-integrated-layout {
                display: flex !important;
                flex-direction: row !important;
                align-items: stretch !important;
            }

            .equip-sidebar-profile {
                width: 280px !important;
                border-right: 1px solid var(--border) !important;
            }

            .equip-main-content {
                flex: 1 !important;
            }
        }

        /* 響應式 (RWD) 佈局設定 */
        @media (max-width: 1199px) {
            .main-layout-wrapper {
                display: flex !important;
                flex-direction: column !important;
                gap: 20px !important;
                align-items: stretch !important;
            }

            .left-column {
                width: 100% !important;
                display: flex !important;
                flex-direction: column !important;
                gap: 20px !important;
                align-items: stretch !important;
                overflow: hidden !important;
            }

            .right-column {
                width: 100% !important;
                overflow: hidden !important;
            }

            .split-integrated-layout {
                flex-direction: column !important;
            }

            .equip-sidebar-profile {
                width: 100% !important;
                border-right: none !important;
                border-bottom: 1px solid var(--border) !important;
            }
        }

        /* 響應式設定：1024px 以下 (平板) */
        @media (max-width: 1024px) {
            .main-layout-wrapper {
                display: flex !important;
                flex-direction: column !important;
                gap: 20px !important;
                align-items: stretch !important;
            }

            .left-column {
                display: flex !important;
                flex-direction: column !important;
                gap: 20px !important;
            }
        }

        /* 響應式設定：1024px 以下 (平板) */
        @media (max-width: 1024px) {
            .health-main-stats-wrapper {
                flex-direction: column !important;
            }

            .stat-comparison-grid {
                grid-template-columns: 1fr !important;
            }

            .equip-tooltip {
                width: 90vw !important;
                max-width: 450px !important;
            }
        }

        /* 響應式設定：1024px 以下 (平板) */
        @media (max-width: 1024px) {
            body {
                padding: 8px !important;
            }

            .grid-box-container,
            .stat-grid-main,
            #combat-stats-grid,
            #arcana-grid,
            .stat-ranking-grid,
            #p-percentile-new {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 12px !important;
            }

            /* 排名數據 (Rank) 相關樣式：手機版改為橫向滑動輪播 */
            .rank-grid-new {
                display: flex !important;
                flex-direction: row !important;
                flex-wrap: nowrap !important;
                overflow-x: auto !important;
                gap: 10px !important;
                padding-bottom: 10px !important;
                scroll-snap-type: x mandatory;
                -webkit-overflow-scrolling: touch;
                mask-image: linear-gradient(to right, black 85%, transparent 100%);
            }

            .rank-card-new {
                flex: 0 0 130px !important;
                min-width: 130px !important;
                scroll-snap-align: start;
                padding: 10px !important;
                min-height: 70px !important;
            }

            .rank-card-new .rc-label {
                font-size: 9px !important;
                transform: scale(0.9);
                transform-origin: left;
                white-space: nowrap;
            }

            .rank-card-new .rc-val {
                font-size: 14px !important;
                margin-top: 2px !important;
            }

            .rank-card-new .rc-diff {
                font-size: 8px !important;
                top: 6px !important;
                right: 4px !important;
            }


            @media (max-width: 480px) {

                .grid-box-container,
                .stat-grid-main,
                #combat-stats-grid,
                #arcana-grid,
                .stat-ranking-grid,
                #p-percentile-new {
                    grid-template-columns: 1fr !important;
                }
            }

            .card-content-padding {
                padding: 15px !important;
            }

            /* 技能列表樣式 */
            .skill-list {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 10px !important;
            }

            .skill-card {
                padding: 10px !important;
            }

            /* 裝備區塊樣式 */
            .equip-tooltip {
                width: 95vw !important;
                max-width: none !important;
                max-height: 85vh !important;
                left: auto !important;
                top: auto !important;
                position: relative !important;
                z-index: 10001 !important;
                margin: 0 auto 15px auto !important;
            }

            .equip-tooltip.is-hover {
                position: fixed !important;
                left: 2.5vw !important;
                bottom: 90px !important;
                /* 樣式設定 */
            }

            #mobile-quick-nav {
                width: 94% !important;
                bottom: 12px !important;
                height: 60px !important;
            }

            /* 卡片 (Card) 容器樣式 */
            .card,
            .full-width-card {
                width: 100% !important;
                height: auto !important;
                margin: 0 auto 40px auto !important;
                overflow: visible !important;
                /* 樣式設定 */
                position: relative;
                padding: 12px 14px 85px 14px !important;
                /* 樣式設定 */
                scrollbar-width: thin;
                scrollbar-color: rgba(255, 217, 61, 0.3) transparent;
                scroll-margin-top: 45px;
                border-radius: 16px !important;
                box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
            }

            .container {
                padding-bottom: 100px !important;
                /* 裝備區塊樣式 */
            }

            /* 裝備區塊樣式 */
            .equip-main-content {
                height: 100% !important;
                overflow-y: auto !important;
                padding-bottom: 85px !important;
            }

            /* 卡片 (Card) 容器樣式 */
            .card[style*="padding:0"],
            .card[style*="padding: 0"] {
                padding: 0 !important;
            }

            .card::-webkit-scrollbar {
                width: 4px;
            }

            .card::-webkit-scrollbar-thumb {
                background: rgba(255, 217, 61, 0.2);
                border-radius: 4px;
            }
        }

        /* 響應式設定：480px 以下 (小螢幕手機) */
        @media (max-width: 480px) {
            .skill-list {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 8px !important;
            }

            .skill-card {
                padding: 6px 8px !important;
                min-height: 44px !important;
            }

            .skill-card img {
                width: 28px !important;
                height: 28px !important;
            }

            .sk-name {
                font-size: 11px !important;
            }

            .profile-meta-grid {
                grid-template-columns: 1fr !important;
            }

            .card {
                width: 100% !important;
                height: auto !important;
            }

            .input-area {
                padding: 12px !important;
                margin-bottom: 20px !important;
                border-radius: 12px !important;
                border: 1px solid rgba(255, 215, 0, 0.3) !important;
            }

            .input-area h2 {
                font-size: 1.1rem !important;
                margin-bottom: 12px !important;
                letter-spacing: 1px !important;
            }

            .api-input-group {
                gap: 10px !important;
                display: flex !important;
                align-items: stretch !important;
            }

            #charNameInput {
                font-size: 16px !important;
                padding: 10px 12px !important;
                flex: 1 !important;
                width: 10px !important;
                /* Force flex shrinking */
                min-width: 0 !important;
                border-radius: 8px !important;
                background: rgba(0, 0, 0, 0.4) !important;
                border: 1px solid rgba(255, 255, 255, 0.1) !important;
                box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5) !important;
            }

            #charNameInput:focus {
                border-color: var(--gold) !important;
                box-shadow: 0 0 15px var(--gold-glow) !important;
            }

            .btn-api {
                padding: 0 12px !important;
                font-size: 13px !important;
                min-height: 42px !important;
                white-space: nowrap !important;
                flex-shrink: 0 !important;
            }

            .import-section div:first-child {
                font-size: 12px !important;
                margin-bottom: 8px !important;
                opacity: 0.8;
            }

            .import-section {
                font-size: 10px !important;
                line-height: 1.5 !important;
                color: #8b949e !important;
            }
        }

        /* ============================================================
   ??????扒?部??????粥???剛????- ??寡??
   ============================================================ */

        /* 裝分數據 (Equip Score) 相關樣式 */
        .esc-equip-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
            margin-top: 15px;
            /* 裝分數據 (Equip Score) 相關樣式 */
        }

        .esc-equip-table thead tr {
            background: rgba(0, 0, 0, 0.3);
            border-bottom: 2px solid rgba(255, 215, 0, 0.2);
        }

        .esc-equip-table th {
            position: sticky;
            top: 0;
            z-index: 10;
            background: #1c212e;
            /* 樣式設定 */
            padding: 12px;
            color: #8b949e;
            font-weight: 700;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            text-align: center;
            white-space: nowrap;
            border-bottom: 2px solid rgba(255, 215, 0, 0.2);
        }

        .esc-equip-table td {
            padding: 9px 12px;
            vertical-align: middle;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        }

        .esc-equip-row:hover td {
            background: rgba(255, 255, 255, 0.03);
        }

        .esc-equip-row:last-child td {
            border-bottom: none;
        }

        .esc-total-row td {
            padding: 10px 12px;
            background: rgba(255, 215, 0, 0.04);
            border-top: 2px solid rgba(255, 215, 0, 0.15);
            border-bottom: none;
        }

        /* 裝分數據 (Equip Score) 相關樣式 */
        .esc-rarity-dot {
            width: 9px;
            height: 9px;
            border-radius: 50%;
            flex-shrink: 0;
            margin-top: 2px;
        }

        /* 裝分數據 (Equip Score) 相關樣式 */
        .esc-stone-badge {
            display: inline-block;
            border: 1px solid;
            border-radius: 4px;
            padding: 1px 5px;
            font-size: 11px;
            font-weight: 700;
            font-family: 'Inter', sans-serif;
            margin: 1px 2px;
            white-space: nowrap;
        }

        /* 裝分數據：守護力盤樣式 */
        .esc-board-card {
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-left: 4px solid;
            border-radius: 10px;
            padding: 14px 16px;
            transition: all 0.2s ease;
        }

        .esc-board-card:hover {
            background: rgba(255, 255, 255, 0.03);
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        }

        /* 裝分數據：進度條樣式 */
        .esc-progress-bg {
            width: 100%;
            height: 7px;
            background: rgba(255, 255, 255, 0.07);
            border-radius: 4px;
            overflow: hidden;
        }

        .esc-progress-fill {
            height: 100%;
            border-radius: 4px;
            transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* 響應式設定：1024px 以下 (平板) */
        @media (max-width: 1024px) {
            #equip-source-block>div:nth-child(2) {
                flex-direction: column !important;
                min-height: auto !important;
            }

            .main-tab-content {
                display: block !important;
                opacity: 1 !important;
                transform: none !important;
                margin-bottom: 50px;
                scroll-margin-top: 40px;
            }

            #tab-compare {
                scroll-margin-top: 100px;
            }

            /* Mobile Adjustments */
            @media (max-width: 900px) {
                .main-tab-content {
                    scroll-margin-top: 20px;
                }

                #tab-compare {
                    scroll-margin-top: 80px;
                }
            }

            #equip-source-stats-panel {
                width: 100% !important;
                border: none !important;
                border-bottom: 2px solid rgba(255, 217, 61, 0.1) !important;
                padding: 10px 15px !important;
                background: rgba(0, 0, 0, 0.3) !important;
            }

            /* 裝分數據 (Equip Score) 相關樣式 */
            .esc-sidebar-title,
            .esc-stat-row,
            .esc-divider {
                display: none !important;
            }

            /* 裝分數據 (Equip Score) 相關樣式 */
            .esc-summary-card {
                display: flex !important;
                flex-direction: row !important;
                align-items: center !important;
                justify-content: space-around !important;
                flex-wrap: nowrap !important;
                padding: 10px !important;
                margin-top: 0 !important;
                background: none !important;
                border: none !important;
                box-shadow: none !important;
                gap: 15px !important;
                overflow: hidden !important;
            }

            .esc-summary-line,
            .esc-divider-h {
                display: none !important;
            }

            .esc-summary-item {
                flex: 1 !important;
                margin: 0 !important;
                text-align: center !important;
                min-width: 0 !important;
            }

            .esc-summary-item .esc-label {
                font-size: 9px !important;
                margin-bottom: 2px !important;
                justify-content: center !important;
                opacity: 0.7 !important;
                white-space: nowrap !important;
            }

            .esc-summary-item .esc-value {
                font-size: 18px !important;
                margin-bottom: 0 !important;
                justify-content: center !important;
                letter-spacing: -0.5px !important;
            }

            .esc-summary-badge {
                margin: 0 !important;
                padding: 4px 10px !important;
                font-size: 11px !important;
                white-space: nowrap !important;
            }
        }

        @media (max-width: 768px) {

            /* 樣式設定 */
            #esc-tab-board,
            #esc-tab-equip {
                overflow-x: auto !important;
                padding-bottom: 15px !important;
                -webkit-overflow-scrolling: touch;
            }

            .esc-equip-table {
                min-width: 600px !important;
            }

            #equip-source-block .integrated-equip-header {
                flex-direction: column !important;
                align-items: flex-start !important;
                gap: 15px !important;
                padding: 15px !important;
            }

            #equip-source-block .stat-tabs-header {
                width: 100% !important;
                overflow-x: auto !important;
                white-space: nowrap !important;
            }

            /* 樣式設定 */
            #equip-source-block div[style*="height: 520px"] {
                height: auto !important;
                min-height: auto !important;
                overflow-y: visible !important;
                padding: 15px !important;
            }

            .esc-equip-table th,
            .esc-equip-table td {
                padding: 8px !important;
                font-size: 12px !important;
            }
        }

        @media (max-width: 480px) {
            .esc-summary-item .esc-value {
                font-size: 16px !important;
            }

            .esc-summary-badge {
                font-size: 10px !important;
                padding: 2px 6px !important;
            }
        }

        /* ==========================================================================
   ????Sidebar & Professional Layout (2026-03-19 Update)
   ========================================================================== */

        /* App Wrapper for Sidebar Layout */
        .app-wrapper {
            display: flex;
            min-height: 100vh;
            width: 100%;
            background: var(--bg);
            position: relative;
            padding: 0;
            margin: 0;
        }

        /* 側邊導覽列 (Sidebar) 樣式 */
        .sidebar {
            width: 80px;
            background: rgba(15, 20, 30, 0.95);
            backdrop-filter: blur(20px);
            border-right: 1px solid rgba(255, 255, 255, 0.05);
            display: none;
            /* 樣式設定 */
            flex-direction: column;
            align-items: center;
            padding: 20px 0;
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            z-index: 2000;
            box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
            overflow: hidden;
        }

        /* 側邊導覽列 (Sidebar) 樣式 */
        .app-wrapper.has-sidebar .sidebar {
            display: flex;
            /* 側邊導覽列 (Sidebar) 樣式 */
        }

        .sidebar:hover {
            width: 220px;
        }

        .sidebar-nav {
            flex: 1;
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding: 0 10px;
        }

        .sidebar-item {
            display: flex;
            align-items: center;
            padding: 12px 14px;
            border-radius: 12px;
            color: #94a3b8;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
            position: relative;
            white-space: nowrap;
            border: 1px solid transparent;
        }

        .sidebar-item .s-icon {
            font-size: 24px;
            min-width: 32px;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: transform 0.2s;
        }

        .sidebar-item .s-icon img {
            width: 28px;
            height: 28px;
            object-fit: contain;
        }

        .sidebar-item-text {
            margin-left: 15px;
            font-weight: 600;
            font-size: 15px;
            opacity: 0;
            transition: opacity 0.2s;
            pointer-events: none;
        }

        .sidebar:hover .sidebar-item-text {
            opacity: 1;
        }

        .sidebar-item:hover {
            background: rgba(255, 230, 109, 0.08);
            /* 側邊導覽列 (Sidebar) 樣式 */
            color: #fff;
        }

        .sidebar-item:hover .s-icon {
            transform: scale(1.1);
            color: var(--gold-bright);
            filter: drop-shadow(0 0 5px var(--gold-glow));
        }

        .sidebar-item.active {
            background: linear-gradient(90deg, rgba(255, 217, 61, 0.12), rgba(255, 217, 61, 0.02) 40%, transparent);
            color: var(--gold-bright);
            font-weight: bold;
            border-left: 4px solid var(--gold);
            box-shadow: inset 5px 0 15px -5px var(--gold-glow);
        }

        .sidebar-item.active .s-icon {
            color: var(--gold-bright);
            filter: drop-shadow(0 0 10px var(--gold-glow));
        }

        /* 樣式設定 */
        .main-content-area {
            flex: 1;
            margin-left: 0;
            padding: 30px;
            width: 100%;
            box-sizing: border-box;
        }

        .app-wrapper.has-sidebar .main-content-area {
            margin-left: 80px;
            width: calc(100% - 80px);
        }

        /* Tab Content Visibility (Changed to Scroll/Anchor Mode) */
        .main-tab-content {
            display: block !important;
            opacity: 1 !important;
            transform: none !important;
            margin-bottom: 50px;
            /* 樣式設定 */
            scroll-margin-top: 30px;
            /* 響應式 (RWD) 佈局設定 */
        }

        /* 響應式 (RWD) 佈局設定 */
        @media (max-width: 900px) {
            .main-tab-content {
                scroll-margin-top: 10px;
            }
        }

        /* Sidebar Footer */
        .sidebar-footer {
            width: 100%;
            padding: 20px 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }


        /* 響應式設定：1024px 以下 (平板) */
        @media (max-width: 1024px) {
            .sidebar {
                display: none !important;
                /* Hide desktop sidebar on mobile */
            }

            .main-content-area {
                margin-left: 0 !important;
                width: 100% !important;
                padding: 5px !important;
                /* 圖書館 (Library) 相關樣式 */
            }
        }

        /* 圖書館 (Library) 相關樣式 */
        .lib-container {
            max-width: 100%;
            min-height: 800px;
            /* 圖書館 (Library) 相關樣式 */
        }

        .lib-section {
            margin-bottom: 40px;
        }

        .lib-table-wrapper {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 12px;
            overflow: hidden;
            /* 圖書館 (Library) 相關樣式 */
            border: 1px solid rgba(255, 255, 255, 0.05);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .lib-table-inner-scroll {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            width: 100%;
        }

        .lib-table-header {
            background: #d35400;
            color: #fff;
            padding: 15px 25px;
            text-align: center;
            font-size: 20px;
            font-weight: bold;
            letter-spacing: 2px;
        }

        .lib-table {
            width: 100%;
            border-collapse: collapse;
            color: #bdc3c7;
            font-size: 15px;
        }

        .lib-table th {
            background: rgba(255, 255, 255, 0.05);
            padding: 12px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: #fff;
            font-weight: 600;
        }

        .lib-table td {
            padding: 12px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            text-align: center;
            line-height: 1.5;
        }

        .highlight-pink {
            background: rgba(255, 107, 129, 0.15) !important;
        }

        .label-col {
            background: rgba(255, 255, 255, 0.03);
            font-weight: bold;
            color: #ecf0f1;
            width: 120px;
        }

        .priority-high {
            color: #f1c40f;
            font-weight: bold;
        }

        .priority-med {
            color: #bdc3c7;
        }

        .priority-low {
            color: #95a5a6;
            font-size: 13px;
        }

        @media (max-width: 768px) {
            .lib-table {
                font-size: 12px;
                min-width: 600px;
            }

            .lib-table td,
            .lib-table th {
                padding: 8px 4px;
            }

            .label-col {
                width: 75px !important;
            }
        }

        /* 角色比較系統樣式 */
        .compare-input-box input:focus {
            border-color: var(--gold) !important;
            box-shadow: 0 0 10px var(--gold-glow);
        }

        #compare-rows-container>div:last-child {
            border-bottom: none;
        }

        @media (max-width: 768px) {
            #tab-compare .card-content-padding {
                padding: 15px;
            }

            #tab-compare div[style*='grid-template-columns: 1fr 1fr'] {
                grid-template-columns: 1fr !important;
            }

            #tab-compare div[style*='grid-template-columns: 1fr 140px 1fr'] {
                grid-template-columns: 1fr 60px 1fr !important;
            }

            #comp-header-a,
            #comp-header-b {
                padding: 15px 10px !important;
            }

            .compare-char-name {
                font-size: 18px !important;
            }

            #tab-compare div[style*='font-size: 28px'] {
                font-size: 18px !important;
            }
        }

        .mini-search-results::-webkit-scrollbar {
            width: 5px;
        }

        .mini-search-results::-webkit-scrollbar-thumb {
            background: rgba(255, 217, 61, 0.5);
            border-radius: 5px;
        }

        .mini-search-results {
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 217, 61, 0.5) transparent;
        }

        /* ⚔️ 角色比較 A4 截圖預覽 */
        #compare-a4-container {
            width: 1050px;
            margin: 0 auto;
            background: transparent;
            position: relative;
            overflow: visible;
        }

        #compare-a4-container table th {
            font-family: 'Microsoft JhengHei', sans-serif;
        }

        #compare-a4-container .compare-row-item {
            transition: none !important;
        }

        #compare-a4-overlay .newspaper-modal {
            background: transparent;
            padding: 0;
            border-radius: 0;
        }

        @media print {
            #compare-a4-container {
                width: 100%;
                box-shadow: none;
            }
        }