:root {
  color-scheme: light;
  --bg: #f5f6fa;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --text: #1a1a2e;
  --muted: #8e8ea0;
  --line: rgba(0, 0, 0, 0.06);
  --primary: #6c5ce7;
  --primary-2: #a29bfe;
  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #ff6b6b;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  color-scheme: light;
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family:
    "SF Pro Display",
    "PingFang SC",
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  color-scheme: light;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.phone-shell {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  overflow: hidden;
}

.phone-shell__camera {
  display: none;
}

.page-loading {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 8px 14px;
  border: 1px solid rgba(108, 92, 231, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.14);
  pointer-events: none;
}

.page-loading__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(108, 92, 231, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.screen {
  padding: 12px 16px 110px;
  animation: fadeIn 0.2s ease;
}

.screen--detail {
  padding-bottom: 104px;
}

.login-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0;
  background: linear-gradient(180deg, #3c096c 0%, #240046 45%, #0a0011 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* 启动加载页 —— 标题/spinner/副标题三件套居中 */
.boot-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0;
  background: linear-gradient(180deg, #3c096c 0%, #240046 45%, #0a0011 100%);
  color: #fff;
}

.boot-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 24px;
  text-align: center;
}

.boot-title {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 3.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 4px 28px rgba(108, 92, 231, 0.45);
}

.boot-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

.boot-subtitle {
  margin: 0;
  font-size: 14px;
  opacity: 0.72;
  color: #fff;
  letter-spacing: 0.5px;
}

.login-guest {
  position: absolute;
  top: 32px;
  right: 24px;
  font-size: 14px;
  opacity: 0.8;
  cursor: pointer;
  z-index: 2;
}

.login-guest code {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.login-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 0 24px;
  max-width: 448px;
  margin: 0 auto;
  width: 100%;
}

.login-header {
  margin-bottom: 64px;
}

.login-title {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.login-subtitle {
  margin: 16px 0 0;
  font-size: clamp(1rem, 3vw, 1.25rem);
  opacity: 0.7;
  color: #fff;
}

.login-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.login-input-box {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.login-input-prefix {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
  flex-shrink: 0;
  font-size: 18px;
  color: #fff;
}

.login-input-box input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  color: #fff;
  font-size: 18px;
  padding: 0;
}

.login-input-box input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.login-send-code {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #fff;
  opacity: 0.9;
  font-size: 16px;
  white-space: nowrap;
  cursor: pointer;
  padding: 0;
  margin-left: 12px;
}

.login-send-code:active {
  opacity: 0.6;
}

.login-send-code:disabled {
  cursor: default;
  opacity: 0.45;
}

.login-hint {
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
  margin: 0 0 32px;
  color: #fff;
}

.login-hint-link {
  color: #f9a8d4;
}

.login-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 9999px;
  background: linear-gradient(90deg, #7b2cbf 0%, #ff4d94 55%, #ff9f43 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 32px;
  letter-spacing: 1px;
  transition: transform 0.15s, opacity 0.15s;
}

.login-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.login-agreement {
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  opacity: 0.8;
  gap: 0;
  margin: 0;
  color: #fff;
  line-height: 1.6;
}

.login-agreement input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  margin-right: 12px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #f472b6;
}

.login-agreement label {
  flex: 1;
}

.login-agreement a {
  color: #f9a8d4;
  text-decoration: none;
}

.topbar,
.sub-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

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

.topbar h2,
.sub-topbar h2,
.teacher-hero__title h2,
.profile-hero__body h3,
.section-card h3,
.hero-card h1 {
  margin: 0;
}

.topbar__eyebrow {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.soft-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(108, 92, 231, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.soft-badge--light {
  padding: 0;
  background: transparent;
}

.hero-card,
.section-card,
.gradient-panel,
.profile-hero {
  border: none;
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-card__eyebrow {
  opacity: 0.86;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 28px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.field input,
.search-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f8fc;
  color: var(--text);
  outline: none;
  font-size: 14px;
}

.field input:focus,
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
  background: #fff;
}

.field--row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.primary-btn,
.ghost-btn,
.icon-btn,
.text-btn {
  transition:
    transform 0.16s ease,
    opacity 0.16s ease,
    box-shadow 0.16s ease;
}

.primary-btn:active,
.ghost-btn:active,
.icon-btn:active,
.text-btn:active,
.bottom-nav button:active {
  transform: translateY(1px) scale(0.99);
}

.primary-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.primary-btn--small {
  width: auto;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
}

.ghost-btn {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
}

.text-btn {
  padding: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
}

.text-btn--danger {
  color: var(--danger);
}

.hint-box,
.meta-strip,
.token-box {
  margin-top: 14px;
  border-radius: 10px;
  background: #f8f8fc;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.meta-strip {
  display: flex;
  justify-content: space-between;
}

.gradient-panel {
  margin-bottom: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff;
}

.gradient-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.gradient-panel__head h3 {
  font-size: 18px;
  line-height: 1.5;
}

.score-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  font-size: 20px;
  font-weight: 800;
}

.tips-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.metrics-grid--mine {
  grid-template-columns: repeat(2, 1fr);
}

.metric {
  display: flex;
  min-height: 68px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
}

.metric--accent {
  background: rgba(108, 92, 231, 0.08);
  color: var(--text);
}

.metric__value {
  font-size: 18px;
  font-weight: 700;
}

.metric__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.section-card {
  margin-bottom: 14px;
  padding: 16px;
}

.section-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-card__head p,
.profile-hero__body p,
.teacher-hero__body p,
.list-row p,
.vip-card p,
.profile-card span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.rights-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.rights-summary__item {
  padding: 12px 10px;
  border-radius: 12px;
  background: #f8f8fc;
}

.rights-summary__item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}

.rights-summary__item strong {
  font-size: 18px;
}

.vip-note,
.long-copy {
  color: var(--muted);
  line-height: 1.68;
}

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

.feed-card,
.post-card,
.teacher-card,
.vip-card,
.profile-card,
.list-row {
  border: none;
  border-radius: 12px;
  background: var(--panel-strong);
  padding: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.teacher-card:active,
.feed-card:active,
.post-card:active {
  transform: scale(0.99);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.feed-card__meta,
.teacher-card__head,
.post-card__header,
.profile-card__head,
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feed-card__meta {
  justify-content: flex-start;
  margin-bottom: 12px;
}

.feed-card h4,
.teacher-card h4,
.vip-card h4,
.section-card h3 {
  margin: 0 0 6px;
}

.feed-card p,
.teacher-card__desc,
.post-card p {
  margin: 0;
  color: #32415f;
  line-height: 1.6;
}

.feed-card__tags,
.teacher-card__stats,
.post-card__header,
.profile-card__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  margin-top: 12px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(118, 87, 255, 0.12), rgba(74, 171, 255, 0.18)),
    linear-gradient(180deg, #f0f4ff, #edf6ff);
  color: var(--muted);
  font-weight: 700;
}

.post-images {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.post-image {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(118, 87, 255, 0.08);
}

.search-box {
  position: sticky;
  top: 0;
  z-index: 11;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row--filters {
  margin-top: 12px;
}

.chip,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(108, 92, 231, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.chip--solid {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.chip--toggle {
  border: 1px solid rgba(108, 92, 231, 0.12);
  background: #fff;
  color: var(--muted);
}

.chip--toggle.is-active {
  background: rgba(108, 92, 231, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.teacher-card__info {
  flex: 1;
}

.teacher-card__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.teacher-card__sub {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.teacher-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.laolao-screen {
  min-height: 100vh;
  padding: 0 0 96px;
  background: linear-gradient(180deg, #301050 0%, #150725 100%);
  color: #fff;
  overflow-x: hidden;
}

.laolao-screen .search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 8px;
}

.laolao-screen .search-input-wrapper {
  position: relative;
  flex: 1;
}

.laolao-screen .search-input {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 22px;
  padding: 0 16px 0 40px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 16px;
  outline: none;
}

.laolao-screen .search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.laolao-screen .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: #fff;
  opacity: 0.6;
  pointer-events: none;
}

.laolao-screen .search-btn {
  flex: 0 0 88px;
  height: 44px;
  border: none;
  border-radius: 22px;
  background: linear-gradient(90deg, #f857a6 0%, #ff5858 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.laolao-screen .laolao-tabs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 16px;
}

.laolao-screen .laolao-tabs-row .nav-tabs {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
}

.laolao-screen .nav-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 16px 16px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.laolao-screen .nav-tabs::-webkit-scrollbar {
  display: none;
}

.laolao-screen .tab-item {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  white-space: nowrap;
}

.laolao-screen .tab-item.is-active {
  color: #f857a6;
  font-weight: 600;
}

.laolao-screen .tab-item.filter {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 0;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  font-size: 14px;
}

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

.laolao-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  padding: 14px 10px;
  border-radius: 16px;
  background: rgba(45, 22, 70, 0.72);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.laolao-card .card-header {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  padding-right: 38px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.laolao-card .card-name {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  max-width: min(92px, calc(100% - 58px));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.laolao-card .level-tag {
  flex: 0 0 auto;
  border-radius: 4px;
  padding: 0 4px;
  background: #4a80e2;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.laolao-card .attr-tag {
  flex: 0 0 auto;
  border-radius: 4px;
  padding: 0 4px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  line-height: 16px;
}

.laolao-card .new-user-voice-pack {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin-top: -5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 218, 121, 0.14);
  border: 1px solid rgba(255, 218, 121, 0.28);
  color: #ffe08a;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.laolao-card .new-user-voice-pack__dot {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffd45a;
  box-shadow: 0 0 8px rgba(255, 212, 90, 0.7);
}

.laolao-card .hot-tag {
  position: absolute;
  top: 10px;
  right: 8px;
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  border-radius: 999px;
  padding: 3px 6px;
  background: linear-gradient(90deg, #ff512f 0%, #f09819 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(255, 81, 47, 0.28);
}

.laolao-card .hot-tag svg {
  width: 10px;
  height: 10px;
}

.laolao-card .card-middle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.laolao-card .card-middle--solo {
  justify-content: center;
  min-height: 82px;
}

.laolao-card .card-middle--solo .avatar-wrapper {
  flex-basis: 68px;
  width: 68px;
  height: 68px;
}

.laolao-card .card-middle--solo .avatar {
  width: 68px;
  height: 68px;
}

.laolao-card .avatar-wrapper {
  position: relative;
  flex: 0 1 58px;
  width: clamp(48px, 17vw, 60px);
  height: clamp(48px, 17vw, 60px);
  min-width: 48px;
}

.laolao-card .avatar {
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.laolao-card .avatar-tag {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  padding: 2px 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.laolao-card .avatar-tag.listen {
  background: linear-gradient(90deg, #f857a6 0%, #ff5858 100%);
}

.laolao-card .avatar-tag.voice {
  background: linear-gradient(90deg, #9d50bb 0%, #6e48aa 100%);
}

.laolao-card .avatar-tag.message {
  background: linear-gradient(90deg, #8aa7c7 0%, #5f7f9e 100%);
}

.laolao-card .waveform {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 2px;
  height: 24px;
}

.laolao-card .wave-bar {
  width: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.8);
}

.laolao-card .waveform.is-active .wave-bar {
  animation: wave 1.2s ease-in-out infinite;
}

.laolao-card .waveform.is-idle .wave-bar {
  opacity: 0.4;
  transform: scaleY(0.7);
}

.laolao-card .wave-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.laolao-card .wave-bar:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.laolao-card .wave-bar:nth-child(3) { height: 20px; animation-delay: 0.2s; }
.laolao-card .wave-bar:nth-child(4) { height: 16px; animation-delay: 0.3s; }
.laolao-card .wave-bar:nth-child(5) { height: 10px; animation-delay: 0.4s; }

.laolao-card .mike-seat {
  flex: 0 1 58px;
  width: clamp(48px, 17vw, 60px);
  height: clamp(48px, 17vw, 60px);
  min-width: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.laolao-card .mike-seat--busy {
  padding: 0;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 2px rgba(248, 87, 166, 0.38);
}

.laolao-card .mike-seat--busy .avatar {
  border-color: rgba(248, 87, 166, 0.55);
}

.laolao-card .mike-seat--empty {
  background: rgba(63, 142, 230, 0.18);
  box-shadow: inset 0 0 0 1px rgba(143, 199, 255, 0.28);
}

.laolao-card .card-live-title {
  margin: 4px 0 8px;
  padding: 0 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  cursor: pointer;
}

.laolao-card .card-btns {
  display: flex;
  gap: 6px;
}

.laolao-btn {
  flex: 1;
  height: 34px;
  border: none;
  border-radius: 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.laolao-btn.chat {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.laolao-btn.voice {
  background: linear-gradient(90deg, #c445c2 0%, #f891d0 100%);
}

.laolao-btn.message {
  flex: 0 0 100%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.laolao-card .card-data {
  display: flex;
  justify-content: space-between;
  gap: 3px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  line-height: 1.25;
}

.laolao-card .card-data span {
  flex: 1 1 0;
  min-width: max-content;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  text-align: center;
}

.laolao-empty {
  grid-column: 1 / -1;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.laolao-empty .empty-state {
  background: transparent;
  color: #fff;
  padding: 8px 16px;
}

.laolao-empty .empty-state__desc {
  color: rgba(255, 255, 255, 0.68);
}

.laolao-load-more {
  padding: 2px 16px 24px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  text-align: center;
}

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.6); }
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.pill--live {
  background: rgba(255, 107, 107, 0.1);
  color: var(--danger);
}

.pill--online {
  background: rgba(0, 184, 148, 0.1);
  color: var(--success);
}

.pill--ghost {
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
}

.teacher-hero,
.profile-hero {
  display: flex;
  gap: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.teacher-hero {
  align-items: flex-start;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff;
}

.teacher-hero__body {
  flex: 1;
}

.teacher-hero__title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.detail-action-bar {
  position: sticky;
  bottom: 12px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
  padding: 12px;
  border: none;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.profile-hero {
  align-items: center;
}

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

.profile-archive-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 4px;
  min-width: 76px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9e7d 0%, #ff8ac8 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(255, 138, 200, 0.26);
}

.profile-archive-entry__plus {
  font-size: 18px;
  line-height: 1;
}

.profile-archive-page {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #2d0f47 0%, #000000 100%);
  color: #fff;
  animation: fadeIn 0.2s ease;
}

.profile-archive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: calc(24px + env(safe-area-inset-top)) 20px 24px;
}

.archive-back-btn,
.archive-edit-btn,
.archive-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
}

.archive-back-btn {
  width: 32px;
  height: 32px;
  margin-left: -4px;
  color: #fff;
}

.profile-archive-title {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.archive-add-btn {
  gap: 4px;
  min-width: 58px;
  padding: 0;
  color: #ff8ac8;
  font-size: 18px;
  font-weight: 500;
  line-height: 25px;
}

.profile-archive-list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  padding: 0 20px calc(24px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}

.profile-archive-list::-webkit-scrollbar {
  width: 0;
}

.archive-card {
  position: relative;
  width: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  text-align: left;
}

.archive-card.border-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: var(--border-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.archive-card.self-card {
  --border-gradient: linear-gradient(90deg, #9d4edd 0%, #ff758f 100%);
  background: linear-gradient(90deg, #6c22b0 0%, #c85460 100%);
}

.archive-card.ex-card {
  background: #2a2438;
}

.archive-card.ex-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: #3a3448;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.archive-card.add-card {
  --border-gradient: linear-gradient(90deg, #ff9e7d 0%, #ff8ac8 100%);
  justify-content: center;
  gap: 10px;
  background: rgba(42, 30, 42, 0.6);
}

.archive-avatar {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #120820;
}

.archive-info {
  flex: 1;
  min-width: 0;
  margin-left: 16px;
}

.archive-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 25px;
}

.gender-female {
  color: #ff8ac8;
}

.gender-male {
  color: #64b5f6;
}

.archive-detail-row {
  max-width: 100%;
  overflow: hidden;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.archive-edit-btn {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  margin-right: -6px;
  color: #fff;
}

.archive-send-btn {
  flex: 0 0 auto;
  min-width: 64px;
  height: 36px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(90deg, #ec4899 0%, #f472b6 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.22);
}

.archive-add-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.archive-add-text {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  opacity: 0.9;
}

.profile-archive-empty {
  padding: 28px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  text-align: center;
}

.profile-add-page {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  padding: 0 24px calc(100px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #3a1a5c 0%, #121212 100%);
  color: #fff;
  animation: fadeIn 0.2s ease;
}

.profile-add-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(60px + env(safe-area-inset-top));
  padding-top: calc(12px + env(safe-area-inset-top));
  margin-bottom: 8px;
}

.profile-add-back {
  position: absolute;
  left: 0;
  top: calc(50% + env(safe-area-inset-top) / 2);
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.profile-add-title {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.profile-nickname-row,
.profile-form-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #fff;
  text-align: left;
}

.profile-nickname-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  margin-bottom: 24px;
}

.profile-nickname-label {
  color: #fff;
  font-size: 18px;
  font-weight: 400;
}

.profile-nickname-value,
.profile-nickname-input {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
}

.profile-nickname-input {
  width: min(58vw, 220px);
  border: 0;
  background: transparent;
  outline: none;
  text-align: right;
}

.profile-nickname-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.profile-add-section {
  margin-bottom: 32px;
}

.profile-add-section-label {
  display: block;
  margin-bottom: 16px;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
}

.profile-tags-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.profile-tag-btn {
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  transition: background 0.2s ease, transform 0.2s ease;
}

.profile-tag-btn.active,
.profile-gender-btn.active {
  background: linear-gradient(90deg, #ec4899 0%, #f472b6 100%);
}

.profile-gender-container {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.profile-gender-btn {
  flex: 1;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 18px;
  font-weight: 400;
}

.profile-gender-icon {
  font-size: 20px;
  line-height: 1;
}

.profile-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 20px 0;
  gap: 16px;
}

.profile-form-row--native {
  cursor: pointer;
}

.profile-form-label {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 4px;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
}

.profile-form-label .sub-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 300;
}

.profile-form-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  text-align: right;
}

.profile-datetime-input {
  width: 174px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  outline: none;
  font-size: 17px;
  text-align: right;
}

.profile-datetime-input::-webkit-calendar-picker-indicator {
  opacity: 0.9;
  filter: invert(1);
}

.profile-form-value > span:first-child {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-form-time {
  margin-top: 2px;
  font-size: 16px;
}

.profile-form-icon {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  line-height: 1;
}

.profile-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-switch-label {
  color: #fff;
  font-size: 18px;
  font-weight: 400;
}

.profile-switch {
  position: relative;
  width: 56px;
  height: 30px;
  flex: 0 0 56px;
}

.profile-switch input {
  width: 0;
  height: 0;
  opacity: 0;
}

.profile-slider {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
  transition: 0.25s;
}

.profile-slider::before {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: 0.25s;
}

.profile-switch input:checked + .profile-slider {
  background: linear-gradient(90deg, #a855f7 0%, #d946ef 100%);
}

.profile-switch input:checked + .profile-slider::before {
  transform: translateX(26px);
}

.profile-submit-btn {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 24px;
  z-index: 99;
  height: 60px;
  border: 0;
  border-radius: 30px;
  background: linear-gradient(90deg, #8b5cf6 0%, #f97316 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 500;
}

.profile-delete-btn {
  display: block;
  width: 100%;
  margin: 24px 0 8px;
  height: 52px;
  border: 1px solid rgba(255, 80, 95, 0.65);
  border-radius: 26px;
  background: transparent;
  color: #ff5a5f;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
}

.profile-delete-btn:active {
  background: rgba(255, 80, 95, 0.12);
}

/* 编辑页右上角的"删除"按钮，跟左上角"返回"对称 */
.profile-add-delete-top {
  position: absolute;
  right: 0;
  top: calc(50% + env(safe-area-inset-top) / 2);
  transform: translateY(-50%);
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: #ff5a5f;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.profile-add-delete-top:active {
  opacity: 0.6;
}

/* 删除确认弹层显示时把右上角"删除"按钮和底部"保存"按钮藏掉，
   防止透过 backdrop 露出，让确认弹层视觉聚焦 */
.profile-add-page--blocked .profile-add-delete-top,
.profile-add-page--blocked .profile-submit-btn {
  visibility: hidden;
}

.profile-confirm-overlay {
  z-index: 110;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.profile-confirm-sheet {
  width: min(320px, 88vw);
  padding: 22px 22px 18px;
  border-radius: 16px;
  background: #1f1530;
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.profile-confirm-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.profile-confirm-text {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  word-break: break-all;
}

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

.profile-confirm-actions button {
  height: 44px;
  border-radius: 22px;
  border: 0;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.profile-confirm-actions .profile-confirm-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.profile-confirm-actions .profile-confirm-ok {
  background: #ff5a5f;
  color: #fff;
}

.profile-confirm-actions .profile-confirm-ok:active {
  background: #e7434c;
}

.profile-picker-overlay {
  z-index: 90;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.live-profile-picker-overlay {
  z-index: 70;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.live-profile-picker-sheet {
  width: 100vw;
  max-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #2d0f47 0%, #000000 100%);
  color: #fff;
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.34);
  animation: slideUp 0.22s ease-out;
}

.live-profile-picker-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.live-profile-picker-list::-webkit-scrollbar {
  width: 0;
}

.live-profile-add-card {
  flex: 0 0 auto;
}

.profile-picker-sheet {
  width: 100vw;
  max-height: min(70vh, 620px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #3a1a5c 0%, #16121e 100%);
  color: #fff;
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.34);
  animation: slideUp 0.22s ease-out;
}

.profile-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-picker-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.profile-picker-head button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.profile-picker-input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
  font-size: 15px;
}

.profile-picker-input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.profile-picker-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-picker-presets button,
.profile-tz-list button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  text-align: left;
}

.profile-picker-loading {
  padding: 28px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  text-align: center;
}

.profile-picker-sheet--region {
  max-height: min(76vh, 680px);
}

.profile-region-current {
  min-height: 42px;
  display: flex;
  align-items: center;
  border-radius: 14px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
}

.profile-region-selects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.profile-region-selects label {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 14px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
}

.profile-region-selects span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.profile-region-selects select {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
  font-size: 16px;
}

.profile-region-selects option {
  color: #111;
  background: #fff;
}

.profile-picker-confirm {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 26px;
  background: linear-gradient(90deg, #8b5cf6 0%, #f97316 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.profile-picker-sheet--tz {
  gap: 12px;
}

.profile-tz-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.profile-tz-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}

.profile-tz-list button.active {
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.88), rgba(244, 114, 182, 0.88));
  color: #fff;
}

.profile-tz-list em {
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 360px) {
  .profile-add-page {
    padding-right: 18px;
    padding-left: 18px;
  }

  .profile-tags-container {
    gap: 10px 8px;
  }

  .profile-tag-btn {
    font-size: 14px;
  }

  .profile-switch-label,
  .profile-form-label,
  .profile-form-value,
  .profile-nickname-label,
  .profile-nickname-value {
    font-size: 16px;
  }
}

.vip-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.vip-card__price {
  text-align: right;
}

.vip-card__price strong {
  display: block;
  font-size: 24px;
}

.vip-card__price span {
  color: var(--muted);
  font-size: 12px;
  text-decoration: line-through;
}

.profile-card__head {
  justify-content: flex-start;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px 6px;
  text-align: center;
}

.empty-state__icon {
  font-size: 26px;
}

.empty-state__spinner {
  width: 36px;
  height: 36px;
  margin: 4px auto 6px;
  border: 3px solid rgba(108, 92, 231, 0.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.empty-state--loading {
  gap: 10px;
}

.laolao-empty .empty-state__spinner {
  border-color: rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
}

.empty-state__title {
  font-weight: 700;
}

.empty-state__desc {
  max-width: 260px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.bottom-nav {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 25;
  display: grid;
  width: 100vw;
  min-height: 70px;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 0 calc(10px + env(safe-area-inset-bottom));
  background: rgba(30, 10, 50, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.22);
}

.bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.bottom-nav button.is-active {
  background: transparent;
  color: #fff;
  font-weight: 600;
}

.bottom-nav button.is-active .tab-icon {
  filter: drop-shadow(0 0 4px rgba(248, 87, 166, 0.8));
}

.bottom-nav .tab-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
}

.bottom-nav .tab-icon svg {
  width: 100%;
  height: 100%;
}

.bottom-nav button em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.avatar {
  display: inline-flex;
  flex-shrink: 0;
  position: relative;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  font-weight: 700;
}

.avatar__img,
.avatar__fallback {
  width: 100%;
  height: 100%;
}

.avatar__img {
  display: block;
  object-fit: cover;
}

.avatar__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar__img + .avatar__fallback {
  display: none;
}

.avatar--sm {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 15px;
}

.avatar--md {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 17px;
}

.avatar--lg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 20px;
}

.avatar--xl {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 28px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.4);
  animation: fadeOverlay 0.2s ease;
}

.sheet {
  width: 100vw;
  margin: 0 auto;
  border-radius: 16px 16px 0 0;
  background: #fff;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.25s ease;
}

@keyframes fadeOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet__handle {
  width: 52px;
  height: 5px;
  margin: 4px auto 16px;
  border-radius: 999px;
  background: rgba(52, 61, 89, 0.15);
}

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

.sheet-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.list-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-note p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 102px;
  z-index: 50;
  transform: translateX(-50%);
  max-width: calc(100vw - 48px);
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(20, 27, 48, 0.88);
  color: #fff;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 18px 32px rgba(17, 24, 39, 0.24);
  animation: toastIn 0.2s ease;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #f0f0f5;
  color: var(--primary);
  font-size: 12px;
}

@media (max-width: 380px) {
  .screen {
    padding-inline: 14px;
  }

  .laolao-screen {
    padding-inline: 0;
  }

  .laolao-screen .search-bar {
    gap: 8px;
    padding-inline: 10px;
  }

  .laolao-screen .search-btn {
    flex-basis: 72px;
    font-size: 14px;
  }

  .laolao-screen .laolao-tabs-row {
    gap: 6px;
    padding-inline: 10px;
  }

  .laolao-screen .nav-tabs {
    gap: 16px;
    padding-inline: 10px;
  }

  .laolao-screen .laolao-tabs-row .nav-tabs {
    padding-inline: 0;
  }

  .laolao-screen .tab-item {
    font-size: 14px;
  }

  .laolao-screen .tab-item.filter {
    padding: 4px 8px;
    font-size: 13px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-inline: 8px;
  }

  .laolao-card {
    gap: 8px;
    padding: 12px 8px;
    border-radius: 14px;
  }

  .laolao-card .card-header {
    min-height: 18px;
    padding-right: 34px;
  }

  .laolao-card .card-name {
    max-width: 74px;
    font-size: 15px;
  }

  .laolao-card .level-tag,
  .laolao-card .attr-tag {
    padding-inline: 3px;
    font-size: 10px;
    line-height: 14px;
  }

  .laolao-card .hot-tag {
    top: 8px;
    right: 6px;
    padding: 2px 5px;
    font-size: 9px;
  }

  .laolao-card .avatar-wrapper,
  .laolao-card .mike-seat {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    min-width: 44px;
  }

  .laolao-card .card-middle--solo {
    min-height: 60px;
  }

  .laolao-card .card-middle--solo .avatar-wrapper,
  .laolao-card .card-middle--solo .avatar {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .laolao-card .waveform {
    gap: 1px;
    transform: scaleX(0.86);
    transform-origin: center;
  }

  .laolao-card .wave-bar {
    width: 2px;
  }

  .laolao-card .card-live-title {
    margin-bottom: 4px;
    font-size: 13px;
  }

  .laolao-btn {
    height: 30px;
    font-size: 12px;
  }

  .laolao-card .card-data {
    gap: 2px;
    font-size: 10px;
    letter-spacing: -0.2px;
  }

  .anchor-card {
    margin: 24px 12px 0;
    padding: 44px 12px 16px;
    gap: 8px;
  }

  .report-btn {
    top: 10px;
    left: 10px;
    padding: 3px 8px 3px 6px;
    font-size: 11px;
  }

  .mike-queue-badge {
    top: 10px;
    right: 10px;
    min-height: 20px;
    padding: 3px 7px;
    font-size: 11px;
  }

  .audio-center-label {
    top: 11px;
    font-size: 15px;
  }

  .rights-summary,
  .metrics-grid,
  .sheet-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-action-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 340px) {
  .cards-grid {
    gap: 6px;
    padding-inline: 6px;
  }

  .laolao-card {
    padding: 10px 6px;
  }

  .laolao-card .card-name {
    max-width: 62px;
    font-size: 14px;
  }

  .laolao-card .avatar-wrapper,
  .laolao-card .mike-seat {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    min-width: 40px;
  }

  .laolao-card .avatar-tag {
    padding-inline: 4px;
    font-size: 10px;
  }

  .laolao-card .card-data {
    font-size: 9px;
    letter-spacing: -0.35px;
  }

  .anchor-card {
    margin-inline: 8px;
    padding-inline: 10px;
    gap: 6px;
  }

  .audio-center-label {
    font-size: 14px;
  }

  .report-btn span {
    display: none;
  }

  .report-btn {
    width: 28px;
    height: 24px;
    justify-content: center;
    padding: 0;
  }

  .mike-queue-badge {
    top: 10px;
    right: 8px;
    padding-inline: 6px;
    font-size: 10px;
  }

  .mic-order-header {
    padding: 20px 18px 12px;
  }

  .mic-order-list {
    padding-inline: 18px;
  }

  .mic-order-avatar {
    margin: 0 10px;
  }

  .mic-order-nickname,
  .mic-order-status {
    font-size: 15px;
  }

  .mic-order-vip {
    margin-left: 6px;
    margin-right: 6px;
    padding: 5px 8px;
    font-size: 12px;
  }

  .mic-order-actions {
    gap: 10px;
    padding-inline: 18px;
  }

  .mic-order-btn {
    height: 48px;
    font-size: 14px;
  }
}

/* Call screen */
.call-overlay {
  background: linear-gradient(180deg, #1a1a2e 0%, #2d1b69 50%, #1a1a2e 100%);
  backdrop-filter: none;
}

.call-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 60px 24px 40px;
  animation: fadeIn 0.3s ease;
}

.call-screen__name {
  margin: 16px 0 0;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.call-screen__status {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
}

.call-status--waiting {
  color: rgba(255, 255, 255, 0.6);
  animation: pulse 1.5s ease infinite;
}

.call-status--active {
  color: var(--success);
}

.call-screen__timer {
  margin-top: 24px;
  color: #fff;
  font-size: 48px;
  font-weight: 200;
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
}

.call-screen__info {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.call-hangup {
  margin-top: 48px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ff4757;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 71, 87, 0.4);
  transition: transform 0.15s;
}

.call-hangup:active {
  transform: scale(0.95);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Sheet actions */
.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

/* Asset row */
.asset-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.asset-row__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

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

.asset-row__body {
  flex: 1;
  min-width: 0;
}

.asset-row__body strong {
  display: block;
  font-size: 14px;
}

.asset-row__body p {
  margin: 2px 0 0;
}

/* ── Live Room ── */
.screen--liveroom {
  background: linear-gradient(180deg, #1a1a2e 0%, #2d1b69 28%, var(--bg) 56%);
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 0;
}

.sub-topbar--dark {
  color: #fff;
  background: transparent;
}

.icon-btn--light {
  color: #fff;
}

.liveroom-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px 16px;
  color: #fff;
  text-align: center;
  flex-shrink: 0;
}

.liveroom-hero h3 {
  margin: 8px 0 2px;
  font-size: 18px;
}

.liveroom-hero p {
  margin: 0;
  font-size: 13px;
  opacity: 0.7;
}

.liveroom-listening {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--success);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-glow 1.5s ease infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.liveroom-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 12px;
  gap: 8px;
}

.liveroom-chat {
  flex: 1;
  min-height: 80px;
  max-height: 40vh;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  padding: 8px 10px;
}

.chat-msg {
  padding: 3px 0;
  font-size: 13px;
  line-height: 1.5;
}

.chat-msg__name {
  color: var(--primary);
  font-weight: 600;
  margin-right: 6px;
}

.chat-msg__text {
  color: var(--text);
}

.chat-msg--self .chat-msg__name {
  color: var(--success);
}

.chat-input-bar {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.chat-input-bar input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
}

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

.liveroom-mike-section {
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
}

.liveroom-mike-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.liveroom-mike-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.liveroom-mike-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
}

.liveroom-call-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(0, 184, 148, 0.1);
  border-top: 1px solid rgba(0, 184, 148, 0.2);
  flex-shrink: 0;
}

.ghost-btn--danger {
  color: var(--danger);
  border-color: var(--danger);
}

.liveroom-price {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.hint-text {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 8px 0;
}

/* ── Live Room replica UI ── */
.screen--liveroom {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
  background: #160828;
}

.live-room {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #2d0b58 0%, #162b66 100%);
}

.live-room::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(2px 2px at 20% 30%, #fff, transparent),
    radial-gradient(2px 2px at 60% 20%, #fff, transparent),
    radial-gradient(1px 1px at 50% 50%, #fff, transparent),
    radial-gradient(1px 1px at 80% 10%, #fff, transparent),
    radial-gradient(2px 2px at 90% 60%, #fff, transparent),
    radial-gradient(1px 1px at 33% 80%, #fff, transparent),
    radial-gradient(1px 1px at 70% 75%, #fff, transparent),
    radial-gradient(1px 1px at 10% 90%, #fff, transparent),
    radial-gradient(2px 2px at 40% 10%, #fff, transparent);
  background-size: 200% 200%;
  animation: twinkle 3s ease-in-out infinite alternate;
  pointer-events: none;
}

.live-room .bg-illustration {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(45, 11, 88, 0.04) 0%, rgba(22, 43, 102, 0.02) 48%, rgba(8, 8, 24, 0.12) 100%),
    url("./assets/live/liveRoomBg.png") center center / cover no-repeat;
}

.live-room .top-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(12px + env(safe-area-inset-top)) 12px 8px 16px;
}

.anchor-info-top {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.anchor-info-top .avatar {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.name-top {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.name-top .username {
  max-width: 78px;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.name-top .user-count {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1;
}

.follow-btn,
.private-btn,
.voice-btn {
  border: none;
  color: #fff;
  background: linear-gradient(90deg, #ff85b3 0%, #ff6699 100%);
  box-shadow: 0 8px 18px rgba(255, 102, 153, 0.22);
}

.follow-btn {
  flex: 0 0 auto;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 700;
}

.top-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.top-icons button,
.report-btn,
.side-btn,
.cart-btn {
  border: none;
  background: transparent;
  color: inherit;
}

.top-icons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.top-icons svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 2px 7px rgba(0, 0, 0, 0.34));
}

.report-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 11;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  text-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.report-btn svg {
  width: 14px;
  height: 14px;
  color: #fff6a8;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.anchor-card {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 34px 16px 0;
  padding: 46px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20, 10, 32, 0.48), rgba(0, 0, 0, 0.28));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.anchor-left,
.seat-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 84px;
  gap: 8px;
}

.anchor-avatar {
  position: relative;
  width: 80px;
  height: 80px;
}

.anchor-avatar .avatar,
.seat-avatar .avatar {
  width: 80px;
  height: 80px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.mic-icon {
  position: absolute;
  right: 2px;
  bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.mic-icon img {
  width: 13px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.anchor-name {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 92px;
  overflow: hidden;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 50%;
  background: #4a90e2;
  color: #fff;
  font-size: 11px;
}

.private-btn {
  padding: 6px 22px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 700;
}

.audio-center {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  gap: 6px;
}

.audio-center-label {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* 说话指示器：默认显示麦克风图标，is-speaking 状态切换为跳动音波 */
.speaking-indicator {
  position: absolute;
  right: 2px;
  bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

button.speaking-indicator {
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.speaking-indicator .si-mic {
  width: 13px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.speaking-indicator .si-wave {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 14px;
}

.speaking-indicator .si-wave span {
  width: 2.5px;
  border-radius: 1.5px;
  background: #ffd96b;
  animation: liveWave 0.9s ease-in-out infinite;
}

.speaking-indicator .si-wave span:nth-child(1) { height: 6px;  animation-delay: 0s; }
.speaking-indicator .si-wave span:nth-child(2) { height: 12px; animation-delay: 0.12s; }
.speaking-indicator .si-wave span:nth-child(3) { height: 6px;  animation-delay: 0.24s; }

.speaking-indicator.is-speaking {
  background: rgba(255, 102, 153, 0.85);
  box-shadow: 0 0 0 2px rgba(255, 217, 107, 0.55);
}

.speaking-indicator.is-speaking .si-mic { display: none; }
.speaking-indicator.is-speaking .si-wave { display: flex; }

.speaking-indicator.is-muted {
  background: rgba(40, 40, 48, 0.86);
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.65);
}

.speaking-indicator.is-muted::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #ff6b6b;
  transform: rotate(-42deg);
  box-shadow: 0 0 4px rgba(255, 107, 107, 0.55);
}

.speaking-indicator.is-muted .si-mic { display: block; }
.speaking-indicator.is-muted .si-wave { display: none; }

/* 让连麦用户头像也是 relative 才能让角标定位正确 */
.seat-avatar { position: relative; }

.audio-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  min-width: 34px;
}

.audio-wave .bar {
  width: 4px;
  border-radius: 2px;
  background: #fff;
}

.audio-wave.is-active .bar {
  animation: liveWave 1s ease-in-out infinite;
}

.audio-wave.is-idle .bar {
  opacity: 0.45;
  animation: none;
  transform: scaleY(0.7);
}

.audio-wave .bar:nth-child(1) { height: 12px; animation-delay: 0s; }
.audio-wave .bar:nth-child(2) { height: 20px; animation-delay: 0.1s; }
.audio-wave .bar:nth-child(3) { height: 28px; animation-delay: 0.2s; }
.audio-wave .bar:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.audio-wave .bar:nth-child(5) { height: 12px; animation-delay: 0.4s; }

.mike-duration {
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.35);
}

.mike-duration[hidden] {
  display: none;
}

.seat-icon,
.seat-avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.24), rgba(122, 167, 255, 0.18));
  color: #8fc7ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.mike-queue-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  min-width: 76px;
  border: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7aa8 0%, #ff4f8b 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(255, 79, 139, 0.32);
  white-space: nowrap;
}

.mic-order-overlay {
  z-index: 60;
  align-items: flex-end;
  background: rgba(9, 3, 18, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mic-order-sheet {
  width: 100vw;
  height: min(66.666vh, calc(100vh - env(safe-area-inset-top) - 24px));
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  animation: slideUp 0.28s cubic-bezier(0.2, 0.82, 0.2, 1);
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.34);
}

.mic-order-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #52157e 0%, #000000 100%);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.mic-order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 24px 24px 16px;
}

.mic-order-title {
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.mic-order-close {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.mic-order-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px;
  -webkit-overflow-scrolling: touch;
}

.mic-order-list::-webkit-scrollbar {
  width: 0;
}

.mic-order-item {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mic-order-item:last-child {
  border-bottom: none;
}

.mic-order-index {
  width: 32px;
  flex: 0 0 32px;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
}

.mic-order-avatar {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  margin: 0 16px;
}

.mic-order-avatar .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.mic-order-nickname {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mic-order-vip {
  flex: 0 0 auto;
  margin-left: 10px;
  margin-right: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  background: linear-gradient(90deg, #ffe082 0%, #ffca28 100%);
  color: #8b4513;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.mic-order-status {
  min-width: 68px;
  flex: 0 0 auto;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-align: right;
}

.mic-order-actions {
  display: flex;
  flex-shrink: 0;
  gap: 16px;
  padding: 20px 24px calc(32px + env(safe-area-inset-bottom));
}

.mic-order-btn {
  flex: 1;
  height: 56px;
  border: 0;
  border-radius: 28px;
  background: linear-gradient(90deg, #7b1fa2 0%, #ff7043 100%);
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
}

.mic-order-empty {
  padding-top: 32px;
}

.mic-order-empty .empty-state {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.seat-icon {
  border: none;
  cursor: pointer;
}

.seat-icon:active {
  transform: scale(0.96);
}

.seat-icon svg {
  width: 42px;
  height: 42px;
}

.seat-name {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.seat-desc {
  max-width: 86px;
  overflow: hidden;
  color: #ffb6c1;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tips-area {
  position: absolute;
  top: calc(324px + env(safe-area-inset-top));
  right: 82px;
  bottom: calc(104px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.tip-box {
  border-radius: 12px;
  padding: 10px 13px;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tip-box[hidden] {
  display: none;
}

.tip-box p {
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.55;
}

.live-chat-feed p + p {
  margin-top: 6px;
}

.live-chat-feed p {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-avatar {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  object-fit: cover;
}

.live-chat-feed strong {
  color: #ffb6d4;
}

.live-chat-archive {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(157, 78, 221, 0.82), rgba(255, 117, 143, 0.82));
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  vertical-align: middle;
}

.live-chat-archive__title {
  opacity: 0.78;
}

.live-chat-archive__name {
  font-weight: 800;
}

.live-chat-archive__meta {
  opacity: 0.82;
}

.side-buttons {
  position: absolute;
  right: 16px;
  bottom: calc(108px + env(safe-area-inset-bottom));
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 58px;
  height: 68px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
}

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

.bottom-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: transparent;
}

.bottom-tip {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: none;
  border-radius: 24px;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  outline: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bottom-tip::placeholder {
  color: rgba(255, 255, 255, 0.82);
}

.cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cart-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.voice-btn {
  flex: 0 0 auto;
  min-width: 104px;
  height: 44px;
  padding: 0 22px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.voice-btn:disabled {
  opacity: 0.62;
}

.cart-btn:disabled {
  opacity: 0.5;
}

.voice-btn--danger {
  background: #ff4757;
}

.screen--liveroom .liveroom-call-bar {
  position: absolute;
  right: 16px;
  bottom: calc(68px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 12;
  border: 1px solid rgba(0, 184, 148, 0.24);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 420px) {
  .live-room .top-bar {
    gap: 6px;
    padding: calc(8px + env(safe-area-inset-top)) 10px 6px 12px;
  }

  .anchor-info-top {
    gap: 8px;
  }

  .anchor-info-top .avatar {
    width: 34px;
    height: 34px;
  }

  .name-top .username {
    max-width: 66px;
    font-size: 15px;
  }

  .name-top .user-count {
    font-size: 11px;
  }

  .follow-btn {
    padding: 5px 12px;
    font-size: 13px;
  }

  .top-icons {
    gap: 9px;
  }

  .top-icons button {
    width: 24px;
    height: 24px;
  }

  .top-icons svg {
    width: 20px;
    height: 20px;
  }

  .anchor-card {
    margin: 18px 10px 0;
    padding: 38px 10px 12px;
    gap: 6px;
    border-radius: 18px;
  }

  .report-btn {
    top: 8px;
    left: 8px;
    padding: 2px 6px;
    font-size: 10px;
  }

  .report-btn svg {
    width: 12px;
    height: 12px;
  }

  .mike-queue-badge {
    top: 8px;
    right: 8px;
    min-width: 66px;
    min-height: 18px;
    padding: 2px 6px;
    font-size: 10px;
  }

  .anchor-left,
  .seat-area {
    min-width: 70px;
    gap: 6px;
  }

  .anchor-avatar,
  .seat-icon,
  .seat-avatar {
    width: 64px;
    height: 64px;
  }

  .anchor-avatar .avatar,
  .seat-avatar .avatar {
    width: 64px;
    height: 64px;
  }

  .speaking-indicator {
    width: 22px;
    height: 22px;
  }

  .speaking-indicator .si-mic {
    width: 11px;
    height: 14px;
  }

  .anchor-name {
    max-width: 74px;
    font-size: 16px;
  }

  .check-icon {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
    font-size: 10px;
  }

  .private-btn {
    padding: 5px 14px;
    font-size: 13px;
  }

  .audio-center {
    min-width: 32px;
    gap: 4px;
  }

  .audio-center-label {
    top: 9px;
    font-size: 12px;
  }

  .audio-wave {
    height: 32px;
    gap: 3px;
    min-width: 28px;
  }

  .audio-wave .bar {
    width: 3px;
  }

  .audio-wave .bar:nth-child(1) { height: 9px; }
  .audio-wave .bar:nth-child(2) { height: 15px; }
  .audio-wave .bar:nth-child(3) { height: 22px; }
  .audio-wave .bar:nth-child(4) { height: 15px; }
  .audio-wave .bar:nth-child(5) { height: 9px; }

  .mike-duration {
    font-size: 11px;
  }

  .seat-icon svg {
    width: 34px;
    height: 34px;
  }

  .seat-name {
    font-size: 16px;
  }

  .seat-desc {
    max-width: 70px;
    font-size: 11px;
  }

  .tips-area {
    top: calc(252px + env(safe-area-inset-top));
    right: 68px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    left: 12px;
    gap: 8px;
  }

  .tip-box {
    padding: 8px 10px;
    border-radius: 10px;
  }

  .tip-box p {
    font-size: 12px;
    line-height: 1.45;
  }

  .side-buttons {
    right: 10px;
    bottom: calc(94px + env(safe-area-inset-bottom));
    gap: 12px;
  }

  .side-btn {
    width: 48px;
    height: 58px;
  }

  .bottom-bar {
    gap: 8px;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  }

  .bottom-tip {
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .cart-btn {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .cart-btn img {
    width: 20px;
    height: 20px;
  }

  .voice-btn {
    min-width: 88px;
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
  }
}

@media (max-width: 420px) and (max-height: 620px) {
  .live-room .top-bar {
    padding-top: calc(6px + env(safe-area-inset-top));
  }

  .anchor-card {
    margin-top: 12px;
    padding-top: 34px;
    padding-bottom: 10px;
  }

  .tips-area {
    top: calc(232px + env(safe-area-inset-top));
    bottom: calc(86px + env(safe-area-inset-bottom));
  }
}

@keyframes twinkle {
  0% { opacity: 0.4; }
  100% { opacity: 0.8; }
}

@keyframes liveWave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

/* ===== 唠唠筛选底弹面板 ===== */
.filter-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1500;
  animation: filterFadeIn 0.18s ease-out;
}

.filter-panel-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60vh;
  max-height: 720px;
  background-color: #352A54;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  z-index: 1501;
  display: flex;
  flex-direction: column;
  color: #fff;
  animation: filterSlideUp 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
}

@keyframes filterFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes filterSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.filter-panel-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 20px 6px;
  flex: 0 0 auto;
}

.filter-panel-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1;
}

.filter-panel-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.filter-panel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 20px 16px;
  -ms-overflow-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.filter-panel-body::-webkit-scrollbar { width: 4px; }
.filter-panel-body::-webkit-scrollbar-track { background: transparent; }
.filter-panel-body::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.filter-section {
  margin-bottom: 24px;
}

.filter-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1;
}

.filter-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  padding: 8px 18px;
  border-radius: 999px;
  background-color: #4A3D6B;
  color: #fff;
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  user-select: none;
}

.filter-chip:active {
  transform: scale(0.97);
}

.filter-chip.is-active {
  background-color: rgba(255, 138, 101, 0.18);
  border-color: #FF8A65;
  color: #FF8A65;
  font-weight: 600;
}

.filter-skill-sub {
  margin-bottom: 16px;
}

.filter-skill-sub:last-child {
  margin-bottom: 0;
}

.filter-skill-sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.filter-skill-sub-title {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1;
}

.filter-skill-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.filter-skill-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  background-color: transparent;
  flex-shrink: 0;
  position: relative;
}

.filter-skill-all.is-active .filter-skill-radio {
  border-color: #FF8A65;
  background-color: #FF8A65;
}

.filter-skill-all.is-active .filter-skill-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}

.filter-skill-loading {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  text-align: center;
  padding: 20px 0;
}

.filter-panel-footer {
  flex: 0 0 auto;
  display: flex;
  gap: 12px;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  background-color: #352A54;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-footer-btn {
  flex: 1;
  padding: 13px 0;
  border-radius: 999px;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.4;
}

.filter-footer-btn.reset {
  background-color: #C4C4C4;
  color: #333;
}

.filter-footer-btn.confirm {
  background: linear-gradient(90deg, #9C4EF8 0%, #FF8A65 100%);
  color: #fff;
}

@media (max-width: 480px) {
  .filter-panel-sheet { height: 62vh; }
  .filter-panel-body { padding: 12px 16px 14px; }
  .filter-panel-footer { padding-left: 16px; padding-right: 16px; }
  .filter-chip { padding: 7px 14px; font-size: 13px; }
  .filter-section-title { font-size: 15px; }
}
