* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ff4757;
  --secondary-color: #2f3542;
  --bg-color: #0f0f0f;
  --card-bg: #1a1a1a;
  --text-color: #ffffff;
  --text-secondary: #a0a0a0;
  --border-color: #333333;
  --success-color: #2ed573;
  --warning-color: #ffa502;
}

body {
  font-family: "FZJinLingTi", "方正金陵体", "JinLingTi", "STKaiti", "华文楷体", "KaiTi", "楷体", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  padding-bottom: 60px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* 顶部导航 */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(15,15,15,0.98) 0%, rgba(15,15,15,0.9) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .logo {
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header .logo .logo-text {
  font-family: "FZJinLingTi", "方正金陵体", "JinLingTi", "STKaiti", "华文楷体", "KaiTi", "楷体", sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  animation: logoTextBreathing 3s ease-in-out infinite;
}

@keyframes logoTextBreathing {
  0%, 100% {
    color: #9333ea;
    text-shadow: 
      0 0 5px rgba(147, 51, 234, 0.5),
      0 0 10px rgba(147, 51, 234, 0.3);
  }
  50% {
    color: #c084fc;
    text-shadow: 
      0 0 8px rgba(168, 85, 247, 0.8),
      0 0 16px rgba(147, 51, 234, 0.6),
      0 0 24px rgba(126, 34, 206, 0.4);
  }
}

.header .logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.header .logo .logo-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.header .logo .live-bubble {
  font-family: "FZJinLingTi", "方正金陵体", "JinLingTi", "STKaiti", "华文楷体", "KaiTi", "楷体", sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  margin-left: 8px;
  letter-spacing: 2px;
  animation: liveBubbleBreathing 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes liveBubbleBreathing {
  0%, 100% {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    box-shadow: 
      0 0 5px rgba(147, 51, 234, 0.5),
      0 0 10px rgba(147, 51, 234, 0.3),
      0 0 15px rgba(147, 51, 234, 0.2);
  }
  50% {
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%);
    box-shadow: 
      0 0 10px rgba(168, 85, 247, 0.7),
      0 0 20px rgba(147, 51, 234, 0.5),
      0 0 30px rgba(139, 92, 246, 0.3),
      0 0 40px rgba(126, 34, 206, 0.2);
  }
}

.header .search-box {
  flex: 1;
  max-width: 400px;
  margin: 0 20px;
  position: relative;
}

.header .search-box input {
  width: 100%;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-color);
  outline: none;
  font-size: 14px;
}

.header .search-box input:focus {
  border-color: var(--primary-color);
}

.header .tg-group-link {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s;
  flex-shrink: 0;
}

.header .tg-group-link:hover {
  background: linear-gradient(135deg, #0099dd 0%, #0077bb 100%);
  box-shadow: 0 0 12px rgba(0, 136, 204, 0.5);
}

.header .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header .user-info .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
}

.btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.header .btn {
  padding: 6px 16px;
  border-radius: 20px;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: #ff6b7a;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

.btn-danger {
  background: transparent;
  border: 1px solid #ff4757;
  color: #ff4757;
}

.btn-danger:hover {
  background: #ff4757;
  color: white;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
}

/* 分类导航 */
.category-nav {
  padding: 12px 16px;
  overflow-x: auto;
  white-space: nowrap;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  -webkit-overflow-scrolling: touch;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav .category-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  margin-right: 8px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.category-nav .category-item:hover,
.category-nav .category-item.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* 视频网格 */
.video-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.video-card {
  position: relative;
  border-radius: 12px;
  overflow: visible;
  background: var(--card-bg);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  aspect-ratio: 9 / 16;
  animation: purpleBreathing 3s ease-in-out infinite;
}

@keyframes purpleBreathing {
  0%, 100% {
    box-shadow: 
      0 0 5px rgba(147, 51, 234, 0.4),
      0 0 10px rgba(147, 51, 234, 0.3),
      0 0 20px rgba(147, 51, 234, 0.2);
  }
  50% {
    box-shadow: 
      0 0 10px rgba(167, 139, 250, 0.6),
      0 0 20px rgba(147, 51, 234, 0.5),
      0 0 35px rgba(126, 34, 206, 0.3),
      0 0 50px rgba(109, 40, 217, 0.2);
  }
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 0 15px rgba(167, 139, 250, 0.8),
    0 0 30px rgba(147, 51, 234, 0.6),
    0 8px 25px rgba(126, 34, 206, 0.4);
}

.video-card .card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
}

.video-card .cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #222;
}

.video-card .cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-size: 48px;
}

.video-card .live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary-color);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
}

