:root {
  --bg: #e9ede8;
  --phone: #0f1715;
  --screen: #f8faf6;
  --surface: #ffffff;
  --surface-quiet: #eef4ee;
  --ink: #14201d;
  --muted: #66736f;
  --line: #d8e1d8;
  --accent: #08785f;
  --accent-dark: #045846;
  --accent-soft: #dff2eb;
  --danger: #b33b32;
  --gold: #b8872d;
  --shadow: 0 22px 70px rgba(20, 32, 29, 0.2);
  color-scheme: light;
}

* {
  box-sizing: border-box;
  -webkit-user-drag: none;
}

body,
button,
.phone-shell,
.screen,
.choice-card,
.scene-card,
.chat-display,
.chat-message,
.voice-dock,
.voice-overlay,
.relationship-panel,
.voice-gender-selector {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea,
select,
.chat-draft-input {
  -webkit-touch-callout: default;
  -webkit-user-select: text;
  user-select: text;
}

.phone-shell :not(input):not(textarea):not(select):not(.chat-draft-input) {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(20, 32, 29, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 32, 29, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  min-height: 100dvh;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.is-loading {
  position: relative;
}

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

.prototype-root {
  display: grid;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  place-items: center;
  padding: 24px;
}

.phone-shell {
  position: relative;
  display: grid;
  grid-template-rows: 34px 1fr;
  width: min(430px, 100%);
  height: min(900px, calc(100vh - 48px));
  min-height: 720px;
  overflow: hidden;
  border: 10px solid var(--phone);
  border-radius: 34px;
  background: var(--screen);
  box-shadow: var(--shadow);
}

.phone-shell::before {
  content: "";
  display: block;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: var(--screen);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.screen {
  position: relative;
  display: none;
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
}

.screen.active {
  display: block;
  height: 100%;
}

.screen[data-screen="splash"] {
  padding: 0;
}

.splash-layout {
  position: relative;
  display: block;
  min-height: 100%;
  overflow: hidden;
  padding: 0 24px;
  text-align: center;
}

.splash-language-menu {
  position: absolute;
  top: 52px;
  right: 33px;
  z-index: 4;
}

.globe-button,
.account-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(8, 120, 95, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(8, 120, 95, 0.1);
  backdrop-filter: blur(10px);
}

.account-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent-dark);
  border-radius: 50%;
}

.account-icon::before,
.account-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-dark);
}

.account-icon::before {
  top: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.account-icon::after {
  bottom: 3px;
  width: 10px;
  height: 5px;
  border-radius: 9px 9px 3px 3px;
}

.account-button {
  width: auto;
  min-width: 56px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0;
}

.account-label {
  display: block;
  line-height: 1;
}

.account-button .account-icon {
  display: none;
}

.globe-icon {
  position: relative;
  display: block;
  width: 19px;
  height: 19px;
  border: 2px solid var(--accent-dark);
  border-radius: 50%;
  background:
    linear-gradient(var(--accent-dark) 0 0) center 36% / 13px 1.4px no-repeat,
    linear-gradient(var(--accent-dark) 0 0) center 64% / 13px 1.4px no-repeat,
    linear-gradient(var(--accent-dark) 0 0) center / 1.4px 15px no-repeat;
}

.globe-icon::before,
.globe-icon::after {
  content: "";
  position: absolute;
  inset: 2px 5px;
  border: 1.5px solid var(--accent-dark);
  border-top: 0;
  border-bottom: 0;
  border-radius: 50%;
}

.globe-icon::after {
  inset: 2px;
  border-right: 0;
  border-left: 0;
  border: 0;
  border-radius: 50%;
}

.globe-dropdown {
  position: absolute;
  top: 39px;
  right: 0;
  display: grid;
  min-width: 94px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 26px rgba(20, 32, 29, 0.12);
  backdrop-filter: blur(12px);
  transform-origin: top right;
}

.globe-dropdown button {
  min-height: 29px;
  padding: 0 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.globe-dropdown button:hover {
  background: var(--accent-soft);
}

.splash-layout::before,
.splash-layout::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(44px);
  opacity: 0.4;
}

.splash-layout::before {
  top: 150px;
  left: -92px;
  background: rgba(8, 120, 95, 0.16);
  animation: mist-drift 7s ease-in-out infinite;
}

.splash-layout::after {
  right: -116px;
  bottom: 160px;
  background: rgba(184, 135, 45, 0.12);
  animation: mist-drift 8s ease-in-out 900ms infinite reverse;
}

.brand-logo-card {
  position: absolute;
  top: 12.8%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 204px;
  height: 204px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateX(-50%);
}

.brand-logo-card img {
  width: 192px;
  height: auto;
  display: block;
}

h1 {
  font-size: 31px;
  line-height: 1.1;
}

h2 {
  font-size: 22px;
  line-height: 1.2;
}

h3 {
  font-size: 16px;
  line-height: 1.25;
}

.slogan-cloud {
  position: absolute;
  top: 45.8%;
  left: 50%;
  z-index: 1;
  display: grid;
  gap: 15px;
  width: min(calc(100% - 56px), 340px);
  margin: 0;
  transform: translateX(-50%);
}

.petal-field {
  position: absolute;
  inset: -34px -48px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.petal-field span {
  position: absolute;
  top: var(--top);
  left: -18px;
  width: var(--size);
  height: calc(var(--size) * 1.7);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.96), transparent 42%),
    linear-gradient(135deg, rgba(255, 238, 113, 0.86), rgba(43, 221, 150, 0.72));
  filter: blur(0.25px);
  opacity: 0;
  transform: translateX(0) translateY(0) rotate(0deg) scale(0.4);
  animation: petal-sweep 3.4s cubic-bezier(0.19, 1, 0.22, 1) var(--delay) forwards;
}

.petal-field span:nth-child(3n) {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.92), transparent 42%),
    linear-gradient(135deg, rgba(239, 95, 193, 0.56), rgba(255, 230, 75, 0.82));
}

.petal-field span:nth-child(4n) {
  filter: blur(1.2px);
}

.slogan-cloud::before {
  content: "";
  position: absolute;
  inset: -22px -34px;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 52%, rgba(8, 120, 95, 0.24) 0 1px, transparent 2px),
    radial-gradient(circle at 30% 45%, rgba(8, 120, 95, 0.2) 0 1px, transparent 2px),
    radial-gradient(circle at 48% 58%, rgba(184, 135, 45, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 42%, rgba(8, 120, 95, 0.17) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 55%, rgba(8, 120, 95, 0.14) 0 1px, transparent 2px);
  filter: blur(0.6px);
  opacity: 0;
  transform: translateX(-42px);
  animation: particle-sweep 4.8s ease-out 260ms forwards;
}

