/* ==========================================================================
   夜班津贴与值班费计算器 /tool/night-shift-allowance-calc
   视觉主题：午夜靛蓝 —— 深靛夜空底 + 月华金强调 + 薄荷绿（到手）
   签名元素：24 小时昼夜圆盘（SVG），一眼看出夜班落在哪个时段
   深浅双主题；深色模式跟随导航栏 #themeToggle，页面内不另设切换开关
   ========================================================================== */

.nsa-page {
    /* ---- 浅色（默认）---- */
    --nsa-bg: #eceef8;
    --nsa-bg-2: #e0e3f3;
    --nsa-card: #ffffff;
    --nsa-card-2: #f5f6fc;
    --nsa-ink: #151936;
    --nsa-ink-2: #474e73;
    --nsa-ink-3: #7b82a6;
    --nsa-line: #d7dcef;
    --nsa-line-2: #e7eaf7;
    --nsa-indigo: #2f3aa8;
    --nsa-indigo-2: #4c58d8;
    --nsa-soft: #e7eafb;
    --nsa-gold: #b87d14;
    --nsa-gold-2: #d9a13a;
    --nsa-gold-soft: #fdf1d9;
    --nsa-mint: #0d7f63;
    --nsa-mint-soft: #dff3ed;
    --nsa-coral: #c7402f;
    --nsa-coral-soft: #fbe8e5;
    --nsa-shadow: 0 18px 40px rgba(21, 25, 54, .12);
    --nsa-shadow-sm: 0 6px 18px rgba(21, 25, 54, .07);
    --nsa-radius: 20px;
    --nsa-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

:root[data-theme="dark"] .nsa-page {
    /* ---- 深色 ---- */
    --nsa-bg: #0a0d20;
    --nsa-bg-2: #0f1330;
    --nsa-card: #141936;
    --nsa-card-2: #1b2149;
    --nsa-ink: #e9ecff;
    --nsa-ink-2: #a6adD6;
    --nsa-ink-3: #717aa6;
    --nsa-line: #262c58;
    --nsa-line-2: #1d2250;
    --nsa-indigo: #8d97ff;
    --nsa-indigo-2: #aab2ff;
    --nsa-soft: #1d2250;
    --nsa-gold: #f0bd5c;
    --nsa-gold-2: #ffd487;
    --nsa-gold-soft: #33280f;
    --nsa-mint: #4fd0a6;
    --nsa-mint-soft: #0f2c25;
    --nsa-coral: #ff8f80;
    --nsa-coral-soft: #33191a;
    --nsa-shadow: 0 18px 44px rgba(0, 0, 0, .55);
    --nsa-shadow-sm: 0 6px 18px rgba(0, 0, 0, .42);
}

/* ===================== 页面外壳 ===================== */
.nsa-page {
    color: var(--nsa-ink);
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.78;
    font-variant-numeric: tabular-nums;
    padding: 24px 24px 32px;
    margin-top: 20px;
    border: 1px solid var(--nsa-line);
    border-radius: 24px;
    background:
        radial-gradient(900px 380px at 88% -6%, rgba(184, 125, 20, .16), transparent 62%),
        radial-gradient(760px 340px at 6% 4%, rgba(47, 58, 168, .16), transparent 60%),
        radial-gradient(rgba(255, 255, 255, .55) .8px, transparent 1.4px),
        linear-gradient(170deg, var(--nsa-bg-2), var(--nsa-bg));
    background-size: auto, auto, 22px 22px, auto;
    box-shadow: var(--nsa-shadow);
    overflow: hidden;
}
:root[data-theme="dark"] .nsa-page {
    background:
        radial-gradient(900px 380px at 88% -6%, rgba(240, 189, 92, .16), transparent 62%),
        radial-gradient(760px 340px at 6% 4%, rgba(141, 151, 255, .18), transparent 60%),
        radial-gradient(rgba(255, 255, 255, .55) .8px, transparent 1.4px),
        linear-gradient(170deg, var(--nsa-bg-2), var(--nsa-bg));
    background-size: auto, auto, 22px 22px, auto;
}

.nsa-page * { box-sizing: border-box; }

.nsa-page h1,
.nsa-page h2,
.nsa-page h3,
.nsa-page h4 { margin: 0; line-height: 1.38; letter-spacing: .2px; }
.nsa-page h1 { font-size: 33px; font-weight: 800; }
.nsa-page h2 { font-size: 20px; font-weight: 800; }
.nsa-page h3 { font-size: 15px; font-weight: 700; }
.nsa-page p { margin: 0; }

/* ===================== 首屏 ===================== */
.nsa-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 28px;
    align-items: start;
    margin-bottom: 18px;
}

