/* ============================================================
   nurse-exam-plan · 护士资格备考规划
   听诊器护士帽风（ne-）：护士白 + 藕粉/淡玫瑰主色 + 薄荷青辅色
   心电波形装饰线（内嵌 SVG data-URI）· 纯 CSS 燕尾护士帽 + 粉十字 · 听诊器圆环
   与编织麻袋 / 盾牌 / 冰晶等主题零重叠
   ============================================================ */
.ne-page {
    --ne-accent: #d17a92;          /* 藕粉/淡玫瑰 主色 */
    --ne-accent-deep: #a8546f;
    --ne-accent-soft: rgba(209, 122, 146, 0.12);
    --ne-accent2: #5aa9a4;         /* 听诊器薄荷青 辅色 */
    --ne-accent2-deep: #3c807b;
    --ne-accent2-soft: rgba(90, 169, 164, 0.12);
    --ne-bg: #fdf6f8;              /* 护士白 */
    --ne-panel: #ffffff;
    --ne-panel-2: #f9edf1;
    --ne-line: #edd7de;
    --ne-line-strong: #d9b3c0;
    --ne-ink: #3a2e33;
    --ne-sub: #8b767e;
    --ne-shadow: 0 6px 20px rgba(168, 84, 111, 0.10);

    color: var(--ne-ink);
    font-size: 15px;
    line-height: 1.8;
}

[data-theme="dark"] .ne-page {
    --ne-accent: #e59cb2;
    --ne-accent-deep: #f2bcd0;
    --ne-accent-soft: rgba(229, 156, 178, 0.15);
    --ne-accent2: #7fc6c0;
    --ne-accent2-deep: #a5dbd6;
    --ne-accent2-soft: rgba(127, 198, 192, 0.15);
    --ne-bg: #201a1d;
    --ne-panel: #2a2227;
    --ne-panel-2: #332a2f;
    --ne-line: #473941;
    --ne-line-strong: #5d4a53;
    --ne-ink: #f2e8ec;
    --ne-sub: #b3a0a8;
    --ne-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.ne-page h1, .ne-page h2, .ne-page h3 { line-height: 1.4; }
.ne-page b, .ne-page strong { color: var(--ne-accent-deep); }

/* ---------- 首屏 ---------- */
.ne-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(170px, 0.6fr) minmax(240px, 0.85fr);
    gap: 22px 26px;
    align-items: center;
    padding: 30px 32px 34px;
    margin-bottom: 24px;
    border-radius: 16px;
    border: 1px solid var(--ne-line-strong);
    background:
        radial-gradient(circle at 90% 8%, var(--ne-accent-soft) 0, transparent 40%),
        radial-gradient(circle at 4% 96%, var(--ne-accent2-soft) 0, transparent 36%),
        linear-gradient(180deg, var(--ne-bg) 0%, var(--ne-panel) 100%);
    box-shadow: var(--ne-shadow);
    overflow: hidden;
}
/* 淡斜纹底饰：柔和「绷带纹」 */
.ne-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, var(--ne-accent-soft) 0 2px, transparent 2px 22px);
    opacity: 0.35;
    pointer-events: none;
}
/* 心电波形底边线（内嵌 SVG，非外链） */
.ne-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='30' viewBox='0 0 170 30'%3E%3Cpath d='M0 19 H50 L58 6 L66 26 L74 3 L82 19 H170' fill='none' stroke='%23d17a92' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") repeat-x center / 170px 30px;
    opacity: 0.5;
    pointer-events: none;
}
.ne-hero > * { position: relative; z-index: 1; }

