/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #8BC6EC 0%, #9599E2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
    transition: all 0.3s ease;
    font-size: 16px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    flex: 1;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    letter-spacing: 2px;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 版本选择器 */
.version-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
}

/* VIP提示样式 */
.vip-tip {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    animation: pulse 2s infinite, float 3s ease-in-out infinite;
    z-index: 10;
    white-space: nowrap;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

@keyframes float {
    0% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-5px); }
    100% { transform: translateX(-50%) translateY(0px); }
}

.version-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #555;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.version-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.version-btn:hover::before {
    left: 100%;
}

.version-btn.active {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 117, 252, 0.4);
    font-weight: bold;
}

.version-btn:hover:not(.active) {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.95));
}

.vip-tag {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    transform: rotate(5deg);
    white-space: nowrap;
    z-index: 2;
    min-width: 60px;
    text-align: center;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
    animation: vip-pulse 2s infinite;
}

@keyframes vip-pulse {
    0% { box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); }
    50% { box-shadow: 0 3px 15px rgba(255, 215, 0, 0.6); }
    100% { box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); }
}

/* 游戏容器 */
.game-container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    margin-bottom: 40px;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }
    to {
        box-shadow: 0 20px 40px rgba(106, 17, 203, 0.3);
    }
}

/* 游戏类型选择器 */
.game-type-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 20px;
}

.type-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    background-color: #f0f2f5;
    color: #555;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.type-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.type-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.type-btn.active {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(37, 117, 252, 0.3);
    font-weight: bold;
}

.type-btn.active::after {
    transform: scaleX(1);
}

.type-btn:hover:not(.active) {
    background-color: #e4e6e9;
    transform: translateY(-2px);
}

/* 问题容器 */
.question-container {
    text-align: center;
}

.question-card {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 40px 30px;
    margin-bottom: 30px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-left: 5px solid #6a11cb;
}

.question-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 4rem;
    color: rgba(106, 17, 203, 0.1);
    font-family: serif;
}

.question-card::after {
    content: '"';
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 4rem;
    color: rgba(106, 17, 203, 0.1);
    font-family: serif;
}

#question-text {
    font-size: 1.5rem;
    line-height: 1.7;
    color: #444;
    font-weight: 500;
    z-index: 1;
}

.action-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(37, 117, 252, 0.3);
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 20px rgba(37, 117, 252, 0.4);
    letter-spacing: 1.5px;
}

.action-btn:active {
    transform: translateY(1px);
    box-shadow: 0 5px 10px rgba(37, 117, 252, 0.4);
}

/* VIP容器 */
.vip-container {
    /* background-color: rgba(255, 255, 255, 0.95); */
    background-color: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    text-align: center;
    display: none;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    position: relative;
    overflow: hidden;
}

.vip-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, rgba(255,255,255,0) 70%); */
    animation: rotate 15s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vip-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.vip-info h2 {
    margin-bottom: 30px;
    color: #6a11cb;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}

.vip-info h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    transform: translateX(-50%);
}