.nsa-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--nsa-gold);
    background: var(--nsa-gold-soft);
    border: 1px solid var(--nsa-line);
    border-radius: 999px;
    padding: 3px 13px;
    margin-bottom: 12px;
}
.nsa-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nsa-gold);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--nsa-gold) 22%, transparent);
}

.nsa-title {
    background: linear-gradient(96deg, var(--nsa-indigo) 12%, var(--nsa-indigo) 46%, var(--nsa-gold) 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}
:root[data-theme="dark"] .nsa-title {
    background: linear-gradient(96deg, #aab2ff 8%, #cdd3ff 44%, var(--nsa-gold) 94%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nsa-lead {
    font-size: 15px;
    color: var(--nsa-ink-2);
    max-width: 60ch;
    line-height: 1.95;
    margin-bottom: 14px;
}
.nsa-lead b { color: var(--nsa-indigo); font-weight: 700; }
:root[data-theme="dark"] .nsa-lead b { color: var(--nsa-indigo-2); }

.nsa-tags { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.nsa-tags li {
    font-size: 12px;
    color: var(--nsa-ink-2);
    background: var(--nsa-card);
    border: 1px solid var(--nsa-line);
    border-radius: 8px;
    padding: 3px 10px;
}
.nsa-tags li::before { content: "✦ "; color: var(--nsa-gold); }

.nsa-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===================== 速览卡 ===================== */
.nsa-cardbox {
    position: relative;
    background: var(--nsa-card);
    border: 1px solid var(--nsa-line);
    border-radius: 18px;
    padding: 18px 20px 20px;
    box-shadow: var(--nsa-shadow-sm);
    overflow: hidden;
}
.nsa-cardbox::after {
    content: "";
    position: absolute;
    right: -46px;
    top: -52px;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 32%, color-mix(in srgb, var(--nsa-gold) 40%, transparent), transparent 62%);
    pointer-events: none;
}

.nsa-cardbox-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--nsa-line);
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.nsa-cardbox-head b { font-size: 15px; color: var(--nsa-indigo); }
.nsa-cardbox-head span { font-size: 12px; color: var(--nsa-ink-3); }

.nsa-hero-num { text-align: center; margin-bottom: 12px; position: relative; z-index: 1; }
.nsa-hero-num .k { font-size: 12px; color: var(--nsa-ink-3); letter-spacing: 1px; }
.nsa-hero-num .v {
    font-family: var(--nsa-mono);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.18;
    color: var(--nsa-indigo);
    letter-spacing: -.5px;
}
.nsa-hero-num .v em { font-style: normal; font-size: 16px; font-weight: 700; margin-left: 3px; color: var(--nsa-ink-2); }
.nsa-hero-num.is-gold .v { color: var(--nsa-gold); }
.nsa-hero-num.is-mint .v { color: var(--nsa-mint); }

.nsa-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: relative; z-index: 1; }
.nsa-mini > div {
    background: var(--nsa-card-2);
    border: 1px solid var(--nsa-line-2);
    border-radius: 12px;
    padding: 8px 10px;
}
.nsa-mini .k { font-size: 11px; color: var(--nsa-ink-3); display: block; }
.nsa-mini .v { font-family: var(--nsa-mono); font-size: 16px; font-weight: 700; color: var(--nsa-ink); }

