* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            /* 正常状态 */
            cursor: url("mouse.cur") 16 0, default;
        }
                    /* 状态 */
        a:hover, button:hover, input:hover {
        cursor: url("hover.cur") 16 0, pointer;
        }

        body {
            min-height: 100vh;
            background: linear-gradient(135deg, #1e1e2f, #3a3a5a);
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 30px 20px;
            font-family: 'Arial', sans-serif;
            overflow-x: hidden;
        }

        /* 全局美化滚动条 */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        ::-webkit-scrollbar-track {
            background: #1e1e2f;
            border-radius: 10px;
        }
        ::-webkit-scrollbar-thumb {
            background: #00ff00;
            border-radius: 10px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #00cc00;
        }

        .title {
            color: #fff;
            font-size: 2.0rem;
            margin-bottom: 30px;
            text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
            animation: fadeIn 1s ease forwards;
        }

        /* 筛选按钮 */
        .filter-btn {
            padding: 10px 22px;
            background: linear-gradient(45deg, #ff9500, #ff3c00);
            color: white;
            font-size: 1rem;
            font-weight: bold;
            border: none;
            border-radius: 50px;
            margin-bottom: 25px;
            box-shadow: 0 5px 15px rgba(255, 149, 0, 0.3);
            transition: all 0.3s ease;
        }
        .filter-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(255, 149, 0, 0.4);
        }

        /* 卡牌容器 */
        .card-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 25px;
            width: 100%;
            max-width: 1200px;
            perspective: 1500px;
        }

        /* 卡牌样式 */
        .card {
            width: 150px;
            height: 220px;
            position: relative;
            transform-style: preserve-3d;
            transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            animation: cardEnter 1s ease backwards;
            border-radius: 15px;
        }

        .card.flipped {
            transform: rotateY(180deg);
        }

        .card-front, .card-back {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
        }

        .card:hover .card-front {
            transform: translateY(-8px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
        }

        .card-front {
            background: linear-gradient(45deg, #888800, #00EE00, #000FF0);
            background-size: 300% 300%;
            animation: gradientMove 3s ease infinite;
            font-size: 3rem;
            color: white;
            text-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }

        .card-back {
            transform: rotateY(180deg);
            background: #2a2a3d;
            overflow: hidden;
            padding: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-direction: column;
        }

        .card-back img {
            width: 100%;
            height: auto;
            max-width: 120px;
            border-radius: 10px;
            opacity: 0;
            transform: scale(0.8);
            transition: all 0.4s ease 0.2s;
        }

        .card-back .name{
            font-size: 1.0rem;
            color: #00ff00 !important;
            margin-bottom: 8px;
            font-weight: bold;
        }

        .card.flipped .card-back img {
            opacity: 1;
            transform: scale(1);
        }

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

        @keyframes cardEnter {
            from { 
                opacity: 0; 
                transform: translateY(50px) rotateY(30deg); 
            }
            to { 
                opacity: 1; 
                transform: translateY(0) rotateY(0); 
            }
        }

        @keyframes gradientMove {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        /* ———— 筛选弹窗（优化版） ———— */
        .filter-popup {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0,0,0,0.92);
            z-index: 9998;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease;
        }
        .filter-popup.show {
            opacity: 1;
            visibility: visible;
        }
        .filter-box {
            background: #2a2a3d;
            width: 90%;
            max-width: 520px;
            padding: 30px;
            border-radius: 20px;
            border: 2px solid #00ff00;
            box-shadow: 0 0 40px rgba(0,255,0,0.25);
            transform: scale(0.5) translateY(-50px);
            transition: all 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
        }
        .filter-popup.show .filter-box {
            transform: scale(1) translateY(0);
        }
        .filter-title {
            color: #00ff00;
            text-align: center;
            font-size: 1.5rem;
            margin-bottom: 20px;
            text-shadow: 0 0 10px rgba(0,255,0,0.5);
        }
        .filter-list {
            max-height: 380px;
            overflow-y: auto;
            margin-bottom: 25px;
            padding-right: 8px;
            /* 滚动条已全局美化 */
        }
        .filter-item {
            display: flex;
            align-items: center;
            padding: 10px 12px;
            color: white;
            font-size: 1rem;
            background: #3a3a5a;
            border-radius: 10px;
            margin-bottom: 8px;
            transition: all 0.2s ease;
            user-select: none;
        }
        .filter-item:hover {
            background: #4a4a6a;
            transform: translateX(4px);
        }
        .filter-item.active {
            background: #00ff0015;
            border: 1px solid #00ff0055;
        }
        .filter-item input {
            width: 18px;
            height: 18px;
            margin-right: 12px;
            accent-color: #00ff00;
            flex-shrink: 0;
        }
        .filter-item img {
            width: 40px;
            height: 40px;
            object-fit: cover;
            border-radius: 6px;
            margin-right: 12px;
            border: 0px solid #fff3;
            flex-shrink: 0;
        }
        .filter-item .boss-name {
            flex: 1;
        }
        .filter-btns {
            display: flex;
            justify-content: space-between;
            gap: 10px;
        }
        .filter-btns button {
            flex: 1;
            padding: 11px;
            border: none;
            border-radius: 10px;
            font-size: 0.95rem;
            font-weight: bold;
            transition: all 0.3s ease;
        }
        .btn-select-all {
            background: #00ff00;
            color: #111;
        }
        .btn-confirm {
            background: #ff9500;
            color: white;
        }
        .btn-cancel {
            background: #666;
            color: white;
        }

        /* ———— 大卡牌弹窗 ———— */
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0,0,0,0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease;
        }
        .popup-overlay.show {
            opacity: 1;
            visibility: visible;
        }
        .big-card {
            width: 360px;
            height: 500px;
            background: #2a2a3d;
            border-radius: 20px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 0 50px rgba(0,255,0,0.4);
            transform: scale(0.3) rotateY(180deg);
            transition: all 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
            border: 3px solid #00ff00;
        }
        .popup-overlay.show .big-card {
            transform: scale(1) rotateY(0);
        }
        .big-card .name {
            font-size: 1.5rem;
            color: #00ff00;
            font-weight: bold;
            margin-bottom: 20px;
            text-shadow: 0 0 15px rgba(0,255,0,0.6);
        }
        .big-card img {
            max-width: 100%;
            max-height: 380px;
            border-radius: 15px;
        }
        .popup-tip {
            color: #fff;
            margin-top: 20px;
            font-size: 1rem;
            opacity: 0.7;
        }
        .popup-tip a{
            color: #f39e00;
            text-decoration: none;
        }
        .popup-tip a:hover{
            color: #15ff00;
        }