/* ==========================================================================
   251 组织系统健康迷你自测 —— 独立样式（不依赖/不污染旧 assessment.css）
   色板取自设计稿：奶油底 + 棕色主按钮 + 金棕点缀
   ========================================================================== */

.m-crumb-wrap { background: #fff; border-bottom: 1px solid #f0e9de; }
.m-crumb {
    padding: 14px 0;
    font-size: 13px;
    color: #a3988a;
}
.m-crumb a { color: #a3988a; text-decoration: none; }
.m-crumb a:hover { color: #7a5b49; }
.m-crumb-sep { margin: 0 8px; color: #d8cfc2; }
.m-crumb-cur { color: #6f6152; }

/* ---- Hero ---- */
.m-hero {
    background: linear-gradient(180deg, #f5eee4 0%, #faf6ef 100%);
    padding: 46px 0 50px;
}
.m-hero-title {
    font-size: clamp(26px, 6vw, 40px);
    font-weight: 700;
    color: #33291f;
    letter-spacing: .02em;
    margin: 0 0 18px;
}
.m-hero-desc {
    font-size: 15.5px;
    line-height: 1.9;
    color: #7d7160;
    max-width: 560px;
    margin: 0;
}
.m-hero-note {
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.8;
    color: #a3988a;
}

/* ---- 通用段落 ---- */
.m-section { padding: 44px 0 10px; }
.m-section-steps { text-align: center; }
.m-h2 {
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 700;
    color: #33291f;
    margin: 0 0 14px;
}
.m-section-desc {
    font-size: 15px;
    line-height: 1.9;
    color: #7d7160;
    max-width: 560px;
    margin: 0 auto;
}
.m-price-pill {
    display: inline-block;
    margin-top: 22px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #f3ead9;
    color: #7a5b49;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
}

/* ---- 三步 chips ---- */
.m-steps {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
    flex-wrap: wrap;
}
.m-step {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 18px 9px 10px;
    border-radius: 999px;
    border: 1px solid #e3d9c8;
    background: #fff;
    font-size: 14px;
    color: #8a7f70;
}
.m-step-no {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    background: #efe7d9;
    color: #8a7f70;
}
.m-step.is-active {
    border-color: #7a5b49;
    color: #5f4636;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(122, 91, 73, .14);
}
.m-step.is-active .m-step-no { background: #7a5b49; color: #fff; }

/* ---- 卡片 ---- */
.m-card {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #f0e9de;
    border-radius: 18px;
    box-shadow: 0 10px 34px rgba(90, 70, 50, .07);
    padding: 30px 24px 28px;
}
.m-card-title {
    font-size: 21px;
    font-weight: 700;
    color: #33291f;
    margin: 0 0 10px;
}
.m-card-desc {
    font-size: 13.5px;
    line-height: 1.85;
    color: #a3988a;
    margin: 0 0 24px;
}
.m-section .m-card { margin-top: 34px; margin-bottom: 26px; }

/* ---- 表单字段 ---- */
.m-field { margin-bottom: 20px; }
.m-field label {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: #4a4033;
    margin-bottom: 9px;
}
.m-req { color: #d9534f; margin-left: 2px; }
.m-field input,
.m-field select {
    width: 100%;
    padding: 13px 15px;
    font-size: 14.5px;
    color: #33291f;
    background: #fbf8f3;
    border: 1px solid #e7dfd3;
    border-radius: 11px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
    -webkit-appearance: none;
    appearance: none;
}
.m-field select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23a3988a' stroke-width='1.6' stroke-linecap='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 38px;
}
.m-field input:focus,
.m-field select:focus {
    border-color: #b08d57;
    box-shadow: 0 0 0 3px rgba(176, 141, 87, .14);
    background: #fff;
}
.m-field input::placeholder { color: #b7ac9c; }

/* ---- 隐私勾选 ---- */
.m-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.8;
    color: #8a7f70;
    margin: 4px 0 22px;
    cursor: pointer;
}
.m-consent input {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #7a5b49;
}
.m-consent a { color: #b08d57; text-decoration: underline; text-underline-offset: 3px; }

/* ---- 按钮 ---- */
.m-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border: none;
    border-radius: 12px;
    background: #7a5b49;
    color: #fff;
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: .04em;
    cursor: pointer;
    text-decoration: none;
    transition: background .18s, transform .12s, box-shadow .18s;
}
.m-btn-primary:hover { background: #66493a; box-shadow: 0 8px 20px rgba(122, 91, 73, .28); }
.m-btn-primary:active { transform: translateY(1px); }
.m-btn-primary:disabled {
    background: #c9bfb2;
    cursor: not-allowed;
    box-shadow: none;
}
.m-btn-block { width: 100%; }

/* ---- 提示框 / 弹窗 ---- */
.m-alert {
    background: #fdf3f2;
    border: 1px solid #f2d7d4;
    color: #b05450;
    border-radius: 11px;
    padding: 12px 15px;
    font-size: 13.5px;
    margin-bottom: 20px;
}
.m-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; }
.m-modal-mask { position: absolute; inset: 0; background: rgba(40, 30, 20, .45); }
.m-modal-box {
    position: relative;
    width: min(520px, 88vw);
    max-height: 78vh;
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    padding: 26px 24px 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}
.m-modal-title { font-size: 18px; font-weight: 700; color: #33291f; margin-bottom: 14px; }
.m-modal-body p { font-size: 13.5px; line-height: 1.9; color: #6f6152; margin: 0 0 10px; }
.m-modal-actions { margin-top: 16px; text-align: center; }

/* ==========================================================================
   第二步：答题页
   ========================================================================== */
.m-progress {
    position: sticky;
    top: 56px;                 /* 手机端固定头部更矮，与旧版 as-progress 同参数 */
    z-index: 50;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f0e9de;
    padding: 12px 0 10px;
}
.m-progress-row { display: flex; align-items: center; gap: 16px; }
.m-progress-track {
    flex: 1;
    height: 7px;
    border-radius: 999px;
    background: #efe8dc;
    overflow: hidden;
}
.m-progress-track i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #7a5b49, #a3765a);
    transition: width .25s ease;
}
.m-progress-num { font-size: 13px; color: #8a7f70; white-space: nowrap; }
.m-progress-num b { color: #7a5b49; font-size: 15px; }

.m-quiz { max-width: 640px; padding-bottom: 40px; }

/* ---- 维度头 ---- */
.m-group-head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 40px 0 6px;
}
.m-group-no {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #8a6650, #7a5b49);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(122, 91, 73, .28);
}
.m-group-name { font-size: 19px; font-weight: 700; color: #33291f; }
.m-group-sub { font-size: 12.5px; color: #b08d57; margin-top: 3px; }

/* ---- 题目与选项 ---- */
.m-question { padding: 18px 0 6px; }
.m-q-title {
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.75;
    color: #3d3428;
    margin-bottom: 14px;
}
.m-options { display: flex; flex-direction: column; gap: 11px; }
.m-option {
    position: relative;
    display: block;
    text-align: center;
    padding: 15px 14px 12px;
    border: 1.5px solid #e7dfd3;
    border-radius: 13px;
    background: #fbf8f3;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
    -webkit-tap-highlight-color: transparent;
}
.m-option input { position: absolute; opacity: 0; pointer-events: none; }
.m-option-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #4a4033;
}
.m-option-score {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #b7ac9c;
}
.m-option:hover { border-color: #cbb9a2; }
.m-option.is-selected {
    border-color: #7a5b49;
    background: #f6efe4;
    box-shadow: 0 4px 14px rgba(122, 91, 73, .16);
}
.m-option.is-selected .m-option-label { color: #5f4636; }
.m-option.is-selected .m-option-score { color: #b08d57; }

/* ---- 提交 ---- */
.m-submit-wrap { margin: 38px 0 20px; }
.m-submit-tip {
    margin-top: 12px;
    text-align: center;
    font-size: 12.5px;
    color: #b7ac9c;
}

/* ==========================================================================
   第三步：报告页
   ========================================================================== */
.m-report { max-width: 640px; padding: 34px 0 46px; }
.m-report .m-card { margin-bottom: 22px; }

.m-score-card { text-align: center; padding-top: 36px; }
.m-score-label {
    font-size: 13px;
    letter-spacing: .3em;
    color: #a3988a;
    text-transform: uppercase;
}
.m-score-line { margin: 10px 0 16px; }
.m-score-num {
    font-size: 64px;
    font-weight: 700;
    color: #7a5b49;
    line-height: 1;
}
.m-score-max { font-size: 18px; color: #b7ac9c; margin-left: 8px; }
.m-band-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 999px;
    background: #f3ead9;
    color: #5f4636;
    font-size: 15.5px;
    font-weight: 700;
}
.m-band-desc { font-size: 14px; color: #7d7160; margin: 14px 0 0; }
.m-score-meta {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed #e7dfd3;
    font-size: 12.5px;
    color: #b7ac9c;
}

/* 顾问复核标记：仅当后台人工校准过这份报告时才出现 */
.m-reviewed {
    display: inline-block;
    margin-top: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f3ead9;
    color: #8a6a2e;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .02em;
}

/* ---- 维度条 ---- */
.m-bars { display: flex; flex-direction: column; gap: 16px; margin-top: 6px; }
.m-bar-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 7px;
}
.m-bar-name { font-size: 14px; font-weight: 600; color: #4a4033; }
.m-bar-val { font-size: 12.5px; color: #b7ac9c; }
.m-bar-val b { color: #7a5b49; font-size: 15px; }
.m-bar-track {
    height: 9px;
    border-radius: 999px;
    background: #f1eae0;
    overflow: hidden;
}
.m-bar-track i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #7a5b49, #a3765a);
    transition: width .5s ease;
}

.m-advice { font-size: 14.5px; line-height: 2; color: #5f5344; margin: 0 0 14px; }
.m-reminder {
    font-size: 13px;
    line-height: 1.9;
    color: #a3988a;
    background: #faf6ef;
    border-radius: 11px;
    padding: 12px 15px;
    margin: 0;
}

/* ---- 第三步卡 ---- */
.m-step3-card { position: relative; background: linear-gradient(180deg, #fffdf9, #fbf6ec); }
.m-step3-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #7a5b49;
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.m-step3-desc { font-size: 14px; line-height: 1.95; color: #6f6152; margin: 0 0 4px; }
.m-step3-card .m-price-pill { margin: 16px 0 20px; }
.m-contact {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: #6f6152;
    margin-bottom: 20px;
}
.m-report-links {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #b7ac9c;
}
.m-report-links a { color: #b08d57; text-decoration: none; }
.m-report-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.m-dot { margin: 0 8px; }
.m-share-tip {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    color: #c4baab;
}

/* ---- 桌面端微调 ---- */
@media (min-width: 768px) {
    .m-hero { padding: 64px 0 60px; }
    .m-card { padding: 38px 40px 34px; }
    .m-progress { top: 76px; }
    .m-question { padding: 20px 0 8px; }
}

/* ==========================================================================
   交卷等待：诊断引擎运行遮罩（5~10s 随机，科技感仪表盘）
   ========================================================================== */
.m-boot {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background:
        radial-gradient(115% 85% at 50% -10%, rgba(200, 164, 92, .16), transparent 60%),
        radial-gradient(90% 70% at 50% 112%, rgba(122, 91, 73, .30), transparent 62%),
        repeating-linear-gradient(0deg, rgba(200, 164, 92, .05) 0 1px, transparent 1px 46px),
        repeating-linear-gradient(90deg, rgba(200, 164, 92, .05) 0 1px, transparent 1px 46px),
        #1b1610;
    opacity: 0;
    transition: opacity .35s ease;
    -webkit-tap-highlight-color: transparent;
}
.m-boot.is-on { display: flex; }
.m-boot.is-in { opacity: 1; }

.m-boot-panel {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 32px 28px 26px;
    border-radius: 20px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(62, 48, 34, .94), rgba(39, 30, 21, .97));
    border: 1px solid rgba(200, 164, 92, .26);
    box-shadow: 0 28px 64px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .07);
}
/* 顶部激光线 */
.m-boot-panel::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C8A45C 22%, #E8CE9A 50%, #C8A45C 78%, transparent);
    opacity: .85;
}
/* 循环扫描光带 */
.m-boot-panel::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -70%;
    width: 55%;
    height: 140%;
    pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(200, 164, 92, .13), transparent);
    transform: skewX(-14deg);
    animation: mBootSweep 2.8s linear infinite;
}
@keyframes mBootSweep {
    0%   { left: -70%; }
    100% { left: 130%; }
}

/* ---- 环形进度 ---- */
.m-boot-ring {
    position: relative;
    width: 132px;
    height: 132px;
    margin: 2px auto 16px;
}
.m-boot-ring svg {
    display: block;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.m-boot-ring-track { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 7; }
.m-boot-ring-dash {
    fill: none;
    stroke: rgba(200, 164, 92, .38);
    stroke-width: 1.5;
    stroke-dasharray: 2 9;
    transform-origin: 60px 60px;
    animation: mBootSpin 9s linear infinite;
}
.m-boot-ring-bar {
    fill: none;
    stroke: url(#mBootGrad);
    stroke-width: 7;
    stroke-linecap: round;
    transition: stroke-dashoffset .18s linear;
}
@keyframes mBootSpin { to { transform: rotate(360deg); } }

/* 表盘内底：让百分比数字从进度弧上"浮"出来，避免金色压金色看不清 */
.m-boot-ring::before {
    content: "";
    position: absolute;
    inset: 10.5%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 44%, rgba(58, 46, 32, .72), rgba(34, 26, 18, .86));
    box-shadow: inset 0 0 16px rgba(200, 164, 92, .12), inset 0 2px 8px rgba(0, 0, 0, .45);
}

/* 百分比整体在环心居中；b 与 % 用内联基线对齐，% 自然落在数字底线上 */
.m-boot-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
    color: #FDF6E8;
}
.m-boot-pct-in { display: inline-block; line-height: 1; }
.m-boot-pct b {
    font-size: 34px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .7), 0 0 20px rgba(200, 164, 92, .35);
}
.m-boot-pct em {
    font-style: normal;
    font-size: 13px;
    color: #C8A45C;
    margin-left: 2px;
}

/* ---- 文案 ---- */
.m-boot-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .16em;
    color: #F0E4CE;
}
.m-boot-title i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 9px;
    border-radius: 50%;
    vertical-align: middle;
    background: #C8A45C;
    box-shadow: 0 0 10px #C8A45C;
    animation: mBootPulse 1.5s ease-in-out infinite;
}
@keyframes mBootPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .32; transform: scale(.7); }
}
.m-boot-stage {
    min-height: 21px;
    margin-bottom: 15px;
    font-size: 13.5px;
    letter-spacing: .02em;
    color: #B7A78F;
}

/* ---- 横向进度条 ---- */
.m-boot-track {
    position: relative;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 0 0 1px rgba(200, 164, 92, .12);
}
.m-boot-track i {
    position: relative;
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #8E6B3F, #C8A45C 60%, #EBD6A8);
    box-shadow: 0 0 14px rgba(200, 164, 92, .55);
    transition: width .18s linear;
}
.m-boot-track i::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: -34%;
    width: 34%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
    animation: mBootFlow 1.35s linear infinite;
}
@keyframes mBootFlow {
    0%   { left: -34%; }
    100% { left: 100%; }
}

/* ---- 七维度刻度：辅助层，刻意弱于主进度条，避免两者视觉混在一起 ---- */
.m-boot-dims { display: flex; gap: 6px; margin-top: 20px; }
.m-boot-dims i {
    flex: 1;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    transition: background .35s ease;
}
.m-boot-dims i.on { background: rgba(200, 164, 92, .58); }

.m-boot-meta {
    margin-top: 15px;
    font-size: 12px;
    letter-spacing: .05em;
    color: #8C7C66;
}
.m-boot-meta em {
    font-style: normal;
    color: #C8A45C;
    font-variant-numeric: tabular-nums;
}
.m-boot-meta i { font-style: normal; margin: 0 8px; color: rgba(200, 164, 92, .45); }

/* ---- 移动端 ---- */
@media (max-width: 480px) {
    .m-boot-panel { padding: 26px 20px 22px; border-radius: 17px; }
    .m-boot-ring { width: 112px; height: 112px; margin-bottom: 14px; }
    .m-boot-pct b { font-size: 29px; }
    .m-boot-title { font-size: 14px; letter-spacing: .12em; }
    .m-boot-stage { font-size: 12.5px; }
}

/* ---- 无障碍：减弱动效 ---- */
@media (prefers-reduced-motion: reduce) {
    .m-boot-panel::before,
    .m-boot-ring-dash,
    .m-boot-track i::after,
    .m-boot-title i { animation: none; }
    .m-boot,
    .m-boot-ring-bar,
    .m-boot-track i,
    .m-boot-dims i { transition: none; }
}