/* ===================== 昼夜圆盘 ===================== */
.nsa-dial-wrap {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px dashed var(--nsa-line);
    position: relative;
    z-index: 1;
}
.nsa-dial { width: 168px; height: 168px; display: block; }
.nsa-dial .nsa-dial-bg { fill: none; stroke: var(--nsa-card-2); stroke-width: 17; }
.nsa-dial .nsa-dial-night { fill: none; stroke: var(--nsa-gold); stroke-width: 17; stroke-linecap: butt; opacity: .95; }
.nsa-dial .nsa-dial-shift { fill: none; stroke: var(--nsa-indigo); stroke-width: 7; stroke-linecap: round; }
.nsa-dial .nsa-dial-tick { stroke: var(--nsa-line); stroke-width: 2; }
.nsa-dial .nsa-dial-txt { fill: var(--nsa-ink-3); font-size: 11px; font-family: var(--nsa-mono); text-anchor: middle; }
.nsa-dial .nsa-dial-core { fill: var(--nsa-card-2); stroke: var(--nsa-line); stroke-width: 1.5; }
.nsa-dial .nsa-dial-core-t { fill: var(--nsa-ink); font-size: 15px; font-weight: 700; text-anchor: middle; }
.nsa-dial .nsa-dial-core-s { fill: var(--nsa-ink-3); font-size: 10px; text-anchor: middle; }

.nsa-dial-info { display: flex; flex-direction: column; gap: 7px; }
.nsa-dial-info .row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    color: var(--nsa-ink-2);
    border-bottom: 1px dotted var(--nsa-line-2);
    padding-bottom: 5px;
}
.nsa-dial-info .row b { font-family: var(--nsa-mono); font-size: 14px; color: var(--nsa-ink); }
.nsa-dial-info .row.is-key b { color: var(--nsa-indigo); }
.nsa-dial-strip {
    grid-column: 1 / -1;
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px dashed var(--nsa-line);
    font-size: 12.5px;
    color: var(--nsa-ink-2);
}
.nsa-dial-strip b { font-family: var(--nsa-mono); font-size: 13px; color: var(--nsa-gold); }
.nsa-dial-legend { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--nsa-ink-3); }
.nsa-dial-legend span { display: inline-flex; align-items: center; gap: 5px; }
.nsa-dial-legend i { width: 13px; height: 5px; border-radius: 3px; display: inline-block; }
.nsa-dial-legend i.night { background: var(--nsa-gold); height: 9px; border-radius: 2px; }
.nsa-dial-legend i.shift { background: var(--nsa-indigo); height: 4px; }

/* ===================== 示例 ===================== */
.nsa-presets {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding: 11px 14px;
    background: var(--nsa-card);
    border: 1px solid var(--nsa-line);
    border-radius: 14px;
    box-shadow: var(--nsa-shadow-sm);
}
.nsa-presets-label { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--nsa-gold); }
.nsa-presets button {
    font: inherit;
    font-size: 13px;
    color: var(--nsa-indigo);
    background: var(--nsa-soft);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 4px 13px;
    cursor: pointer;
    transition: all .15s ease;
}
.nsa-presets button:hover { border-color: var(--nsa-indigo); background: var(--nsa-card); }
.nsa-presets button.is-on { background: var(--nsa-indigo); color: #fff; }

/* ===================== 校验条 ===================== */
.nsa-errbar {
    border-radius: 14px;
    border: 1px solid var(--nsa-coral);
    background: var(--nsa-coral-soft);
    color: var(--nsa-coral);
    font-size: 13px;
    line-height: 1.75;
    padding: 11px 15px;
    margin-bottom: 16px;
}
.nsa-errbar.is-warn { border-color: var(--nsa-gold); background: var(--nsa-gold-soft); color: var(--nsa-gold); }
.nsa-errbar.is-ok { border-color: var(--nsa-mint); background: var(--nsa-mint-soft); color: var(--nsa-mint); }
.nsa-errbar ul { margin: 0; padding-left: 18px; }
.nsa-errbar b { font-weight: 800; }

/* ===================== 面板 ===================== */
.nsa-panel {
    background: var(--nsa-card);
    border: 1px solid var(--nsa-line);
    border-radius: var(--nsa-radius);
    padding: 22px 24px 24px;
    margin-bottom: 18px;
    box-shadow: var(--nsa-shadow-sm);
    position: relative;
}
.nsa-panel::before {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 0;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--nsa-indigo), var(--nsa-gold) 72%, transparent);
}

.nsa-panel-head { margin-bottom: 16px; }
.nsa-pk {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--nsa-indigo);
    background: var(--nsa-soft);
    border-radius: 6px;
    padding: 2px 10px;
    margin-bottom: 8px;
}
.nsa-panel-head h2 { margin-bottom: 5px; }
.nsa-panel-head p { font-size: 13px; color: var(--nsa-ink-2); max-width: 76ch; }
.nsa-panel-head p b { color: var(--nsa-ink); }