.video-card .live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.video-card.offline .live-badge {
  background: #888;
}

.video-card.offline .live-badge::before {
  animation: none;
  opacity: 0.5;
}

.video-card .online-count {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.video-card .info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.video-card .title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-card .anchor {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-card .anchor-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
}

/* 底部导航栏 - 毛玻璃透明 + 立体图标 */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 15, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-around;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.tab-bar .tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 16px;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 48px;
  justify-content: center;
  position: relative;
}

.tab-bar .tab-icon-wrap {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.tab-bar .tab-icon {
  width: 24px;
  height: 24px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.tab-bar .tab-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.tab-bar .tab-item.active {
  color: #fff;
}

.tab-bar .tab-item.active .tab-icon-wrap {
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.2) 0%, rgba(255, 107, 107, 0.1) 100%);
  box-shadow:
    0 2px 8px rgba(255, 71, 87, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px) scale(1.08);
}

.tab-bar .tab-item.active .tab-icon {
  color: #ff6b7a;
  filter: drop-shadow(0 2px 6px rgba(255, 71, 87, 0.5));
}

.tab-bar .tab-item.active .tab-label {
  color: #ff6b7a;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(255, 71, 87, 0.3);
}

.tab-bar .tab-item:active .tab-icon-wrap {
  transform: scale(0.92);
}

/* 客服悬浮按钮 */
.customer-service {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  align-items: center;
}

.cs-btn {
  background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
  color: white;
  padding: 12px 8px;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  user-select: none;
}

.cs-btn:hover {
  background: linear-gradient(135deg, #0099dd 0%, #0077bb 100%);
  padding-left: 12px;
}

.cs-btn:active {
  transform: scale(0.95);
}

.cs-icon {
  font-size: 18px;
  writing-mode: horizontal-tb;
}

.cs-text {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
}

.cs-panel {
  width: 0;
  overflow: hidden;
  background: var(--card-bg);
  border-radius: 0 0 0 12px;
  box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.3);
  transition: width 0.3s ease;
  border-left: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.customer-service.open .cs-panel {
  width: 200px;
}

.cs-title {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: bold;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
  white-space: nowrap;
}

.cs-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-color);
  transition: background 0.2s;
  white-space: nowrap;
  gap: 10px;
}

.cs-link:hover {
  background: rgba(0, 136, 204, 0.1);
}

.cs-link-icon {
  font-size: 20px;
}

.cs-link span:nth-child(2) {
  flex: 1;
  font-size: 14px;
}

.cs-arrow {
  color: var(--text-secondary);
  font-size: 12px;
}

@media (max-width: 768px) {
  .customer-service {
    top: auto;
    bottom: 70px;
    right: 12px;
    transform: none;
    flex-direction: column-reverse;
  }

  .cs-btn {
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    writing-mode: horizontal-tb;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.5);
  }

  .cs-btn:hover {
    padding: 0;
  }

  .cs-icon {
    font-size: 22px;
    writing-mode: horizontal-tb;
  }

  .cs-text {
    display: none;
  }

  .cs-panel {
    width: 200px;
    max-height: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    bottom: 60px;
    border-radius: 12px;
    border: 0 solid var(--border-color);
    box-shadow: none;
    transition: max-height 0.3s ease, border-width 0.3s ease, box-shadow 0.3s ease;
  }

  .customer-service.open .cs-panel {
    width: 200px;
    max-height: 300px;
    border-width: 1px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  }
}

/* 在线客服聊天窗口 */
.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 100px;
  width: 380px;
  height: 520px;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlideIn 0.3s ease;
}

@keyframes chatSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-widget.active {
  display: flex;
}

.chat-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.chat-name {
  font-size: 15px;
  font-weight: bold;
}

.chat-status {
  font-size: 12px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0.8;
  transition: all 0.2s;
}

.chat-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

.chat-message {
  display: flex;
  gap: 8px;
  max-width: 85%;
}

.chat-message-bot {
  align-self: flex-start;
}

