/* 贤邻 · 组织健康度诊断 - 前端样式 */
:root {
    --xoh-bg: #f8f2e6;
    --xoh-panel: #ffffff;
    --xoh-ink: #3a2e26;
    --xoh-muted: #8a7e72;
    --xoh-primary: #6b4a38;
    --xoh-primary-soft: #efe5da;
    --xoh-accent: #a8bba0;
    --xoh-line: #e8dfd2;
    --xoh-s1: #b87056;
    --xoh-s2: #c9a86a;
    --xoh-s3: #b5a871;
    --xoh-s4: #94b088;
    --xoh-s5: #5e7f5c;
}

.xoh-app {
    max-width: 640px;
    margin: 0 auto;
    background: var(--xoh-bg);
    min-height: 100vh;
    position: relative;
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--xoh-ink);
    line-height: 1.7;
    font-size: 15px;
    box-sizing: border-box;
}

.xoh-app *, .xoh-app *::before, .xoh-app *::after {
    box-sizing: border-box;
}

.xoh-hd {
    background: var(--xoh-primary);
    color: #fff;
    padding: 16px 18px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.xoh-hd h1 {
    font-size: 17px;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
}

.xoh-hd .xoh-sub {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 3px;
}

.xoh-prog {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.xoh-prog .xoh-p {
    flex: 1;
    height: 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.25);
}

.xoh-prog .xoh-p.on {
    background: #fff;
}

.xoh-wrap {
    padding: 18px 16px 100px;
}

.xoh-card {
    background: var(--xoh-panel);
    border: 1px solid var(--xoh-line);
    border-radius: 16px;
    padding: 20px 18px;
    margin-bottom: 16px;
}

.xoh-sec-t {
    font-size: 18px;
    font-weight: 700;
    color: var(--xoh-primary);
    margin: 0 0 6px;
}

.xoh-hint {
    color: var(--xoh-muted);
    font-size: 13px;
    margin: 0 0 16px;
}

.xoh-step-dot {
    display: inline-block;
    background: var(--xoh-accent);
    color: #fff;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* 表单 */
.xoh-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.xoh-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.xoh-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.xoh-field label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--xoh-ink);
}

.xoh-field input,
.xoh-field select {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--xoh-line);
    background: #fff;
    font-size: 15px;
    color: var(--xoh-ink);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.xoh-field input:focus,
.xoh-field select:focus {
    border-color: var(--xoh-primary);
    box-shadow: 0 0 0 3px rgba(107, 74, 56, 0.08);
}

.xoh-req {
    color: var(--xoh-s1);
}

/* 阶段测评题 */
.xoh-qq {
    margin: 16px 0;
}

.xoh-qq .xoh-qt {
    font-weight: 600;
    font-size: 14.5px;
    margin-bottom: 10px;
}

.xoh-opt {
    border: 1px solid var(--xoh-line);
    border-radius: 12px;
    padding: 13px 14px;
    margin: 9px 0;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: 0.15s;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.xoh-opt:hover {
    border-color: var(--xoh-primary);
}

.xoh-opt.xoh-sel {
    background: var(--xoh-primary);
    color: #fff;
    border-color: var(--xoh-primary);
}

.xoh-opt .xoh-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--xoh-line);
    font-size: 11px;
    color: var(--xoh-muted);
    flex: 0 0 20px;
    margin-top: 1px;
}

.xoh-opt.xoh-sel .xoh-dot {
    border-color: #fff;
    color: #fff;
}

/* 阶段结果 */
.xoh-result {
    background: var(--xoh-primary-soft);
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    margin: 10px 0 18px;
}

.xoh-result .xoh-big {
    font-size: 26px;
    font-weight: 800;
    color: var(--xoh-primary);
}

.xoh-result .xoh-sub {
    font-size: 13px;
    color: var(--xoh-muted);
    margin-top: 6px;
}

