:root {
  color-scheme: light dark;
  --paper: #FAF9F6;
  --ink: #22252A;
  --gold: #A87718;
  --gold-text: #76500D;
  --green: #2F5D50;
  --paper-raised: #FFFFFF;
  --paper-muted: #F0EEE7;
  --ink-soft: #666961;
  --line: #D8D4C8;
  --green-soft: #DCE8E2;
  --gold-soft: #F3E7C9;
  --danger: #9A3F35;
  --shadow: 0 18px 50px rgba(34, 37, 42, .08);
  --font: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --shell: 1120px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(calc(100% - 32px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 9px 14px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner {
  position: relative;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50% 50% 50% 12%;
  background: var(--green);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 1.12rem;
  letter-spacing: .08em;
}

.brand small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .22em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 700;
}

.nav-toggle span:first-child {
  font-size: 1.25rem;
}

.site-nav {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  left: 0;
  display: none;
  padding: 10px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
}

.site-nav[data-open="true"] {
  display: grid;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  background: var(--green-soft);
  color: var(--green);
}

.site-footer {
  margin-top: 80px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: var(--paper-muted);
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer-grid p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: .88rem;
}

.footer-label {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.footer-grid > a {
  align-self: center;
  color: var(--green);
  font-weight: 800;
}

.eyebrow,
.card-kicker {
  margin: 0 0 8px;
  color: var(--gold-text);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.page-intro {
  padding-block: 56px 32px;
  border-bottom: 1px solid var(--line);
}

.page-intro h1,
.home-hero h1,
.not-found h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.5rem, 10vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .98;
}

.page-lead {
  max-width: 780px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.update-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: .78rem;
}

.update-line span {
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.home-hero {
  overflow: hidden;
  padding: 54px 0 44px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  gap: 30px;
}

.hero-copy h1 em {
  color: var(--green);
  font-style: normal;
}

.hero-copy > p:last-child {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.hero-note {
  position: relative;
  display: grid;
  min-height: 260px;
  align-content: space-between;
  padding: 26px;
  overflow: hidden;
  border-radius: 4px 46px 4px 4px;
  background: var(--green);
  color: #fff;
}

.hero-note::after {
  position: absolute;
  right: -56px;
  bottom: -58px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(255,255,255,.06), 0 0 0 52px rgba(255,255,255,.04);
  content: "";
}

.hero-note > * {
  position: relative;
  z-index: 1;
}

.hero-note span {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.hero-note strong {
  font-size: 1.8rem;
  line-height: 1.2;
}

.hero-note a {
  font-size: .9rem;
  font-weight: 800;
}

.entry-grid {
  display: grid;
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.entry-card {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 22px;
  background: var(--paper-raised);
  text-decoration: none;
}

.entry-card > span {
  color: var(--ink-soft);
  font-size: .8rem;
  font-weight: 700;
}

.entry-card > strong {
  margin-block: 8px 2px;
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
}

.entry-card > small {
  color: var(--ink-soft);
}

.entry-card i {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--gold);
  font-style: normal;
}

.section-block {
  padding-top: 70px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 5vw, 2.7rem);
  letter-spacing: -.045em;
  line-height: 1.1;
}

.section-heading > div {
  min-width: 0;
}

.text-link,
.card-link {
  flex: 0 0 auto;
  color: var(--green);
  font-size: .88rem;
  font-weight: 800;
}

.section-note {
  margin: -10px 0 24px;
  color: var(--ink-soft);
  font-size: .9rem;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.deal-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-raised);
}

.deal-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

.deal-copy {
  padding: 14px;
}

.deal-copy h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: .98rem;
  line-height: 1.4;
}

.secondary-name {
  min-height: 2.4em;
  margin: 5px 0 10px;
  color: var(--ink-soft);
  font-size: .75rem;
  line-height: 1.25;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.price-row strong {
  color: var(--green);
  font-size: 1.25rem;
}

.price-row del {
  color: var(--ink-soft);
  font-size: .78rem;
}

.drop-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #78520e;
  font-size: .68rem;
  font-weight: 800;
}

.deal-card.is-special {
  border-top: 3px solid var(--gold);
}

.deal-copy > small {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: .65rem;
}

.filter-bar,
.hub-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
}

.chips {
  display: flex;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  gap: 8px;
  padding: 3px 2px 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.chip {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-raised);
  color: var(--ink);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 700;
}

.chip.is-active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.membership-band,
.home-member {
  display: grid;
  gap: 18px;
  margin-top: 70px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
}

.membership-band p {
  margin: 0;
  font-size: 1.14rem;
  font-weight: 800;
}

.membership-band .text-link {
  color: #fff;
}

.split-feature,
.fx-actions {
  display: grid;
  gap: 24px;
}

.next-event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
}

.next-event h2,
.next-event h3 {
  margin: 0 0 6px;
  line-height: 1.3;
}

.next-event p:not(.card-kicker) {
  margin: 0 0 10px;
  color: var(--ink-soft);
}

.next-event small,
.next-event time {
  color: var(--ink-soft);
  font-size: .74rem;
}

.date-tile {
  display: grid;
  width: 64px;
  overflow: hidden;
  border: 1px solid var(--green);
  border-radius: 12px;
  text-align: center;
}

.date-tile span {
  padding: 3px;
  background: var(--green);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
}

.date-tile strong {
  padding: 5px;
  font-size: 1.45rem;
}

.fx-peek {
  display: grid;
  align-content: start;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: #3d321c;
}

.fx-peek > span,
.fx-peek > small {
  color: #6c5b37;
}

.fx-peek > strong {
  margin: 10px 0 4px;
  font-size: clamp(3.2rem, 13vw, 5.4rem);
  letter-spacing: -.08em;
  line-height: .9;
}

.fx-peek a {
  margin-top: 28px;
  font-weight: 800;
}

.hub-grid,
.category-grid,
.tool-grid {
  display: grid;
  gap: 12px;
}

.simple-card,
.tool-grid article {
  display: grid;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
}

.simple-card h3,
.tool-grid h2 {
  margin: 0;
  font-size: 1.25rem;
}

.simple-card p,
.tool-grid p {
  color: var(--ink-soft);
}

.simple-card .card-link {
  align-self: end;
  margin-top: 12px;
}

.sector-ribbon {
  margin-top: 74px;
  padding: 54px 0;
  background: var(--ink);
  color: var(--paper);
}

.sector-links {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--paper) 28%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--paper) 28%, transparent);
}