.chat-message-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.chat-message-user .chat-avatar-sm {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.chat-bubble {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-message-bot .chat-bubble {
  align-items: flex-start;
}

.chat-message-user .chat-bubble {
  align-items: flex-end;
}

.chat-bubble-text {
  background: var(--bg-color);
  color: var(--text-color);
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.chat-message-bot .chat-bubble-text {
  border-top-left-radius: 4px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
}

.chat-message-user .chat-bubble-text {
  border-top-right-radius: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.chat-time {
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0.7;
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  padding-left: 40px;
}

.quick-reply {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border: 1px solid rgba(102, 126, 234, 0.3);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.quick-reply:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: translateY(-1px);
}

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

.chat-input-area input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: var(--bg-color);
  color: var(--text-color);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input-area input:focus {
  border-color: #667eea;
}

.chat-input-area button {
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.chat-input-area button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.chat-input-area button:active {
  transform: translateY(0);
}

.cs-chat-entry {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  color: var(--text-color);
  transition: background 0.2s;
  white-space: nowrap;
  gap: 10px;
}

.cs-chat-entry:hover {
  background: rgba(0, 136, 204, 0.1);
}

.cs-chat-entry .cs-link-icon {
  font-size: 20px;
}

.cs-chat-entry span:nth-child(2) {
  flex: 1;
  font-size: 14px;
}

@media (max-width: 768px) {
  .chat-widget {
    right: 10px;
    left: 10px;
    width: auto;
    height: 70vh;
    bottom: 90px;
    border-radius: 12px;
  }
}
/* 登录/注册页面 */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-card h1 {
  text-align: center;
  margin-bottom: 8px;
  font-size: 28px;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-color);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: var(--primary-color);
}

.remember-group {
  margin-bottom: 16px;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.form-group .captcha-box {
  display: flex;
  gap: 12px;
}

.form-group .captcha-box input {
  flex: 1;
}

.form-group .captcha-img {
  width: 120px;
  min-height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  font-weight: bold;
  letter-spacing: 4px;
  user-select: none;
  font-style: italic;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.auth-btn {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: none;
  background: var(--primary-color);
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.auth-btn:hover {
  background: #ff6b7a;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--primary-color);
  font-weight: 500;
}

/* 播放页面 */
.player-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 200;
  display: flex;
  flex-direction: column;
}

.player-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.player-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-back {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 20px;
}

.player-info {
  position: absolute;
  top: 20px;
  left: 70px;
  right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-info .anchor-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-info .anchor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  overflow: hidden;
  flex-shrink: 0;
}

.player-info .anchor-name {
  font-size: 14px;
  font-weight: 500;
}

.player-info .live-info {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-info .online-badge {
  background: rgba(0,0,0,0.6);
  padding: 4px 10px;
  border-radius: 12px;
  color: white;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 弹幕区域 */
.danmaku-container {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 120px;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.danmaku-item {
  position: absolute;
  white-space: nowrap;
  font-size: 22px;
  font-family: "FZJinLingTi", "方正金陵体", "JinLingTi", "STKaiti", "华文楷体", "KaiTi", "楷体", sans-serif;
  opacity: 0.6;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  animation: danmaku-scroll 14s linear forwards;
  left: 100%;
  will-change: transform;
}

@keyframes danmaku-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100vw - 100%));
  }
}

/* 弹幕输入 */
.danmaku-input-bar {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 10;
}

.danmaku-settings-wrapper {
  position: absolute;
  bottom: 68px;
  left: 20px;
  z-index: 25;
}

.danmaku-settings-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.8));
}

.danmaku-settings-toggle:hover {
  color: white;
}

.danmaku-settings-panel {
  position: absolute;
  bottom: 38px;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.15);
  white-space: nowrap;
}

.danmaku-track-group {
  display: flex;
  gap: 4px;
}

.danmaku-track-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  min-height: 36px;
  cursor: pointer;
  transition: all 0.2s;
}

.danmaku-track-btn:hover {
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
}

.danmaku-track-btn.active {
  background: rgba(168,85,247,0.5);
  border-color: rgba(168,85,247,0.8);
  color: white;
}

.danmaku-clear-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  min-height: 36px;
  cursor: pointer;
  transition: all 0.2s;
}

.danmaku-clear-btn:hover {
  background: rgba(239,68,68,0.4);
  border-color: rgba(239,68,68,0.6);
  color: white;
}

.danmaku-input-bar input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 20px;
  border: none;
  background: transparent;
  color: white;
  font-size: 14px;
  outline: none;
}

.danmaku-input-bar input::placeholder {
  color: rgba(255,255,255,0.5);
}

.danmaku-input-bar .send-btn {
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  background: var(--primary-color);
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

/* 个人中心 */
.user-page {
  padding: 0;
}

.user-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-header .avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  color: white;
}

.user-header .info {
  flex: 1;
  color: white;
}

.user-header .username {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 4px;
}

.user-header .uid {
  font-size: 14px;
  opacity: 0.8;
}

.user-header .vip-badge {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: bold;
  color: white;
}

.user-header .vip-badge.normal {
  background: rgba(255,255,255,0.2);
}

.user-menu {
  background: var(--card-bg);
  margin: 12px;
  border-radius: 12px;
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.3s;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background: rgba(255,255,255,0.05);
}

