:root {
  --primary: #123c33;
  --primary-hover: #0b2e27;
  --primary-soft: #e3ece7;
  --accent: #d8a75d;
  --accent-soft: #f5ead8;
  --bg: #f3f1ea;
  --surface: #ffffff;
  --text: #17211e;
  --text-sub: #6f7772;
  --border: #e5e4dc;
  --success: #267a5b;
  --danger: #b84a42;
  --shadow-sm: 0 4px 16px rgba(23, 33, 30, 0.05);
  --shadow-md: 0 14px 36px rgba(18, 60, 51, 0.10);
  --shadow-lg: 0 24px 70px rgba(18, 40, 34, 0.18);
  --font-display: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: light;
  background: #dedfd8;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(216, 167, 93, 0.16), transparent 26%),
    radial-gradient(circle at 90% 80%, rgba(18, 60, 51, 0.12), transparent 32%),
    #e8e8e1;
  font-family: var(--font-body);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
a,
input,
select,
textarea {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(216, 167, 93, 0.55);
  outline-offset: 2px;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

h1,
h2,
h3,
p {
  margin: 0;
}

svg {
  display: block;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 460px;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(216, 167, 93, 0.10), transparent 25%),
    linear-gradient(180deg, #f8f6f0 0%, var(--bg) 48%, #f5f4ee 100%);
}

.app-shell::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.10'/%3E%3C/svg%3E");
}

.app-header,
.app-content {
  position: relative;
  z-index: 1;
}

.app-header {
  padding: calc(20px + env(safe-area-inset-top)) 20px 12px;
}

body[data-page="home"]:not(.admin-view) .app-header,
body[data-page="cards"]:not(.admin-view) .app-header,
body[data-page="payment"]:not(.admin-view) .app-header,
body[data-page="profile"]:not(.admin-view) .app-header {
  display: none;
}

body[data-page="home"]:not(.admin-view) .app-content,
body[data-page="cards"]:not(.admin-view) .app-content,
body[data-page="payment"]:not(.admin-view) .app-content,
body[data-page="profile"]:not(.admin-view) .app-content {
  padding-top: calc(4px + env(safe-area-inset-top));
}

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

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-monogram {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px 14px 14px 4px;
  color: #f7f2e7;
  background: var(--primary);
  box-shadow: 0 8px 20px rgba(18, 60, 51, 0.18);
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-caption,
.header-kicker {
  display: block;
  margin-top: 4px;
  color: var(--text-sub);
  font-size: 10px;
  letter-spacing: 1.6px;
}

.header-title {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 1px;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(18, 60, 51, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, background 180ms ease;
}

.icon-button:hover {
  background: var(--surface);
  transform: translateY(-2px);
}

.icon-button:active {
  transform: scale(0.94);
}

.icon-button.has-dot {
  position: relative;
}

.icon-button.has-dot::after {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #c76e52;
  content: "";
}

.app-content {
  min-height: calc(100dvh - 96px);
  padding: 4px 20px calc(112px + env(safe-area-inset-bottom));
}

.app-content:focus {
  outline: none;
}

.bottom-nav {
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 9px 20px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(18, 60, 51, 0.07);
  background: rgba(251, 250, 246, 0.93);
  box-shadow: 0 -10px 30px rgba(18, 60, 51, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
}

.nav-item {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  gap: 5px;
  padding: 3px 8px 0;
  color: #8a918d;
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-icon {
  display: grid;
  width: 38px;
  height: 30px;
  place-items: center;
  border-radius: 12px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-item.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-item.active .nav-icon {
  background: var(--primary-soft);
}

.nav-card .nav-icon {
  width: 48px;
  height: 40px;
  margin-top: -14px;
  border: 4px solid #f8f6f0;
  border-radius: 15px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(18, 60, 51, 0.22);
}

.nav-card.active .nav-icon {
  color: var(--primary);
  background: var(--accent);
  transform: translateY(-2px);
}

.nav-item:active .nav-icon {
  transform: scale(0.90);
}

.section {
  margin-top: 24px;
}

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

.section-heading h2 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.35;
}

.section-heading p {
  margin-top: 3px;
  color: var(--text-sub);
  font-size: 12px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  color: var(--primary);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}

.text-button:hover {
  color: var(--primary-hover);
}

.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.primary-button {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(18, 60, 51, 0.16);
}

.primary-button:hover {
  background: var(--primary-hover);
  box-shadow: 0 10px 24px rgba(18, 60, 51, 0.22);
}

.secondary-button {
  border: 1px solid var(--border);
  color: var(--primary);
  background: #fff;
}

.secondary-button:hover {
  background: var(--primary-soft);
}

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

.primary-button:active,
.secondary-button:active,
.danger-button:active {
  transform: scale(0.98);
}

.full-width {
  width: 100%;
}

.surface-card {
  border: 1px solid rgba(18, 60, 51, 0.06);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

/* 首页 */
.hero-banner {
  position: relative;
  min-height: 268px;
  overflow: hidden;
  padding: 26px 24px 24px;
  border-radius: 26px 26px 26px 8px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 8%, rgba(216, 167, 93, 0.28), transparent 28%),
    linear-gradient(135deg, #173f35 0%, #0c2e27 72%);
  box-shadow: 0 18px 36px rgba(18, 60, 51, 0.20);
}

.home-hero-slides {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-hero-slides { z-index: 0; }

.home-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  object-position: center;
  transition: opacity 900ms ease;
}

.home-hero-slide.is-active { opacity: 1; }

.hero-banner.has-images .hero-card-art,
.hero-banner.has-images .hero-serial { display: none; }

body[data-page="home"]:not(.admin-view) .hero-banner.has-images {
  margin: calc(-4px - env(safe-area-inset-top)) calc(-20px - env(safe-area-inset-right)) 0 calc(-20px - env(safe-area-inset-left));
  border-radius: 0;
}

.hero-banner::before {
  position: absolute;
  top: -70px;
  right: -62px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 32px rgba(255, 255, 255, 0.025), 0 0 0 64px rgba(255, 255, 255, 0.02);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 265px;
}

.hero-eyebrow {
  color: #e4c99f;
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 2px;
}

.hero-title {
  max-width: 230px;
  margin-top: 15px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 1px;
}

.hero-subtitle {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  padding: 0 15px;
  border-radius: 12px;
  color: #18382f;
  background: #f0d5a9;
  font-size: 12px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease;
}

.hero-cta:hover {
  background: #f7e3c3;
  transform: translateY(-2px);
}

.hero-serial {
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.6px;
  writing-mode: vertical-rl;
}

.hero-card-art {
  position: absolute;
  z-index: 1;
  right: -24px;
  bottom: 37px;
  width: 152px;
  height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  opacity: 0.68;
  background: linear-gradient(135deg, rgba(239, 210, 161, 0.45), rgba(255, 255, 255, 0.06));
  box-shadow: -14px 16px 30px rgba(0, 0, 0, 0.15);
  transform: rotate(-17deg);
}

.hero-card-art::before {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 26px;
  height: 20px;
  border-radius: 5px;
  background: rgba(255, 235, 198, 0.7);
  content: "";
}

.hero-card-art::after {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.4);
  content: "";
}

.member-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: -10px 12px 0;
  padding: 16px 8px;
  border: 1px solid rgba(18, 60, 51, 0.05);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.member-stat {
  padding: 0 14px;
}

.member-stat + .member-stat {
  border-left: 1px solid var(--border);
}

.member-stat span {
  display: block;
  color: var(--text-sub);
  font-size: 11px;
}

.member-stat strong {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  font-weight: 600;
}

.notice-bar {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #654c2e;
  background: var(--accent-soft);
  text-align: left;
}

.notice-bar .notice-label {
  flex: 0 0 auto;
  padding-right: 10px;
  border-right: 1px solid rgba(101, 76, 46, 0.16);
  font-size: 11px;
  font-weight: 700;
}

.notice-bar .notice-copy {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.home-services-section {
  position: relative;
  isolation: isolate;
  margin-top: 18px;
  overflow: hidden;
  padding: 18px 10px 16px;
  border: 1px solid rgba(176, 47, 50, 0.10);
  border-radius: 26px 26px 26px 9px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(92, 45, 38, 0.08);
}

.service-item {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  padding: 10px 2px;
  color: inherit;
  text-decoration: none;
  border-radius: 14px;
  background: transparent;
  font-size: 11px;
  transition: background 180ms ease, transform 180ms ease;
}

.home-services-section .service-grid {
  position: relative;
  z-index: 1;
  gap: 10px 4px;
}

.home-services-section .service-item {
  gap: 10px;
  padding: 9px 1px 10px;
  color: #742d2c;
  border-radius: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.service-item:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.home-services-section .service-item:hover {
  background: rgba(255, 255, 255, 0.58);
  transform: translateY(-3px);
}

.home-services-section .service-item:active {
  transform: translateY(0) scale(0.97);
}

.service-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(18, 60, 51, 0.06);
  border-radius: 16px 16px 16px 5px;
  color: #8a6333;
  background: #faf1e3;
  box-shadow: var(--shadow-sm);
}

.home-services-section .service-icon {
  position: relative;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 229, 166, 0.78);
  border-radius: 50%;
  color: #fff1c5;
  background: linear-gradient(145deg, #dc5148 0%, #c32f39 58%, #9d1c2d 100%);
  box-shadow:
    0 7px 14px rgba(157, 40, 43, 0.20),
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -3px 6px rgba(101, 12, 26, 0.16);
}

.home-services-section .service-icon::before {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 225, 159, 0.34);
  border-radius: inherit;
  content: "";
}

.home-services-section .service-icon::after {
  position: absolute;
  top: -1px;
  right: 1px;
  width: 11px;
  height: 11px;
  background: #f4ce78;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  content: "";
  filter: drop-shadow(0 1px 2px rgba(119, 55, 20, 0.28));
}

.home-services-section .service-icon .icon {
  position: relative;
  width: 25px;
  height: 25px;
  stroke-width: 1.9;
  filter: drop-shadow(0 1px 1px rgba(87, 10, 20, 0.20));
}

.custom-text-card {
  position: relative;
  min-height: 116px;
  overflow: hidden;
  padding: 22px 22px 22px 52px;
  border: 1px solid rgba(18, 60, 51, 0.07);
  border-radius: 20px 20px 20px 7px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.custom-text-card::before {
  position: absolute;
  top: 4px;
  left: 16px;
  color: var(--accent);
  content: "“";
  font-family: Georgia, serif;
  font-size: 52px;
  line-height: 1;
}

.custom-text-image {
  display: block;
  width: 100%;
  max-height: 240px;
  margin-bottom: 18px;
  border-radius: 12px;
  object-fit: cover;
}

.custom-text-card.has-image {
  margin-right: -20px;
  margin-left: -20px;
  padding: 0;
  border-radius: 0;
}

.custom-text-card.has-image::before {
  display: none;
}

.custom-text-card.has-image .custom-text-image {
  margin: 0;
  border-radius: 0;
}

.custom-text-card.has-image p {
  margin: 0;
  padding: 18px 42px 22px;
}

.custom-text-card p {
  position: relative;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.custom-text-card.is-empty p {
  color: var(--text-sub);
  font-family: var(--font-body);
  font-size: 12px;
}

/* 卡片页 */
.wallet-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 4px 2px;
}

.wallet-overview p {
  color: var(--text-sub);
  font-size: 12px;
}

.wallet-overview strong {
  display: block;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 24px;
}

.wallet-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 10px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 11px;
}

.card-list {
  display: grid;
  gap: 18px;
}

.bank-card-wrap {
  animation: fade-up 320ms both;
}

.bank-card {
  position: relative;
  min-height: 194px;
  overflow: hidden;
  padding: 22px;
  border-radius: 22px 22px 22px 7px;
  color: #fff;
  box-shadow: 0 16px 28px rgba(18, 40, 34, 0.16);
  isolation: isolate;
}

.card-pay-trigger {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card-pay-trigger:hover {
  transform: translateY(-2px);
}

.card-pay-trigger:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.bank-card::before {
  position: absolute;
  z-index: -1;
  top: -80px;
  right: -60px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 35px rgba(255, 255, 255, 0.035), 0 0 0 70px rgba(255, 255, 255, 0.025);
}

.bank-card::after {
  position: absolute;
  z-index: -1;
  right: 22px;
  bottom: -30px;
  width: 100px;
  height: 100px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  content: "";
  transform: rotate(35deg);
}

.bank-card.theme-green {
  background: linear-gradient(135deg, #1b5144, #0c2e27);
}

.bank-card.theme-gold {
  color: #2f2a22;
  background: linear-gradient(135deg, #ead9ba, #c9a56a);
  box-shadow: 0 16px 28px rgba(121, 89, 43, 0.16);
}

.bank-card.theme-slate {
  background: linear-gradient(135deg, #3b4c56, #1e2a31);
}

.bank-card.theme-red {
  background: linear-gradient(135deg, #9c574a, #68372f);
}

.bank-card-top,
.bank-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bank-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bank-logo {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.theme-gold .bank-logo {
  border-color: rgba(47, 42, 34, 0.25);
  background: rgba(255, 255, 255, 0.25);
}

.bank-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.card-type {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 7px;
  font-size: 9px;
}

.theme-gold .card-type {
  border-color: rgba(47, 42, 34, 0.22);
}

.card-chip {
  width: 34px;
  height: 25px;
  margin-top: 25px;
  border-radius: 7px;
  background: linear-gradient(135deg, #f1d49a, #b89150);
  box-shadow: inset 0 0 0 1px rgba(80, 53, 18, 0.14);
}

.bank-card-number {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 1.8px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: normal;
}

.bank-card-bottom {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  letter-spacing: 1px;
}

.theme-gold .bank-card-bottom {
  color: rgba(47, 42, 34, 0.66);
}

.bank-card-bottom strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
}

.theme-gold .bank-card-bottom strong {
  color: #2f2a22;
}

.bank-card-status {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.card-accelerate {
  color: #f5ddb7;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
}

.theme-gold .card-accelerate {
  color: #5b472c;
}

.default-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f5ddb7;
  font-size: 10px;
}

.theme-gold .default-badge {
  color: #5b472c;
}

.card-asset-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(18, 60, 51, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.card-asset-row > div + div {
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.card-asset-row > div > span {
  display: block;
  color: var(--text-sub);
  font-size: 10px;
}

.card-asset-row strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.card-purchase-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 0;
}

.card-purchase-row small {
  color: var(--text-sub);
  font-size: 10px;
  line-height: 1.5;
}

.card-purchase-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--text-sub);
  background: #eef0ec;
  font-size: 10px;
  font-weight: 600;
}

.card-purchase-status.is-purchased {
  color: var(--success);
  background: #e8f3ed;
}

.card-purchase-status.is-pending {
  color: #8a5a16;
  background: #fbf0dc;
}

.card-purchase-status.is-unpurchased {
  color: var(--primary);
  background: var(--primary-soft);
}

.payment-progress-card {
  position: relative;
  overflow: hidden;
  padding: 25px 24px 22px;
  border-radius: 24px 24px 24px 8px;
  color: #fff;
  background:
    radial-gradient(circle at 94% 0, rgba(216, 167, 93, 0.25), transparent 36%),
    linear-gradient(145deg, #173f35, #0c2e27);
  box-shadow: 0 18px 36px rgba(18, 60, 51, 0.18);
}

.payment-progress-card::after {
  position: absolute;
  top: -58px;
  right: -48px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 26px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.payment-progress-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.payment-progress-heading p {
  color: #e4c99f;
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 1.8px;
}

.payment-progress-heading h2 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 1px;
}

.payment-progress-heading > strong {
  color: #f0d5a9;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.payment-progress-heading > strong small {
  margin-left: 3px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
}

.payment-progress-track {
  position: relative;
  z-index: 1;
  height: 12px;
  margin-top: 27px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.14);
}

.payment-progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c9944f, #f2d7a8);
  box-shadow: 0 0 14px rgba(240, 213, 169, 0.30);
  transition: width 500ms ease;
}

.payment-progress-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
}

.payment-card-section {
  margin-top: 25px;
}

.payment-card-section .add-card-button {
  margin-top: 18px;
}

.fixed-card-type {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 13px;
  font-weight: 600;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 10px 8px 0;
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  color: var(--text-sub);
  background: transparent;
  font-size: 11px;
}

.card-action:hover {
  color: var(--primary);
}

.card-action.delete:hover {
  color: var(--danger);
}

.add-card-button {
  display: flex;
  width: 100%;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  border: 1px dashed rgba(18, 60, 51, 0.28);
  border-radius: 18px;
  color: var(--primary);
  background: var(--accent);
  font-size: 13px;
  font-weight: 600;
  transition: border 180ms ease, background 180ms ease;
}

.add-card-button:hover {
  border-color: var(--primary);
  background: #c89547;
}

body[data-page="cards"] .add-card-button {
  position: sticky;
  top: calc(8px + env(safe-area-inset-top));
  z-index: 30;
  box-shadow: 0 8px 24px rgba(18, 60, 51, 0.14);
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  line-height: 1.7;
}

.empty-state {
  padding: 42px 24px;
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 22px 22px 22px 7px;
  color: var(--primary);
  background: var(--primary-soft);
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 20px;
}

.empty-state p {
  margin: 8px 0 20px;
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.7;
}

/* 我的 */
.profile-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 24px 24px 24px 8px;
  color: #fff;
  background: var(--primary);
  box-shadow: var(--shadow-md);
}

.profile-card::after {
  position: absolute;
  top: -36px;
  right: -32px;
  width: 140px;
  height: 140px;
  border: 22px solid rgba(216, 167, 93, 0.10);
  border-radius: 50%;
  content: "";
}

.profile-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 20px 20px 20px 6px;
  color: var(--primary);
  background: #e9cf9f;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}

.profile-asset-card {
  margin-top: 12px;
  padding: 18px 20px;
}

.profile-asset-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-asset-heading h3 {
  font-family: var(--font-display);
  font-size: 17px;
}

.profile-asset-heading p,
.profile-exchange-rate {
  margin-top: 4px;
  color: var(--text-sub);
  font-size: 11px;
}

.asset-exchange-open {
  min-height: 34px;
  padding: 0 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.profile-asset-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.profile-asset-values.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.profile-asset-values > button {
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--bg);
}

.profile-asset-value {
  text-align: left;
  cursor: pointer;
}

.profile-asset-value:hover {
  background: var(--primary-soft);
}

.profile-asset-value em {
  display: block;
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 10px;
  font-style: normal;
}

.profile-asset-values span {
  display: block;
  color: var(--text-sub);
  font-size: 11px;
}

.profile-asset-values strong {
  display: block;
  margin-top: 6px;
  color: var(--primary);
  font-size: 20px;
}

.profile-asset-values strong > span {
  display: inline;
  color: inherit;
  font-size: inherit;
}

.profile-asset-values small {
  margin-left: 4px;
  font-size: 10px;
  font-weight: 500;
}

.profile-exchange-rate {
  margin-top: 12px;
  line-height: 1.6;
}

.exchange-rate-card {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 14px;
  color: #f8f4e9;
  background: var(--primary);
}

.exchange-rate-card span,
.exchange-rate-card small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.exchange-rate-card strong {
  font-size: 19px;
}

.exchange-available {
  color: var(--text-sub);
  font-size: 12px;
}

.exchange-estimate {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 12px;
  line-height: 1.6;
}

.asset-ledger-list {
  display: grid;
  gap: 10px;
}

.asset-ledger-entry {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.asset-ledger-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.asset-ledger-top > div > strong,
.asset-ledger-top > div > span {
  display: block;
}

.asset-ledger-top > div > span {
  margin-top: 5px;
  color: var(--text-sub);
  font-size: 10px;
  line-height: 1.5;
}

.asset-ledger-amount {
  flex: 0 0 auto;
  font-size: 15px;
}

.asset-ledger-amount.positive { color: var(--success); }
.asset-ledger-amount.negative { color: var(--danger); }
.asset-ledger-amount.neutral { color: var(--text-sub); }

.asset-ledger-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: var(--text-sub);
  font-size: 10px;
}

.asset-ledger-type {
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--primary);
  background: var(--primary-soft);
}

.ledger-loading,
.ledger-end {
  padding: 20px 0;
  color: var(--text-sub);
  text-align: center;
  font-size: 11px;
}

.ledger-load-more {
  margin-top: 14px;
}

.avatar-upload {
  position: relative;
  padding: 0;
  cursor: pointer;
}

.avatar-upload > img {
  width: 100%;
  height: 100%;
  border-radius: 18px 18px 18px 4px;
  object-fit: cover;
}

.avatar-edit-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 2px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  background: #fff;
}

.avatar-upload-hint {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.profile-info {
  min-width: 0;
  flex: 1;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-name-row h2 {
  font-family: var(--font-display);
  font-size: 22px;
}

.member-badge {
  padding: 3px 7px;
  border-radius: 6px;
  color: #45361f;
  background: #e6c995;
  font-size: 9px;
  font-weight: 700;
}

.profile-info p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
}

.invite-banner {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  color: #594324;
  background: linear-gradient(115deg, #f5ead8, #e9d4af);
  text-align: left;
}

.invite-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  color: #f5ead8;
  background: #886739;
}

.invite-copy {
  min-width: 0;
  flex: 1;
}

.invite-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
}

.invite-copy span {
  display: block;
  margin-top: 5px;
  color: #8b704b;
  font-size: 11px;
}

.balance-summary {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 20px;
  border: 0;
  border-radius: 20px 20px 20px 7px;
  color: #fff;
  background: linear-gradient(130deg, #1d5144, #0e332b);
  box-shadow: var(--shadow-sm);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.balance-summary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.balance-summary:active {
  transform: translateY(0);
}

.balance-total-copy {
  min-width: 0;
}

.balance-total-copy > span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
}

.balance-summary strong {
  display: block;
  margin-top: 7px;
  color: #efd6ac;
  font-family: var(--font-mono);
  font-size: 25px;
  font-weight: 600;
}

.balance-auto-fit {
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.balance-card-count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 8px;
  border-radius: 8px;
  color: #efd6ac;
  background: rgba(255, 255, 255, 0.09);
  font-size: 10px;
  white-space: nowrap;
}

.balance-withdraw-status {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  line-height: 1.5;
}

.withdraw-amount-input {
  position: relative;
  display: block;
}

.withdraw-amount-input input {
  padding-right: 76px;
}

.withdraw-all-button {
  position: absolute;
  top: 50%;
  right: 10px;
  min-width: 52px;
  min-height: 34px;
  padding: 0 12px;
  transform: translateY(-50%);
  border-radius: 10px;
  color: var(--primary);
  background: rgba(18, 60, 51, 0.08);
  font-size: 13px;
  font-weight: 700;
}

.withdraw-total {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 16px 16px 16px 6px;
  background: var(--primary-soft);
}

.withdraw-total > span,
.withdraw-total small {
  display: block;
  color: var(--text-sub);
  font-size: 11px;
}

.withdraw-total strong {
  display: block;
  margin: 7px 0;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 28px;
}

.withdrawal-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.withdrawal-record {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.withdrawal-record-top,
.withdrawal-record-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.withdrawal-record-top > div {
  min-width: 0;
}

.withdrawal-record-top > div > strong {
  display: block;
  font-size: 13px;
}

.withdrawal-record-top > div > span {
  display: block;
  margin-top: 5px;
  color: var(--text-sub);
  font-size: 11px;
}

.withdrawal-amount {
  flex: 0 0 auto;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 16px;
  white-space: nowrap;
}

.withdrawal-record-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-sub);
  font-size: 10px;
}

.withdrawal-current-status {
  color: var(--primary);
  background: var(--primary-soft);
  white-space: nowrap;
}

.withdrawal-stage-list {
  display: grid;
  margin: 16px 0 0;
  padding: 14px;
  list-style: none;
  border-radius: 12px;
  background: var(--primary-soft);
}

.withdrawal-stage-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 17px;
}

.withdrawal-stage-item:last-child {
  padding-bottom: 0;
}

.withdrawal-stage-item:not(:last-child)::before {
  position: absolute;
  top: 28px;
  bottom: 0;
  left: 13px;
  width: 1px;
  content: "";
  background: var(--border);
}

.withdrawal-stage-marker {
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-sub);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
}

.withdrawal-stage-item.is-completed .withdrawal-stage-marker,
.withdrawal-stage-item.is-current .withdrawal-stage-marker {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.withdrawal-stage-item.is-current .withdrawal-stage-marker {
  box-shadow: 0 0 0 4px rgb(18 60 51 / 12%);
}

.withdrawal-stage-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.withdrawal-stage-copy strong {
  font-size: 12px;
}

.withdrawal-stage-copy span,
.withdrawal-next-stage {
  color: var(--text-sub);
  font-size: 10px;
}

.withdrawal-stage-copy span {
  text-align: right;
}

.withdrawal-stage-item.is-current .withdrawal-stage-copy strong {
  color: var(--primary);
}

.withdrawal-next-stage {
  margin: 10px 0 0;
  text-align: center;
}

.withdrawal-record-actions {
  position: sticky;
  z-index: 4;
  bottom: 0;
  display: flex;
  gap: 10px;
  margin: 0 -8px -8px;
  padding: 14px 8px 8px;
  background: linear-gradient(to bottom, rgba(250, 249, 245, 0), #faf9f5 28%);
  box-shadow: 0 -12px 24px rgba(18, 60, 51, 0.05);
}

.withdrawal-record-actions > button {
  flex: 1;
  box-shadow: 0 8px 22px rgba(18, 60, 51, 0.12);
}

.admin-withdrawal-stage-list {
  display: grid;
  gap: 12px;
}

.admin-withdrawal-stage-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(180px, 0.7fr) auto;
  align-items: end;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft, #f6f8f7);
}

.admin-withdrawal-stage-number {
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-family: var(--font-mono);
  font-size: 12px;
}

.admin-withdrawal-stage-remove {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
  color: var(--danger);
  background: transparent;
  font-size: 11px;
}

.admin-withdrawal-stage-add {
  justify-self: start;
  margin-top: 12px;
}

.admin-withdrawal-delay {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-withdrawal-delay input {
  min-width: 0;
  flex: 1;
}

.admin-withdrawal-delay > span {
  color: var(--text-sub);
  font-size: 12px;
}

.admin-stage-immediate {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-sub);
  background: var(--primary-soft);
  font-size: 12px;
}

.admin-withdrawal-stage-preview {
  padding: 16px;
  border-radius: 12px;
  color: var(--text-sub);
  background: var(--primary-soft);
  font-size: 12px;
}

.admin-withdrawal-stage-preview strong {
  color: var(--primary);
}

.admin-withdrawal-stage-preview p {
  margin: 7px 0 0;
  line-height: 1.8;
}

@media (max-width: 700px) {
  .admin-withdrawal-stage-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }

  .admin-withdrawal-stage-row > label:nth-child(3) {
    grid-column: 2;
  }

  .admin-withdrawal-stage-remove {
    grid-column: 3;
    grid-row: 2;
  }
}

@media (max-width: 420px) {
  .withdrawal-stage-copy {
    display: grid;
    gap: 3px;
  }

  .withdrawal-stage-copy span {
    text-align: left;
  }
}

.verification-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
}

.verification-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  color: var(--primary);
  background: var(--primary-soft);
}

.verification-copy {
  min-width: 0;
  flex: 1;
}

.verification-copy strong {
  display: block;
  font-size: 13px;
}

.verification-copy span {
  display: block;
  margin-top: 4px;
  color: var(--text-sub);
  font-size: 11px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 8px;
  color: #8b693b;
  background: var(--accent-soft);
  font-size: 10px;
  white-space: nowrap;
}

.status-pill.verified {
  color: var(--success);
  background: var(--primary-soft);
}

.menu-card {
  overflow: hidden;
  padding: 0 16px;
}

.menu-item {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  text-align: left;
}

.menu-item:last-child {
  border-bottom: 0;
}

.menu-item:hover .menu-label {
  color: var(--primary);
}

.menu-item-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: var(--primary);
  background: #f0f3ef;
}