.slogan-line {
  position: relative;
  z-index: 1;
  overflow: hidden;
  color: var(--accent-dark);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.38;
  opacity: 0;
  filter: blur(12px);
  clip-path: inset(0 100% 0 0);
  transform: translateX(-22px);
  animation: reveal-mist 980ms cubic-bezier(0.19, 1, 0.22, 1) var(--delay) forwards;
}

.slogan-line::after {
  content: "";
  position: absolute;
  inset: -8px -26px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(8, 120, 95, 0.28) 0 1px, transparent 2px);
  background-size: 22px 18px, 31px 24px;
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-45%);
  animation: text-particles 980ms ease-out var(--delay) forwards;
}

.slogan-line::before {
  content: "";
  position: absolute;
  inset: -10px -40px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.86), transparent);
  opacity: 0;
  transform: translateX(-82%);
  animation: mist-light 980ms ease-out var(--delay) forwards;
}

.enter-button {
  position: absolute;
  left: 50%;
  bottom: 10.3%;
  z-index: 1;
  width: 68px;
  min-width: 68px;
  height: 68px;
  min-height: 68px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--accent-dark);
  box-shadow: none;
  transform: translateX(-50%);
}

.tap-button {
  display: grid;
  place-items: center;
  padding: 0;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tap-button::before {
  content: none;
}

.tap-button:active {
  transform: translateX(-50%) scale(0.96);
}

.vietnam-girl-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: contain;
}

.tap-icon {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
}

.tap-ripple {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(8, 120, 95, 0.55);
  border-radius: 50%;
  animation: tap-ripple 1.8s ease-out infinite;
}

.tap-finger {
  position: absolute;
  left: 12px;
  bottom: 2px;
  width: 10px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent-dark);
  transform: rotate(-18deg);
}

.tap-finger::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-dark);
}

.tap-finger::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 3px;
  width: 14px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-dark);
  transform: rotate(28deg);
}

@keyframes tap-ripple {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  30% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

@keyframes portrait-pulse {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.94);
  }

  50% {
    opacity: 0.18;
    transform: scale(1.1);
  }
}

@keyframes reveal-mist {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    filter: blur(12px);
    transform: translateX(-22px);
  }

  72% {
    opacity: 1;
    filter: blur(1.5px);
  }

  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    filter: blur(0);
    transform: translateX(0);
  }
}

@keyframes text-particles {
  0% {
    opacity: 0;
    transform: translateX(-45%) scaleX(0.4);
  }

  32% {
    opacity: 0.75;
  }

  100% {
    opacity: 0;
    transform: translateX(48%) scaleX(1.05);
  }
}

@keyframes mist-light {
  0% {
    opacity: 0;
    transform: translateX(-82%);
  }

  28% {
    opacity: 0.78;
  }

  100% {
    opacity: 0;
    transform: translateX(82%);
  }
}

@keyframes petal-sweep {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(0) rotate(-18deg) scale(0.35);
  }

  16% {
    opacity: 0.86;
  }

  72% {
    opacity: 0.62;
  }

  100% {
    opacity: 0;
    transform: translateX(var(--travel)) translateY(var(--lift)) rotate(88deg) scale(0.18);
  }
}

@keyframes particle-sweep {
  0% {
    opacity: 0;
    transform: translateX(-42px);
  }

  30% {
    opacity: 0.72;
  }

  100% {
    opacity: 0;
    transform: translateX(90px);
  }
}

@keyframes mist-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(26px, -18px, 0) scale(1.08);
  }
}

.app-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.split-header {
  justify-content: space-between;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.icon-button,
.topbar-back-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
}

.card-list,
.history-list,
.plan-list {
  display: grid;
  gap: 12px;
}

#languageList {
  grid-template-columns: 1fr;
  gap: 13px;
}

.choice-card,
.scene-card,
.history-card,
.plan-card {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 26px rgba(20, 32, 29, 0.06);
}

.choice-card {
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 74px;
}

.language-card {
  position: relative;
  grid-template-columns: 64px minmax(0, 1fr) 18px;
  justify-items: stretch;
  min-height: 86px;
  padding: 14px 16px;
  border-radius: 20px;
  text-align: left;
}

.language-card.selected {
  background: #e1f4ec;
  border-color: #078063;
}

.language-copy {
  display: grid;
  gap: 6px;
  align-content: center;
}

.flag-mark {
  position: relative;
  display: block;
  align-self: center;
  width: 50px;
  height: 36px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-quiet);
  box-shadow:
    inset 0 0 0 1px rgba(20, 32, 29, 0.08),
    0 6px 14px rgba(20, 32, 29, 0.08);
}

.flag-zh {
  background: #de2910 url("assets/flag-cn.svg?v=2") center / cover no-repeat;
}

.flag-vi {
  background: #da251d url("assets/flag-vn.svg?v=2") center / cover no-repeat;
}

.flag-ja {
  background: #ffffff url("assets/flag-jp.svg?v=2") center / cover no-repeat;
}

.flag-ko {
  background: #ffffff url("assets/flag-ko.svg?v=2") center / cover no-repeat;
}

.flag-en {
  background: #012169 url("assets/flag-en.svg?v=1") center / cover no-repeat;
}

.flag-ru {
  background: #ffffff url("assets/flag-ru.svg?v=1") center / cover no-repeat;
}

.flag-de {
  background: #000000 url("assets/flag-de.svg?v=1") center / cover no-repeat;
}

.flag-es {
  background: #c60b1e url("assets/flag-es.svg?v=1") center / cover no-repeat;
}

.flag-fr {
  background: #ffffff url("assets/flag-fr.svg?v=1") center / cover no-repeat;
}

.flag-km {
  background: #032ea1 url("assets/flag-km.svg?v=1") center / cover no-repeat;
}

.flag-id {
  background: #ffffff url("assets/flag-id.svg?v=1") center / cover no-repeat;
}

.flag-th {
  background: #2d2a4a url("assets/flag-th.svg?v=1") center / cover no-repeat;
}

.flag-my {
  background: #34b233 url("assets/flag-my.svg?v=1") center / cover no-repeat;
}

.flag-ms {
  background: #010066 url("assets/flag-ms.svg?v=1") center / cover no-repeat;
}

.flag-lo {
  background: #002868 url("assets/flag-la.svg?v=1") center / cover no-repeat;
}

.flag-mark::before,
.flag-mark::after {
  content: none;
}

.choice-card strong,
.scene-card strong {
  display: block;
  font-size: 18px;
}

.language-native {
  font-size: 20px;
  line-height: 1.15;
}

