* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --bg-card: #1e1e1e;
  --bg-input: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;
  --accent: #ff2d55;
  --accent-hover: #e0264a;
  --success: #34c759;
  --warning: #ff9500;
  --danger: #ff3b30;
  --border: #333333;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --nav-height: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-family);
  background: #000;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body {
  display: flex;
  justify-content: center;
}

.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: var(--bg-primary);
  position: relative;
  overflow-x: hidden;
}

.page-content {
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 20px);
}

.page-content.no-nav {
  padding-bottom: 0;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--nav-height);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding-bottom: var(--safe-bottom);
}

.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  padding: 6px 12px;
  transition: color 0.2s;
  cursor: pointer;
}

.bottom-nav .nav-item.active {
  color: var(--accent);
}

.bottom-nav .nav-item .nav-icon {
  font-size: 22px;
  line-height: 1;
}

.bottom-nav .nav-item .nav-plus {
  width: 40px;
  height: 28px;
  background: linear-gradient(135deg, #ff2d55, #ff6b81);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-family);
  outline: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:active {
  background: var(--accent-hover);
  transform: scale(0.97);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-outline:active {
  background: rgba(255, 45, 85, 0.1);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font-family);
}

.input:focus {
  border-color: var(--accent);
}

.input::placeholder {
  color: var(--text-muted);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal {
  width: calc(100% - 48px);
  max-width: 360px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: scaleIn 0.2s ease;
}

.modal-header {
  padding: 18px 20px 10px;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.modal-body {
  padding: 10px 20px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
}

.modal-footer {
  display: flex;
  border-top: 1px solid var(--border);
}

.modal-footer .modal-btn {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: 15px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-family);
  outline: none;
  transition: background 0.2s;
}

.go-live-modal .modal-body { padding: 0; }

.go-live-modal .modal-footer { border-top: none; }

.modal-footer .modal-btn:active {
  background: rgba(255, 255, 255, 0.05);
}

.modal-footer .modal-btn + .modal-btn {
  border-left: 1px solid var(--border);
}

.modal-footer .modal-btn.primary {
  color: var(--accent);
  font-weight: 600;
}

.toast {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  color: #fff;
  z-index: 2000;
  animation: toastIn 0.3s ease;
  white-space: nowrap;
  max-width: 80%;
}

.toast-success {
  background: rgba(52, 199, 89, 0.9);
}

.toast-error {
  background: rgba(255, 59, 48, 0.9);
}

.toast-info {
  background: rgba(0, 122, 255, 0.9);
}

.toast-warning {
  background: rgba(255, 149, 0, 0.9);
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes toastIn {
  from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@keyframes heartFloat {
  0% { transform: translateY(0) scale(0.5); opacity: 1; }
  50% { transform: translateY(-60px) scale(1.2); opacity: 0.8; }
  100% { transform: translateY(-120px) scale(0.3); opacity: 0; }
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-secondary);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff2d55, #ff6b81);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-right .icon-btn {
  font-size: 20px;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  outline: none;
}

.live-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}

.live-card:active {
  transform: scale(0.98);
}

.live-card .card-cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--bg-input);
  overflow: hidden;
}

.live-card .card-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-card .card-cover .live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.live-card .card-cover .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.5s infinite;
}

.live-card .card-cover .viewer-count {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.live-card .card-info {
  padding: 10px 12px;
}

.live-card .card-info .card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 6px;
}

.live-card .card-info .card-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-card .card-info .card-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.live-card .card-info .card-nickname {
  font-size: 12px;
  color: var(--text-secondary);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-card .card-info .card-category {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-input);
  padding: 2px 8px;
  border-radius: 4px;
}

