:root {
  --ink: #f5edd7;
  --soft-ink: rgba(245, 237, 215, 0.72);
  --mist: rgba(212, 229, 210, 0.12);
  --line: rgba(232, 213, 165, 0.32);
  --gold: #cfad63;
  --jade: #114c3a;
  --purple: #1e1439;
  --black-plum: #16130f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(3, 39, 28, 0.64), rgba(4, 35, 27, 0.96)),
    url("assets/chinese-jade-bg.webp") center top / cover fixed,
    #073324;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.44;
  background: url("assets/jade-landscape.webp") center / cover;
  mix-blend-mode: soft-light;
}

.portal-shell {
  width: min(1240px, calc(100% - 72px));
  margin: 0 auto;
  padding: 34px 0 50px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  border-bottom: 1px solid rgba(242, 232, 200, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: var(--ink);
  text-decoration: none;
}

.brand-name,
h1,
h2 {
  font-family: "STSong", "Songti SC", "SimSun", serif;
  font-weight: 700;
}

.brand-name { font-size: 27px; }

.brand-seal {
  display: grid;
  width: 32px;
  height: 42px;
  place-items: center;
  color: #df725b;
  border: 1px solid #df725b;
  border-radius: 3px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 18px;
}

.header-note,
.eyebrow,
.card-topline,
footer { margin: 0; }

.header-note { color: var(--soft-ink); font-size: 14px; }

.hero {
  max-width: 760px;
  padding: 100px 0 68px;
}

.eyebrow {
  color: #e2c77d;
  font-size: 13px;
  letter-spacing: 2px;
}

h1 {
  max-width: 720px;
  margin: 14px 0 20px;
  color: #f7f0dd;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.22;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.hero-copy {
  max-width: 580px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 16px;
  line-height: 2;
  word-break: break-all;
}

.hero-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 42px;
  color: rgba(247, 238, 212, 0.64);
  font-size: 13px;
}

.hero-line { width: 110px; height: 1px; background: var(--gold); }

.test-grid {
  display: grid;
  grid-template-columns: 1.22fr 1fr 1fr;
  gap: 16px;
}

.test-card {
  position: relative;
  display: flex;
  min-height: 510px;
  padding: 24px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(248, 238, 211, 0.22);
  border-radius: 7px;
  box-shadow: 0 24px 55px rgba(0, 18, 11, 0.18);
}

.fubao-card {
  background:
    linear-gradient(160deg, rgba(2, 48, 34, 0.5), rgba(9, 81, 57, 0.4)),
    url("assets/jade-landscape.webp") center / cover,
    var(--jade);
}