.language-select-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.language-card .arrow-mark {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 17px;
}

.choice-card span,
.scene-card span,
.history-card span,
.plan-card p,
.member-hero span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.choice-card.selected,
.scene-card.selected,
.plan-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.arrow-mark {
  color: var(--accent);
  font-size: 22px;
  font-weight: 900;
}

.translate-screen.active {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 9px;
  overflow: hidden;
  padding: 10px 18px 0;
  background-clip: border-box;
}

.translate-topbar {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 58px;
  align-items: center;
  min-height: 68px;
}

.translate-title {
  overflow: hidden;
  text-align: center;
  font-size: clamp(18px, 5vw, 21px);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: grid;
  justify-items: end;
  align-self: stretch;
  align-content: end;
  gap: 4px;
  min-height: 64px;
}

.vip-top-button,
.history-button {
  justify-self: end;
  min-width: 54px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 900;
}

.vip-top-button {
  min-height: 24px;
  background: linear-gradient(135deg, #121a18, #0c6f58);
  color: #fff8d8;
}

.history-button {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 34px;
  padding: 0 0 6px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.translate-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  min-height: 30px;
}

.scene-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-quiet);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.relationship-menu {
  position: relative;
  z-index: 5;
}

.relationship-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px rgba(8, 120, 95, 0.22);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.voice-gender-selector {
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
  gap: 4px;
  height: 28px;
  padding: 3px;
  border: 1px solid rgba(8, 120, 95, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.voice-gender-selector button {
  min-width: 44px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.voice-gender-selector button.selected {
  background: var(--accent);
  color: #ffffff;
}

.relationship-panel {
  position: absolute;
  top: 34px;
  right: 0;
  display: grid;
  gap: 6px;
  width: 228px;
  max-height: min(430px, calc(100vh - 210px));
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(20, 32, 29, 0.18);
  backdrop-filter: blur(12px);
}

.relationship-option {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.relationship-option strong {
  font-size: 13px;
  line-height: 1.2;
}

.relationship-option span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.relationship-option.selected {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.translate-display {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
}

.display-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.display-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.source-display p {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
}

.speech-toggle-button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(8, 120, 95, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-dark);
  box-shadow: 0 10px 28px rgba(20, 32, 29, 0.1);
}

.speech-toggle-button[aria-pressed="true"] {
  border-color: rgba(8, 120, 95, 0.38);
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(8, 120, 95, 0.22);
}

.speaker-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 18px;
}

.speaker-icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
}

.speaker-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 10px;
  height: 14px;
  background: currentColor;
  clip-path: polygon(0 33%, 100% 0, 100% 100%, 0 67%);
}

.speech-toggle-button[aria-pressed="false"] .speaker-icon {
  opacity: 0.72;
}

.result-display {
  position: relative;
  padding-bottom: 62px;
  border-color: rgba(8, 120, 95, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #eff8f4 100%);
}

.result-display p {
  color: var(--accent-dark);
  font-size: clamp(21px, 5.2vw, 27px);
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.text-sheet {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(20, 32, 29, 0.12);
}

.text-sheet[hidden] {
  display: none !important;
}

textarea {
  width: 100%;
  min-height: 92px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  padding: 12px;
  background: #ffffff;
  color: var(--ink);
  line-height: 1.5;
}

textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8, 120, 95, 0.14);
}

.text-limit-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.text-send-button,
.primary-button,
.small-button {
  min-height: 42px;
  border-radius: 16px;
  font-weight: 900;
}

.text-send-button,
.primary-button {
  background: var(--accent);
  color: #ffffff;
}

.primary-button {
  min-width: 180px;
  padding: 0 24px;
}

.small-button {
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.voice-dock {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 18px;
  background: #2d2f2f;
  touch-action: none;
  user-select: none;
  position: relative;
  z-index: 4;
  min-height: 66px;
}

.keyboard-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid #d9dddd;
  border-radius: 50%;
  background: transparent;
}

.keyboard-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 18px;
  border-radius: 3px;
  background:
    linear-gradient(#d9dddd 0 0) 3px 3px / 4px 4px no-repeat,
    linear-gradient(#d9dddd 0 0) 10px 3px / 4px 4px no-repeat,
    linear-gradient(#d9dddd 0 0) 17px 3px / 4px 4px no-repeat,
    linear-gradient(#d9dddd 0 0) 3px 10px / 4px 4px no-repeat,
    linear-gradient(#d9dddd 0 0) 10px 10px / 11px 4px no-repeat;
}

.voice-hold-button {
  min-height: 50px;
  border-radius: 14px;
  background: #3b3d3d;
  color: #f4f6f5;
  font-size: 18px;
  font-weight: 900;
  touch-action: none;
  user-select: none;
}

.recording .voice-hold-button {
  background: #4b4d4d;
}

.recording .voice-dock {
  visibility: hidden;
}

.voice-overlay {
  position: absolute !important;
  inset: 0;
  z-index: 20 !important;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 196px;
  align-items: center;
  justify-items: center;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(1px);
}

.voice-bubble {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  width: 156px;
  height: 76px;
  padding: 14px 18px;
  border-radius: 24px;
  background: #40c07a;
}

.voice-bubble::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 50%;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #40c07a;
  transform: translateX(-50%) rotate(45deg);
}

.waveform {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 3px;
}

.voice-bubble-text {
  position: relative;
  z-index: 1;
  display: none;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.96);
  font-size: 20px;
  font-weight: 950;
  line-height: 1.22;
  text-align: left;
  overflow-wrap: anywhere;
}

.recording-text .voice-bubble {
  width: min(82%, 340px);
  min-height: 112px;
  height: auto;
  justify-items: stretch;
}

.recording-text .voice-bubble-text {
  display: block;
}

.recording-text .waveform {
  justify-self: end;
  transform: scale(0.82);
  transform-origin: right center;
}

.waveform span {
  width: 3px;
  height: 17px;
  border-radius: 999px;
  background: rgba(0, 83, 55, 0.55);
  animation: pulse 820ms ease-in-out infinite;
}

.waveform span:nth-child(2n) {
  height: 24px;
  animation-delay: 120ms;
}

.waveform span:nth-child(3n) {
  height: 13px;
  animation-delay: 240ms;
}

@keyframes pulse {
  0%,
  100% {
    transform: scaleY(0.7);
  }

  50% {
    transform: scaleY(1.15);
  }
}

.voice-slide-panel {
  position: relative;
  width: 100%;
  min-height: 196px;
  overflow: hidden;
  padding: 0;
}

.slide-option {
  position: absolute;
  top: 0;
  display: grid;
  place-items: center;
  width: 44%;
  height: 74px;
  padding-bottom: 15px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  z-index: 2;
  background: linear-gradient(180deg, #292b2a 0%, #1f2120 100%);
}

.cancel-option {
  left: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 100% 72%;
}

.text-option {
  right: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 100% 72%;
}

.release-hint {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: start center;
  height: 118px;
  padding-top: 28px;
  border-top-left-radius: 50% 82px;
  border-top-right-radius: 50% 82px;
  background: linear-gradient(180deg, #e3e3e0, #aeb1ae);
  color: #171918;
  font-size: 18px;
  font-weight: 900;
  z-index: 3;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.16);
}

.recording-cancel .cancel-option,
.recording-text .text-option {
  background: var(--accent);
}

.recording-cancel .voice-bubble {
  background: var(--danger);
}

.recording-cancel .voice-bubble::after {
  background: var(--danger);
}

.full-width {
  width: 100%;
}

.history-card {
  border-radius: 16px;
}

.history-card strong {
  font-size: 15px;
  line-height: 1.4;
}

.profile-screen.active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
  padding-bottom: 12px;
}

.profile-content {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 8px;
}

.profile-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(20, 32, 29, 0.07);
}

.avatar-editor {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.avatar-preview {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.85), transparent 26%),
    linear-gradient(135deg, #22d58f, #0a7860);
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 28px rgba(8, 120, 95, 0.22);
}

.name-editor {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.name-editor input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  outline: none;
}

.vip-status-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.58), transparent 24%),
    linear-gradient(135deg, #0f1715 0%, #08785f 52%, #ffe08a 130%);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(8, 120, 95, 0.2);
}