.live-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 16px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  padding: 16px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title .more {
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

.h-scroll {
  display: flex;
  gap: 10px;
  padding: 0 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.h-scroll::-webkit-scrollbar {
  display: none;
}

.h-scroll .live-card {
  min-width: 160px;
  max-width: 160px;
  flex-shrink: 0;
}

.h-scroll .live-card .card-cover {
  padding-top: 56.25%;
}

.live-list-vertical {
  padding: 0 12px 12px;
}

.live-card-vertical {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 12px;
  transition: transform 0.2s;
}

.live-card-vertical:active {
  transform: scale(0.98);
}

.live-card-vertical .lcv-cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--bg-input);
  overflow: hidden;
}

.live-card-vertical .lcv-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-card-vertical .lcv-cover .live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.live-card-vertical .lcv-cover .viewer-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
}

.live-card-vertical .lcv-info {
  display: flex;
  align-items: center;
  padding: 14px 12px;
  gap: 12px;
}

.live-card-vertical .lcv-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.live-card-vertical .lcv-text {
  flex: 1;
  min-width: 0;
}

.live-card-vertical .lcv-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}

.live-card-vertical .lcv-meta {
  font-size: 13px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-card-vertical .lcv-enter {
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}

.banner-wrapper {
  padding: 12px 16px;
}

.banner {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-input);
}

.banner-slide {
  position: relative;
  width: 100%;
  padding-top: 40%;
  display: none;
}

.banner-slide.active {
  display: block;
}

.banner-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-slide .banner-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  font-size: 13px;
  color: #fff;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
}

.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  transition: all 0.3s;
}

.banner-dot.active {
  width: 18px;
  background: var(--accent);
}

.category-tabs {
  display: flex;
  gap: 0;
  padding: 0 16px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  padding: 8px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  background: var(--bg-input);
  margin-right: 8px;
}

.category-tab.active {
  background: var(--accent);
  color: #fff;
}

.pull-hint {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state .empty-text {
  font-size: 14px;
}

.live-room {
  position: relative;
  width: 100%;
  height: 100vh;
  max-width: 480px;
  background: #000;
  overflow: hidden;
}

.live-room .video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.live-room .video-container .dplayer {
  width: 100%;
  height: 100%;
}

.live-room .room-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top, 12px));
  background: linear-gradient(rgba(0,0,0,0.6), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.live-room .room-top .back-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  cursor: pointer;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  border: none;
  outline: none;
}

.live-room .room-top .host-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-room .room-top .host-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.live-room .room-top .host-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.live-room .room-top .follow-btn {
  padding: 5px 14px;
  font-size: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-family: var(--font-family);
  outline: none;
}

.live-room .room-top .follow-btn.followed {
  background: rgba(255,255,255,0.3);
}

.live-room .room-top .viewer-info {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 4px;
}

.live-room .room-side {
  position: absolute;
  right: 12px;
  bottom: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.live-room .room-side .side-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.live-room .room-side .side-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.live-room .room-side .side-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
}

.live-room .room-side .side-count {
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.live-room .room-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  z-index: 10;
}

.live-room .room-bottom .room-title-bar {
  margin-bottom: 10px;
}

.live-room .room-bottom .room-title {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
}

.live-room .room-bottom .room-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

.close-live-btn {
  display: inline-block;
  padding: 6px 14px;
  background: #ff2d55;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 12px;
  cursor: pointer;
  margin-top: 6px;
}

.close-live-btn:active {
  background: #c0203f;
}

.live-room .room-bottom .danmaku-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-room .room-bottom .danmaku-input {
  flex: 1;
  height: 38px;
  padding: 0 14px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 19px;
  color: #fff;
  font-size: 14px;
  outline: none;
  font-family: var(--font-family);
}

.live-room .room-bottom .danmaku-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.live-room .room-bottom .send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  flex-shrink: 0;
}

.live-room .room-bottom .action-btns {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.live-room .room-bottom .action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-family);
}

.live-room .room-bottom .action-btn .action-icon {
  font-size: 26px;
}