.sector-links a {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: var(--ink);
  text-decoration: none;
}

.sector-links span {
  color: var(--gold-soft);
  font-weight: 800;
}

.sector-links small {
  color: color-mix(in srgb, var(--paper) 68%, transparent);
}

.home-member h2 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 2.2rem);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.button--gold {
  background: var(--gold);
  color: #17130B;
}

.button--green {
  background: var(--green);
  color: #fff;
}

.button--quiet {
  border-color: var(--line);
  background: var(--paper-raised);
  color: var(--ink);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fx-now {
  display: grid;
  gap: 1px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.fx-number,
.fx-context {
  padding: 28px;
  background: var(--paper-raised);
}

.fx-number {
  display: grid;
}

.fx-number span,
.fx-number small {
  color: var(--ink-soft);
}

.fx-number strong {
  color: var(--green);
  font-size: clamp(4rem, 18vw, 8rem);
  letter-spacing: -.09em;
  line-height: .9;
}

.fx-context h2 {
  margin: 0;
  font-size: 1.65rem;
}

.fx-context > p:last-child {
  color: var(--ink-soft);
}

.fx-chart,
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.fx-chart svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
}

.chart-grid {
  stroke: var(--line);
  stroke-width: 1;
}

.box-line {
  stroke: var(--gold);
  stroke-dasharray: 7 7;
  stroke-width: 1.5;
}

.rate-line {
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.rate-end {
  fill: var(--gold);
  stroke: var(--paper-raised);
  stroke-width: 4;
}

.axis-label,
.box-label {
  fill: var(--ink-soft);
  font-family: var(--font);
  font-size: 11px;
}

.box-label {
  fill: var(--gold-text);
  font-weight: 800;
}

table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  background: var(--paper-raised);
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

thead th {
  color: var(--ink-soft);
  font-size: .75rem;
  letter-spacing: .08em;
}

.checkin-card {
  display: grid;
  align-content: center;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--green-soft);
}

.checkin-card h2 {
  margin: 0 0 16px;
  font-size: 2rem;
}

.checkin-card > p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: .82rem;
}

.car-grid {
  display: grid;
  gap: 16px;
}

.car-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
}

.car-image {
  display: block;
  background: var(--paper-muted);
}

.car-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.car-card__body {
  padding: 22px;
}

.car-card h2 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.25;
}

.car-card h2 a {
  text-decoration: none;
}

.car-price {
  margin: 12px 0;
  color: var(--green);
  font-size: 1.55rem;
  font-weight: 800;
}

.car-price.pending {
  color: var(--gold-text);
}

