/* coldchain.css - 有肉冷链页（-18℃ 相变冰袋 + 配冰计算器）
   视觉延续 dining.css 的浅色编辑风：白纸底、深墨字、有肉红/绿点缀；顶栏由共享 header.css 负责。 */
:root {
  --cc-ink: #171a18;
  --cc-muted: #5d635f;
  --cc-paper: #ffffff;
  --cc-soft: #f3f5f2;
  --cc-line: #d9ddd9;
  --cc-red: #a91f2b;
  --cc-red-dark: #68141c;
  --cc-green: #2f6247;
  --cc-dark: #151816;
  --cc-ice: #2563eb;     /* 图表：冰袋占比。与有肉红成对已过色盲校验（ΔE 29.6） */
  --cc-amber: #b45309;   /* 状态：偏紧 */
  --cc-radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--cc-paper);
  color: var(--cc-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body, button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.cc-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.eyebrow { margin: 0 0 14px; color: var(--cc-red); font-size: 13px; font-weight: 800; }
h2 { margin: 0; font-size: 36px; font-weight: 850; line-height: 1.15; text-wrap: balance; }
.section { padding: 84px 0; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  align-items: end;
  gap: 72px;
  margin-bottom: 42px;
}
.section-heading > p { margin: 0; color: var(--cc-muted); font-size: 15px; line-height: 1.75; }

/* ---------- Hero ---------- */
.cc-hero {
  position: relative;
  height: min(680px, calc(100svh - 80px));
  min-height: 480px;
  overflow: hidden;
  isolation: isolate;
  background: var(--cc-dark);
  color: #fff;
}
.cc-hero .hero-media, .cc-hero .hero-media img, .cc-hero .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.cc-hero .hero-media { z-index: -2; }
.cc-hero .hero-media img { object-fit: cover; object-position: 55% 50%; }
.cc-hero .hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 13, 12, .94) 0%, rgba(11, 13, 12, .74) 40%, rgba(11, 13, 12, .22) 72%, rgba(11, 13, 12, .1) 100%),
    linear-gradient(0deg, rgba(11, 13, 12, .45) 0%, transparent 45%);
}
.hero-inner { height: 100%; display: flex; align-items: center; }
.hero-kicker { margin: 0 0 14px; color: #bcd3ff; font-size: 13px; font-weight: 800; }
.hero-copy h1 { max-width: 640px; margin: 0; font-size: 56px; font-weight: 850; line-height: 1.08; text-wrap: balance; }
.hero-lead { max-width: 600px; margin: 24px 0 0; color: rgba(255, 255, 255, .84); font-size: 18px; line-height: 1.75; }
.hero-facts { display: flex; flex-wrap: wrap; margin-top: 26px; color: rgba(255, 255, 255, .76); font-size: 14px; }
.hero-facts span { padding: 0 16px; border-left: 1px solid rgba(255, 255, 255, .35); }
.hero-facts span:first-child { padding-left: 0; border-left: 0; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-caption {
  position: absolute; right: 24px; bottom: 18px;
  padding: 4px 10px; border-radius: 4px;
  background: rgba(11, 13, 12, .6); color: rgba(255, 255, 255, .8); font-size: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--cc-radius);
  font-family: inherit; font-size: 15px; font-weight: 800; line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1), background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}
