/* #41 鱼油摄入量计算 · 深海营养标签风（独立设计系统 omg-） */
.omg-page, .omg-modal, .omg-toast {
    --omg-bg: #f3f8f7;
    --omg-surface: #ffffff;
    --omg-surface-2: #e8f2f2;
    --omg-ink: #123045;
    --omg-ink-2: #5b7787;
    --omg-line: #cfe1e5;
    --omg-brand: #123f63;
    --omg-brand-2: #14a89c;
    --omg-coral: #ef7a58;
    --omg-gold: #d6a53c;
    --omg-shadow: 0 12px 34px rgba(18, 63, 99, .11);
}
:root[data-theme="dark"] .omg-page,
:root[data-theme="dark"] .omg-modal,
:root[data-theme="dark"] .omg-toast {
    --omg-bg: #0c1820;
    --omg-surface: #142733;
    --omg-surface-2: #1b3541;
    --omg-ink: #e3f2f5;
    --omg-ink-2: #96b3bf;
    --omg-line: #2b4b58;
    --omg-brand: #7fc9e6;
    --omg-brand-2: #4ad3c2;
    --omg-coral: #ff9d80;
    --omg-gold: #f1c76c;
    --omg-shadow: 0 16px 40px rgba(0, 0, 0, .42);
}
.omg-page [hidden] { display: none !important; }
.omg-page {
    background: var(--omg-bg); color: var(--omg-ink); padding: 26px 0 60px;
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
    font-size: 15px; line-height: 1.85;
    background-image: radial-gradient(ellipse 70% 30% at 90% 0%, rgba(20, 168, 156, .12), transparent 70%);
}
.omg-wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.omg-page b { color: var(--omg-brand-2); }
.omg-page h1, .omg-page h2, .omg-page h3 { line-height: 1.35; letter-spacing: -.02em; }
.omg-page h2 { font-size: 23px; margin: 0; font-weight: 850; }
.omg-page h3 { font-size: 17px; margin: 0 0 10px; font-weight: 800; }
.omg-page p { margin: 0; }
.omg-page input, .omg-page select, .omg-page textarea {
    width: 100%; box-sizing: border-box; font-family: inherit; font-size: 14px; color: var(--omg-ink);
    background: var(--omg-surface); border: 1px solid var(--omg-line); border-radius: 9px; padding: 9px 11px; outline: none;
}
.omg-page input:focus, .omg-page select:focus, .omg-page textarea:focus { border-color: var(--omg-brand-2); box-shadow: 0 0 0 3px rgba(20, 168, 156, .16); }