.xoh-stage-pick {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.xoh-stage-pick div {
    border: 1px solid var(--xoh-line);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: 0.15s;
}

.xoh-stage-pick div:hover {
    border-color: var(--xoh-primary);
}

.xoh-stage-pick div.xoh-sel {
    background: var(--xoh-primary);
    color: #fff;
    border-color: var(--xoh-primary);
}

/* 25维度 */
.xoh-space-h {
    font-size: 16px;
    font-weight: 700;
    color: var(--xoh-primary);
    margin: 20px 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.xoh-space-h .xoh-bd {
    font-size: 11px;
    background: var(--xoh-primary-soft);
    color: var(--xoh-primary);
    padding: 2px 9px;
    border-radius: 20px;
}

.xoh-dim {
    border: 1px solid var(--xoh-line);
    border-radius: 14px;
    padding: 15px 14px;
    margin: 12px 0;
    background: #fcfbf7;
}

.xoh-dim .xoh-di {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 5px;
    color: var(--xoh-primary);
}

.xoh-dim .xoh-stem {
    font-size: 13px;
    color: var(--xoh-muted);
    margin-bottom: 10px;
}

.xoh-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    min-width: 0;
}

.xoh-pick .xoh-pl {
    font-size: 13px;
    font-weight: 600;
    color: var(--xoh-primary);
    flex: 0 0 70px;
}

.xoh-pick.xoh-want .xoh-pl {
    color: var(--xoh-accent);
}

.xoh-pwrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.xoh-pbtn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--xoh-line);
    background: #fff;
    font-size: 13px;
    color: var(--xoh-ink);
    text-align: left;
    cursor: pointer;
    line-height: 1.5;
    min-height: 44px;
    overflow: hidden;
}

.xoh-pbtn .xoh-ptxt {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xoh-pbtn .xoh-arr {
    flex: 0 0 12px;
    color: var(--xoh-muted);
    font-size: 10px;
    line-height: 1;
}

.xoh-pick.xoh-sel .xoh-pbtn {
    background: var(--xoh-primary-soft);
    border-color: var(--xoh-primary);
}

.xoh-pick.xoh-want.xoh-sel .xoh-pbtn {
    background: #f3ead8;
    border-color: var(--xoh-accent);
}

.xoh-pmenu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    background: #fff;
    border: 1px solid var(--xoh-line);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(58, 46, 38, 0.12);
    max-height: 260px;
    overflow-y: auto;
    display: none;
}

.xoh-pmenu.xoh-open {
    display: block;
}

.xoh-pi {
    padding: 11px 12px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.55;
    color: var(--xoh-ink);
    border-bottom: 1px solid var(--xoh-line);
    word-break: break-word;
    white-space: normal;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.xoh-pi:last-child {
    border-bottom: none;
}

.xoh-pi .xoh-ltr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 5px;
    background: var(--xoh-primary-soft);
    color: var(--xoh-primary);
    font-weight: 700;
    font-size: 12px;
    flex: 0 0 20px;
    margin-top: 1px;
}

.xoh-pick.xoh-want .xoh-pi .xoh-ltr {
    background: #f3ead8;
    color: var(--xoh-accent);
}

.xoh-pi:hover {
    background: var(--xoh-primary-soft);
}

.xoh-pick.xoh-want .xoh-pi:hover,
.xoh-pick.xoh-want .xoh-pi.xoh-sel {
    background: #f3ead8;
}

.xoh-pi.xoh-sel {
    background: var(--xoh-primary-soft);
    font-weight: 600;
}

/* AI就绪度 */
.xoh-rd {
    border: 1px solid var(--xoh-line);
    border-radius: 14px;
    padding: 15px 14px;
    margin: 12px 0;
    background: #fcfbf7;
}

.xoh-rd .xoh-rn {
    font-weight: 700;
    font-size: 15px;
    color: var(--xoh-primary);
}

.xoh-rd .xoh-rq {
    font-size: 13px;
    color: var(--xoh-muted);
    margin: 4px 0 10px;
}

.xoh-ro {
    border: 1px solid var(--xoh-line);
    border-radius: 11px;
    padding: 11px 12px;
    margin: 7px 0;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    transition: 0.15s;
}

.xoh-ro:hover {
    border-color: var(--xoh-primary);
}

.xoh-ro.xoh-sel {
    background: var(--xoh-primary);
    color: #fff;
    border-color: var(--xoh-primary);
}

/* 报告 */
.xoh-kpi {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 8px 0 16px;
}

.xoh-kpi div {
    background: var(--xoh-primary-soft);
    border-radius: 12px;
    padding: 14px 6px;
    text-align: center;
}

.xoh-kpi .xoh-v {
    font-size: 24px;
    font-weight: 800;
    color: var(--xoh-primary);
}

.xoh-kpi .xoh-l {
    font-size: 11.5px;
    color: var(--xoh-muted);
    margin-top: 2px;
}

.xoh-rep-h {
    font-size: 15.5px;
    color: var(--xoh-primary);
    border-left: 4px solid var(--xoh-accent);
    padding-left: 10px;
    margin: 22px 0 10px;
    font-weight: 700;
}

.xoh-rep-block {
    margin: 8px 0 16px;
}

.xoh-tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 6px;
    font-size: 12px;
    margin: 2px;
}

.xoh-tag.xoh-good {
    background: #dee5d4;
    color: var(--xoh-s5);
}

