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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #4DA88B, #4DA3A8);
    min-height: 100vh;
    color: #2D3436;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 表单控件继承字体（Windows微信默认宋体问题） */
input, select, button, textarea {
    font-family: inherit;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 20px;
}

/* Page Management */
.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

/* paywall渠道：渲染前（JS执行前）隐藏兑换码页、显示出生年月页，避免闪现
   JS 加载后 body 添加 js-ready 类，规则自动失效，不影响后续页面切换 */
html.ch-paywall #page-code {
    display: none !important;
}

html.ch-paywall body:not(.js-ready) #page-birth {
    display: block;
}

/* paywall渠道出生年月页：彻底禁用入场动画（含位移），防止 iOS 原生日期控件文字抖动 */
html.ch-paywall #page-birth {
    animation: none !important;
}

/* 桌面端：渲染前就显示下拉选择器，避免 JS 切换控件导致跳动
   （!important 用于压制 HTML 内联 style="display:none"） */
html.is-desktop .birth-input-mobile {
    display: none !important;
}

html.is-desktop .birth-picker-desktop {
    display: flex !important;
}

.page-intro-page.active {
    display: flex !important;
}

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

/* Page Header */
.page-header {
    text-align: center;
    padding: 40px 0 30px;
    color: white;
}

.logo {
    height: 36px;
    margin-bottom: 16px;
}

.page-header h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 17px;
    opacity: 0.9;
}

/* Form Section */
.form-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-label {
    display: block;
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #485154;
}

.form-input {
    width: 100%;
    padding: 15px;
    font-size: 17px;
    border: 2px solid #B2BEC3;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.form-tip {
    margin-top: 12px;
    font-size: 15px;
    color: #485154;
    text-align: center;
    line-height: 1.5;
}

.form-input:focus {
    outline: none;
    border-color: #4DA88B;
}

/* =============== 出生年月选择器 =============== */
/* 移动端原生日期选择器 */
.birth-input-mobile {
    margin-bottom: 0;
    font-size: 17px;
    padding: 16px 16px 16px 48px;
    border: 1.5px solid #E0E4E6;
    border-radius: 14px;
    background-color: #F8FAF9;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234DA88B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3e%3cline x1='16' y1='2' x2='16' y2='6'/%3e%3cline x1='8' y1='2' x2='8' y2='6'/%3e%3cline x1='3' y1='10' x2='21' y2='10'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: 16px center;
    background-size: 20px 20px;
    color: #2D3436;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
    min-height: 52px;
    box-sizing: border-box;
}

.birth-input-mobile:focus {
    outline: none;
    border-color: #4DA88B;
    background-color: #FFFFFF;
    box-shadow: 0 2px 12px rgba(77, 168, 139, 0.12);
}

.birth-input-mobile::-webkit-datetime-edit {
    color: #2D3436;
}

.birth-input-mobile::-webkit-inner-spin-button,
.birth-input-mobile::-webkit-clear-button {
    display: none;
}

.birth-input-mobile::-webkit-calendar-picker-indicator {
    color: #4DA88B;
    opacity: 0.6;
    cursor: pointer;
}

