/* #43 屏幕时间评估 · 数字健康周报风（独立设计系统 stc-） */
.stc-page, .stc-modal, .stc-toast {
    --stc-bg: #f5f7fb;
    --stc-surface: #ffffff;
    --stc-surface-2: #edf0f7;
    --stc-ink: #202a40;
    --stc-ink-2: #66748f;
    --stc-line: #d8deeb;
    --stc-brand: #4545a6;
    --stc-cyan: #159fb6;
    --stc-coral: #ef6a63;
    --stc-green: #2f9d78;
    --stc-track: #e2e7f2;
    --stc-shadow: 0 12px 32px rgba(32, 42, 64, .10);
}
:root[data-theme="dark"] .stc-page,
:root[data-theme="dark"] .stc-modal,
:root[data-theme="dark"] .stc-toast {
    --stc-bg: #121625;
    --stc-surface: #1b2136;
    --stc-surface-2: #252d47;
    --stc-ink: #e9edfa;
    --stc-ink-2: #a4b0cc;
    --stc-line: #36405e;
    --stc-brand: #aaa6ff;
    --stc-cyan: #63d2e4;
    --stc-coral: #ff978f;
    --stc-green: #72dcb0;
    --stc-track: #2b3450;
    --stc-shadow: 0 16px 40px rgba(0, 0, 0, .42);
}
.stc-page [hidden] { display: none !important; }
.stc-page {
    background: var(--stc-bg); color: var(--stc-ink); padding: 26px 0 60px;
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
    font-size: 15px; line-height: 1.85;
    background-image: radial-gradient(circle at 8% 8%, rgba(69, 69, 166, .10), transparent 32%), radial-gradient(circle at 92% 40%, rgba(21, 159, 182, .09), transparent 30%);
}
.stc-wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.stc-page b { color: var(--stc-brand); }
.stc-page h1, .stc-page h2, .stc-page h3 { line-height: 1.35; letter-spacing: -.02em; }
.stc-page h2 { font-size: 23px; margin: 0; font-weight: 850; }
.stc-page h3 { font-size: 17px; margin: 0 0 10px; font-weight: 800; }
.stc-page p { margin: 0; }
.stc-page input, .stc-page select, .stc-page textarea {
    width: 100%; box-sizing: border-box; font-family: inherit; font-size: 14px; color: var(--stc-ink);
    background: var(--stc-surface); border: 1px solid var(--stc-line); border-radius: 9px; padding: 9px 11px; outline: none;
}
.stc-page input:focus, .stc-page select:focus, .stc-page textarea:focus { border-color: var(--stc-cyan); box-shadow: 0 0 0 3px rgba(21, 159, 182, .16); }