.xoh-tag.xoh-warn {
    background: #f4e3cd;
    color: #9c6a35;
}

.xoh-tag.xoh-bad {
    background: #f0d9d5;
    color: #9c4a3c;
}

.xoh-tag.xoh-info {
    background: var(--xoh-primary-soft);
    color: var(--xoh-primary);
}

.xoh-rep-overview {
    background: var(--xoh-primary-soft);
    border-radius: 12px;
    padding: 15px 14px;
    font-size: 14px;
    line-height: 1.85;
    color: var(--xoh-ink);
}

.xoh-rep-overview b {
    color: var(--xoh-primary);
}

.xoh-stage-task {
    background: #fcfbf7;
    border: 1px solid var(--xoh-line);
    border-radius: 12px;
    padding: 13px 14px;
    margin: 9px 0;
}

.xoh-stage-task .xoh-st-intro {
    font-size: 13px;
    color: var(--xoh-muted);
    margin-bottom: 9px;
    line-height: 1.75;
}

.xoh-stage-task ol {
    margin: 6px 0 0 22px;
    padding: 0;
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--xoh-ink);
}

.xoh-stage-task ol li {
    margin: 3px 0;
}

.xoh-prio-item {
    border: 1px solid var(--xoh-line);
    border-radius: 12px;
    padding: 13px 14px;
    margin: 11px 0;
    background: #fcfbf7;
}

.xoh-prio-item.xoh-gap-1 {
    border-left: 4px solid var(--xoh-s4);
}

.xoh-prio-item.xoh-gap-2 {
    border-left: 4px solid var(--xoh-s2);
}

.xoh-prio-item.xoh-gap-3 {
    border-left: 4px solid var(--xoh-s1);
}

.xoh-prio-h {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 14.5px;
    color: var(--xoh-primary);
    margin-bottom: 7px;
    gap: 8px;
    flex-wrap: wrap;
}

.xoh-prio-h .xoh-gap-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 700;
}

.xoh-prio-h .xoh-gap-1 {
    background: #eef1e0;
    color: #6b7e35;
}

.xoh-prio-h .xoh-gap-2 {
    background: #f4e3cd;
    color: #9c6a35;
}

.xoh-prio-h .xoh-gap-3 {
    background: #f0d9d5;
    color: #9c4a3c;
}

.xoh-prio-nowwant {
    font-size: 13px;
    color: var(--xoh-muted);
    margin: 5px 0 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.xoh-prio-nowwant .xoh-arrow {
    color: var(--xoh-accent);
    font-weight: 700;
}

.xoh-prio-task {
    margin: 6px 0;
    padding: 9px 11px;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    line-height: 1.75;
}

.xoh-prio-task .xoh-lbl {
    display: inline-block;
    font-size: 11.5px;
    color: var(--xoh-primary);
    background: var(--xoh-primary-soft);
    padding: 1px 8px;
    border-radius: 8px;
    margin-right: 6px;
    font-weight: 600;
    vertical-align: 1px;
}

.xoh-prio-summary {
    margin: 9px 0 0;
    padding: 9px 11px;
    border-radius: 8px;
    background: #f3ead8;
    font-size: 13px;
    line-height: 1.8;
    color: #5c4a3e;
    border-left: 3px solid var(--xoh-accent);
}

.xoh-space-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--xoh-line);
    padding: 11px 0;
    font-size: 13.5px;
}

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

.xoh-space-row .xoh-sn {
    font-weight: 700;
    color: var(--xoh-primary);
    flex: 0 0 80px;
}

.xoh-space-row .xoh-sc {
    flex: 1;
    padding: 0 10px;
    color: var(--xoh-ink);
    font-size: 12.8px;
}

.xoh-space-row .xoh-sv {
    flex: 0 0 80px;
    text-align: right;
    font-size: 12.5px;
    color: var(--xoh-muted);
}

.xoh-space-row .xoh-sv b {
    color: var(--xoh-primary);
    font-size: 14.5px;
    font-weight: 800;
}

.xoh-space-row .xoh-pdim {
    font-size: 11.5px;
    color: var(--xoh-accent);
    margin-top: 2px;
}

.xoh-barw {
    background: var(--xoh-line);
    border-radius: 6px;
    height: 13px;
    overflow: hidden;
    min-width: 60px;
    margin-top: 5px;
}

.xoh-bar {
    height: 100%;
}

.xoh-cta {
    background: #fbf6ec;
    border: 1px solid #ecdcc2;
    border-radius: 12px;
    padding: 15px 16px;
    font-size: 14px;
    color: #7a5a30;
    margin-top: 16px;
    line-height: 1.75;
}