.menu-label {
  flex: 1;
  font-size: 13px;
  transition: color 180ms ease;
}

.menu-meta {
  color: var(--text-sub);
  font-size: 10px;
}

.menu-chevron {
  color: #a5aaa6;
}

.version-copy {
  margin-top: 24px;
  color: #a1a49f;
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-align: center;
}

/* 后台内容配置 */
.admin-view {
  background: #f1f4f2;
}

.admin-view .app-shell {
  width: 100%;
  max-width: none;
}

.admin-view .app-header,
.admin-view .bottom-nav {
  display: none;
}

.admin-view .app-content {
  padding: 0;
}

.admin-shell {
  min-height: 100dvh;
  background: radial-gradient(circle at 90% 0%, rgba(216, 167, 93, 0.13), transparent 28%), #f1f4f2;
}

.admin-topbar {
  display: flex;
  max-width: 1080px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(18, 60, 51, 0.08);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px 14px 14px 5px;
  color: #f4dfb7;
  background: var(--primary);
  font-family: Georgia, serif;
  font-size: 15px;
  letter-spacing: 1px;
}

.admin-brand strong,
.admin-brand div span {
  display: block;
}

.admin-brand strong {
  font-size: 15px;
}

.admin-brand div span {
  margin-top: 4px;
  color: var(--text-sub);
  font-size: 9px;
  letter-spacing: 1.5px;
}

