/* 全局样式 */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #6b7280;
    --secondary-hover: #4b5563;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --bg-color: #f9fafb;
    --card-bg: rgba(255, 255, 255, 0.7);
    --text-color: #1f2937;
    --border-color: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #6366f1 0%, #2563eb 100%);
    padding: 20px;
}

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

/* 毛玻璃卡片效果 */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 25px var(--shadow-color);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.app-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.app-header p {
    color: var(--secondary-color);
    font-size: 16px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.form-group input::placeholder {
    color: var(--secondary-color);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: white;
}

.btn i {
    font-size: 18px;
}

.primary-btn {
    background-color: var(--primary-color);
    width: 100%;
}

.primary-btn:hover {
    background-color: var(--primary-hover);
}

.secondary-btn {
    background-color: var(--secondary-color);
}

.secondary-btn:hover {
    background-color: var(--secondary-hover);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 恢复选项部分 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.welcome-text {
    font-size: 16px;
    color: var(--secondary-color);
    margin-right: auto;
    margin-left: 20px;
}

.options-container {
    margin-top: 20px;
}

/* 信息面板 */
.info-panel {
    margin-top: 30px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.info-header {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--info-color);
}

.info-header i {
    margin-right: 8px;
}

.info-panel ul {
    list-style-type: disc;
    padding-left: 20px;
}

.info-panel li {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-color);
}

.info-panel li:last-child {
    margin-bottom: 0;
}

/* 加载遮罩层 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid white;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: white;
    font-size: 18px;
    font-weight: 500;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    background-color: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(calc(100% + 24px));
    transition: transform 0.3s ease;
    z-index: 1001;
}

.notification.visible {
    transform: translateX(0);
}

.notification-icon {
    margin-right: 16px;
    font-size: 24px;
}

.notification-icon.success i {
    color: var(--success-color);
}

.notification-icon.error i {
    color: var(--error-color);
}

.notification-icon.warning i {
    color: var(--warning-color);
}

.notification-icon.info i {
    color: var(--info-color);
}

.notification-content p {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

/* 响应式调整 */
@media (max-width: 640px) {
    .glass-card {
        padding: 24px;
        border-radius: 16px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .app-header h1 {
        font-size: 24px;
    }
}

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

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