/* ===== 相机电池续航估算 ===== */
.cam-hero {
    background: linear-gradient(150deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 26px;
    box-shadow: 0 12px 36px rgba(22, 163, 74, .10);
}
.cam-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.cam-logo {
    font-size: 28px; width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, #16a34a 0%, #bbf7d0 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(22, 163, 74, .3);
}
.cam-title { font-size: 20px; font-weight: 800; color: #14532d; }
.cam-sub { font-size: 13px; color: #64748b; margin-top: 2px; }

.cam-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.cam-form {
    background: rgba(255,255,255,.92); border: 1px solid #86efac;
    border-radius: 16px; padding: 16px;
}
.cam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cam-field { display: flex; flex-direction: column; gap: 4px; }
.cam-field > span { font-size: 12px; color: #64748b; font-weight: 600; }
.cam-field input, .cam-field select {
    border: 2px solid #dcfce7; border-radius: 10px; padding: 9px 12px;
    font-size: 14px; background: #fff; color: #0f172a; outline: none; transition: border-color .2s;
}
.cam-field input:focus, .cam-field select:focus { border-color: #22c55e; }

.cam-result {
    background: rgba(255,255,255,.92); border: 1px solid #e2e8f0;
    border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.cam-batt {
    position: relative; height: 64px; border-radius: 12px; overflow: hidden;
    background: #f8fafc; border: 3px solid #14532d; border-left-width: 8px; border-radius: 6px 12px 12px 6px;
}
.cam-charge {
    position: absolute; left: 0; top: 0; bottom: 0; width: 0;
    background: linear-gradient(90deg, #4ade80, #16a34a); transition: width .5s;
}
.cam-pct {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 15px; font-weight: 900; color: #14532d;
}
.cam-timeline {
    height: 56px; border-radius: 10px; background: #f8fafc; border: 1px dashed #86efac;
    position: relative; overflow: hidden; display: flex;
}
.cam-seg { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #14532d; border-right: 2px solid #fff; background: #bbf7d0; }
.cam-seg.dim { background: #f1f5f9; color: #94a3b8; }
.cam-break { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.cam-break li {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    background: #f0fdf4; border: 1px solid #86efac; border-radius: 10px;
    padding: 8px 12px; font-size: 13px; color: #475569;
}
.cam-break li b { color: #0f172a; font-variant-numeric: tabular-nums; }
.cam-break li.ok { border-color: #22c55e; background: #dcfce7; color: #14532d; font-weight: 700; }
.cam-break li.ok.bad { border-color: #fbbf24; background: #fffbeb; color: #92400e; }
.cam-note { margin-top: 14px; font-size: 12px; color: #64748b; line-height: 1.7; }
.cam-feature-alias { display: none; }

@media (max-width: 860px) {
    .cam-body { grid-template-columns: 1fr; }
    .cam-hero { padding: 20px 14px; }
}

/* ===== 深色模式 ===== */
[data-theme="dark"] .cam-hero {
    background: linear-gradient(150deg, #14532d 0%, #052e16 100%);
    border-color: rgba(134, 239, 172, .22);
}
[data-theme="dark"] .cam-title { color: #bbf7d0; }
[data-theme="dark"] .cam-form, [data-theme="dark"] .cam-result {
    background: rgba(255,255,255,.05); border-color: rgba(134, 239, 172, .18);
}
[data-theme="dark"] .cam-field input, [data-theme="dark"] .cam-field select {
    background: rgba(255,255,255,.06); color: #e2e8f0; border-color: rgba(134,239,172,.25);
}
[data-theme="dark"] .cam-field > span { color: #94a3b8; }
[data-theme="dark"] .cam-batt { background: rgba(15,23,42,.5); border-color: #14532d; }
[data-theme="dark"] .cam-charge { background: linear-gradient(90deg, #22c55e, #15803d); }
[data-theme="dark"] .cam-pct { color: #bbf7d0; }
[data-theme="dark"] .cam-timeline { background: rgba(15,23,42,.5); border-color: rgba(134,239,172,.3); }
[data-theme="dark"] .cam-seg { background: rgba(34,197,94,.25); color: #bbf7d0; }
[data-theme="dark"] .cam-seg.dim { background: rgba(148,163,184,.12); color: #64748b; }
[data-theme="dark"] .cam-break li { background: rgba(255,255,255,.04); border-color: rgba(148,163,184,.2); color: #94a3b8; }
[data-theme="dark"] .cam-break li b { color: #e2e8f0; }
[data-theme="dark"] .cam-break li.ok { background: rgba(34,197,94,.16); border-color: rgba(134,239,172,.4); color: #bbf7d0; }
[data-theme="dark"] .cam-break li.ok.bad { background: rgba(217,119,6,.18); border-color: rgba(251,191,36,.4); color: #fde68a; }