/* 首屏 */
.stc-hero { display: grid; grid-template-columns: 1.06fr .94fr; gap: 34px; margin-top: 22px; align-items: start; }
.stc-hero-copy { min-width: 0; padding-top: 10px; }
.stc-kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 850; letter-spacing: .1em; color: var(--stc-brand); }
.stc-kicker-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--stc-cyan); }
.stc-kicker em { font-style: normal; color: var(--stc-ink-2); font-weight: 600; border-left: 1px solid var(--stc-line); padding-left: 9px; }
.stc-hero h1 { font-size: clamp(34px, 4.6vw, 54px); margin: 20px 0 16px; font-weight: 900; }
.stc-sub { font-size: 17px; line-height: 2; color: var(--stc-ink-2); max-width: 620px; }
.stc-keyline { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 18px; }
.stc-keyline > div { flex: 1; min-width: 150px; background: var(--stc-surface); border: 1px solid var(--stc-line); border-radius: 10px; padding: 12px 14px; box-shadow: var(--stc-shadow); }
.stc-keyline b { display: block; font-size: 21px; }
.stc-keyline span { font-size: 11px; color: var(--stc-ink-2); }
.stc-disclaimer { font-size: 12px; line-height: 1.9; color: var(--stc-coral); }
.stc-phone { background: var(--stc-surface); border: 1px solid var(--stc-line); border-radius: 26px; padding: 10px; box-shadow: var(--stc-shadow); min-width: 0; }
.stc-phone-notch { width: 90px; height: 7px; border-radius: 6px; background: var(--stc-line); margin: 4px auto 10px; }
.stc-phone-screen { background: var(--stc-surface-2); border-radius: 18px; padding: 18px; }
.stc-phone-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 850; margin-bottom: 12px; }
.stc-phone-head span { font-size: 10px; font-weight: 700; color: var(--stc-ink-2); }
.stc-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-bottom: 14px; }
.stc-days label { font-size: 10px; font-weight: 750; text-align: center; min-width: 0; }
.stc-days input { margin-top: 4px; padding: 7px 2px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.stc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.stc-field { display: block; font-size: 12px; font-weight: 750; }
.stc-field small { font-size: 10px; font-weight: 500; color: var(--stc-ink-2); margin-left: 5px; }
.stc-field select, .stc-field input { margin-top: 5px; }
.stc-symptoms { margin-bottom: 10px; }
.stc-symptoms-label { font-size: 12px; font-weight: 750; margin-bottom: 7px; }
.stc-symptoms-label small { font-size: 10px; font-weight: 500; color: var(--stc-ink-2); }
.stc-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.stc-chips label { display: flex; align-items: center; gap: 6px; font-size: 11px; background: var(--stc-surface); border: 1px solid var(--stc-line); border-radius: 7px; padding: 7px 9px; cursor: pointer; min-width: 0; }
.stc-chips input { width: 14px; height: 14px; flex: none; }
.stc-btn-main { display: block; width: 100%; border: 0; border-radius: 9px; padding: 14px; font-family: inherit; font-size: 15px; font-weight: 850; color: #fff; cursor: pointer; background: linear-gradient(100deg, var(--stc-brand), var(--stc-cyan)); }
.stc-btn-main span { float: right; }
.stc-form-foot { font-size: 11px; color: var(--stc-ink-2); margin-top: 10px; }
.stc-err { font-size: 12px; font-weight: 700; color: var(--stc-coral); background: rgba(239, 106, 99, .11); padding: 9px 11px; border-radius: 8px; margin-top: 10px; }

/* 区块 */
.stc-sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.stc-sec-head > span { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 8px; flex: none; background: var(--stc-brand); color: #fff; font-size: 11px; font-weight: 850; }
.stc-sec-head p { font-size: 12px; color: var(--stc-ink-2); }
.stc-page section.stc-report, .stc-page section.stc-plan, .stc-page section.stc-batch, .stc-page section.stc-tools { margin-top: 44px; }
.stc-card, .stc-score-card, .stc-kpi-card {
    background: var(--stc-surface); border: 1px solid var(--stc-line); border-radius: 14px; padding: 22px; box-shadow: var(--stc-shadow); min-width: 0;
}
.stc-card h3 small { font-size: 11px; font-weight: 500; color: var(--stc-ink-2); margin-left: 8px; }
.stc-scroll { width: 100%; overflow-x: auto; }
.stc-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 500px; }
.stc-table th, .stc-table td { padding: 10px 12px; border-bottom: 1px solid var(--stc-line); text-align: left; }
.stc-table th { font-size: 11px; color: var(--stc-ink-2); background: var(--stc-surface-2); font-weight: 750; }
.stc-table tr.is-bad td { color: var(--stc-coral); }
.stc-note { font-size: 11px; line-height: 1.85; color: var(--stc-ink-2); margin-top: 12px; }

/* 报告 */
.stc-report-grid { display: grid; grid-template-columns: .68fr 1.32fr; gap: 18px; }
.stc-score-cap { font-size: 10px; letter-spacing: .14em; font-weight: 850; color: var(--stc-brand); }
.stc-score-ring { position: relative; width: 190px; max-width: 100%; margin: 12px auto 4px; }
.stc-score-ring svg { width: 100%; display: block; }
.stc-score-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stc-score-num b { font-size: 42px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.stc-score-num span { font-size: 11px; color: var(--stc-ink-2); margin-top: 4px; }
.stc-level { display: inline-block; font-size: 14px; font-weight: 850; color: #fff; background: var(--stc-cyan); border-radius: 7px; padding: 6px 16px; margin-top: 8px; }
.stc-level-note { font-size: 12px; line-height: 1.9; color: var(--stc-ink-2); margin-top: 12px; }
.stc-kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.stc-kpi-grid > div { background: var(--stc-surface-2); border-radius: 9px; padding: 10px 12px; }
.stc-kpi-grid span { display: block; font-size: 10px; color: var(--stc-ink-2); }
.stc-kpi-grid b { font-size: 16px; font-variant-numeric: tabular-nums; }
.stc-bars-card { margin-top: 18px; }
.stc-bars-card h3 { font-size: 15px; }
.stc-chart { min-height: 150px; }
.stc-chart svg { width: 100%; height: 150px; display: block; }
.stc-alerts { margin-top: 16px; }
.stc-alerts > div { font-size: 12px; line-height: 1.85; border-left: 3px solid var(--stc-coral); background: rgba(239, 106, 99, .09); padding: 9px 11px; border-radius: 0 8px 8px 0; margin-bottom: 8px; }
.stc-alerts > div.ok { border-left-color: var(--stc-green); background: rgba(47, 157, 120, .09); }

/* 方案 */
.stc-plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stc-article { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.stc-article article { background: var(--stc-surface); border: 1px solid var(--stc-line); border-top: 4px solid var(--stc-cyan); border-radius: 4px 4px 14px 14px; padding: 20px; box-shadow: var(--stc-shadow); min-width: 0; }
.stc-article h3 { font-size: 16px; }
.stc-article p { font-size: 13px; line-height: 2.05; color: var(--stc-ink-2); }
.stc-batch-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; }
.stc-batch-grid textarea { resize: vertical; font-size: 13px; line-height: 1.9; }
.stc-btns { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.stc-btn-sub, .stc-btn-ghost { font-family: inherit; font-size: 13px; font-weight: 800; padding: 10px 16px; border-radius: 8px; cursor: pointer; border: 1px solid var(--stc-brand); background: var(--stc-brand); color: #fff; }
.stc-btn-ghost { background: transparent; color: var(--stc-brand); border-color: var(--stc-line); }
.stc-btn-ghost:hover { border-color: var(--stc-brand); }
.stc-tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stc-tools-grid p { font-size: 12px; line-height: 1.9; color: var(--stc-ink-2); }
.stc-btn-ai { margin-top: 14px; font-family: inherit; font-size: 13px; font-weight: 800; padding: 11px 17px; border-radius: 8px; cursor: pointer; border: 1px solid var(--stc-cyan); color: #fff; background: var(--stc-cyan); }
.stc-btn-ai:disabled { opacity: .5; cursor: not-allowed; }
.stc-ai-out { margin-top: 12px; font-size: 12px; line-height: 1.95; color: var(--stc-ink-2); background: var(--stc-surface-2); border-radius: 8px; padding: 12px; min-height: 52px; }
.stc-ai-out p { margin-bottom: 6px; }
.stc-ai-out p:last-child { margin-bottom: 0; }

/* 弹窗 */
.stc-modal { position: fixed; inset: 0; z-index: 9000; background: rgba(14, 20, 36, .66); display: flex; align-items: center; justify-content: center; padding: 18px; }
.stc-modal[hidden] { display: none !important; }
.stc-modal-box { position: relative; width: min(460px, 100%); max-height: 88vh; overflow-y: auto; background: var(--stc-surface); color: var(--stc-ink); border-radius: 14px; padding: 26px; box-shadow: var(--stc-shadow); }
.stc-modal-x { position: absolute; right: 12px; top: 8px; border: 0; background: transparent; font-size: 24px; color: var(--stc-ink-2); cursor: pointer; line-height: 1; }
.stc-modal-kicker { font-size: 10px; letter-spacing: .14em; font-weight: 850; color: var(--stc-brand); }
.stc-modal-box h3 { font-size: 21px; margin: 8px 0 14px; }
.stc-modal-result { background: var(--stc-surface-2); border-radius: 10px; padding: 14px; font-size: 13px; line-height: 1.9; margin-bottom: 16px; }
.stc-modal-box .stc-field input { font-size: 12px; }
.stc-toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 9500; background: var(--stc-ink); color: var(--stc-surface); padding: 11px 20px; border-radius: 9px; font-size: 13px; box-shadow: var(--stc-shadow); }
.stc-toast[hidden] { display: none !important; }

@media (max-width: 900px) {
    .stc-hero, .stc-report-grid, .stc-plan-grid, .stc-batch-grid, .stc-tools-grid { grid-template-columns: 1fr; }
    .stc-article { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .stc-wrap { padding: 0 14px; }
    .stc-page { padding-top: 16px; font-size: 14px; }
    .stc-hero h1 { font-size: 31px; }
    .stc-sub { font-size: 15px; }
    .stc-days { gap: 3px; }
    .stc-days input { font-size: 11px; padding: 6px 1px; }
    .stc-two, .stc-chips, .stc-kpi-grid { grid-template-columns: 1fr; }
    .stc-page section.stc-report, .stc-page section.stc-plan, .stc-page section.stc-batch, .stc-page section.stc-tools { margin-top: 30px; }
    .stc-card, .stc-score-card, .stc-kpi-card { padding: 16px; }
    .stc-table { min-width: 440px; }
}