.menu-item .icon {
  font-size: 20px;
  margin-right: 12px;
  width: 24px;
  text-align: center;
}

.menu-item .text {
  flex: 1;
  font-size: 15px;
}

.menu-item .arrow {
  color: var(--text-secondary);
  font-size: 14px;
}

/* 弹窗 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal {
  background: var(--card-bg);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 18px;
}

.modal-header .close-btn {
  cursor: pointer;
  font-size: 20px;
  color: var(--text-secondary);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-footer .btn {
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

/* Toast提示 */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 2000;
  font-size: 14px;
  animation: toast-in 0.3s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* 加载动画 */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--text-secondary);
}

.loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 管理后台样式 */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 220px;
  background: var(--card-bg);
  border-right: 1px solid var(--border-color);
  padding: 20px 0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
}

.admin-sidebar .logo {
  padding: 0 20px 20px;
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.admin-sidebar .menu {
  list-style: none;
}

.admin-sidebar .menu li {
  padding: 12px 20px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-sidebar .menu li:hover,
.admin-sidebar .menu li.active {
  background: rgba(255, 71, 87, 0.1);
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
}

.admin-content {
  flex: 1;
  margin-left: 220px;
  padding: 20px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-header h2 {
  font-size: 22px;
}

.admin-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 14px;
}

.admin-table td {
  font-size: 14px;
}

.admin-table .actions {
  display: flex;
  gap: 8px;
}

.admin-table .action-btn {
  padding: 4px 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 12px;
}

.action-btn.edit {
  background: #3498db;
  color: white;
}

.action-btn.delete {
  background: #e74c3c;
  color: white;
}

.action-btn.online {
  background: #2ed573;
  color: white;
}

.action-btn.offline {
  background: #ffa502;
  color: white;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.status-badge.active {
  background: rgba(46, 213, 115, 0.2);
  color: #2ed573;
}

.status-badge.inactive {
  background: rgba(255, 165, 2, 0.2);
  color: #ffa502;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.pagination button {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.pagination button.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 1400px) {
  .video-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1200px) {
  .video-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .header {
    flex-wrap: wrap;
  }

  .header .search-box {
    display: block;
    flex: 1 0 100%;
    max-width: none;
    margin: 8px 0 0;
  }
  
  .admin-layout {
    flex-direction: column;
  }
  
  .admin-sidebar {
    width: 100%;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
  }
  
  .admin-sidebar .menu {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .admin-sidebar .menu li {
    border-left: none;
    border-bottom: 2px solid transparent;
  }
  
  .admin-sidebar .menu li.active {
    border-bottom: 2px solid var(--primary-color);
  }
  
  .admin-content {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
  }
  
  .video-card .title {
    font-size: 12px;
  }
  
  .video-card .anchor {
    font-size: 10px;
  }
  
  .header {
    padding: 10px 12px;
    gap: 6px;
  }
  
  .header .logo {
    font-size: 16px;
    gap: 4px;
  }
  
  .header .logo .logo-text {
    font-size: 16px;
  }
  
  .header .logo .live-bubble {
    display: none;
  }
  
  .header .tg-group-link {
    padding: 4px 10px;
    font-size: 12px;
  }
  
  .header .btn {
    padding: 5px 10px;
    font-size: 12px;
  }
  
  .auth-card {
    padding: 30px 20px;
  }

  .user-header {
    padding: 24px 16px;
    gap: 12px;
  }
  
  .user-header .avatar {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
  
  .user-header .username {
    font-size: 17px;
  }
  
  .user-header .vip-badge {
    font-size: 11px;
    padding: 4px 8px;
    white-space: nowrap;
  }
  
  .modal {
    max-width: calc(100vw - 24px) !important;
  }
  
  .modal-footer {
    flex-direction: column;
    gap: 8px;
  }
  
  .modal-footer .btn {
    width: 100%;
  }
  
  .player-info {
    top: 12px;
    left: 60px;
    right: 12px;
  }
  
  .player-back {
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
  }
  
  .danmaku-container {
    top: 60px;
    bottom: 100px;
  }
  
  .danmaku-input-bar {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
  
  .danmaku-settings-wrapper {
    bottom: 56px;
    left: 12px;
  }
  
  .danmaku-track-btn, .danmaku-clear-btn {
    font-size: 11px;
    padding: 3px 10px;
  }
  
  .admin-table {
    font-size: 12px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 8px 6px;
  }
  
  .admin-card {
    padding: 12px;
  }
  
  .admin-content {
    padding: 12px;
  }
  
  .toolbar {
    gap: 8px;
  }
  
  .toolbar input, .toolbar select {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .toolbar .btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