.heart-animation {
  position: absolute;
  font-size: 28px;
  color: var(--accent);
  pointer-events: none;
  animation: heartFloat 1.2s ease-out forwards;
  z-index: 20;
}

.login-form {
  padding: 24px 16px;
}

.login-form .form-logo {
  text-align: center;
  margin-bottom: 30px;
}

.login-form .form-logo .logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.login-form .form-logo .logo-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.login-form .form-tabs {
  display: flex;
  margin-bottom: 24px;
}

.login-form .form-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 15px;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.login-form .form-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.login-form .login-btn {
  margin-top: 8px;
}

.user-header {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 30px 20px 24px;
  text-align: center;
}

.user-header .user-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin-bottom: 12px;
}

.user-header .user-nickname {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.user-header .user-id {
  font-size: 12px;
  color: var(--text-muted);
}

.user-header .auth-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  margin-top: 8px;
}

.auth-badge.verified {
  background: rgba(52, 199, 89, 0.2);
  color: var(--success);
}

.auth-badge.pending {
  background: rgba(255, 149, 0, 0.2);
  color: var(--warning);
}

.auth-badge.unverified {
  background: rgba(255, 59, 48, 0.2);
  color: var(--danger);
}

.asset-cards {
  display: flex;
  gap: 12px;
  padding: 16px;
}

.asset-card {
  flex: 1;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.asset-card .asset-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.asset-card .asset-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.asset-card .asset-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.menu-list {
  background: var(--bg-card);
  border-radius: var(--radius);
  margin: 0 16px 16px;
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.menu-item:active {
  background: rgba(255,255,255,0.03);
}

.menu-item + .menu-item {
  border-top: 1px solid var(--border);
}

.menu-item .menu-icon {
  font-size: 20px;
  width: 32px;
  text-align: center;
  margin-right: 12px;
}

.menu-item .menu-text {
  flex: 1;
  font-size: 14px;
}

.menu-item .menu-arrow {
  font-size: 14px;
  color: var(--text-muted);
}

.menu-item .menu-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  margin-right: 8px;
}

.menu-item .menu-badge.red {
  background: rgba(255, 59, 48, 0.2);
  color: var(--danger);
}

.user-list-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
}

.user-list-item + .user-list-item {
  border-top: 1px solid var(--border);
}

.user-list-item .user-list-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.user-list-item .user-list-info {
  flex: 1;
}

.user-list-item .user-list-name {
  font-size: 14px;
  font-weight: 500;
}

.user-list-item .user-list-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.message-item {
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.message-item:active {
  background: rgba(255,255,255,0.03);
}

.message-item + .message-item {
  border-top: 1px solid var(--border);
}

.message-item .msg-title {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-item .msg-title .unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.message-item .msg-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.recharge-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}

.recharge-plan {
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.recharge-plan:active {
  transform: scale(0.97);
}

.recharge-plan.active {
  border-color: var(--accent);
  background: rgba(255, 45, 85, 0.08);
}

.recharge-plan .plan-amount {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.recharge-plan .plan-amount .unit {
  font-size: 14px;
}

.recharge-plan .plan-coin {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.recharge-plan .plan-name {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.tab-header {
  display: flex;
  background: var(--bg-secondary);
  position: sticky;
  top: 0;
  z-index: 50;
}

.tab-header .tab-item {
  flex: 1;
  text-align: center;
  padding: 14px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-header .tab-item.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
  font-weight: 500;
}

.safe-area-top {
  padding-top: env(safe-area-inset-top, 0px);
}

.safe-area-bottom {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.dplayer-controller .dplayer-bar-wrap .dplayer-bar .dplayer-played {
  background: var(--accent) !important;
}

.dplayer-controller .dplayer-bar-wrap .dplayer-bar .dplayer-played .dplayer-thumb {
  background: var(--accent) !important;
}

.dplayer-danmaku .dplayer-danmaku-item {
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

@media (min-width: 481px) {
  .app-container {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}
