:root {
  --navy: #0f2744;
  --navy-2: #1a3a5c;
  --ink: #1c2836;
  --gold: #8d7044;
  --gold-2: #c6a36a;
  --paper: #f5f7f8;
  --paper-2: #e7edf2;
  --sheet: #ffffff;
  --muted: #5c6b7a;
  --line: rgba(15, 39, 68, 0.12);
  --ember: #9d341f;
  --shadow: 0 18px 40px rgba(15, 39, 68, 0.08);
  --serif: "Noto Serif TC", "PMingLiU", "Songti TC", serif;
  --sans: "IBM Plex Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: white;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 8px; }

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.warn {
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  align-items: center;
  flex-wrap: wrap;
  padding: 9px 18px;
  background: var(--navy);
  color: #f7f4ee;
  font-size: 14px;
  line-height: 1.45;
  border-top: 3px solid var(--gold-2);
}
.warn strong { font-weight: 650; }
.warn a { color: white; font-weight: 650; }
.warn p { margin: 0; }
.warn-en { opacity: 0.9; }
.warn-meta { display: flex; gap: 14px; flex-wrap: wrap; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 18px;
}
.nav .lang { margin-left: auto; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-name {
  font-weight: 650;
  letter-spacing: 0.14em;
  font-size: 15px;
  line-height: 1;
  color: var(--navy);
}
.brand small {
  display: block;
  margin-top: 5px;
  letter-spacing: 0.02em;
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.lang { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; letter-spacing: 0.08em; font-weight: 650; }
.lang [aria-current="page"] { color: var(--gold); }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--navy); }
.nav-links a:hover { color: var(--gold); }
.nav-links a.btn-lime,
.nav-links a.btn-ink { color: #fff; font-weight: 600; }
.nav-links a.btn-lime:hover,
.nav-links a.btn-ink:hover { color: #fff; background: var(--navy-2); }
.nav-toggle {
  display: none;
  border: 1px solid var(--navy);
  background: white;
  color: var(--navy);
  min-height: 42px;
  padding: 0 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
  border: 1px solid var(--navy);
  font-weight: 600;
  background: white;
  color: var(--navy);
  border-radius: 2px;
}
.btn-lime, .btn-ink {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.btn-lime:hover, .btn-ink:hover { background: var(--navy-2); }
.btn:hover { background: var(--paper-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.hero {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 28px;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.kicker i {
  width: 22px;
  height: 1px;
  background: var(--gold-2);
  display: block;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 650; letter-spacing: 0; }
h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 1.18;
  color: var(--navy);
}
.lede { font-size: 17px; max-width: 38rem; margin: 0 0 22px; color: #314050; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.stats li { border-top: 1px solid var(--navy); padding-top: 10px; }
.stats strong { display: block; font-size: 20px; color: var(--navy); font-weight: 650; }
.stats span { color: var(--muted); font-size: 13px; }

.hero-photo { margin: 0; position: relative; }
.hero-photo img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}
.hero-photo figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(15, 39, 68, 0.9);
  color: white;
  padding: 14px 16px;
}
.hero-photo strong { display: block; font-size: 15px; font-weight: 650; }
.hero-photo span { display: block; margin-top: 4px; font-size: 13px; color: rgba(255,255,255,0.82); }

.section { padding: 72px 0; }
.section h2 {
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.22;
  margin: 0 0 12px;
  color: var(--navy);
}
.section-head { max-width: 40rem; margin-bottom: 28px; }
.section-head p { margin: 0; color: #314050; }

.feature-photo { margin: 0 0 22px; }
.feature-photo img { width: 100%; height: 320px; object-fit: cover; }
.feature-photo figcaption,
.photo figcaption,
.wide-photo figcaption {
  padding: 10px 2px 0;
  color: var(--muted);
  font-size: 13px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  padding: 22px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.card-personal { grid-column: span 4; }
.card-balance { grid-column: span 2; }
.card-revolver, .card-tax, .card-property { grid-column: span 2; }
.card-sme, .card-vip { grid-column: span 3; }
.idx {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 650;
}
.card h3 { margin: 8px 0; font-size: 26px; color: var(--navy); }
.card p { margin: 0; }
.range { font-weight: 650; color: var(--navy); font-variant-numeric: tabular-nums; }
.text-link { font-weight: 650; color: var(--navy); text-underline-offset: 3px; }

.band { background: white; }
.steps-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}
.photo { margin: 0; }
.photo img, .steps-layout .photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}
.steps {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  background: var(--paper);
  padding: 18px 20px;
  border-left: 3px solid var(--navy);
}
.steps strong {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.12em;
}
.steps h3 { margin: 6px 0; font-size: 24px; }

.calc-section { background: var(--paper-2); }
.calc-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}
.controls, .receipt {
  background: white;
  padding: 24px;
  border: 1px solid var(--line);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 650; font-size: 14px; color: var(--navy); }
.field input:not([type="range"]), .field select, .field textarea {
  width: 100%;
  margin-top: 8px;
  background: #fff;
  color: var(--ink);
  color-scheme: light;
  border: none;
  border-bottom: 1px solid #b7c3d0;
  padding: 10px 0;
  border-radius: 0;
}
.field input:not([type="range"]), .field textarea { appearance: none; }
.field input::placeholder, .field textarea::placeholder { color: #8a97a6; }
.field input[type="range"] {
  width: 100%;
  margin-top: 12px;
  appearance: none;
  height: 2px;
  background: #c5d0db;
}
.field input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--navy);
}
.receipt-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 650;
}
.figure { margin: 18px 0 6px; }
.figure small { color: var(--muted); font-weight: 650; }
.figure strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  color: var(--navy);
}
.breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin: 16px 0;
  padding: 0;
}
.breakdown div { border-top: 1px solid var(--line); padding-top: 8px; }
.breakdown dt { color: var(--muted); font-size: 13px; }
.breakdown dd { margin: 2px 0 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.formula, .fine { color: var(--muted); font-size: 13px; line-height: 1.6; }
#aprNote { font-weight: 650; color: var(--ink); }
.receipt.is-high { border-color: #a97820; }
.receipt.is-over { border-color: var(--ember); }
.receipt.is-over .figure strong { color: var(--ember); }

.about-grid, .promise {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}
.promise-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.promise-list li {
  background: white;
  border: 1px solid var(--line);
  padding: 16px;
}
.promise-list strong { display: block; margin-bottom: 4px; color: var(--navy); }

.statement {
  background: var(--navy);
  color: white;
  padding: 64px 0;
}
.statement h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  color: white;
}
.statement p { margin: 0 0 8px; max-width: 46rem; }
.statement a { color: white; font-weight: 650; }

.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 8px 0 4px; max-width: 50rem; }