.wealth-card { background: linear-gradient(148deg, #30214f, #130c2c 78%); }
.mci-card { background: linear-gradient(148deg, #282017, #12100e 78%); }

.card-topline {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: rgba(246, 235, 206, 0.68);
  font-size: 11px;
  letter-spacing: 1px;
}

.status { color: #e5c171; }

.fubao-art {
  position: relative;
  height: 186px;
  margin: 10px -24px -12px 0;
}

.lotus {
  position: absolute;
  right: -74px;
  bottom: -54px;
  width: 310px;
  filter: drop-shadow(0 12px 16px rgba(1, 33, 22, 0.38));
}

.card-emblem {
  width: 94px;
  height: 94px;
  margin-top: 42px;
  object-fit: contain;
}

.card-copy { position: relative; z-index: 2; margin-top: auto; }

.card-copy h2,
.code-note h2 {
  margin: 0;
  color: #fff5da;
  font-size: 33px;
  line-height: 1.25;
}

.card-hook {
  min-height: 68px;
  margin: 22px 0 15px;
  color: #fbf0d2;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 21px;
  line-height: 1.58;
}

.card-description {
  min-height: 74px;
  margin: 0;
  color: rgba(249, 239, 211, 0.7);
  font-size: 14px;
  line-height: 1.75;
  word-break: break-all;
}

.enter-button {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  margin-top: 24px;
  padding: 0 18px;
  color: #154b3c;
  border: 1px solid #d6b96c;
  border-radius: 4px;
  background: #f4ead1;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.48);
  font-family: "STSong", "Songti SC", serif;
  font-size: 16px;
  text-decoration: none;
}

.wealth-card .enter-button { color: #392766; }
.mci-card .enter-button { color: #443218; }
.enter-button span { font-size: 28px; line-height: 1; }

.code-note {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 46px;
  align-items: end;
  margin-top: 16px;
  padding: 30px 34px;
  border: 1px solid rgba(231, 215, 175, 0.28);
  border-radius: 7px;
  background: rgba(5, 48, 35, 0.5);
}

.code-note h2 { margin-top: 10px; font-size: 18px; line-height: 1.5; }
.code-note > p { margin: 0; color: var(--soft-ink); font-size: 14px; line-height: 1.9; word-break: break-all; }
.code-note > p strong { color: #f5e7bd; font-weight: 700; }

footer {
  padding-top: 40px;
  color: rgba(245, 235, 209, 0.44);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 820px) {
  body { background-attachment: scroll; }
  .portal-shell { width: min(calc(100% - 34px), 560px); padding-top: 22px; }
  .site-header { min-height: 48px; }
  .brand-name { font-size: 22px; }
  .brand-seal { width: 28px; height: 36px; font-size: 16px; }
  .header-note { font-size: 11px; }
  .hero { padding: 65px 0 48px; }
  h1 { margin-top: 12px; font-size: clamp(38px, 11vw, 54px); line-height: 1.28; }
  .hero-copy { font-size: 14px; line-height: 1.9; }
  .hero-foot { margin-top: 29px; font-size: 11px; }
  .hero-line { width: 56px; }
  .test-grid { grid-template-columns: 1fr; gap: 12px; }
  .test-card { min-height: 375px; padding: 20px; }
  .fubao-art { height: 108px; margin-top: 2px; }
  .lotus { right: -48px; bottom: -70px; width: 230px; }
  .card-emblem { width: 72px; height: 72px; margin-top: 24px; }
  .card-copy h2 { font-size: 28px; }
  .card-hook { min-height: auto; margin: 14px 0 10px; font-size: 19px; }
  .card-description { min-height: auto; font-size: 13px; }
  .enter-button { min-height: 48px; margin-top: 18px; }
  .code-note { grid-template-columns: 1fr; gap: 16px; padding: 25px 22px; }
  .code-note h2 { font-size: 23px; }
  footer { padding-top: 30px; }
}

@media (max-width: 560px) {
  .portal-shell {
    width: min(calc(100% - 28px), 520px);
    padding: 14px 0 30px;
  }

  .site-header {
    min-height: 40px;
  }

  .brand {
    gap: 9px;
  }

  .header-note { display: none; }
  .brand-name { font-size: 20px; }
  .brand-seal {
    width: 24px;
    height: 30px;
    font-size: 14px;
  }

  .hero {
    padding: 34px 0 22px;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  h1 {
    max-width: 340px;
    margin: 9px 0 12px;
    font-size: 31px;
    line-height: 1.3;
  }

  .hero-copy {
    max-width: none;
    font-size: 13px;
    line-height: 1.75;
  }

  .hero-foot {
    gap: 9px;
    margin-top: 20px;
    font-size: 10px;
  }

  .hero-line { width: 34px; }

  .test-grid { gap: 10px; }

  .test-card {
    min-height: 0;
    padding: 15px;
    border-radius: 5px;
  }

  .card-topline {
    font-size: 9px;
    letter-spacing: 0.7px;
  }

  .fubao-art {
    height: 74px;
    margin: 0 -15px -2px 0;
  }

  .lotus {
    right: -32px;
    bottom: -54px;
    width: 178px;
  }

  .card-emblem {
    width: 58px;
    height: 58px;
    margin-top: 15px;
  }

  .card-copy { margin-top: 12px; }
  .card-copy h2 { font-size: 22px; }

  .card-hook {
    min-height: 0;
    margin: 8px 0 7px;
    font-size: 16px;
    line-height: 1.45;
  }

  .card-description {
    min-height: 0;
    font-size: 12px;
    line-height: 1.6;
  }

  .enter-button {
    min-height: 39px;
    margin-top: 12px;
    padding: 0 13px;
    font-size: 14px;
  }

  .enter-button span { font-size: 23px; }

  .code-note {
    gap: 10px;
    margin-top: 10px;
    padding: 17px 15px;
    border-radius: 5px;
  }

  .code-note h2 {
    margin-top: 0;
    font-size: 15px;
    line-height: 1.6;
  }

  .code-note > p {
    font-size: 12px;
    line-height: 1.7;
  }

  .code-note > p strong { font-size: 15px; line-height: 1.6; }

  footer {
    padding-top: 22px;
    font-size: 10px;
  }
}
