/* css/style.css - 抽奖工具样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #ff9a9e, #fad0c4, #fad0c4, #a18cd1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    color: #b0b0d0;
    margin-bottom: 10px;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.lottery-section {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prizes-section {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #6ee7b7;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 1.3rem;
}

.lottery-area {
    margin: 30px 0;
    text-align: center;
}

.lottery-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px 20px;
    margin-bottom: 20px;
    border: 2px dashed rgba(110, 231, 183, 0.3);
    transition: all 0.3s;
}

.lottery-box:hover {
    border-color: rgba(110, 231, 183, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

.lottery-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.lottery-icon {
    font-size: 4rem;
    color: #6ee7b7;
    margin-bottom: 10px;
}

.lottery-box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.lottery-box p {
    color: #b0b0d0;
    font-size: 0.9rem;
}

.lottery-btn {
    display: block;
    width: 100%;
    padding: 18px;
    background: linear-gradient(to right, #6ee7b7, #3b82f6);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(110, 231, 183, 0.4);
}

.lottery-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(110, 231, 183, 0.6);
}

.lottery-btn:disabled {
    background: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.draw-count {
    text-align: center;
    font-size: 1.3rem;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
}

.draw-count span {
    color: #6ee7b7;
    font-weight: bold;
    font-size: 1.8rem;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-group label {
    font-size: 1rem;
    color: #b0b0d0;
}

.form-group input {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s;
    padding-right: 45px;
}

.form-group input:focus {
    outline: none;
    border-color: #6ee7b7;
    box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.2);
}

.submit-btn {
    padding: 15px;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.prizes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.prize-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s;
}

.prize-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.prize-name {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prize-weight {
    color: #6ee7b7;
    font-weight: 600;
}

.draw-result {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    animation: fadeIn 0.5s ease-in;
}

.draw-result h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-content {
    text-align: center;
}

.prize-display {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: bold;
}

.prize-display.grand {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
    border: 2px solid #ffd700;
    color: #ffd700;
}

.prize-display.medium {
    background: rgba(59, 130, 246, 0.2);
    border: 2px solid #3b82f6;
    color: #3b82f6;
}

.prize-display.small {
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid #22c55e;
    color: #22c55e;
}

.prize-display.extra {
    background: rgba(251, 191, 36, 0.2);
    border: 2px solid #fbbf24;
    color: #fbbf24;
}

.prize-display.none {
    background: rgba(107, 114, 128, 0.2);
    border: 2px solid #6b7280;
    color: #6b7280;
}

.prize-display i {
    font-size: 2rem;
}

.result-message {
    font-size: 1.1rem;
    color: #b0b0d0;
}

.result-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.result-content {
    min-height: 100px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-item:last-child {
    border-bottom: none;
}

.result-prize {
    font-weight: 500;
    display: flex;
    align-items: center;
}

.result-time {
    color: #b0b0d0;
    font-size: 0.9rem;
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in;
}

.alert-success {
    background: rgba(110, 231, 183, 0.2);
    border-left: 4px solid #6ee7b7;
    color: #6ee7b7;
}

.alert-error {
    background: rgba(255, 71, 87, 0.2);
    border-left: 4px solid #ff4757;
    color: #ff4757;
}

.alert-warning {
    background: rgba(251, 191, 36, 0.2);
    border-left: 4px solid #fbbf24;
    color: #fbbf24;
}

.alert-info {
    background: rgba(59, 130, 246, 0.2);
    border-left: 4px solid #3b82f6;
    color: #3b82f6;
}

footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0b0d0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .lottery-icon {
        font-size: 3rem;
    }
}

.password-rules {
    font-size: 0.85rem;
    color: #b0b0d0;
    margin-top: 5px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.grand-prize {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
    border-left: 4px solid #ffd700;
}

.medium-prize {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
}

.small-prize {
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid #22c55e;
}

.extra-prize {
    background: rgba(251, 191, 36, 0.1);
    border-left: 4px solid #fbbf24;
}

.no-prize {
    background: rgba(107, 114, 128, 0.1);
    border-left: 4px solid #6b7280;
}

.used-passwords {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #b0b0d0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.used-passwords span {
    color: #fbbf24;
    font-weight: bold;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.loading {
    animation: pulse 1.5s infinite;
}

.error-shake {
    animation: shake 0.5s;
}
