:root {
  color-scheme: light;
  --gold: #bfa15a;
  --leaf: #4a9a7b;
  --rose: #df8aa0;
  --ink: #263530;
  --muted: #6f837d;
  --line: #d7e8df;
  --paper: rgba(252, 255, 251, 0.94);
  --bg: #eef9f4;
}

* {
  box-sizing: border-box;
}

html,
body {
  overscroll-behavior: none;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.95) 0 12px, transparent 13px),
    radial-gradient(circle at 82% 12%, rgba(190, 236, 219, 0.7) 0 18px, transparent 19px),
    radial-gradient(circle at 88% 72%, rgba(255, 255, 255, 0.72) 0 22px, transparent 23px),
    radial-gradient(circle at 20% 82%, rgba(197, 235, 255, 0.62) 0 20px, transparent 21px),
    linear-gradient(160deg, #f8fffb 0%, #e8f7f1 48%, #f8faee 100%);
  background-attachment: fixed;
}

body.modal-lock {
  overflow: hidden;
}

body.theme-monet {
  --gold: #d4a75f;
  --leaf: #6fae9a;
  --rose: #dd8fa8;
  --ink: #33413f;
  --muted: #758682;
  --line: #d7e5df;
  --paper: rgba(255, 253, 248, 0.93);
  --bg: #f4f1ea;
}

body.theme-water {
  --gold: #67b7d1;
  --leaf: #4aa8a0;
  --rose: #80c4dc;
  --ink: #24434b;
  --muted: #668591;
  --line: #cce9ee;
  --paper: rgba(247, 253, 255, 0.94);
  --bg: #e9f8fb;
}

body.theme-maple {
  --gold: #d49137;
  --leaf: #9b3f35;
  --rose: #c95e4a;
  --ink: #3c2b25;
  --muted: #8b6b5c;
  --line: #efd8c8;
  --paper: rgba(255, 248, 242, 0.95);
  --bg: #fff2e7;
}

body.theme-wood {
  --gold: #b8874f;
  --leaf: #7b6a45;
  --rose: #b8896f;
  --ink: #3c342a;
  --muted: #776a5a;
  --line: #e2d5c4;
  --paper: rgba(255, 251, 244, 0.95);
  --bg: #f7efe4;
}