.admin-preview-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.admin-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 42px 32px 64px;
}

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

.admin-eyebrow {
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
}

.admin-heading h1 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
}

.admin-heading div > p:last-child {
  margin-top: 9px;
  color: var(--text-sub);
  font-size: 13px;
}

.admin-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--primary);
  background: #e1ece6;
  font-size: 11px;
  font-weight: 600;
}

.admin-status > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.admin-panel {
  padding: 28px;
  border: 1px solid rgba(18, 60, 51, 0.08);
  border-radius: 24px 24px 24px 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.admin-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-panel textarea[name="customText"] {
  min-height: 132px;
}

.admin-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 8px;
}

.admin-form-note {
  max-width: 390px;
  color: var(--text-sub);
  font-size: 11px;
  line-height: 1.7;
}

.admin-form-footer .primary-button {
  min-width: 156px;
  flex: 0 0 auto;
}

.admin-load-error {
  max-width: 560px;
  margin: 100px auto;
  padding: 32px;
  text-align: center;
}

.admin-load-error h1 {
  font-size: 24px;
}

.admin-load-error p {
  margin: 12px 0 22px;
  color: var(--text-sub);
}

@media (max-width: 640px) {
  .admin-topbar {
    padding: 18px 16px;
  }

  .admin-main {
    padding: 28px 16px 44px;
  }

  .admin-heading h1 {
    font-size: 28px;
  }

  .admin-status {
    display: none;
  }

  .admin-panel {
    padding: 20px;
  }

  .admin-field-row {
    grid-template-columns: 1fr;
  }

  .admin-form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-form-footer .primary-button {
    width: 100%;
  }
}

/* 弹层、表单与反馈 */
.sheet-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(12, 28, 24, 0.48);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: backdrop-in 200ms ease both;
}

.bottom-sheet {
  width: 100%;
  max-width: 460px;
  max-height: min(calc(100dvh - 32px), 820px);
  overflow: auto;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  border-radius: 28px;
  background: #faf9f5;
  box-shadow: var(--shadow-lg);
  animation: fade-up 240ms cubic-bezier(0.22, 0.8, 0.3, 1) both;
  overscroll-behavior: contain;
}

.sheet-handle {
  display: none;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.sheet-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
}

.sheet-header p {
  margin-top: 5px;
  color: var(--text-sub);
  font-size: 11px;
}

.sheet-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--text-sub);
  background: #eeeee8;
}

.sheet-close:hover {
  color: var(--text);
  background: #e4e5de;
}

.sheet-body {
  animation: fade-up 240ms ease both;
}

.sheet-footer {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.sheet-footer > * {
  flex: 1;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field-label {
  color: #424b47;
  font-size: 12px;
  font-weight: 600;
}

#add-card-form .form-row {
  grid-template-columns: minmax(0, 1fr);
}

#add-card-form .field {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

#add-card-form .field-label {
  white-space: nowrap;
}

#add-card-form .field input {
  min-width: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dedfd8;
  border-radius: 12px;
  color: var(--text);
  background: #fff;
  transition: border 180ms ease, box-shadow 180ms ease;
}

.field input,
.field select {
  height: 48px;
  padding: 0 14px;
}

.field input.color-input {
  padding: 6px 14px;
  cursor: pointer;
}

.color-default-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.field input.color-default-input {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  accent-color: var(--primary);
}

.field textarea {
  min-height: 82px;
  padding: 12px 14px;
  line-height: 1.6;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(18, 60, 51, 0.08);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a8aca7;
}

.field-hint {
  color: var(--text-sub);
  font-size: 10px;
  line-height: 1.5;
}

.form-error {
  display: none;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--danger);
  background: #f9e9e6;
  font-size: 11px;
  line-height: 1.6;
}

.form-error.visible {
  display: block;
}

.form-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--text-sub);
  font-size: 10px;
  line-height: 1.6;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: #eeeee8;
}

.segmented label {
  position: relative;
}

.segmented input {
  position: absolute;
  opacity: 0;
}

.segmented span {
  display: grid;
  min-height: 38px;
  place-items: center;
  border-radius: 9px;
  color: var(--text-sub);
  font-size: 12px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.segmented input:checked + span {
  color: var(--primary);
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.segmented input:focus-visible + span {
  outline: 3px solid rgba(216, 167, 93, 0.55);
}

.card-preview {
  min-height: 142px;
  margin-bottom: 10px;
  padding: 18px;
  border-radius: 18px 18px 18px 6px;
}

.card-preview-assets {
  margin: 0 0 20px;
  padding: 12px 14px;
}

.card-preview-assets strong {
  font-size: 13px;
}

.card-preview .bank-card-number {
  margin-top: 18px;
  font-size: 15px;
}

.card-preview .bank-card-bottom {
  margin-top: 14px;
}

.card-preview .card-chip {
  width: 28px;
  height: 20px;
  margin-top: 14px;
}

.switch-list {
  display: grid;
  gap: 2px;
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.switch-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.switch-row:last-child {
  border-bottom: 0;
}

.switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: #d9dbd5;
  cursor: pointer;
  transition: background 180ms ease;
}

.switch-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
  content: "";
  transition: transform 180ms ease;
}

.switch input:checked + .switch-track {
  background: var(--primary);
}

.switch input:checked + .switch-track::after {
  transform: translateX(18px);
}

.switch input:focus-visible + .switch-track {
  outline: 3px solid rgba(216, 167, 93, 0.55);
  outline-offset: 2px;
}

#auth-root:empty {
  display: none;
}

.auth-view {
  background: #102f29;
}

.auth-view .app-shell,
.auth-view #sheet-root {
  display: none;
}

.auth-screen {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 460px;
  min-height: 100dvh;
  margin: 0 auto;
  flex-direction: column;
  overflow: hidden;
  background: #f7f5ef;
}

.auth-hero {
  position: relative;
  min-height: 310px;
  padding: calc(34px + env(safe-area-inset-top)) 28px 72px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(216, 167, 93, 0.24), transparent 35%),
    linear-gradient(145deg, #173f35, #0c2a24 72%);
}

.auth-hero-slides {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-hero-slides { z-index: 0; }

.auth-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  object-position: center;
  transition: opacity 900ms ease;
}

.auth-hero-slide.is-active { opacity: 1; }

