/* ===== 闪光灯指数 · 光锥 ===== */
.flg {
    background: #fbfaf7;
    border: 1px solid #e8e2d6;
    border-radius: 12px;
    padding: 24px 22px;
    margin-bottom: 26px;
    box-shadow: 0 10px 30px rgba(90, 70, 30, .07);
}

.flg-stage {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    align-items: stretch;
}

/* ---- 光锥 ---- */
.flg-scene {
    position: relative; background: #14110c; border: 1px solid #2b2519;
    border-radius: 10px; padding: 14px 16px 26px; overflow: hidden;
    min-height: 200px;
}
.flg-scene::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(80% 60% at 8% 50%, rgba(251, 191, 36, .14), transparent 62%);
    pointer-events: none;
}
.flg-head {
    display: flex; justify-content: space-between; align-items: baseline;
    position: relative; z-index: 2;
    font: 700 9.5px/1.4 ui-monospace, monospace; color: #7c6f56;
}
.flg-head b { color: #fbbf24; }

.flg-cone-wrap { position: relative; height: 128px; margin-top: 8px; }
.flg-body {
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 34px; height: 46px; border-radius: 4px;
    background: linear-gradient(180deg, #4b5563, #1f2937);
    border: 1px solid #374151;
    z-index: 3;
}
.flg-body::after {
    content: '';
    position: absolute; right: -5px; top: 7px; width: 6px; height: 32px;
    background: linear-gradient(90deg, #fde68a, #fbbf24);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(251, 191, 36, .7);
}
.flg-cone {
    position: absolute; left: 36px; top: 50%; transform: translateY(-50%);
    height: 96px; width: 0;
    clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 58%);
    background: linear-gradient(90deg, rgba(251, 191, 36, .55), rgba(251, 146, 60, .18) 55%, rgba(251, 191, 36, 0));
    transition: width .4s;
    filter: blur(.4px);
}
.flg-target {
    position: absolute; top: 50%; transform: translate(-50%, -50%);
    width: 4px; height: 74px; background: rgba(255, 255, 255, .16);
    transition: left .4s;
    z-index: 2;
}
.flg-target::after {
    content: attr(data-label);
    position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
    font: 700 8.5px/1 ui-monospace, monospace; color: #fbbf24; white-space: nowrap;
}
.flg-axis {
    position: absolute; left: 36px; right: 0; bottom: 6px; height: 16px;
    display: flex; justify-content: space-between;
    font: 700 8px/1 ui-monospace, monospace; color: #5f5544;
}

/* ---- 读数 ---- */
.flg-read {
    background: #fff; border: 1px solid #e8e2d6; border-radius: 10px;
    padding: 16px 18px; display: flex; flex-direction: column; gap: 12px;
}
.flg-big small { font-size: 10px; color: #948a76; letter-spacing: .05em; display: block; }
.flg-big b {
    font: 700 36px/1 ui-monospace, Consolas, monospace; color: #b45309;
    font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.flg-big b em { font-style: normal; font-size: 11px; color: #948a76; font-weight: 400; }
.flg-big i {
    font-style: normal; font-size: 10.5px; font-weight: 700; margin-left: 8px;
    padding: 4px 9px; border-radius: 4px; vertical-align: middle;
    background: #fffbeb; color: #92400e; border: 1px solid #fde68a;
}
.flg-big i.bad { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

.flg-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.flg-card {
    background: #faf8f3; border: 1px solid #eee7da; border-radius: 7px; padding: 8px 10px;
}
.flg-card span { display: block; font-size: 9.5px; color: #948a76; }
.flg-card b {
    font: 700 13.5px/1.35 ui-monospace, monospace; color: #432c10;
    font-variant-numeric: tabular-nums;
}
.flg-card b em { font-style: normal; font-size: 9px; color: #948a76; font-weight: 400; }

/* ---- 参数 ---- */
.flg-params { margin-top: 18px; border-top: 1px solid #e8e2d6; padding-top: 15px; }
.flg-params h2 { font-size: 12px; letter-spacing: .07em; color: #57534e; margin: 0 0 11px; }
.flg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.flg-grid label { display: flex; flex-direction: column; gap: 4px; }
.flg-grid span { font-size: 10.5px; color: #948a76; }
.flg-grid input, .flg-grid select {
    font: inherit; font-size: 12px; padding: 7px 9px; border: 1px solid #e8e2d6;
    border-radius: 5px; background: #fff; color: #432c10; font-variant-numeric: tabular-nums;
    min-width: 0;
}
.flg-grid input:focus, .flg-grid select:focus { outline: 2px solid rgba(180, 83, 9, .14); border-color: #b45309; }
.flg-grid input.is-bad { border-color: #dc2626; background: #fff1f2; }

.flg-verdict {
    margin: 15px 0 0; padding: 10px 13px; border-radius: 8px;
    font-size: 11.5px; line-height: 1.7; color: #78350f; background: #fefbf3;
    border-left: 3px solid #f59e0b;
}
.flg-verdict.bad { color: #9f1239; background: #fff5f7; border-left-color: #e11d48; }

@media (max-width: 880px) {
    .flg-stage { grid-template-columns: 1fr; }
    .flg-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .flg { padding: 16px 13px; }
    .flg-grid { grid-template-columns: 1fr; }
    .flg-cards { grid-template-columns: 1fr; }
    .flg-big b { font-size: 29px; }
}

/* ---- 深色 ---- */
[data-theme="dark"] .flg { background: #100e0a; border-color: #2b2519; box-shadow: none; }
[data-theme="dark"] .flg-read { background: #16130e; border-color: #2b2519; }
[data-theme="dark"] .flg-big b { color: #fbbf24; }
[data-theme="dark"] .flg-big small, [data-theme="dark"] .flg-card span, [data-theme="dark"] .flg-grid span { color: #948a76; }
[data-theme="dark"] .flg-card { background: #1a160f; border-color: #2b2519; }
[data-theme="dark"] .flg-card b { color: #fde68a; }
[data-theme="dark"] .flg-params { border-color: #2b2519; }
[data-theme="dark"] .flg-params h2 { color: #d6d3d1; }
[data-theme="dark"] .flg-grid input, [data-theme="dark"] .flg-grid select { background: #16130e; border-color: #2b2519; color: #fde68a; }
[data-theme="dark"] .flg-verdict { background: rgba(245, 158, 11, .1); color: #fde68a; }
[data-theme="dark"] .flg-verdict.bad { background: rgba(190, 18, 60, .12); color: #fda4af; }
