/* 炫光の「TOYS」宝藏小屋 —— 页面样式（自 index.html 拆出） */
        /* ===== 页面自定义滚动条 ===== */
        html {
            scrollbar-width: thin;
            scrollbar-color: rgba(155, 185, 255, 0.30) transparent;
        }
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        ::-webkit-scrollbar-track {
            background: rgba(155, 185, 255, 0.04);
            border-radius: 8px;
        }
        ::-webkit-scrollbar-thumb {
            background: rgba(155, 185, 255, 0.28);
            border-radius: 8px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: rgba(155, 185, 255, 0.50);
        }
        ::-webkit-scrollbar-corner {
            background: transparent;
        }

        body {
            background: #0d0f1a;
            font-family: 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', sans-serif;
            color: #e0e4f0;
            padding-bottom: 40px;
            min-height: 100vh;
        }
        a {
            color: #9bb9ff;
            text-decoration: none;
            transition: color 0.2s;
        }
        a:hover {
            color: #c8d8ff;
            text-decoration: underline;
        }

        .main-container {
            max-width: 540px;
            margin: 0 auto;
            padding: 16px 18px 30px;
        }

        .page-header {
            text-align: center;
            padding: 24px 0 12px;
            border-bottom: 2px solid rgba(155, 185, 255, 0.20);
            margin-bottom: 10px;
            position: relative;
        }
        .page-header::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 50%;
            transform: translateX(-50%);
            width: 72px;
            height: 2px;
            background: linear-gradient(90deg, transparent, #9bb9ff, transparent);
        }
        .page-header h1 {
            font-size: 1.8rem;
            font-weight: 700;
            letter-spacing: 2px;
            background: linear-gradient(135deg, #f0e6b0, #ffd78a, #f0e6b0);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 0 40px rgba(255, 215, 138, 0.15);
            margin: 0;
            line-height: 1.3;
        }
        .page-header .visit-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 6px;
        }
        .page-header .visit-count,
        .page-header .fans-count {
            font-size: 0.7rem;
            color: rgba(155, 185, 255, 0.45);
            letter-spacing: 3px;
        }
        .page-header .visit-sep {
            font-size: 0.7rem;
            color: rgba(155, 185, 255, 0.25);
        }
        .share-btn {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: rgba(155, 185, 255, 0.06);
            border: 1px solid rgba(155, 185, 255, 0.15);
            color: rgba(155, 185, 255, 0.5);
            font-size: 0.75rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            transition: all 0.2s;
        }
        .share-btn:hover {
            color: #ffd78a;
            border-color: rgba(255, 215, 138, 0.5);
            background: rgba(255, 215, 138, 0.10);
        }
        .page-header .sub-glow {
            font-size: 0.75rem;
            color: rgba(155, 185, 255, 0.5);
            letter-spacing: 6px;
            margin-top: 4px;
            display: block;
        }

        .section-title {
            font-size: 1.15rem;
            font-weight: 600;
            color: #c8d4f0;
            padding: 16px 0 10px;
            margin-bottom: 10px;
            border-bottom: 1px solid rgba(155, 185, 255, 0.10);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .section-title i {
            font-size: 1.3rem;
            color: #9bb9ff;
        }
        .section-title.more-toggle {
            cursor: pointer;
            user-select: none;
            transition: color 0.2s;
        }
        .section-title.more-toggle:hover {
            color: #e6eeff;
        }
        .section-title .more-chevron {
            margin-left: auto;
            transition: transform 0.3s;
        }
        .section-title.more-toggle.open .more-chevron {
            transform: rotate(180deg);
        }
        .section-title .badge-extend {
            font-size: 0.6rem;
            background: rgba(155, 185, 255, 0.12);
            color: #9bb9ff;
            padding: 2px 10px;
            border-radius: 30px;
            font-weight: 400;
            letter-spacing: 1px;
        }

        .card-item {
            background: rgba(22, 28, 50, 0.60);
            backdrop-filter: blur(4px);
            border: 1px solid rgba(155, 185, 255, 0.08);
            border-radius: 14px;
            padding: 12px 14px;
            transition: background 0.2s, border-color 0.2s;
        }
        .card-item:hover {
            background: rgba(30, 38, 68, 0.75);
            border-color: rgba(155, 185, 255, 0.20);
        }

        /* ===== 账号链接区域 ===== */
        .link-row {
            display: flex;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid rgba(155, 185, 255, 0.05);
        }
        .link-row:last-child {
            border-bottom: none;
        }
        .link-label {
            font-weight: 500;
            color: #b8c8ee;
            min-width: 88px;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .link-label i {
            font-size: 1.1rem;
            width: 22px;
            color: #7b9fe0;
        }
        .link-value {
            flex: 1;
            text-align: right;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
        }
        .link-value a {
            color: #9bb9ff;
            font-weight: 500;
            word-break: break-all;
            border: 1px solid rgba(155, 185, 255, 0.20);
            border-radius: 30px;
            padding: 4px 18px;
            display: inline-block;
            transition: all 0.25s;
            background: rgba(155, 185, 255, 0.06);
        }
        .link-value a:hover {
            border-color: rgba(155, 185, 255, 0.50);
            background: rgba(155, 185, 255, 0.12);
            color: #c8d8ff;
            text-decoration: none;
        }

        /* ===== 作品与游戏卡片 ===== */
        .work-item, .game-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 12px 0;
            border-bottom: 1px solid rgba(155, 185, 255, 0.05);
        }
        .work-item:last-child, .game-item:last-child {
            border-bottom: none;
        }
        .work-cover, .game-img {
            width: 72px;
            height: 72px;
            border-radius: 12px;
            object-fit: cover;
            background: #1a2040;
            flex-shrink: 0;
            border: 1px solid rgba(155, 185, 255, 0.10);
            transition: transform 0.2s, border-color 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(155, 185, 255, 0.15);
            font-size: 1.8rem;
        }
        .work-cover:hover, .game-img:hover {
            transform: scale(1.02);
            border-color: rgba(155, 185, 255, 0.30);
        }
        .work-cover img, .game-img img {
            width: 100%;
            height: 100%;
            border-radius: 12px;
            object-fit: cover;
            display: block;
        }
        .work-info, .game-info {
            flex: 1;
            min-width: 0;
        }
        .work-name, .game-name {
            font-weight: 600;
            font-size: 1.0rem;
            display: block;
            line-height: 1.3;
        }
        /* 漫剧可跳转（SDK navigate） */
        .work-jump {
            cursor: pointer;
        }
        .work-jump:hover {
            opacity: 0.85;
        }
        /* 游戏名（小游戏/测试工具）超过一行时缩小字体而非换行 */
        .game-name {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .work-name a, .game-name a {
            color: #d0dcf8;
        }
        .work-name a:hover, .game-name a:hover {
            color: #ffffff;
            text-decoration: underline;
        }
        .work-desc, .game-path-hint {
            font-size: 0.75rem;
            color: rgba(155, 185, 255, 0.4);
            margin-top: 2px;
            display: block;
        }
        .game-path-hint {
            font-size: 0.65rem;
            font-family: monospace;
            color: rgba(155, 185, 255, 0.25);
        }
        /* ===== TOYS 搜索（在分隔横线上方） ===== */
        .section-title.has-search {
            flex-wrap: wrap;
            padding-top: 10px;
            padding-bottom: 8px;
        }
        .section-title.has-search .toys-search {
            flex-basis: 100%;
            margin: 8px 0 0;
        }
        .toys-search {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .toys-search-input {
            flex: 1;
            min-width: 0;
            height: 34px;
            padding: 0 14px;
            border-radius: 30px;
            background: rgba(155, 185, 255, 0.06);
            border: 1px solid rgba(155, 185, 255, 0.18);
            color: #e0e4f0;
            font-size: 0.82rem;
            outline: none;
            transition: all 0.25s;
        }
        .toys-search-input::placeholder {
            color: rgba(155, 185, 255, 0.35);
        }
        .toys-search-input:focus {
            border-color: rgba(155, 185, 255, 0.50);
            background: rgba(155, 185, 255, 0.10);
        }
        .toys-search-btn {
            flex-shrink: 0;
            height: 34px;
            padding: 0 18px;
            border-radius: 30px;
            background: rgba(155, 185, 255, 0.12);
            border: 1px solid rgba(155, 185, 255, 0.35);
            color: #9bb9ff;
            font-size: 0.82rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s;
            white-space: nowrap;
        }
        .toys-search-btn:hover {
            background: rgba(155, 185, 255, 0.22);
            border-color: rgba(155, 185, 255, 0.55);
            color: #fff;
        }

        /* ===== TOYS 分段 TAB ===== */
        .toys-tabs {
            display: flex;
            align-items: stretch;
            border: 1px solid rgba(155, 185, 255, 0.18);
            border-radius: 14px;
            overflow: hidden;
            margin-bottom: 10px;
        }
        .toys-tab {
            flex: 1;
            min-width: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            background: none;
            border: none;
            color: rgba(155, 185, 255, 0.55);
            font-size: 0.76rem;
            font-weight: 500;
            padding: 8px 0;
            cursor: pointer;
            transition: all 0.25s;
            white-space: nowrap;
            overflow: hidden;
        }
        .toys-tab i {
            flex-shrink: 0;
        }
        .toys-tab:hover {
            color: #c8d8ff;
        }
        .toys-tab.active {
            background: rgba(155, 185, 255, 0.15);
            color: #ffffff;
        }
        .toys-tab i {
            font-size: 1.05rem;
        }
        .toys-divider {
            width: 1px;
            background: rgba(155, 185, 255, 0.18);
        }

        /* ===== 抽卡 ===== */
        .gacha-controls {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px;
            padding: 2px 2px 4px;
        }
        .gacha-pool {
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
            font-size: 0.82rem;
            color: rgba(155, 185, 255, 0.7);
        }
        .gacha-pool label {
            display: flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
        }
        .gacha-pool input {
            accent-color: #9bb9ff;
            margin: 0;
        }
        .gacha-btn {
            background: linear-gradient(135deg, rgba(255, 215, 138, 0.20), rgba(255, 180, 90, 0.18));
            border: 1px solid rgba(255, 200, 120, 0.45);
            color: #ffd78a;
            border-radius: 30px;
            padding: 5px 18px;
            font-size: 0.82rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s;
        }
        .gacha-btn:hover {
            background: rgba(255, 215, 138, 0.30);
            box-shadow: 0 0 12px rgba(255, 200, 120, 0.30);
        }
        .gacha-result {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            margin-top: 14px;
            min-height: 120px;
        }
        .gacha-card {
            width: 80px;
            text-align: center;
            text-decoration: none;
            opacity: 0;
            animation: gachaIn 0.5s ease forwards;
        }
        /* 十连抽：缩小图标，一行展示 4 个 */
        .gacha-card--sm {
            width: 0;
            flex: 0 0 22%;
            min-width: 52px;
            max-width: 92px;
        }
        .gacha-card--sm .gacha-cover {
            width: 100%;
            height: auto;
            aspect-ratio: 1 / 1;
        }
        .gacha-cover {
            width: 80px;
            height: 80px;
            border-radius: 12px;
            object-fit: cover;
            border: 2px solid rgba(255, 215, 138, 0.35);
            box-shadow: 0 0 10px rgba(255, 215, 138, 0.20);
            background: #1a2040;
            display: block;
        }
        .gacha-cover-empty {
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(155, 185, 255, 0.20);
            font-size: 2rem;
        }
        .gacha-name {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-top: 5px;
            font-size: 0.7rem;
            color: #c8d4f0;
            line-height: 1.2;
            word-break: break-all;
        }
        @keyframes gachaIn {
            0% { opacity: 0; transform: translateY(30px) rotateY(90deg) scale(0.8); }
            60% { opacity: 1; }
            100% { opacity: 1; transform: translateY(0) rotateY(0) scale(1); }
        }

        /* 标签：展示在游戏名称下方，可多个 */
        .game-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-top: 4px;
        }
        .game-rec {
            display: inline-block;
            font-size: 0.66rem;
            font-weight: 500;
            color: #ffd78a;
            background: rgba(255, 215, 138, 0.10);
            border: 1px solid rgba(255, 215, 138, 0.35);
            border-radius: 30px;
            padding: 0 8px;
            line-height: 1.5;
            white-space: nowrap;
        }

        .game-placeholder {
            opacity: 0.4;
        }
        .game-placeholder .game-img {
            border: 1px dashed rgba(155, 185, 255, 0.25);
            background: rgba(155, 185, 255, 0.03);
        }
        .game-placeholder .game-name {
            color: rgba(155, 185, 255, 0.25);
        }

        /* ===== B站主页 & 粉丝状态（两个独立按钮，各占 50%，中间竖线） ===== */
        .bili-header-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 10px;
        }
        .bili-btn {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            min-height: 38px;
            border-radius: 12px;
            font-size: 0.85rem;
            font-weight: 600;
            box-sizing: border-box;
        }
        .bili-divider {
            width: 1px;
            height: 26px;
            flex-shrink: 0;
            background: rgba(155, 185, 255, 0.35);
        }
        .bili-btn-link {
            color: #fff;
            border: 1px solid rgba(155, 185, 255, 0.30);
            background: rgba(155, 185, 255, 0.06);
            transition: all 0.25s;
        }
        .bili-btn-link:hover {
            border-color: rgba(155, 185, 255, 0.55);
            background: rgba(155, 185, 255, 0.14);
            text-decoration: none;
        }
        /* B站主页：七彩色文字 */
        .bili-btn-link .bili-link-text {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #9b5de5, #ff6b6b);
            background-size: 200% 100%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: rainbowShift 3s linear infinite;
        }
        .follow-badge {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            border-radius: 12px;
            letter-spacing: 1px;
            white-space: nowrap;
            transition: all 0.3s;
        }
        /* 银色：未关注 / 获取不到关注状态 */
        .follow-badge.silver {
            background: linear-gradient(135deg, #d4dae3, #eef1f6);
            border: 1px solid #b8c0cc;
            color: #5a6270;
        }
        /* 金色：已关注 */
        .follow-badge.gold {
            background: linear-gradient(135deg, rgba(255, 215, 138, 0.22), rgba(255, 180, 90, 0.20));
            border: 1px solid rgba(255, 200, 120, 0.65);
            color: #ffd78a;
            text-shadow: 0 0 8px rgba(255, 215, 138, 0.6);
            box-shadow: 0 0 14px rgba(255, 200, 120, 0.30), inset 0 0 8px rgba(255, 215, 138, 0.12);
            animation: goldPulse 2.2s ease-in-out infinite;
        }
        @keyframes goldPulse {
            0%, 100% { box-shadow: 0 0 10px rgba(255, 200, 120, 0.25), inset 0 0 6px rgba(255, 215, 138, 0.10); }
            50% { box-shadow: 0 0 22px rgba(255, 210, 130, 0.50), inset 0 0 12px rgba(255, 215, 138, 0.22); }
        }
        /* 七彩色：作者本尊 */
        .follow-badge.rainbow {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.30);
        }
        .follow-badge.rainbow .badge-inner {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #9b5de5, #ff6b6b);
            background-size: 200% 100%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: rainbowShift 3s linear infinite;
        }
        @keyframes rainbowShift {
            0% { background-position: 0% 0; }
            100% { background-position: 200% 0; }
        }

        .empty-hint {
            color: rgba(155, 185, 255, 0.25);
            font-style: italic;
            font-size: 0.85rem;
            text-align: center;
            padding: 20px 0;
        }

        .footer-extend {
            margin-top: 30px;
            padding: 14px 18px;
            background: rgba(155, 185, 255, 0.04);
            border-radius: 14px;
            border: 1px solid rgba(155, 185, 255, 0.06);
            text-align: center;
            font-size: 0.8rem;
            color: rgba(155, 185, 255, 0.3);
        }
        .footer-extend code {
            color: rgba(155, 185, 255, 0.6);
            background: rgba(155, 185, 255, 0.06);
            padding: 2px 10px;
            border-radius: 30px;
            font-size: 0.7rem;
        }

        /* ===== 彩蛋弹窗（非 alert） ===== */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.55);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s;
        }
        .modal-overlay.show {
            opacity: 1;
            visibility: visible;
        }
        .modal-box {
            position: relative;
            background: linear-gradient(145deg, #1a2040, #0d0f1a);
            border: 1px solid rgba(255, 200, 120, 0.40);
            border-radius: 18px;
            padding: 30px 44px;
            text-align: center;
            box-shadow: 0 0 30px rgba(255, 200, 120, 0.25), 0 12px 40px rgba(0, 0, 0, 0.5);
            transform: scale(0.9);
            transition: transform 0.3s;
        }
        .modal-x {
            position: absolute;
            top: 10px;
            right: 14px;
            background: none;
            border: none;
            color: rgba(155, 185, 255, 0.45);
            font-size: 1.4rem;
            line-height: 1;
            padding: 4px;
            cursor: pointer;
            transition: color 0.2s;
        }
        .modal-x:hover {
            color: #fff;
        }

        /* ===== 图片预览弹窗（个人百科） ===== */
        .image-preview-box {
            position: relative;
            max-width: 92vw;
            max-height: 88vh;
            padding: 10px;
            background: rgba(13, 15, 26, 0.96);
            border: 1px solid rgba(155, 185, 255, 0.25);
            border-radius: 16px;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.65);
        }
        .image-preview-box img {
            display: block;
            width: auto;
            height: auto;
            max-width: calc(92vw - 20px);
            max-height: calc(88vh - 20px);
            border-radius: 10px;
        }
        /* 预览弹窗的关闭按钮：更醒目 */
        .image-preview-box .modal-x {
            top: 6px;
            right: 6px;
            width: 34px;
            height: 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.70);
            border: 1px solid rgba(255, 255, 255, 0.55);
            border-radius: 50%;
            color: #ffffff;
            font-size: 1.25rem;
            font-weight: 700;
            line-height: 1;
            z-index: 3;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
        }
        .image-preview-box .modal-x:hover {
            background: rgba(255, 90, 90, 0.90);
            border-color: #ffffff;
            color: #ffffff;
        }
        .work-preview {
            cursor: zoom-in;
        }
        .work-preview:hover {
            opacity: 0.85;
        }

        /* ===== 音乐播放/停止 悬浮按钮 ===== */
        .music-btn {
            position: fixed;
            top: 14px;
            right: 14px;
            z-index: 10000;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: rgba(22, 28, 50, 0.80);
            border: 1px solid rgba(155, 185, 255, 0.25);
            color: #9bb9ff;
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            backdrop-filter: blur(4px);
            transition: all 0.25s;
        }
        .music-btn:hover {
            color: #fff;
            border-color: rgba(155, 185, 255, 0.50);
        }
        .music-btn.playing {
            color: #ffd78a;
            border-color: rgba(255, 215, 138, 0.55);
            box-shadow: 0 0 14px rgba(255, 215, 138, 0.30);
        }
        /* 活跃度任务按钮：左上角 */
        .task-btn {
            left: 14px;
            right: auto;
            color: #ffd78a;
            border-color: rgba(255, 215, 138, 0.45);
            background: rgba(255, 215, 138, 0.10);
            box-shadow: 0 0 14px rgba(255, 215, 138, 0.25);
        }
        .task-btn:hover {
            color: #ffedc0;
            border-color: rgba(255, 215, 138, 0.70);
            box-shadow: 0 0 20px rgba(255, 215, 138, 0.45);
        }

        /* ===== 活跃度任务面板 ===== */
        .task-panel {
            position: relative;
            width: min(92vw, 430px);
            max-height: 84vh;
            overflow-y: auto;
            background: linear-gradient(145deg, #161c33, #0d0f1a);
            border: 1px solid rgba(155, 185, 255, 0.25);
            border-radius: 16px;
            padding: 22px 18px 20px;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
            text-align: left;
            scrollbar-width: thin;
            scrollbar-color: rgba(155, 185, 255, 0.25) rgba(155, 185, 255, 0.05);
        }
        /* 任务面板 / 排行榜列表 滑动条美化 */
        .task-panel::-webkit-scrollbar,
        .rank-list::-webkit-scrollbar {
            width: 5px;
        }
        .task-panel::-webkit-scrollbar-track,
        .rank-list::-webkit-scrollbar-track {
            background: rgba(155, 185, 255, 0.05);
            border-radius: 4px;
        }
        .task-panel::-webkit-scrollbar-thumb,
        .rank-list::-webkit-scrollbar-thumb {
            background: rgba(155, 185, 255, 0.25);
            border-radius: 4px;
        }
        .task-panel::-webkit-scrollbar-thumb:hover,
        .rank-list::-webkit-scrollbar-thumb:hover {
            background: rgba(155, 185, 255, 0.45);
        }
        .task-title {
            font-size: 1.05rem;
            font-weight: 700;
            color: #c8d4f0;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .task-title i {
            color: #ffd78a;
        }
        .rank-open-btn {
            margin-left: auto;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: linear-gradient(135deg, rgba(255, 215, 138, 0.18), rgba(255, 180, 90, 0.16));
            border: 1px solid rgba(255, 200, 120, 0.40);
            color: #ffd78a;
            border-radius: 30px;
            padding: 3px 12px;
            font-size: 0.72rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s;
            white-space: nowrap;
        }
        .rank-open-btn:hover {
            background: rgba(255, 215, 138, 0.28);
        }
        .rank-open-btn.rank-open-full {
            width: 100%;
            justify-content: center;
            margin: 0 0 12px;
            padding: 7px 0;
        }

        /* ===== 收藏夹 ===== */
        .fav-title-group {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        /* 分页开关：与收藏夹同尺寸按钮，原生复选框隐藏，勾选态用按钮高亮表达 */
        /* 分页开关 与 收藏夹按钮：同尺寸（固定高度 30px，box-sizing 含边框） */
        .fav-mode,
        .fav-open-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            height: 30px;
            padding: 0 14px;
            border-radius: 30px;
            font-size: 0.72rem;
            font-weight: 600;
            white-space: nowrap;
            cursor: pointer;
            transition: all 0.25s;
            box-sizing: border-box;
        }
        .fav-mode {
            background: none;
            border: 1px solid rgba(155, 185, 255, 0.18);
            color: #9bb9ff;
            user-select: none;
        }
        .fav-mode:hover {
            border-color: rgba(155, 185, 255, 0.5);
            color: #fff;
            background: rgba(155, 185, 255, 0.10);
        }
        .fav-mode input {
            accent-color: #9bb9ff;
            margin: 0;
            width: 13px;
            height: 13px;
            flex-shrink: 0;
        }
        .fav-mode.checked {
            background: rgba(155, 185, 255, 0.15);
            border-color: rgba(155, 185, 255, 0.45);
            color: #fff;
        }
        .fav-open-btn {
            background: none;
            border: 1px solid rgba(155, 185, 255, 0.18);
            color: #9bb9ff;
        }
        .fav-open-btn:hover {
            border-color: rgba(155, 185, 255, 0.5);
            color: #fff;
            background: rgba(155, 185, 255, 0.10);
        }
        .fav-open-btn:hover {
            border-color: rgba(155, 185, 255, 0.5);
            color: #fff;
            background: rgba(155, 185, 255, 0.10);
        }
        .fav-star {
            flex-shrink: 0;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: rgba(155, 185, 255, 0.06);
            border: 1px solid rgba(155, 185, 255, 0.15);
            color: rgba(155, 185, 255, 0.35);
            font-size: 1.05rem;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.25s;
        }
        .fav-star:hover {
            color: #ffd78a;
            border-color: rgba(255, 215, 138, 0.5);
        }
        .fav-star.on {
            color: #ffd78a;
            border-color: rgba(255, 215, 138, 0.6);
            background: rgba(255, 215, 138, 0.12);
            text-shadow: 0 0 8px rgba(255, 215, 138, 0.6);
        }
        /* 抽卡卡片上的星标（左上角/右上角小号） */
        .gacha-card {
            position: relative;
        }
        .gacha-card-link {
            display: block;
            text-decoration: none;
        }
        .fav-star-sm {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 24px;
            height: 24px;
            font-size: 0.85rem;
            background: rgba(0, 0, 0, 0.35);
            border-color: rgba(255, 255, 255, 0.2);
        }
        .fav-star-sm.on {
            background: rgba(255, 215, 138, 0.15);
        }
        /* 收藏列表 */
        .fav-list {
            max-height: 60vh;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(155, 185, 255, 0.25) rgba(155, 185, 255, 0.05);
        }
        .fav-list::-webkit-scrollbar { width: 5px; }
        .fav-list::-webkit-scrollbar-track { background: rgba(155, 185, 255, 0.05); border-radius: 4px; }
        .fav-list::-webkit-scrollbar-thumb { background: rgba(155, 185, 255, 0.25); border-radius: 4px; }
        .fav-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 2px;
            border-bottom: 1px solid rgba(155, 185, 255, 0.05);
            font-size: 0.8rem;
        }
        .fav-item:last-child { border-bottom: none; }
        .fav-no {
            width: 24px;
            flex-shrink: 0;
            color: rgba(155, 185, 255, 0.5);
            font-weight: 600;
            text-align: center;
        }
        .fav-cover {
            flex-shrink: 0;
            width: 42px;
            height: 42px;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid rgba(155, 185, 255, 0.15);
            background: #1a2040;
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(155, 185, 255, 0.2);
            font-size: 1.2rem;
        }
        .fav-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .fav-name {
            flex: 1;
            min-width: 0;
            color: #d0dcf8;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .fav-name:hover { color: #fff; text-decoration: underline; }
        .fav-time {
            flex-shrink: 0;
            font-size: 0.68rem;
            color: rgba(155, 185, 255, 0.4);
        }
        .fav-del {
            flex-shrink: 0;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: none;
            border: 1px solid rgba(255, 120, 120, 0.25);
            color: rgba(255, 140, 140, 0.6);
            font-size: 1rem;
            line-height: 1;
            cursor: pointer;
            transition: all 0.2s;
        }
        .fav-del:hover {
            background: rgba(255, 120, 120, 0.15);
            color: #ff8a8a;
            border-color: rgba(255, 120, 120, 0.5);
        }

        /* 等级行 */
        .level-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
        }
        .lv-badge {
            flex-shrink: 0;
            min-width: 54px;
            text-align: center;
            padding: 6px 10px;
            border-radius: 12px;
            font-size: 0.82rem;
            font-weight: 800;
            letter-spacing: 1px;
            white-space: nowrap;
        }
        .lv-badge.tier1 { background: rgba(120, 130, 150, 0.15); color: #9aa5bd; border: 1px solid rgba(150, 160, 180, 0.30); }
        .lv-badge.tier2 { background: linear-gradient(135deg, #e0e8f5, #b8c8e0); color: #2a3a55; border: 1px solid #c0d0ea; box-shadow: 0 0 10px rgba(120, 160, 220, 0.40); }
        .lv-badge.tier3 { background: linear-gradient(135deg, #ffe9b0, #ffc04a); color: #5a3d00; border: 1px solid #ffd78a; box-shadow: 0 0 14px rgba(255, 200, 120, 0.50); }
        .lv-badge.tier4 { background: linear-gradient(135deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #9b5de5); color: #fff; border: none; box-shadow: 0 0 14px rgba(155, 93, 229, 0.50); }
        .lv-badge.tier5 { background: linear-gradient(135deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #9b5de5, #ff6b6b); background-size: 200% 100%; color: #fff; border: none; animation: rainbowShift 3s linear infinite, lvPulse 1.5s ease-in-out infinite; box-shadow: 0 0 22px rgba(255, 215, 138, 0.60); }
        @keyframes lvPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        .exp-bar-wrap {
            flex: 1;
            position: relative;
            height: 18px;
            background: rgba(155, 185, 255, 0.08);
            border-radius: 30px;
            overflow: hidden;
            border: 1px solid rgba(155, 185, 255, 0.15);
        }
        .exp-bar {
            height: 100%;
            background: linear-gradient(90deg, #6bcb77, #ffd93d, #ffb347);
            border-radius: 30px;
            transition: width 0.4s;
        }
        .exp-text {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.68rem;
            color: #0d0f1a;
            font-weight: 700;
        }
        /* ===== 首页等级行：整行一个胶囊，LV 无独立框 ===== */
        .home-lv-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 8px;
            padding: 2px 8px 2px 14px;
            border-radius: 30px;
            border: 1px solid rgba(155, 185, 255, 0.22);
            background: rgba(155, 185, 255, 0.05);
        }
        .home-lv-row .lv-badge {
            min-width: 0;
            padding: 0;
            background: none;
            border: none;
            box-shadow: none;
            border-radius: 0;
            font-size: 0.78rem;
            letter-spacing: 0.5px;
            -webkit-text-fill-color: currentColor;
        }
        .home-lv-row .lv-badge.tier1 { color: #9aa5bd; }
        .home-lv-row .lv-badge.tier2 { color: #d6e2f5; }
        .home-lv-row .lv-badge.tier3 { color: #ffd78a; }
        .home-lv-row .lv-badge.tier4,
        .home-lv-row .lv-badge.tier5 {
            color: #fff;
            background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #9b5de5, #ff6b6b);
            background-size: 200% 100%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: rainbowShift 3s linear infinite;
        }
        .home-lv-row .home-exp-wrap {
            flex: 1;
            height: 14px;
        }
        .home-lv-row .exp-text {
            font-size: 0.6rem;
            color: #ffffff;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75), 0 0 3px rgba(0, 0, 0, 0.6);
        }
        .home-task-btn {
            flex-shrink: 0;
            height: 22px;
            padding: 0 10px;
            border-radius: 30px;
            background: rgba(255, 215, 138, 0.10);
            border: 1px solid rgba(255, 215, 138, 0.40);
            color: #ffd78a;
            font-size: 0.72rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s;
            white-space: nowrap;
        }
        .home-task-btn:hover {
            background: rgba(255, 215, 138, 0.22);
            border-color: rgba(255, 215, 138, 0.65);
            color: #fff3d6;
        }

        .claim-all-btn {
            flex-shrink: 0;
            background: linear-gradient(135deg, rgba(255, 215, 138, 0.20), rgba(255, 180, 90, 0.18));
            border: 1px solid rgba(255, 200, 120, 0.45);
            color: #ffd78a;
            border-radius: 30px;
            padding: 5px 14px;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s;
            white-space: nowrap;
        }
        .claim-all-btn:hover {
            background: rgba(255, 215, 138, 0.30);
        }

        /* 排行榜 */
        .rank-section {
            border-top: 1px solid rgba(155, 185, 255, 0.08);
            margin-top: 4px;
            padding-top: 10px;
            margin-bottom: 10px;
        }
        .rank-section-title {
            font-size: 0.82rem;
            font-weight: 600;
            color: #c8d4f0;
            margin-bottom: 6px;
        }
        .rank-tabs {
            display: flex;
            gap: 6px;
            margin-bottom: 8px;
        }
        .rank-tabs button {
            background: none;
            border: 1px solid rgba(155, 185, 255, 0.12);
            border-radius: 30px;
            color: rgba(155, 185, 255, 0.55);
            font-size: 0.72rem;
            padding: 2px 12px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .rank-tabs button.active {
            background: rgba(155, 185, 255, 0.15);
            border-color: rgba(155, 185, 255, 0.45);
            color: #fff;
        }
        .rank-list {
            max-height: 58vh;
            overflow-y: auto;
        }
        .rank-mine {
            background: rgba(255, 215, 138, 0.10);
            border: 1px solid rgba(255, 215, 138, 0.35);
            border-radius: 8px;
            padding: 6px 10px;
            margin-bottom: 8px;
            font-size: 0.78rem;
            font-weight: 600;
            color: #ffd78a;
        }
        .rank-row {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 5px 2px;
            border-bottom: 1px solid rgba(155, 185, 255, 0.05);
            font-size: 0.78rem;
        }
        .rank-row:last-child { border-bottom: none; }
        .rank-no {
            width: 24px;
            color: rgba(155, 185, 255, 0.5);
            font-weight: 600;
        }
        .rank-name {
            flex: 1;
            color: #d0dcf8;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .rank-score {
            color: #ffd78a;
            font-weight: 600;
        }
        .rank-empty {
            color: rgba(155, 185, 255, 0.35);
            font-size: 0.78rem;
            text-align: center;
            padding: 12px 0;
        }

        /* 任务分区 */
        .task-group {
            border: 1px solid rgba(155, 185, 255, 0.10);
            border-radius: 10px;
            margin-bottom: 8px;
            overflow: hidden;
        }
        .task-group-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 9px 12px;
            cursor: pointer;
            font-size: 0.85rem;
            color: #c8d4f0;
            background: rgba(155, 185, 255, 0.04);
            user-select: none;
        }
        .task-group-head i {
            transition: transform 0.3s;
            color: rgba(155, 185, 255, 0.5);
        }
        .task-group.open .task-group-head i {
            transform: rotate(180deg);
        }
        .task-group-body {
            display: none;
            padding: 4px 12px 8px;
        }
        .task-group.open .task-group-body {
            display: block;
        }
        .task-row {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 0;
            border-bottom: 1px solid rgba(155, 185, 255, 0.05);
            font-size: 0.78rem;
        }
        .task-row:last-child { border-bottom: none; }
        .task-info {
            flex: 1;
            min-width: 0;
        }
        .task-name {
            color: #d0dcf8;
            display: block;
        }
        .task-prog {
            color: rgba(155, 185, 255, 0.5);
            font-size: 0.68rem;
        }
        .task-exp {
            color: #ffd78a;
            font-size: 0.72rem;
            white-space: nowrap;
        }
        .task-claim {
            flex-shrink: 0;
            background: rgba(155, 185, 255, 0.12);
            border: 1px solid rgba(155, 185, 255, 0.30);
            color: #9bb9ff;
            border-radius: 30px;
            padding: 3px 12px;
            font-size: 0.72rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .task-claim:hover {
            background: rgba(155, 185, 255, 0.22);
            color: #fff;
        }
        .task-claim.done {
            opacity: 0.45;
            cursor: default;
            background: rgba(120, 130, 150, 0.10);
            border-color: rgba(120, 130, 150, 0.2);
            color: rgba(155, 185, 255, 0.4);
        }

        /* 升级提示 */
        .levelup-toast {
            position: fixed;
            top: 15%;
            left: 50%;
            transform: translateX(-50%) translateY(-20px) scale(0.9);
            opacity: 0;
            z-index: 99999;
            background: linear-gradient(135deg, rgba(30, 36, 60, 0.95), rgba(15, 18, 30, 0.95));
            border: 2px solid rgba(255, 200, 120, 0.75);
            color: #ffd78a;
            border-radius: 30px;
            padding: 12px 30px;
            font-size: 1.05rem;
            font-weight: 800;
            letter-spacing: 2px;
            text-shadow: 0 0 12px rgba(255, 215, 138, 0.6);
            transition: all 0.4s;
            box-shadow: 0 0 30px rgba(255, 200, 120, 0.40), 0 8px 30px rgba(0, 0, 0, 0.5);
            pointer-events: none;
            white-space: nowrap;
        }
        .levelup-toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0) scale(1);
        }

        /* 复制链接提示 */
        .copy-toast {
            position: fixed;
            bottom: 12%;
            left: 50%;
            transform: translateX(-50%) translateY(10px);
            opacity: 0;
            z-index: 99999;
            background: rgba(22, 28, 50, 0.95);
            border: 1px solid rgba(155, 185, 255, 0.35);
            color: #c8d4f0;
            border-radius: 30px;
            padding: 8px 20px;
            font-size: 0.8rem;
            transition: all 0.35s;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
            pointer-events: none;
            white-space: nowrap;
        }
        .copy-toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        .modal-overlay.show .modal-box {
            transform: scale(1);
        }
        .modal-box .gold-title {
            font-size: 1.15rem;
            font-weight: 700;
            letter-spacing: 2px;
            background: linear-gradient(135deg, #f0e6b0, #ffd78a, #ffc04a);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 0 16px rgba(255, 215, 138, 0.5);
        }
        .egg-gallery {
            margin-top: 14px;
            border-radius: 12px;
            overflow: hidden;
            touch-action: pan-y;
            cursor: pointer;
            user-select: none;
            -webkit-user-select: none;
            border: 1px solid rgba(255, 215, 138, 0.25);
        }
        .egg-gallery img {
            width: 100%;
            max-height: 260px;
            object-fit: contain;
            display: block;
            border-radius: 12px;
            background: #0d0f1a;
        }

        @media (max-width: 400px) {
            .page-header h1 {
                font-size: 1.5rem;
            }
            .link-label {
                min-width: 70px;
                font-size: 0.85rem;
            }
            .link-value a {
                padding: 2px 14px;
                font-size: 0.85rem;
            }
            .work-cover, .game-img {
                width: 60px;
                height: 60px;
            }
        }
        @media (min-width: 768px) {
            .main-container {
                max-width: 640px;
                padding: 20px 30px 40px;
            }
            .work-cover, .game-img {
                width: 84px;
                height: 84px;
            }
        }