.vip-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.vip-option {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px 25px;
    width: 300px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(106, 17, 203, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

.vip-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.vip-option:hover::before {
    transform: scaleX(1);
}

.vip-option:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(106, 17, 203, 0.3);
}

.vip-option[data-vip="gold"]::before {
    background: linear-gradient(90deg, #FFD700, #FFA500);
}


.vip-option[data-vip="diamond"]::before {
    background: linear-gradient(90deg, #B9F2FF, #00BFFF);
}

.vip-option[data-vip="discount"]::before {
    background: linear-gradient(90deg, #00C853, #69F0AE);
}

.vip-option h3 {
    margin-bottom: 15px;
    color: #444;
    font-size: 1.4rem;
    font-weight: 600;
}

.vip-price {
    background-color: #ffc107;
    color: #333;
    font-size: 0.9rem;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 10px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
}

.original-price {
    font-size: 0.9rem;
    color: #888;
    margin-right: 5px;
    text-decoration: line-through;
}

.discount-tag {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: bold;
    animation: pulse 1.5s infinite;
    display: inline-block;
    vertical-align: middle;
}

.discount-tag1 {
    /* background: linear-gradient(135deg, #ff416c, #ff4b2b); */
    background: linear-gradient(135deg, #00C853, #69F0AE);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: bold;
    animation: pulse 1.5s infinite;
    display: inline-block;
    vertical-align: middle;
}

.vip-option[data-vip="gold"] .vip-price {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    /* color: #333; */
}

.vip-option[data-vip="novip"] .vip-price {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    /* color: #333; */
    color: white;
}

.vip-option[data-vip="diamond"] .vip-price {
    background: linear-gradient(90deg, #B9F2FF, #00BFFF);
    color: #333;
}

.vip-option[data-vip="discount"] .vip-price {
    background: linear-gradient(90deg, #00C853, #69F0AE);
    color: #333;
}

.vip-option p {
    margin-bottom: 25px;
    color: #666;
    font-size: 1.05rem;
}

.activate-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(37, 117, 252, 0.3);
    font-weight: 600;
    align-self: center;
    width: 80%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.activate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: 1;
}

.activate-btn:hover::before {
    left: 100%;
}

.vip-option[data-vip="gold"] .activate-btn {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    color: #333;
}

.vip-option[data-vip="diamond"] .activate-btn {
    background: linear-gradient(90deg, #B9F2FF, #00BFFF);
    color: #333;
}

.vip-option[data-vip="discount"] .activate-btn {
    background: linear-gradient(90deg, #00C853, #69F0AE);
    color: #333;
}

.activate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(37, 117, 252, 0.4);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 20px 0;
    box-sizing: border-box;
}

.modal-content {
    background-color: white;
    border-radius: 20px;
    padding: 40px 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    animation: modalOpen 0.4s forwards;
    margin: auto;
    overflow-x: hidden;
    word-wrap: break-word;
}

@keyframes modalOpen {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease, transform 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: #333;
    transform: rotate(90deg);
    background-color: #f5f5f5;
}

.modal h2 {
    margin-bottom: 25px;
    color: #6a11cb;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
}

.input-group {
    margin: 25px 0;
    display: flex;
    gap: 10px;
}

.input-group input, .input-group select {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.input-group input:focus, .input-group select:focus {
    border-color: #6a11cb;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.2);
    outline: none;
}

.input-group button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(37, 117, 252, 0.3);
    font-weight: 600;
}

.input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 117, 252, 0.4);
}

#activation-message {
    margin-top: 15px;
    font-weight: bold;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

#activation-message.error {
    color: #f44336;
    background-color: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #f44336;
    animation: shake 0.5s ease-in-out;
}

#activation-message.success {
    color: #4caf50;
    background-color: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4caf50;
    animation: pulse 1s ease-in-out;
}

#activation-step-1 p {
    margin-bottom: 10px;
    color: #555;
}

#activation-step-2 {
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

#activation-step-2 p {
    margin-bottom: 15px;
    color: #4caf50;
    font-size: 1.2rem;
    font-weight: 600;
    word-break: break-word;
}

#activation-complete {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(90deg, #00C853, #69F0AE);
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 200, 83, 0.3);
    margin-top: 20px;
    font-weight: 600;
}

#activation-complete:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 200, 83, 0.4);
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.9);
    margin-top: auto;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

footer p {
    color: #666;
    font-size: 1rem;
}

footer a {
    color: #6a11cb;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #2575fc;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }
    
    .version-btn, .type-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .vip-tip {
        bottom: -20px;
        font-size: 0.85rem;
        padding: 6px 12px;
        width: 90%;
        max-width: 300px;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }
    
    .game-container, .vip-container {
        padding: 25px 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .question-card {
        padding: 30px 20px;
        min-height: 150px;
    }
    
    #question-text {
        font-size: 1.2rem;
    }
    
    .action-btn {
        padding: 12px 25px;
        font-size: 1.1rem;
    }
    
    .vip-options {
        gap: 20px;
        width: 100%;
        justify-content: center;
    }
    
    .vip-option {
        width: 100%;
        max-width: 300px;
    }
    
    .modal-content {
        width: 90%;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .version-selector, .game-type-selector {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
        margin-bottom: 45px;
    }
    
    .vip-tip {
        bottom: -35px;
        font-size: 0.8rem;
        padding: 5px 10px;
        width: 95%;
        max-width: 250px;
    }
    
    .version-btn, .type-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .question-card {
        min-height: 120px;
    }
    
    #question-text {
        font-size: 1.1rem;
    }
    
    .action-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .vip-container {
        width: 100%;
        max-width: 100%;
        padding: 20px 15px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .vip-options {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .vip-option {
        width: 100%;
        max-width: 280px;
    }
    
    .modal {
        padding: 10px;
        box-sizing: border-box;
    }
    
    .modal-content {
        width: 95%;
        max-width: 350px;
        padding: 25px 15px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .input-group input, .input-group button {
        width: 100%;
    }
}