.car-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.car-facts div {
  min-width: 0;
  padding: 9px;
  background: var(--paper-muted);
}

.car-facts dt {
  color: var(--ink-soft);
  font-size: .64rem;
}

.car-facts dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  font-size: .76rem;
  font-weight: 700;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  padding-top: 28px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: .78rem;
  white-space: nowrap;
}

.breadcrumbs span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-detail > header {
  padding: 42px 0 28px;
}

.car-detail h1 {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 5rem);
  letter-spacing: -.06em;
  line-height: 1;
}

.car-price--large {
  font-size: clamp(2rem, 6vw, 3.8rem);
}

.car-detail .car-facts {
  max-width: 620px;
}

.car-gallery {
  display: grid;
  grid-auto-columns: min(86%, 820px);
  grid-auto-flow: column;
  gap: 12px;
  padding: 4px 4px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.car-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-muted);
  scroll-snap-align: start;
}

.car-gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.prose-block {
  max-width: 820px;
  padding-top: 42px;
}

.prose-block h2 {
  font-size: 1.65rem;
}

.prose-block p {
  color: var(--ink-soft);
  white-space: pre-line;
}

.dealer-cta,
.external-hub,
.sector-page {
  display: grid;
  gap: 24px;
  margin-top: 48px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
}

.dealer-cta h2,
.external-hub h2,
.sector-page h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 4vw, 2.3rem);
  line-height: 1.25;
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 24px;
  margin-top: 42px;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
}

.empty-state__mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 2rem;
}

.event-hero {
  margin-top: 30px;
}

.next-event--large {
  padding: 28px;
  border-top: 4px solid var(--gold);
}

.event-list {
  border-top: 1px solid var(--line);
}

.event-row {
  display: grid;
  gap: 10px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.event-row > time {
  color: var(--green);
  font-size: .82rem;
  font-weight: 800;
}

.event-row h2 {
  margin: 0;
  font-size: 1.18rem;
}

.event-row p:not(.card-kicker) {
  margin: 6px 0;
  color: var(--ink-soft);
}

.event-row small {
  color: var(--ink-soft);
}

.event-row.is-past {
  filter: grayscale(1);
}

.event-row.is-past > time,
.event-row.is-past .card-kicker,
.event-row.is-past h2 {
  color: var(--ink-soft);
}

.restaurant-grid {
  display: grid;
  gap: 14px;
}

.restaurant-card {
  display: grid;
  gap: 15px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
}

.restaurant-card header,
.restaurant-card footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.restaurant-card h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.25rem;
  line-height: 1.25;
}

.restaurant-card > p {
  margin: 0;
  color: var(--ink-soft);
}

.restaurant-card header > div:first-child {
  min-width: 0;
}

.restaurant-card .cuisine {
  color: var(--green);
  font-size: .82rem;
  font-weight: 800;
}

.rating {
  flex: 0 0 auto;
  text-align: right;
}

.rating strong,
.rating span {
  display: block;
}

.rating strong {
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
}

.rating span {
  color: var(--ink-soft);
  font-size: .62rem;
}

.dish-list {
  padding: 14px;
  border-radius: 12px;
  background: var(--paper-muted);
}

.dish-list > span {
  color: var(--gold-text);
  font-size: .72rem;
  font-weight: 800;
}

.dish-list ul {
  margin: 7px 0 0;
  padding-left: 18px;
}

.dish-list small {
  color: var(--ink-soft);
}

.restaurant-card footer {
  align-items: end;
  color: var(--ink-soft);
  font-size: .72rem;
}

.restaurant-card footer div {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.restaurant-card footer a {
  color: var(--green);
  font-weight: 800;
}

.external-hub {
  min-height: 320px;
  align-items: center;
}

.external-hub__index {
  display: grid;
  width: 130px;
  height: 130px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50% 50% 50% 12%;
  color: var(--gold);
  font-size: 4rem;
  font-weight: 800;
}

.university-list {
  border-top: 1px solid var(--line);
}

.university-list article {
  display: grid;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.university-list h2,
.university-list p {
  margin: 0;
}

.university-list p:not(.card-kicker) {
  color: var(--ink-soft);
}

.verification {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
}

.status {
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 800;
}

.status.pending {
  background: var(--gold-soft);
  color: #78520e;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.status.checked {
  background: var(--green-soft);
  color: var(--green);
}

.roadmap-section {
  padding-bottom: 70px;
  background: var(--paper-muted);
}

.roadmap {
  display: grid;
  gap: 16px;
}

.roadmap article {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--paper-raised);
}

.roadmap header {
  display: flex;
  gap: 14px;
}

.roadmap header > span {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 800;
}

.roadmap h2,
.roadmap p {
  margin: 0;
}

.roadmap p {
  color: var(--ink-soft);
  font-size: .8rem;
}

.roadmap ol {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.roadmap li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: .85rem;
}

.roadmap li span {
  flex: 0 0 auto;
  color: var(--green);
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sector-primary {
  min-width: 0;
}

.first-order {
  padding: 22px;
  border-radius: 14px;
  background: var(--gold-soft);
  color: #3d321c;
}

.first-order span {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.first-order p {
  margin-bottom: 0;
  font-weight: 700;
}

.tier-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  list-style: none;
}

.tier-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--paper-raised);
}

