: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;
}

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.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);
}

.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;
}

.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;
  font-size: 8px;
  padding: 1px 4px;
}

.feature-img-wrap {
  width: 100%;
  aspect-ratio: 9 / 16;
  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;
}

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

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

.tea-img-wrap {
  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: 6px;
  padding: 5px 7px;
  border-top: 1px dashed var(--gold);
}

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

.action-group {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.action-group .mini,
.action-group .secondary {
  min-height: 22px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 10px;
}

.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: block;
  margin: 0;
  z-index: 40;
  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;
}

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


.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-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-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);
}

.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;
  min-width: 44px;
  padding: 3px 8px;
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  background: #fff;
}

.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: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.dealer-row .tea-code {
  position: static;
  margin-right: 8px;
}

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

.dealer-actions {
  display: grid;
  gap: 6px;
  min-width: 82px;
}

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

.dealer-modal {
  place-items: start center;
  padding: 12px;
  overflow: hidden;
}

.dealer-card {
  width: min(520px, 100%);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 16px;
}

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

.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;
}

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

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

.support-modal .modal-card {
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overscroll-behavior: contain;
}

.voice-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-actions,
.support-head,
.support-send {
  display: flex;
  gap: 8px;
  align-items: center;
}

.voice-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;
}

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

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

.voice-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);
}

.voice-btn,
.voice-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);
}

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

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

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

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

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

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

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

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

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

.chat-list {
  display: grid;
  gap: 10px;
  max-height: 44vh;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf9f5;
}

.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 {
  max-width: 82%;
  padding: 9px;
  border-radius: 8px;
  background: #fff;
}

.chat.admin {
  justify-self: start;
  border: 1px solid #d7eadf;
}

.chat.member {
  justify-self: end;
  border: 1px solid #ffe0ab;
}

.chat p {
  margin: 6px 0;
}

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

.chat-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 8px;
}

.chat-actions button {
  min-height: 26px;
  padding: 0 8px;
  color: var(--leaf);
  background: #e8f3ed;
  font-size: 12px;
}

.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;
}

.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) {
  .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;
  }
}
