@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("fonts/harmonyos-sans/HarmonyOS_Sans_SC_Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("fonts/harmonyos-sans/HarmonyOS_Sans_SC_Bold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --blue: #0066cc;
  --surface: #f5f5f7;
  --safe: min(1160px, calc(100vw - 44px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 20%, rgba(0, 102, 204, .10), transparent 30%),
    radial-gradient(circle at 86% 44%, rgba(43, 122, 255, .08), transparent 28%),
    linear-gradient(180deg, #fbfbfd 0%, var(--surface) 46%, #edf4fb 100%);
  -webkit-font-smoothing: antialiased;
  line-break: strict;
  word-break: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 calc((100vw - var(--safe)) / 2);
  border-bottom: 1px solid rgba(255,255,255,.48);
  background:
    linear-gradient(180deg, rgba(255,255,255,.76), rgba(255,255,255,.46)),
    rgba(251,251,253,.58);
  box-shadow: 0 18px 54px rgba(0,0,0,.06);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
}

.brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.topbar nav {
  display: flex;
  gap: 28px;
  color: #424245;
  font-size: 12px;
}

.topbar a:hover {
  color: var(--blue);
}

.hero {
  position: relative;
  width: min(1120px, calc(100vw - 44px));
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(320px, .62fr);
  gap: 46px;
  align-items: center;
  padding: 24px 0 66px;
  overflow: visible;
  border-radius: 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  box-shadow: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 14px;
  color: #bf4800;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .01em;
  font-stretch: normal;
  text-wrap: balance;
}

.hero h1,
.section-copy h2,
.formula h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.16;
  letter-spacing: -.012em;
  font-weight: 800;
  text-wrap: balance;
}

.title-line {
  display: block;
}

.hero-subtitle {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.72;
  letter-spacing: 0;
  text-wrap: pretty;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 420px;
  display: grid;
  align-content: end;
  padding: 28px;
  overflow: hidden;
  border-radius: 38px;
  background: #102033;
  box-shadow: 0 30px 100px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.86);
  isolation: isolate;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7,18,34,.02), rgba(7,18,34,.72)),
    linear-gradient(90deg, rgba(7,18,34,.68), rgba(7,18,34,.04));
  pointer-events: none;
}

.hero-visual-copy {
  position: relative;
  z-index: 2;
  max-width: 360px;
  color: #fff;
}

.hero-visual-copy em {
  display: block;
  margin-bottom: 12px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .04em;
}

.hero-visual-copy strong {
  display: block;
  color: #fff;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -.045em;
  text-shadow: 0 8px 30px rgba(0,0,0,.25);
}

.hero-visual-copy span {
  display: block;
  margin-top: 12px;
  color: rgba(255,255,255,.82);
  font-size: 16px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}

.hero-actions a {
  color: #0066cc;
  font-size: 21px;
}

.hero-actions a::after {
  content: " >";
}

.calculator,
.scenarios,
.formula {
  width: var(--safe);
  margin: 0 auto;
  padding: 104px 0;
  border-top: 1px solid rgba(0,0,0,.08);
}

.section-copy {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-copy.center {
  margin-inline: auto;
  text-align: center;
}

.section-copy h2,
.formula h2 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.22;
  letter-spacing: -.01em;
}

.section-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.78;
  letter-spacing: 0;
  text-wrap: pretty;
}

.calc-panel,
.comparison,
.scenario-list button,
.formula-grid p {
  border: 1px solid rgba(255,255,255,.68);
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.58)),
    rgba(255,255,255,.48);
  box-shadow: 0 24px 80px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.88);
  backdrop-filter: blur(28px) saturate(155%);
  -webkit-backdrop-filter: blur(28px) saturate(155%);
}

.calc-panel {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(300px, 1fr) minmax(300px, 1fr);
  grid-template-rows: auto auto auto 1fr auto;
  gap: 22px 32px;
  align-items: stretch;
  padding: clamp(26px, 3vw, 38px);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.74)),
    rgba(255,255,255,.68);
  box-shadow:
    0 22px 70px rgba(29, 29, 31, .075),
    inset 0 1px 0 rgba(255,255,255,.94);
}

.field {
  display: grid;
  gap: 10px;
  align-content: start;
  grid-column: 1;
  max-width: 320px;
}

