:root {
  --paper: #efe8df;
  --paper2: #e4dbd0;
  --ink: #14110f;
  --ink2: #2a241e;
  --muted: #6a5e52;
  --line: rgba(20, 17, 15, .12);
  --copper: #b86a3c;
  --copper2: #9a5530;
  --cream: #f7f1e9;
  --max: 1080px;
  --font: "Figtree", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 48px rgba(20, 17, 15, .1);
  --shadow-soft: 0 10px 28px rgba(20, 17, 15, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse 70% 45% at 0% -5%, rgba(184, 106, 60, .14), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 0%, rgba(20, 17, 15, .07), transparent 50%),
    linear-gradient(180deg, #f3ece4 0%, var(--paper) 38%, var(--paper2) 100%);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  overflow-x: hidden;
}

body.is-splash { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.loader {
  position: fixed; inset: 0; z-index: 900;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: var(--ink);
  color: var(--cream);
  transition: opacity .45s ease, visibility .45s ease;
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__brand {
  font-weight: 700; letter-spacing: -0.02em; font-size: 28px;
}
.loader__brand span { color: var(--copper); }
.loader__tag { color: rgba(250, 244, 235, .65); font-size: 13px; letter-spacing: .06em; }
.loader__bar {
  width: min(220px, calc(100vw - 48px)); height: 3px;
  background: rgba(196, 120, 74, .2); overflow: hidden; border-radius: 2px;
}
.loader__bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--copper), #e0a070);
}
.loader__pct {
  font-family: var(--mono); font-size: 12px;
  color: rgba(250, 244, 235, .55); letter-spacing: .08em;
}

.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 32px) 10px;
  background: rgba(247, 241, 233, .88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20, 17, 15, .08);
}
.logo {
  font-weight: 700; letter-spacing: -0.01em; font-size: 18px;
}
.logo span { color: var(--copper); }
.nav__links {
  margin-left: auto; display: flex; align-items: center; gap: 22px;
}
.nav__links a {
  position: relative;
  color: var(--muted); font-size: 14px; font-weight: 650;
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang__btn {
  background: var(--cream); border: 1px solid rgba(26, 22, 18, .14);
  color: var(--ink); border-radius: 8px; cursor: pointer;
  padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 650; min-width: 64px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lang__btn:hover {
  border-color: rgba(184, 106, 60, .4);
  box-shadow: 0 2px 8px rgba(20, 17, 15, .06);
}
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  list-style: none; min-width: 168px;
  max-height: min(50vh, 360px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 6px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
body.is-rtl .lang__menu { right: auto; left: 0; }
body.is-rtl .nav__links { margin-left: 0; margin-right: auto; }
.lang__menu li {
  padding: 10px 12px; border-radius: 7px; cursor: pointer;
  color: var(--ink); font-size: 13px; font-weight: 600;
}
.lang__menu li:hover,
.lang__menu li[aria-selected="true"] { background: rgba(184, 106, 60, .12); }
.nav__menu {
  display: none; width: 44px; height: 44px; flex-direction: column;
  justify-content: center; gap: 5px; padding: 10px;
  background: var(--cream); border: 1px solid rgba(26, 22, 18, .14);
  border-radius: 8px; cursor: pointer;
}
.nav__menu span {
  display: block; height: 2px; background: var(--ink); transition: .2s ease;
}
.nav.is-open .nav__menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__menu span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; padding: 13px 22px; font: inherit; font-weight: 700;
  letter-spacing: .03em; border: 1px solid transparent; cursor: pointer;
  transition: background .2s ease, transform .2s var(--ease), border-color .2s ease, box-shadow .25s var(--ease);
}
.btn--solid {
  background: linear-gradient(180deg, #c4784a 0%, var(--copper) 100%);
  color: #fff;
  border-color: var(--copper2);
  box-shadow: 0 4px 14px rgba(154, 85, 48, .28), 0 1px 0 rgba(255, 255, 255, .18) inset;
}
.btn--solid:hover {
  background: linear-gradient(180deg, var(--copper) 0%, var(--copper2) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(154, 85, 48, .32), 0 1px 0 rgba(255, 255, 255, .12) inset;
}
.btn--solid:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(154, 85, 48, .22);
}
.btn--ghost {
  background: transparent; border-color: rgba(250, 244, 235, .45); color: var(--cream);
}
.btn--ghost:hover {
  background: rgba(250, 244, 235, .08);
  border-color: rgba(250, 244, 235, .65);
}

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--cream);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  transform: scale(1.03);
  animation: drift 22s ease-in-out infinite alternate;
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 18% 72%, rgba(184, 106, 60, .28), transparent 62%),
    radial-gradient(ellipse 40% 35% at 88% 18%, rgba(184, 106, 60, .12), transparent 55%),
    linear-gradient(105deg, rgba(20, 17, 15, .9) 0%, rgba(20, 17, 15, .58) 48%, rgba(20, 17, 15, .28) 100%),
    linear-gradient(180deg, rgba(20, 17, 15, .18) 0%, rgba(20, 17, 15, .68) 100%);
}
.hero__copy {
  position: relative; z-index: 2;
  max-width: var(--max); width: 100%; margin: 0 auto;
  padding: clamp(48px, 10vw, 96px) clamp(16px, 4vw, 32px) clamp(40px, 7vw, 72px);
  animation: rise .9s var(--ease) both;
}
.hero__brand {
  font-size: clamp(44px, 10vw, 80px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 18px;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .35);
}
.hero__brand::after {
  content: "";
  display: block;
  width: 56px; height: 3px;
  margin-top: 16px;
  background: linear-gradient(90deg, var(--copper), rgba(224, 160, 112, .4));
  border-radius: 2px;
  animation: barIn .75s .28s var(--ease) both;
}
.hero h1 {
  font-size: clamp(22px, 3.6vw, 32px);
  font-weight: 600;
  max-width: 20ch;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.015em;
}
.hero .lead {
  margin-top: 14px;
  color: rgba(250, 244, 235, .82);
  max-width: 42ch;
  font-weight: 500;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero__actions .btn--solid {
  animation: rise .75s .38s var(--ease) both;
}

.kicker {
  color: var(--copper);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 12px;
  font-weight: 700;
  font-family: var(--mono);
}
h2 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -.015em;
}
.lead { margin-top: 12px; color: var(--muted); max-width: 54ch; font-weight: 500; }