.tier-list li span {
  color: var(--gold-text);
  font-size: .72rem;
  font-weight: 800;
}

.tier-list strong {
  overflow-wrap: anywhere;
}

.join-button {
  margin-top: 20px;
}

.me-shell {
  padding-top: 34px;
}

.guest-panel {
  display: grid;
  gap: 24px;
}

.login-panel {
  align-self: start;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
}

.login-panel p {
  margin-top: 0;
}

.login-panel .button {
  width: 100%;
  margin-top: 10px;
}

.member-status:not(:empty) {
  margin-bottom: 18px;
  padding: 12px 15px;
  border-radius: 10px;
  background: var(--paper-muted);
  font-size: .85rem;
}

.member-status.is-error {
  color: var(--danger);
}

.member-status.is-success {
  color: var(--green);
}

.member-summary {
  display: grid;
  gap: 1px;
  margin-bottom: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.member-summary > div {
  padding: 26px;
  background: var(--paper-raised);
}

.member-summary h2,
.member-summary strong {
  margin: 0;
  color: var(--green);
  font-size: 2rem;
}

.coupon-list {
  display: grid;
  gap: 12px;
}

.coupon-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-raised);
}

.coupon-card h3,
.coupon-card strong,
.coupon-card small {
  display: block;
}

.coupon-card h3 {
  margin: 0;
}

.coupon-card strong {
  margin: 8px 0;
  color: var(--green);
  font-size: 1.5rem;
}

.not-found {
  min-height: 68vh;
  padding-block: 90px;
}

.not-found p:not(.eyebrow) {
  color: var(--ink-soft);
}

.empty-copy {
  color: var(--ink-soft);
}