.auth-hero::before,
.auth-hero::after {
  z-index: 1;
  pointer-events: none;
}

.auth-hero::before,
.auth-hero::after {
  position: absolute;
  border: 1px solid rgba(216, 167, 93, 0.18);
  border-radius: 50%;
  content: "";
}

.auth-hero::before {
  top: -110px;
  right: -105px;
  width: 300px;
  height: 300px;
}

.auth-hero::after {
  top: -65px;
  right: -60px;
  width: 210px;
  height: 210px;
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand .brand-monogram {
  width: 48px;
  height: 48px;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-brand-copy {
  display: grid;
  gap: 3px;
}

.auth-brand-copy strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.auth-brand-copy span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.auth-welcome {
  position: relative;
  z-index: 1;
  margin-top: 42px;
}

.auth-welcome h1 {
  max-width: 300px;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.auth-welcome p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 1.8;
}

.auth-eyebrow {
  color: var(--accent) !important;
  font-size: 9px !important;
  letter-spacing: 0.22em;
}

.auth-panel {
  position: relative;
  z-index: 2;
  flex: 1;
  margin-top: -34px;
  padding: 14px 24px calc(28px + env(safe-area-inset-bottom));
  border-radius: 30px 30px 0 0;
  background: #f7f5ef;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid #e4e4dc;
  border-radius: 14px;
  background: #ebeae3;
}

.auth-tab {
  padding: 11px;
  border-radius: 10px;
  color: var(--text-sub);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.auth-tab.active {
  color: var(--primary);
  background: #fff;
  box-shadow: 0 4px 14px rgba(18, 60, 51, 0.08);
}

.auth-form-wrap {
  padding-top: 28px;
  animation: fade-up 220ms ease both;
}

.auth-form-heading {
  margin-bottom: 24px;
}

.auth-form-heading h2 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
}

.auth-form-heading p {
  margin-top: 7px;
  color: var(--text-sub);
  font-size: 12px;
}

.auth-form .form-grid {
  gap: 18px;
}

.auth-form .field input {
  min-height: 50px;
  background: #fff;
}

.auth-form .primary-button {
  min-height: 50px;
  margin-top: 4px;
}

.auth-forgot-button {
  display: block;
  margin: -4px auto 0;
  padding: 6px 12px;
  color: var(--primary);
  background: transparent;
  font-size: 12px;
  font-weight: 650;
}

.auth-switch-copy {
  margin-top: 20px;
  color: var(--text-sub);
  text-align: center;
  font-size: 12px;
}

.auth-footer-text {
  margin-top: 18px;
  color: var(--text-sub);
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.auth-switch-copy button {
  padding: 4px;
  color: var(--primary);
  background: transparent;
  font-weight: 600;
}

.auth-footer {
  margin-top: 28px;
  color: #969a93;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.08em;
}

@media (min-width: 901px) and (min-height: 600px) {
  .admin-view.auth-view {
    padding: 0;
    background: #0c2a24;
  }

  .admin-auth-screen {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(420px, 0.7fr);
    max-width: none;
    min-height: 100dvh;
  }

  .admin-auth-screen .auth-hero {
    display: flex;
    min-height: 100dvh;
    padding: 56px 64px;
    flex-direction: column;
  }

  .admin-auth-screen .auth-brand .brand-monogram {
    width: 56px;
    height: 56px;
    font-size: 17px;
  }

  .admin-auth-screen .auth-brand-copy strong {
    font-size: 19px;
  }

  .admin-auth-screen .auth-brand-copy span {
    font-size: 10px;
  }

  .admin-auth-screen .auth-welcome {
    max-width: 590px;
    margin: auto 0;
    padding: 72px 0;
  }

  .admin-auth-screen .auth-welcome h1 {
    max-width: 590px;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.22;
  }

  .admin-auth-screen .auth-welcome > p:last-child {
    max-width: 430px;
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.9;
  }

  .admin-auth-screen .auth-panel {
    display: flex;
    min-height: 100dvh;
    margin: 0;
    padding: 64px clamp(36px, 5vw, 76px) 36px;
    border-radius: 0;
    flex-direction: column;
    justify-content: center;
    box-shadow: -30px 0 80px rgba(5, 29, 23, 0.08);
  }

  .admin-auth-screen .auth-form-wrap {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    padding: 0;
  }

  .admin-auth-screen .auth-form-heading h2 {
    font-size: 28px;
  }

  .admin-auth-screen .auth-form-heading p {
    font-size: 13px;
  }

  .admin-auth-screen .auth-footer {
    width: 100%;
    max-width: 390px;
    margin: 56px auto 0;
  }
}

.service-content-image {
  display: block;
  width: 100%;
  height: 260px;
  margin: 0 0 12px;
  border-radius: 0;
  object-fit: cover;
}

.service-custom-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
}

.chat-messages {
  display: flex;
  max-height: 360px;
  padding: 14px;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  border-radius: 16px;
  background: var(--surface-soft);
}

.chat-message {
  align-self: flex-start;
  max-width: 86%;
}

.chat-message strong,
.chat-message small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.chat-message p {
  margin: 5px 0;
  padding: 10px 12px;
  border-radius: 4px 14px 14px 14px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.chat-message.own {
  align-self: flex-end;
  text-align: right;
}

.chat-message.own p {
  color: #fff;
  background: var(--primary);
  border-radius: 14px 4px 14px 14px;
  text-align: left;
}

.chat-form {
  display: grid;
  margin-top: 14px;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.chat-form input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.chat-form input:focus {
  border-color: var(--primary);
}

.chat-form .primary-button {
  width: auto;
  min-height: 46px;
  padding: 0 18px;
}

.logout-button {
  display: flex;
  width: 100%;
  min-height: 50px;
  margin-top: 24px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(184, 74, 66, 0.14);
  border-radius: 15px;
  color: var(--danger);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
}

.logout-button:hover {
  background: #fff;
}

.toast-root {
  position: fixed;
  z-index: 200;
  top: calc(18px + env(safe-area-inset-top));
  left: 50%;
  width: min(calc(100% - 40px), 420px);
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  color: #fff;
  background: rgba(18, 60, 51, 0.94);
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  line-height: 1.5;
  animation: toast-in 240ms ease both;
  backdrop-filter: blur(12px);
}

.toast.error {
  background: rgba(151, 60, 53, 0.96);
}

.toast.leaving {
  animation: toast-out 200ms ease both;
}

.notice-list {
  display: grid;
  gap: 10px;
}

.notice-item {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.notice-item strong {
  display: block;
  font-size: 13px;
}

.notice-item p {
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 11px;
  line-height: 1.6;
}

.notice-item time {
  display: block;
  margin-top: 8px;
  color: #a0a59f;
  font-size: 10px;
}

.guide-steps {
  display: grid;
  gap: 18px;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.guide-number {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--primary);
  background: var(--primary-soft);
  font-family: Georgia, serif;
  font-size: 14px;
}

.guide-step strong {
  display: block;
  font-size: 13px;
}

.guide-step p {
  margin-top: 5px;
  color: var(--text-sub);
  font-size: 11px;
  line-height: 1.7;
}

.invite-poster {
  position: relative;
  overflow: hidden;
  padding: 28px 22px;
  border-radius: 22px 22px 22px 7px;
  color: #f9efd9;
  background: var(--primary);
  text-align: center;
}

.invite-poster::before,
.invite-poster::after {
  position: absolute;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(216, 167, 93, 0.25);
  border-radius: 50%;
  content: "";
}

.invite-poster::before { top: -70px; left: -50px; }
.invite-poster::after { right: -50px; bottom: -80px; }

.invite-poster .poster-kicker {
  color: #d9bc8a;
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 2px;
}

.invite-poster h3 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
}

.invite-poster p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.invite-code {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 12px 18px;
  border: 1px dashed rgba(238, 216, 180, 0.45);
  border-radius: 12px;
  color: #eed8b4;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: 2px;
}

.invite-poster-actions {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  padding-top: 18px;
  border-top-color: rgba(238, 216, 180, 0.18);
}

.invite-poster-actions .secondary-button,
.invite-poster-actions .primary-button {
  min-height: 44px;
  padding: 10px 12px;
  border-color: rgba(238, 216, 180, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  font-size: 12px;
}

.invite-poster-actions .primary-button {
  border-color: #d8a75d;
  color: var(--primary);
  background: #d8a75d;
}

.invite-reward-rule {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--accent-soft);
}

.invite-reward-rule strong {
  color: var(--primary);
  font-size: 13px;
}

.invite-reward-rule p {
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 11px;
  line-height: 1.6;
}

.invite-pending {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -8px 0 16px;
  color: var(--primary);
  font-size: 11px;
}

.invite-stats {
  margin: 14px 0 20px;
  color: var(--text-sub);
  font-size: 11px;
  text-align: center;
}

.success-state {
  padding: 12px 0 4px;
  text-align: center;
}

.success-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 24px 24px 24px 8px;
  color: #fff;
  background: var(--success);
  box-shadow: 0 12px 28px rgba(38, 122, 91, 0.22);
}

.success-state h3 {
  font-family: var(--font-display);
  font-size: 22px;
}

.success-state p {
  margin-top: 9px;
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.8;
}

.detail-list {
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-row span {
  color: var(--text-sub);
}

.detail-row strong {
  text-align: right;
  font-weight: 500;
}

.bound-bank-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bound-bank-delete {
  color: var(--danger);
}

.delete-summary {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 14px;
  color: var(--text-sub);
  background: #f2eee8;
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.delete-summary strong {
  color: var(--text);
}

.loading-screen {
  display: grid;
  gap: 18px;
  padding-top: 4px;
}

.skeleton {
  overflow: hidden;
  border-radius: 18px;
  background: #e7e6df;
}

.skeleton::after {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

.skeleton-hero { height: 268px; border-radius: 26px; }
.skeleton-line { width: 55%; height: 24px; }
.skeleton-block { height: 150px; }

.noscript {
  position: fixed;
  z-index: 300;
  inset: 20px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: var(--primary);
  text-align: center;
}

.reveal {
  animation: fade-up 340ms both;
}

.reveal:nth-child(2) { animation-delay: 45ms; }
.reveal:nth-child(3) { animation-delay: 90ms; }
.reveal:nth-child(4) { animation-delay: 135ms; }
.reveal:nth-child(5) { animation-delay: 180ms; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(-8px); }
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

@media (min-width: 520px) and (min-height: 600px) {
  body {
    padding: 0;
  }

  .app-shell {
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .app-header {
    padding-top: 24px;
  }

  .bottom-nav {
    bottom: 0;
    border-radius: 0;
  }

  .sheet-backdrop {
    align-items: center;
    padding: 24px;
  }

  .bottom-sheet {
    max-height: calc(100dvh - 48px);
    border-radius: 28px;
  }
}

@media (max-width: 360px) {
  .app-header,
  .app-content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-banner {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero-title {
    font-size: 27px;
  }

  .bank-card {
    padding: 18px;
  }

  .bank-card-number {
    font-size: 16px;
    letter-spacing: 1.2px;
  }

  .service-item {
    font-size: 10px;
  }
}

/* 完整管理后台 */
.admin-view {
  padding: 0;
  background: #f1f4f2;
}

.admin-view .app-shell {
  min-height: 100dvh;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #f1f4f2;
  box-shadow: none;
}

.admin-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  max-width: none;
  padding: 18px 32px;
  border-bottom: 1px solid rgba(18, 60, 51, 0.09);
  background: rgba(248, 250, 248, 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  max-width: 1500px;
  min-height: calc(100dvh - 83px);
  margin: 0 auto;
}

.admin-sidebar {
  padding: 30px 18px;
  border-right: 1px solid rgba(18, 60, 51, 0.08);
  background: rgba(255, 255, 255, 0.38);
}

.admin-nav-label {
  margin: 0 12px 12px;
  color: #929a95;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
}

.admin-nav {
  display: grid;
  gap: 7px;
}

.admin-nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 13px;
  color: #65716b;
  background: transparent;
  font-size: 13px;
  text-align: left;
  transition: color 160ms, background 160ms, transform 160ms;
}

.admin-nav-item:hover {
  color: var(--primary);
  background: rgba(18, 60, 51, 0.06);
  transform: translateX(2px);
}

.admin-nav-item > span {
  flex: 1;
}

.admin-nav-item.active {
  color: #f7f2e8;
  background: var(--primary);
  box-shadow: 0 8px 20px rgba(18, 60, 51, 0.15);
}

.admin-sidebar-note {
  margin-top: 36px;
  padding: 18px;
  border: 1px solid rgba(18, 60, 51, 0.08);
  border-radius: 16px;
  color: var(--primary);
  background: rgba(227, 236, 231, 0.55);
}

.admin-sidebar-note strong {
  display: block;
  margin-top: 12px;
  font-size: 12px;
}

.admin-sidebar-note p {
  margin-top: 7px;
  color: var(--text-sub);
  font-size: 10px;
  line-height: 1.7;
}

.admin-main {
  width: 100%;
  max-width: none;
  padding: 36px;
}

.admin-heading {
  margin-bottom: 26px;
}

.admin-heading-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.admin-auto-refresh-toggle {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 600;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.admin-auto-refresh-toggle small {
  color: var(--text-sub);
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap;
}

.admin-auto-refresh-toggle.is-active {
  border-color: rgba(38, 122, 91, 0.18);
  color: var(--primary);
  background: var(--primary-soft);
}

.admin-auto-refresh-toggle.is-active > .icon {
  color: var(--success);
}

.admin-refresh {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.75);
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-metric {
  min-width: 0;
  padding: 21px;
  border: 1px solid rgba(18, 60, 51, 0.08);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.admin-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-sub);
  font-size: 11px;
}

.admin-metric-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--primary);
  background: var(--primary-soft);
}

.admin-metric > strong {
  display: block;
  margin-top: 13px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
}

.admin-metric > p {
  margin-top: 8px;
  color: #89918c;
  font-size: 10px;
  line-height: 1.5;
}

.admin-metric.deep {
  color: #fff;
  background: linear-gradient(145deg, #194b3f, #0d3129);
}

.admin-metric.deep .admin-metric-top,
.admin-metric.deep > p {
  color: rgba(255, 255, 255, 0.65);
}

.admin-metric.deep .admin-metric-icon {
  color: #f4d9aa;
  background: rgba(255, 255, 255, 0.10);
}

.admin-section-block {
  margin-top: 28px;
}

.admin-section-heading,
.admin-panel-heading,
.admin-user-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-section-heading {
  margin-bottom: 14px;
}

.admin-section-heading h2,
.admin-panel-heading h2,
.admin-user-tools h2 {
  font-size: 15px;
  font-weight: 600;
}

.admin-section-heading p,
.admin-panel-heading p,
.admin-user-tools p {
  margin-top: 5px;
  color: var(--text-sub);
  font-size: 11px;
  line-height: 1.6;
}

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

.admin-leaderboard-panel {
  min-width: 0;
  padding: 24px;
}

.admin-leaderboard-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.admin-leaderboard-footer {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.admin-leaderboard-footer .admin-search-count {
  padding: 0;
  border-top: 0;
}

.admin-leaderboard-footer .admin-payment-pagination {
  justify-content: space-between;
}

.admin-leaderboard-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #eef0ec;
}

.admin-leaderboard-rank {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: var(--text-sub);
  background: #f1f3ef;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.admin-leaderboard-rank.is-top {
  color: #80551e;
  background: var(--accent-soft);
}

.admin-leaderboard-user,
.admin-leaderboard-value {
  display: grid;
  gap: 5px;
}

.admin-leaderboard-user {
  min-width: 0;
}

.admin-leaderboard-user strong {
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  text-overflow: ellipsis;
}

.admin-leaderboard-user span,
.admin-leaderboard-value span {
  color: var(--text-sub);
  font-size: 10px;
}

.admin-leaderboard-value {
  text-align: right;
}

.admin-leaderboard-value strong {
  font-size: 14px;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .admin-leaderboard-grid {
    grid-template-columns: 1fr;
  }
}

.admin-checkin-daily-table {
  min-width: 0;
}

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

.admin-payment-summary article {
  padding: 21px;
  border: 1px solid rgba(18, 60, 51, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.90);
}

.admin-payment-summary article > span,
.admin-payment-summary article > small {
  display: block;
  color: var(--text-sub);
  font-size: 11px;
}

.admin-payment-summary article > strong {
  display: block;
  margin: 11px 0 7px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
}

.admin-payment-summary article.featured {
  border-color: #d7c39e;
  background: linear-gradient(135deg, #fbf6eb, #f1e4cd);
}

.admin-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.admin-chart-panel {
  margin-top: 20px;
  padding: 23px;
}

.admin-chart-grid .admin-chart-panel {
  margin-top: 0;
}

.admin-panel-tag,
.admin-api-status {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 10px;
  font-weight: 600;
}

.admin-bar-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  height: 198px;
  margin-top: 24px;
}

.admin-bar-column {
  display: grid;
  min-width: 0;
  grid-template-rows: 18px minmax(0, 1fr) 20px;
  gap: 7px;
  text-align: center;
}

.admin-bar-value {
  overflow: hidden;
  color: var(--text-sub);
  font-family: var(--font-mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-bar-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f1f4f1;
}

.admin-bar {
  width: min(28px, 64%);
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #4f8574, var(--primary));
  box-shadow: 0 5px 12px rgba(18, 60, 51, 0.12);
  transition: height 260ms ease;
}

.admin-bar-label {
  color: var(--text-sub);
  font-size: 10px;
}

.admin-config-form {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.admin-config-section {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-bottom: 1px solid var(--border);
}

.admin-config-section .admin-panel-heading {
  margin-bottom: 3px;
}

.admin-config-form > .form-error {
  margin: 18px 28px 0;
}

.admin-config-form > .admin-form-footer {
  padding: 20px 28px 26px;
}

.admin-claim-config {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
}

.admin-claim-preview {
  overflow: hidden;
  min-height: 160px;
  border-radius: 16px;
  background: var(--primary-soft);
}

.admin-claim-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-claim-fields {
  display: grid;
  gap: 14px;
}

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

.admin-invite-rule-list {
  display: grid;
  gap: 14px;
}

.admin-invite-rule-row {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(248, 248, 244, 0.72);
}

.admin-invite-rule-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 12px;
}

.admin-invite-rule-heading button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  color: var(--danger);
  background: transparent;
  font-size: 11px;
}

.admin-invite-add {
  justify-self: start;
}

.admin-user-panel {
  padding: 0;
  overflow: hidden;
}

.admin-user-tools {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}

.admin-user-tools h2 span {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  margin-left: 5px;
  place-items: center;
  border-radius: 8px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 11px;
}

.admin-search {
  display: flex;
  width: 250px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-sub);
  background: #f8f9f7;
}

.admin-search input {
  width: 100%;
  min-width: 0;
  padding: 11px 0;
  border: 0;
  color: var(--text);
  background: transparent;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 950px;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  padding: 12px 16px;
  color: #828b86;
  background: #f7f8f6;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.admin-table td {
  padding: 16px;
  border-top: 1px solid #eef0ec;
  font-size: 11px;
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: #fbfcfa;
}

.admin-user-cell {
  display: grid;
  gap: 5px;
}

.admin-user-cell strong {
  font-size: 12px;
  font-weight: 600;
}

.admin-user-cell span,
.admin-date,
.admin-muted {
  color: var(--text-sub);
  font-size: 10px;
}

.admin-money,
.admin-order-no {
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

.admin-user-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--success);
  background: #e8f3ed;
  font-size: 10px;
  white-space: nowrap;
}

.admin-user-status > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.admin-user-status.banned {
  color: var(--danger);
  background: #faece9;
}

.admin-claim-status {
  color: #94703a;
  font-size: 10px;
}

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.admin-row-actions button {
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 10px;
  white-space: nowrap;
}

.admin-row-actions button.danger {
  color: var(--danger);
  background: #faece9;
}

.admin-search-count {
  padding: 12px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-sub);
  font-size: 10px;
}

.admin-payment-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 12px 24px;
  border-top: 1px solid var(--border);
}

.admin-payment-footer .admin-search-count {
  padding: 0;
  border-top: 0;
}

.admin-payment-pagination,
.admin-payment-page-size-label,
.admin-payment-page-actions {
  display: flex;
  align-items: center;
}

.admin-payment-pagination {
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-sub);
  font-size: 11px;
}

.admin-payment-page-size-label {
  gap: 6px;
}

.admin-payment-page-size-label select {
  padding: 6px 22px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  font: inherit;
}

.admin-payment-page-actions {
  gap: 6px;
}

.admin-payment-page-actions button {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 11px;
}

.admin-payment-page-actions button:disabled {
  color: var(--text-sub);
  background: #f4f5f3;
  cursor: not-allowed;
  opacity: 0.65;
}

.admin-table-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 34px;
  color: var(--text-sub);
}

