/* 游戏详情页面样式 */

/* 确保游戏详情页面时，main-content不受max-width限制 */
body.game-detail-page .main-content {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* 确保游戏详情页面内容区域没有额外padding */
#gameDetailPage.page-content {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* 游戏头部 */
.game-detail-header {
  background: white;
  padding: calc(8px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  box-sizing: border-box;
}

.game-header-content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  box-sizing: border-box !important;
}

.game-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-header-back {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.game-header-back:hover {
  background: #e5e7eb;
  color: #374151;
}

.game-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
}

.game-header-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-header-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.game-header-share {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.game-header-share:hover {
  background: #e5e7eb;
  color: #374151;
}

/* 搜索栏 */
.game-detail-search {
  background: white;
  padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)) !important;
  border-bottom: 1px solid #e5e7eb;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  max-width: 100% !important;
}

.game-search-container {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 6px 10px !important;
  gap: 6px;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  max-width: 100% !important;
  position: relative;
}

/* 确保搜索栏和商品列表容器的实际内容区域对齐 */
.game-detail-search {
  background: white;
  padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)) !important;
  border-bottom: 1px solid #e5e7eb;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  max-width: 100% !important;
  position: relative;
}

.game-search-icon {
  font-size: 14px;
  color: #9ca3af;
  flex-shrink: 0;
}

.game-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
  color: #1f2937;
}

.game-search-input::placeholder {
  color: #9ca3af;
}

.game-search-btn {
  padding: 5px 12px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.game-search-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

/* 搜索结果容器 */
.game-search-results-container {
  background: white;
  width: 100%;
  box-sizing: border-box;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

/* 搜索结果标题横幅 */
.game-search-results-banner {
  background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 16px;
  text-align: center;
  border-radius: 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

/* 搜索结果项 */
.game-search-result-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background-color 0.2s;
  gap: 12px;
}

.game-search-result-item:hover {
  background-color: #f9fafb;
}

.game-search-result-item:active {
  background-color: #f3f4f6;
}

.game-search-result-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
}

.game-search-result-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-search-result-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-search-result-arrow {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  flex-shrink: 0;
}

.game-search-result-arrow i {
  font-size: 12px;
}

/* 搜索加载状态 */
.game-search-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 16px;
}

.game-search-loading .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top-color: #f97316;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.game-search-loading .loading-text {
  color: #6b7280;
  font-size: 14px;
}

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