@media (min-width: 700px) {
  .shell {
    width: min(calc(100% - 56px), var(--shell));
  }

  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav[data-open="true"] {
    position: static;
    display: flex;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav a {
    padding: 8px 9px;
    font-size: .76rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr auto;
  }

  .filter-bar,
  .hub-toolbar {
    flex-direction: row;
    align-items: center;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(240px, .55fr);
    align-items: end;
  }

  .entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .deal-grid--home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .membership-band,
  .home-member {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .split-feature,
  .fx-actions {
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .6fr);
  }

  .hub-grid,
  .category-grid,
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sector-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fx-now {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  }

  .car-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dealer-cta,
  .sector-page {
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, .5fr);
    align-items: center;
  }

  .event-row {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .restaurant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .external-hub {
    grid-template-columns: auto 1fr;
    padding: 46px;
  }

  .university-list article {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .roadmap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guest-panel {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  }

  .member-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coupon-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1020px) {
  .site-nav a {
    padding-inline: 13px;
    font-size: .84rem;
  }

  .deal-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .car-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171A1B;
    --ink: #F3F1EA;
    --gold: #D2A64C;
    --gold-text: #E3BE70;
    --green: #78A997;
    --paper-raised: #202425;
    --paper-muted: #292D2E;
    --ink-soft: #B8BAB4;
    --line: #3A3F40;
    --green-soft: #263D36;
    --gold-soft: #433820;
    --danger: #F0978D;
    --shadow: 0 18px 50px rgba(0, 0, 0, .28);
  }

  .button--gold,
  .button--green,
  .chip.is-active,
  .brand-mark {
    color: #111;
  }

  .drop-badge,
  .status.pending,
  .first-order,
  .fx-peek {
    color: #F3E7C9;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* R2 复盘热修（Claude）：换汇计划窗口表格 min-width 540px 撑破 360px 视口。
   小表只有三列，去掉最小宽度并让滚动容器受父级约束。 */
.fx-actions > * { min-width: 0; }
.fx-actions .table-scroll { overflow-x: auto; max-width: 100%; min-width: 0; }
.fx-actions .table-scroll table { min-width: 0; width: 100%; }

/* ===== 会员中心（/me，Telegram Mini App 与网页同一套） ===== */
.mc {
  max-width: 430px;
  margin: 0 auto;
  padding-bottom: 12px;
}

.mc-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 8px;
}

.mc-view h2 {
  margin: 0;
}

.mc-greet {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.mc-greet__name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.mc-greet__sub {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: .82rem;
}

.mc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mc-head h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.mc-head--back {
  justify-content: flex-start;
  gap: 2px;
}

.mc-head--back h2 {
  font-size: 1.1rem;
}

.mc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.mc-chip:empty {
  display: none;
}

.mc-chip--gold {
  background: var(--gold-soft);
  color: var(--gold-text);
}

.mc-chip--green {
  background: var(--green-soft);
  color: var(--green);
}

.mc-chip--xs {
  min-height: 20px;
  margin-left: 6px;
  padding: 2px 7px;
  font-size: .66rem;
}

.mc-cardwrap {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.mc-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.mc-grid:empty,
.mc-grid[hidden] {
  display: none;
}

.mc-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mc-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mc-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 18px;
  background: var(--paper-raised);
}

.mc-cell .eyebrow {
  margin: 0;
}

.mc-cell--wallet {
  gap: 8px;
  padding: 14px;
}

.mc-cell__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 700;
}

.mc-cell__sub {
  color: var(--ink-soft);
  font-size: .76rem;
  line-height: 1.4;
}

.mc-num {
  color: var(--green);
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.mc-num--sm {
  font-size: 1.05rem;
}

.mc-num--sm.is-zero {
  color: var(--ink-soft);
}

.mc-num--coupon {
  font-size: 1.35rem;
}

.mc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 16px;
  background: var(--paper-raised);
  color: inherit;
  text-align: left;
}

.mc-row[data-goto] {
  cursor: pointer;
}

.mc-row__main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.mc-row__title {
  display: flex;
  align-items: center;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
}

.mc-row__sub {
  color: var(--ink-soft);
  font-size: .78rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.mc-row__index {
  width: 26px;
  flex: 0 0 auto;
  color: var(--gold-text);
  font-size: .72rem;
  font-weight: 800;
}

.mc-row--tier {
  align-items: flex-start;
}

.mc-row--tier[data-state="current"] {
  background: var(--green-soft);
}

.mc-row__mark {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  color: var(--ink-soft);
}

.mc-mark {
  display: grid;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
}

.mc-mark--done {
  background: var(--green-soft);
  color: var(--green);
}

.mc-mark--muted {
  background: var(--paper-muted);
  color: var(--ink-soft);
}

.mc-tile {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: var(--paper-muted);
  color: var(--ink);
}

.mc-tile--gold {
  background: var(--gold-soft);
  color: var(--gold-text);
}

.mc-ico {
  display: block;
  flex: 0 0 auto;
}

.mc-iconbtn {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--green);
  cursor: pointer;
}

.mc-iconbtn.is-copied {
  background: var(--green-soft);
}

.mc-btn-sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: .82rem;
  white-space: nowrap;
  cursor: pointer;
}

.mc-sec {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mc-sec .section-heading {
  margin-bottom: 0;
}

.mc-sec .section-heading h2 {
  font-size: 1.25rem;
}

.mc-h3 {
  font-size: 1.05rem !important;
}

.mc-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: .76rem;
  line-height: 1.5;
}

.mc-empty {
  padding: 18px;
  margin: 0;
  background: var(--paper-raised);
  font-size: .88rem;
}

.mc-radar {
  display: block;
  width: 272px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.mc-radar__grid {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.mc-radar__area {
  fill: var(--green);
  fill-opacity: .16;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linejoin: round;
}

.mc-radar__dot {
  fill: var(--green);
  stroke: var(--paper);
  stroke-width: 2;
}

.mc-radar__label {
  fill: var(--ink-soft);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
}

.mc-radar__label.is-active {
  fill: var(--ink);
  font-weight: 800;
}

.mc-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mc-progress--inline {
  gap: 6px;
  padding-top: 8px;
}

.mc-progress__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: .82rem;
  font-weight: 700;
}

.mc-progress__meta {
  color: var(--ink-soft);
  font-weight: 400;
}

.mc-bar {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-muted);
}

.mc-bar > span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: var(--green);
}

.mc-coupons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mc-coupon {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-raised);
}