.vip-status-card h2 {
  font-size: 19px;
  line-height: 1.25;
}

.vip-status-card p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.recharge-button {
  min-width: 74px;
  min-height: 42px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent-dark);
  font-weight: 900;
}

.support-entry-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(8, 120, 95, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(20, 32, 29, 0.07);
  color: var(--ink);
  text-align: left;
}

.support-entry-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 22px;
  font-weight: 950;
}

.privacy-entry-card .support-entry-icon {
  background: #fff1e8;
  color: #8a3b18;
}

.support-entry-copy {
  display: grid;
  gap: 4px;
}

.support-entry-copy strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.support-entry-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.support-entry-arrow {
  color: var(--muted);
  font-size: 24px;
  font-weight: 900;
}

.support-screen.active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
}

.support-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
}

.support-hero-card,
.support-topic-button {
  border: 1px solid rgba(8, 120, 95, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(20, 32, 29, 0.07);
}

.support-hero-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
}

.support-hero-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 950;
  color: var(--ink);
}

.support-hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.support-topic-button {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  text-align: left;
}

.support-topic-button.selected {
  border-color: rgba(8, 120, 95, 0.46);
  background: #0c7d62;
  color: #ffffff;
}

.support-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(8, 120, 95, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(20, 32, 29, 0.07);
}

.support-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.support-form input,
.support-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.support-form textarea {
  min-height: 96px;
}

.support-submit-button {
  min-height: 44px;
  border-radius: 16px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 950;
}

.support-submit-button:disabled {
  opacity: 0.6;
}

.support-status {
  min-height: 18px;
  margin: 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.app-bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  align-self: end;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(20, 32, 29, 0.08);
}

.app-bottom-nav button {
  min-height: 46px;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.app-bottom-nav button.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.register-screen.active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.register-form {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  max-width: 100%;
  padding-bottom: 8px;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.register-hero {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(8, 120, 95, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 224, 138, 0.32), transparent 34%),
    linear-gradient(135deg, #ffffff, #eff8f4);
  box-shadow: 0 12px 34px rgba(20, 32, 29, 0.08);
}

.register-avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(135deg, #111a17, #08785f);
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
}

.register-hero strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
  line-height: 1.25;
}

.register-hero p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-provider-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-provider-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 7px 10px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}

.auth-provider-button:focus-visible,
.auth-provider-button:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8, 120, 95, 0.12);
}

.auth-provider-button:disabled {
  cursor: wait;
  opacity: 0.66;
}

.auth-provider-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eff8f4;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 950;
}

.auth-status {
  margin: -4px 2px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.auth-method-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbfa;
}

.auth-method-tab {
  min-height: 40px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.auth-method-tab.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(8, 120, 95, 0.18);
}

.auth-method-panel {
  display: grid;
  gap: 12px;
}

.auth-method-panel[hidden] {
  display: none;
}

.otp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
  align-items: end;
}

.otp-send-button {
  min-height: 46px;
  border-radius: 15px;
  background: #111a17;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
}

.otp-send-button:disabled {
  cursor: wait;
  opacity: 0.66;
}

.phone-auth-grid {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
}

.form-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: none;
  padding: 0 13px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8, 120, 95, 0.14);
}

.consent-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.legal-link {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.primary-action-button,
.ghost-action-button {
  min-height: 48px;
  border-radius: 16px;
  font-weight: 900;
}

.primary-action-button {
  background: var(--accent);
  color: #ffffff;
}

.ghost-action-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--accent-dark);
}

.billing-screen.active {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 18px;
}

.billing-plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* 手机端:套餐单列横条,年付墨绿置顶高亮,不溢出 */
.billing-plan-card {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 104px;
  gap: 4px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 8px 24px rgba(20, 32, 29, 0.06);
}

.billing-plan-card span[data-plan-title] {
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
}

.billing-plan-card strong {
  color: var(--accent-dark);
  font-size: 26px;
}

.billing-plan-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.billing-plan-card[data-plan="yearly"] {
  order: -1;
  background: linear-gradient(120deg, #0c7d62, #045846);
  border-color: transparent;
}
.billing-plan-card[data-plan="yearly"] span[data-plan-title],
.billing-plan-card[data-plan="yearly"] strong { color: #ffffff; }
.billing-plan-card[data-plan="yearly"] small { color: rgba(255, 255, 255, 0.82); }

.billing-plan-card.selected {
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(8, 120, 95, 0.16);
}

.purchase-button {
  align-self: end;
  min-height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0c7d62, #045846);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(8, 120, 95, 0.26);
}

.member-hero {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 20px;
  border-radius: 22px;
  background: var(--ink);
  color: #ffffff;
}

.member-hero p {
  color: #cfe4dc;
  font-weight: 800;
}

.member-hero strong {
  font-size: 42px;
  line-height: 1;
}

.member-hero span {
  color: #dfeae6;
}

.plan-list {
  margin-bottom: 16px;
}

.plan-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.plan-card strong {
  color: var(--gold);
  font-size: 20px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(360px, calc(100% - 36px));
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ink);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.setup-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 21, 0.48);
  backdrop-filter: blur(8px);
}

