* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2b3a4a 0%, #3a4a5a 100%);
    min-height: 100vh;
    padding: 20px;
}

.main-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.title-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    text-align: center;
}

.title-section h1 {
    color: white;
    font-size: 28px;
    font-weight: bold;
}

.content {
    padding: 25px;
    background: #f8f9fa;
}

.btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-warning {
    background: #FF9800;
    color: white;
}

.btn-warning:hover:not(:disabled) {
    background: #f57c00;
    transform: translateY(-2px);
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #d32f2f;
    transform: translateY(-2px);
}

.btn-info {
    background: #2196F3;
    color: white;
}

.btn-info:hover:not(:disabled) {
    background: #0b7dda;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.status-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.current-word {
    font-size: 32px;
    font-weight: bold;
    color: #2C3E50;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    word-break: break-word;
}

.status-text {
    font-size: 18px;
    color: #5D6D7E;
    margin: 10px 0;
}

.repeat-info {
    font-size: 16px;
    color: #FF9800;
    font-weight: bold;
    margin: 10px 0;
}

.progress-container {
    margin-top: 15px;
}

.progress-bar {
    width: 100%;
    height: 25px;
    background: #E0E0E0;
    border-radius: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.info-bar {
    background: #f0f2f5;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    color: #2C3E50;
    font-weight: bold;
    margin-top: 10px;
}

.add-to-home {
    background: #4CAF50;
    color: white;
    padding: 12px 15px;
    border-radius: 10px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.close-tip {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    text-align: center;
    margin: 20px;
}

.modal-content button {
    margin-top: 20px;
    padding: 10px 30px;
}

/* 手机适配 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .btn-group {
        gap: 8px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .current-word {
        font-size: 24px;
        padding: 15px;
    }
    
    .title-section h1 {
        font-size: 22px;
    }
    
    .content {
        padding: 15px;
    }
    
    .status-card {
        padding: 15px;
    }
    
    .status-text {
        font-size: 14px;
    }
    
    .repeat-info {
        font-size: 14px;
    }
}