.mc-coupon__main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.mc-coupon__main h3 {
  margin: 0;
  font-size: .95rem;
  line-height: 1.3;
}

.mc-coupon__kind {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mc-coupon__kind .mc-chip {
  min-height: 24px;
  padding: 3px 8px;
  font-size: .68rem;
}

.mc-coupon__sector {
  color: var(--gold-text);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.mc-coupon__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: .76rem;
}

.mc-coupon__side {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px dashed var(--line);
}

.mc-mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}

.mc-view--code {
  align-items: stretch;
}

.mc-head--center {
  justify-content: space-between;
}

.mc-code__who {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  font-size: .85rem;
  font-weight: 700;
}

.mc-code__who .mc-mono {
  color: var(--ink-soft);
  font-weight: 400;
}

.mc-code__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 26px 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #22252A;
}

.mc-code__panel .eyebrow {
  margin: 0;
  color: #76500D;
}

.mc-code__qr {
  display: block;
  width: 228px;
  height: 228px;
  background: #fff;
}

.mc-code__digits {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 2.6rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1;
}

.mc-code__timer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mc-code__timer div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mc-code__timer strong {
  font-size: .95rem;
}

.mc-code__timer span {
  color: #666961;
  font-size: .78rem;
}

.mc-ring__track {
  fill: none;
  stroke: #D8D4C8;
  stroke-width: 5;
}

.mc-ring__fill {
  fill: none;
  stroke: #2F5D50;
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset .6s linear;
}

.mc-notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mc-notes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: .82rem;
  line-height: 1.5;
}

.mc-notes .mc-ico {
  margin-top: 2px;
  color: var(--green);
}

.mc-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
}

.mc-hero__label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.mc-hero__num {
  font-size: 2.4rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  line-height: 1;
}

.mc-hero__line {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
  font-size: .82rem;
}

.mc-hero__note {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: .76rem;
  line-height: 1.5;
}

.mc-row--ledger {
  min-height: 68px;
}

.mc-date {
  display: flex;
  width: 40px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--ink-soft);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.1;
}

.mc-date__day {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.mc-delta {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  white-space: nowrap;
}

.mc-delta.is-negative {
  color: var(--danger);
}

.mc-profile {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.mc-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
}

.mc-profile__main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mc-profile__main strong {
  font-size: 1.1rem;
  line-height: 1.2;
}

.mc-profile__main span {
  color: var(--ink-soft);
  font-size: .78rem;
}

.mc-tabbar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  height: 84px;
  margin: 8px -16px 0;
  padding: 0 6px 18px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(14px);
}

.mc-tab {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-height: 48px;
  padding: 10px 0 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1;
}

.mc-tab.is-active {
  color: var(--green);
}

.mc-tab--center {
  gap: 6px;
  color: var(--gold-text);
  font-weight: 800;
}

.mc-orb {
  display: grid;
  width: 58px;
  height: 58px;
  margin-top: -30px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #17130B;
  box-shadow: 0 10px 24px rgba(168, 119, 24, .35), 0 0 0 6px var(--paper);
}

/* 卡面：移植六卡定稿，色值固定不随亮暗主题变化 */
.twcard {
  --card-ink: #171819;
  --card-muted: rgba(23, 24, 25, .63);
  --card-line: #a68241;
  --card-border: rgba(255, 255, 255, .58);
  --guilloche-opacity: .035;
  --qr-paper: rgba(255, 255, 255, .76);
  --qr-ink: #151617;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 428px;
  aspect-ratio: 85.6 / 54;
  margin: 0 auto;
  padding: clamp(19px, 5.9%, 26px);
  overflow: hidden;
  border-radius: 14px;
  background: #eeeae1;
  box-shadow: 0 22px 46px rgba(0, 0, 0, .26), 0 5px 14px rgba(0, 0, 0, .14), inset 0 0 0 1px var(--card-border);
  color: var(--card-ink);
  container-type: inline-size;
  font-family: var(--font);
  line-height: 1;
}

.twcard::before,
.twcard::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.twcard::before {
  z-index: 0;
  background: linear-gradient(118deg, rgba(255, 255, 255, .22), transparent 20%, transparent 73%, rgba(255, 255, 255, .07)), linear-gradient(to bottom, transparent 76%, rgba(26, 24, 20, .08));
}

.twcard::after {
  z-index: 1;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0, rgba(255, 255, 255, .022) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: soft-light;
  opacity: .62;
}