.trust {
  padding: 0 clamp(16px, 4vw, 32px);
  margin-top: -28px;
  position: relative;
  z-index: 3;
}
.trust__list {
  list-style: none;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  animation: rise .65s .22s var(--ease) both;
}
.trust__list li {
  background: rgba(247, 241, 233, .96);
  padding: 18px 18px 18px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--ink2);
  border: 1px solid rgba(20, 17, 15, .08);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(20, 17, 15, .06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.trust__list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 17, 15, .09);
}
.trust__list li::before {
  content: "";
  display: block;
  width: 22px; height: 3px;
  margin: 0 0 12px;
  background: linear-gradient(90deg, var(--copper), rgba(184, 106, 60, .35));
  border-radius: 2px;
}

.section {
  padding: clamp(48px, 8vw, 88px) clamp(16px, 4vw, 32px);
}
.section__head {
  max-width: var(--max);
  margin: 0 auto 28px;
}
.section--alt {
  background:
    linear-gradient(180deg, rgba(184, 106, 60, .05), rgba(184, 106, 60, .09)),
    var(--paper2);
}

.desk {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 20px;
  align-items: start;
}
.desk__form,
.desk__out {
  background: var(--cream);
  border: 1px solid rgba(20, 17, 15, .09);
  border-radius: 16px;
  padding: clamp(18px, 3.5vw, 28px);
  box-shadow: var(--shadow-soft);
}
.desk__form {
  display: grid;
  gap: 16px;
  animation: rise .6s var(--ease) both;
}
.desk__out {
  display: grid;
  gap: 0;
  animation: rise .6s .12s var(--ease) both;
}

.field { display: grid; gap: 8px; }
.field > span,
.field legend {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink2);
}
.field em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}
.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(26, 22, 18, .16);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-family: var(--mono);
  font-weight: 500;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field select:focus {
  outline: 2px solid rgba(184, 106, 60, .4);
  outline-offset: 1px;
  border-color: var(--copper);
  box-shadow: 0 0 0 4px rgba(184, 106, 60, .1);
}
.field__hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.field--dir { border: 0; padding: 0; min-inline-size: 0; }
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.seg__opt {
  position: relative;
  cursor: pointer;
}
.seg__opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg__opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(26, 22, 18, .16);
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .2s ease;
}
.seg__opt input:checked + span {
  border-color: var(--copper);
  background: rgba(184, 106, 60, .12);
  color: var(--copper2);
  box-shadow: 0 2px 10px rgba(184, 106, 60, .12);
}
.seg__opt input:focus-visible + span {
  outline: 2px solid rgba(184, 106, 60, .45);
  outline-offset: 1px;
}
.desk__run { width: 100%; min-height: 52px; margin-top: 4px; }

