/* 学术发展规划评估系统 - 专业版样式 */

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --success: #27ae60;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 20px;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* 页面 */
.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

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

/* 卡片 */
.card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 40px;
    margin-bottom: 30px;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

/* 标题 */
.header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header .subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 300;
}

/* 表单 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* 按钮 */
.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    width: 100%;
    margin-top: 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

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

.btn-secondary {
    background: white;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* 测试页面 */
.quiz-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.quiz-header h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    flex: 1;
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, var(--secondary), #2980b9);
    height: 100%;
    transition: width 0.3s ease;
}

#kolbCounter, #miCounter {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 60px;
}

.question-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.question-card h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 500;
}

/* Kolb 选项 */
.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    display: flex;
    align-items: flex-start;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.option-btn:hover {
    border-color: var(--secondary);
    background: #e8f4f8;
}

.option-btn.selected {
    border-color: var(--secondary);
    background: #e8f4f8;
}

.option-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 1rem;
}

.option-text {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* MI 评分 */
.rating-options {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.rating-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-btn:hover {
    border-color: var(--secondary);
    background: #e8f4f8;
}

.rating-btn.selected {
    border-color: var(--secondary);
    background: #e8f4f8;
}

.rating-emoji {
    font-size: 2rem;
    margin-bottom: 5px;
}

.rating-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* 提交页面 */
.confirmation-box {
    background: var(--bg-light);
    border-left: 4px solid var(--secondary);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.confirmation-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.confirmation-label {
    color: var(--text-muted);
    font-weight: 500;
}

.confirmation-value {
    color: var(--text-dark);
    font-weight: 600;
}

.privacy-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #856404;
}

/* 成功页面 */
.success-card {
    text-align: center;
    padding: 60px 40px;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.success-card h2 {
    color: var(--success);
    font-size: 2rem;
    margin-bottom: 15px;
}

.success-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.email-display {
    background: var(--bg-light);
    padding: 15px 25px;
    border-radius: 8px;
    display: inline-block;
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 30px;
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* 结果页面样式 */
.info-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.section {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.strategy-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.strategy-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.strategy-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: 5px;
}

.strategy-item p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.info-item {
    text-align: center;
    padding: 25px 20px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.info-item h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.info-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 响应式 */
@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 25px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .rating-options {
        flex-wrap: wrap;
    }
    
    .rating-btn {
        flex: 0 0 calc(50% - 5px);
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