.ne-kicker {
    display: inline-block;
    padding: 5px 14px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: var(--ne-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
}
.ne-hero h1 { margin: 0 0 10px; font-size: clamp(25px, 3.2vw, 36px); font-weight: 900; }
.ne-hero-sub { margin: 0 0 14px; max-width: 56ch; color: var(--ne-sub); font-size: 15px; }
.ne-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ne-hero-chips li {
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid var(--ne-line-strong);
    background: var(--ne-panel);
    color: var(--ne-sub);
    font-size: 12px;
    font-weight: 700;
}

/* hero 装饰：纯 CSS 护士帽 + 听诊器 + 心电线 */
.ne-hero-med { display: grid; justify-items: center; gap: 12px; }
.ne-cap {
    position: relative;
    width: 148px;
    height: 92px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 62% 100%, 50% 68%, 38% 100%, 0 100%);
    background: linear-gradient(180deg, var(--ne-accent) 0%, var(--ne-accent-deep) 100%);
    filter: drop-shadow(0 8px 14px rgba(168, 84, 111, 0.30));
}
.ne-cap::before {
    content: "";
    position: absolute;
    inset: 3px 3px 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 61% 100%, 50% 66%, 39% 100%, 0 100%);
    background: var(--ne-panel);
}
.ne-cap-cross {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background:
        linear-gradient(var(--ne-accent), var(--ne-accent)) center / 9px 28px no-repeat,
        linear-gradient(var(--ne-accent), var(--ne-accent)) center / 28px 9px no-repeat;
    animation: ne-beat 2.6s ease-in-out infinite;
}
@keyframes ne-beat {
    0%, 100% { transform: translateX(-50%) scale(1); }
    12% { transform: translateX(-50%) scale(1.14); }
    24% { transform: translateX(-50%) scale(1); }
    36% { transform: translateX(-50%) scale(1.08); }
    48% { transform: translateX(-50%) scale(1); }
}
.ne-stetho { position: relative; width: 132px; height: 96px; }
.ne-stetho-ring {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 6px solid var(--ne-accent2);
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.5), transparent 62%);
    box-shadow: 0 6px 14px rgba(60, 128, 123, 0.28);
}
.ne-stetho-tube {
    position: absolute;
    top: 50px;
    left: 26px;
    width: 62px;
    height: 32px;
    border-left: 5px solid var(--ne-accent2);
    border-bottom: 5px solid var(--ne-accent2);
    border-bottom-left-radius: 56px;
}
.ne-stetho-head {
    position: absolute;
    bottom: 2px;
    right: 24px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ne-accent2-deep);
    box-shadow: inset 0 0 0 5px var(--ne-accent2);
}
.ne-ecg {
    width: 100%;
    height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='22' viewBox='0 0 170 22'%3E%3Cpath d='M0 14 H50 L58 5 L66 19 L74 2 L82 14 H170' fill='none' stroke='%235aa9a4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") repeat-x center / 170px 22px;
    opacity: 0.7;
}

/* hero 读数 / 结果 hero */
.ne-hero-readout, .ne-result-hero {
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid var(--ne-line-strong);
    background: var(--ne-panel);
    display: grid;
    gap: 4px;
    justify-items: start;
    box-shadow: var(--ne-shadow);
}
.ne-hero-readout { position: relative; z-index: 1; }
.ne-readout-label, .ne-rh-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--ne-sub);
}
.ne-readout-num, .ne-rh-num {
    font-size: 23px;
    font-weight: 900;
    color: var(--ne-accent-deep);
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
}
.ne-readout-meta, .ne-rh-sub { font-size: 13px; font-weight: 700; color: var(--ne-accent2-deep); }
.ne-readout-tip, .ne-rh-tip { margin-top: 4px; font-size: 12px; color: var(--ne-sub); opacity: 0.9; }
.ne-rh-note { margin: 2px 0 0; font-size: 12.5px; color: var(--ne-sub); }
.ne-rh-tip { color: var(--ne-accent-deep); opacity: 1; }
.ne-result-hero.is-ok { border-color: var(--ne-accent2); }
.ne-result-hero.is-ok .ne-rh-num { color: var(--ne-accent2-deep); }
.ne-result-hero.is-no { border-color: var(--ne-accent); background: var(--ne-panel-2); }

/* ---------- 测算区两栏 ---------- */
.ne-calc {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, 1fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 28px;
}
.ne-input-col { display: grid; gap: 16px; min-width: 0; }