.nsa-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.nsa-col { min-width: 0; }

.nsa-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin: 0 0 11px;
}
.nsa-sub i {
    font-style: normal;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--nsa-indigo);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.nsa-sub i.is-gold { background: var(--nsa-gold); }
.nsa-sub-note { font-size: 12px; font-weight: 400; color: var(--nsa-ink-3); margin-left: auto; }

.nsa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.nsa-grid.is-3 { grid-template-columns: repeat(3, 1fr); }
.nsa-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.nsa-field.is-off { display: none; }
.nsa-label { font-size: 13px; font-weight: 600; color: var(--nsa-ink-2); }
.nsa-unit { font-size: 11px; font-weight: 400; color: var(--nsa-ink-3); }
.nsa-input,
.nsa-select {
    font: inherit;
    font-size: 14px;
    color: var(--nsa-ink);
    background: var(--nsa-card-2);
    border: 1px solid var(--nsa-line);
    border-radius: 11px;
    padding: 9px 12px;
    width: 100%;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.nsa-input:focus,
.nsa-select:focus {
    border-color: var(--nsa-indigo);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--nsa-indigo) 15%, transparent);
}
.nsa-mono { font-family: var(--nsa-mono); }

.nsa-hint { font-size: 12px; color: var(--nsa-ink-3); margin-top: 9px; line-height: 1.75; }
.nsa-hint b { color: var(--nsa-indigo); font-family: var(--nsa-mono); }

/* ===================== KPI ===================== */
.nsa-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 12px; }
.nsa-kpi {
    background: var(--nsa-card-2);
    border: 1px solid var(--nsa-line-2);
    border-radius: 14px;
    padding: 13px 15px;
    position: relative;
    overflow: hidden;
}
.nsa-kpi::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--nsa-indigo);
}
.nsa-kpi.is-gold::after { background: var(--nsa-gold); }
.nsa-kpi.is-mint::after { background: var(--nsa-mint); }
.nsa-kpi.is-coral::after { background: var(--nsa-coral); }
.nsa-kpi .k { font-size: 12px; color: var(--nsa-ink-3); display: block; margin-bottom: 3px; }
.nsa-kpi .v { font-family: var(--nsa-mono); font-size: 22px; font-weight: 800; color: var(--nsa-ink); line-height: 1.25; }
.nsa-kpi .v em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--nsa-ink-3); margin-left: 3px; }
.nsa-kpi.is-gold .v { color: var(--nsa-gold); }
.nsa-kpi.is-mint .v { color: var(--nsa-mint); }
.nsa-kpi.is-coral .v { color: var(--nsa-coral); }
.nsa-kpi .d { font-size: 11.5px; color: var(--nsa-ink-3); margin-top: 3px; line-height: 1.6; }

/* ===================== 构成拆解 ===================== */
.nsa-comp { margin-top: 16px; }
.nsa-comp-bar {
    display: flex;
    height: 22px;
    border-radius: 11px;
    overflow: hidden;
    background: var(--nsa-card-2);
    border: 1px solid var(--nsa-line-2);
    margin-bottom: 9px;
}
.nsa-comp-seg { height: 100%; transition: width .25s ease; }
.nsa-comp-seg.is-base { background: var(--nsa-indigo-2); }
.nsa-comp-seg.is-mult { background: var(--nsa-gold); }
.nsa-comp-seg.is-meal { background: var(--nsa-mint); }
.nsa-comp-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.nsa-comp-legend li { font-size: 12px; color: var(--nsa-ink-2); display: inline-flex; align-items: center; gap: 6px; }
.nsa-comp-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.nsa-comp-legend i.is-base { background: var(--nsa-indigo-2); }
.nsa-comp-legend i.is-mult { background: var(--nsa-gold); }
.nsa-comp-legend i.is-meal { background: var(--nsa-mint); }
.nsa-comp-legend b { font-family: var(--nsa-mono); color: var(--nsa-ink); }

