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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 414px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* 启动页样式 */
#splash {
    display: flex;
    align-items: center;
    justify-content: center;
}

#splash .container {
    text-align: center;
}

.app-title {
    font-size: 2.5rem;
    color: #4361EE;
    margin-bottom: 10px;
    font-weight: bold;
}

.app-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

/* 通用页面样式 */
.page-title {
    font-size: 1.5rem;
    color: #4361EE;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.page-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

/* 按钮样式 */
.primary-btn {
    background: linear-gradient(135deg, #4361EE 0%, #3A0CA3 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
    transition: all 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.6);
}

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

.secondary-btn {
    background: white;
    color: #4361EE;
    border: 2px solid #4361EE;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: #4361EE;
    color: white;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4361EE;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.radio-group input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #4361EE;
}

/* 科目选择样式 */
.subject-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.subject-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subject-item:hover {
    background: #e0e0e0;
}

.subject-item.required {
    background: #e3f2fd;
    border: 2px solid #4361EE;
}

.subject-item input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: #4361EE;
}

/* 自评阶段样式 */
.eval-progress {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #4361EE;
}

.eval-question {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
    color: #555;
}

.eval-scale {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.eval-scale label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.eval-scale label:hover {
    background: #e0e0e0;
}

.eval-scale input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #4361EE;
}

.eval-buttons {
    display: flex;
    gap: 10px;
}

/* 微型测试样式 */
.test-progress {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4361EE 0%, #FF6B6B 100%);
    transition: width 0.3s ease;
}

.test-progress span {
    display: block;
    text-align: center;
    font-weight: bold;
    color: #4361EE;
}

#testQuestion {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #333;
}

.test-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.test-options label {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-options label:hover {
    background: #e0e0e0;
}

.option-label {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #4361EE;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    margin-right: 10px;
    flex-shrink: 0;
}

.test-options input[type="radio"] {
    display: none;
}

.test-options input[type="radio"]:checked + .option-label {
    background: #FF6B6B;
}

.test-buttons {
    display: flex;
    gap: 10px;
}

/* 报告样式 */
.report-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.report-section h3 {
    color: #4361EE;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.chart-container {
    width: 100%;
    height: 300px;
}

.priority-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.priority-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.priority-rank {
    width: 30px;
    height: 30px;
    background: #FF6B6B;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    margin-right: 15px;
}

.priority-subject {
    font-weight: bold;
    color: #333;
}

.gap-analysis {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.study-plan {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.plan-phase {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.plan-phase h4 {
    color: #FF6B6B;
    margin-bottom: 10px;
}

.province-tips.gap-analysis {
    background: white;
    padding: 20px;
    border-radius: 10px;
    line-height: 1.6;
}

.target-school {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4361EE;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f4ff;
}

/* 微信转化样式 */
.wechat-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.qrcode {
    width: 250px;
    height: 250px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 二维码图片样式 */
.qrcode-image {
    width: 200px;  /* 二维码宽度，可根据需要调整 */
    height: 200px; /* 二维码高度，与宽度保持一致 */
    border-radius: 20px; /* 可选：圆角效果 */
    object-fit: cover; /* 确保图片按比例显示 */
}

.qrcode-placeholder {
    width: 200px;
    height: 200px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
    border-radius: 5px;
}

.wechat-info {
    text-align: center;
    color: #555;
}

.wechat-text {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 微信号复制区域样式 */
.wechat-copy-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.wechat-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4361EE;
    background: #f0f4ff;
    padding: 8px 15px;
    border-radius: 8px;
    border: 2px solid #4361EE;
}

.copy-btn {
    padding: 8px 20px;
    background: #4361EE;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(67, 97, 238, 0.3);
}

.copy-btn:hover {
    background: #3A0CA3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.5);
}

.copy-btn:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 414px) {
    .container {
        padding: 15px;
    }
    
    .app-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 1.3rem;
    }
    
    .subject-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .qrcode {
        width: 200px;
        height: 200px;
    }
    
    .qrcode-placeholder {
        width: 160px;
        height: 160px;
    }
}

/* 营销语样式 */
.marketing-slogans {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.slogan-item {
    font-size: 1.1rem;
    font-weight: bold;
    color: #4361EE;
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(67, 97, 238, 0.05) 100%);
    border-radius: 10px;
    border-left: 4px solid #4361EE;
    transition: all 0.3s ease;
    animation: breathe 3s ease-in-out infinite;
}

.slogan-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.15);
}

/* 呼吸动画 */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.02);
        opacity: 1;
    }
}

/* 增加页面呼吸感 */
.container {
    padding: 40px 20px;
}

.app-title {
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.app-subtitle {
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.8;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page.active {
    animation: fadeIn 0.5s ease;
}