/* 首屏 */
.omg-hero { display: grid; grid-template-columns: 1.02fr .98fr; gap: 34px; margin-top: 22px; align-items: start; }
.omg-hero-copy { min-width: 0; padding-top: 10px; }
.omg-kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 850; letter-spacing: .1em; color: var(--omg-brand); border-bottom: 2px solid var(--omg-coral); padding-bottom: 7px; }
.omg-wave { font-size: 18px; color: var(--omg-brand-2); }
.omg-kicker em { font-style: normal; font-weight: 600; color: var(--omg-ink-2); border-left: 1px solid var(--omg-line); padding-left: 9px; }
.omg-hero h1 { font-size: clamp(34px, 4.6vw, 54px); margin: 20px 0 16px; font-weight: 900; }
.omg-sub { font-size: 17px; line-height: 2; color: var(--omg-ink-2); max-width: 620px; }
.omg-hero-line { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0 20px; max-width: 620px; }
.omg-hero-line > div { border-left: 3px solid var(--omg-brand-2); padding-left: 12px; }
.omg-hero-line b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.omg-hero-line span { font-size: 11px; color: var(--omg-ink-2); }
.omg-caution { font-size: 12px; line-height: 1.9; color: var(--omg-coral); background: rgba(239, 122, 88, .09); border-left: 3px solid var(--omg-coral); border-radius: 0 8px 8px 0; padding: 11px 14px; max-width: 620px; }
.omg-bottle { min-width: 0; }
.omg-bottle-cap { width: 108px; height: 18px; border-radius: 8px 8px 0 0; margin: 0 auto -2px; background: linear-gradient(180deg, var(--omg-brand), #0d2b45); }
.omg-bottle-body { background: linear-gradient(160deg, #f7d98d, #e9b95c); border: 2px solid rgba(18, 63, 99, .18); border-radius: 22px 22px 14px 14px; padding: 10px; box-shadow: var(--omg-shadow); }
:root[data-theme="dark"] .omg-bottle-body { background: linear-gradient(160deg, #4a402a, #6a5835); }
.omg-bottle-label { background: var(--omg-surface); border-radius: 14px; padding: 16px 18px; text-align: center; }
.omg-bottle-brand { font-size: 10px; letter-spacing: .14em; font-weight: 850; color: var(--omg-brand-2); }
.omg-bottle-big { font-size: 38px; font-weight: 900; line-height: 1.25; color: var(--omg-brand); font-variant-numeric: tabular-nums; }
.omg-bottle-big small { font-size: 14px; font-weight: 700; color: var(--omg-ink-2); }
.omg-bottle-sub { font-size: 12px; color: var(--omg-ink-2); }
.omg-caps { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.omg-cap { width: 26px; height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--omg-gold) 0 50%, var(--omg-coral) 50% 100%); box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .14); }
.omg-cap.empty { background: transparent; border: 1px dashed var(--omg-line); box-shadow: none; }
.omg-form { margin-top: 14px; background: var(--omg-surface); border: 1px solid var(--omg-line); border-radius: 14px; padding: 20px; box-shadow: var(--omg-shadow); }
.omg-form-head { font-size: 10px; letter-spacing: .14em; font-weight: 850; color: var(--omg-brand); border-bottom: 2px solid var(--omg-brand-2); padding-bottom: 8px; margin-bottom: 14px; }
.omg-field { display: block; font-size: 12px; font-weight: 750; }
.omg-field small { font-size: 10px; font-weight: 500; color: var(--omg-ink-2); margin-left: 5px; }
.omg-field input, .omg-field select { margin-top: 5px; font-variant-numeric: tabular-nums; }
.omg-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.omg-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.omg-form-sep { font-size: 10px; letter-spacing: .1em; font-weight: 800; color: var(--omg-brand-2); margin: 4px 0 10px; }
.omg-check { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--omg-ink-2); margin-top: 4px; }
.omg-check input { width: 15px; height: 15px; flex: none; }
.omg-btn-main { display: block; width: 100%; margin-top: 14px; border: 0; border-radius: 10px; padding: 14px; font-family: inherit; font-size: 15px; font-weight: 850; color: #fff; cursor: pointer; background: linear-gradient(100deg, var(--omg-brand), var(--omg-brand-2)); box-shadow: 0 8px 20px rgba(18, 63, 99, .20); }
.omg-btn-main span { float: right; }
.omg-form-foot, .omg-note { font-size: 11px; line-height: 1.85; color: var(--omg-ink-2); margin-top: 12px; }
.omg-err { margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--omg-coral); background: rgba(239, 122, 88, .11); padding: 9px 11px; border-radius: 8px; }

/* 区块 */
.omg-sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.omg-sec-head > span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--omg-brand); color: var(--omg-surface); font-size: 11px; font-weight: 850; }
.omg-sec-head p { font-size: 12px; color: var(--omg-ink-2); }
.omg-page section.omg-result, .omg-page section.omg-compare, .omg-page section.omg-prose, .omg-page section.omg-sharebar { margin-top: 46px; }
.omg-main-card, .omg-side-card, .omg-table-card, .omg-card {
    background: var(--omg-surface); border: 1px solid var(--omg-line); border-radius: 14px; padding: 22px; box-shadow: var(--omg-shadow); min-width: 0;
}
.omg-scroll { width: 100%; overflow-x: auto; }
.omg-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.omg-table th, .omg-table td { padding: 10px 12px; border-bottom: 1px solid var(--omg-line); text-align: left; }
.omg-table th { font-size: 11px; color: var(--omg-ink-2); background: var(--omg-surface-2); font-weight: 750; }
.omg-table tr.is-best td { background: rgba(20, 168, 156, .10); font-weight: 800; }
.omg-table tr.is-bad td { color: var(--omg-coral); }

/* 结果 */
.omg-result-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.omg-main-cap { font-size: 10px; letter-spacing: .14em; font-weight: 850; color: var(--omg-brand-2); }
.omg-main-big { line-height: 1.1; margin: 10px 0 4px; }
.omg-main-big b { font-size: 64px; font-weight: 900; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.omg-main-big em { font-size: 19px; font-style: normal; color: var(--omg-ink-2); margin-left: 7px; }
.omg-main-sub { font-size: 13px; color: var(--omg-ink-2); }
.omg-stack { display: flex; height: 26px; border-radius: 8px; overflow: hidden; margin: 20px 0 10px; background: var(--omg-surface-2); }
.omg-stack i { display: block; height: 100%; transition: width .35s; }
.omg-stack-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--omg-ink-2); }
.omg-stack-legend span { display: inline-flex; align-items: center; gap: 5px; }
.omg-stack-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.omg-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 20px; }
.omg-kpis > div { background: var(--omg-surface-2); border-radius: 9px; padding: 10px; }
.omg-kpis span { display: block; font-size: 10px; color: var(--omg-ink-2); }
.omg-kpis b { font-size: 15px; font-variant-numeric: tabular-nums; }
.omg-side { display: flex; flex-direction: column; gap: 14px; }
.omg-side-card h3 { font-size: 16px; }
.omg-line { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--omg-line); }
.omg-line span { color: var(--omg-ink-2); }
.omg-line b { font-variant-numeric: tabular-nums; }
.omg-purity-bar { height: 9px; background: var(--omg-surface-2); border-radius: 5px; overflow: hidden; margin-top: 14px; }
.omg-purity-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--omg-brand-2), var(--omg-gold)); }
.omg-side-note { font-size: 11px; color: var(--omg-ink-2); margin-top: 10px; line-height: 1.85; }
.omg-alerts > div { font-size: 12px; line-height: 1.85; border-left: 3px solid var(--omg-coral); background: rgba(239, 122, 88, .09); padding: 9px 11px; border-radius: 0 8px 8px 0; margin-bottom: 8px; }
.omg-alerts > div.ok { border-left-color: var(--omg-brand-2); background: rgba(20, 168, 156, .09); }
.omg-table-card { margin-top: 18px; }
.omg-table-card h3 small { font-size: 11px; font-weight: 500; color: var(--omg-ink-2); margin-left: 8px; }