.setup-modal[data-public-disabled="true"] {
  display: none !important;
}

.subscription-modal {
  position: fixed;
  inset: 0;
  z-index: 34;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 21, 0.54);
  backdrop-filter: blur(8px);
}

.subscription-card {
  display: grid;
  gap: 14px;
  width: min(410px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 224, 138, 0.52), transparent 32%),
    linear-gradient(135deg, #ffffff, #eff8f4);
  box-shadow: 0 28px 80px rgba(20, 32, 29, 0.34);
}

.subscription-card h2 {
  font-size: 24px;
  line-height: 1.2;
}

.subscription-card p {
  color: var(--muted);
  line-height: 1.55;
}

.subscription-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.setup-card {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid rgba(216, 225, 216, 0.92);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(8, 120, 95, 0.12), transparent 34%),
    #ffffff;
  box-shadow: 0 26px 70px rgba(20, 32, 29, 0.28);
}

.setup-close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-quiet);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.setup-copy,
.setup-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.setup-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.setup-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: none;
  padding: 0 13px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.setup-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8, 120, 95, 0.14);
}

.setup-save-button {
  min-height: 48px;
  border-radius: 16px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
}

/* Conversation skin selected by Kay: peach diagonal layout with the translation result first. */
.phone-shell {
  background: #fff3ea;
}

.status-bar {
  position: relative;
  z-index: 2;
  background: #fff3ea;
}

.screen.active:not([data-screen="splash"]) {
  isolation: isolate;
  background:
    linear-gradient(132deg, transparent 0 49%, rgba(228, 235, 224, 0.82) 49.2% 68%, transparent 68.2%),
    linear-gradient(180deg, #fff0e7 0%, #fffaf6 54%, #fff3ea 100%);
}

.screen.active:not([data-screen="splash"]) > *:not(.voice-overlay):not(.voice-gender-selector):not(.voice-sheet-backdrop) {
  position: relative;
  z-index: 1;
}

.translate-screen.active {
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 9px;
  padding: 10px 18px 0;
}

.translate-topbar {
  grid-template-columns: 50px minmax(0, 1fr) 58px;
  min-height: 56px;
}

.topbar-back-button {
  width: 50px;
  height: 50px;
  border-color: rgba(20, 32, 29, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(78, 52, 38, 0.08);
  color: #073b32;
  font-size: 34px;
  font-weight: 900;
}

.translate-title {
  font-size: clamp(18px, 5vw, 22px);
  line-height: 1.08;
  color: #061411;
}

.topbar-actions {
  align-content: center;
  min-height: 54px;
}

.vip-top-button {
  min-width: 58px;
  min-height: 30px;
  border-radius: 999px;
  background: #084c3f;
  color: #fff4cf;
  box-shadow: none;
}

.history-button {
  display: none;
}

.translate-meta {
  position: static !important;
  z-index: 6 !important;
  justify-content: center;
  min-height: 32px;
}

.relationship-button {
  min-width: 76px;
  height: 30px;
  border: 0;
  background: #dff4eb;
  color: #00634f;
  box-shadow: none;
}

.relationship-panel {
  left: 50%;
  right: auto;
  top: 38px;
  width: min(280px, calc(100vw - 64px));
  max-height: min(460px, calc(100vh - 230px));
  transform: translateX(-50%);
}

.chat-display {
  position: relative;
  display: block;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 8px 2px 14px;
  scroll-behavior: smooth;
  touch-action: pan-y;
}

.chat-list {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: min-content;
}

.chat-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 40% auto 0;
  color: #5f6e69;
  text-align: center;
}

.chat-empty strong {
  color: #0a4036;
  font-size: 22px;
  font-weight: 950;
}

.chat-empty span {
  font-size: 13px;
  font-weight: 800;
}

.chat-message {
  position: relative;
  display: grid;
  gap: 8px;
  width: min(100%, 350px);
  padding: 14px 15px 12px;
  border-radius: 22px;
  box-shadow: 0 16px 32px rgba(72, 46, 32, 0.08);
}

.chat-message:nth-child(odd) {
  justify-self: end;
  background: #0c7d62;
  color: #ffffff;
}

.chat-message:nth-child(even) {
  justify-self: start;
  background: rgba(255, 255, 255, 0.94);
  color: #071411;
}

.chat-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 900;
}

.chat-message:nth-child(even) .chat-meta {
  color: #6a7773;
}

.chat-source {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
}

.chat-message:nth-child(even) .chat-source {
  color: #6a7773;
}