.ne-panel {
    padding: 20px 22px;
    border: 1px solid var(--ne-line);
    border-radius: 14px;
    background: var(--ne-panel);
    box-shadow: var(--ne-shadow);
}
.ne-panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ne-panel-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.ne-panel-head p { margin: 2px 0 0; font-size: 13px; color: var(--ne-sub); }
.ne-step {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(160deg, var(--ne-accent) 0%, var(--ne-accent-deep) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

/* 字段 */
.ne-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ne-field { display: grid; gap: 6px; min-width: 0; }
.ne-field--wide { margin-top: 12px; }
.ne-label { font-size: 13px; font-weight: 700; }
.ne-select-wrap { position: relative; display: block; }
.ne-select-wrap::after {
    content: "▾";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ne-sub);
    pointer-events: none;
    font-size: 12px;
}
.ne-input {
    width: 100%;
    height: 44px;
    padding: 0 30px 0 12px;
    border: 1.5px solid var(--ne-line-strong);
    border-radius: 10px;
    background: var(--ne-panel-2);
    color: var(--ne-ink);
    font-size: 14px;
    font-weight: 700;
    outline: none;
    appearance: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ne-input--num { padding-right: 12px; }
.ne-input:focus { border-color: var(--ne-accent); box-shadow: 0 0 0 3px var(--ne-accent-soft); }
.ne-hint { margin: 12px 0 0; font-size: 12.5px; color: var(--ne-sub); }
.ne-hint--block { margin: 14px 0 0; }

/* 实习 toggle */
.ne-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1.5px solid var(--ne-line-strong);
    border-radius: 10px;
    overflow: hidden;
    height: 44px;
}
.ne-toggle-btn {
    border: none;
    background: var(--ne-panel-2);
    color: var(--ne-sub);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.14s;
}
.ne-toggle-btn + .ne-toggle-btn { border-left: 1.5px solid var(--ne-line-strong); }
.ne-toggle-btn.is-active { background: var(--ne-accent); color: #fff; }

/* 学时预设 */
.ne-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ne-preset {
    height: 44px;
    border: 1.5px solid var(--ne-line-strong);
    border-radius: 10px;
    background: var(--ne-panel-2);
    color: var(--ne-sub);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.14s;
}
.ne-preset:hover { border-color: var(--ne-accent); }
.ne-preset.is-active {
    border-color: var(--ne-accent-deep);
    background: var(--ne-accent-soft);
    color: var(--ne-accent-deep);
}

.ne-error {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(168, 84, 111, 0.45);
    background: var(--ne-accent-soft);
    color: var(--ne-accent-deep);
    font-size: 13px;
}
.ne-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ne-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 20px;
    border: 1.5px solid var(--ne-line-strong);
    border-radius: 10px;
    background: var(--ne-panel-2);
    color: var(--ne-ink);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s;
}
.ne-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(168, 84, 111, 0.18); }
.ne-btn--primary {
    border-color: var(--ne-accent-deep);
    background: linear-gradient(170deg, var(--ne-accent) 0%, var(--ne-accent-deep) 100%);
    color: #fff;
}

/* 结果列 */
.ne-result-col { display: grid; gap: 14px; position: sticky; top: 16px; }

.ne-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ne-kpi {
    padding: 12px 14px;
    border: 1px solid var(--ne-line);
    border-radius: 12px;
    background: var(--ne-panel);
    display: grid;
    gap: 2px;
}
.ne-kpi span { font-size: 12px; color: var(--ne-sub); font-weight: 700; }
.ne-kpi b { font-size: 19px; font-weight: 900; color: var(--ne-ink); line-height: 1.25; font-variant-numeric: tabular-nums; }
.ne-kpi small { font-size: 11px; color: var(--ne-sub); }

.ne-mini-card {
    padding: 16px 18px;
    border: 1px solid var(--ne-line);
    border-radius: 12px;
    background: var(--ne-panel);
}
.ne-mini-card h3 { margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--ne-accent-deep); }

.ne-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ne-table th, .ne-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px dashed var(--ne-line);
    vertical-align: top;
}
.ne-table th { font-size: 12px; font-weight: 800; color: var(--ne-sub); letter-spacing: 0.06em; white-space: nowrap; }
.ne-table td { font-variant-numeric: tabular-nums; }
.ne-table tr:last-child td { border-bottom: none; }
.ne-table--wide th, .ne-table--wide td { padding: 10px 12px; font-size: 13px; }
.ne-empty { text-align: center; color: var(--ne-sub); padding: 14px 0 !important; }
.ne-table-note { margin: 10px 0 0; font-size: 12px; color: var(--ne-sub); }

/* ---------- 通用 section ---------- */
.ne-section { margin-bottom: 28px; }
.ne-sec-head { margin-bottom: 14px; }
.ne-sec-head h2 { margin: 0 0 4px; font-size: 21px; font-weight: 900; }
.ne-sec-head p { margin: 0; font-size: 13.5px; color: var(--ne-sub); }

/* 人机对话卡 */
.ne-cbt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ne-cbt-card {
    position: relative;
    padding: 18px 16px 14px;
    border: 1px solid var(--ne-line);
    border-top: 3px solid var(--ne-accent);
    border-radius: 14px;
    background: var(--ne-panel);
    box-shadow: var(--ne-shadow);
    display: grid;
    gap: 6px;
    align-content: start;
}
.ne-cbt-card:nth-child(even) { border-top-color: var(--ne-accent2); }
.ne-cbt-ico { font-size: 26px; line-height: 1; }
.ne-cbt-card h3 { margin: 0; font-size: 15px; font-weight: 800; }
.ne-cbt-card p { margin: 0; font-size: 12.5px; color: var(--ne-sub); line-height: 1.7; }

/* 应对策略 */
.ne-strategy-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ne-strategy-list li {
    position: relative;
    padding: 10px 14px 10px 34px;
    border: 1px solid var(--ne-line);
    border-radius: 10px;
    background: var(--ne-panel-2);
    font-size: 13.5px;
    color: var(--ne-sub);
}
.ne-strategy-list li::before {
    content: "✚";
    position: absolute;
    left: 13px;
    top: 10px;
    color: var(--ne-accent);
    font-weight: 900;
}

