/* ===== 摄影 / ND 减光镜 · 全新镜片主题（橙+石板灰，区别于蓝色 rc- 主题） ===== */
/* 不依赖 calc-common.css，独立 rc- 视觉体系；复用 tool-detail.css 的页面布局 */

.rc-card {
    background: #ffffff;
    border: 1px solid #ffe2c4;
    border-top: 4px solid #ff6d00;
    border-radius: 14px;
    padding: 22px 22px 24px;
    box-shadow: 0 14px 38px rgba(255, 109, 0, 0.12);
}
.rc-card--main { font-family: system-ui, -apple-system, "PingFang SC", sans-serif; }

.rc-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px dashed #ffd9b3;
}
.rc-logo {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffc07a, #ff6d00 72%);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(255, 109, 0, 0.42), inset 0 0 0 3px rgba(255,255,255,.25);
    position: relative;
}
.rc-logo::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.5);
}
.rc-title {
    margin: 0;
    font-size: 24px;
    color: #23262e;
    letter-spacing: 0.3px;
    font-family: "Noto Serif SC", "Songti SC", serif;
}
.rc-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: #8a7666;
}

.rc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rc-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rc-field { margin-bottom: 14px; }
.rc-field > label {
    display: block;
    font-weight: 600;
    color: #5b4326;
    margin-bottom: 7px;
    font-size: 14px;
}
.rc-input, .rc-select, .rc-ing-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ffd9b3;
    border-radius: 9px;
    font-size: 15px;
    color: #3a2c1c;
    background: #fff8f0;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.rc-input:focus, .rc-select:focus, .rc-ing-input:focus {
    outline: none;
    border-color: #ff6d00;
    box-shadow: 0 0 0 3px rgba(255, 109, 0, 0.15);
    background: #fff;
}
.rc-input-wrap { position: relative; }
.rc-suffix {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    color: #b08a5e;
    font-size: 14px;
}
.rc-help {
    margin: 8px 0 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: #8a7666;
}
.rc-help b { color: #b3530a; }

.rc-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.rc-quick button {
    border: 1px solid #ffd9b3;
    background: #fff8f0;
    color: #b3530a;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}
.rc-quick button:hover { background: #ffe9d3; }

.rc-ing-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0 8px;
    font-weight: 700;
    color: #5b4326;
    font-size: 14px;
}
.rc-add-btn {
    border: 1px solid #ff6d00;
    background: #fff;
    color: #ff6d00;
    border-radius: 9px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}
.rc-add-btn:hover { background: #fff1e3; }
.rc-ing-table { width: 100%; border-collapse: collapse; }
.rc-ing-table th {
    text-align: left;
    font-size: 12px;
    color: #8a7666;
    font-weight: 700;
    padding: 4px 6px;
}
.rc-ing-row td { padding: 5px 4px; vertical-align: middle; }
.rc-del {
    border: none;
    background: transparent;
    color: #c9a07a;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.rc-del:hover { color: #ff6d00; }

/* 右侧结果卡 */
.rc-result-card { font-family: system-ui, -apple-system, "PingFang SC", sans-serif; }
.rc-detail-tag {
    display: inline-block;
    background: #ff6d00;
    color: #fff;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.rc-ratio {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    background: #fff1e3;
    border: 1px solid #ffd9b3;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 12px;
}
.rc-ratio span { color: #8a7666; font-size: 14px; }
.rc-ratio b { color: #b3530a; font-size: 22px; font-family: "Noto Serif SC", serif; }
.rc-bill { list-style: none; margin: 0 0 12px; padding: 0; max-height: 420px; overflow: auto; }
.rc-bill li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed #ffe2c4;
    font-size: 14px;
}
.rc-bill li .rc-bill-name { color: #3a2c1c; font-weight: 600; }
.rc-bill li .rc-bill-val { color: #ff6d00; font-weight: 700; white-space: nowrap; text-align: right; }
.rc-bill li .rc-bill-val small { display: block; font-size: 11px; color: #b08a5e; font-weight: 600; }
.rc-disclaim {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: #7a5e3e;
    background: #fff6ec;
    border-left: 3px solid #ff6d00;
    padding: 9px 12px;
    border-radius: 0 8px 8px 0;
}
.rc-note-ok { color: #2f7d4f; font-weight: 600; }
.rc-note-warn { color: #c2691f; font-weight: 600; }
.rc-note-bad { color: #d9472b; font-weight: 700; }

/* AI 顾问卡 */
.rc-ai-card { font-family: system-ui, -apple-system, "PingFang SC", sans-serif; margin-top: 20px; }
.rc-ai-title { margin: 0 0 6px; font-size: 19px; color: #23262e; font-family: "Noto Serif SC", serif; }
.rc-textarea {
    width: 100%;
    min-height: 76px;
    padding: 11px 12px;
    border: 1px solid #ffd9b3;
    border-radius: 9px;
    font-size: 14px;
    color: #3a2c1c;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 10px;
    background: #fff8f0;
}
.rc-textarea:focus { outline: none; border-color: #ff6d00; box-shadow: 0 0 0 3px rgba(255,109,0,.15); background:#fff; }
.rc-ai-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rc-ai-status { font-size: 13px; color: #8a7666; }
.rc-ai-status.is-err { color: #d9472b; }
.rc-ai-status.is-ok { color: #b3530a; }
.rc-ai-result {
    margin-top: 14px;
    background: #fff8f0;
    border: 1px solid #ffd9b3;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.75;
    color: #3a2c1c;
    white-space: pre-wrap;
}

/* 参考 / 速查表 */
.rc-ref-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 20px;
}
.rc-ref-block { background: #fff; border: 1px solid #ffe2c4; border-top: 4px solid #ff6d00; border-radius: 14px; padding: 18px; box-shadow: 0 14px 38px rgba(255,109,0,.1); }
.rc-ref-title { margin: 0 0 10px; font-size: 15px; color: #b3530a; font-family: "Noto Serif SC", serif; }
.rc-ref { width: 100%; border-collapse: collapse; font-size: 13px; }
.rc-ref th { text-align: left; background: #fff1e3; color: #b3530a; padding: 8px 10px; font-weight: 700; }
.rc-ref td { padding: 8px 10px; border-top: 1px solid #ffe9d3; color: #5b4326; }
.rc-ref td:last-child { color: #8a7666; }
.rc-ref .hl { color: #ff6d00; font-weight: 700; }

.rc-disclaim-bottom {
    font-family: system-ui, sans-serif;
    font-size: 12.5px;
    line-height: 1.8;
    color: #8a7666;
    background: #fff1e3;
    border: 1px solid #ffd9b3;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 18px 0 0;
}

/* ===== 布局骨架 ===== */
.calc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}

@media (max-width: 960px) {
    .calc-layout { grid-template-columns: minmax(0, 1fr); }
    .rc-row2, .rc-row3 { grid-template-columns: 1fr; }
}

/* ===== 黑夜模式 ===== */
:root[data-theme="dark"] .rc-card {
    background: #181b22;
    border-color: #3a2f24;
    border-top-color: #ff8a33;
    box-shadow: 0 14px 38px rgba(0,0,0,.4);
}
:root[data-theme="dark"] .rc-title { color: #f3e8dc; }
:root[data-theme="dark"] .rc-sub { color: #b09a86; }
:root[data-theme="dark"] .rc-logo { box-shadow: 0 6px 16px rgba(255,138,51,.45), inset 0 0 0 3px rgba(255,255,255,.18); }
:root[data-theme="dark"] .rc-field > label { color: #e7cdb2; }
:root[data-theme="dark"] .rc-input,
:root[data-theme="dark"] .rc-select,
:root[data-theme="dark"] .rc-ing-input,
:root[data-theme="dark"] .rc-textarea {
    background: #23262e;
    border-color: #3a2f24;
    color: #f3e8dc;
}
:root[data-theme="dark"] .rc-input:focus,
:root[data-theme="dark"] .rc-select:focus,
:root[data-theme="dark"] .rc-ing-input:focus,
:root[data-theme="dark"] .rc-textarea:focus { border-color: #ff8a33; box-shadow: 0 0 0 3px rgba(255,138,51,.25); }
:root[data-theme="dark"] .rc-help { color: #b09a86; }
:root[data-theme="dark"] .rc-help b { color: #ffb070; }
:root[data-theme="dark"] .rc-quick button { background: #23262e; border-color: #ff8a33; color: #ff8a33; }
:root[data-theme="dark"] .rc-quick button:hover { background: #2c2620; }
:root[data-theme="dark"] .rc-add-btn { background: #23262e; border-color: #ff8a33; color: #ff8a33; }
:root[data-theme="dark"] .rc-add-btn:hover { background: #2c2620; }
:root[data-theme="dark"] .rc-del { color: #c9a07a; }
:root[data-theme="dark"] .rc-ratio { background: #23262e; border-color: #3a2f24; }
:root[data-theme="dark"] .rc-ratio span { color: #b09a86; }
:root[data-theme="dark"] .rc-ratio b { color: #ffb070; }
:root[data-theme="dark"] .rc-bill li { border-bottom-color: #3a2f24; }
:root[data-theme="dark"] .rc-bill li .rc-bill-name { color: #f0e2d2; }
:root[data-theme="dark"] .rc-bill li .rc-bill-val { color: #ff9a47; }
:root[data-theme="dark"] .rc-bill li .rc-bill-val small { color: #b09a86; }
:root[data-theme="dark"] .rc-disclaim { background: #23262e; border-left-color: #ff8a33; color: #b09a86; }
:root[data-theme="dark"] .rc-ai-title { color: #f3e8dc; }
:root[data-theme="dark"] .rc-ai-result { background: #23262e; border-color: #3a2f24; color: #f0e2d2; }
:root[data-theme="dark"] .rc-ref-block { background: #181b22; border-color: #3a2f24; border-top-color: #ff8a33; box-shadow: 0 14px 38px rgba(0,0,0,.4); }
:root[data-theme="dark"] .rc-ref-title { color: #ffb070; }
:root[data-theme="dark"] .rc-ref th { background: #23262e; color: #e7cdb2; }
:root[data-theme="dark"] .rc-ref td { border-top-color: #3a2f24; color: #e7cdb2; }
:root[data-theme="dark"] .rc-ref td:last-child { color: #b09a86; }
:root[data-theme="dark"] .rc-ref .hl { color: #ff9a47; }
:root[data-theme="dark"] .rc-disclaim-bottom { background: #23262e; border-color: #3a2f24; color: #b09a86; }

/* 底部简介区图标/徽章（橙调变体，限定本页 calc-info 区） */
.calc-info .detail-icon.t-orange { background: #ff6d00; color: #fff; }
.calc-info .badge.b-cat { background: #fff1e3; color: #b3530a; border: 1px solid #ffd9b3; }
