/* FC12 生活厨房与衣物护理 · 公共基础样式（仅作用于 .fc12 容器） */
.fc12 {
    --fc12-bg: #fbf8f3;
    --fc12-panel: #ffffff;
    --fc12-ink: #1d2b26;
    --fc12-muted: #66746d;
    --fc12-line: #e6e3dc;
    --fc12-brand: #2f7d69;
    --fc12-brand-soft: #e5f3ec;
    --fc12-accent: #e07a4f;
    --fc12-radius: 20px;
    --fc12-shadow: 0 16px 46px rgba(29, 43, 38, .07);
    --fc12-font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
    color: var(--fc12-ink);
    background: linear-gradient(180deg, var(--fc12-bg) 0%, #f6f3ee 100%);
    font-family: var(--fc12-font);
    line-height: 1.65;
    padding: 24px 0 40px;
    -webkit-font-smoothing: antialiased;
}
:root[data-theme="dark"] .fc12 {
    --fc12-bg: #111b19;
    --fc12-panel: #182624;
    --fc12-ink: #e7f0ec;
    --fc12-muted: #9fb4ac;
    --fc12-line: #2a3b37;
    --fc12-brand: #63c4a6;
    --fc12-brand-soft: #1c3c34;
    --fc12-accent: #f0a47e;
    --fc12-shadow: 0 16px 46px rgba(0, 0, 0, .28);
    background: linear-gradient(180deg, #111b19 0%, #0d1615 100%);
}
.fc12 * { box-sizing: border-box; }
.fc12 h1, .fc12 h2, .fc12 h3, .fc12 p { margin: 0; }
.fc12 b, .fc12 strong { font-weight: 750; }

.fc12 .fc12-hero {
    max-width: 1180px;
    margin: 0 auto 22px;
    padding: 34px 38px;
    border-radius: var(--fc12-radius);
    background: var(--fc12-panel);
    box-shadow: var(--fc12-shadow);
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr);
    gap: 32px;
    align-items: center;
    border: 1px solid var(--fc12-line);
}
.fc12-kicker {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .14em;
    font-weight: 750;
    color: var(--fc12-brand);
    background: var(--fc12-brand-soft);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.fc12-hero h1 {
    font-size: clamp(26px, 3.4vw, 40px);
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-bottom: 12px;
}
.fc12-lead {
    color: var(--fc12-muted);
    font-size: 16px;
    line-height: 1.85;
    max-width: 720px;
}
.fc12-lead b { color: var(--fc12-ink); }
.fc12-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.fc12-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .15s, box-shadow .15s, background .15s;
    font-family: inherit;
}
.fc12-btn:hover { transform: translateY(-1px); }
.fc12-btn-primary { background: var(--fc12-brand); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--fc12-brand) 28%, transparent); }
.fc12-btn-ghost { background: transparent; color: var(--fc12-ink); border-color: var(--fc12-line); }
.fc12-btn-mini { padding: 8px 14px; font-size: 13px; border-color: var(--fc12-line); background: var(--fc12-panel); color: var(--fc12-ink); box-shadow: none; }
.fc12-btn-ai { border-color: color-mix(in srgb, var(--fc12-accent) 45%, var(--fc12-line)); color: var(--fc12-accent); }
.fc12-hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; margin: 22px 0 0; padding: 0; }
.fc12-hero-facts li { display: flex; flex-direction: column; }
.fc12-hero-facts b { font-size: 19px; font-variant-numeric: tabular-nums; }
.fc12-hero-facts span { font-size: 12px; color: var(--fc12-muted); margin-top: 2px; }

.fc12 .fc12-hero-card {
    min-height: 240px;
    border-radius: 16px;
    background: var(--fc12-brand-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}
.fc12-hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--fc12-brand) 18%, transparent) 1px, transparent 1.4px);
    background-size: 22px 22px;
    opacity: .55;
    pointer-events: none;
}
.fc12-hero-card > * { position: relative; z-index: 1; }

.fc12 .fc12-card {
    max-width: 1180px;
    margin: 0 auto 22px;
    padding: 28px 32px;
    background: var(--fc12-panel);
    border: 1px solid var(--fc12-line);
    border-radius: var(--fc12-radius);
    box-shadow: var(--fc12-shadow);
}
.fc12-section-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.fc12-step {
    flex: none;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    background: var(--fc12-brand-soft);
    color: var(--fc12-brand);
    border-radius: 10px;
    font-size: 13px; font-weight: 800;
}
.fc12-section-head h2 { font-size: 20px; line-height: 1.4; }
.fc12-section-head p { font-size: 13px; color: var(--fc12-muted); margin-top: 3px; }
.fc12-section-head code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12px; color: var(--fc12-brand); }

