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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(180deg, #FFF5E6 0%, #FFFFFF 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

#app {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    background: #FFFFFF;
    position: relative;
}

.page {
    display: none;
    min-height: 100vh;
    padding-bottom: 80px;
}

.page.active {
    display: block;
}

.status-bar {
    height: 44px;
    padding: 12px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
}

.status-bar-left {
    font-weight: 500;
}

.home-page {
    padding: 20px 24px;
    text-align: center;
    background: linear-gradient(180deg, #FFF5E6 0%, #FFFFFF 60%);
}

.home-hero {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.home-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #FFB347 0%, #FF6B6B 100%);
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.home-title {
    font-size: 26px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 12px;
}

.home-desc {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 32px;
}

.start-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 48px;
    border-radius: 32px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.start-btn:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.course-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.course-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.course-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FFB347 0%, #FF6B6B 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.course-icon span {
    color: white;
    font-weight: 600;
}

.course-title {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
}

.course-info {
    font-size: 13px;
    color: #666666;
    line-height: 1.8;
}

.course-info p {
    margin-bottom: 6px;
}

.question-page {
    padding: 16px 20px 80px;
}

.question-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.back-btn {
    width: 36px;
    height: 36px;
    background: #F5F5F5;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #666;
}

.progress-info {
    flex: 1;
    text-align: center;
    margin: 0 12px;
}

.progress-text {
    font-size: 12px;
    color: #FF6B6B;
    margin-bottom: 8px;
}

.progress-num {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
}

.progress-num span {
    font-size: 14px;
    font-weight: 400;
    color: #FF6B6B;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 107, 107, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B6B 0%, #FF8E53 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.question-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.question-num {
    font-size: 14px;
    color: #FF6B6B;
    margin-bottom: 12px;
}

.question-text {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    line-height: 1.5;
    margin-bottom: 18px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.option {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: #F8F8F8;
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.option:active {
    transform: scale(0.98);
}

.option.selected {
    background: rgba(255, 107, 107, 0.1);
    border-color: #FF6B6B;
}

.option-key {
    width: 32px;
    height: 32px;
    background: #FFFFFF;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #666666;
    margin-right: 10px;
    flex-shrink: 0;
}

.option.selected .option-key {
    background: #FF6B6B;
    color: #FFFFFF;
}

.option-text {
    font-size: 14px;
    color: #333333;
    line-height: 1.4;
}

.next-btn {
    width: 100%;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 600;
    padding: 15px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
}

.next-btn:disabled {
    background: #CCCCCC;
    box-shadow: none;
    cursor: not-allowed;
}

.home-indicator {
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background: #000000;
    border-radius: 3px;
    opacity: 0.2;
}

.result-page {
    padding: 24px 20px;
    text-align: center;
}

.result-header {
    margin-bottom: 32px;
}

.result-score-circle {
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #FFB347 0%, #FF6B6B 100%);
    border-radius: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.result-score {
    font-size: 48px;
    font-weight: 700;
    color: #FFFFFF;
}

.result-score-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.result-title {
    font-size: 24px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 12px;
}

.result-desc {
    font-size: 14px;
    color: #666666;
    line-height: 1.8;
    text-align: left;
    background: #F8F8F8;
    padding: 20px;
    border-radius: 12px;
    margin-top: 24px;
}

.suggestions {
    text-align: left;
    margin-top: 24px;
}

.suggestions-title {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 16px;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 16px;
    background: #FFF5E6;
    border-radius: 12px;
}

.suggestion-icon {
    width: 24px;
    height: 24px;
    background: #FF6B6B;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.suggestion-icon span {
    color: white;
    font-size: 12px;
}

.suggestion-text {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

.retest-btn {
    margin-top: 32px;
    background: #FFFFFF;
    color: #FF6B6B;
    border: 2px solid #FF6B6B;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #F5F5F5;
    border-top-color: #FF6B6B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    margin-top: 16px;
    font-size: 14px;
    color: #666666;
}

.error-msg {
    padding: 20px;
    text-align: center;
    color: #FF6B6B;
    font-size: 14px;
}

.decorative-circles {
    position: absolute;
    top: 100px;
    right: 0;
    width: 100px;
    height: 200px;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.2);
}

.circle:nth-child(1) {
    width: 60px;
    height: 60px;
    top: 0;
    right: 20px;
}

.circle:nth-child(2) {
    width: 40px;
    height: 40px;
    top: 80px;
    right: 60px;
}

.circle:nth-child(3) {
    width: 30px;
    height: 30px;
    top: 140px;
    right: 30px;
}

/* 新结果页面样式 */
.result-page-new {
    padding: 20px 16px 100px;
    background: linear-gradient(180deg, #FFF5E6 0%, #FFFFFF 100%);
}

.report-header {
    text-align: center;
    margin-bottom: 24px;
}

.report-title {
    font-size: 28px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 8px;
}

.report-subtitle {
    font-size: 14px;
    color: #666666;
}

.section {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #FF6B6B 0%, #FFB347 100%);
    border-radius: 2px;
    margin-right: 10px;
}

.total-score-container {
    text-align: center;
    margin-bottom: 20px;
}

.total-score-label {
    font-size: 16px;
    color: #666666;
    margin-bottom: 8px;
}

.total-score-value {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #FF6B6B 0%, #FFB347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.radar-chart-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.radar-chart {
    width: 280px;
    height: 280px;
}

.dimensions-table {
    width: 100%;
    border-collapse: collapse;
}

.dimensions-table th,
.dimensions-table td {
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #F0F0F0;
}

.dimensions-table th {
    font-size: 13px;
    font-weight: 600;
    color: #666666;
    background: #F8F8F8;
    white-space: nowrap;
}

.dimensions-table td {
    font-size: 14px;
    color: #333333;
}

.dimensions-table .score-value {
    font-weight: 700;
    color: #FF6B6B;
    font-size: 16px;
}

.conclusion-text {
    font-size: 15px;
    line-height: 1.8;
    color: #333333;
    white-space: pre-line;
    text-align: left;
}

.conclusion-text p,
.diagnosis-content p,
.risk-content p,
.suggestions-text p {
    position: relative;
    padding-left: 24px;
}

.conclusion-text p::before,
.diagnosis-content p::before,
.risk-content p::before,
.suggestions-text p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FFB347 100%);
    border-radius: 50%;
}

.dimension-card {
    background: #FAFAFA;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.dimension-card:last-child {
    margin-bottom: 0;
}

.dimension-name {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.dimension-score-badge {
    margin-left: auto;
    background: linear-gradient(135deg, #FF6B6B 0%, #FFB347 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
}

.diagnosis-title,
.risk-title {
    font-size: 14px;
    font-weight: 600;
    color: #FF6B6B;
    margin: 12px 0 8px;
}

.diagnosis-content,
.risk-content {
    font-size: 14px;
    line-height: 1.8;
    color: #555555;
    white-space: pre-line;
    text-align: left;
}

.result-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px 0;
    border-radius: 8px;
}

.suggestions-text {
    font-size: 15px;
    line-height: 1.8;
    color: #333333;
    white-space: pre-line;
    text-align: left;
}

.contact-footer {
    text-align: center;
    padding: 20px;
    background: #FFF5E6;
    border-radius: 12px;
    margin-top: 16px;
}

.contact-text {
    font-size: 15px;
    font-weight: 600;
    color: #FF6B6B;
}

.retest-btn-new {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 600;
    padding: 15px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
}

.retest-btn-new.outline {
    background: #FFFFFF;
    color: #FF6B6B;
    border: 2px solid #FF6B6B;
    box-shadow: none;
}