.chat-target {
  padding-right: 46px;
  color: inherit;
  font-size: clamp(20px, 5.4vw, 25px);
  line-height: 1.28;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.chat-actions {
  display: flex;
  justify-content: flex-start;
  padding-right: 46px;
}

.chat-copy {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 12px;
  font-weight: 900;
}

.chat-message:nth-child(even) .chat-copy {
  background: rgba(12, 125, 98, 0.1);
  color: #0c7d62;
}

.chat-speaker {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #08785f;
  box-shadow: 0 10px 22px rgba(57, 28, 12, 0.13);
}

.chat-message:nth-child(even) .chat-speaker {
  background: #0c7d62;
  color: #ffffff;
}

.chat-draft-message {
  justify-self: end;
  width: min(100%, 350px);
  background: #0c7d62 !important;
  color: #ffffff !important;
}

.chat-draft-input {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  outline: 0;
  background: rgba(255, 255, 255, 0.94);
  color: #061411;
  padding: 12px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.chat-draft-input:focus {
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.draft-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.draft-cancel,
.draft-send {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}

.draft-cancel {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.draft-send {
  background: #ffffff;
  color: #075846;
}

.legacy-live-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.display-card {
  overflow: hidden;
  border: 0;
  box-shadow: 0 18px 36px rgba(72, 46, 32, 0.08);
}

.result-display .display-label {
  color: rgba(255, 255, 255, 0.74);
}

.result-display p {
  min-width: 0;
  color: #ffffff;
  font-size: clamp(25px, 6.7vw, 32px);
  line-height: 1.18;
  font-weight: 950;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.source-display {
  min-height: 116px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.source-display p {
  font-size: clamp(20px, 5.2vw, 25px);
  line-height: 1.35;
  font-weight: 900;
  color: #071411;
}

.speech-toggle-button {
  right: 12px;
  bottom: 12px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border-color: rgba(8, 120, 95, 0.22);
  background: #ffffff;
  color: #08785f;
  box-shadow: 0 12px 28px rgba(57, 28, 12, 0.14);
}

.text-sheet {
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 36px rgba(72, 46, 32, 0.08);
  /* 写死在屏幕上半区:iOS 键盘弹出时盖不到它,系统不会滚动页面,位置不再漂移 */
  position: absolute;
  left: 18px;
  right: 18px;
  top: 146px;
  bottom: auto;
  align-self: start;
  margin: 0;
  z-index: 5;
}

.voice-dock {
  grid-template-columns: 58px minmax(0, 1fr) 50px;
  gap: 10px;
  min-height: 68px;
  align-self: end;
  margin-bottom: 0;
  padding: 9px;
  border-radius: 28px;
  background: #0e4037;
  box-shadow: 0 20px 36px rgba(8, 57, 49, 0.22);
}

.more-button {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background: #f5e7de;
}

.more-button span,
.more-button span::before,
.more-button span::after {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7b3d2b;
}

.more-button span {
  position: relative;
}

.more-button span::before,
.more-button span::after {
  content: "";
  position: absolute;
  top: 0;
}

.more-button span::before {
  left: -9px;
}

.more-button span::after {
  right: -9px;
}

.voice-sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 7;
  background: rgba(0, 0, 0, 0.18);
}

.translate-screen.active .voice-gender-selector {
  position: absolute;
  right: 18px;
  bottom: 94px;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 246px;
  height: auto;
  padding: 10px;
  border: 1px solid rgba(216, 225, 216, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 50px rgba(20, 32, 29, 0.2);
  backdrop-filter: blur(14px);
}

.translate-screen.active .voice-gender-selector[hidden] {
  display: none;
}

.translate-screen.active .voice-gender-selector button {
  display: grid;
  grid-template-columns: 38px max-content;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 52px;
  height: auto;
  padding: 7px 9px 7px 7px;
  border-radius: 16px;
  background: transparent;
  color: #21302c;
  box-shadow: none;
  text-align: left;
  font-size: 15px;
  font-weight: 950;
  white-space: nowrap;
}

.translate-screen.active .voice-gender-selector button.selected {
  background: #dff4eb;
  color: #045846;
  box-shadow: none;
}

.voice-avatar {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(8, 120, 95, 0.12);
}

.male-avatar {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, #f3c7a7 0 24%, transparent 25%),
    radial-gradient(circle at 42% 34%, #182925 0 5%, transparent 6%),
    radial-gradient(circle at 58% 34%, #182925 0 5%, transparent 6%),
    radial-gradient(circle at 50% 50%, #da7d67 0 7%, transparent 8%),
    linear-gradient(135deg, #d7efe5, #f8f2e8);
}

.keyboard-button {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 18px;
  background: #f5e7de;
}

.keyboard-icon {
  background:
    linear-gradient(#7b3d2b 0 0) 3px 3px / 4px 4px no-repeat,
    linear-gradient(#7b3d2b 0 0) 10px 3px / 4px 4px no-repeat,
    linear-gradient(#7b3d2b 0 0) 17px 3px / 4px 4px no-repeat,
    linear-gradient(#7b3d2b 0 0) 3px 10px / 4px 4px no-repeat,
    linear-gradient(#7b3d2b 0 0) 10px 10px / 11px 4px no-repeat;
}

.voice-hold-button {
  min-height: 50px;
  border-radius: 22px;
  background: #ffffff;
  color: #061411;
  font-size: 20px;
}

.history-list {
  gap: 14px;
}

.history-card {
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 36px rgba(72, 46, 32, 0.08);
}

.history-card strong {
  color: #0b6f59;
  font-weight: 950;
}

.screen[data-screen="history"] .app-header,
.screen[data-screen="language"] .app-header,
.screen[data-screen="direction"] .app-header,
.screen[data-screen="scene"] .app-header {
  margin-bottom: 18px;
}

.screen[data-screen="scene"] .scene-list {
  gap: 13px;
}

.screen[data-screen="scene"] .scene-card {
  min-height: 76px;
  padding: 15px 18px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 36px rgba(72, 46, 32, 0.08);
}

.screen[data-screen="scene"] .scene-card.selected {
  border: 1px solid #078063;
  background: #e1f4ec;
}

@media (max-width: 520px) {
  html,
  body {
    width: 100%;
    height: 100%;
    height: -webkit-fill-available;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    min-height: 100%;
    overflow: hidden;
    background: #fff3ea !important;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: #fff3ea;
    pointer-events: none;
  }

  .prototype-root {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    height: -webkit-fill-available;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    padding: 0;
    background: #fff3ea !important;
  }

  .phone-shell {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    height: -webkit-fill-available;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    border: 0;
    border-radius: 0;
    background: #fff3ea !important;
  }

  .screen,
  .screen.active {
    background-color: #fff3ea !important;
  }

  .text-sheet {
    left: 18px;
    right: 18px;
    top: 146px;
    bottom: auto;
    align-self: start;
    margin: 0;
  }

  .voice-overlay {
    inset: 0;
  }
}

@media (max-height: 760px) and (min-width: 521px) {
  .phone-shell {
    height: calc(100vh - 28px);
    min-height: 660px;
  }
}


/* ============================================================
   偏好设置页(2026-07-31)
   ============================================================ */
.preferences-content { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 20px; max-width: 620px; margin: 0 auto; width: 100%; }
.pref-entry, .pref-toggle-row {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); text-align: left; cursor: pointer;
}
.pref-entry-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 20px; flex: none;
}
.pref-entry-copy { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.pref-entry-copy strong { font-size: 15px; color: var(--ink); }
.pref-entry-copy small { font-size: 12px; color: var(--muted); }
.pref-block { padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.pref-block-title { font-size: 13px; font-weight: 900; color: var(--ink); margin-bottom: 14px; }
.pref-figure-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pref-figure {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px; border: 2px solid var(--line); border-radius: 16px; background: var(--screen); cursor: pointer;
}
.pref-figure.selected { border-color: var(--accent); background: var(--accent-soft); }
.pref-figure-avatar { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; border: 3px solid #a7cbb5; display: block; }
.pref-figure-avatar img { display: block; width: 134%; height: 134%; object-fit: cover; margin: -17% 0 0 -17%; }
.pref-figure span { font-size: 13px; font-weight: 700; color: var(--ink); }
.pref-switch { width: 52px; height: 30px; border-radius: 999px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background .2s; }
.pref-switch.on { background: var(--accent); }
.pref-switch-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .2s; }
.pref-switch.on .pref-switch-knob { left: 25px; }

/* ============================================================
   夜间模式(靠 CSS 变量整体覆盖,最大限度避免失真)
   ============================================================ */
body.dark-mode {
  --bg: #0e1512;
  --screen: #151d19;
  --surface: #1c2622;
  --surface-quiet: #212b26;
  --ink: #e9efec;
  --muted: #9fb0aa;
  --line: #2c3a34;
  --accent-soft: #1d3a2f;
  --shadow: 0 22px 60px rgba(0,0,0,.5);
}
body.dark-mode .phone-shell { background: #141c19; }
body.dark-mode .status-bar { background: #141c19; }
body.dark-mode .screen.active:not([data-screen="splash"]) {
  background: linear-gradient(160deg, #161f1b 0%, #141c19 60%, #12100f 100%);
}
body.dark-mode .text-sheet { background: rgba(28,38,34,.96); }
body.dark-mode .pref-switch-knob { background: #e9efec; }
/* 夜间模式:补齐白色元素(输入框/返回键/气泡/消息卡)避免失真 */
body.dark-mode textarea,
body.dark-mode input[type="text"],
body.dark-mode input[type="date"] { background: #1c2622; color: var(--ink); border-color: var(--line); }
body.dark-mode .icon-button,
body.dark-mode .topbar-back-button { background: #1c2622; color: var(--ink); }
body.dark-mode .hello-bubble,
body.dark-mode .relationship-panel { background: #1c2622; }
/* 自己(右)气泡保持绿底白字;对方(左)气泡暗底配浅字,保证对比 */
body.dark-mode .chat-message:nth-child(odd) { background: #0c7d62; color: #ffffff; }
body.dark-mode .chat-message:nth-child(even) { background: #232f2a; color: #eef4f1; }
body.dark-mode .chat-message:nth-child(even) .chat-meta,
body.dark-mode .chat-message:nth-child(even) .chat-source { color: #a6b8b1; }
body.dark-mode .chat-message:nth-child(even) .chat-copy { background: rgba(255,255,255,.14); color: #7fd3bb; }
body.dark-mode .chat-message:nth-child(even) .chat-speaker { background: #0c7d62; color: #ffffff; }
body.dark-mode .chat-draft-input { background: #232f2a; color: #eef4f1; }
/* 夜间模式:logo 加白底卡(黑字母才可见)+ 下拉框 */
body.dark-mode .brand-logo-card { background: #ffffff; border-radius: 22px; padding: 16px 20px; }
body.dark-mode select { background: #232f2a; color: var(--ink); border-color: var(--line); }
/* ============================================================
   夜间模式 · 全局对比度兜底(2026-07-31 深夜)
   覆盖所有硬编码白底卡片/面板/输入/按钮,国旗白底与开关滑块保留
   ============================================================ */
body.dark-mode .history-card,
body.dark-mode .support-entry-card,
body.dark-mode .support-form,
body.dark-mode .support-topic-button,
body.dark-mode .globe-dropdown,
body.dark-mode .source-display,
body.dark-mode .scene-card,
body.dark-mode .subscription-card,
body.dark-mode .product-modal,
body.dark-mode .download-modal-panel,
body.dark-mode .setup-modal-panel,
body.dark-mode .account-button,
body.dark-mode .auth-provider-button,
body.dark-mode .ghost-action-button,
body.dark-mode .draft-send,
body.dark-mode .draft-cancel,
body.dark-mode .auth-method-panel,
body.dark-mode .auth-method-tab {
  background: #232f2a !important;
  border-color: var(--line) !important;
}
body.dark-mode .history-card, body.dark-mode .history-card strong, body.dark-mode .history-card p,
body.dark-mode .support-entry-card, body.dark-mode .support-entry-card strong,
body.dark-mode .scene-card, body.dark-mode .scene-card strong,
body.dark-mode .source-display,
body.dark-mode .subscription-card, body.dark-mode .subscription-card h2, body.dark-mode .subscription-card p,
body.dark-mode .product-modal, body.dark-mode .product-modal h2, body.dark-mode .product-modal p,
body.dark-mode .account-button, body.dark-mode .ghost-action-button,
body.dark-mode .auth-method-tab, body.dark-mode .auth-provider-button {
  color: var(--ink);
}
body.dark-mode .history-card small, body.dark-mode .support-entry-card small,
body.dark-mode .scene-card small, body.dark-mode .scene-card span { color: var(--muted); }
body.dark-mode input, body.dark-mode textarea, body.dark-mode select,
body.dark-mode .setup-field input, body.dark-mode .name-editor input,
body.dark-mode .support-form textarea, body.dark-mode .support-form input {
  background: #232f2a; color: var(--ink); border-color: var(--line);
}
body.dark-mode input::placeholder, body.dark-mode textarea::placeholder { color: #7f9089; }
body.dark-mode .auth-method-tab.active { background: var(--accent) !important; color: #fff; }
/* 偏好设置入口:手机端也显示(手机用户要能进偏好选形象/夜间/语言)*/
.profile-pref-entry { display: flex !important; }
/* 手机端兜底:防止任何卡片内容撑破屏幕导致横向溢出 */
@media (max-width: 1099px) {
  .billing-screen.active { padding: 16px; }
  .profile-content { width: 100%; box-sizing: border-box; }
  .profile-content > *,
  .vip-status-card,
  .support-entry-card,
  .billing-plan-card { max-width: 100%; box-sizing: border-box; min-width: 0; }
}
/* 根治横向溢出:网格/弹性项默认 min-width:auto 会被内容撑破,强制归零 */
.phone-shell, .screen, .billing-plans, .profile-content, .card-list { min-width: 0; }
.phone-shell { max-width: 100vw; }
/* 根治手机端横向溢出:全局 border-box(桌面desktop.css有,手机styles.css之前漏了)*/
*, *::before, *::after { box-sizing: border-box; }
/* ============================================================
   夜间模式 · 手机端强制覆盖(压住 520px 段的 #fff3ea !important)
   ============================================================ */
@media (max-width: 520px) {
  body.dark-mode,
  body.dark-mode .prototype-root,
  body.dark-mode .phone-shell { background: #141c19 !important; }
  body.dark-mode::before { background: #141c19 !important; }
  body.dark-mode .screen,
  body.dark-mode .screen.active { background-color: #141c19 !important; }
  body.dark-mode .screen.active:not([data-screen="splash"]) {
    background: linear-gradient(160deg, #161f1b 0%, #141c19 60%, #12100f 100%) !important;
  }
}
/* splash 屏夜间(全宽度通用) */
body.dark-mode .screen[data-screen="splash"],
body.dark-mode .splash-layout { background: #141c19; }
body.dark-mode .slogan-line { color: #9fd8c3; }
/* logo 白卡:规整圆角方卡,不额外撑大 */
body.dark-mode .brand-logo-card { background: transparent; border-radius: 0; padding: 0; box-shadow: none; }
/* 启动页人物图标/声音选择头像:裁掉图片自带白圈(与电脑端同款处理) */
.vietnam-girl-icon { transform: scale(1.34); clip-path: circle(37.2%); }
.tap-button:active .vietnam-girl-icon { transform: scale(1.28); }
.voice-avatar { transform: scale(1.34); clip-path: circle(37.2%); }
/* ============================================================
   修复(2026-08-02):
   1) 手机端输入框字号≥16px + 防缩放,杜绝 iOS focus 自动放大回不去
   2) 隐藏手机号注册入口(短信通道未接,先只留邮箱/账号密码)
   ============================================================ */
@media (max-width: 1099px) {
  input, textarea, select, [contenteditable], .chat-draft-input { font-size: 16px !important; }
}
.auth-method-tab[data-auth-method="phone"] { display: none !important; }
.auth-method-panel[data-auth-panel="phone"] { display: none !important; }
/* ===== 2026-08-02 · 登入/注册拆分 + 登入飘窗 + A/文语言按钮 + 常驻地校验 ===== */
.splash-language-menu { display: flex; gap: 9px; }
.splash-lang-fab {
  position: absolute; top: 52px; left: 33px; z-index: 4;
  display: flex; flex-direction: column; align-items: center; line-height: 1;
  padding: 2px 4px; background: transparent; border: none;
  color: var(--accent-dark); font-weight: 950;
  transform: skewX(-8deg) rotate(-4deg);
}
.splash-lang-fab .lang-fab-a { font-size: 17px; font-style: italic; }
.splash-lang-fab .lang-fab-wen { font-size: 14px; font-style: italic; margin-top: 1px; opacity: .85; transform: translateX(4px); }
body.dark-mode .splash-lang-fab { color: #9fd8c3; }

.login-popup {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  background: rgba(15, 24, 20, 0.28);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.login-popup[hidden] { display: none; }
.login-popup-card {
  position: relative;
  width: min(330px, 86vw);
  display: grid; gap: 12px;
  padding: 24px 22px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 24px 60px rgba(8, 40, 30, 0.25);
}
.login-popup-card .form-field input { background: rgba(255, 255, 255, 0.8); }
.login-popup-title { margin: 0; font-size: 19px; color: var(--accent-dark); }
.login-popup-close {
  position: absolute; top: 10px; right: 14px;
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 21px; line-height: 1;
}
body.dark-mode .login-popup-card { background: rgba(22, 31, 27, 0.72); border-color: rgba(159, 216, 195, 0.25); }
body.dark-mode .login-popup-title { color: #9fd8c3; }
body.dark-mode .login-popup-card .form-field input { background: rgba(10, 16, 13, 0.6); color: #e8f3ec; }

.resident-country-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.resident-country-hint { color: #d43c2f; font-size: 11px; font-style: normal; font-weight: 900; }
/* ===== 2026-08-02 · 账号与隐私页 + 单句广告语 ===== */
.account-privacy-body { display: grid; gap: 16px; padding: 4px 22px 26px; overflow-y: auto; }
.privacy-block { display: grid; gap: 11px; padding: 17px 16px; border-radius: 18px; background: #ffffff; box-shadow: 0 12px 26px rgba(8, 120, 95, 0.08); }
.privacy-block h3 { margin: 0; font-size: 15px; color: var(--accent-dark); }
.privacy-danger-block { gap: 10px; }
.danger-action-button { min-height: 46px; border: 1px solid rgba(212, 60, 47, 0.4); border-radius: 15px; background: rgba(212, 60, 47, 0.08); color: #d43c2f; font-size: 15px; font-weight: 900; }
.privacy-note { margin: 0; color: var(--muted); font-size: 11px; }
body.dark-mode .privacy-block { background: #1b2620; }
body.dark-mode .privacy-block h3 { color: #9fd8c3; }
body.dark-mode .danger-action-button { background: rgba(212, 60, 47, 0.16); color: #ff8d80; border-color: rgba(212, 60, 47, 0.5); }

/* 首页广告语:单语言单句(两行上下排),字号加大 */
.slogan-cloud .slogan-line { font-size: 22px; line-height: 1.52; }
/* ===== 2026-08-02 · A/文按钮改官网同款对角斜排(A上文下,无圈) ===== */
.splash-lang-fab {
  display: grid !important;
  place-items: center;
  flex-direction: unset;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  transform: none !important;
}
.splash-lang-fab svg { width: 30px; height: 30px; display: block; }
/* ===== 2026-08-02 · A/文 原地下拉语言菜单 ===== */
.lang-fab-menu {
  position: absolute;
  top: 96px;
  left: 26px;
  z-index: 60;
  display: grid;
  gap: 2px;
  width: 172px;
  max-height: 46vh;
  overflow-y: auto;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(8, 60, 45, 0.18);
}
.lang-fab-menu[hidden] { display: none; }
.lang-fab-menu button {
  min-height: 34px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  padding: 0 10px;
}
.lang-fab-menu button.active { background: rgba(8, 120, 95, 0.12); color: var(--accent-dark); }
body.dark-mode .lang-fab-menu { background: rgba(22, 31, 27, 0.96); }
body.dark-mode .lang-fab-menu button { color: #e8f3ec; }
body.dark-mode .lang-fab-menu button.active { background: rgba(159, 216, 195, 0.16); color: #9fd8c3; }
/* ===== 2026-08-02 · 广告语:字号加大+位置,出现方式=最早原版特效(不覆盖动画) ===== */
.slogan-cloud { top: 44%; }
.slogan-cloud .slogan-line {
  font-size: 27px;
  line-height: 1.6;
  letter-spacing: 0.5px;
}
/* ===== 2026-08-02 · 文本面板定位终极修复 =====
   第2316行的通用规则(.screen.active > * { position:relative })权重高达0-6-0,
   一直在把面板的 absolute 定位打回 relative——这就是面板反复沉底的真凶。
   这里用 !important + 手机媒体查询压死它(桌面端不受影响,desktop.css 自管)。 */
@media (max-width: 1099px) {
  .screen.active:not([data-screen="splash"]) > .text-sheet {
    position: absolute !important;
    top: 146px !important;
    bottom: auto !important;
    left: 18px !important;
    right: 18px !important;
    margin: 0 !important;
    z-index: 6 !important;
  }
}

/* 会员套餐选中边框:改亮橙金色,选中年付墨绿卡时也一眼可见 */
.billing-plan-card.selected {
  border: 3px solid #ffb03a !important;
  box-shadow: 0 12px 30px rgba(255, 176, 58, 0.3) !important;
}