:root {
  --bg-image: url('');
  --bg-color: #f4f4f4;
  --primary-color: #ff9500;
  --dark-color: #333;
  --hover-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  --card-bg: rgba(255, 255, 255, 0.98);
}

body {
  margin: 0;
  background: var(--bg-image), var(--bg-color);
  background-size: cover;
  background-attachment: fixed;
  color: var(--dark-color);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

.banner-carousel {
  width: 100%;
  height: 180px;
  background: #000;
}
.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 导航栏 */
.nav-bar {
  display: flex;
  justify-content: space-around;
  padding: 15px 5px;
  background: #fff;
  position: relative;
  top: -25px;
  z-index: 10;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
}
.nav-item {
  flex: 1;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nav-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}
.nav-item-text {
  display: block;
  font-size: 11px;
  margin-top: 5px;
  font-weight: 600;
  color: #666;
}
.nav-item.active .nav-item-text {
  color: var(--primary-color);
}

/* 搜索栏 */
.search-bar {
  display: flex;
  justify-content: center;
  padding: 10px 15px;
  background: #fff;
  margin: -25px 0 5px;
}
.search-input {
  padding: 10px 12px;
  font-size: 14px;
  border: 2px solid #333;
  border-radius: 8px 0 0 8px;
  outline: none;
  flex: 1;
  max-width: 400px;
}
.search-button {
  background: #333;
  color: #fff;
  border: none;
  padding: 0 15px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

/* 列表项 */
.game-list {
  list-style: none;
  padding: 10px;
  margin: 0;
}
.game-item {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 8px;
  padding: 10px;
  box-shadow: var(--hover-shadow);
  transition: transform 0.2s ease;
}

.logo-wrapper {
  position: relative;
  width: 50px;
  height: 50px;
  margin-right: 12px;
  flex-shrink: 0;
}
.game-logo {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}
.game-number {
  position: absolute;
  top: -4px;
  left: -4px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: #ff4757;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  z-index: 2;
  padding: 0 2px;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.game-info { flex: 1; overflow: hidden; }
.game-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-details {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
}
.pure-tag {
  background: #ffa502;
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}
.domain-tag {
  color: #ff4757;
  font-size: 11px;
  background: rgba(255, 71, 87, 0.1);
  padding: 1px 5px;
  border: 1px solid rgba(255, 71, 87, 0.2);
  border-radius: 4px;
  white-space: nowrap;
}
.update-time {
  font-size: 11px;
  color: #777;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 5px;
  border-radius: 4px;
}

/* 网友分享头像模块 */
.share-user-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #aaa;
  margin-top: 6px;
  border-top: 1px dashed #eee;
  padding-top: 4px;
}
.share-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f0f0;
}

.game-button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 8px;
}

/* 状态提示 */
.loading, .no-more {
  text-align: center;
  padding: 20px;
  color: #999;
  display: none;
  font-size: 14px;
}
.loading-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}

/* 底部声明 */
.footer-disclaimer {
  text-align: center;
  padding: 25px 15px;
  font-size: 11px;
  color: #bbb;
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* 悬浮按钮 */
#poster-float-btn {
  position: fixed;
  bottom: 200px;
  right: 20px;
  z-index: 500;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50px;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
#poster-float-btn:hover {
  transform: translateY(-5px);
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
#poster-float-btn .nav-img {
  width: 35px;
  height: 35px;
  object-fit: contain;
  margin: 0;
}

/* 弹窗通用基础 */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}
.modal-content {
  position: relative;
  width: 80%;
  max-width: 350px;
}

/* 个人中心弹窗专用样式 */
.profile-content {
  background: #fff;
  padding: 24px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.profile-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 15px;
}
.profile-header .avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 2px solid var(--primary-color);
  padding: 2px;
  background: #f9f9f9;
}
.user-info h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  color: #333;
}
.user-info p {
  margin: 0;
  font-size: 12px;
  color: #888;
  font-family: monospace;
}
.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}
.vip-status-tag {
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}

/* 倒计时样式 */
.vip-countdown-text {
  font-family: monospace;
  font-size: 15px;
  color: #ff4757;
  font-weight: bold;
  letter-spacing: 1px;
}
.profile-row-tip {
  font-size: 11px;
  color: #aaa;
  text-align: right;
  margin-bottom: 15px;
}

/* 详细免责声明样式 */
.profile-disclaimer {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #eee;
  text-align: left;
}
.profile-disclaimer h4 {
  font-size: 13px;
  color: #333;
  margin: 0 0 8px 0;
  font-weight: 600;
}
.profile-disclaimer p {
  font-size: 11px;
  color: #888;
  margin: 0 0 6px 0;
  line-height: 1.6;
}

.video-container {
  width: 100%;
  aspect-ratio: 9/16;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.video-player { width: 100%; height: 100%; object-fit: contain; }
.close-button {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

.clear-span {
  background: #000;
  color: #fff;
  padding: 2px 8px;
  border-radius: 8px;
  margin: 0 5px;
  animation: shake 0.6s infinite;
  display: inline-block;
  cursor: pointer;
}

@media (min-width: 768px) {
  .banner-carousel { height: 300px; }
  .nav-bar, .game-list, .search-bar { max-width: 600px; margin-left: auto; margin-right: auto; }
}