.out__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.out__row strong {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}
.out__row--total {
  background: rgba(184, 106, 60, .09);
  margin: 0 -clamp(18px, 3.5vw, 28px);
  padding: 16px clamp(18px, 3.5vw, 28px);
  border-bottom: 1px solid rgba(184, 106, 60, .22);
  border-top: 1px solid rgba(184, 106, 60, .22);
}
.out__row--total span,
.out__row--total strong {
  color: var(--copper2);
  font-size: 16px;
}
.out__note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.tips {
  list-style: none;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 32px;
}
.tips li {
  padding-top: 16px;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--copper), rgba(184, 106, 60, .2)) 1;
  animation: rise .55s var(--ease) both;
}
.tips li:nth-child(2) { animation-delay: .07s; }
.tips li:nth-child(3) { animation-delay: .14s; }
.tips li:nth-child(4) { animation-delay: .21s; }
.tips h3 {
  font-size: 17px;
  font-weight: 650;
  margin-bottom: 8px;
}
.tips p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  max-width: 42ch;
}

.foot {
  padding: 40px clamp(16px, 4vw, 32px) calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(250, 244, 235, .08);
  text-align: center;
  background:
    radial-gradient(ellipse 50% 80% at 50% 0%, rgba(184, 106, 60, .12), transparent 60%),
    var(--ink);
  color: rgba(250, 244, 235, .7);
}
.foot__brand {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 8px;
}
.foot__brand span { color: var(--copper); }
.foot p { font-size: 13px; max-width: 48ch; margin: 0 auto; }

@keyframes drift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.07) translate3d(-1.4%, -0.9%, 0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes barIn {
  from { width: 0; opacity: 0; }
  to { width: 56px; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media img,
  .hero__copy,
  .hero__actions .btn--solid,
  .hero__brand::after,
  .trust__list,
  .desk__form,
  .desk__out,
  .tips li {
    animation: none !important;
  }
  .btn--solid:hover,
  .trust__list li:hover {
    transform: none;
  }
}

@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 16px 16px;
    background: rgba(247, 241, 233, .98);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a {
    padding: 14px 8px;
    border-bottom: 1px solid var(--line);
  }
  .nav__links a::after { display: none; }
  .nav__cta { display: none; }
  .nav__menu { display: flex; }
  .nav { position: relative; }

  .hero { min-height: min(88vh, 720px); }
  .hero__brand { font-size: clamp(40px, 14vw, 64px); }

  .trust { margin-top: -20px; }
  .trust__list { grid-template-columns: 1fr 1fr; gap: 10px; }

  .desk { grid-template-columns: 1fr; }
  .tips { grid-template-columns: 1fr; }

  .field input,
  .field select {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .trust__list { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .hero .lead { max-width: none; }
  .nav { padding-left: 14px; padding-right: 14px; }
}

/* Simplified Chinese: prefer Noto, drop Latin tracking */
html[lang^="zh"] {
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Figtree", sans-serif;
}
html[lang^="zh"] body {
  font-family: var(--font);
  line-height: 1.7;
  letter-spacing: 0;
}
html[lang^="zh"] .loader__brand,
html[lang^="zh"] .logo,
html[lang^="zh"] .hero__brand,
html[lang^="zh"] .foot__brand,
html[lang^="zh"] h2,
html[lang^="zh"] .tips h3 {
  font-family: var(--font);
  letter-spacing: 0;
  font-weight: 600;
}
html[lang^="zh"] .hero h1 {
  max-width: 16em;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
  font-family: var(--font);
}
html[lang^="zh"] .hero .lead,
html[lang^="zh"] .lead,
html[lang^="zh"] .tips p,
html[lang^="zh"] .foot p {
  max-width: 36em;
  line-height: 1.75;
  letter-spacing: 0;
}
html[lang^="zh"] .trust__list li {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
  padding: 16px 14px;
}
html[lang^="zh"] .kicker,
html[lang^="zh"] .loader__tag,
html[lang^="zh"] .nav__links a,
html[lang^="zh"] .field label,
html[lang^="zh"] .seg__opt span,
html[lang^="zh"] .btn {
  font-family: var(--font);
  letter-spacing: 0.02em;
  text-transform: none;
}
html[lang^="zh"] .kicker {
  letter-spacing: 0.12em;
}

@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  html[lang^="zh"] .hero__brand {
    font-size: clamp(34px, 11vw, 52px);
  }
  html[lang^="zh"] .hero h1 {
    font-size: clamp(20px, 5vw, 26px);
    max-width: none;
  }
  html[lang^="zh"] .hero .lead {
    font-size: 15px;
    max-width: none;
  }
  html[lang^="zh"] .trust__list {
    grid-template-columns: 1fr;
  }
  html[lang^="zh"] .trust__list li {
    font-size: 15px;
    line-height: 1.45;
  }
  html[lang^="zh"] .field label,
  html[lang^="zh"] .desk__note,
  html[lang^="zh"] .tips p {
    font-size: 14px;
    line-height: 1.65;
  }
}