.button-primary { background: #fff; color: var(--cc-ink); }
.button-red { background: var(--cc-red); color: #fff; }
.button-green { background: var(--cc-green); color: #fff; }
.button-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 750; color: #fff;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.inline-link { color: var(--cc-green); font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 说明条 + 三格要点 ---------- */
.cc-strip { background: #282c29; color: rgba(255, 255, 255, .72); font-size: 13px; }
.cc-strip .cc-shell { min-height: 44px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 0; }
.cc-strip strong { color: #fff; }
.proof-band { border-bottom: 1px solid var(--cc-line); background: #fff; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-item { padding: 34px 24px; border-left: 1px solid var(--cc-line); }
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-value { display: block; font-size: 30px; font-weight: 850; line-height: 1.1; }
.proof-label { display: block; margin-top: 8px; color: var(--cc-muted); font-size: 14px; }

/* ---------- 为什么是 -18℃ ---------- */
.why-section { background: var(--cc-soft); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 34px 0; }
.why-card { padding: 24px; background: #fff; border: 1px solid var(--cc-line); border-radius: var(--cc-radius); }
.why-card .tag {
  display: inline-block; margin-bottom: 12px; padding: 3px 10px; border-radius: 999px;
  background: rgba(37, 99, 235, .1); color: var(--cc-ice); font-size: 12px; font-weight: 800;
}
.why-card h3 { margin: 0 0 10px; font-size: 18px; }
.why-card p { margin: 0; color: var(--cc-muted); font-size: 14px; line-height: 1.75; }

.cc-table-wrap { overflow-x: auto; border: 1px solid var(--cc-line); border-radius: var(--cc-radius); background: #fff; }
.cc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cc-table th, .cc-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--cc-line); }
.cc-table thead th { background: var(--cc-soft); font-size: 13px; color: var(--cc-muted); font-weight: 800; white-space: nowrap; }
.cc-table tbody tr:last-child td, .cc-table tbody tr:last-child th { border-bottom: 0; }
.cc-table th[scope="row"] { font-weight: 800; white-space: nowrap; }
.cc-table td.hl { font-weight: 700; background: rgba(37, 99, 235, .05); }
.cc-table td.num { font-variant-numeric: tabular-nums; }

details.cc-more { margin-top: 24px; border-top: 1px solid var(--cc-line); padding-top: 16px; }
details.cc-more summary { cursor: pointer; font-weight: 800; color: var(--cc-green); }
details.cc-more p, details.cc-more li { color: var(--cc-muted); font-size: 14px; line-height: 1.75; }
details.cc-more ul { padding-left: 18px; }

/* ---------- 有肉的冷链坚持 ---------- */
.standard-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 56px; align-items: start; }
.standard-list { margin: 0; padding: 0; list-style: none; }
.standard-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--cc-line); }
.standard-list li:last-child { border-bottom: 1px solid var(--cc-line); }
.standard-list .idx { font-family: Georgia, serif; color: var(--cc-red); font-size: 14px; padding-top: 4px; }
.standard-list h3 { margin: 0 0 8px; font-size: 19px; }
.standard-list p { margin: 0; color: var(--cc-muted); font-size: 14px; line-height: 1.75; }
.standard-aside { position: sticky; top: 84px; padding: 28px; background: var(--cc-dark); color: #fff; border-radius: var(--cc-radius); }
.standard-aside .eyebrow { color: #ff9ca5; }
.standard-aside h3 { margin: 0 0 14px; font-size: 24px; line-height: 1.3; }
.standard-aside p { margin: 0 0 12px; color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1.8; }
.standard-aside p:last-child { margin-bottom: 0; }

/* ---------- 计算器 ---------- */
.calc-section { background: var(--cc-soft); }
.calc-card { background: #fff; border: 1px solid var(--cc-line); border-radius: var(--cc-radius); padding: 28px; }
.calc-layout { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.4fr); gap: 36px; }
.calc-controls { display: flex; flex-direction: column; gap: 18px; }
.calc-controls-title { margin: 0; font-size: 13px; font-weight: 800; color: var(--cc-muted); letter-spacing: .04em; }
.calc-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.preset {
  padding: 8px 12px; border: 1px solid var(--cc-line); border-radius: 999px;
  background: #fff; color: var(--cc-ink); font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.2;
  text-align: left; cursor: pointer;
}
.preset small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; opacity: .7; }
.preset.is-active { background: var(--cc-ink); color: #fff; border-color: var(--cc-ink); }
.ctrl {
  display: grid; grid-template-columns: 1fr 88px; grid-template-areas: "label num" "range num";
  column-gap: 12px; row-gap: 6px; align-items: center;
}
.ctrl label { grid-area: label; font-size: 14px; font-weight: 800; }
.ctrl input[type="range"] { grid-area: range; width: 100%; margin: 0; }
.ctrl input[type="number"], .ctrl select {
  grid-area: num; height: 44px; padding: 0 10px;
  border: 1px solid var(--cc-line); border-radius: var(--cc-radius);
  font-family: inherit; font-size: 15px; font-weight: 700; color: var(--cc-ink); background: #fff; text-align: center;
}
.ctrl input[type="number"]:focus-visible, .ctrl select:focus-visible { outline: 2px solid var(--cc-ice); outline-offset: 1px; }
.ctrl.ctrl-select { grid-template-columns: 1fr; grid-template-areas: "label" "num"; }
.ctrl.ctrl-select select { width: 100%; text-align: left; }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 28px; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: #cfd5d1; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; margin-top: -9px; border-radius: 50%;
  background: #fff; border: 2px solid var(--cc-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); cursor: pointer;
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: #cfd5d1; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--cc-ink); cursor: pointer; }
input[type="range"]:focus-visible { outline: 2px solid var(--cc-ice); outline-offset: 2px; }
.calc-reset {
  align-self: flex-start; padding: 8px 0;
  background: none; border: 0; color: var(--cc-green);
  font-family: inherit; font-size: 14px; font-weight: 750; text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}

.calc-results { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.cc-chart-wrap { position: relative; }
.cc-chart-title { margin: 0 0 6px; font-size: 14px; font-weight: 800; }
.cc-svg { width: 100%; height: auto; display: block; font-family: inherit; }
.cc-grid { stroke: #e6e9e6; stroke-width: 1; }
.cc-tick { font-size: 11px; fill: var(--cc-muted); }
.cc-axis-title { font-size: 11px; fill: var(--cc-muted); }
.cc-warnline { stroke: var(--cc-red); stroke-width: 1.5; stroke-dasharray: 4 4; }
.cc-warnlabel { font-size: 11px; font-weight: 800; fill: var(--cc-red); }
.cc-label { font-size: 13px; font-weight: 700; fill: var(--cc-ink); }
.cc-track { fill: #f0f2f0; }
.cc-value { font-size: 13px; font-weight: 800; }
.cc-bar { cursor: default; outline: none; }
.cc-bar:focus-visible .cc-track { stroke: var(--cc-ice); stroke-width: 2; }
.cc-tooltip {
  position: absolute; z-index: 5; pointer-events: none;
  padding: 8px 12px; border-radius: var(--cc-radius);
  background: var(--cc-dark); color: #fff; font-size: 12px; line-height: 1.5; white-space: nowrap;
  opacity: 0; transform: translateY(-100%); transition: opacity 120ms;
}
.cc-tooltip.is-visible { opacity: 1; }
.cc-tooltip strong { display: block; font-size: 13px; }
.cc-tooltip span { display: block; color: rgba(255, 255, 255, .8); }

.cc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--cc-line); border-radius: var(--cc-radius); overflow: hidden; }
.cc-tile { padding: 18px 20px; border-left: 1px solid var(--cc-line); background: #fff; }
.cc-tile:first-child { border-left: 0; }
.cc-tile-label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--cc-muted); }
.cc-tile-value { display: block; margin-top: 6px; font-size: 26px; font-weight: 850; line-height: 1.15; }
.cc-tile-advice { display: block; margin-top: 6px; font-size: 12px; color: var(--cc-muted); line-height: 1.5; }
.cc-tile-status .cc-tile-value { font-size: 17px; }
.cc-tile-status.is-good { background: rgba(47, 98, 71, .08); }
.cc-tile-status.is-good .cc-tile-value { color: var(--cc-green); }
.cc-tile-status.is-warning { background: rgba(180, 83, 9, .08); }
.cc-tile-status.is-warning .cc-tile-value { color: var(--cc-amber); }
.cc-tile-status.is-serious { background: rgba(169, 31, 43, .08); }
.cc-tile-status.is-serious .cc-tile-value { color: var(--cc-red); }
.cc-tile-status.is-critical { background: var(--cc-red-dark); }
.cc-tile-status.is-critical .cc-tile-value, .cc-tile-status.is-critical .cc-tile-label, .cc-tile-status.is-critical .cc-tile-advice { color: #fff; }
.cc-tile-status.is-invalid { background: var(--cc-soft); }

.cc-param-table th[scope="row"] { font-weight: 600; color: var(--cc-muted); }
.cc-param-table td { font-weight: 800; font-variant-numeric: tabular-nums; }
.cc-row-status.is-good td, .cc-row-status.is-good th { background: rgba(47, 98, 71, .08); color: var(--cc-green); }
.cc-row-status.is-warning td, .cc-row-status.is-warning th { background: rgba(180, 83, 9, .08); color: var(--cc-amber); }
.cc-row-status.is-serious td, .cc-row-status.is-serious th { background: rgba(169, 31, 43, .08); color: var(--cc-red); }
.cc-row-status.is-critical td, .cc-row-status.is-critical th { background: var(--cc-red-dark); color: #fff; }
.cc-summary { margin: 0; padding: 14px 16px; background: var(--cc-soft); border-radius: var(--cc-radius); font-size: 14px; line-height: 1.7; }
.calc-note { margin: 18px 0 0; color: var(--cc-muted); font-size: 12px; line-height: 1.7; }

/* ---------- 计算原理 ---------- */
.formula-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.formula-card { padding: 24px; border: 1px solid var(--cc-line); border-radius: var(--cc-radius); background: #fff; }
.formula-card h3 { margin: 0 0 12px; font-size: 17px; }
.formula {
  margin: 0 0 14px; padding: 14px 16px; border-radius: var(--cc-radius);
  background: var(--cc-soft); font-family: "Times New Roman", Georgia, serif; font-size: 20px; text-align: center;
}
.formula sub { font-size: .6em; }
.formula-card ul { margin: 0; padding-left: 18px; color: var(--cc-muted); font-size: 13px; line-height: 1.75; }
.formula-card li b { color: var(--cc-ink); }
.principle-block { margin-top: 48px; }
.principle-block h3 { margin: 0 0 18px; font-size: 22px; }
.example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 28px; background: var(--cc-soft); border-radius: var(--cc-radius); }
.example h4 { margin: 0 0 10px; font-size: 15px; }
.example ul, .example ol { margin: 0; padding-left: 18px; color: var(--cc-muted); font-size: 14px; line-height: 1.8; }
.example .formula { font-size: 17px; margin: 10px 0; background: #fff; }
.example .conclusion { margin-top: 14px; padding: 14px 16px; border-left: 3px solid var(--cc-red); background: #fff; font-size: 14px; line-height: 1.75; }
.example .conclusion ol { margin-top: 6px; }
.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rule-card { padding: 22px; border: 1px solid var(--cc-line); border-radius: var(--cc-radius); }
.rule-card .rule-head { display: block; font-size: 13px; font-weight: 800; color: var(--cc-red); }
.rule-card .rule-value { display: block; margin: 6px 0; font-size: 28px; font-weight: 850; line-height: 1.1; }
.rule-card p { margin: 0; color: var(--cc-muted); font-size: 13px; line-height: 1.7; }
.tips-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tips-list li { padding: 22px; background: var(--cc-soft); border-radius: var(--cc-radius); }
.tips-list h4 { margin: 0 0 8px; font-size: 16px; }
.tips-list p { margin: 0; color: var(--cc-muted); font-size: 14px; line-height: 1.75; }

/* ---------- 到家之后 + CTA ---------- */
.after-section { background: var(--cc-dark); color: #fff; }
.after-section .eyebrow { color: #ff9ca5; }
.after-section .section-heading > p { color: rgba(255, 255, 255, .62); }
.after-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.after-card { display: block; padding: 24px; border: 1px solid rgba(255, 255, 255, .13); border-radius: var(--cc-radius); background: #202421; transition: transform 200ms cubic-bezier(.2, .8, .2, 1); }
.after-card .emoji { font-size: 28px; }
.after-card h3 { margin: 12px 0 8px; font-size: 17px; }
.after-card p { margin: 0; color: rgba(255, 255, 255, .66); font-size: 14px; line-height: 1.7; }
.cta-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: center;
  margin-top: 56px; padding-top: 48px; border-top: 1px solid rgba(255, 255, 255, .13);
}
.cta-layout h3 { margin: 0 0 12px; font-size: 28px; line-height: 1.25; }
.cta-layout p { margin: 0 0 20px; color: rgba(255, 255, 255, .72); font-size: 15px; line-height: 1.75; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-qr { padding: 18px; background: #fff; color: var(--cc-ink); border-radius: var(--cc-radius); text-align: center; }
.cta-qr img { width: 100%; max-width: 240px; margin: 0 auto 10px; }
.cta-qr span { display: block; font-size: 13px; color: var(--cc-muted); }

.cc-footer { border-top: 1px solid var(--cc-line); background: #fff; }
.footer-layout { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 0; font-size: 13px; color: var(--cc-muted); }
.footer-layout p { margin: 0; }
.footer-layout strong { margin-right: 8px; color: var(--cc-ink); }
.footer-layout a { color: var(--cc-green); font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }

@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-1px); }
  .preset:hover { border-color: var(--cc-ink); }
  .after-card:hover { transform: translateY(-2px); }
}
@media (max-width: 980px) {
  .section-heading { grid-template-columns: 1fr; gap: 16px; }
  .standard-layout { grid-template-columns: 1fr; }
  .standard-aside { position: static; }
  .calc-layout { grid-template-columns: 1fr; }
  .formula-grid, .rule-grid, .tips-list, .after-grid { grid-template-columns: 1fr 1fr; }
  .example { grid-template-columns: 1fr; }
  .cta-layout { grid-template-columns: 1fr; }
  .cta-qr { max-width: 320px; }
}
@media (max-width: 720px) {
  .cc-shell { width: calc(100% - 32px); }
  .section { padding: 56px 0; }
  h2 { font-size: 28px; }
  .cc-hero { height: auto; min-height: 0; padding: 64px 0 56px; }
  .hero-inner { height: auto; }
  .hero-copy h1 { font-size: 36px; }
  .hero-lead { font-size: 16px; }
  .hero-caption { display: none; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item { padding: 18px 0; border-left: 0; border-top: 1px solid var(--cc-line); }
  .proof-item:first-child { border-top: 0; }
  .proof-value { font-size: 24px; }
  .why-grid, .formula-grid, .rule-grid, .tips-list, .after-grid { grid-template-columns: 1fr; }
  .calc-card { padding: 18px; }
  .cc-tiles { grid-template-columns: 1fr; }
  .cc-tile { border-left: 0; border-top: 1px solid var(--cc-line); }
  .cc-tile:first-child { border-top: 0; }
  .cc-table th, .cc-table td { padding: 10px 12px; font-size: 13px; }
  .standard-list li { grid-template-columns: 32px 1fr; }
  .cta-layout h3 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .after-card, .cc-tooltip { transition: none; }
}

/* 四列表格在手机上改为堆叠卡片：每行一张卡，行头当标题，单元格前用 data-label 标出列名 */
@media (max-width: 720px) {
  .cc-table-stack thead { display: none; }
  .cc-table-stack tbody, .cc-table-stack tr, .cc-table-stack th, .cc-table-stack td { display: block; width: 100%; }
  .cc-table-stack tr { padding: 6px 0 10px; border-bottom: 1px solid var(--cc-line); }
  .cc-table-stack tbody tr:last-child { border-bottom: 0; }
  .cc-table-stack th[scope="row"] { padding: 10px 14px 4px; border-bottom: 0; white-space: normal; font-size: 14px; }
  .cc-table-stack td { padding: 6px 14px; border-bottom: 0; font-size: 13px; }
  .cc-table-stack td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 11px; font-weight: 800; color: var(--cc-muted); }
  .cc-table-stack td.hl { border-radius: 4px; }
}