/* 对照 / 文章 */
.omg-compare-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; }
.omg-compare-grid textarea { resize: vertical; font-size: 13px; line-height: 1.9; }
.omg-btns { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.omg-btn-sub, .omg-btn-ghost { font-family: inherit; font-size: 13px; font-weight: 800; padding: 10px 16px; border-radius: 9px; cursor: pointer; border: 1px solid var(--omg-brand); background: var(--omg-brand); color: #fff; }
.omg-btn-ghost { background: transparent; color: var(--omg-brand); border-color: var(--omg-line); }
.omg-btn-ghost:hover { border-color: var(--omg-brand); }
.omg-article { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.omg-article article { background: var(--omg-surface); border: 1px solid var(--omg-line); border-top: 4px solid var(--omg-brand-2); border-radius: 4px 4px 14px 14px; padding: 20px; box-shadow: var(--omg-shadow); min-width: 0; }
.omg-article h3 { font-size: 16px; }
.omg-article p { font-size: 13px; line-height: 2.05; color: var(--omg-ink-2); }
.omg-sharebar { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; border: 1px dashed var(--omg-brand-2); border-radius: 14px; background: var(--omg-surface); padding: 22px 26px; }
.omg-sharebar h2 { font-size: 19px; }
.omg-sharebar p { font-size: 12px; color: var(--omg-ink-2); margin-top: 6px; max-width: 600px; }
.omg-sharebar .omg-btns { margin-top: 0; }
.omg-modal { position: fixed; inset: 0; z-index: 9000; background: rgba(9, 27, 38, .66); display: flex; align-items: center; justify-content: center; padding: 18px; }
.omg-modal[hidden] { display: none !important; }
.omg-modal-box { position: relative; width: min(460px, 100%); max-height: 88vh; overflow-y: auto; background: var(--omg-surface); color: var(--omg-ink); border-radius: 14px; padding: 26px; box-shadow: var(--omg-shadow); }
.omg-modal-x { position: absolute; right: 12px; top: 8px; border: 0; background: transparent; font-size: 24px; color: var(--omg-ink-2); cursor: pointer; line-height: 1; }
.omg-modal-kicker { font-size: 10px; letter-spacing: .14em; font-weight: 850; color: var(--omg-brand-2); }
.omg-modal-box h3 { font-size: 21px; margin: 8px 0 14px; }
.omg-modal-result { background: var(--omg-surface-2); border-radius: 10px; padding: 14px; font-size: 13px; line-height: 1.9; margin-bottom: 16px; }
.omg-modal-box .omg-field input { font-size: 12px; }
.omg-toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 9500; background: var(--omg-ink); color: var(--omg-surface); padding: 11px 20px; border-radius: 9px; font-size: 13px; box-shadow: var(--omg-shadow); }
.omg-toast[hidden] { display: none !important; }

@media (max-width: 900px) {
    .omg-hero, .omg-result-grid, .omg-compare-grid { grid-template-columns: 1fr; }
    .omg-article { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .omg-wrap { padding: 0 14px; }
    .omg-page { padding-top: 16px; font-size: 14px; }
    .omg-hero h1 { font-size: 31px; }
    .omg-sub { font-size: 15px; }
    .omg-hero-line { grid-template-columns: 1fr; row-gap: 10px; }
    .omg-two, .omg-three, .omg-kpis { grid-template-columns: 1fr; }
    .omg-main-big b { font-size: 48px; }
    .omg-page section.omg-result, .omg-page section.omg-compare, .omg-page section.omg-prose, .omg-page section.omg-sharebar { margin-top: 30px; }
    .omg-main-card, .omg-side-card, .omg-table-card, .omg-card { padding: 16px; }
    .omg-table { min-width: 500px; }
}