/* 筛选和排序栏 */
.game-filter-bar {
  background: white;
  padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  align-items: center;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* 排序弹层样式 */
.sort-modal {
  max-width: 90%;
  width: 400px;
  max-height: calc(100vh - 60px - 40px);
  background: white;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sort-modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.sort-options-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sort-option-btn {
  width: 100%;
  padding: 12px 16px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.sort-option-btn:hover {
  background: #f9fafb;
  border-color: #f97316;
}

.sort-option-btn.active {
  background: #fff7ed;
  border-color: #f97316;
  color: #f97316;
  font-weight: 500;
}

/* 筛选弹层样式 */
.filter-modal {
  max-width: 100%;
  width: 100%;
  max-height: calc(100vh - 60px);
  background: white;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.filter-modal-body {
  padding: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  padding-bottom: 100px; /* 为底部按钮留出更多空间 */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  max-height: calc(100vh - 60px - 60px - 60px); /* 减去导航栏、头部和按钮高度 */
  width: 100%;
  box-sizing: border-box;
}

.filter-groups-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px; /* 与底部按钮的间距 */
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.filter-group-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.filter-group-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  min-width: 0;
}

/* 范围输入样式 */
.filter-range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.filter-range-input {
  flex: 1;
  min-width: 0;
  max-width: calc(50% - 4px);
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #1f2937;
  background: white;
  box-sizing: border-box;
}

.filter-range-input::placeholder {
  color: #9ca3af;
}

.filter-range-input:focus {
  outline: none;
  border-color: #f97316;
}

.filter-range-separator {
  color: #6b7280;
  font-size: 14px;
  flex-shrink: 0;
}

/* 按钮组样式 */
.filter-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-option-btn {
  padding: 8px 16px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-option-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.filter-option-btn.active {
  background: #fff7ed;
  border-color: #f97316;
  color: #f97316;
  font-weight: 500;
}

/* 筛选操作按钮 */
.filter-actions {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border-top: 1px solid #e5e7eb;
  z-index: 1004;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.filter-reset-btn,
.filter-confirm-btn {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.filter-reset-btn {
  background: #f3f4f6;
  color: #374151;
}

.filter-reset-btn:hover {
  background: #e5e7eb;
}

.filter-confirm-btn {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
}

.filter-confirm-btn:hover {
  opacity: 0.9;
}

.filter-loading,
.filter-error {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
  font-size: 14px;
}

.game-filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  font-size: 12px;
  color: #374151;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  height: 28px;
}

.filter-item:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.filter-item.active {
  background: #fff4e6;
  border-color: #f97316;
  color: #f97316;
}

.filter-item.active i {
  color: #f97316;
}

.filter-item i {
  font-size: 10px;
  color: #9ca3af;
}

.filter-btn {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  margin-left: auto;
}

.filter-btn i {
  margin-right: 4px;
}

.filter-btn:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.filter-btn i {
  color: white;
}

/* 弹层遮罩 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 60px; /* 为底部导航栏留出空间 */
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001; /* 确保在导航栏上方 */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

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

/* 弹层内容 */
.modal-content {
  background: white;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease-out;
}

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

.client-modal {
  max-height: calc(100vh - 60px - 20px); /* 减去导航栏高度和顶部留白 */
}

/* 弹层头部 */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}

/* 弹层主体 */
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.client-modal-body {
  display: flex;
  gap: 0;
  padding: 0;
  overflow: hidden;
  width: 100%;
}

/* 左侧客户端侧边栏 */
.client-sidebar {
  width: 120px;
  background: #f9fafb;
  border-right: 1px solid #e5e7eb;
  padding: 12px 0;
  flex-shrink: 0;
  overflow-y: auto;
  max-height: calc(100vh - 60px - 120px); /* 减去导航栏和弹框头部高度 */
}

/* 客户端列表容器 */
.client-list-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 平台按钮（现在在右侧） */
.platform-btn {
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 14px;
  color: #374151;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  margin: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}

.platform-btn:hover {
  border-color: #f97316;
  color: #f97316;
  background: #fff4e6;
}

.platform-btn.active {
  border-color: #f97316;
  background: #f97316;
  color: white;
}

/* 平台按钮容器 */
.platform-buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

/* 客户端按钮 */
.client-btn {
  padding: 12px 16px;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 0;
  font-size: 14px;
  color: #6b7280;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}

.client-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.client-btn.active {
  color: #f97316;
  background: #fff4e6;
  border-left-color: #f97316;
  font-weight: 500;
}

/* 右侧服务器侧边栏 */
.server-sidebar {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  max-height: calc(100vh - 60px - 120px); /* 减去导航栏和弹框头部高度 */
  min-width: 0;
  box-sizing: border-box;
}

/* 当左侧侧边栏隐藏时，右侧区域占据全宽 */
.server-sidebar.full-width {
  width: 100% !important;
  flex: 1 1 100% !important;
  max-width: 100% !important;
}

/* 搜索服务器容器 */
.server-search-container {
  margin-bottom: 16px;
}

.server-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #f97316;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
  color: #1f2937;
}

.server-search-input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.server-search-input::placeholder {
  color: #9ca3af;
}

/* 服务器按钮列表容器 */
.server-buttons-container {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 12px;
  width: 100%;
  margin-left: -8px;
  margin-right: -8px;
}

/* 服务器按钮 */
.server-btn {
  flex: 0 0 calc(50% - 16px);
  width: calc(50% - 16px);
  min-width: 0;
  padding: 10px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
  background: #f3f4f6;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
  text-align: center;
  margin: 8px;
  box-sizing: border-box;
}

.server-btn:hover {
  border-color: #d1d5db;
  background: #f3f4f6;
  color: #1f2937;
}

.server-btn.active {
  border-color: #f97316;
  background: white;
  color: #f97316;
  font-weight: 500;
}

/* 全部服务器按钮容器 */
.all-server-btn-container {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.all-server-btn {
  padding: 10px 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 400;
  width: 100%;
  max-width: 200px;
}

.all-server-btn:hover {
  border-color: #d1d5db;
  background: #f3f4f6;
  color: #1f2937;
}

/* 账号列表容器 */
#accountListContainer.account-list-container {
  padding: 8px 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  max-width: 100% !important;
  position: relative;
}

.account-list-container {
  padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  max-width: 100% !important;
  /* 确保容器内容完全占满宽度 */
  display: flex;
  flex-direction: column;
}

/* 账号卡片 */
.account-card {
  background: white;
  border-radius: 8px;
  padding: 12px 14px !important;
  margin-bottom: 10px;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  gap: 12px;
  width: 100% !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
  /* 确保卡片完全占满容器宽度，与搜索框对齐 */
  min-width: 0;
  flex-shrink: 0;
}

.account-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.account-thumbnail {
  width: 100px;
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
  position: relative;
}

.account-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}

.account-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  justify-content: space-between;
  overflow: hidden;
}

.account-title {
  font-size: 13px;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 2px;
}

.account-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.account-badge {
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 3px;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid;
}

/* 找回包赔 - 浅桃色背景，橙色边框和文字 */
.account-badge.badge-recovery {
  background: #fff4e6;
  border-color: #f97316;
  color: #f97316;
}

/* 官方验号 - 浅蓝色背景，蓝色边框和文字 */
.account-badge.badge-official {
  background: #e0f2fe;
  border-color: #0ea5e9;
  color: #0ea5e9;
}

/* 安全保障 - 浅绿色背景，绿色边框和文字 */
.account-badge.badge-security {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #22c55e;
}

.account-price {
  font-size: 16px;
  font-weight: 600;
  color: #ef4444;
  margin-top: auto;
  padding-top: 3px;
}

.account-details {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}

/* 响应式 */
@media (max-width: 768px) {
  .game-detail-header {
    padding: 14px 16px;
  }
  
  .game-detail-search {
    padding: 14px 16px;
  }
  
  .modal-content {
    max-height: 85vh;
  }
  
  .client-modal {
    max-height: 75vh;
  }
  
  .client-sidebar {
    width: 100px;
    max-height: calc(75vh - 60px);
  }
  
  .platform-btn,
  .client-btn {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .server-sidebar {
    padding: 12px;
    max-height: calc(75vh - 60px);
  }
  
  .server-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .account-list-container {
    padding: 8px 12px !important;
  }
  
  .account-card {
    padding: 8px;
    margin-bottom: 8px;
    gap: 8px;
  }
  
  .account-thumbnail {
    width: 70px;
    height: 70px;
  }
  
  .account-title {
    font-size: 12px;
  }
  
  .account-price {
    font-size: 15px;
  }
}

/* 图片预览弹窗样式 */
.image-preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.image-preview-modal {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #000;
  position: relative;
}

.image-preview-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
  z-index: 10;
}

.image-preview-title {
  color: white;
  font-size: 16px;
  font-weight: 600;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 12px;
}

.image-preview-counter {
  color: white;
  font-size: 14px;
  margin-right: 12px;
  flex-shrink: 0;
}

.image-preview-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.image-preview-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.image-preview-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 60px 60px 60px 60px;
  box-sizing: border-box;
}

.image-preview-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
  box-sizing: border-box;
}

.preview-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  display: block;
  transition: opacity 0.3s ease-in-out;
}

