/* ===== 食谱分量缩放 · 厨房暖色风 ===== */
/* 不依赖 calc-common.css，独立 rc- 视觉体系；复用 tool-detail.css 的页面布局 */

.rc-card {
    background: #ffffff;
    border: 1px solid #ece3da;
    border-top: 4px solid #d9472b;
    border-radius: 14px;
    padding: 22px 22px 24px;
    box-shadow: 0 10px 30px rgba(120, 50, 20, 0.08);
}
.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 #e6d6c8;
}
.rc-logo {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #d9472b;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(217, 71, 43, 0.35);
    transform: rotate(-4deg);
}
.rc-title {
    margin: 0;
    font-size: 24px;
    color: #7a2e16;
    letter-spacing: 0.5px;
    font-family: "Noto Serif SC", "Songti SC", serif;
}
.rc-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: #9a7b66;
}

.rc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rc-field { margin-bottom: 14px; }
.rc-field > label {
    display: block;
    font-weight: 600;
    color: #7a2e16;
    margin-bottom: 7px;
    font-size: 14px;
}
.rc-input, .rc-ing-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e6d6c8;
    border-radius: 9px;
    font-size: 15px;
    color: #3a2a1e;
    background: #fdf7f1;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.rc-input:focus, .rc-ing-input:focus {
    outline: none;
    border-color: #d9472b;
    box-shadow: 0 0 0 3px rgba(217, 71, 43, 0.12);
    background: #fff;
}
.rc-input-wrap { position: relative; }
.rc-suffix {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    color: #9a7b66;
    font-size: 14px;
}
.rc-help {
    margin: 8px 0 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: #9a7b66;
}
.rc-help b { color: #7a2e16; }

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

/* 右侧结果卡 */
.rc-result-card { font-family: system-ui, -apple-system, "PingFang SC", sans-serif; }
.rc-detail-tag {
    display: inline-block;
    background: #d9472b;
    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: #fbeee6;
    border: 1px solid #f0d9c8;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 12px;
}
.rc-ratio span { color: #9a7b66; font-size: 14px; }
.rc-ratio b { color: #7a2e16; font-size: 22px; font-family: "Noto Serif SC", serif; }
.rc-bill { list-style: none; margin: 0 0 12px; padding: 0; max-height: 360px; overflow: auto; }
.rc-bill li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed #ecdccf;
    font-size: 14px;
}
.rc-bill li .rc-bill-name { color: #3a2a1e; font-weight: 600; }
.rc-bill li .rc-bill-val { color: #d9472b; font-weight: 700; white-space: nowrap; text-align: right; }
.rc-bill li .rc-bill-val small { display: block; font-size: 11px; color: #b08a76; font-weight: 600; }
.rc-disclaim {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: #a07b66;
    background: #fdf3ec;
    border-left: 3px solid #d9472b;
    padding: 9px 12px;
    border-radius: 0 8px 8px 0;
}

/* 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: #7a2e16; font-family: "Noto Serif SC", serif; }
.rc-textarea {
    width: 100%;
    min-height: 76px;
    padding: 11px 12px;
    border: 1px solid #e6d6c8;
    border-radius: 9px;
    font-size: 14px;
    color: #3a2a1e;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 10px;
    background: #fdf7f1;
}
.rc-textarea:focus { outline: none; border-color: #d9472b; box-shadow: 0 0 0 3px rgba(217,71,43,.12); background:#fff; }
.rc-ai-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rc-ai-status { font-size: 13px; color: #9a7b66; }
.rc-ai-status.is-err { color: #d9472b; }
.rc-ai-status.is-ok { color: #7a2e16; }
.rc-ai-result {
    margin-top: 14px;
    background: #fdf7f1;
    border: 1px solid #ece3da;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.75;
    color: #3a2a1e;
    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 #ece3da; border-top: 4px solid #d9472b; border-radius: 14px; padding: 18px; box-shadow: 0 10px 30px rgba(120,50,20,.08); }
.rc-ref-title { margin: 0 0 10px; font-size: 15px; color: #7a2e16; font-family: "Noto Serif SC", serif; }
.rc-ref { width: 100%; border-collapse: collapse; font-size: 13px; }
.rc-ref th { text-align: left; background: #fbeee6; color: #7a2e16; padding: 8px 10px; font-weight: 700; }
.rc-ref td { padding: 8px 10px; border-top: 1px solid #f0e2d6; color: #5a4030; }
.rc-ref td:last-child { color: #9a7b66; }

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

/* ===== 布局骨架（本页不加载 calc-common.css，独立定义） ===== */
.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 { grid-template-columns: 1fr; }
}

/* ===== 黑夜模式 ===== */
:root[data-theme="dark"] .rc-card {
    background: #221c18;
    border-color: #3a322c;
    border-top-color: #e07a3f;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
:root[data-theme="dark"] .rc-title { color: #f0d9c8; }
:root[data-theme="dark"] .rc-sub { color: #b79b86; }
:root[data-theme="dark"] .rc-logo { background: #c0392b; box-shadow: 0 4px 12px rgba(192,57,43,.4); }
:root[data-theme="dark"] .rc-field > label { color: #e7c8b4; }
:root[data-theme="dark"] .rc-input,
:root[data-theme="dark"] .rc-ing-input,
:root[data-theme="dark"] .rc-textarea {
    background: #2a231d;
    border-color: #3a322c;
    color: #f0d9c8;
}
:root[data-theme="dark"] .rc-input:focus,
:root[data-theme="dark"] .rc-ing-input:focus,
:root[data-theme="dark"] .rc-textarea:focus { border-color: #e07a3f; box-shadow: 0 0 0 3px rgba(224,122,63,.25); }
:root[data-theme="dark"] .rc-help { color: #b79b86; }
:root[data-theme="dark"] .rc-help b { color: #e7c8b4; }
:root[data-theme="dark"] .rc-add-btn { background: #2a231d; border-color: #e07a3f; color: #e07a3f; }
:root[data-theme="dark"] .rc-add-btn:hover { background: #33291f; }
:root[data-theme="dark"] .rc-del { color: #b07a6a; }
:root[data-theme="dark"] .rc-ratio { background: #2e251d; border-color: #3a322c; }
:root[data-theme="dark"] .rc-ratio span { color: #b79b86; }
:root[data-theme="dark"] .rc-ratio b { color: #f0d9c8; }
:root[data-theme="dark"] .rc-bill li { border-bottom-color: #3a322c; }
:root[data-theme="dark"] .rc-bill li .rc-bill-name { color: #ecdfd3; }
:root[data-theme="dark"] .rc-bill li .rc-bill-val { color: #f0996f; }
:root[data-theme="dark"] .rc-bill li .rc-bill-val small { color: #9a8068; }
:root[data-theme="dark"] .rc-disclaim { background: #2a231d; border-left-color: #c0392b; color: #b79b86; }
:root[data-theme="dark"] .rc-ai-title { color: #f0d9c8; }
:root[data-theme="dark"] .rc-ai-result { background: #2a231d; border-color: #3a322c; color: #ecdfd3; }
:root[data-theme="dark"] .rc-ref-block { background: #221c18; border-color: #3a322c; border-top-color: #e07a3f; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
:root[data-theme="dark"] .rc-ref-title { color: #f0d9c8; }
:root[data-theme="dark"] .rc-ref th { background: #2e251d; color: #e7c8b4; }
:root[data-theme="dark"] .rc-ref td { border-top-color: #3a322c; color: #d8c3b0; }
:root[data-theme="dark"] .rc-ref td:last-child { color: #b79b86; }
:root[data-theme="dark"] .rc-disclaim-bottom { background: #2e251d; border-color: #3a322c; color: #b79b86; }

/* 底部简介区图标/徽章（暖色变体，限定本页 calc-info 区，不影响其他工具） */
.calc-info .detail-icon.t-warm { background: #d9472b; color: #fff; }
.calc-info .badge.b-cat { background: #fbeee6; color: #7a2e16; border: 1px solid #f0d9c8; }