.wide-photo { margin: 0 0 22px; }
.wide-photo img { width: 100%; height: 280px; object-fit: cover; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
}
.contact-card, form {
  background: white;
  border: 1px solid var(--line);
  padding: 24px;
}
.contact-card h3 { margin: 18px 0 6px; font-size: 20px; }
.contact-card a { font-weight: 650; color: var(--navy); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 5px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.form-error { color: var(--ember); font-weight: 650; min-height: 1.4em; }

.footer {
  background: var(--navy);
  color: #f7f4ee;
  padding: 42px 0 28px;
  font-size: 14px;
}
.footer a { color: white; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 22px;
}
.footer h2 { color: white; font-size: 26px; margin: 0 0 8px; }
.legal-block {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.legal-block p { margin: 0 0 10px; color: rgba(247, 244, 238, 0.78); font-size: 13px; }
.footer .warn {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 28px 0 16px;
  border-top: 3px solid var(--gold-2);
  font-size: 16px;
}
.footer .warn .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer .legal-block { padding-bottom: 36px; }
.footer .warn-line { font-size: 18px; font-weight: 650; color: white; }

.legal-page { padding: 42px 0 72px; }
.legal-page h1 { font-size: clamp(36px, 5vw, 56px); margin: 0 0 12px; color: var(--navy); }
.legal-page h2 { font-size: 26px; margin: 28px 0 8px; color: var(--navy); }
.prose { max-width: 46rem; }

.dock { display: none; }

@media (max-width: 900px) {
  .hero, .calc-grid, .about-grid, .promise, .contact-grid, .footer-grid, .steps-layout { grid-template-columns: 1fr; }
  .hero { display: flex; flex-direction: column; padding-top: 28px; }
  .hero-photo { order: -1; }
  .hero-photo img, .photo img, .steps-layout .photo img { height: 240px; min-height: 0; }
  .hero-photo figcaption { position: static; }
  .bento { grid-template-columns: 1fr; }
  .card-personal, .card-balance, .card-revolver, .card-tax, .card-property, .card-sme, .card-vip { grid-column: auto; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: white;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 0;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 0; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .stats, .promise-list, .breakdown { grid-template-columns: 1fr; }
  .feature-photo img, .wide-photo img { height: 220px; }
  .dock {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    background: var(--navy);
  }
  .dock a {
    color: white;
    text-decoration: none;
    text-align: center;
    padding: 14px 6px;
    font-weight: 650;
    font-size: 14px;
  }
  .dock a:nth-child(2) { background: var(--gold-2); color: var(--navy); }
  body { padding-bottom: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