.image-loading-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-loading-spinner {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 1;
}

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

.image-preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 30;
  backdrop-filter: blur(10px);
  opacity: 1;
  pointer-events: auto;
}

.image-preview-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.image-preview-prev {
  left: 16px;
}

.image-preview-next {
  right: 16px;
}

.image-preview-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  z-index: 10;
}

.image-preview-count-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .image-preview-header {
    height: 50px;
    padding: 0 12px;
  }
  
  .image-preview-title {
    font-size: 14px;
  }
  
  .image-preview-counter {
    font-size: 12px;
  }
  
  .image-preview-close {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  .image-preview-body {
    padding: 50px 0 50px 0;
  }
  
  .image-preview-nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .image-preview-prev {
    left: 12px;
  }
  
  .image-preview-next {
    right: 12px;
  }
  
  .image-preview-footer {
    height: 50px;
    padding: 0 12px;
  }
  
  .image-preview-count-text {
    font-size: 12px;
  }
}

/* ==================== 账号详情页面样式 ==================== */

/* 账号详情页面隐藏侧边服务按钮 */
body.account-detail-page .side-service-btn {
  display: none;
}

/* 账号详情页面允许滚动和双指手势 */
body.account-detail-page {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y pinch-zoom;
  height: 100vh;
  position: relative;
}

html.account-detail-page {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: 100%;
}

#accountDetailPage {
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y pinch-zoom;
  min-height: calc(100vh - 60px);
  padding-bottom: calc(60px + env(safe-area-inset-bottom)); /* 为底部导航栏留出空间，考虑安全区域 */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  width: 100%;
  box-sizing: border-box;
}

/* 账号详情加载状态 */
.account-detail-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  padding: 60px 20px;
  gap: 16px;
}

.account-detail-loading .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top-color: #f97316;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.account-detail-loading .loading-text {
  color: #6b7280;
  font-size: 14px;
}

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