/* ===================== 表格 ===================== */
.nsa-table-wrap { overflow-x: auto; border: 1px solid var(--nsa-line); border-radius: 14px; }
.nsa-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.nsa-table th,
.nsa-table td { padding: 10px 13px; text-align: left; border-bottom: 1px solid var(--nsa-line-2); }
.nsa-table th {
    font-size: 12px;
    color: var(--nsa-ink-3);
    background: var(--nsa-card-2);
    white-space: nowrap;
    font-weight: 700;
}
.nsa-table td { color: var(--nsa-ink); }
.nsa-table tbody tr:last-child td { border-bottom: none; }
.nsa-table tbody tr:hover { background: var(--nsa-card-2); }
.nsa-table .nsa-num { font-family: var(--nsa-mono); }
.nsa-table .nsa-num.is-hl { color: var(--nsa-indigo); font-weight: 700; }
.nsa-table .nsa-num.is-gold { color: var(--nsa-gold); font-weight: 700; }
.nsa-table .nsa-num.is-mint { color: var(--nsa-mint); font-weight: 700; }
.nsa-table .empty-row td { text-align: center; color: var(--nsa-ink-3); padding: 20px 0; }
.nsa-op { white-space: nowrap; text-align: right; }
.nsa-del {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: var(--nsa-coral-soft);
    color: var(--nsa-coral);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.nsa-del:hover { background: var(--nsa-coral); color: #fff; }

.nsa-bar-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.nsa-bar-row .nsa-input { max-width: 280px; }
.nsa-bar-row .nsa-select { max-width: 220px; }

/* ===================== 按钮 ===================== */
.nsa-btn {
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--nsa-ink);
    background: var(--nsa-card);
    border: 1px solid var(--nsa-line);
    border-radius: 11px;
    padding: 9px 18px;
    cursor: pointer;
    transition: all .15s ease;
}
.nsa-btn:hover { border-color: var(--nsa-indigo); color: var(--nsa-indigo); }
.nsa-btn--primary {
    background: var(--nsa-indigo);
    border-color: var(--nsa-indigo);
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--nsa-indigo) 28%, transparent);
}
.nsa-btn--primary:hover { background: var(--nsa-indigo-2); border-color: var(--nsa-indigo-2); color: #fff; }
.nsa-btn--gold {
    background: var(--nsa-gold);
    border-color: var(--nsa-gold);
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--nsa-gold) 26%, transparent);
}
.nsa-btn--gold:hover { filter: brightness(1.06); color: #fff; }
.nsa-btn--ghost { background: transparent; }
.nsa-btn:disabled { opacity: .55; cursor: not-allowed; }

.nsa-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ===================== 结论卡 ===================== */
.nsa-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 12px; }
.nsa-fact {
    background: var(--nsa-card-2);
    border: 1px solid var(--nsa-line-2);
    border-radius: 13px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--nsa-ink-2);
}
.nsa-fact b { color: var(--nsa-indigo); font-family: var(--nsa-mono); }
.nsa-fact.is-tip { border-left: 3px solid var(--nsa-gold); }
.nsa-fact.is-tip b { color: var(--nsa-gold); }
.nsa-fact.is-save { border-left: 3px solid var(--nsa-mint); }
.nsa-fact.is-save b { color: var(--nsa-mint); }
.nsa-fact.is-warn { border-left: 3px solid var(--nsa-coral); }
.nsa-fact.is-warn b { color: var(--nsa-coral); }

/* ===================== 文本块 / FAQ ===================== */
.nsa-prose { font-size: 14px; line-height: 2; color: var(--nsa-ink-2); }
.nsa-prose h3 { font-size: 16px; color: var(--nsa-ink); margin: 18px 0 8px; }
.nsa-prose h3:first-child { margin-top: 0; }
.nsa-prose p { margin: 0 0 10px; }
.nsa-prose b { color: var(--nsa-indigo); font-weight: 700; }
.nsa-prose ul { margin: 0 0 12px; padding-left: 20px; }
.nsa-prose li { margin-bottom: 5px; }
.nsa-prose .nsa-note {
    background: var(--nsa-gold-soft);
    border-left: 3px solid var(--nsa-gold);
    border-radius: 0 10px 10px 0;
    padding: 11px 14px;
    font-size: 13px;
    color: var(--nsa-ink-2);
}