.field:nth-of-type(1) {
  grid-row: 1;
}

.field:nth-of-type(2) {
  grid-row: 2;
  margin-top: 8px;
}

.field:nth-of-type(3) {
  grid-row: 3;
  margin-top: 4px;
}

label {
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

input {
  width: 100%;
  height: 58px;
  border: 1px solid rgba(29,29,31,.075);
  border-radius: 18px;
  padding: 0 18px;
  outline: none;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,250,252,.92)),
    #fbfbfd;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 1px 2px rgba(29,29,31,.025);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.province-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  min-height: 52px;
  border: 1px solid rgba(29,29,31,.055);
  border-radius: 20px;
  background: rgba(245,245,247,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
}

.province-picker button {
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  color: #424245;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.province-picker button.active {
  color: #fff;
  background: #0071e3;
  box-shadow: 0 8px 22px rgba(0,113,227,.22);
}

input:focus {
  border-color: #0071e3;
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(0,113,227,.12),
    0 6px 18px rgba(0,113,227,.08);
}

.calc-actions {
  grid-column: 1;
  grid-row: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 28px;
}

.calc-actions button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #fff;
  background: #0071e3;
  font-weight: 800;
  cursor: pointer;
}

.calc-actions button + button {
  color: #0066cc;
  background: rgba(255,255,255,.64);
}

.insight-board {
  grid-column: 2 / 4;
  grid-row: 1 / span 4;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  min-height: 386px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0,113,227,.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.64));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    0 28px 80px rgba(0,0,0,.075);
  overflow: hidden;
}