.admin-table-empty strong {
  color: var(--text);
}

.admin-balance-log,
.admin-api-panel,
.admin-payment-list {
  margin-top: 22px;
}

.admin-log-list {
  margin-top: 18px;
  border-top: 1px solid var(--border);
}

.admin-log-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #eef0ec;
}

.admin-log-item:last-child {
  border-bottom: 0;
}

.admin-log-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: var(--success);
  background: #e8f3ed;
}

.admin-log-item > div {
  display: grid;
  flex: 1;
  gap: 4px;
}

.admin-log-item > div span {
  color: var(--text-sub);
  font-size: 10px;
}

.admin-log-item > strong {
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 12px;
}

.admin-inline-empty {
  margin-top: 18px;
  padding: 24px;
  border-radius: 12px;
  color: var(--text-sub);
  background: #f7f8f6;
  font-size: 11px;
  text-align: center;
}

.admin-api-status {
  color: #8b6735;
  background: var(--accent-soft);
}

.admin-api-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 16px;
}

.admin-api-grid > div {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8f9f7;
}

.admin-api-grid span {
  color: var(--text-sub);
  font-size: 10px;
}

.admin-api-grid code {
  overflow-wrap: anywhere;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 11px;
}

.admin-balance-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px;
  border-radius: 14px;
  color: var(--primary);
  background: var(--primary-soft);
}

.admin-balance-current strong {
  font-family: var(--font-display);
  font-size: 24px;
}

.admin-view .sheet-backdrop {
  align-items: center;
  padding: 24px;
}

.admin-view .bottom-sheet {
  width: min(560px, 100%);
  max-height: calc(100dvh - 48px);
  border-radius: 24px;
}

.admin-view .sheet-handle {
  display: none;
}

/* 首页欢迎弹窗与礼赠领卡 */
.home-popup-backdrop.app-notice-backdrop {
  z-index: 220;
}

.app-notice-subtitle {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.7;
}

.app-notice-body {
  position: relative;
}

.app-notice-popup .home-popup-icon.is-error {
  background: var(--danger);
}

.home-popup-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 28, 22, 0.56);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: backdrop-in 200ms both;
}

.home-popup {
  position: relative;
  width: min(370px, 100%);
  overflow: hidden;
  padding: 34px 28px 26px;
  border: 1px solid rgba(216, 167, 93, 0.30);
  border-radius: 26px 26px 26px 8px;
  background: linear-gradient(155deg, #fffdf8, #f5efe2);
  box-shadow: 0 28px 80px rgba(8, 28, 22, 0.28);
  text-align: center;
  animation: fade-up 260ms both;
}

.home-popup::before {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(216, 167, 93, 0.23);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 28px rgba(216, 167, 93, 0.05);
}

.home-popup-close {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--text-sub);
  background: rgba(18, 60, 51, 0.06);
}

.home-popup-icon {
  display: grid;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 20px 20px 20px 7px;
  color: #f4ddb5;
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(18, 60, 51, 0.18);
}

