* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

.left-codes-info {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#left-codes-count {
    font-size: 24px;
    transition: all 0.3s ease;
}

.message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    font-size: 15px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.code-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    color: white;
}

.code-label {
    font-size: 16px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.code-value {
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 3px;
    margin: 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    word-break: break-all;
}

.warning {
    font-size: 13px;
    margin-top: 15px;
    opacity: 0.9;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
}

.btn-get-code {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    font-weight: bold;
    letter-spacing: 1px;
}

.btn-get-code:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-get-code:active:not(:disabled) {
    transform: translateY(0);
}

.btn-get-code:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-get-code.disabled {
    background: #999;
    cursor: not-allowed;
}

.btn-copy-code {
    background: rgba(255, 255, 255, 0.95);
    color: #5a4fcf;
    border: none;
    padding: 10px 24px;
    font-size: 15px;
    border-radius: 999px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-copy-code:hover {
    transform: translateY(-1px);
    background: white;
}

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

/* 响应式设计 */
@media (max-width: 600px) {
    .card {
        padding: 30px 20px;
    }

    h1 {
        font-size: 26px;
    }

    .code-value {
        font-size: 28px;
    }

    .btn-get-code {
        padding: 15px 40px;
        font-size: 16px;
    }
}