/* 通过率卡 */
.ne-rate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ne-rate-card {
    padding: 18px 18px 16px;
    border: 1px solid var(--ne-line);
    border-radius: 14px;
    background: var(--ne-panel);
    box-shadow: var(--ne-shadow);
    display: grid;
    gap: 4px;
    justify-items: start;
}
.ne-rate-label { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; color: var(--ne-sub); }
.ne-rate-num {
    font-size: 26px;
    font-weight: 900;
    color: var(--ne-accent-deep);
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}
.ne-rate-card p { margin: 0; font-size: 12.5px; color: var(--ne-sub); line-height: 1.7; }

/* 注册清单 */
.ne-reg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ne-reg-bar-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ne-reg-bar {
    flex: 1;
    height: 10px;
    border-radius: 5px;
    background: var(--ne-panel-2);
    border: 1px solid var(--ne-line);
    overflow: hidden;
}
.ne-reg-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--ne-accent2) 0%, var(--ne-accent2-deep) 100%);
    transition: width 0.3s;
}
.ne-reg-bar-wrap b { font-size: 13px; color: var(--ne-accent2-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }

.ne-reg-list { display: grid; gap: 8px; }
.ne-reg-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid var(--ne-line);
    border-radius: 10px;
    background: var(--ne-panel-2);
    cursor: pointer;
    font-size: 13px;
    transition: border-color 0.14s;
}
.ne-reg-item:hover { border-color: var(--ne-accent); }
.ne-reg-item input {
    margin: 4px 0 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--ne-accent);
    cursor: pointer;
}
.ne-reg-item span { color: var(--ne-sub); }
.ne-reg-item span b { color: var(--ne-ink); }
.ne-reg-item.is-done { opacity: 0.72; }
.ne-reg-item.is-done span { text-decoration: line-through; }

.ne-docs { display: grid; gap: 8px; }
.ne-doc {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 12px;
    border: 1px dashed var(--ne-line-strong);
    border-radius: 10px;
    background: var(--ne-accent-soft);
    font-size: 13px;
    color: var(--ne-sub);
}
.ne-doc b {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ne-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

/* FAQ */
.ne-faq { display: grid; gap: 10px; }
.ne-faq .faq-item {
    border: 1px solid var(--ne-line);
    border-radius: 12px;
    background: var(--ne-panel);
    overflow: hidden;
}
.ne-faq .faq-item summary {
    padding: 13px 16px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
}
.ne-faq .faq-item summary::-webkit-details-marker { display: none; }
.ne-faq .faq-item summary::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ne-accent);
    font-weight: 900;
    font-size: 16px;
}
.ne-faq .faq-item[open] summary::after { content: "−"; }
.ne-faq .faq-a { padding: 0 16px 13px; font-size: 13.5px; color: var(--ne-sub); }

/* 留言 */
.ne-comments { margin-bottom: 30px; }

/* 返回顶部 */
.ne-top {
    position: fixed;
    right: 22px;
    bottom: 26px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--ne-line-strong);
    background: var(--ne-panel);
    color: var(--ne-accent-deep);
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s;
    box-shadow: var(--ne-shadow);
    z-index: 50;
}
.ne-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.ne-top:hover { background: var(--ne-accent); color: #fff; }

/* toast */
.ne-toast {
    position: fixed;
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%) translateY(10px);
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--ne-accent-deep);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s;
    z-index: 60;
}
.ne-toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .ne-hero { grid-template-columns: minmax(0, 1.5fr) minmax(230px, 0.8fr); }
    .ne-hero-med { display: none; }
    .ne-calc { grid-template-columns: 1fr; }
    .ne-result-col { position: static; }
    .ne-cbt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ne-rate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .ne-hero { grid-template-columns: 1fr; padding: 24px 20px 30px; }
    .ne-panel { padding: 16px 16px; }
    .ne-grid2, .ne-reg-grid, .ne-kpis, .ne-cbt-grid, .ne-rate-grid { grid-template-columns: 1fr; }
    .ne-actions { display: grid; grid-template-columns: 1fr; }
    .ne-actions .ne-btn { width: 100%; }
    .ne-sec-head h2 { font-size: 18px; }
    .ne-readout-num, .ne-rh-num { font-size: 20px; }
    .ne-rate-num { font-size: 22px; }
    .ne-table--wide { font-size: 12px; }
    .ne-table--wide th, .ne-table--wide td { padding: 7px 7px; }
    .ne-top { right: 14px; bottom: 18px; }
}