.home-popup-image {
  display: block;
  width: calc(100% + 56px);
  height: 220px;
  max-width: none;
  max-height: 220px;
  margin: -34px -28px 18px;
  border-radius: 0;
  object-fit: cover;
}

.home-popup-eyebrow {
  color: #9b7745;
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: 2px;
}

.home-popup h2 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
}

.home-popup-content {
  margin: 15px auto 23px;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.gift-claim-section {
  margin-right: -20px;
  margin-left: -20px;
}

.gift-claim-section .section-heading {
  margin-bottom: 14px;
}

.gift-claim-button {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border-radius: 0;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(18, 60, 51, 0.16);
  text-align: left;
}

.gift-claim-button img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 400ms ease;
}

.gift-claim-button:hover img {
  transform: scale(1.025);
}

.gift-claim-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  background: linear-gradient(180deg, transparent 30%, rgba(6, 29, 23, 0.86));
}

.gift-claim-copy {
  display: grid;
  gap: 5px;
}

.gift-claim-copy strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.gift-claim-copy span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 10px;
}

.gift-claim-action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #3b3327;
  background: #f0d5a6;
  font-size: 11px;
  font-weight: 600;
}

.gift-claim-button.is-claimed .gift-claim-action {
  color: var(--primary);
  background: #fff;
}

.payment-pending-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #ead6ae;
  border-radius: 14px;
  background: #fff8e9;
}

.payment-pending-notice strong {
  color: #795018;
  font-size: 12px;
}

.payment-pending-notice p {
  margin-top: 4px;
  color: #8d7350;
  font-size: 10px;
  line-height: 1.5;
}

.payment-pending-notice .secondary-button {
  flex: 0 0 auto;
  padding: 9px 11px;
  font-size: 11px;
}

.payment-checkout-amount {
  padding: 22px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #173f35, #0c2a24);
}

.payment-checkout-amount > span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.payment-checkout-amount strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 32px;
}

.payment-checkout-amount p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  line-height: 1.6;
}

.payment-launching-popup {
  width: min(340px, calc(100vw - 48px));
  padding: 36px 28px 30px;
  text-align: center;
}

.payment-launching-popup h2 {
  margin: 20px 0 8px;
  font-size: 20px;
}

.payment-launching-popup p {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

.payment-launching-spinner {
  display: block;
  width: 38px;
  height: 38px;
  margin: 0 auto;
  border: 3px solid rgba(18, 60, 51, 0.14);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: payment-launching-spin 750ms linear infinite;
}

@keyframes payment-launching-spin {
  to { transform: rotate(360deg); }
}

.payment-channel-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.payment-channel-choice {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 70px;
  align-items: center;
  flex-direction: row;
  gap: 10px;
  padding: 14px 36px 14px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.payment-channel-choice:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.payment-channel-choice:disabled {
  transform: none;
}

.payment-channel-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--primary);
  font-size: 20px;
  font-weight: 700;
}

.channel-1017 .payment-channel-mark,
.channel-8001 .payment-channel-mark,
.channel-6666 .payment-channel-mark { background: #07c160; }

.channel-1018 .payment-channel-mark,
.channel-8000 .payment-channel-mark,
.channel-8888 .payment-channel-mark { background: #1677ff; }

.payment-channel-brand {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: none;
}

.payment-channel-copy {
  display: grid;
  width: auto;
  min-width: 0;
  flex: 1;
  gap: 4px;
}

.payment-channel-copy strong { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.payment-channel-price { color: var(--primary); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.payment-channel-copy small { display: none; color: var(--text-sub); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.payment-channel-choice > .icon { position: absolute; top: 25px; right: 12px; width: 16px; height: 16px; color: var(--text-sub); }

.admin-channel-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.admin-channel-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.admin-channel-toggle {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}

.admin-channel-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.admin-channel-option input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
}

.admin-channel-option .admin-channel-display-name,
.admin-channel-option .admin-channel-product-code,
.admin-channel-option .admin-channel-amount {
  width: 104px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.admin-channel-option span {
  display: grid;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
}

.admin-channel-option small {
  color: var(--text-sub);
  font-size: 10px;
  font-weight: 400;
}

.admin-channel-order-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.admin-channel-order-actions button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--primary);
  background: #fff;
  font-size: 11px;
  font-weight: 600;
}

.admin-channel-order-actions button:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.admin-preset-add {
  justify-self: start;
}

.admin-section-save {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.admin-section-save .secondary-button {
  min-height: 38px;
  padding: 0 16px;
  font-size: 12px;
}

.admin-announcement-image-preview {
  display: block;
  width: 100%;
}

.admin-announcement-image-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.admin-announcement-empty {
  display: grid;
  min-height: 150px;
  place-items: center;
  gap: 8px;
  color: var(--text-sub);
  background: #fafaf7;
  font-size: 11px;
}

.admin-announcement-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.hero-preset-option {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  text-align: left;
  transition: border-color 180ms ease, transform 180ms ease;
}

.hero-preset-option:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.hero-preset-option img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--primary-soft);
}

.hero-preset-option span {
  display: block;
  padding: 10px 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.auth-hero-rotation-settings {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px);
  gap: 16px;
  align-items: center;
}

.auth-hero-grid-heading {
  display: flex;
  justify-content: space-between;
  color: var(--text-sub);
  font-size: 11px;
}

.auth-hero-count {
  color: var(--primary);
  font-weight: 700;
}

.auth-hero-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.auth-hero-empty {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--text-sub);
  background: #fafaf7;
  text-align: center;
  font-size: 12px;
}

.auth-hero-image-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.auth-hero-image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: var(--primary-soft);
}

.auth-hero-image-button img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.auth-hero-image-button > span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #fff;
  background: rgba(11, 46, 39, 0.86);
  font-size: 11px;
  font-weight: 600;
}

.auth-hero-image-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.auth-hero-image-actions {
  padding: 10px 12px;
  color: var(--text-sub);
  font-size: 11px;
}