.twcard__guilloche,
.twcard__swan {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.twcard__swan {
  z-index: 1;
  color: var(--card-line);
  opacity: .28;
  transform: translate(11%, 2%) scale(1.04);
  transform-origin: center;
}

.twcard__guilloche {
  z-index: 1;
  color: var(--card-ink);
  opacity: var(--guilloche-opacity);
}

.twcard__guilloche path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: .72;
  vector-effect: non-scaling-stroke;
}

.twcard__guilloche path:nth-child(even) {
  stroke-width: .48;
}

.twcard__cygnus {
  position: absolute;
  top: clamp(52px, 16cqw, 69px);
  right: clamp(19px, 5.9cqw, 26px);
  z-index: 2;
  width: clamp(62px, 19cqw, 82px);
  height: auto;
  color: var(--card-ink);
  opacity: .1;
  pointer-events: none;
}

.twcard__cygnus path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: .7;
}

.twcard__cygnus circle {
  fill: currentColor;
}

.twcard__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(10px, 3cqw, 16px);
}

.twcard__brand {
  min-width: 0;
}

.twcard__wordmark {
  font-size: clamp(20px, 7.45cqw, 32px);
  font-weight: 620;
  letter-spacing: .285em;
  white-space: nowrap;
}

.twcard__club {
  display: block;
  margin-top: clamp(8px, 2.4cqw, 11px);
  color: var(--card-muted);
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(10px, 3.05cqw, 13px);
  font-weight: 500;
  letter-spacing: .32em;
}

.twcard__tier {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(4px, 1.2cqw, 6px);
  padding-top: 1px;
  text-align: right;
}

.twcard__tier-cn {
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(10px, 3.05cqw, 13px);
  font-weight: 600;
  letter-spacing: .18em;
}

.twcard__tier-en {
  color: var(--card-muted);
  font-size: clamp(7px, 1.9cqw, 8px);
  font-weight: 600;
  letter-spacing: .22em;
}

