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

body {
    font-family: 'Roboto', sans-serif;
    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: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(90deg, #00dbde 0%, #fc00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

header h1 i {
    margin-right: 15px;
}

.subtitle {
    font-size: 1.2rem;
    color: #a0a0c0;
    font-weight: 300;
}

.app-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .app-container {
        grid-template-columns: 1fr;
    }
}

.control-panel, .countdown-display {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-panel h2, .countdown-display h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #00dbde;
}

.control-panel h2 i, .countdown-display h2 i {
    margin-right: 10px;
}

.datetime-input {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #a0a0c0;
    font-weight: 500;
}

.input-group label i {
    margin-right: 8px;
}

.input-group input {
    padding: 15px;
    border: 2px solid rgba(0, 219, 222, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #00dbde;
    box-shadow: 0 0 15px rgba(0, 219, 222, 0.3);
}

.preset-buttons {
    margin-bottom: 30px;
}

.preset-buttons h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #a0a0c0;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.preset-btn {
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.preset-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #00dbde 0%, #fc00ff 100%);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 219, 222, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 2px solid rgba(0, 219, 222, 0.2);
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-unit.small {
    min-width: 80px;
}

.time-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, #00dbde 0%, #fc00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 219, 222, 0.3);
}

.time-unit.small .time-value {
    font-size: 3rem;
}

.time-label {
    font-size: 1.2rem;
    color: #a0a0c0;
    margin-top: 10px;
    font-weight: 500;
}

.separator {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    color: #00dbde;
    margin-top: -15px;
    font-weight: 900;
}

.progress-container {
    margin: 40px 0;
    position: relative;
}

.progress-bar {
    height: 20px;
    background: linear-gradient(90deg, #00dbde 0%, #fc00ff 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
}

.target-info {
    margin-top: 40px;
}

.target-info h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #00dbde;
}

.target-info h3 i {
    margin-right: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #00dbde;
}

.info-label {
    font-weight: 600;
    color: #a0a0c0;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.info-value {
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    color: white;
    font-size: 1.1rem;
}

.info-value.status {
    color: #00dbde;
    font-weight: 700;
}

.notification {
    margin-top: 30px;
    padding: 15px;
    background: rgba(0, 219, 222, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 219, 222, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification i {
    color: #00dbde;
    font-size: 1.2rem;
}

.instructions {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.instructions h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #00dbde;
}

.instructions h3 i {
    margin-right: 10px;
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #a0a0c0;
    font-size: 1.1rem;
}

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

.server-status {
    margin-top: 10px;
    font-size: 0.8rem;
}

.server-status i {
    margin-right: 5px;
    color: #00dbde;
}

#server-status.connected {
    color: #4CAF50;
}

#server-status.disconnected {
    color: #f44336;
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 1s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .countdown-timer {
        flex-wrap: wrap;
        gap: 10px;
        padding: 20px;
    }
    
    .time-value {
        font-size: 3rem;
    }
    
    .time-unit.small .time-value {
        font-size: 2rem;
    }
    
    .separator {
        font-size: 2.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .preset-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    
    .time-value {
        font-size: 2.5rem;
    }
    
    .separator {
        font-size: 2rem;
    }
    
    .preset-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}