/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.app-container {
    min-height: 100vh;
    max-width: 100%;
    margin: 0 auto;
    background: #f5f7fa;
}

/* 头部样式 */
.app-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.app-header h1 {
    font-size: 18px;
    font-weight: 600;
}

/* 主内容区域 */
.app-main {
    padding: 15px;
    min-height: calc(100vh - 120px);
}

/* 底部样式 */
.app-footer {
    background: #fff;
    padding: 15px;
    text-align: center;
    color: #666;
    border-top: 1px solid #eee;
    font-size: 12px;
}

/* 页面通用样式 */
.page {
    max-width: 100%;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 表单容器 */
.form-container {
    background: white;
    border-radius: 12px;
    padding: 25px 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header-section {
    text-align: center;
    margin-bottom: 30px;
}

.form-title {
    color: #409EFF;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-subtitle {
    color: #666;
    font-size: 14px;
}

/* 表单区域 */
.form-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

/* 性别选择 */
.gender-selection {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.gender-option {
    flex: 1;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.gender-option:hover {
    border-color: #409EFF;
}

.gender-option.selected {
    border-color: #409EFF;
    background: #ecf5ff;
}

.radio-input {
    display: none;
}

.gender-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.gender-label {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* 年龄段选择 */
.age-selection {
    margin: 15px 0;
}

.age-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease;
}

.age-select:focus {
    border-color: #409EFF;
}

/* 按钮区域 */
.action-section {
    margin-top: 30px;
    text-align: center;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #409EFF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover:not(:disabled) {
    background: #66b1ff;
}

.submit-btn:disabled {
    background: #c0c4cc;
    cursor: not-allowed;
}

.btn-hint {
    color: #f56c6c;
    font-size: 12px;
    margin-top: 8px;
    display: none;
}

/* 进度条样式 */
.progress {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #409EFF, #67C23A);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    position: absolute;
    right: 10px;
    top: -25px;
    font-size: 12px;
    color: #666;
}

/* 题目容器 */
.question-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.question-container h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 16px;
}

.question-image {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.question-image img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
}

/* 选项容器 */
.options-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

/* 选项项样式 */
.option-item {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.option-item:hover {
    border-color: #409EFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.2);
}

.option-item.selected {
    border-color: #409EFF;
    background: #ecf5ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
    position: relative;
}

/* 选中标记 */
.option-item.selected::after {
    content: "✓";
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: #409EFF;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 选项图片样式 */
.option-item img {
    max-width: 100%;
    max-height: 50px; /* 缩小图片高度 */
    border-radius: 4px;
    transition: all 0.3s ease;
}

.option-item.selected img {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .options-container {
        gap: 8px;
    }

    .option-item {
        padding: 6px;
        min-height: 70px;
    }

    .option-item img {
        max-height: 45px;
    }

    .option-item.selected::after {
        width: 18px;
        height: 18px;
        font-size: 10px;
        top: -6px;
        right: -6px;
    }
}

@media (max-width: 480px) {
    .options-container {
        gap: 6px;
    }

    .option-item {
        padding: 5px;
        min-height: 65px;
    }

    .option-item img {
        max-height: 40px;
    }

    .option-item.selected::after {
        width: 16px;
        height: 16px;
        font-size: 9px;
        top: -5px;
        right: -5px;
    }
}

/* 导航按钮 */
.navigation {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.navigation button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navigation button:first-child {
    background: #909399;
    color: white;
}

.navigation button:first-child:hover:not(:disabled) {
    background: #a6a9ad;
}

.navigation button:last-child {
    background: #409EFF;
    color: white;
}

.navigation button:last-child:hover:not(:disabled) {
    background: #66b1ff;
}

.navigation button:disabled {
    background: #c0c4cc;
    cursor: not-allowed;
}

.submit-btn {
    background: #67C23A !important;
}

.submit-btn:hover:not(:disabled) {
    background: #85ce61 !important;
}

/* 解锁页面样式 */
.unlock-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.completion-header {
    text-align: center;
    margin-bottom: 30px;
}

.completion-header h1 {
    color: #409EFF;
    margin-bottom: 10px;
    font-size: 24px;
}

.completion-header p {
    color: #666;
    font-size: 16px;
}

.report-summary h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-size: 18px;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item .label {
    color: #666;
}

.summary-item .value {
    color: #333;
    font-weight: 500;
}

.intelligence-index {
    margin: 25px 0;
}

.index-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.status-locked {
    color: #ff6b6b;
    font-weight: 500;
}

.unlock-price {
    text-align: center;
    margin: 30px 0;
    padding: 25px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.price-amount {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
}

.price-desc {
    font-size: 14px;
    opacity: 0.9;
}

.unlock-actions {
    margin-top: 25px;
}

.unlock-btn {
    width: 100%;
    padding: 16px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.unlock-btn:hover {
    background: #ff5252;
}

.payment-tips {
    text-align: center;
    margin-top: 20px;
    color: #999;
    font-size: 12px;
}

/* 结果页面样式 */
.basic-info h1 {
    color: #409EFF;
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.info-item .label {
    color: #666;
}

.info-item .value {
    color: #333;
    font-weight: 500;
}

/* 分数显示 */
.score-display {
    text-align: center;
    margin: 25px 0;
}

.total-score {
    margin-bottom: 20px;
}

.score-label {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.score-value {
    font-size: 48px;
    font-weight: bold;
    color: #409EFF;
    margin: 0 5px;
}

.score-total {
    font-size: 20px;
    color: #999;
}

.iq-score-display {
    margin: 15px 0;
}

.iq-label {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.iq-value {
    font-size: 36px;
    font-weight: bold;
    color: #ff6b6b;
}

.level-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    color: white;
    font-weight: 500;
    margin-top: 15px;
    font-size: 14px;
}

.level-excellent { background: #67C23A; }
.level-good { background: #409EFF; }
.level-average { background: #E6A23C; }
.level-below-average { background: #F56C6C; }
.level-poor { background: #909399; }

.standard-score {
    text-align: center;
    color: #666;
    font-size: 16px;
}

.standard-score strong {
    color: #409EFF;
}

/* 得分解读 */
.interpretation-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.interpretation-content strong {
    color: #409EFF;
}

.result-note {
    color: #a7a1a1 !important;
    font-size: 14px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* 能力维度分析 */
.dimension-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.dimension-section:last-child {
    border-bottom: none;
}

.dimension-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.dimension-title {
    color: #409EFF;
    font-size: 16px;
    font-weight: 500;
}

.dimension-score-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dimension-score-display .score {
    color: #333;
    font-weight: 500;
}

.level-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.level-high { background: #67C23A; }
.level-中 { background: #E6A23C; }
.level-low { background: #F56C6C; }

.dimension-description p {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #555;
}

/* 统计区域 */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
    padding: 15px 10px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
}

.stat-item.correct { background: #67C23A; }
.stat-item.wrong { background: #F56C6C; }
.stat-item.unanswered { background: #E6A23C; }
.stat-item.accuracy { background: #409EFF; }

.stat-count {
    display: block;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
}
/* 得分建议样式 */
.score-suggestions {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.suggestions-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    padding: 2px;
    background: #f8f9fa;
    border-radius: 6px;
    /* border-left: 4px solid #409EFF; */
    flex-direction: column;
}

.suggestion-icon {
    margin-right: 10px;
    font-size: 16px;
}

.suggestion-text {
    flex: 1;
    color: #333;
    line-height: 1.5;
    margin-top: 20px;
}

/* 题目列表 */
.questions-list {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 20px;
}

.question-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin: 8px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    border: 1px solid transparent;
}

.question-item.correct {
    background: #f0f9ff;
    border-color: #b3e19d;
}

.question-item.wrong {
    background: #fef0f0;
    border-color: #fab6b6;
}

.question-item.unanswered {
    background: #f4f4f5;
    border-color: #d3d4d6;
}

.question-item:hover {
    background: #ecf5ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.1);
}

.question-number {
    color: #333;
    font-weight: 500;
}

.question-status span {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-correct {
    background: #67C23A;
    color: white;
}

.status-wrong {
    background: #F56C6C;
    color: white;
}

.status-unanswered {
    background: #909399;
    color: white;
}

.question-score {
    color: #409EFF;
    font-weight: 500;
}

/* 操作按钮 */
.action-buttons {
    text-align: center;
    margin-top: 30px;
}

.btn-download {
    background: #409EFF;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 20px;
}

.btn-download:hover {
    background: #66b1ff;
}

.phone-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.phone-section h3 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    font-size: 16px;
}

.phone-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.phone-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.phone-input:focus {
    border-color: #409EFF;
}

.btn-save {
    background: #67C23A;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-save:hover {
    background: #85ce61;
}

.phone-tips {
    color: #999;
    font-size: 12px;
    text-align: center;
}

/* 模态框样式 */
.question-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    width: 100%;
}

.modal-content h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-size: 18px;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-body .question-image {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-body .question-image img {
    max-width: 100%;
    max-height: 150px;
}

.options-section h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

/* 选项网格布局 - 一行两个 */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 15px 0;
}

.options-grid .option-item {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 120px;
}

.options-grid .option-item:hover {
    border-color: #409EFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.2);
}

.options-grid .option-item.user-selected {
    border-color: #409EFF;
    background: #ecf5ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
}

.options-grid .option-item.correct-option {
    border-color: #67C23A;
    background: #f0f9eb;
}

.options-grid .option-item.user-selected.correct-option {
    border-color: #67C23A;
    background: #f0f9eb;
    box-shadow: 0 4px 12px rgba(103, 194, 58, 0.3);
}

.option-label {
    display: block;
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: 500;
}

.option-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.option-image img {
    max-width: 100%;
    max-height: 60px;
    border-radius: 4px;
}

.option-indicators {
    margin-top: 8px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.user-answer, .correct-answer {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    color: white;
}

.user-answer {
    background: #409EFF;
}

.correct-answer {
    background: #67C23A;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .options-grid .option-item {
        padding: 10px;
        min-height: 110px;
    }

    .option-image img {
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .options-grid .option-item {
        padding: 8px;
        min-height: 100px;
    }

    .option-image img {
        max-height: 45px;
    }

    .option-label {
        font-size: 11px;
    }

    .user-answer, .correct-answer {
        font-size: 9px;
        padding: 1px 4px;
    }
}

.answer-comparison {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.answer-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.answer-item:last-child {
    margin-bottom: 0;
}

.answer-label {
    color: #666;
}

.answer-value {
    font-weight: 500;
}

.answer-value.correct {
    color: #67C23A;
}

.answer-value.unanswered {
    color: #E6A23C;
}

.result-indicator {
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-weight: 500;
    margin-top: 15px;
}

.result-indicator.correct {
    background: #f0f9eb;
    color: #67C23A;
    border: 1px solid #e1f3d8;
}

.result-indicator.wrong {
    background: #fef0f0;
    color: #F56C6C;
    border: 1px solid #fde2e2;
}

.btn-close {
    width: 100%;
    padding: 12px;
    background: #909399;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-close:hover {
    background: #a6a9ad;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .app-main {
        padding: 10px;
    }

    .form-container {
        margin: 10px 0;
        padding: 20px 15px;
    }
    .options-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 15px 0;
    }


    .summary-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .gender-selection {
        flex-direction: column;
    }

    .dimension-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dimension-score-display {
        margin-top: 10px;
    }

    .navigation {
        flex-direction: column;
    }

    .phone-input-group {
        flex-direction: column;
    }

    .modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
}

@media (max-width: 480px) {
    .form-title {
        font-size: 20px;
    }

    .score-value {
        font-size: 36px;
    }

    .iq-value {
        font-size: 28px;
    }

    .question-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}