* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 800px;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(79, 172, 254, 0.3);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.main-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.power-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1e1e30, #232345);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3),
                inset 0 2px 5px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.power-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(79, 172, 254, 0.8) 0%, rgba(0, 242, 254, 0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.power-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4),
                inset 0 2px 5px rgba(255, 255, 255, 0.1);
}

.power-button:hover::before {
    opacity: 0.5;
}

.power-button i {
    font-size: 3rem;
    color: #4facfe;
    transition: all 0.3s ease;
}

.power-button.active {
    background: linear-gradient(145deg, #232345, #1e1e30);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
                inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.power-button.active i {
    color: #00f2fe;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
}

#statusText {
    font-size: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.current-time {
    font-size: 1.1rem;
    text-align: center;
    color: #4facfe;
    margin-bottom: 15px;
    font-weight: 500;
}

.timer-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.timer-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #4facfe;
}

.timer-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.timer-option {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timer-option:hover {
    background: rgba(79, 172, 254, 0.2);
    transform: translateY(-3px);
}

.timer-option.active {
    background: rgba(79, 172, 254, 0.3);
    border-color: rgba(79, 172, 254, 0.5);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.3);
}

.timer-option.custom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    grid-column: 1 / -1;
}

#customTime {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    text-align: center;
}

#setCustomTime {
    padding: 8px;
    border-radius: 5px;
    border: none;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

#setCustomTime:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.timer-display {
    text-align: center;
}

#timerStatus {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.progress-bar {
    height: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    border-radius: 5px;
    transition: width 1s linear;
}

.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #4facfe;
}

.info-card p {
    line-height: 1.6;
    opacity: 0.8;
}

.footer {
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

.footer a {
    color: #4facfe;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 动画效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(79, 172, 254, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(79, 172, 254, 0);
    }
}

.power-button.active {
    animation: pulse 2s infinite;
}

/* Toast提示框样式 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border-left: 4px solid #4facfe;
}

.toast i {
    font-size: 1.2rem;
}

.toast.toast-error {
    border-left-color: #ff4757;
}

.toast.toast-error i {
    color: #ff4757;
}

.toast.toast-success {
    border-left-color: #2ed573;
}

.toast.toast-success i {
    color: #2ed573;
}

.toast.toast-info i {
    color: #4facfe;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .power-button {
        width: 100px;
        height: 100px;
    }
    
    .power-button i {
        font-size: 2.5rem;
    }
    
    .timer-controls {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .toast-container {
        max-width: 300px;
        top: 10px;
        right: 10px;
    }
}

/* 语言切换按钮样式 */
.language-switch {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: rgba(79, 172, 254, 0.2);
    transform: translateY(-2px);
}

.language-btn i {
    color: #4facfe;
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .power-button {
        width: 80px;
        height: 80px;
    }
    
    .power-button i {
        font-size: 2rem;
    }
    
    .timer-controls {
        grid-template-columns: 1fr;
    }
    
    .info-section {
        grid-template-columns: 1fr;
    }
    
    .language-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}
    
    .toast-container {
        max-width: 280px;
        top: 10px;
        right: 10px;
        left: 10px;
        margin: 0 auto;
    }
    
    .toast {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
/* 移动设备适配样式结束 */
