/* 可爱风格CSS */
        :root {
            --pink: #ffb6c1;
            --pink-dark: #ff8fab;
            --purple: #cdb4db;
            --blue: #a2d2ff;
            --yellow: #ffd166;
        }
        
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        body {
            font-family: 'Comic Sans MS', 'Segoe UI', sans-serif;
            background-color: #cfcfcf;
            background-image: url('background.jpg');
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding: 20px;
        }
        
        .container {
            width: 100%;
			margin-right:10%;
			margin-left:10%;
            background-color: #ffffff80;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(255, 182, 193, 0.3);
            position: relative;
            overflow: hidden;
        }
        
        .container::before {
            content: "";
            position: absolute;
            top: -10px;
            left: -10px;
            right: -10px;
            bottom: -10px;
            border-radius: 30px;
            background: linear-gradient(45deg, var(--pink), var(--purple), var(--blue));
            z-index: -1;
            opacity: 0.2;
        }
        
        h1 {
            color: #eb4b9b;
            text-align: center;
            margin-bottom: 30px;
            font-size: 2.5rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
            position: relative;
            display: inline-block;
        }
        
        h1::after {
            content: "";
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
            border-radius: 5px;
        }
        
        .pool-selector {
            margin: 20px 0;
            text-align: center;
        }
        
        select {
            padding: 10px 15px;
            font-size: 1rem;
            border-radius: 50px;
            border: 2px solid var(--pink);
            background-color: white;
            color: #ff6b8b;
            font-weight: bold;
            cursor: pointer;
            outline: none;
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg'  viewBox='0 0 24 24' fill='none' stroke='%23ff6b8b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 10px center;
            background-size: 15px;
            padding-right: 35px;
            transition: all 0.3s;
        }
        
        select:hover {
            border-color: var(--pink-dark);
            box-shadow: 0 0 10px rgba(255, 182, 193, 0.5);
        }
        
        .gacha-controls {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }
        
        button {
            padding: 12px 25px;
            font-size: 1.1rem;
            background: linear-gradient(45deg, var(--pink), var(--pink-dark));
            color: white;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 10px rgba(255, 140, 171, 0.4);
            position: relative;
            overflow: hidden;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        button::before {
            content: "";
            position: absolute;
            top: -10px;
            left: -10px;
            right: -10px;
            bottom: -10px;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transform: translateX(-100%);
            transition: transform 0.6s;
        }
        
        button:hover {
            transform: translateY(-3px);
            box-shadow: 0 7px 15px rgba(255, 140, 171, 0.6);
        }
        
        button:hover::before {
            transform: translateX(100%);
        }
        
        button:active {
            transform: translateY(0);
        }
        
        .result-area {
            min-height: 60px;
            border-radius: 15px;
            background-color: rgba(255, 255, 255, 0.7);
            padding: 20px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
            transition: all 0.3s;
        }
        
        .card {
            width: 250px;
            height: 375px;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            transform-style: preserve-3d;
            cursor: pointer;
        }
        
        .card:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }
        
        .card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }
        
        .card:hover img {
            transform: scale(1.1);
        }
        
        .card-rare {
            border: 3px solid var(--purple);
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.8));
        }
        
        .card-super_rare {
            border: 3px solid var(--yellow);
            background: linear-gradient(135deg, rgba(205, 180, 219, 0.2), rgba(255, 255, 255, 0.8));
            animation: glow 2s infinite alternate;
        }
        
        @keyframes glow {
            from {
                box-shadow: 0 0 10px var(--yellow);
            }
            to {
                box-shadow: 0 0 20px var(--yellow);
            }
        }
        
        .rarity-label {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
            color: white;
            padding: 5px;
            text-align: center;
            font-size: 0.9rem;
            font-weight: bold;
        }
        
        /* 全屏展示样式 */
        .fullscreen-display {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            animation: fadeIn 0.3s;
            cursor: pointer;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .fullscreen-card {
            width: 95%;
            background-color: transparent;
            position: relative;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .fullscreen-card img {
            width: auto;
            height: 90%;
            object-fit: contain;
            animation: cardAppear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        
        @keyframes cardAppear {
            from { 
                transform: scale(0.8);
                opacity: 0;
            }
            to { 
                transform: scale(1);
                opacity: 1;
            }
        }
        
        .card-info {
            position: absolute;
            bottom: 30px;
            right: 30px;
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 10px 15px;
            border-radius: 10px;
            font-size: 2rem;
            text-align: right;
            animation: infoAppear 0.5s 0.3s both;
        }
        
        @keyframes infoAppear {
            from { opacity: 0; transform: translateX(20px); }
            to { opacity: 1; transform: translateX(0); }
        }
        
        .card-rarity {
            color: var(--yellow);
            font-weight: bold;
        }
        
        .card-rarity.super-rare {
            color: var(--purple);
            text-shadow: 0 0 5px var(--purple);
            animation: rarityGlow 1.5s infinite alternate;
        }
        
        @keyframes rarityGlow {
            from { text-shadow: 0 0 5px var(--purple); }
            to { text-shadow: 0 0 10px var(--purple), 0 0 15px var(--purple); }
        }
        
        .click-hint {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(255, 255, 255, 0.2);
            color: white;
            padding: 8px 15px;
            border-radius: 50px;
            font-size: 1rem;
            animation: hintPulse 2s infinite;
        }
        
        @keyframes hintPulse {
            0% { transform: translateX(-50%) scale(1); opacity: 0.7; }
            50% { transform: translateX(-50%) scale(1.05); opacity: 1; }
            100% { transform: translateX(-50%) scale(1); opacity: 0.7; }
        }
        
        .counter {
            position: absolute;
            top: 30px;
            right: 30px;
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 0.9rem;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .container {
                padding: 20px;
            }
            
            h1 {
                font-size: 2rem;
            }
            
            .gacha-controls {
                flex-direction: column;
                align-items: center;
                gap: 15px;
            }
            
            button {
                width: 100%;
                max-width: 250px;
                justify-content: center;
            }
            
            .card {
                width: 100px;
                height: 150px;
            }
            
            .fullscreen-card img {
                height: 70%;
            }
            
            .card-info {
                bottom: 20px;
                right: 20px;
                font-size: 1rem;
            }
            
            .click-hint {
                font-size: 0.9rem;
                bottom: 15px;
            }
        }
        
        @media (max-width: 480px) {
            .container {
                padding: 15px;
				margin-right:0%;
				margin-left:0%;
            }
            
            h1 {
                font-size: 1.8rem;
            }
            
            .card {
                width: 120px;
                height: 180px;
            }
            
            .fullscreen-card img {
                height: 60%;
            }
            
            .card-info {
                bottom: 50px;
                right: 15px;
                font-size: 1.5rem;
                padding: 8px 12px;
            }
            
            .click-hint {
                font-size: 0.8rem;
                bottom: 10px;
            }
        }