body.theme-water {
  background: linear-gradient(160deg, #e9fbff 0%, #f7ffff 45%, #dff4f1 100%);
}

body.theme-maple {
  background: linear-gradient(160deg, #fff7ef 0%, #ffe5d4 48%, #f6c8b8 100%);
}

body.theme-wood {
  background: linear-gradient(160deg, #faf3e8 0%, #f1e3cf 48%, #fffaf2 100%);
}

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

button {
  border: 0;
  cursor: pointer;
}

.shell {
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 34px rgba(45, 98, 80, 0.12);
  position: relative;
  padding-bottom: 24px;
  backdrop-filter: blur(10px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: linear-gradient(180deg, #e4f7ed, #f8f5d9);
  font-weight: 800;
  overflow: hidden;
}

.topbar .back {
  position: absolute;
  left: 12px;
  z-index: 7;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
}

.ticker {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.ticker span {
  display: inline-block;
  min-width: 100%;
  padding-left: 100%;
  animation: ticker 14s linear infinite;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.login {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 40px 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 52, 76, 0.32), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(32, 118, 255, 0.34), transparent 30%),
    radial-gradient(circle at 58% 82%, rgba(255, 255, 255, 0.72), transparent 32%),
    linear-gradient(140deg, #f8fbff 0%, #eef6ff 46%, #fff5f5 100%);
}

.login-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  perspective: 900px;
}

.login-flash span,
.login-flash i {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.82;
}

.login-flash span:nth-child(1) {
  width: 260px;
  height: 260px;
  left: -72px;
  top: 7%;
  background: radial-gradient(circle, rgba(255, 45, 78, 0.44), transparent 68%);
  animation: loginOrbit 7s ease-in-out infinite;
}

.login-flash span:nth-child(2) {
  width: 310px;
  height: 310px;
  right: -116px;
  top: 18%;
  background: radial-gradient(circle, rgba(37, 116, 255, 0.44), transparent 68%);
  animation: loginOrbit 8.6s ease-in-out infinite reverse;
}

.login-flash span:nth-child(3) {
  width: 190px;
  height: 190px;
  left: 38%;
  bottom: 6%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 72%);
  animation: loginFloat 5.8s ease-in-out infinite;
}

.login-flash i {
  width: 72vw;
  height: 72vw;
  left: 14vw;
  top: 12vh;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 0 40px rgba(255, 62, 88, 0.2),
    inset 0 0 45px rgba(45, 124, 255, 0.18);
  transform: rotateX(64deg);
  animation: loginRing 6s linear infinite;
}

.login-panel {
  position: relative;
  z-index: 1;
  margin-top: 12vh;
  padding: 24px;
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 46px rgba(87, 116, 101, 0.22);
}

.brand {
  margin: 0 0 4px;
  font-size: 34px;
  letter-spacing: 0;
}

.art-logo {
  display: inline-block;
  margin-bottom: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  background: linear-gradient(118deg, #e32134 6%, #ff6b72 34%, #2d7cff 66%, #0b3fb3 94%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    2px 2px 0 rgba(23, 54, 128, 0.18),
    5px 8px 18px rgba(31, 65, 133, 0.28);
}

.subtitle {
  margin: 0 0 24px;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  font-weight: 700;
}

.field input,
.field textarea,
.field select,
.search-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  background: #fff;
  outline-color: var(--gold);
}

.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
  color: #3b6256;
  font-size: 13px;
  font-weight: 800;
}

.remember-row input {
  width: 16px;
  height: 16px;
  accent-color: #3f9a7b;
}

.primary,
.secondary,
.mini,
.danger {
  border-radius: 6px;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 800;
}

.primary {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, #58ac8c, #347b65);
}

.secondary {
  color: var(--leaf);
  background: #edf7f2;
}

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

.mini {
  min-height: 30px;
  padding: 0 10px;
  color: #fff;
  background: var(--gold);
  font-size: 13px;
}

.switch-line {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.login-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.login-action-row .primary,
.login-action-row .secondary {
  width: 100%;
}

.app-download-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.app-download-panel .app-download-btn {
  width: 100%;
  min-height: 40px;
}

.android-download {
  color: #fff;
  background: linear-gradient(135deg, #4cba72, #2b8c51);
}

.ios-download {
  color: #fff;
  background: linear-gradient(135deg, #4c82e8, #3157b8);
}

.content {
  padding: 8px;
}

.search-tools {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 8px;
  padding-right: 8px;
}

.filter-toggle {
  min-height: 32px;
}

.filter-panel {
  margin-bottom: 10px;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.filters select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 8px;
  background: #fff;
}

.search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 16px;
  font-weight: 900;
}

.outer-link {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff6b7a, #f4a51c);
  box-shadow: 0 8px 18px rgba(224, 101, 72, 0.22);
  font-size: 14px;
  font-weight: 900;
}

.outer-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  align-items: end;
}

.outer-filter .field {
  gap: 4px;
  margin: 0;
}

.outer-filter select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.feature-strip {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: grab;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.feature-strip::-webkit-scrollbar {
  display: none;
}

.feature-strip.dragging {
  cursor: grabbing;
}

.feature-track {
  display: flex;
  gap: 8px;
  width: max-content;
  padding: 6px;
  will-change: scroll-position;
}

.feature-item {
  position: relative;
  width: 100px;
  min-height: 154px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 4px;
  overflow: hidden;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 6px 16px rgba(57, 91, 118, 0.12);
  text-align: left;
}

.feature-item .tea-code {
  top: 7px;
  right: 7px;
  min-width: 32px;
  font-size: 8px;
  padding: 1px 4px;
}

.feature-img-wrap {
  position: relative;
  justify-self: center;
  width: 72%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #f7f2e9;
}

.feature-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.feature-info .tea-name {
  justify-self: start;
  max-width: 100%;
  margin: 0;
  padding: 1px 4px;
  font-size: 9px;
  line-height: 1.25;
}

.feature-meta,
.feature-hot {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.feature-hot {
  color: #cf2f40;
  font-weight: 900;
}

.feature-more {
  display: inline-flex;
  justify-content: center;
  min-height: 18px;
  align-items: center;
  padding: 0 4px;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(135deg, var(--leaf), #2f7561);
  font-size: 9px;
  font-weight: 900;
}

@keyframes featureScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

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

  50% {
    transform: translate3d(28px, 18px, 40px) scale(1.12);
  }
}

@keyframes loginFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-22px) scale(1.08);
  }
}

@keyframes loginRing {
  from {
    transform: rotateX(64deg) rotateZ(0deg);
  }

  to {
    transform: rotateX(64deg) rotateZ(360deg);
  }
}

.tea-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 6px;
}

.clickable-card {
  cursor: pointer;
}

.clickable-card:active {
  transform: scale(0.995);
}

.tea-main {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 7px;
  padding: 7px;
}

.tea-info {
  min-width: 0;
  padding-right: 56px;
}

.tea-img-wrap {
  position: relative;
  width: 82px;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #f7f2e9;
  overflow: hidden;
}

.tea-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tea-name {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0 0 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.meta {
  color: var(--muted);
  font-size: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.tag {
  padding: 3px 6px;
  border-radius: 5px;
  color: #875900;
  background: #fff1cf;
  font-size: 11px;
  font-weight: 800;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border-top: 1px dashed var(--gold);
  flex-wrap: nowrap;
}

.hot {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #cf2f40;
  font-weight: 900;
  font-size: 10px;
  white-space: nowrap;
}

.action-group {
  display: flex;
  gap: 3px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
}

.action-group .mini,
.action-group .secondary {
  min-height: 20px;
  padding: 0 5px;
  border-radius: 5px;
  font-size: 9px;
  white-space: nowrap;
}

.tabbar {
  position: fixed;
  left: auto;
  right: 0;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: 44px;
  height: auto;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  padding: 8px 5px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  z-index: 35;
  overflow: visible;
  box-shadow: 0 10px 26px rgba(61, 118, 95, 0.18);
}

.tabbar.is-hidden {
  opacity: 0.78;
  transform: translate(44px, -50%);
}

.tab-handle {
  position: absolute;
  left: -18px;
  top: 50%;
  width: 20px;
  height: 52px;
  transform: translateY(-50%);
  border-radius: 999px 0 0 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--leaf);
  box-shadow: -4px 8px 18px rgba(61, 118, 95, 0.14);
  font-size: 18px;
  font-weight: 900;
}

.tab-action {
  background: rgba(255, 255, 255, 0.9);
  color: #789087;
  font-weight: 800;
  font-size: 10px;
  line-height: 1.05;
  min-height: 66px;
  width: 32px;
  padding: 7px 0;
  border-radius: 999px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.tabbar.is-hidden .tab-action {
  opacity: 0;
  pointer-events: none;
}

.tabbar .active {
  background: linear-gradient(180deg, #e7fff2, #f9f6d2);
  color: var(--leaf);
}

.ai-float {
  position: fixed;
  left: calc(100vw - 66px);
  top: calc(100vh - 120px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  z-index: 160;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 35% 25%, #f3fff9, #70c6a7 38%, #3b8a6f);
  box-shadow: 0 10px 24px rgba(53, 128, 100, 0.28);
  cursor: grab;
  font-size: 13px;
  font-weight: 900;
  touch-action: none;
  user-select: none;
}

.detail-avatar-float {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  top: max(64px, calc(env(safe-area-inset-top) + 54px));
  z-index: 26;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(38, 53, 48, 0.22);
  overflow: visible;
}

.detail-avatar-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.detail-media {
  position: relative;
}

.honor-badge {
  position: absolute;
  left: 5px;
  top: 5px;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: radial-gradient(circle at 28% 24%, #fff 0, #fff7bd 24%, #f8c542 52%, #c88710 100%);
  box-shadow: 0 0 10px rgba(255, 210, 82, 0.8), 0 0 18px rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1;
  animation: honorSparkle 1.35s ease-in-out infinite;
}

.honor-badge.diamond {
  background: radial-gradient(circle at 26% 20%, #fff 0, #e9fbff 24%, #7dd9ff 58%, #2987c5 100%);
  box-shadow: 0 0 10px rgba(105, 213, 255, 0.9), 0 0 18px rgba(255, 255, 255, 0.72);
}

.honor-badge.star {
  background: radial-gradient(circle at 28% 24%, #fff 0, #fff5a6 24%, #f7c62f 58%, #b77808 100%);
  box-shadow: 0 0 8px rgba(255, 215, 74, 0.9), 0 0 17px rgba(255, 247, 184, 0.8);
}

.honor-badge.moon {
  background: radial-gradient(circle at 28% 24%, #fff 0, #e9eeff 26%, #93a8e8 60%, #5366a4 100%);
  box-shadow: 0 0 9px rgba(173, 190, 255, 0.95), 0 0 18px rgba(238, 242, 255, 0.78);
}

.honor-badge.sun {
  background: radial-gradient(circle at 28% 24%, #fff 0, #fff1a6 22%, #ff9f30 58%, #d85a12 100%);
  box-shadow: 0 0 10px rgba(255, 157, 47, 0.95), 0 0 19px rgba(255, 224, 127, 0.82);
}

.honor-badge.crown {
  background: radial-gradient(circle at 28% 24%, #fff 0, #fff1a0 22%, #e7aa20 56%, #8e5707 100%);
  box-shadow: 0 0 11px rgba(255, 199, 58, 0.98), 0 0 21px rgba(255, 242, 169, 0.86);
}

.member-honor {
  left: auto;
  right: -6px;
  top: -7px;
  min-width: 22px;
  height: 22px;
  font-size: 13px;
}

.detail-avatar-float .honor-badge,
.profile-honor {
  left: auto;
  right: -9px;
  top: -9px;
  min-width: 25px;
  height: 25px;
  font-size: 14px;
}

@keyframes honorSparkle {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.12) rotate(-4deg);
    filter: brightness(1.22);
  }
}

.ai-float > span:first-child {
  font-size: 0;
  line-height: 1;
  pointer-events: none;
}

.ai-float > span:first-child::before {
  content: "AI";
  font-size: 13px;
}

.ai-badge {
  position: absolute;
  right: -2px;
  top: -4px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: #e83b4b;
  font-size: 10px;
  box-shadow: 0 4px 10px rgba(232, 59, 75, 0.28);
}

.ai-float.dragging {
  cursor: grabbing;
  transform: scale(1.05);
  box-shadow: 0 14px 30px rgba(53, 128, 100, 0.34);
}

@media (min-width: 700px) {
  .ai-float {
    left: calc(100vw - 124px);
    top: calc(100vh - 96px);
    width: 96px;
    height: 46px;
    border-radius: 999px;
    font-size: 14px;
  }

  .ai-float > span:first-child {
    font-size: 14px;
  }

  .ai-float > span:first-child::before {
    content: "";
    font-size: 0;
  }
}


.profile-hero {
  min-height: 210px;
  background: url("https://images.unsplash.com/photo-1515823064-d6e0c04616a7?auto=format&fit=crop&w=900&q=80") center/cover;
}

.profile-card {
  margin: -52px 14px 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-avatar-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-avatar-stage {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: visible;
}

.profile-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  background: #edf7f2;
  border: 3px solid #fff4d8;
  box-shadow: 0 8px 20px rgba(53, 98, 86, 0.18);
}

.avatar-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--leaf);
  background: #edf7f2;
  font-size: 12px;
  font-weight: 900;
}

.avatar-upload input {
  display: none;
}

.profile-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.profile-title h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.profile-title span {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--leaf);
  font-size: 12px;
  font-weight: 900;
}

.profile-card.level-vip h2 { color: #d8772d; }
.profile-card.level-svip h2 { color: #9a6741; }
.profile-card.level-ssvip h2 { color: #7f8791; }
.profile-card.level-sssvip h2 { color: #bf8c18; }
.profile-card.level-blackgold h2 { color: #1f1a16; }

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.invite-qr {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.invite-qr img {
  width: min(220px, 72vw);
  height: auto;
}

.invite-qr small {
  color: var(--muted);
}

.settings-card {
  margin: 0 14px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.settings-toggle {
  width: 100%;
  min-height: 50px;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.settings-body {
  padding: 0 14px 14px;
}

.settings-body h3 {
  margin: 12px 0 8px;
  font-size: 15px;
}

.theme-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.theme-picker button {
  min-height: 36px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.theme-picker .active {
  color: #fff;
  background: var(--leaf);
}

.points-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.recharge-btn {
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  color: #7a4a00;
  background: linear-gradient(180deg, #ffe08a, #f4a51c);
  box-shadow: 0 4px 12px rgba(175, 105, 10, 0.2);
}

.invite-link {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.menu {
  margin: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.menu button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

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

.detail-media {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
}

.nav-card {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.nav-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  text-decoration: none;
}

.detail-img,
.detail-video {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f2e9;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 18px;
}

.detail-gallery img {
  width: 100%;
  max-height: 520px;
  aspect-ratio: auto;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f2e9;
}

.detail-body {
  padding: 16px;
  touch-action: pan-y;
}

.detail-info-text {
  margin: 10px 0;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border-left: 3px solid var(--accent);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.detail-shell {
  touch-action: pan-y;
}

.detail-head {
  position: relative;
  padding-top: 4px;
}

.info-text {
  white-space: pre-wrap;
  line-height: 1.65;
}

.comment {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.comment-img {
  display: block;
  width: min(180px, 70vw);
  max-height: 240px;
  margin-top: 8px;
  border-radius: 8px;
  object-fit: contain;
  background: #f2f6f3;
}

.comment-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.comment-actions button,
.review-image-preview button {
  min-height: 26px;
  padding: 0 9px;
  color: #fff;
  background: #d44444;
  font-size: 12px;
}

.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%);
  z-index: 20;
  max-width: min(360px, calc(100vw - 40px));
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
}

.tea-code {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-block;
  min-width: 44px;
  padding: 3px 8px;
  border: 0;
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  background: #fff;
  cursor: pointer;
  line-height: 1.45;
  box-shadow: 0 6px 16px rgba(30, 32, 35, 0.12);
}

.tea-code:active {
  transform: scale(0.96);
}

.detail-head .tea-code {
  position: static;
  display: inline-flex;
  margin-bottom: 8px;
}

.tea-code.diamond {
  color: #174c27;
  background: linear-gradient(135deg, #e7f8cf, #6fbf4a);
}

.tea-name.diamond {
  color: #174c27;
  background: linear-gradient(135deg, #e7f8cf, #6fbf4a);
}

.tea-code.gold {
  color: #875900;
  background: linear-gradient(135deg, #fff3bf, #f4a51c);
}

.tea-name.gold {
  color: #875900;
  background: linear-gradient(135deg, #fff3bf, #f4a51c);
}

.tea-code.purple {
  color: #fff;
  background: linear-gradient(135deg, #9a63ff, #5a2bbf);
}

.tea-name.purple {
  color: #fff;
  background: linear-gradient(135deg, #9a63ff, #5a2bbf);
}

.tea-code.pink {
  color: #8d1742;
  background: linear-gradient(135deg, #ffd6e5, #f65f9a);
}

.tea-name.pink {
  color: #8d1742;
  background: linear-gradient(135deg, #ffd6e5, #f65f9a);
}

.review-btn {
  color: #fff;
  background: linear-gradient(135deg, #9a63ff, #6327c9);
}

.dealer-row {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.dealer-row-avatar {
  width: 34px;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  object-fit: cover;
  background: #edf3ef;
}

.dealer-row .tea-code {
  position: static;
  margin-right: 4px;
  font-size: 9px;
  padding: 2px 5px;
}

.dealer-toolbar {
  margin-bottom: 10px;
}

.dealer-filter {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.dealer-filter input,
.dealer-filter select {
  min-width: 0;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 6px;
  background: #fff;
  font-size: 11px;
}

.dealer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  min-width: 88px;
}

.dealer-actions button,
.dealer-actions .pinned-label {
  min-height: 20px;
  padding: 0 5px;
  font-size: 9px;
}

.dealer-support-panel {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.dealer-auto-panel {
  margin: 8px 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.dealer-auto-modal {
  place-items: center;
  padding: 0;
}

.dealer-auto-card {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
}

.dealer-auto-head {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 8px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.dealer-auto-head h3 {
  margin: 0;
  font-size: 17px;
  text-align: center;
}

.dealer-auto-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
}

.dealer-auto-form input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
}

.dealer-auto-list {
  display: grid;
  gap: 6px;
  min-height: 0;
  overflow: auto;
  margin-top: 4px;
  padding-bottom: 10px;
}

.dealer-auto-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}

.dealer-auto-item strong {
  color: var(--leaf);
}

.dealer-auto-item span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.dealer-auto-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dealer-auto-actions button {
  flex: 1;
}

.wide-action {
  width: 100%;
  margin-top: 8px;
}

.password-settings {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.message-tone-settings {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  align-items: center;
  margin: 8px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.message-tone-settings h3,
.message-tone-settings p {
  grid-column: 1 / -1;
  margin: 0;
}

.tone-upload {
  min-height: 34px;
}

.dealer-message {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.dealer-message small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.dealer-message p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.dealer-message img,
.dealer-message video {
  width: min(160px, 100%);
  max-height: 180px;
  object-fit: contain;
  border-radius: 6px;
  background: #f2f6f3;
}

.review-image-preview img {
  display: block;
  width: min(160px, 70vw);
  max-height: 200px;
  margin-bottom: 6px;
  object-fit: contain;
  border-radius: 8px;
  background: #f2f6f3;
}

.pinned-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: #27a36b;
  font-size: 9px;
  font-weight: 900;
}

.dealer-modal {
  place-items: start center;
  align-items: start;
  padding: max(10px, env(safe-area-inset-top)) 12px 12px;
  overflow: hidden;
}

.dealer-modal.fullscreen-modal {
  display: grid;
  place-items: stretch;
  padding: 0;
}

.modal-card.dealer-card {
  width: min(520px, 100%);
  max-height: calc(100vh - 20px);
  max-height: calc(100dvh - 20px);
  overflow: auto;
  padding: 16px;
  overscroll-behavior: contain;
  box-shadow: 0 18px 42px rgba(38, 92, 74, 0.22);
}

.fullscreen-modal .dealer-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  padding: max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom));
  border-radius: 0;
  overflow: hidden;
}

.dealer-card h3 {
  margin: 0 0 10px;
}

.dealer-modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  background: #fff;
}

.dealer-modal-head span {
  font-size: 18px;
}

.dealer-form-scroll {
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.dealer-modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 10px;
  padding-top: 10px;
  background: #fff;
}

.dealer-preview,
.dealer-media-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.dealer-media-item {
  position: relative;
}

.dealer-preview img,
.dealer-media-list img,
.dealer-media-list video {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 8px;
  background: #f6f7f4;
}

.dealer-media-item button {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #e84b5f, #b91f33);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(185, 31, 51, 0.24);
}

.dealer-preview small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.dealer-upload-status {
  min-height: 22px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 800;
}

.dealer-tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.dealer-tag-picker label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8faf8;
  font-size: 12px;
}

.dealer-tag-picker input {
  width: auto;
}

.dealer-lock-note {
  padding: 8px 10px;
  border: 1px solid rgba(77, 139, 118, 0.28);
  border-radius: 8px;
  background: rgba(225, 245, 235, 0.72);
  color: #2f705c;
  font-size: 12px;
  font-weight: 700;
}

.danger {
  color: #fff;
  background: #d44444;
}

.confirm-cost {
  margin: 12px 0;
  padding: 12px;
  border-radius: 8px;
  color: #9a4d10;
  background: #fff4d8;
  font-weight: 900;
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.42);
}

.modal.dealer-modal {
  place-items: start center;
  align-items: start;
  padding: max(8px, env(safe-area-inset-top)) 12px 12px;
  overflow: hidden;
}

.modal.dealer-modal.fullscreen-modal {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--dealer-modal-top, 0px);
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  place-items: stretch;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.modal.dealer-modal.fullscreen-modal .dealer-card {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  border-radius: 0;
}

.modal.confirm-modal {
  place-items: start center;
  align-items: start;
  padding: max(8px, env(safe-area-inset-top)) 18px 18px;
}

.modal-card.confirm-card {
  width: min(320px, calc(100vw - 48px));
  max-height: min(72vh, 360px);
  padding: 16px;
  text-align: center;
  box-shadow: 0 18px 42px rgba(30, 54, 48, 0.26);
}

.fullscreen-modal {
  place-items: center;
  padding: max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom));
}

.fullscreen-modal .full-modal-card {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
}

.confirm-modal.fullscreen-modal .confirm-card,
.review-modal.fullscreen-modal .review-card {
  width: min(520px, calc(100vw - 24px));
  min-height: min(520px, calc(100dvh - 24px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal.confirm-modal.book-monet-modal {
  place-items: center;
  align-items: center;
  padding: max(12px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 245, 210, 0.92), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(165, 214, 230, 0.86), transparent 30%),
    radial-gradient(circle at 70% 78%, rgba(238, 168, 186, 0.82), transparent 34%),
    linear-gradient(135deg, rgba(245, 238, 222, 0.96), rgba(229, 244, 240, 0.96));
}

.booking-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 99999;
  overscroll-behavior: contain;
}

.book-monet-card {
  position: relative;
  width: min(360px, calc(100vw - 28px)) !important;
  max-width: 360px !important;
  min-height: auto;
  max-height: calc(100dvh - 28px) !important;
  padding: 22px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 12%, rgba(255, 255, 255, 0.86), transparent 26%),
    linear-gradient(145deg, rgba(255, 246, 224, 0.96), rgba(224, 244, 240, 0.96) 58%, rgba(244, 220, 228, 0.96));
  box-shadow: 0 22px 58px rgba(31, 52, 48, 0.28);
}

.book-monet-orbit {
  position: absolute;
  inset: -30px -18px auto;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.75), transparent 65%);
  filter: blur(1px);
  animation: softPulse 3.8s ease-in-out infinite;
}

.book-monet-avatar {
  position: relative;
  z-index: 1;
  width: min(38vw, 138px);
  aspect-ratio: 1;
  margin: 0 auto 12px;
  border: 5px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 22px 50px rgba(55, 74, 67, 0.22);
}

.book-monet-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 8px 8px;
  color: #243f55;
  font-size: 20px;
  text-align: center;
}

.book-monet-card .confirm-cost {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 10px auto 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #7b4d17;
  background: rgba(255, 250, 232, 0.72);
  backdrop-filter: blur(8px);
}

.book-monet-card .modal-actions {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
}

.order-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.route-btn {
  background: #4a9a7b;
}

@keyframes softPulse {
  0%, 100% { transform: scale(0.96); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; }
}

.confirm-card h3 {
  margin: 0 0 8px;
}

.support-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  place-items: center;
  align-items: center;
  padding: 0;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #f5f5f1;
  overscroll-behavior: none;
  touch-action: auto;
}

.support-modal .modal-card {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  border-radius: 0;
  box-shadow: none;
}

.support-modal::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #f5f5f1;
}

.assistant-modal {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  place-items: start center;
  padding: max(12px, env(safe-area-inset-top)) 14px 14px;
  overflow: hidden;
}

.modal-card {
  width: min(520px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
}

.modal.anchored-modal {
  display: block;
}

.modal.anchored-modal .modal-card {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  transform: translate(-50%, -50%);
}

.modal.anchored-modal .confirm-card {
  width: min(320px, calc(100vw - 48px));
}

.modal-actions,
.support-head,
.support-send {
  display: flex;
  gap: 8px;
  align-items: center;
}

.assistant-card {
  max-width: 440px;
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  padding: 16px;
  overscroll-behavior: contain;
  box-shadow: 0 18px 42px rgba(38, 92, 74, 0.22);
  background:
    radial-gradient(circle at 18% 15%, rgba(232, 255, 246, 0.95) 0 22px, transparent 23px),
    radial-gradient(circle at 85% 20%, rgba(226, 245, 255, 0.78) 0 28px, transparent 29px),
    #fff;
}

.assistant-head h3 {
  margin: 0 0 5px;
  font-size: 20px;
  color: #245c4b;
}

.assistant-head .muted {
  margin: 0;
  line-height: 1.45;
  font-size: 12px;
}

.assistant-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 10px;
}

.assistant-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 10px;
}

.assistant-menu button {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(38, 92, 74, 0.13);
}

.assistant-consult {
  background: linear-gradient(135deg, #2bb889, #16765f);
}

.assistant-profile {
  background: linear-gradient(135deg, #4aaee8, #266fac);
}

.assistant-order {
  background: linear-gradient(135deg, #f4b64b, #cc7828);
}

.assistant-fav {
  background: linear-gradient(135deg, #ff7da7, #d54278);
}

.assistant-dealer {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #9b72ff, #6b43c8);
}

.assistant-btn,
.assistant-close {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(38, 92, 74, 0.13);
}

.assistant-record {
  background: linear-gradient(135deg, #3fb985, #20785d);
}

.assistant-search {
  background: linear-gradient(135deg, #4aaee8, #266fac);
}

.assistant-query {
  background: linear-gradient(135deg, #f4b64b, #cc7828);
}

.assistant-smart {
  background: linear-gradient(135deg, #9b72ff, #6b43c8);
}

.assistant-close {
  width: 100%;
  margin-top: 10px;
  color: #6b6a63;
  background: #f1efe8;
  box-shadow: none;
}

.nav-choice-modal {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--nav-modal-top, 0px);
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  place-items: stretch;
  background:
    radial-gradient(circle at 18% 16%, rgba(145, 220, 196, 0.46) 0 58px, transparent 60px),
    radial-gradient(circle at 80% 26%, rgba(255, 213, 145, 0.38) 0 70px, transparent 72px),
    radial-gradient(circle at 50% 86%, rgba(145, 185, 255, 0.38) 0 86px, transparent 88px),
    linear-gradient(160deg, rgba(250, 253, 248, 0.98), rgba(232, 244, 255, 0.96));
}

.nav-choice-card {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 18px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 54px rgba(35, 78, 96, 0.18);
  backdrop-filter: blur(14px);
}

.nav-choice-card h3 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 24px;
  color: #24473f;
}

.nav-choice-card .muted {
  margin: 0 auto 20px;
  width: min(310px, 92%);
  text-align: center;
  line-height: 1.5;
  color: #687269;
}

.nav-choice-menu {
  width: min(360px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.nav-choice-menu .assistant-btn {
  min-height: 112px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 17px;
  letter-spacing: 0;
  transform: translateZ(0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 14px 24px rgba(33, 70, 82, 0.18);
}

.nav-choice-menu .amap {
  background: radial-gradient(circle at 28% 18%, #baf7d6, #31c56d 48%, #13934b 100%);
}

.nav-choice-menu .baidu {
  background: radial-gradient(circle at 28% 18%, #b8d7ff, #367cff 50%, #1f45c9 100%);
}

.nav-choice-menu .tencent {
  background: radial-gradient(circle at 28% 18%, #b9fff3, #22c7b9 50%, #138484 100%);
}

.nav-choice-menu .google {
  background:
    radial-gradient(circle at 26% 22%, rgba(255, 255, 255, 0.62), transparent 34%),
    conic-gradient(from 20deg, #4285f4, #34a853, #fbbc05, #ea4335, #4285f4);
}

.nav-choice-menu .custom {
  grid-column: 1 / -1;
  min-height: 68px;
  background: radial-gradient(circle at 28% 18%, #ffe4c2, #d89b46 50%, #8d5a20 100%);
}

.nav-choice-card .assistant-close {
  width: min(360px, 100%);
  margin: 20px auto 0;
  min-height: 46px;
  border-radius: 999px;
}

.ai-filters {
  grid-template-columns: 1fr 1fr 1fr;
  margin: 10px 0;
}

.ai-filters select:nth-last-child(-n + 2) {
  grid-column: span 3;
}

.support-contacts {
  margin-top: 8px;
}

.assistant-card .field {
  margin: 10px 0;
}

.assistant-card input,
.assistant-card select {
  min-height: 42px;
  border-radius: 8px;
}

.muted {
  color: var(--muted);
}

.chat-list {
  display: grid;
  gap: 0;
  max-height: none;
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf9f5;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
}

.chat-modal .chat-card {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  border-radius: 0;
  overflow: hidden;
  background: #f5f5f1;
  overscroll-behavior: none;
}

.chat-head {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.chat-head h3 {
  margin: 0;
  font-size: 16px;
  text-align: center;
}

.chat-back {
  min-height: 36px;
  border-radius: 50%;
  color: var(--leaf);
  background: #edf7f2;
  font-size: 28px;
  line-height: 1;
}

.conversation-list,
.thread-list {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overscroll-behavior: none;
  touch-action: pan-y;
}

.conversation-row {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.conversation-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-block;
}

.conversation-avatar img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #edf7f2;
}

.chat-honor-wrap {
  position: absolute;
  top: -9px;
  z-index: 4;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.chat-pack.mine .chat-honor-wrap {
  right: -27px;
}

.chat-pack.theirs .chat-honor-wrap {
  left: -27px;
}

.chat-honor {
  left: 0;
  top: 0;
  min-width: 22px;
  height: 22px;
  padding: 0 3px;
  font-size: 12px;
}

.conversation-badge {
  position: absolute;
  right: -3px;
  top: -5px;
  min-width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #e83b4b;
  font-size: 10px;
  font-style: normal;
  line-height: 1;
}

.conversation-row strong,
.conversation-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-row small,
.conversation-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.conversation-row .conversation-badge {
  color: #fff;
  font-size: 10px;
  font-style: normal;
}

.detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.detail-actions .nav-btn {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  font-size: 13px;
}

.consult-btn {
  background: linear-gradient(135deg, #36b986, #1f775d);
}

.contact-info,
.contact-banner,
.fallback-chat {
  display: block;
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef8f1;
  color: #1f775d;
  font-size: 13px;
  font-weight: 800;
}

.fallback-chat {
  background: #fff3d7;
  color: #9a5b12;
  text-align: center;
}

.chat-row {
  display: flex;
  width: 100%;
  margin: 0;
  line-height: 1.08;
}

.chat-row.mine {
  justify-content: flex-end;
}

.chat-row.theirs {
  justify-content: flex-start;
}

.chat-row.system {
  justify-content: center;
}

.chat-pack {
  position: relative;
  max-width: 70vw;
  display: inline-flex;
  flex-direction: column;
  gap: 0;
}

.chat-pack.mine {
  align-items: flex-end;
}

.chat-pack.theirs {
  align-items: flex-start;
}

.chat-pack.actionable {
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.chat {
  width: auto;
  max-width: 100%;
  display: inline-flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.08;
  box-shadow: 0 2px 8px rgba(38, 53, 48, 0.08);
}

.chat-row.mine .chat {
  border-top-right-radius: 4px;
}

.chat-row.theirs .chat {
  border-top-left-radius: 4px;
}

.chat.admin {
  background: #ffe9e7;
  border: 1px solid #ffc9c3;
  color: #7a241e;
}

.chat.member {
  background: #dff7d9;
  border: 1px solid #bdeeb6;
  color: #1e5d2a;
}

.chat.system {
  max-width: 78%;
  width: fit-content;
  padding: 2px 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(38, 53, 48, 0.1);
  color: rgba(38, 53, 48, 0.62);
  box-shadow: none;
  font-size: 12px;
  line-height: 1.15;
  text-align: center;
}

.chat p {
  display: block;
  margin: 0;
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.08;
}

.chat small {
  display: none;
  margin-bottom: 0;
  color: rgba(38, 53, 48, 0.55);
  font-size: 12px;
}

.chat-media {
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
}

.redpacket-btn {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f54545, #ff9d42);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(230, 63, 48, 0.25);
}

.redpacket-card {
  display: grid;
  gap: 3px;
  width: min(170px, 72vw);
  margin-top: 2px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, #e93636, #ff8a39 68%, #ffd36a);
  color: #fff;
  text-align: left;
  box-shadow: 0 8px 22px rgba(210, 49, 37, 0.25), inset 0 1px rgba(255, 255, 255, 0.38);
}

.redpacket-card strong {
  font-size: 18px;
}

.redpacket-card small {
  display: block;
  color: rgba(255, 255, 255, 0.88);
}

.redpacket-card.accepted {
  background: linear-gradient(145deg, #c9b07a, #e3d0a0);
  color: #6c4e1f;
}

.redpacket-glow {
  width: max-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  animation: honorSparkle 1.2s ease-in-out infinite;
}

.chat-media span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.chat img,
.chat video,
.chat-media img,
.chat-media video {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 6px;
}

.media-preview-modal {
  z-index: 180;
  padding: 0;
  background: rgba(0, 0, 0, 0.86);
}

.media-preview-card {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(48px, env(safe-area-inset-top)) 10px max(20px, env(safe-area-inset-bottom));
}

.media-preview-card img,
.media-preview-card video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.media-preview-close {
  position: fixed;
  right: 14px;
  top: max(12px, env(safe-area-inset-top));
  z-index: 1;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.chat-action-layer {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: transparent;
}

.chat-action-menu {
  position: fixed;
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(32, 42, 38, 0.92);
  box-shadow: 0 8px 22px rgba(20, 30, 26, 0.2);
}

.chat-action-menu button {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: transparent;
  font-size: 12px;
}

.chat-action-menu button:active {
  background: rgba(255, 255, 255, 0.16);
}

.conversation-action-menu {
  border-radius: 18px;
}

.conversation-action-menu button {
  white-space: nowrap;
}

.app-download-btn {
  position: relative;
  overflow: visible;
}

.update-badge {
  position: absolute;
  right: -8px;
  top: -9px;
  min-width: 30px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #e83b4b;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(232, 59, 75, 0.28);
}

.update-badge.ios {
  background: #2f73ff;
}

.dealer-reply-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 8px;
}

.dealer-reply-row input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
}

.welcome-modal {
  backdrop-filter: blur(4px);
  place-items: start center;
  padding-top: 58px;
}

.welcome-card {
  position: relative;
  width: min(420px, 100%);
  overflow: hidden;
  padding: 30px 22px 22px;
  border-radius: 8px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.24), transparent 32%),
    linear-gradient(135deg, #e32134 0%, #6020d8 48%, #0b63ff 100%);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.3);
}

.welcome-card.vip {
  background: linear-gradient(135deg, #ff9f35, #ff5a1d);
}

.welcome-card.svip {
  background: linear-gradient(135deg, #b87333, #6f3f1e);
}

.welcome-card.ssvip {
  color: #1f2730;
  background: linear-gradient(135deg, #f6f8fb, #aab4c1);
}

.welcome-card.sssvip {
  color: #5c3500;
  background: linear-gradient(135deg, #fff1a8, #d89412);
}

.welcome-card.blackgold {
  background: linear-gradient(135deg, #101010, #2a2011 55%, #d8a641);
}

.welcome-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.welcome-flash span {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  animation: welcomePulse 1.8s ease-out infinite;
}

.welcome-flash span:nth-child(2) {
  animation-delay: 0.45s;
}

.welcome-flash span:nth-child(3) {
  animation-delay: 0.9s;
}

.welcome-core {
  position: relative;
  z-index: 1;
  padding: 26px 0 30px;
}

.welcome-core small {
  font-weight: 900;
  letter-spacing: 0;
  opacity: 0.8;
}

.welcome-core h2 {
  margin: 8px 0;
  font-size: 34px;
}

.welcome-logo {
  display: inline-block;
  max-width: 100%;
  color: transparent;
  background: linear-gradient(118deg, #ff3149 6%, #ffffff 38%, #2d7cff 68%, #062d91 96%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(30px, 9vw, 46px);
  line-height: 1.05;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    2px 3px 0 rgba(5, 33, 116, 0.24),
    0 12px 28px rgba(0, 0, 0, 0.28);
}

.welcome-core h3 {
  margin: 8px 0 0;
  font-size: 18px;
}

.welcome-card .primary {
  position: relative;
  z-index: 1;
  min-width: 160px;
  color: #1c1c1c;
  background: #fff;
}

@keyframes welcomePulse {
  0% {
    transform: scale(0.72);
    opacity: 0.9;
  }

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

.support-send {
  margin-top: 10px;
  flex-wrap: wrap;
  flex: 0 0 auto;
  padding-bottom: max(0px, env(safe-area-inset-bottom));
  background: #f5f5f1;
}

.support-send input {
  flex: 1;
  min-width: 160px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--leaf);
  background: #e8f3ed;
  font-weight: 800;
}

.upload-btn input {
  display: none;
}

@media (max-width: 640px) {
  .dealer-auto-form,
  .dealer-auto-item {
    grid-template-columns: 1fr;
  }

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

  .outer-filter select {
    min-height: 38px;
    padding: 0 6px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .tea-main {
    grid-template-columns: 76px 1fr;
  }

  .tea-img-wrap {
    width: 76px;
  }

  .tea-info {
    padding-right: 52px;
  }

  .card-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}