.twcard__bottom {
  position: absolute;
  z-index: 2;
  right: clamp(19px, 5.9cqw, 26px);
  bottom: clamp(18px, 5.3cqw, 23px);
  left: clamp(19px, 5.9cqw, 26px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.twcard__member {
  display: grid;
  align-content: end;
  gap: clamp(3px, .9cqw, 4px);
  min-width: 0;
}

.twcard__holder {
  overflow: hidden;
  font-size: clamp(7px, 2.15cqw, 9px);
  font-weight: 620;
  letter-spacing: .18em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.twcard__since {
  color: var(--card-muted);
  font-size: clamp(5.5px, 1.7cqw, 7px);
  font-weight: 560;
  letter-spacing: .15em;
  white-space: nowrap;
}

.twcard__number {
  color: var(--card-ink);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(9px, 2.85cqw, 12px);
  font-variant-numeric: tabular-nums;
  font-weight: 550;
  letter-spacing: .13em;
  white-space: nowrap;
}

.twcard__qr {
  display: block;
  width: clamp(37px, 11.2cqw, 48px);
  height: clamp(37px, 11.2cqw, 48px);
  flex: 0 0 auto;
  padding: clamp(4px, 1.2cqw, 5px);
  border-radius: 3px;
  background: var(--qr-paper);
  color: var(--qr-ink);
  shape-rendering: crispEdges;
}

.twcard--white {
  --card-ink: #191a19;
  --card-muted: rgba(25, 26, 25, .58);
  --card-line: #9b7537;
  --card-border: rgba(255, 255, 255, .7);
  --guilloche-opacity: .032;
  --qr-paper: rgba(255, 255, 255, .8);
  --qr-ink: #191a19;
  background: radial-gradient(circle at 17% 14%, rgba(255, 255, 255, .78), transparent 30%), linear-gradient(132deg, #f4f0e7 0%, #e8e2d6 62%, #d6cdbd 100%);
}

.twcard--student {
  --card-ink: #17332e;
  --card-muted: rgba(23, 51, 46, .6);
  --card-line: #a98542;
  --card-border: rgba(255, 255, 255, .65);
  --guilloche-opacity: .038;
  --qr-paper: rgba(246, 250, 247, .82);
  --qr-ink: #165c51;
  background: radial-gradient(circle at 84% 18%, rgba(255, 255, 255, .5), transparent 27%), linear-gradient(124deg, #f0f1e9 0%, #dce8e1 62%, #bcd3ca 100%);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .26), 0 5px 14px rgba(0, 0, 0, .14), inset 5px 0 0 #2d8678, inset 0 0 0 1px var(--card-border);
}

.twcard--student .twcard__tier-cn,
.twcard--student .twcard__tier-en {
  color: #126b60;
}

.twcard--gold {
  --card-ink: #1e180e;
  --card-muted: rgba(30, 24, 14, .62);
  --card-line: #6f5121;
  --card-border: rgba(255, 242, 204, .5);
  --guilloche-opacity: .044;
  --qr-paper: rgba(248, 228, 178, .76);
  --qr-ink: #21180a;
  background: radial-gradient(circle at 22% 16%, rgba(255, 239, 191, .55), transparent 25%), linear-gradient(133deg, #e6d098 0%, #bd944f 31%, #ecd8a1 52%, #b9883d 78%, #d5b66f 100%);
}

.twcard--gold::before {
  background: linear-gradient(107deg, transparent 0 31%, rgba(255, 247, 217, .29) 40%, transparent 47% 72%, rgba(91, 60, 17, .1) 100%), linear-gradient(to bottom, rgba(255, 255, 255, .08), transparent 42%, rgba(70, 43, 10, .12));
}

.twcard--diamond {
  --card-ink: #182126;
  --card-muted: rgba(24, 33, 38, .58);
  --card-line: #64737a;
  --card-border: rgba(255, 255, 255, .72);
  --guilloche-opacity: .052;
  --qr-paper: rgba(249, 251, 252, .78);
  --qr-ink: #2d3b41;
  background: radial-gradient(circle at 22% 13%, rgba(255, 255, 255, .88), transparent 26%), linear-gradient(128deg, #edf0f1 0%, #cfd6d9 44%, #f1f3f3 69%, #b8c1c5 100%);
}

.twcard--diamond .twcard__swan {
  opacity: .4;
}

.twcard--platinum {
  --card-ink: #f4efe7;
  --card-muted: #e5ded3;
  --card-line: #242724;
  --card-border: rgba(244, 239, 231, .22);
  --guilloche-opacity: .06;
  --qr-paper: rgba(228, 222, 212, .88);
  --qr-ink: #272927;
  background: linear-gradient(124deg, #5d5b56 0%, #454746 36%, #56534e 64%, #3d403f 100%);
}

.twcard--platinum::before {
  background: linear-gradient(112deg, rgba(238, 230, 215, .035), transparent 24%, transparent 68%, rgba(10, 11, 11, .15)), linear-gradient(to bottom, rgba(255, 255, 255, .015), transparent 50%, rgba(10, 11, 11, .14));
}

.twcard--platinum .twcard__swan {
  opacity: .58;
}

.twcard--platinum .twcard__cygnus {
  color: #eee7dc;
  opacity: .09;
}

.twcard--black {
  --card-ink: #bda169;
  --card-muted: rgba(196, 169, 111, .78);
  --card-line: #77756f;
  --card-border: rgba(255, 255, 255, .085);
  --guilloche-opacity: .05;
  --qr-paper: rgba(228, 222, 212, .88);
  --qr-ink: #151617;
  background: #050606;
}

.twcard--black::before {
  background: linear-gradient(112deg, rgba(255, 255, 255, .025), transparent 22%, transparent 78%, rgba(255, 255, 255, .014));
}

.twcard--black::after {
  display: none;
}

.twcard--black .twcard__cygnus {
  color: #77756f;
  opacity: .24;
}

/* 暗色主题的绿色底较亮，改用深色前景并提高小号状态文字对比度。 */
@media (prefers-color-scheme: dark) {
  .mc-hero,
  .mc-avatar {
    color: #111;
  }

  .mc-hero__note {
    color: rgba(17, 17, 17, .78);
  }

  .mc-chip--green,
  .mc-mark--done {
    color: var(--ink);
  }
}

/* 月度券配额卡（会员中心 · 优惠券页） */
.mc-grant {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: var(--ink);
}

.mc-grant[hidden] {
  display: none;
}

.mc-grant__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.mc-grant__head .eyebrow {
  margin: 0 0 4px;
}

.mc-grant__count {
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.mc-grant__meta {
  flex: 0 0 auto;
  color: var(--gold-text);
  font-size: .78rem;
  font-weight: 700;
  text-align: right;
}

.mc-bar--gold {
  background: color-mix(in srgb, var(--gold-text) 18%, transparent);
}

.mc-bar--gold > span {
  background: var(--gold);
}

.mc-grant__claim {
  width: 100%;
  cursor: pointer;
}

.mc-grant__claim[disabled] {
  cursor: default;
  opacity: .6;
}

.mc-grant__note {
  margin: 0;
  color: var(--gold-text);
  font-size: .76rem;
  line-height: 1.5;
}
