/* ===== 标准溶液标定 · 滴定台 ===== */
.ssc {
    position: relative;
    background-color: #fbfdfc;
    background-image:
        linear-gradient(rgba(15, 118, 110, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 118, 110, .045) 1px, transparent 1px);
    background-size: 22px 22px;
    border: 1px solid #d8e7e3;
    border-radius: 12px;
    padding: 26px 24px;
    margin-bottom: 26px;
    box-shadow: 0 10px 30px rgba(18, 84, 78, .07);
}

/* ---- 滴定台 ---- */
.ssc-bench {
    display: grid;
    grid-template-columns: 168px 1fr;
    gap: 28px;
    align-items: stretch;
}

.ssc-burette { display: flex; flex-direction: column; align-items: center; }
.ssc-tube {
    position: relative;
    width: 46px; height: 236px;
    border-radius: 4px 4px 10px 10px;
    border: 1px solid #c6ddd8;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, .95) 0%,
        rgba(222, 240, 236, .55) 34%,
        rgba(255, 255, 255, .9) 100%);
    box-shadow: inset 3px 0 8px rgba(255, 255, 255, .9), inset -2px 0 6px rgba(148, 180, 174, .18);
}
.ssc-liquid {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 0;
    background: linear-gradient(180deg, #5eead4 0%, #14b8a6 42%, #0f766e 100%);
    transition: height .55s cubic-bezier(.4, 0, .2, 1);
}
.ssc-liquid::before {
    content: '';
    position: absolute; left: 0; right: 0; top: -3px; height: 5px;
    background: #99f6e4;
    border-radius: 50%;
    opacity: .85;
}
.ssc-scale {
    position: absolute; top: 8px; bottom: 8px; right: 3px; width: 13px;
    background: repeating-linear-gradient(to bottom, #a9c4bf 0 1px, transparent 1px 23px);
    opacity: .75;
}
.ssc-scale b {
    position: absolute; left: 16px;
    font: 700 8.5px/1 ui-monospace, monospace;
    color: #7fa19b; transform: translateY(-50%);
}
.ssc-tip {
    width: 8px; height: 22px;
    background: linear-gradient(180deg, #d9ebe7, #bcd7d2);
    border: 1px solid #c6ddd8; border-top: none;
    border-radius: 0 0 5px 5px;
    margin-top: -1px;
}
.ssc-drop {
    width: 7px; height: 9px; margin-top: 5px;
    border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
    background: #14b8a6; opacity: 0;
    animation: ssc-drip 1.9s ease-in infinite;
}
@keyframes ssc-drip {
    0%, 55% { opacity: 0; transform: translateY(-6px) scale(.7); }
    70% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(16px) scale(.85); }
}
.ssc-vol { margin-top: 12px; text-align: center; }
.ssc-vol span {
    display: block; font: 700 20px/1 ui-monospace, monospace; color: #0f766e;
    font-variant-numeric: tabular-nums;
}
.ssc-vol i { font-style: normal; font-size: 10px; color: #8aa5a0; letter-spacing: .04em; }

/* ---- 结果面板 ---- */
.ssc-panel {
    display: flex; flex-direction: column; gap: 14px;
    background: #fff; border: 1px solid #d8e7e3; border-radius: 10px;
    padding: 18px 20px;
}
.ssc-read { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ssc-read-label { font-size: 11px; color: #8aa5a0; letter-spacing: .08em; }
.ssc-read-num { display: flex; align-items: baseline; gap: 6px; width: 100%; }
.ssc-read-num b {
    font: 700 44px/.95 ui-monospace, SFMono-Regular, Consolas, monospace;
    color: #0f766e; font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.ssc-read-num i { font-style: normal; font-size: 12px; color: #8aa5a0; }
.ssc-read-f {
    font: 11px/1.4 ui-monospace, monospace; color: #7c918d;
    border-top: 1px dashed #ddeae7; padding-top: 8px; width: 100%;
}
.ssc-read-f b { color: #b45309; }

.ssc-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ssc-checks li {
    display: flex; align-items: center; gap: 9px;
    font-size: 12px; color: #4c5f5c;
    background: #f6fbfa; border: 1px solid #e3efec; border-radius: 6px;
    padding: 7px 11px;
}
.ssc-checks li.ng { background: #fff7f7; border-color: #f6dcdc; color: #a13b3b; }
.ssc-checks li b { margin-left: auto; font-family: ui-monospace, monospace; font-weight: 700; }
.ssc-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; flex: 0 0 7px; }
.ssc-checks li.ng .ssc-dot { background: #dc2626; }

.ssc-verdict {
    margin: 0; font-size: 12px; line-height: 1.6; color: #0f766e;
    background: #f0fdfa; border-left: 3px solid #14b8a6; border-radius: 0 6px 6px 0;
    padding: 9px 12px;
}
.ssc-verdict.bad { color: #9f1239; background: #fff5f6; border-left-color: #e11d48; }

/* ---- 原始记录 ---- */
.ssc-record { margin-top: 22px; border-top: 1px solid #d8e7e3; padding-top: 16px; }
.ssc-record-head {
    display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px;
}
.ssc-record-head span { font-size: 12px; font-weight: 700; color: #33514c; letter-spacing: .08em; }
.ssc-record-head i { font-style: normal; font-size: 10.5px; color: #9bb0ac; }
.ssc-lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 18px; }
.ssc-line--wide { grid-column: span 2; }
.ssc-line {
    display: flex; align-items: baseline; gap: 10px;
    border-bottom: 1px dotted #c9dcd8; padding: 7px 2px 5px;
}
.ssc-line > span {
    font-size: 11px; color: #7c918d; white-space: nowrap; flex: 0 0 auto;
}
.ssc-line input, .ssc-line select {
    flex: 1 1 auto; min-width: 0; width: 100%;
    border: none; background: transparent; outline: none;
    font: 700 12.5px/1.3 ui-monospace, monospace; color: #12403b;
    text-align: right; font-variant-numeric: tabular-nums;
}
.ssc-line select { text-align: left; font-family: inherit; font-weight: 600; cursor: pointer; }
.ssc-line input:focus, .ssc-line select:focus { background: #effaf8; }
.ssc-line input.is-bad { color: #b91c1c; background: #fff1f2; }
.ssc-formula {
    margin-top: 12px; font: 10.5px/1.7 ui-monospace, monospace; color: #93a8a4;
}
.ssc-formula code { background: #effaf8; padding: 1px 5px; border-radius: 3px; color: #0f766e; }

@media (max-width: 820px) {
    .ssc-bench { grid-template-columns: 1fr; gap: 18px; }
    .ssc-burette { flex-direction: row; justify-content: center; gap: 18px; align-items: flex-end; }
    .ssc-tube { height: 170px; }
    .ssc-vol { margin-top: 0; text-align: left; }
    .ssc-lines { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .ssc { padding: 18px 14px; }
    .ssc-read-num b { font-size: 34px; }
    .ssc-lines { grid-template-columns: 1fr; }
    .ssc-burette { flex-wrap: wrap; }
}

/* ---- 深色 ---- */
[data-theme="dark"] .ssc {
    background-color: #0e1614;
    background-image:
        linear-gradient(rgba(94, 234, 212, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 234, 212, .05) 1px, transparent 1px);
    border-color: #22322f; box-shadow: none;
}
[data-theme="dark"] .ssc-tube { border-color: #2b3f3b; background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(94,234,212,.06), rgba(255,255,255,.05)); }
[data-theme="dark"] .ssc-tip { background: #23332f; border-color: #2b3f3b; }
[data-theme="dark"] .ssc-vol span { color: #5eead4; }
[data-theme="dark"] .ssc-vol i, [data-theme="dark"] .ssc-read-label, [data-theme="dark"] .ssc-read-num i { color: #7c918d; }
[data-theme="dark"] .ssc-panel { background: #131c1a; border-color: #22322f; }
[data-theme="dark"] .ssc-read-num b { color: #5eead4; }
[data-theme="dark"] .ssc-read-f { color: #8aa5a0; border-color: #22322f; }
[data-theme="dark"] .ssc-read-f b { color: #fbbf24; }
[data-theme="dark"] .ssc-checks li { background: #16211f; border-color: #22322f; color: #b9ccc8; }
[data-theme="dark"] .ssc-checks li.ng { background: rgba(190, 18, 60, .14); border-color: rgba(244, 114, 114, .3); color: #fca5a5; }
[data-theme="dark"] .ssc-verdict { background: rgba(20, 184, 166, .1); color: #99f6e4; }
[data-theme="dark"] .ssc-verdict.bad { background: rgba(190, 18, 60, .12); color: #fda4af; }
[data-theme="dark"] .ssc-record { border-color: #22322f; }
[data-theme="dark"] .ssc-record-head span { color: #cfe3de; }
[data-theme="dark"] .ssc-line { border-color: #2b3f3b; }
[data-theme="dark"] .ssc-line > span { color: #7c918d; }
[data-theme="dark"] .ssc-line input, [data-theme="dark"] .ssc-line select { color: #d7ebe7; }
[data-theme="dark"] .ssc-line input:focus, [data-theme="dark"] .ssc-line select:focus { background: #1a2825; }
[data-theme="dark"] .ssc-formula { color: #7c918d; }
[data-theme="dark"] .ssc-formula code { background: #1a2825; color: #5eead4; }