/* 账号详情头部 */
.account-detail-header {
  background: white;
  padding: 10px 16px;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.account-header-content {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  box-sizing: border-box;
}

.account-header-back {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.account-header-back:hover {
  background: #e5e7eb;
  color: #374151;
}

.account-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.account-header-game-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  justify-content: center;
}

.account-header-game-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.account-header-game-name {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.account-header-product-id {
  font-size: 12px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
  text-align: center;
}

.account-header-share {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.account-header-share:hover {
  background: #e5e7eb;
  color: #374151;
}

/* 图片轮播 */
.account-image-carousel {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.carousel-container {
  display: flex;
  transition: transform 0.3s ease;
  width: 100%;
}

.carousel-item {
  min-width: 100%;
  display: none;
  height: 45vh;
  overflow: hidden;
  position: relative;
}

.carousel-item.active {
  display: block;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  background: #000;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
  z-index: 5;
  position: relative;
}

.carousel-item {
  cursor: pointer;
}

.carousel-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  z-index: 10;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  color: #1f2937;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 15;
  pointer-events: auto;
}

.carousel-nav:hover {
  background: white;
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.no-images {
  padding: 60px 20px;
  text-align: center;
  color: #9ca3af;
  background: #f3f4f6;
}

/* 价格和基本信息 */
.account-price-section {
  background: white;
  padding: 18px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.account-price-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.price-symbol {
  font-size: 16px;
  color: #ef4444;
  font-weight: 600;
}

.price-value {
  font-size: 20px;
  color: #ef4444;
  font-weight: 700;
}

.account-title-main {
  font-size: 14px;
  color: #1f2937;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.5;
}

.account-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #6b7280;
}

.meta-divider {
  color: #d1d5db;
}

/* 商品编号 */
.account-product-id {
  background: #fff7ed;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  margin: 0;
  border-radius: 0;
  border-left: 3px solid #f97316;
}

.product-id-label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
  font-weight: 500;
}

.product-id-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}

.product-id-value span {
  font-size: 14px;
  color: #1f2937;
  font-weight: 700;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white !important;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}

.copy-btn span,
.copy-btn i {
  color: white !important;
}

.copy-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.product-id-tip {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
}

/* 账号属性 */
.account-properties-section {
  background: white;
  padding: 18px 16px;
  border-bottom: 1px solid #e5e7eb;
  margin-top: 0;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 14px;
  position: relative;
  padding-left: 12px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.6) 0%, rgba(234, 88, 12, 0.6) 100%);
  border-radius: 2px;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.property-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  position: relative !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.2s !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.property-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  border-color: #d1d5db !important;
  transform: translateY(-1px) !important;
}

.property-icon {
  width: 32px !important;
  height: 32px !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3) !important;
}

/* 默认图标样式 - 稍微淡一点 */
.property-icon .fa-info-circle {
  opacity: 0.9;
}

.property-icon i {
  color: white !important;
  font-size: 15px !important;
}

.property-content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.property-name {
  font-size: 12px !important;
  color: #9ca3af !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  margin-bottom: 2px !important;
}

.property-value {
  font-size: 14px !important;
  color: #1f2937 !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* 卖家描述 */
.account-description-section {
  background: white;
  padding: 18px 16px;
  border-bottom: 1px solid #e5e7eb;
  margin-top: 0;
}

.description-content {
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* 账号截图 */
.account-screenshots-section {
  background: white;
  padding: 18px 16px;
  border-bottom: 1px solid #e5e7eb;
  margin-top: 0;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.screenshot-item {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 比例 */
  background: #f3f4f6;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.screenshot-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 交易保障 */
.account-guarantee-section {
  background: white;
  padding: 18px 16px;
  margin-top: 0;
  margin-bottom: 80px; /* 为底部操作栏留出空间 */
}

.account-guarantee-section .section-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 14px;
  position: relative;
  padding-left: 12px;
}

.account-guarantee-section .section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.6) 0%, rgba(234, 88, 12, 0.6) 100%);
  border-radius: 2px;
}

.account-guarantee-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 14px;
  position: relative;
  padding-left: 12px;
}

.account-guarantee-section h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.6) 0%, rgba(234, 88, 12, 0.6) 100%);
  border-radius: 2px;
}

.guarantee-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.guarantee-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.guarantee-icon.recovery {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
}

.guarantee-icon.official {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.guarantee-icon.fast {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
}

.guarantee-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.account-guarantee-section .guarantee-title {
  font-size: 11px !important;
  font-weight: 600;
  color: #1f2937 !important;
  margin-bottom: 3px;
  display: block;
  visibility: visible;
  opacity: 1;
}

.account-guarantee-section .guarantee-desc {
  font-size: 10px !important;
  color: #6b7280 !important;
  line-height: 1.4;
  display: block;
  visibility: visible;
  opacity: 1;
}

/* 底部操作栏 */
.account-detail-footer {
  position: fixed;
  bottom: 60px; /* 在底部导航栏上方 */
  left: 0;
  right: 0;
  background: white;
  padding: 14px 16px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 12px;
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

.footer-btn {
  flex: 1;
  padding: 13px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.3px;
}

.contact-btn {
  background: #f3f4f6;
  color: #374151;
}

.contact-btn:hover {
  background: #e5e7eb;
}

.buy-btn {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
}

.buy-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 保持2列布局 */
  }
  
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
  
  .screenshot-item {
    padding-top: 56.25%; /* 16:9 比例 */
  }
}

