/* ============================================================
   万川官网 · 运费与利润
   用成本关系和可操作试算器解释核算，不做价格宣传。
   ============================================================ */

.freight-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: -68px;
  padding: 148px 0 92px;
  color: var(--text-onDark);
  background:
    radial-gradient(circle at 75% 20%, rgba(82, 123, 230, .18), transparent 27%),
    radial-gradient(circle at 14% 90%, rgba(45, 78, 168, .15), transparent 31%),
    linear-gradient(148deg, #07102d 0%, #0a143b 52%, #08102d 100%);
}
.freight-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 760px;
  height: 760px;
  right: -280px;
  bottom: -560px;
  border: 1px solid rgba(157, 182, 255, .10);
  border-radius: 50%;
  box-shadow: 0 0 0 88px rgba(105, 139, 229, .024), 0 0 0 176px rgba(105, 139, 229, .014);
}
.freight-hero-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .68;
  background-image:
    linear-gradient(rgba(157, 182, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 182, 255, .04) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 82% 75% at 70% 43%, #000 25%, transparent 79%);
  -webkit-mask-image: radial-gradient(ellipse 82% 75% at 70% 43%, #000 25%, transparent 79%);
  animation: freight-grid-drift 26s linear infinite;
}
.freight-hero-layout { position: relative; display: grid; grid-template-columns: minmax(370px, .8fr) minmax(560px, 1.2fr); gap: 72px; align-items: center; }
.freight-hero-copy .eyebrow { margin-bottom: 18px; color: var(--moon-300); font-size: 11px; letter-spacing: .12em; }
.freight-hero-copy h1 { max-width: 520px; color: #f7f9ff; font-size: clamp(38px, 3.7vw, 50px); font-weight: 600; line-height: 1.16; letter-spacing: -.035em; }
.freight-hero-copy h1 span { color: #a9bef9; }
.freight-hero-copy > p:not(.eyebrow) { max-width: 530px; margin-top: 24px; color: #aab7de; font-size: 15px; line-height: 1.82; }
.freight-hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 31px; }
.freight-text-link { display: inline-flex; align-items: center; gap: 7px; color: #c9d5f7; font-size: 13px; font-weight: 600; }
.freight-text-link::after { content: "→"; color: var(--moon-300); transition: transform .18s ease; }
.freight-text-link:hover::after { transform: translateX(4px); }

.economics-board { position: relative; margin: 0; overflow: hidden; padding: 0 25px 25px; border: 1px solid rgba(151, 176, 245, .16); border-radius: 20px; background: linear-gradient(155deg, rgba(20, 36, 89, .76), rgba(5, 13, 42, .90)); box-shadow: 0 30px 70px -42px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .035); backdrop-filter: blur(10px); }
.economics-board::before { content: ""; position: absolute; inset: 0; opacity: .26; background-image: radial-gradient(circle, rgba(181, 199, 255, .32) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.economics-board > * { position: relative; z-index: 1; }
.economics-head { height: 49px; display: flex; align-items: center; justify-content: space-between; margin: 0 -25px; padding: 0 25px; border-bottom: 1px solid rgba(157, 182, 255, .10); }
.economics-head span { color: #c7d2f3; font-size: 10px; }
.economics-head b { color: #6678ae; font-family: var(--font-mono); font-size: 8px; font-weight: 500; }
.economics-revenue { display: flex; align-items: baseline; justify-content: space-between; margin-top: 22px; padding-bottom: 17px; border-bottom: 1px solid rgba(157, 182, 255, .10); }
.economics-revenue span { color: #8494c1; font-size: 10px; }
.economics-revenue strong { color: #f3f6ff; font-family: var(--font-mono); font-size: 22px; font-weight: 600; }
.economics-bars { display: grid; gap: 13px; margin-top: 18px; }
.economics-bars > div { display: grid; grid-template-columns: 78px minmax(0, 1fr) 94px; gap: 12px; align-items: center; }
.economics-bars span { color: #95a4ce; font-size: 9px; }
.economics-bars i { position: relative; height: 4px; overflow: hidden; border-radius: 4px; background: rgba(157, 182, 255, .09); }
.economics-bars i::after { content: ""; display: block; width: var(--w); height: 100%; border-radius: inherit; background: #7898eb; box-shadow: 0 0 12px rgba(120, 152, 235, .32); }
.economics-bars > div:nth-child(2) i::after { background: #91a8e7; }
.economics-bars > div:nth-child(3) i::after { background: #6b7da9; }
.economics-bars b { color: #cbd4ee; font-family: var(--font-mono); font-size: 9px; font-weight: 500; text-align: right; }
.economics-margin { display: grid; grid-template-columns: 1fr auto; gap: 5px 16px; align-items: end; margin-top: 21px; padding: 17px 18px; border: 1px solid rgba(242, 180, 95, .20); border-radius: 13px; background: linear-gradient(145deg, rgba(252, 217, 160, .08), rgba(255, 255, 255, .018)); }
.economics-margin span { color: var(--moon-300); font-size: 10px; }
.economics-margin strong { grid-row: span 2; color: #f7d7a2; font-family: var(--font-mono); font-size: 18px; font-weight: 600; }
.economics-margin small { color: #7081b4; font-size: 8px; }

.freight-structure { padding: 88px 0; }
.freight-structure .section-head,
.freight-modes .section-head,
.freight-calculator .section-head { margin-bottom: 40px; }
.freight-structure .section-title,
.freight-weight .section-title,
.freight-modes .section-title,
.freight-calculator .section-title { font-size: clamp(27px, 3vw, 36px); font-weight: 600; letter-spacing: -.025em; }
.cost-input-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--border); }
.cost-input-grid article { min-height: 174px; padding: 24px; background: var(--bg-card); }
.cost-input-grid article > span { color: var(--moon-500); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.cost-input-grid h3 { margin-top: 35px; font-size: 15px; font-weight: 600; }
.cost-input-grid p { margin-top: 9px; color: var(--text-soft); font-size: 13px; line-height: 1.7; }
.cost-equation { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; padding: 22px 25px; border: 1px solid rgba(151, 176, 245, .14); border-radius: 15px; color: #c8d2ef; background: linear-gradient(145deg, #101c4d, #07102f); }
.cost-equation b, .cost-equation strong { font-size: 11px; font-weight: 600; }
.cost-equation i { color: #6275ad; font-family: var(--font-mono); font-size: 12px; font-style: normal; }
.cost-equation strong { color: var(--moon-300); }

.freight-weight { padding: 88px 0; }
.freight-weight-layout { display: grid; grid-template-columns: minmax(0, .78fr) minmax(480px, 1.22fr); gap: 76px; align-items: center; }
.weight-copy .section-lede { max-width: 470px; font-size: 14px; }
.weight-note { max-width: 470px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.weight-board { overflow: hidden; border: 1px solid var(--border); border-radius: 17px; background: var(--bg-card); box-shadow: 0 26px 60px -50px rgba(12, 27, 79, .38); }
.weight-board-head { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 21px; border-bottom: 1px solid var(--border-soft); }
.weight-board-head span { color: var(--text-muted); font-size: 9px; }
.weight-board-head b { color: var(--accent); font-family: var(--font-mono); font-size: 9px; font-weight: 500; }
.weight-values { display: grid; grid-template-columns: 1fr 28px 1fr; gap: 10px; align-items: center; padding: 28px 24px; }
.weight-values article { min-height: 108px; padding: 19px; border: 1px solid var(--border); border-radius: 13px; background: var(--bg-subtle); }
.weight-values article span { color: var(--text-muted); font-size: 9px; }
.weight-values article strong { display: block; margin-top: 15px; color: var(--text); font-family: var(--font-mono); font-size: 20px; font-weight: 600; }
.weight-values article small { display: block; margin-top: 7px; color: var(--text-muted); font-family: var(--font-mono); font-size: 8px; }
.weight-values > i { color: var(--text-muted); font-family: var(--font-mono); font-size: 9px; font-style: normal; text-align: center; }
.weight-result { position: relative; display: flex; align-items: baseline; justify-content: space-between; margin: 0 24px 24px; padding: 17px 18px; overflow: hidden; border: 1px solid rgba(59, 111, 224, .17); border-radius: 13px; background: rgba(59, 111, 224, .055); }
.weight-result span { color: var(--accent); font-size: 10px; font-weight: 600; }
.weight-result strong { color: var(--text); font-family: var(--font-mono); font-size: 18px; font-weight: 600; }
.weight-result i { position: absolute; left: 0; bottom: 0; width: 68%; height: 2px; background: linear-gradient(90deg, #7898eb, transparent); }

.freight-modes { padding: 88px 0; }
.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mode-grid > article { position: relative; min-height: 322px; padding: 27px; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); }
.mode-grid > article > span { color: var(--moon-500); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.mode-grid h3 { margin-top: 34px; font-size: 18px; font-weight: 600; }
.mode-grid > article > p { min-height: 46px; margin-top: 11px; color: var(--text-soft); font-size: 13.5px; line-height: 1.7; }
.mode-grid dl { margin: 27px 0 0; border-top: 1px solid var(--border-soft); }
.mode-grid dl > div { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.mode-grid dt { color: var(--text-muted); font-size: 10.5px; }
.mode-grid dd { margin: 0; color: var(--text); font-size: 12px; line-height: 1.65; }
.mode-card--active { border-color: rgba(59, 111, 224, .22) !important; background: linear-gradient(155deg, rgba(59, 111, 224, .06), var(--bg-card)) !important; }
.mode-card--active::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: #7898eb; }
.mode-note { margin-top: 17px; color: var(--text-muted); font-size: 12.5px; line-height: 1.7; }

.freight-calculator { padding: 88px 0; }
.freight-calculator .calc { gap: 14px; }
.freight-calculator .calc-pane { padding: 26px; border-radius: 16px; box-shadow: none; }
.freight-calculator .calc-modes { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--border-soft); }
.freight-calculator .calc-mode { padding: 7px 13px; border-radius: 8px; font-size: 11.5px; }
.freight-calculator .calc-mode.is-on { border-color: #7898eb; background: #7898eb; }
.freight-calculator .calc-grid { gap: 14px; }
.freight-calculator .calc-field label { min-height: 38px; margin-bottom: 6px; font-size: 12.5px; }
.freight-calculator .calc-field input { height: 38px; padding: 7px 10px; border-radius: 7px; font-size: 13px; }
.freight-calculator .calc-row { padding: 10px 0; font-size: 13.5px; }
.freight-calculator .calc-only-semi[hidden],
.freight-calculator .calc-with-fee[hidden] { display: none; }
.freight-calculator .calc-sub { display: block; margin-top: 4px; font-size: 11px; }
.freight-calculator .calc-row--margin dd { color: var(--accent); font-size: 15px; }
.freight-calculator .calc-verdict { padding: 13px 15px; border-radius: 9px; font-size: 13px; }
.freight-calculator .grid-2 { gap: 12px; margin-top: 14px !important; }
.freight-calculator .grid-2 > div { padding: 25px; border: 1px solid var(--border); border-radius: 15px; background: var(--bg-card); }
.freight-calculator .claim-title { font-size: 15px; }
.freight-calculator .claim-body { font-size: 13px; }
.freight-calculator .calc-excl li { padding: 6px 0 6px 18px; font-size: 13px; }
.freight-calculator .checklist-note { margin-top: 15px; color: var(--text-muted); font-size: 12px; line-height: 1.65; }

@keyframes freight-grid-drift { to { background-position: 58px 58px; } }

:root[data-theme="dark"] {
  .mode-card--active { background: linear-gradient(155deg, rgba(74, 111, 210, .12), var(--bg-card)) !important; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .mode-card--active { background: linear-gradient(155deg, rgba(74, 111, 210, .12), var(--bg-card)) !important; } }

@media (max-width: 1040px) {
  .freight-hero-layout, .freight-weight-layout { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .economics-board, .weight-board { max-width: 760px; }
  .cost-input-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .mode-grid { grid-template-columns: minmax(0, 1fr); }
  .mode-grid > article { min-height: 280px; }
  .cost-equation { flex-wrap: wrap; gap: 10px; }
}

@media (max-width: 580px) {
  .freight-hero { padding-top: 126px; padding-bottom: 72px; }
  .freight-hero-copy h1 { font-size: 34px; line-height: 1.18; }
  .freight-hero-copy > p:not(.eyebrow) { font-size: 14.5px; }
  .freight-hero-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .freight-hero-actions .btn { width: 100%; }
  .freight-text-link { justify-content: center; }
  .economics-board { padding: 0 18px 20px; }
  .economics-head { margin: 0 -18px; padding: 0 18px; }
  .economics-bars > div { grid-template-columns: 65px minmax(0, 1fr); }
  .economics-bars b { grid-column: 2; }
  .economics-margin { grid-template-columns: minmax(0, 1fr); }
  .economics-margin strong { grid-row: auto; font-size: 16px; }
  .freight-structure, .freight-weight, .freight-modes, .freight-calculator { padding: 72px 0; }
  .cost-input-grid { grid-template-columns: minmax(0, 1fr); }
  .cost-input-grid article { min-height: 145px; }
  .cost-equation { justify-content: flex-start; }
  .weight-values { grid-template-columns: minmax(0, 1fr); }
  .weight-values > i { transform: rotate(90deg); }
  .freight-calculator .calc-pane { padding: 20px; }
  .calc-mode { min-height: 44px; }
  .calc-field input { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .freight-hero-grid { animation: none; }
}