.xoh-final-tip {
    background: #fbf6ec;
    border: 1px solid #ecdcc2;
    border-left: 4px solid var(--xoh-accent);
    border-radius: 12px;
    padding: 15px 16px;
    font-size: 14px;
    color: #5c4a3e;
    margin-top: 16px;
    line-height: 1.8;
}

.xoh-final-tip .xoh-lbl {
    display: inline-block;
    font-size: 11.5px;
    color: var(--xoh-primary);
    background: var(--xoh-primary-soft);
    padding: 2px 9px;
    border-radius: 8px;
    margin-right: 6px;
    font-weight: 600;
    vertical-align: 1px;
}

.xoh-app.xoh-gate-active .xoh-hd,
.xoh-app.xoh-gate-active .xoh-nav {
    display: none;
}

.xoh-gate-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 40px 28px 100px;
    box-sizing: border-box;
}

.xoh-gate-screen.xoh-hidden {
    display: none;
}

.xoh-gate-brand {
    margin-bottom: 48px;
}

.xoh-gate-logo {
    display: inline-block;
    color: var(--xoh-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 18px;
    padding: 6px 16px;
    border: 1px solid var(--xoh-line);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.6);
}

.xoh-gate-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--xoh-primary);
    margin: 0 0 10px;
    letter-spacing: 1px;
}

.xoh-gate-tagline {
    color: var(--xoh-muted);
    font-size: 14px;
    margin: 0;
    letter-spacing: 1px;
}

.xoh-gate-form {
    width: 100%;
    max-width: 320px;
}

.xoh-gate-input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--xoh-line);
    border-radius: 14px;
    background: #fff;
    color: var(--xoh-ink);
    font-size: 15px;
    text-align: center;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.xoh-gate-input:focus {
    border-color: var(--xoh-primary);
    box-shadow: 0 0 0 3px var(--xoh-primary-soft);
}

.xoh-gate-error {
    color: #9c4a3c;
    font-size: 13px;
    margin: 8px 0 0;
    min-height: 18px;
}

.xoh-gate-btn {
    width: 100%;
    margin-top: 18px;
    padding: 14px 28px;
    border: none;
    border-radius: 30px;
    background: var(--xoh-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 4px;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 6px 18px rgba(107, 74, 56, 0.22);
}

.xoh-gate-btn:hover {
    opacity: 0.94;
}

.xoh-gate-btn:active {
    transform: scale(0.97);
    box-shadow: 0 3px 10px rgba(107, 74, 56, 0.18);
}

.xoh-gate-foot {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    color: var(--xoh-muted);
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
    padding: 0 28px;
    margin: 0;
}

.xoh-report-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    border-top: 1px dashed var(--xoh-line);
    padding-top: 16px;
}

.xoh-btn-action {
    flex: 1;
    min-width: 140px;
    padding: 11px 14px;
    border: none;
    border-radius: 10px;
    background: var(--xoh-primary);
    color: #fff;
    font-size: 14.5px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
    transition: transform 0.15s, opacity 0.15s;
}

.xoh-btn-action:hover {
    opacity: 0.92;
}

.xoh-btn-action:active {
    transform: scale(0.97);
}

.xoh-btn-action[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.xoh-btn-action-sub {
    background: var(--xoh-accent);
    color: #fff;
}

.xoh-report-actions .xoh-hint {
    flex: 0 0 100%;
    text-align: center;
    margin-top: 6px;
    color: var(--xoh-accent);
    min-height: 18px;
}

/* 导航 */
.xoh-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-top: 1px solid var(--xoh-line);
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    z-index: 20;
}

.xoh-nav button {
    flex: 1;
    padding: 13px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    background: var(--xoh-primary);
    color: #fff;
    cursor: pointer;
    transition: opacity 0.15s;
}

.xoh-nav button:hover {
    opacity: 0.92;
}

.xoh-nav button.xoh-ghost {
    background: #fff;
    color: var(--xoh-primary);
    border: 1px solid var(--xoh-primary);
    flex: 0 0 38%;
}

.xoh-nav button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.xoh-hidden {
    display: none !important;
}

.xoh-toast {
    position: fixed;
    bottom: 84px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3a36;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    opacity: 0;
    transition: 0.3s;
    z-index: 60;
    pointer-events: none;
}

.xoh-toast.xoh-show {
    opacity: 0.96;
}

/* 响应式 */
@media (max-width: 480px) {
    .xoh-field-row {
        grid-template-columns: 1fr;
    }
    .xoh-stage-pick {
        grid-template-columns: 1fr;
    }
    .xoh-kpi {
        grid-template-columns: 1fr;
    }
    .xoh-prio-h {
        flex-direction: column;
        align-items: flex-start;
    }
}