.small-action {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  color: var(--primary);
  background: var(--primary-soft);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.small-action.danger-text {
  color: var(--danger);
  background: var(--danger-soft);
}

@media (max-width: 1080px) {
  .admin-layout {
    grid-template-columns: 196px minmax(0, 1fr);
  }

  .admin-main {
    padding: 28px 24px 48px;
  }

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

  .admin-chart-grid,
  .admin-api-grid {
    grid-template-columns: 1fr;
  }

  .admin-chart-grid {
    gap: 0;
  }

  .admin-chart-grid .admin-chart-panel + .admin-chart-panel {
    margin-top: 20px;
  }
}

@media (max-width: 900px) {
  .admin-topbar {
    padding: 15px 18px;
  }

  .admin-layout {
    display: block;
  }

  .admin-sidebar {
    padding: 12px 16px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(18, 60, 51, 0.08);
  }

  .admin-nav {
    display: flex;
    min-width: 450px;
    gap: 6px;
  }

  .admin-nav-item {
    flex: 1;
    justify-content: center;
    padding: 11px 12px;
    white-space: nowrap;
  }

  .admin-nav-item > .icon-sm,
  .admin-nav-label,
  .admin-sidebar-note {
    display: none;
  }

  .admin-main {
    padding: 26px 16px 44px;
  }

  .admin-heading {
    align-items: center;
  }

  .admin-heading h1 {
    font-size: 27px;
  }

  .admin-payment-summary {
    grid-template-columns: 1fr;
  }

  .admin-claim-config {
    grid-template-columns: 1fr;
  }

  .admin-claim-preview {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .admin-three-fields {
    grid-template-columns: 1fr;
  }

  .admin-user-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-search {
    width: 100%;
  }

  .admin-view .sheet-backdrop {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .admin-brand div span,
  .admin-topbar .admin-status {
    display: none;
  }

  .admin-preview-link {
    padding: 9px 11px;
  }

  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-heading-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .admin-refresh {
    padding: 10px;
    font-size: 0;
  }

  .admin-metric-grid {
    gap: 10px;
  }

  .admin-metric {
    padding: 16px;
  }

  .admin-metric > strong {
    font-size: 23px;
  }

  .admin-metric-top {
    align-items: flex-start;
  }

  .admin-metric-icon {
    width: 29px;
    height: 29px;
  }

  .admin-invite-rule-row .admin-three-fields {
    grid-template-columns: 1fr;
  }

  .admin-config-section {
    padding: 20px;
  }

  .admin-config-form > .admin-form-footer {
    padding: 18px 20px 22px;
  }

  .admin-panel {
    padding: 20px;
  }

  .admin-user-panel {
    padding: 0;
  }

  .gift-claim-overlay {
    padding: 17px;
  }

  .gift-claim-copy strong {
    font-size: 15px;
  }

  .gift-claim-copy span {
    display: none;
  }
}

/* 全站手机、安全区与横屏适配 */
.field,
.form-grid,
.admin-panel-heading > div,
.admin-section-heading > div,
.profile-asset-values > button {
  min-width: 0;
}

.home-popup {
  max-height: calc(100dvh - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.home-popup-content,
.admin-form-note,
.payment-pending-notice {
  overflow-wrap: anywhere;
}

.admin-table-wrap {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

@media (max-width: 900px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .admin-topbar {
    padding-top: calc(15px + env(safe-area-inset-top));
    padding-right: calc(18px + env(safe-area-inset-right));
    padding-left: calc(18px + env(safe-area-inset-left));
  }

  .admin-main {
    padding-right: calc(16px + env(safe-area-inset-right));
    padding-bottom: calc(44px + env(safe-area-inset-bottom));
    padding-left: calc(16px + env(safe-area-inset-left));
  }

  .admin-sidebar {
    padding-right: calc(16px + env(safe-area-inset-right));
    padding-left: calc(16px + env(safe-area-inset-left));
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .admin-sidebar::-webkit-scrollbar {
    display: none;
  }

  .admin-nav {
    min-width: max-content;
  }

  .admin-nav-item {
    width: auto;
    min-width: 76px;
    flex: 0 0 auto;
  }

  .auth-hero-rotation-settings {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .home-popup-backdrop {
    padding: calc(12px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left));
  }

  .home-popup {
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 30px 22px 22px;
  }

  .admin-brand {
    min-width: 0;
    gap: 8px;
  }

  .admin-brand-mark {
    width: 40px;
    height: 40px;
  }

  .admin-brand strong {
    font-size: 13px;
  }

  .admin-topbar-actions {
    flex: 0 0 auto;
    gap: 8px;
  }

  .admin-preview-link {
    width: 42px;
    height: 42px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .admin-section-heading,
  .admin-panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 360px) {
  .app-header,
  .app-content {
    padding-right: calc(16px + env(safe-area-inset-right));
    padding-left: calc(16px + env(safe-area-inset-left));
  }

  .bottom-nav {
    padding-right: calc(10px + env(safe-area-inset-right));
    padding-left: calc(10px + env(safe-area-inset-left));
  }

  .nav-item {
    min-width: 0;
    gap: 4px;
    padding-right: 3px;
    padding-left: 3px;
    font-size: 10px;
  }

  .nav-icon {
    width: 34px;
  }

  .nav-card .nav-icon {
    width: 44px;
  }

  .member-strip {
    margin-right: 8px;
    margin-left: 8px;
    padding: 14px 4px;
  }

  .member-stat {
    min-width: 0;
    padding: 0 9px;
  }

  .member-stat strong {
    overflow-wrap: anywhere;
    font-size: 13px;
  }

  .service-grid {
    gap: 4px;
  }

  .service-item {
    gap: 7px;
  }

  .service-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px 14px 14px 5px;
  }

  .card-asset-row {
    padding: 12px 9px;
  }

  .card-asset-row > div + div {
    padding-left: 7px;
  }

  .card-asset-row strong {
    font-size: 12px;
  }

  .card-purchase-row {
    flex-wrap: wrap;
  }

  .profile-asset-values {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-asset-values strong {
    overflow-wrap: anywhere;
  }

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

  .bottom-sheet {
    padding-right: calc(16px + env(safe-area-inset-right));
    padding-left: calc(16px + env(safe-area-inset-left));
  }

  .payment-pending-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-pending-notice .text-button {
    align-self: flex-start;
  }

  .auth-hero {
    padding-right: calc(22px + env(safe-area-inset-right));
    padding-left: calc(22px + env(safe-area-inset-left));
  }

  .auth-panel {
    padding-right: calc(20px + env(safe-area-inset-right));
    padding-left: calc(20px + env(safe-area-inset-left));
  }

  .home-popup h2 {
    font-size: 23px;
  }

  .admin-topbar {
    padding-right: calc(12px + env(safe-area-inset-right));
    padding-left: calc(12px + env(safe-area-inset-left));
  }

  .admin-main {
    padding-right: calc(12px + env(safe-area-inset-right));
    padding-left: calc(12px + env(safe-area-inset-left));
  }

  .admin-heading-actions {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .admin-auto-refresh-toggle {
    min-width: 0;
    flex: 1;
    justify-content: center;
    gap: 6px;
    padding: 0 9px;
  }

  .admin-auto-refresh-toggle small {
    font-size: 9px;
  }

  .admin-refresh {
    width: 42px;
    height: 46px;
    flex: 0 0 42px;
    padding: 0;
  }

  .admin-panel,
  .admin-config-section,
  .admin-chart-panel {
    padding: 16px;
  }

  .admin-config-form > .admin-form-footer {
    padding: 16px;
  }

  .admin-bar-chart {
    gap: 6px;
  }
}

@media (max-width: 340px) {
  .admin-metric-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  input,
  select,
  textarea {
    font-size: 16px;
  }

  body {
    padding: 0;
  }

  .app-shell,
  .auth-screen {
    max-width: 720px;
  }

  .app-shell {
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .app-header {
    padding-top: calc(12px + env(safe-area-inset-top));
    padding-right: calc(20px + env(safe-area-inset-right));
    padding-left: calc(20px + env(safe-area-inset-left));
  }

  .app-content {
    padding-right: calc(20px + env(safe-area-inset-right));
    padding-left: calc(20px + env(safe-area-inset-left));
  }

  .bottom-nav {
    bottom: 0;
    max-width: 720px;
    padding-right: calc(20px + env(safe-area-inset-right));
    padding-left: calc(20px + env(safe-area-inset-left));
    border-radius: 0;
  }

  .auth-hero {
    min-height: 220px;
    padding: calc(22px + env(safe-area-inset-top)) calc(28px + env(safe-area-inset-right)) 58px calc(28px + env(safe-area-inset-left));
  }

  .hero-content,
  .hero-title {
    max-width: 480px;
  }

  .hero-title {
    font-size: 28px;
  }

  .auth-welcome {
    margin-top: 22px;
  }

  .auth-welcome h1 {
    font-size: 25px;
  }

  .auth-panel {
    padding-right: calc(24px + env(safe-area-inset-right));
    padding-left: calc(24px + env(safe-area-inset-left));
  }

  .bottom-sheet {
    max-height: 94dvh;
  }

  .home-popup {
    max-height: 92dvh;
  }

  .home-popup-image {
    max-height: 140px;
  }
}

.cheque-claim-section {
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 42px 0 22px;
}

.cheque-claim-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 25px;
  border: 1px solid rgba(216, 167, 93, 0.55);
  border-radius: 18px;
  color: #f5dfad;
  background: linear-gradient(135deg, #174c40, #0d332b);
  box-shadow: 0 12px 28px rgba(18, 60, 51, 0.2), inset 0 1px rgba(255, 255, 255, 0.12);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cheque-claim-button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 7px 18px rgba(18, 60, 51, 0.18);
}

.cheque-making {
  padding-top: 4px;
  text-align: center;
}

.cheque-maker {
  position: relative;
  width: 220px;
  height: 148px;
  margin: 8px auto 0;
  overflow: hidden;
  border: 1px solid rgba(216, 167, 93, 0.22);
  border-radius: 24px;
  background: linear-gradient(145deg, #f4f0e5, #e8e5da);
  box-shadow: inset 0 2px 8px rgba(18, 60, 51, 0.06);
}

.cheque-maker-slot {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 28px;
  width: 164px;
  height: 17px;
  border: 1px solid rgba(216, 167, 93, 0.28);
  border-radius: 9px;
  background: #123c33;
  box-shadow: 0 5px 12px rgba(18, 60, 51, 0.16);
}

.cheque-maker-slot span {
  position: absolute;
  inset: 5px 12px;
  border-radius: 4px;
  background: rgba(245, 223, 173, 0.38);
}

.cheque-paper {
  position: absolute;
  z-index: 2;
  top: 29px;
  left: 24px;
  width: 172px;
  height: 96px;
  padding: 13px 14px;
  border: 1px solid #d6ba83;
  border-radius: 8px;
  color: #174c40;
  background: linear-gradient(135deg, #fffef8, #fbf5e7);
  box-shadow: 0 10px 20px rgba(35, 55, 46, 0.16);
  text-align: left;
  animation: cheque-print 3s ease-in-out both;
}

.cheque-paper-brand {
  display: block;
  color: #9a7536;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.cheque-paper-name {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 700;
}

.cheque-paper-line {
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 9px;
  border-radius: 3px;
  background: #ded8c7;
}

.cheque-paper-line.is-long {
  width: 105px;
  margin-top: 12px;
}

.cheque-paper-seal {
  position: absolute;
  right: 15px;
  bottom: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid rgba(183, 61, 48, 0.72);
  border-radius: 50%;
  color: rgba(183, 61, 48, 0.82);
  font-size: 8px;
  font-weight: 800;
  animation: cheque-seal 3s ease-in-out both;
}

.cheque-making p {
  margin: 17px 0 0;
  color: var(--text-sub);
  font-size: 13px;
}

.cheque-making-dots {
  display: inline-flex;
  gap: 6px;
  margin-top: 13px;
}

.cheque-making-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: cheque-dot 1.2s ease-in-out infinite;
}

.cheque-making-dots i:nth-child(2) {
  animation-delay: 160ms;
}

.cheque-making-dots i:nth-child(3) {
  animation-delay: 320ms;
}

@keyframes cheque-print {
  0% { transform: translateY(-58px); opacity: 0.25; }
  28% { opacity: 1; }
  58%, 100% { transform: translateY(8px); opacity: 1; }
}

@keyframes cheque-seal {
  0%, 48% { transform: scale(0) rotate(-20deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(5deg); opacity: 1; }
  70%, 100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes cheque-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.atm-claim-button {
  background: linear-gradient(135deg, #2b5147, #142f29);
}

.atm-verification-required {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 10px 0 20px;
  color: var(--primary);
}

.atm-verification-required p {
  margin: 0;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.8;
}

.atm-card-making {
  padding-top: 4px;
  text-align: center;
}

.atm-machine {
  position: relative;
  z-index: 2;
  width: 230px;
  height: 136px;
  margin: 8px auto 0;
  border: 1px solid rgba(216, 167, 93, 0.32);
  border-radius: 22px;
  background: linear-gradient(145deg, #244a40, #102f28);
  box-shadow: 0 14px 30px rgba(18, 60, 51, 0.2), inset 0 1px rgba(255, 255, 255, 0.12);
}

.atm-machine-brand {
  padding-top: 14px;
  color: #f5dfad;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.atm-machine-brand span {
  color: rgba(245, 223, 173, 0.6);
  font-size: 9px;
}

.atm-machine-screen {
  position: relative;
  width: 142px;
  height: 38px;
  margin: 10px auto 0;
  padding-top: 9px;
  border: 1px solid rgba(245, 223, 173, 0.2);
  border-radius: 7px;
  color: rgba(245, 223, 173, 0.8);
  background: #0b2420;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.atm-machine-screen i {
  position: absolute;
  right: 10px;
  bottom: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e3bc71;
  animation: atm-screen-light 1s ease-in-out infinite;
}

.atm-machine-slot {
  position: absolute;
  bottom: 13px;
  left: 35px;
  width: 160px;
  height: 17px;
  border: 1px solid rgba(216, 167, 93, 0.3);
  border-radius: 9px;
  background: #091f1b;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.22);
}

.atm-machine-slot span {
  position: absolute;
  inset: 5px 12px;
  border-radius: 4px;
  background: rgba(245, 223, 173, 0.32);
}

.atm-card-output {
  position: relative;
  z-index: 1;
  margin: -8px 7px 0;
  perspective: 800px;
}

.atm-bank-card {
  width: 100%;
  min-height: 158px;
  padding: 18px;
  border: 1px solid rgba(216, 167, 93, 0.36);
  border-radius: 18px;
  color: #f7e7bd;
  background:
    radial-gradient(circle at 88% 5%, rgba(216, 167, 93, 0.22), transparent 42%),
    linear-gradient(135deg, #194b40, #0b2c26);
  box-shadow: 0 16px 30px rgba(18, 60, 51, 0.22);
  text-align: left;
  transform-origin: top center;
}

.atm-card-output .atm-bank-card {
  animation: atm-card-eject 10s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.atm-card-output .atm-bank-card > * {
  animation: atm-card-details 10s ease both;
}

.issued-bank-card-section {
  margin-top: 18px;
}

.issued-item-delete {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  border: 1px solid rgba(184, 74, 66, 0.18);
  border-radius: 12px;
  color: var(--danger);
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 600;
}

.issued-item-delete:active {
  background: rgba(184, 74, 66, 0.07);
  transform: scale(0.98);
}

.atm-bank-card-top,
.atm-bank-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.atm-bank-card-top strong {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.atm-bank-card-top span {
  color: rgba(247, 231, 189, 0.68);
  font-size: 10px;
}

.atm-bank-chip {
  position: relative;
  width: 35px;
  height: 26px;
  margin-top: 15px;
  border: 1px solid #c49b53;
  border-radius: 6px;
  background: linear-gradient(135deg, #f0d18e, #b88b42);
}

.atm-bank-chip::before,
.atm-bank-chip::after,
.atm-bank-chip i {
  position: absolute;
  content: "";
  background: rgba(112, 77, 29, 0.4);
}

.atm-bank-chip::before {
  top: 0;
  bottom: 0;
  left: 16px;
  width: 1px;
}

.atm-bank-chip::after {
  top: 11px;
  right: 0;
  left: 0;
  height: 1px;
}

.atm-bank-number {
  margin-top: 13px;
  font-family: var(--font-mono);
  font-size: clamp(15px, 5vw, 20px);
  font-weight: 600;
  letter-spacing: 0.055em;
  white-space: nowrap;
}

.atm-bank-card-bottom {
  margin-top: 14px;
}

.atm-bank-card-bottom small,
.atm-bank-card-bottom strong {
  display: block;
}

.atm-bank-card-bottom small {
  color: rgba(247, 231, 189, 0.55);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.atm-bank-card-bottom strong {
  max-width: 155px;
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.atm-bank-card-bottom > span:last-child {
  text-align: right;
}

.atm-card-status {
  margin: 17px 0 0;
  color: var(--text-sub);
  font-size: 13px;
  animation: atm-card-status 3s ease both;
}

@keyframes atm-card-eject {
  0% { transform: translateY(-135px) scale(0.82); opacity: 0; }
  5% { opacity: 1; }
  88% { transform: translateY(-8px) scale(0.99); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes atm-card-details {
  0%, 94% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes atm-screen-light {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes atm-card-status {
  0%, 68% { opacity: 0; transform: translateY(5px); }
  88%, 100% { opacity: 1; transform: translateY(0); }
}

.issued-cheque-section {
  margin-bottom: 18px;
}

.issued-bank-cheque {
  position: relative;
  overflow: hidden;
  padding: 16px 16px 11px;
  border: 1px solid rgba(113, 128, 84, 0.48);
  border-radius: 10px;
  color: #3d5043;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.48), transparent 38%, rgba(173, 46, 62, 0.035)),
    repeating-linear-gradient(0deg, rgba(80, 105, 69, 0.025) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 12% 90%, rgba(117, 139, 88, 0.13), transparent 38%),
    #f5f3df;
  box-shadow: 0 14px 30px rgba(71, 61, 39, 0.13);
  font-family: var(--font-body);
}

.issued-bank-cheque::before {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(112, 128, 82, 0.18);
  border-radius: 6px;
  content: "";
  pointer-events: none;
}

.issued-bank-cheque::after {
  position: absolute;
  top: -100px;
  right: -74px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(137, 45, 60, 0.12);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 7px rgba(137, 45, 60, 0.035), 0 0 0 15px rgba(137, 45, 60, 0.025), 0 0 0 25px rgba(137, 45, 60, 0.02);
  pointer-events: none;
}

.issued-bank-cheque > :not(.issued-cheque-watermark) {
  position: relative;
  z-index: 1;
}

.issued-cheque-watermark {
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 0;
  color: rgba(158, 28, 50, 0.085);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-18deg);
  pointer-events: none;
}

.issued-cheque-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(158, 28, 50, 0.18);
}

.issued-cheque-bank {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.issued-cheque-logo {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  fill: none;
  stroke: #a51f36;
  stroke-width: 2;
}

.issued-cheque-bank strong {
  display: block;
  color: #9e1c32;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: 0.08em;
}

.issued-cheque-bank small {
  display: block;
  margin-top: 3px;
  color: #9e1c32;
  font-family: Georgia, serif;
  font-size: 6px;
  letter-spacing: 0.12em;
}

.issued-cheque-title {
  flex: 0 0 auto;
  text-align: right;
}

.issued-cheque-title strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.14em;
}

.issued-cheque-title span {
  display: block;
  margin-top: 4px;
  color: #7b806c;
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.05em;
}

.issued-cheque-serial {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 5px;
  color: #757968;
  font-size: 7px;
}

.issued-cheque-serial b {
  color: #a51f36;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.issued-cheque-date {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 29px;
  border-bottom: 1px solid rgba(61, 80, 67, 0.27);
  font-size: 8px;
}

.issued-cheque-date strong {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: right;
}

.issued-cheque-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 28px;
  border-bottom: 1px solid rgba(61, 80, 67, 0.27);
}

.issued-cheque-row span,
.issued-cheque-amount span {
  color: #5f695a;
  font-size: 8px;
  line-height: 1.45;
}

.issued-cheque-row strong {
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 600;
}

.issued-cheque-amount {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  border-bottom: 1px solid rgba(61, 80, 67, 0.27);
}

.issued-cheque-amount strong {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
}

.issued-cheque-amount b {
  color: #9e1c32;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.issued-cheque-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px 12px;
  padding-top: 6px;
  color: #697263;
  font-size: 7px;
}

.issued-cheque-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.issued-cheque-footer p {
  color: #626c5d;
  font-size: 7px;
  line-height: 1.5;
}

.issued-cheque-footer p small {
  display: block;
  margin-top: 3px;
  color: #9e1c32;
  font-size: 6px;
}

.issued-cheque-signature {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #626c5d;
  font-size: 7px;
}

.issued-cheque-signature span {
  padding-top: 5px;
  white-space: nowrap;
}

.issued-cheque-signature b {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid rgba(177, 38, 55, 0.58);
  border-radius: 50%;
  color: rgba(166, 31, 51, 0.76);
  font-size: 7px;
  font-weight: 600;
  transform: rotate(-9deg);
}

.issued-cheque-specimen {
  margin-top: 7px;
  padding-top: 5px;
  border-top: 1px solid rgba(158, 28, 50, 0.2);
  color: #9e1c32;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
}

.bank-connection-loading {
  display: grid;
  min-height: 116px;
  place-items: center;
  padding: 12px 0 24px;
}

.bank-connection-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(18, 60, 51, 0.12);
  border-top-color: var(--accent);
  border-right-color: var(--primary);
  border-radius: 50%;
  animation: bank-connection-spin 0.9s linear infinite;
}

@keyframes bank-connection-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 品牌视觉精细化：保留绿金体系，仅收口层级、密度与交互状态 */
:root {
  --border: #e2e3da;
  --shadow-sm: 0 6px 20px rgba(23, 33, 30, 0.055);
  --shadow-md: 0 16px 40px rgba(18, 60, 51, 0.12);
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  letter-spacing: 0.02em;
}

.surface-card {
  border-color: rgba(18, 60, 51, 0.08);
  border-radius: 22px;
}

.primary-button,
.secondary-button,
.danger-button {
  letter-spacing: 0.02em;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.primary-button {
  background: linear-gradient(135deg, #174b3e, #0d332b);
  box-shadow: 0 9px 20px rgba(18, 60, 51, 0.18);
}

.secondary-button {
  border-color: rgba(18, 60, 51, 0.13);
}

.hero-banner:not(.has-images),
.payment-progress-card,
.profile-card {
  border: 1px solid rgba(216, 167, 93, 0.16);
  box-shadow: 0 18px 42px rgba(18, 40, 34, 0.16);
}

.profile-card {
  background:
    radial-gradient(circle at 96% 0, rgba(216, 167, 93, 0.20), transparent 38%),
    linear-gradient(145deg, #174b3e, #0c3028);
}

.service-item {
  min-height: 82px;
  border: 1px solid transparent;
}

.service-item:hover {
  border-color: rgba(18, 60, 51, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}

.service-icon {
  box-shadow: inset 0 0 0 1px rgba(18, 60, 51, 0.04);
}

.bank-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 34px rgba(18, 40, 34, 0.18);
}

.empty-icon {
  border: 1px solid rgba(18, 60, 51, 0.07);
  background: linear-gradient(145deg, #f2f5ef, var(--primary-soft));
}

.empty-state p {
  max-width: 310px;
  margin-right: auto;
  margin-left: auto;
}

.profile-asset-card {
  border-color: rgba(18, 60, 51, 0.09);
}

.profile-asset-values > button {
  border: 1px solid transparent;
}

.profile-asset-value:hover {
  border-color: rgba(18, 60, 51, 0.10);
}

.field input,
.field select,
.field textarea {
  border-color: #d9ddd4;
  background: rgba(255, 255, 255, 0.92);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #bec9c0;
}

.sheet-header {
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(18, 60, 51, 0.08);
}

.sheet-footer {
  padding-top: 16px;
  border-top: 1px solid rgba(18, 60, 51, 0.08);
}

.bottom-nav {
  border-top-color: rgba(18, 60, 51, 0.10);
  box-shadow: 0 -12px 34px rgba(18, 60, 51, 0.08);
}

.admin-shell {
  background:
    radial-gradient(circle at 92% 0, rgba(216, 167, 93, 0.11), transparent 28%),
    #f2f4f1;
}

.admin-topbar {
  border-bottom-color: rgba(18, 60, 51, 0.10);
}

.admin-sidebar {
  background: rgba(250, 251, 248, 0.58);
}

.admin-nav-item {
  border: 1px solid transparent;
  font-size: 13px;
}

.admin-nav-item.active {
  border-color: rgba(216, 167, 93, 0.18);
  box-shadow: 0 9px 22px rgba(18, 60, 51, 0.17);
}

.admin-panel,
.admin-metric,
.admin-payment-summary article {
  border-color: rgba(18, 60, 51, 0.10);
  box-shadow: var(--shadow-sm);
}

.admin-metric > strong,
.admin-payment-summary article > strong,
.admin-money {
  font-variant-numeric: tabular-nums;
}

.admin-payment-summary article.featured {
  border-color: #dbc69f;
  box-shadow: 0 8px 24px rgba(121, 89, 43, 0.08);
}

.admin-channel-options {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.admin-channel-option {
  min-width: 0;
  flex-wrap: wrap;
  border-color: rgba(18, 60, 51, 0.11);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.admin-channel-option:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(18, 60, 51, 0.07);
}

.admin-channel-toggle {
  min-width: 140px;
}

.admin-channel-option .admin-channel-display-name,
.admin-channel-option .admin-channel-product-code,
.admin-channel-option .admin-channel-amount {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.admin-channel-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.admin-channel-toggle,
.admin-channel-config-fields,
.admin-channel-order-actions,
.admin-channel-option .admin-channel-effective {
  grid-column: 1 / -1;
}

.admin-channel-toggle {
  min-width: 0;
}

.admin-channel-config-fields {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-channel-config-field {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.admin-channel-name-field {
  grid-column: 1 / -1;
}

.admin-channel-config-field > span {
  color: var(--text-sub);
  font-size: 10px;
  font-weight: 500;
}

.admin-channel-option .admin-channel-display-name,
.admin-channel-option .admin-channel-product-code,
.admin-channel-option .admin-channel-amount {
  width: 100%;
  min-width: 0;
  margin-left: 0;
}

.admin-channel-order-actions {
  width: 100%;
  margin-left: 0;
  justify-content: flex-end;
}

.admin-channel-option .admin-channel-effective {
  display: block;
  color: var(--primary);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.admin-table th {
  font-size: 11px;
  letter-spacing: 0.02em;
}

.admin-table td {
  font-size: 12px;
}

.admin-user-status {
  font-size: 11px;
  font-weight: 600;
}

.admin-user-status.pending {
  color: #8a5a18;
  background: #fbf0dc;
}

.admin-user-status.failed {
  color: var(--danger);
  background: #faece9;
}

.admin-payment-footer {
  background: rgba(248, 250, 247, 0.72);
}

.admin-payment-page-actions button {
  min-height: 34px;
}

@media (min-width: 721px) {
  body:not(.admin-view) .app-shell {
    box-shadow: 0 0 0 1px rgba(18, 60, 51, 0.05), 0 24px 80px rgba(18, 40, 34, 0.12);
  }
}

@media (max-width: 480px) {
  .sheet-footer {
    flex-wrap: wrap;
  }

  .sheet-footer > * {
    min-width: min(100%, 140px);
  }

  .admin-topbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .admin-topbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .admin-channel-option {
    align-items: flex-start;
  }

  .admin-channel-config-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-channel-option .admin-channel-product-code,
  .admin-channel-option .admin-channel-amount {
    width: 100%;
    margin-left: 0;
  }

  .admin-channel-order-actions {
    width: 100%;
    margin-left: 0;
  }

  .admin-channel-order-actions button {
    flex: 1;
  }

  .admin-payment-pagination {
    width: 100%;
    justify-content: space-between;
  }
}

.app-build-manager {
  display: grid;
  gap: 16px;
}

.app-build-current {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid #dce4df;
  border-radius: 16px;
  background: #f7faf8;
}

.app-build-icon {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  object-fit: cover;
  border-radius: 20px;
  background: #123a32;
  box-shadow: 0 8px 22px rgba(18, 58, 50, .16);
}

.app-build-current-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-build-current-copy span,
.app-build-release span,
.app-build-release small {
  color: #6f7772;
  font-size: 12px;
}

.app-build-current-copy a {
  color: #17624f;
  font-weight: 700;
}

.app-build-job,
.app-build-verification {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f2f6f3;
  border-left: 4px solid #809188;
}

.app-build-job.is-succeeded {
  border-left-color: #268265;
  background: #eef8f2;
}

.app-build-job.is-failed {
  border-left-color: #b54545;
  background: #fff2f0;
}

.app-build-job p {
  margin: 8px 0;
  color: #a13838;
  white-space: pre-wrap;
  word-break: break-word;
}

.app-build-job span,
.app-build-verification span {
  display: block;
  margin-top: 8px;
  color: #6f7772;
  font-size: 12px;
}

.app-build-verification ol {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #59655f;
  line-height: 1.7;
  font-size: 13px;
}

.app-build-release-list {
  display: grid;
  gap: 10px;
}

.app-build-release {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #e1e7e3;
  border-radius: 12px;
}

.app-build-release > div:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.app-build-release small {
  overflow-wrap: anywhere;
}

.app-build-release-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.app-build-release-actions a {
  text-decoration: none;
}

@media (max-width: 720px) {
  .app-build-current,
  .app-build-release {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-build-release-actions {
    justify-content: flex-start;
  }
}