.fc12-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fc12-field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.fc12-field > span { font-weight: 700; }
.fc12-field small { font-size: 12px; color: var(--fc12-muted); }
.fc12-field input, .fc12-field select, .fc12 textarea {
    width: 100%;
    border: 1px solid var(--fc12-line);
    background: color-mix(in srgb, var(--fc12-panel) 92%, var(--fc12-bg));
    color: var(--fc12-ink);
    border-radius: 11px;
    padding: 10px 12px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.fc12-field input:focus, .fc12-field select:focus, .fc12 textarea:focus {
    border-color: var(--fc12-brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--fc12-brand) 14%, transparent);
}
.fc12-input-unit { display: flex; align-items: center; border: 1px solid var(--fc12-line); border-radius: 11px; overflow: hidden; background: color-mix(in srgb, var(--fc12-panel) 92%, var(--fc12-bg)); }
.fc12-input-unit input { border: 0; background: transparent; border-radius: 0; }
.fc12-input-unit em { font-style: normal; color: var(--fc12-muted); padding-right: 13px; font-size: 13px; }
.fc12-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.fc12 textarea { resize: vertical; min-height: 108px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.fc12-batch-result { margin-top: 16px; font-size: 14px; }
.fc12-batch-result .ok { color: var(--fc12-brand); }
.fc12-batch-result .bad { color: #c4523e; }
.fc12-batch-result ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.fc12-batch-result li { background: color-mix(in srgb, var(--fc12-brand-soft) 60%, var(--fc12-panel)); border: 1px solid var(--fc12-line); border-radius: 10px; padding: 9px 13px; }

.fc12 .fc12-result {
    margin-top: 22px;
    padding: 22px;
    border-radius: 16px;
    border: 1px dashed color-mix(in srgb, var(--fc12-brand) 45%, var(--fc12-line));
    background: color-mix(in srgb, var(--fc12-brand-soft) 35%, var(--fc12-panel));
}
.fc12-result[hidden] { display: none; }
.fc12-result-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--fc12-muted); }
.fc12-result-main b { font-size: 36px; line-height: 1.1; color: var(--fc12-brand); font-variant-numeric: tabular-nums; }
.fc12-result-main em { font-style: normal; font-weight: 700; color: var(--fc12-ink); }
.fc12-result-main p { width: 100%; font-size: 13px; margin-top: 4px; }
.fc12-result-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.fc12-result-grid > div { background: var(--fc12-panel); border: 1px solid var(--fc12-line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.fc12-result-grid span { font-size: 12px; color: var(--fc12-muted); }
.fc12-result-grid b { font-size: 15px; }
.fc12-result-grid small { font-size: 11px; color: var(--fc12-muted); line-height: 1.5; }
.fc12-note { font-size: 13px; color: var(--fc12-muted); margin-top: 14px; line-height: 1.8; }
.fc12-result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.fc12-table-scroll { overflow-x: auto; }
.fc12 table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fc12 th, .fc12 td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--fc12-line); white-space: nowrap; }
.fc12 th { color: var(--fc12-brand); font-size: 13px; background: color-mix(in srgb, var(--fc12-brand-soft) 45%, transparent); }
.fc12 tbody tr:hover { background: color-mix(in srgb, var(--fc12-brand-soft) 30%, transparent); }

.fc12-ai-box { margin-top: 16px; border: 1px solid color-mix(in srgb, var(--fc12-accent) 40%, var(--fc12-line)); border-radius: 12px; background: var(--fc12-panel); overflow: hidden; }
.fc12-ai-box[hidden] { display: none; }
.fc12-ai-head { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; background: color-mix(in srgb, var(--fc12-accent) 10%, transparent); font-size: 13px; }
.fc12-ai-head span { color: var(--fc12-muted); }
.fc12-ai-body { padding: 14px; font-size: 14px; white-space: pre-wrap; line-height: 1.85; }

@media (max-width: 900px) {
    .fc12 { padding: 14px 0 24px; }
    .fc12 .fc12-hero { grid-template-columns: 1fr; padding: 24px 20px; gap: 18px; }
    .fc12 .fc12-card { padding: 22px 18px; }
    .fc12-grid { grid-template-columns: 1fr; }
    .fc12-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .fc12-hero h1 { font-size: 25px; }
    .fc12-lead { font-size: 15px; }
    .fc12-result-grid { grid-template-columns: 1fr; }
    .fc12-hero-facts { gap: 14px; }
}