.rate-board {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 386px;
  padding: 28px 28px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.rate-board-head,
.rate-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.rate-board-head {
  min-height: 28px;
  margin-bottom: 12px;
}

.rate-board-head span,
.rate-line span {
  color: #6e6e73;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
}

.rate-board-head strong {
  position: absolute;
  top: 28px;
  right: 34px;
  z-index: 2;
  color: #0071e3;
  font-size: 15px;
  letter-spacing: 0;
}

.rate-line {
  display: grid;
  gap: 9px;
  padding: 20px 0 19px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rate-line + .rate-line {
  border-top: 1px solid rgba(110,110,115,.13);
}

.rate-line strong {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #1d1d1f;
}

.rate-line b {
  font-variant-numeric: tabular-nums;
  font-size: clamp(38px, 5vw, 58px);
  line-height: .9;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.rate-line em {
  color: #6e6e73;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.rate-disclaimer,
.rate-source {
  margin: 0;
  color: #86868b;
  font-size: 11.5px;
  line-height: 1.82;
  letter-spacing: 0;
  text-wrap: pretty;
}

.rate-source {
  padding-top: 12px;
  border-top: 1px solid rgba(110,110,115,.14);
}

.rate-disclaimer {
  padding-top: 12px;
  border-top: 1px solid rgba(110,110,115,.10);
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 386px;
  margin-top: 0;
  padding: 28px 28px 24px;
  border: 0;
  border-left: 1px solid rgba(110,110,115,.13);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.result-grid article {
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 0;
  padding: 18px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.result-grid article + article {
  border-top: 1px solid rgba(110,110,115,.13);
}

.result-grid span,
.comparison span,
.formula-grid span {
  color: var(--muted);
  line-height: 1.65;
  letter-spacing: 0;
}

.result-grid strong {
  color: #0071e3;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.result-grid small {
  color: var(--muted);
}

.comparison {
  grid-column: 2 / 4;
  grid-row: 5;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 8px;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.70), rgba(255,255,255,.46)),
    rgba(255,255,255,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.84);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.comparison div {
  padding: 24px 28px;
  border-radius: 0;
  background: transparent;
}

.comparison div + div {
  border-left: 1px solid rgba(110,110,115,.13);
}

.comparison strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -.05em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.scenario-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.scenario-list button {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  border-radius: 34px;
  padding: 26px;
  text-align: left;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
}

.scenario-list button:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 100px rgba(0,0,0,.11), inset 0 1px 0 rgba(255,255,255,.90);
}

.scenario-list span,
.scenario-list strong,
.scenario-list em,
.scenario-list small {
  display: block;
}

.scenario-list span {
  color: var(--ink);
  font-weight: 850;
}

.scenario-list strong {
  margin-top: auto;
  color: var(--ink);
  font-size: 28px;
  letter-spacing: -.045em;
}

.scenario-list em {
  color: #424245;
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.58;
}

.scenario-list small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.formula {
  padding-bottom: 110px;
}

.formula h2 {
  max-width: 880px;
}

.formula-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.formula-grid p {
  display: grid;
  gap: 12px;
  min-height: 210px;
  margin: 0;
  padding: 24px;
  border-radius: 30px;
}

.formula-grid strong {
  font-size: 22px;
}

footer {
  width: var(--safe);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid rgba(0,0,0,.08);
  color: var(--muted);
  font-size: 13px;
}

.embedded-view body {
  background: transparent;
}

.embedded-view,
.embedded-view main {
  background: transparent;
}

html.embedded-view {
  background: transparent;
}

.embedded-view .topbar {
  display: none;
}

.embedded-view .hero {
  width: min(1120px, calc(100vw - 44px));
  min-height: 0;
  margin: 0 auto;
  padding: 24px 0 66px;
}

.embedded-view .calculator,
.embedded-view .scenarios,
.embedded-view .formula {
  width: min(1180px, calc(100vw - 44px));
}

.embedded-view .hero h1 {
  max-width: 760px;
  font-size: clamp(40px, 5.2vw, 64px);
}

.embedded-view .calculator,
.embedded-view .scenarios,
.embedded-view .formula {
  padding: 72px 0;
}

.embedded-view footer {
  padding-bottom: 36px;
}

@media (max-width: 900px) {
  .topbar {
    padding: 0 16px;
  }

  .topbar nav {
    display: none;
  }

  .brand span {
    max-width: 230px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 96px;
  }

  .embedded-view .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 320px;
  }

  .calc-panel,
  .result-grid,
  .comparison,
  .scenario-list,
  .formula-grid {
    grid-template-columns: 1fr;
  }

  .calc-panel {
    grid-template-rows: auto;
    gap: 18px;
  }

  .insight-board {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 1fr;
    min-height: 0;
    margin-top: 8px;
    border-radius: 28px;
  }

  .rate-board,
  .calc-actions,
  .result-grid,
  .comparison,
  .field {
    grid-column: auto;
    grid-row: auto;
    max-width: none;
  }

  .rate-board,
  .result-grid {
    min-height: 0;
    padding: 22px;
  }

  .result-grid {
    border-left: 0;
    border-top: 1px solid rgba(110,110,115,.13);
  }

  .rate-board-head strong {
    position: static;
    justify-self: end;
  }

  .rate-line b {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1;
  }

  .result-grid strong {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.05;
  }

  .comparison {
    padding: 0;
  }

  .comparison div {
    padding: 22px;
  }

  .comparison div + div {
    border-left: 0;
    border-top: 1px solid rgba(110,110,115,.13);
  }

  .comparison strong {
    font-size: clamp(28px, 8vw, 38px);
    letter-spacing: -.035em;
  }
}

@media (max-width: 520px) {
  :root {
    --safe: min(1160px, calc(100vw - 28px));
  }

  .hero,
  .embedded-view .hero {
    width: var(--safe);
    padding-top: 78px;
  }

  .calculator,
  .scenarios,
  .formula,
  .embedded-view .calculator,
  .embedded-view .scenarios,
  .embedded-view .formula {
    width: var(--safe);
    padding: 56px 0;
  }

  .section-copy {
    margin-bottom: 28px;
  }

  .calc-panel {
    padding: 18px;
    border-radius: 28px;
  }

  .province-picker {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  input {
    height: 52px;
    font-size: 16px;
  }

  .calc-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 8px;
  }

  .calc-actions button {
    width: 100%;
  }

  .rate-board,
  .result-grid {
    padding: 18px;
  }

  .rate-line {
    padding: 16px 0;
  }

  .rate-line b,
  .result-grid strong,
  .comparison strong {
    letter-spacing: -.02em;
  }

  .result-grid article {
    padding: 16px 0;
  }

  .comparison {
    border-radius: 22px;
  }

  .comparison div {
    padding: 18px;
  }
}