.nsa-faq { display: flex; flex-direction: column; gap: 10px; }
.nsa-faq-item {
    background: var(--nsa-card-2);
    border: 1px solid var(--nsa-line-2);
    border-radius: 13px;
    overflow: hidden;
}
.nsa-faq-item summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--nsa-ink);
    padding: 13px 42px 13px 16px;
    list-style: none;
    position: relative;
    line-height: 1.7;
}
.nsa-faq-item summary::-webkit-details-marker { display: none; }
.nsa-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--nsa-gold);
    font-size: 19px;
    font-weight: 800;
}
.nsa-faq-item[open] summary::after { content: "−"; }
.nsa-faq-a {
    padding: 0 16px 14px;
    font-size: 13px;
    line-height: 1.95;
    color: var(--nsa-ink-2);
}
.nsa-faq-a b { color: var(--nsa-indigo); }

/* ===================== 预览 / 相关 ===================== */
.nsa-pre {
    margin: 0;
    background: var(--nsa-card-2);
    border: 1px solid var(--nsa-line-2);
    border-radius: 14px;
    padding: 14px 16px;
    font-family: var(--nsa-mono);
    font-size: 12.5px;
    line-height: 1.85;
    color: var(--nsa-ink-2);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 360px;
    overflow: auto;
}

.nsa-rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.nsa-rel a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 15px;
    background: var(--nsa-card-2);
    border: 1px solid var(--nsa-line-2);
    border-radius: 13px;
    text-decoration: none;
    transition: transform .15s ease, border-color .15s ease;
}
.nsa-rel a:hover { transform: translateY(-2px); border-color: var(--nsa-indigo); }
.nsa-rel .ic {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 19px;
    background: var(--nsa-soft);
}
.nsa-rel b { font-size: 13.5px; color: var(--nsa-ink); display: block; }
.nsa-rel small { font-size: 12px; color: var(--nsa-ink-3); }

/* ===================== 留言板 ===================== */
.nsa-comments { margin-bottom: 20px; }

/* ===================== Toast ===================== */
.nsa-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%) translateY(16px);
    background: rgba(21, 25, 54, .95);
    color: #fff;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 10px;
    opacity: 0;
    pointer-events: none;
    transition: all .3s ease;
    z-index: 9999;
    max-width: 86vw;
}
.nsa-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===================== 响应式 ===================== */
@media (max-width: 1040px) {
    .nsa-hero { grid-template-columns: 1fr; }
    .nsa-cardbox { max-width: 560px; }
}
@media (max-width: 900px) {
    .nsa-cols { grid-template-columns: 1fr; gap: 18px; }
    .nsa-grid.is-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .nsa-page { padding: 18px 14px 22px; border-radius: 18px; }
    .nsa-page h1 { font-size: 25px; }
    .nsa-panel { padding: 18px 15px 20px; }
    .nsa-panel::before { left: 15px; right: 15px; }
    .nsa-grid,
    .nsa-grid.is-3 { grid-template-columns: 1fr; }
    .nsa-mini { grid-template-columns: 1fr; }
    .nsa-dial-wrap { grid-template-columns: 1fr; justify-items: center; }
    .nsa-dial-info { width: 100%; }
    .nsa-hero-num .v { font-size: 32px; }
}

/* ===================== 打印：A4 夜班津贴核算单 ===================== */
.nsa-sheet { display: none; }

@media print {
    body > *:not(.detail-wrap) { display: none !important; }
    .detail-wrap .container > *:not(.nsa-sheet) { display: none !important; }
    .nsa-sheet {
        display: block !important;
        color: #000;
        font-size: 12px;
        line-height: 1.8;
    }
    .nsa-sheet h1 { font-size: 20px; color: #000; margin: 0 0 4px; }
    .nsa-sheet .nsa-sheet-meta { font-size: 11px; color: #444; margin-bottom: 14px; }
    .nsa-sheet table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
    .nsa-sheet th, .nsa-sheet td { border: 1px solid #999; padding: 5px 8px; text-align: left; }
    .nsa-sheet th { background: #eee; }
    .nsa-sheet .nsa-sheet-sign { margin-top: 26px; display: flex; gap: 60px; color: #333; }
    .nsa-toast, .nsa-comments, .nsa-errbar { display: none !important; }
}