/* 桌面端下拉选择器 */
.birth-picker-desktop {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.birth-select {
    flex: 1;
    padding: 16px;
    font-size: 17px;
    border: 2px solid #B2BEC3;
    border-radius: 12px;
    background: white;
    color: #2D3436;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23636E72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 48px;
}

.birth-select:focus {
    outline: none;
    border-color: #4DA88B;
}

/* 日期错误提醒（黄色小字） */
.birth-tip {
    display: none;
    font-size: 15px;
    color: #D89F00;
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.4;
}
.birth-tip.show {
    display: block;
}
/* 未显示提醒时，按钮上方保持间距 */
.form-section .btn-primary {
    margin-top: 20px;
}

/* Buttons */
.btn {
    width: 100%;
    height: 56px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.2em;
    border: none;
    border-radius: 28px;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

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

.btn-primary {
    background: linear-gradient(135deg, #4DA88B 0%, #3A8A70 100%);
    color: white;
}

.btn-primary:not(:disabled):hover {
    box-shadow: 0 5px 20px rgba(77, 168, 139, 0.4);
}

/* 开始测评按钮（出生年月页）：与 landing-talent 落地页按钮样式一致 */
#btn-start {
    height: 48px;
    font-weight: 400;
    letter-spacing: 1px;
    border-radius: 24px;
    background: linear-gradient(90deg, #4DA88B 0%, #4DA3A8 100%);
}

.btn-secondary {
    background: #F5F6F7;
    color: #485154;
}

.btn-secondary:not(:disabled):hover {
    background: #E8E8E8;
}

/* Intro Content */
.intro-content {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.info-card {
    background: #F5F6F7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #B2BEC3;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #B2BEC3;
    font-size: 17px;
}

.info-value {
    color: #2D3436;
    font-weight: 600;
    font-size: 17px;
}

.tips {
    background: #FDF2D0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.tips h3 {
    font-size: 17px;
    margin-bottom: 12px;
    color: #E8917A;
}

.tips ul {
    list-style: none;
    padding: 0;
}

.tips li {
    font-size: 17px;
    color: #485154;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.tips li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #E8917A;
}

/* Test Page */
.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    color: white;
}

/* ============================================================
   答题页面
   ============================================================ */
.page-question {
    padding: 20px;
}

.question-card {
    background: white;
    border-radius: 30px;
    padding: 24px;
    min-height: 400px;
}

.question-progress-bar {
    height: 12px;
    background: #D4EFE6;
    border-radius: 6px;
    margin-bottom: 24px;
    overflow: hidden;
}

.question-progress-fill {
    height: 100%;
    background: #4DA88B;
    border-radius: 6px;
    width: 0%;
    transition: width 0.3s ease;
}

.question-domain {
    font-size: 24px;
    font-weight: 700;
    color: #2D3436;
    margin-bottom: 16px;
}

.question-text {
    font-size: 17px;
    line-height: 1.6;
    color: #2D3436;
    margin-bottom: 24px;
    font-weight: 400;
}

.ceiling-tag {
    display: none;
    align-items: flex-start;
    gap: 6px;
    font-size: 15px;
    color: #2D3436;
    margin-top: 20px;
    padding: 8px 12px;
    background: #FFF8E0;
    border-radius: 8px;
    width: fit-content;
}

.ceiling-tag svg {
    flex-shrink: 0;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.question-option {
    background: #F5F6F7;
    border-radius: 16px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 17px;
    line-height: 1.5;
    color: #2D3436;
    border: none;
    text-align: left;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

/* 仅鼠标设备启用 hover（移动端触摸不残留） */
@media (hover: hover) {
    .question-option:hover {
        background: #E8F5EF;
    }
}

.question-option:active {
    background: #D4EFE6;
}

.question-option.selected {
    background: #D4EFE6;
}

.question-option-label {
    font-weight: 600;
    color: #4DA88B;
    margin-right: 6px;
}

.question-explain-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 16px;
    border-radius: 12px;
}

/* 桌面端适配 */
@media (min-width: 768px) {
    .page-question {
        padding: 40px;
    }
    .question-card {
        max-width: 500px;
        margin: 0 auto;
        padding: 32px;
    }
}

.test-footer {
    margin-top: 10px;
}

/* Result Page */
.result-content {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.result-summary {
    text-align: center;
    margin-bottom: 25px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4DA88B 0%, #3A8A70 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: white;
}

.score-value {
    font-size: 36px;
    font-weight: 700;
}

.score-label {
    font-size: 14px;
    opacity: 0.9;
}

.result-info {
    background: #F5F6F7;
    border-radius: 12px;
    padding: 15px;
}

.age-scores {
    margin-bottom: 25px;
}

.age-scores h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #2D3436;
}

/* Age Scores */
.domain-score-section {
    margin-bottom: 25px;
}

.domain-score-section h3 {
    font-size: 17px;
    margin-bottom: 15px;
    color: #2D3436;
    padding-bottom: 8px;
    border-bottom: 2px solid #B2BEC3;
}

.age-score-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #B2BEC3;
}

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

.age-label {
    width: 80px;
    font-size: 15px;
    color: #485154;
    flex-shrink: 0;
}

.age-bar {
    flex: 1;
    height: 22px;
    background: #F5F6F7;
    border-radius: 11px;
    overflow: hidden;
    margin: 0 12px;
}

.age-bar-fill {
    height: 100%;
    border-radius: 11px;
    transition: width 0.5s;
}

.age-bar-fill.pass {
    background: #4DA88B;
}

.age-bar-fill.partial {
    background: #F5D98B;
}

.age-bar-fill.fail {
    background: #E8917A;
}

.age-score-value {
    width: 60px;
    text-align: right;
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
}

/* DQ Chart */
.dq-chart {
    background: #F5F6F7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.dq-chart h3 {
    font-size: 17px;
    margin-bottom: 20px;
    color: #2D3436;
    text-align: center;
}

.chart-subtitle {
    font-size: 17px;
    font-weight: 600;
    color: #485154;
    text-align: center;
    margin: 20px 0 12px;
    padding-top: 10px;
}

.chart-subtitle:first-of-type {
    margin-top: 0;
    padding-top: 0;
}

/* =============== 横向柱状图 =============== */
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bar-chart-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bar-chart-label {
    width: 72px;
    font-size: 15px;
    font-weight: 600;
    color: #485154;
    padding-top: 10px;
    flex-shrink: 0;
}

.bar-chart-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bar-chart-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bar-chart-item-label {
    width: 60px;
    font-size: 15px;
    color: #B2BEC3;
    flex-shrink: 0;
}

.bar-chart-track {
    flex: 1;
    height: 26px;
    background: #E8E8E8;
    border-radius: 13px;
    overflow: visible;
}

.bar-chart-bar {
    height: 100%;
    border-radius: 13px;
    transition: width 0.8s ease;
    min-width: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    position: relative;
}

.bar-chart-bar span {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 6px;
    color: #485154;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.bar-chart-bar.typical {
    background: #B2BEC3;
}

.bar-chart-bar.child {
    background: #4DA88B;
}

.bar-chart-bar.child.low {
    background: #E8917A !important;
}

/* =============== 雷达（玫瑰）图 =============== */
.radar-chart-wrap {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.radar-chart {
    width: 100%;
    max-width: 360px;
    height: auto;
}

.radar-grid {
    fill: rgba(178, 190, 195, 0.06);
    stroke: rgba(178, 190, 195, 0.25);
    stroke-width: 1;
}

.radar-axis {
    stroke: rgba(178, 190, 195, 0.3);
    stroke-width: 1;
}

.radar-label {
    font-size: 15px;
    font-weight: 600;
    fill: #636E72;
}

.radar-value {
    font-size: 15px;
    font-weight: 600;
    fill: #4DA88B;
}

.radar-poly.typical {
    fill: rgba(178, 190, 195, 0.2);
    stroke: #B2BEC3;
    stroke-width: 2;
    stroke-dasharray: 4 2;
}

.radar-poly.child {
    fill: rgba(77, 168, 139, 0.25);
    stroke: #4DA88B;
    stroke-width: 2.5;
}

.radar-dot {
    fill: #4DA88B;
    stroke: white;
    stroke-width: 2;
}

/* =============== 图例 =============== */
.chart-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #485154;
}

.legend-dot {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.legend-dot.typical {
    background: #B2BEC3;
}

.legend-dot.child {
    background: #4DA88B;
}

.result-interpretation {
    background: #F5F6F7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.result-interpretation p {
    font-size: 17px;
    line-height: 1.7;
    color: #2D3436;
}

.result-interpretation.warning {
    background: #FDF2D0;
}

.result-interpretation.danger {
    background: #FBE3DC;
}

.result-interpretation.warning p,
.result-interpretation.danger p {
    color: #2D3436;
}

/* Responsive - 移动端优化 */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }

    .page-header {
        padding: 32px 0 24px;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .form-section,
    .intro-content,
    .question-section,
    .result-content {
        padding: 20px;
        border-radius: 16px;
    }

    .bar-chart-label {
        width: 64px;
        font-size: 15px;
    }

    .bar-chart-item-label {
        width: 56px;
        font-size: 15px;
    }

    .age-label {
        width: 72px;
        font-size: 15px;
    }

    .age-score-value {
        width: 54px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .bar-chart-label {
        width: 58px;
        font-size: 15px;
    }

    .bar-chart-item-label {
        width: 50px;
        font-size: 15px;
    }
}

/* =============== 测评说明页面 =============== */
.page-intro-page {
    display: none;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: -20px;
    padding: 0;
    position: relative;
    background: linear-gradient(180deg, #4DA88B, #4DA3A8) !important;
}

.page-intro-page.active {
    display: flex !important;
}

.intro-content-wrap {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin-top: 30px;
}

.intro-mascot-img {
    width: 260px;
    height: auto;
    display: block;
    /* 图片中心距卡片中心向左30px → 左边缘 = 50% - 130 - 30 = 50% - 160px */
    margin-left: calc(50% - 160px);
    /* 图片中心距卡片上边缘上方34px → 底部在卡片内96px */
    margin-bottom: -96px;
    position: relative;
    z-index: 1;
}

.intro-card {
    background: white;
    border-radius: 20px;
    padding: 24px 12px;
    margin: 0 auto;
    width: 330px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.hand {
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 3;
}

/* 右手：中心与说明框右边缘对齐，中心距顶部70px */
.hand-right {
    right: -16px;
    top: 29px;
}

/* 左手：镜像，中心与说明框左边缘对齐，中心距顶部70px */
.hand-left {
    left: -16px;
    top: 29px;
    transform: scaleX(-1);
}

.intro-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #2D3436;
    text-align: center;
    margin-bottom: 24px;
}

.intro-tips {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.intro-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.intro-tip-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-tip-text {
    font-size: 17px;
    color: #2D3436;
    line-height: 1.6;
    flex: 1;
}

.intro-disclaimer {
    font-size: 14px;
    color: #999;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0;
    padding: 0 20px;
}

.intro-bottom {
    margin-top: 32px;
    padding: 0;
    width: 330px;
}

.btn-intro-start {
    width: 330px;
    height: 56px;
    background: white;
    border: none;
    border-radius: 28px;
    color: #4DA88B;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-intro-start:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-intro-start:active {
    color: #3A8A70;
}

.btn-intro-start:active svg {
    stroke: #3A8A70;
}

/* =============== 结果页面 =============== */
.celebration-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.result-header {
    text-align: center;
    padding: 30px 20px 20px;
}

.result-mascot {
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
}

.result-title {
    font-size: 22px;
    font-weight: 700;
    color: #2D3436;
    margin: 0;
}

.result-cards {
    padding: 0;
}

#page-result {
    background: white;
    min-height: 100vh;
}

#page-result.active ~ *,
body:has(#page-result.active) {
    background: white;
}

#page-result .container {
    background: white;
}

/* 通用卡片样式 */
.result-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.card-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.card-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.card-header-title {
    font-size: 20px;
    font-weight: 700;
    color: #2D3436;
}

.card-header-deco {
    position: absolute;
    right: 10px;
    top: -8px;
    display: flex;
    gap: 4px;
    opacity: 0.7;
}

.card-header-deco svg:first-child {
    transform: rotate(15deg);
}

.card-header-deco svg:last-child {
    transform: rotate(-10deg) scale(0.6);
    margin-top: 14px;
}

.card-body {
    padding: 20px;
}

/* 优势能区卡片 */
.advantage-header {
    background: #B6E1D1;
}

.advantage-text {
    font-size: 17px;
    font-weight: 400;
    color: #2D3436;
    line-height: 27px;
    margin-bottom: 12px;
}

/* 发展全景图卡片 */
.panorama-header {
    background: #FDF2D0;
}

.panorama-chart-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.panorama-chart-wrap canvas {
    display: block;
}

/* 优势领域徽章 */
.advantage-badge-wrap {
    display: flex;
    justify-content: center;
    margin-top: 4px;
    margin-bottom: 20px;
}

.advantage-badge {
    width: 140px;
    height: auto;
    display: block;
}

/* 继续提升横向柱状图 */
.improvement-bar-chart {
    margin-top: 16px;
    margin-bottom: 8px;
}

.improvement-bar-domain {
    margin-bottom: 18px;
}

.improvement-bar-domain-title {
    font-size: 17px;
    font-weight: 700;
    color: #2D3436;
    margin-top: 12px;
    margin-bottom: 10px;
}

.improvement-bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.improvement-bar-row-label {
    width: 72px;
    font-size: 17px;
    font-weight: 400;
    color: #485154;
    flex-shrink: 0;
    margin-right: 6px;
}

.improvement-bar-track {
    height: 20px;
    background: transparent;
    border-radius: 12px;
    overflow: visible;
    position: relative;
    flex-shrink: 0;
    margin-right: 8px;
}

.improvement-bar-ref {
    height: 100%;
    background: #D0D0D0;
    border-radius: 12px;
    width: 100%;
}

.improvement-bar-child {
    height: 100%;
    background: linear-gradient(to right, #7EC8B0, #4DA88B);
    border-radius: 12px;
    transition: width 0.8s ease;
}

.improvement-bar-value {
    font-size: 15px;
    font-weight: 400;
    color: #485154;
    flex-shrink: 0;
    min-width: 32px;
}

/* 章节标题 */
.section-title-wrap {
    position: relative;
    margin-top: 14px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 19px;
    font-weight: 700;
    color: #3A8A70;
    line-height: 29px;
    position: relative;
    z-index: 1;
    display: inline-block;
}

.section-title-bar {
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 85px;
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(to right, #BEEFDE, rgba(190, 239, 222, 0));
    z-index: 0;
}

.section-text {
    font-size: 17px;
    font-weight: 400;
    color: #2D3436;
    line-height: 27px;
    margin-bottom: 4px;
}

.improvement-domain-title {
    font-size: 17px;
    font-weight: 700;
    color: #2D3436;
    line-height: 29px;
    margin-top: 16px;
    margin-bottom: 8px;
}

/* 建议卡片 */
.advice-header {
    background: #D6EFFF;
}

.advice-intro {
    font-size: 17px;
    font-weight: 400;
    color: #2D3436;
    line-height: 27px;
    margin-bottom: 16px;
}

.advice-domain-title {
    font-size: 17px;
    font-weight: 700;
    color: #2D3436;
    margin-bottom: 24px;
}

.improvement-image-wrap {
    margin-top: 16px;
    margin-bottom: 24px;
    text-align: center;
}

.improvement-image {
    max-width: 100%;
    border-radius: 12px;
}

.advice-unpassed-list {
    margin-bottom: 18px;
}

.advice-unpassed-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F0F0F0;
    border-radius: 20px;
    padding: 8px 16px;
    margin-bottom: 8px;
}

.advice-unpassed-name {
    font-size: 15px;
    font-weight: 400;
    color: #2D3436;
}

.advice-unpassed-meta {
    font-size: 15px;
    font-weight: 400;
    color: #2D3436;
    white-space: nowrap;
}

.advice-hospital-wrap {
    margin-top: 18px;
    padding: 14px 16px;
    background: #FFF8E6;
    border-radius: 10px;
}

.advice-hospital-text {
    font-size: 15px;
    font-weight: 400;
    color: #8B7340;
    line-height: 24px;
}

/* 建议模块配图 */
.advice-domain-img-wrap {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 8px;
}

.advice-domain-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* 免责声明 */
.result-disclaimer-wrap {
    text-align: center;
    padding: 20px;
}

.result-disclaimer-img {
    width: 120px;
    display: block;
    margin: 0 auto 8px;
}

.result-disclaimer-text {
    font-size: 13px;
    font-weight: 400;
    color: #999;
    line-height: 20px;
    margin: 0;
}

/* 分享栏 */
.share-bar {
    background: #4DA88B;
    color: white;
    text-align: center;
    padding: 16px 20px;
    font-size: 15px;
    margin: 0 16px 20px;
    border-radius: 12px;
}

/* 保存报告按钮 */
.save-report-wrap {
    text-align: center;
    padding: 20px 0 40px;
}

.btn-save-report {
    display: inline-block;
    padding: 14px 48px;
    background: #4DA88B;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    border-radius: 28px;
    border: none;
    cursor: pointer;
    text-align: center;
}

@media (max-width: 480px) {
    .card-header {
        padding: 16px 16px;
    }

    .card-body {
        padding: 20px 16px;
    }

    .card-header-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .panorama-header {
        padding: 16px 16px;
    }

    .panorama-body {
        padding: 20px 16px;
    }

    .panorama-header-title {
        font-size: 18px;
    }
}


.advantage-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.advantage-header {
    background: #D4EFE6;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.advantage-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.advantage-header-title {
    font-size: 20px;
    font-weight: 700;
    color: #2D3436;
}

.advantage-stars {
    position: absolute;
    right: 10px;
    top: -12px;
    display: flex;
    gap: 4px;
    opacity: 0.7;
}

.advantage-stars svg:first-child {
    transform: rotate(15deg);
}

.advantage-stars svg:last-child {
    transform: rotate(-10deg) scale(0.6);
    margin-top: 14px;
}

.advantage-body {
    padding: 24px 20px;
}

.advantage-domain {
    margin-bottom: 28px;
}

.advantage-domain:last-child {
    margin-bottom: 0;
}

.advantage-text-title {
    font-size: 17px;
    font-weight: 400;
    color: #2D3436;
    margin-bottom: 10px;
    line-height: 29px;
}

.advantage-text-title strong {
    font-weight: 700;
}

.advantage-text-body {
    font-size: 17px;
    font-weight: 400;
    color: #2D3436;
    line-height: 29px;
}

@media (max-width: 480px) {
    .advantage-header {
        padding: 16px 16px;
    }

    .advantage-body {
        padding: 20px 16px;
    }

    .advantage-header-title {
        font-size: 18px;
    }
}

/* =============== 打印/PDF 样式 =============== */
@media print {
    body {
        background: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* 隐藏非结果页 */
    .page:not(#page-result) {
        display: none !important;
    }

    #page-result {
        display: block !important;
        background: white !important;
    }

    /* 隐藏保存按钮和分享栏 */
    .save-report-wrap,
    .share-bar {
        display: none !important;
    }

    /* 结果卡片去掉阴影，用边框替代 */
    .result-card {
        box-shadow: none !important;
        border: 1px solid #eee;
        break-inside: avoid;
    }

    /* 避免内容被分页切断 */
    .result-cards > * {
        break-inside: avoid;
    }

    .result-header,
    .result-disclaimer-wrap {
        break-inside: avoid;
    }
}



/* ==================== 付费墙 ==================== */
.page-paywall {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.page-paywall.active {
    display: flex;
}

.paywall-card {
    width: 100%;
    max-width: 340px;
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

.paywall-mascot {
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
}

.paywall-title {
    font-size: 22px;
    font-weight: 600;
    color: #2D3436;
    margin: 0 0 8px 0;
}

.paywall-desc {
    font-size: 15px;
    color: #636E72;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.paywall-preview {
    text-align: left;
    background: #F5F9F7;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.paywall-preview-item {
    font-size: 14px;
    color: #2D3436;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.paywall-preview-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4DA88B;
}

.paywall-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.paywall-price-num {
    font-size: 36px;
    font-weight: 700;
    color: #E8917A;
}

.paywall-price-origin {
    font-size: 15px;
    color: #B2BEC3;
    text-decoration: line-through;
}

.btn-pay {
    display: block;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 24px;
    background: linear-gradient(90deg, #4DA88B 0%, #4DA3A8 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
}

.btn-pay:disabled {
    opacity: 0.6;
}

.paywall-tip {
    font-size: 12px;
    color: #B2BEC3;
    margin: 12px 0 0 0;
}

/* ==================== 结果页付费墙遮罩 ==================== */
#page-result {
    position: relative;
}

/* 付费墙激活时：锁定报告高度禁止滚动 */
body.paywall-locked {
    overflow: hidden;
}

body.paywall-locked #page-result.active {
    height: 100vh;
    overflow: hidden;
}

.paywall-overlay {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    /* 遮罩下移：完整露出五维玫瑰图，付费点后移到具体解读处 */
    height: 20vh;
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
}

.paywall-overlay.active {
    display: flex;
}

.paywall-gradient {
    flex: 1;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 29%, rgba(255,255,255,1) 100%);
    pointer-events: auto;
}

.paywall-bar {
    padding: 0 20px 20px;
    background: #fff;
    pointer-events: auto;
}

.paywall-bar .btn-pay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    height: 48px;
    border-radius: 24px;
    background: linear-gradient(90deg, #4DA88B 0%, #4DA3A8 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 400;
    border: none;
    cursor: pointer;
}

.paywall-bar .btn-pay svg {
    flex-shrink: 0;
}
