﻿/* 全局统一重置 & 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
body {
  background: linear-gradient(135deg, #f0f4ff 0%, #e0ebff 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* 主容器框架 */
.app-container {
  width: 100%;
  max-width: 100%;
  height: 90vh;
  min-height: 90vh;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(13, 110, 253, 0.15);
  display: flex;
  overflow: hidden;
}

/* 侧边栏导航 */
.sidebar {
  width: 180px;
  background: linear-gradient(180deg, #1677ff 0%, #0958d9 100%);
  color: white;
  padding: 25px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-logo {
  text-align: center;
  margin-bottom: 20px;
  padding: 0 15px;
}
.logo-icon,
.sidebar-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 8px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1677ff;
  font-weight: bold;
  font-size: 20px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255,255,255,0.15);
  color: white;
  border-left: 3px solid white;
}
.sidebar-nav a i {
  font-size: 18px;
}
.user-info {
  margin-top: auto;
  padding: 15px 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.appinfo-icon-index-2HvlC1 {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
}

/* 主内容区 */
.main-content {
  flex: 1;
  padding: 30px;
  background: #fafbfc;
  height: 100%;
  overflow-y: auto;
}
.page-title {
  font-size: 26px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 按钮通用样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  min-width: 110px;
  color: #fff;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}
.btn-blue, .btn-primary {
  background: linear-gradient(135deg, #1677ff, #0958d9);
}
.btn-block { width: 100%; }
.btn-outline {
  background: white;
  color: #1677ff;
  border: 1px solid #1677ff;
}
.btn-outline:hover { background: #f0f7ff; }
.btn-gray {
  background: #f0f2f5;
  color: #666;
  padding: 15px;
  border-radius: 10px;
  display: block;
  margin-top: 15px;
  text-decoration: none;
  text-align: center;
}
.gold-text { color: #ff9c00; font-weight: bold; }

/* 信息卡片 */
.info-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 25px;
}
.info-row {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f0f2f5;
  font-size: 15px;
}
.info-row:last-child { border-bottom: none; }
.info-label {
  width: 100px;
  font-weight: 500;
  color: #333;
}
.info-value { color: #555; }

/* 提示消息 */
.msg, .success, .error {
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}
.msg.ok, .success { background: #e6ffed; color: #00b42a; }
.msg.err, .error { background: #fff1f0; color: #f53f3f; }

/* 加载与错误 */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 16px;
}
.error-tip {
  background: #fff1f0;
  color: #f53f3f;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  margin: 40px auto;
  max-width: 500px;
}
.empty {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  color: #999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 搜索相关 */
.search-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  background: #ff6699;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}
.search-btn:hover { background: #ff5588; }
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.search-modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  width: 90%;
  max-width: 380px;
  text-align: center;
  position: relative;
}
.close-modal {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 20px;
  cursor: pointer;
}
.search-input-modal, .search-input {
  width: 100%;
  padding: 10px;
  margin: 12px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}
.search-submit {
  width: 100%;
  padding: 10px;
  background: #ff6699;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.search-submit:hover { background: #ff5588; }
.search-box { margin-bottom: 25px; }

/* 标签 & 分类 */
.tag-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tag-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  background: #f5f7fa;
  color: #333;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.tag-btn.active, .tag-btn:hover {
  background: #ff6699;
  color: #fff;
}

/* 分页 */
.pagination, #pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 30px 0;
  flex-wrap: wrap;
}
.page-btn, .pagination button {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #f5f7fa;
}
.page-btn.active {
  background: #ff6699;
  color: #fff;
}
.count-popup {
  text-align: center;
  margin-bottom: 8px;
  font-size: 14px;
  color: #666;
}
#pagination button {
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.2);
}
#pagination button.bg-pink-500 {
  background-color: #ec4899;
  color: #fff;
}
#pagination button.bg-pink-500:hover {
  background-color: #db2777;
  transform: translateY(-2px);
}
#pagination button.bg-white {
  background-color: #fff;
  color: #ec4899;
  border: 1px solid #ec4899;
}
#pagination button.bg-white:hover {
  background-color: #fce7f3;
  transform: translateY(-2px);
}

/* 支付卡片 */
.pay-card {
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.pay-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}
#status { font-weight: bold; color: #f53f3f; margin-bottom: 15px; }
.qr-box {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.qr-box img { width: 200px; height: 200px; margin: 0 auto; }
.qr-box p { margin-top: 8px; color: #666; }
.price {
  font-size: 20px;
  color: #f53f3f;
  font-weight: bold;
  margin: 10px 0;
}

/* API套餐 */
.plan-section-title {
  font-size: 18px;
  color: #1677ff;
  font-weight: 500;
  margin-bottom: 20px;
}
.plan-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  cursor: pointer;
}
.plan-check {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
  position: relative;
  margin-top: 2px;
}
.plan-check.checked { border-color: #1677ff; }
.plan-check.checked::after {
  content: "?";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #1677ff;
  font-size: 14px;
  font-weight: bold;
}
.plan-content { flex: 1; }
.plan-name {
  font-size: 16px;
  color: #333;
  font-weight: 500;
  margin-bottom: 4px;
}
.plan-desc {
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
}
.plan-price {
  font-size: 20px;
  color: #1677ff;
  font-weight: bold;
}

/* 游戏详情 */
.game-container {
  max-width: 900px;
  margin: 0 auto;
  display: none;
}
.game-header {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.game-cover {
  width: 240px;
  height: 320px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.game-info {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.game-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}
.game-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  color: #666;
  font-size: 15px;
}
.game-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.game-desc {
  font-size: 16px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 25px;
}
.game-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}
.game-tag {
  padding: 6px 14px;
  background: #e8f3ff;
  color: #1677ff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}
.game-buttons {
  display: flex;
  gap: 15px;
}
.section { margin-bottom: 40px; }
.section-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8f3ff;
}
.screenshots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}
.screenshot {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.2s;
  cursor: pointer;
}
.screenshot:hover { transform: scale(1.03); }
.config-box {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.rating { color: #ffc107; font-size: 18px; margin-bottom: 10px; }

/* 图片预览弹窗 */
.img-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.img-preview.show { display: flex; }
.preview-img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}
.preview-close, .preview-prev, .preview-next {
  position: absolute;
  color: white;
  font-size: 30px;
  background: rgba(255,255,255,0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  z-index: 10;
}
.preview-close { top: 30px; right: 30px; }
.preview-prev { left: 30px; top: 50%; transform: translateY(-50%); }
.preview-next { right: 30px; top: 50%; transform: translateY(-50%); }
.preview-close:hover, .preview-prev:hover, .preview-next:hover {
  background: rgba(255,255,255,0.4);
}

/* 视频容器 */
#video {
  width: 100% !important;
  height: 400px !important;
  background: #e8f3ff;
  border-radius: 8px;
  overflow: hidden;
}
#video video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* 变态福利 */
.bt-section {
  background: linear-gradient(135deg, #fff5f5 0%, #fff9f9 100%);
  border: 1px solid #ff6b6b;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 30px;
}
.bt-title {
  font-size: 18px;
  font-weight: 600;
  color: #ff3333;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bt-title i { font-size: 20px; }
.bt-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.bt-tag {
  background: #ffeaea;
  color: #ff3333;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}
.bt-desc {
  color: #444;
  line-height: 1.8;
  font-size: 15px;
  white-space: pre-line;
}

/* 开服表 */
.server-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.server-table th {
  background: #f5f7fa;
  padding: 14px 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
  font-size: 15px;
}
.server-table td {
  padding: 14px 15px;
  border-bottom: 1px solid #f0f2f5;
  color: #555;
  font-size: 15px;
}
.server-table tr:last-child td { border-bottom: none; }
.server-tag {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}
.tag-today { background: #e6f7ff; color: #1890ff; }
.tag-tomorrow { background: #fff7e6; color: #fa8c16; }
.tag-soon { background: #f6ffed; color: #52c41a; }
.server-btn {
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-enter { background: #1677ff; color: #fff; }
.btn-enter:hover { background: #0958d9; }
.btn-wait { background: #f5f7fa; color: #999; cursor: not-allowed; }

/* VIP会员列表 */
.vip-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}
.vip-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: #fafbfc;
  border-radius: 8px;
  border-left: 3px solid #1677ff;
}
.vip-level {
  font-weight: 600;
  color: #1677ff;
  font-size: 15px;
  min-width: 100px;
}
.vip-money { font-size: 14px; color: #333; }
.vip-money span { color: #ff4d4f; font-weight: 600; }
.vip-desc { font-size: 12px; color: #999; margin-top: 3px; }
.vip-empty { text-align: center; padding: 30px 10px; color: #999; }
.vip-remark { font-size: 12px; color: #999; margin-top: 10px; text-align: center; }

/* 导航网格 & 工具卡片 */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.nav-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: all 0.25s;
}
.nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(22, 119, 255, 0.15);
}
.nav-card i {
  font-size: 40px;
  color: #1677ff;
  margin-bottom: 15px;
}
.nav-card .nav-name {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}
.nav-card .nav-desc {
  font-size: 13px;
  color: #999;
  margin-top: 6px;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.tool-card {
  background: white;
  border-radius: 12px;
  padding: 20px 15px;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: all 0.25s;
  border: 1px solid #f0f2f5;
  position: relative;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.12);
  border-color: #d6e4ff;
}
.tool-card .card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
  border-radius: 10px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1677ff;
  font-size: 28px;
}
.tool-card .card-title { font-size: 14px; font-weight: 500; color: #333; }

/* 头部操作区 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.header h1 {
  font-size: 26px;
  color: #1a1a1a;
  font-weight: 600;
}
.header-actions { display: flex; gap: 12px; }
.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: white;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}
.action-btn:hover { background: #f0f7ff; color: #1677ff; }

/* 更新弹窗 */
.update-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 999;
}
.update-popup .version-tag {
  background: #1677ff;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}
.update-popup .update-btn {
  background: #1677ff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.update-popup .update-btn:hover { background: #0958d9; }
.close-popup {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: none;
  font-size: 16px;
  color: #999;
  cursor: pointer;
}

/* 商品卡片 */
.goods-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  grid-auto-rows: 1fr;
}
.goods-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s;
  border: 1px solid #f0f2f5;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.goods-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(13, 110, 255, 0.12);
  border-color: #d6e4ff;
}
.goods-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}
.goods-info {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.goods-title {
  font-size: 14px;
  font-weight: 500;
  color: #222;
  margin-bottom: 8px;
  line-height: 1.3;
}
.rainbow-btn {
  display: inline-block;
  width: 100%;
  padding: 5px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  border-radius: 6px;
  background: linear-gradient(120deg,#FF5F6D,#FFC371,#43CBFF,#9708CC,#FF5F6D);
  background-size: 300% 100%;
  animation: rainbowMove 3s linear infinite;
}
@keyframes rainbowMove {
  0% { background-position: 0 0; }
  100% { background-position: 300% 0; }
}
a { text-decoration: none; color: inherit; }

/* 内容详情 */
.single-content {
  font-size: 15px;
  color: #444;
  line-height: 1.9;
  word-break: break-all;
}
.single-content p { margin-bottom: 16px; }
.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.single-content strong { color: #1677ff; font-weight: 600; }
.share-info {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin: 20px 0;
  padding: 12px;
  background: #eef4ff;
  border-radius: 8px;
}
.down {
  display: block;
  background: linear-gradient(135deg, #1677ff, #0958d9);
  color: #fff;
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  margin-top: 10px;
  transition: all 0.3s;
  box-shadow: 0 6px 16px rgba(22, 119, 255, 0.2);
}
.down:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 119, 255, 0.3);
}
.no-down {
  color: #999;
  text-align: center;
  padding: 18px;
  font-size: 15px;
  margin-top: 10px;
}
.vip-tip {
  background: #fff1f0;
  color: #f53f3f;
  text-align: center;
  padding: 18px;
  border-radius: 12px;
  margin-top: 20px;
  font-weight: bold;
}
.vip-tip a { color: #f53f3f; text-decoration: underline; }

/* 文档系统 */
.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 15px;
}
.doc-title {
  font-size: 22px;
  font-weight: 600;
  color: #222;
  display: flex;
  align-items: center;
  gap: 10px;
}
.doc-search {
  display: flex;
  align-items: center;
  gap: 10px;
}
.doc-search input {
  padding: 8px 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  width: 280px;
  font-size: 14px;
}
.doc-search button {
  background: #1677ff;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.doc-category {
  background: #fff;
  border-radius: 12px;
  padding: 15px 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}
.doc-category span {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  margin-right: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.doc-category span.active { background: #1677ff; color: #fff; }
.doc-category span:hover:not(.active) { background: #f5f7fa; }
.doc-list {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  margin-bottom: 24px;
}
.doc-item {
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.doc-item:hover { background: #fafbfc; }
.doc-item:last-child { border-bottom: none; }
.doc-info { flex: 1; }
.doc-info h3 { margin: 0 0 5px 0; font-size: 16px; color: #222; }
.doc-info p {
  margin: 0;
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 15px;
}
.doc-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #e6f7ff;
  color: #1677ff;
  border-radius: 4px;
  font-size: 12px;
}
.doc-operate { display: flex; align-items: center; gap: 15px; }
.doc-operate span { font-size: 13px; color: #999; }
.doc-operate a { color: #1677ff; text-decoration: none; font-size: 14px; }

/* 文档详情 */
.doc-container {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.07);
  margin-bottom: 24px;
}
.doc-head {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.doc-title {
  font-size: 24px;
  font-weight: 600;
  color: #222;
  margin: 0 0 12px 0;
}
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: #999;
  font-size: 14px;
}
.doc-tag {
  display: inline-block;
  padding: 3px 10px;
  background: #e6f7ff;
  color: #1677ff;
  border-radius: 4px;
  font-size: 13px;
}
.doc-back { margin-bottom: 20px; }
.doc-content {
  color: #333;
  font-size: 15px;
  line-height: 1.8;
}
.doc-content h2 {
  font-size: 19px;
  color: #222;
  margin: 30px 0 12px 0;
  padding-left: 10px;
  border-left: 3px solid #1677ff;
}
.doc-content h3 {
  font-size: 17px;
  color: #222;
  margin: 20px 0 10px 0;
}
.doc-content p { margin: 0 0 14px 0; }
.doc-content code {
  background: #f7f8fa;
  padding: 2px 6px;
  border-radius: 4px;
  color: #f53f3f;
  font-family: monospace;
}
.doc-content pre {
  background: #f7f8fa;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 14px 0;
  border-left: 3px solid #1677ff;
}
.doc-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.doc-content table th,
.doc-content table td {
  border: 1px solid #eee;
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
}
.doc-content table th { background: #fafbfc; font-weight: 600; }

/* 登录注册 */
.login-card, .register-card {
  width: 100%;
  max-width: 380px;
  margin: 0 auto; /* 关键：水平居中 */
}
.login-title, .register-title {
  font-size: 26px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 30px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  font-weight: 500;
}
.form-group input, .form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e5eb;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: all 0.2s;
  user-select: auto !important;
  -webkit-user-select: auto !important;
}
.form-group input:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}
.register-link, .login-link {
  text-align: center;
  margin-top: 25px;
  font-size: 14px;
  color: #666;
}
.register-link a, .login-link a {
  color: #1677ff;
  text-decoration: none;
  font-weight: 500;
}
.register-link a:hover, .login-link a:hover { text-decoration: underline; }

/* 卡密 */
.card-item {
  background: white;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 15px;
  transition: all 0.2s;
}
.card-item:hover { transform: translateY(-2px); }
.card-item h4 { font-size: 17px; margin-bottom: 10px; color: #222; }
.card-content {
  background: #fff7e6;
  border-left: 4px solid #fa8c16;
  padding: 14px;
  border-radius: 8px;
  font-family: monospace;
  margin: 10px 0;
  word-break: break-all;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}
.card-content:hover { background: #fff2cc; }
.card-time { color: #888; font-size: 14px; }
.copy-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #1677ff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 999;
}
.copy-toast.show { opacity: 1; }

/* 订单 */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-item {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.order-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 15px;
}
.order-name { font-weight: 600; color: #222; }
.order-price { color: #1677ff; font-weight: 500; }
.order-time { color: #888; font-size: 14px; }

/* 开服banner */
.open-banner {
  background: linear-gradient(135deg,#1677ff,#36cafe);
  border-radius:12px;
  padding:60px 30px;
  color:#fff;
  text-align:center;
  margin-bottom:30px;
}
.open-banner h1 { font-size:36px; margin:0 0 15px 0; }
.open-banner p { font-size:16px; opacity:0.9; margin-bottom:25px; }
.open-btn {
  background:#fff;
  color:#1677ff;
  padding:12px 30px;
  border-radius:8px;
  text-decoration:none;
  font-weight:bold;
  display:inline-block;
  margin:0 8px;
}
.open-btn.ghost {
  background:transparent;
  border:1px solid #fff;
  color:#fff;
}
.open-card-box {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:20px;
  margin-bottom:30px;
}
.open-card {
  background:#fff;
  border-radius:12px;
  padding:30px 20px;
  text-align:center;
  box-shadow:0 3px 10px rgba(0,0,0,0.08);
}
.open-card i { font-size:48px; color:#1677ff; margin-bottom:15px; }
.open-card h3 { margin:0 0 10px 0; font-size:18px; color:#222; }
.open-card p { margin:0; color:#666; font-size:14px; line-height:1.7; }
.title-block {
  font-size:22px;
  font-weight:600;
  color:#222;
  margin-bottom:20px;
  display:flex;
  align-items:center;
  gap:10px;
}

/* 推广佣金 */
.commission-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
.commission-item {
  flex: 1;
  min-width: 220px;
  text-align: center;
  padding: 20px;
  background: #f0f7ff;
  border-radius: 10px;
}
.commission-item h3 { color: #1677ff; font-size: 20px; margin-bottom: 8px; }
.step-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}
.step { flex: 1; min-width: 200px; text-align: center; }
.step-num {
  width: 40px;
  height: 40px;
  background: #1677ff;
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 10px;
}
.promote-btn {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 30px auto;
  padding: 18px;
  text-align: center;
  background: linear-gradient(90deg, #1677ff, #0958d9);
  color: white;
  font-size: 19px;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(22, 119, 255, 0.2);
  transition: 0.3s;
  border: none;
  cursor: pointer;
}
.promote-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(22, 119, 255, 0.3);
}
.advantage-list { padding-left: 22px; line-height: 2.2; font-size: 15px; }
.footer {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 14px;
  margin-top: 20px;
}

/* 弹窗 */
.modal-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: 9999;
  animation: fadeIn 0.3s;
}
.modal-box {
  background: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  min-width: 300px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
  animation: scaleIn 0.3s;
}
.modal-success { border-left: 5px solid #00b42a; }
.modal-error { border-left: 5px solid #f53f3f; }
.modal-text { font-size: 16px; margin-bottom: 20px; line-height: 1.5; }
.modal-close {
  padding: 8px 20px;
  background: #1677ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.card-box {
  background: #fff7e6;
  border-left: 4px solid #fa8c16;
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-family: monospace;
  font-size: 16px;
  box-shadow: 0 2px 10px rgba(250,140,22,0.08);
}
.goods-card {
  background: white;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  border: 1px solid #f0f5ff;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.goods-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(22, 119, 255, 0.12);
}
.goods-card h3 { font-size: 18px; margin-bottom: 8px; color: #222; font-weight: 600; }
.goods-card .desc { color: #666; font-size: 14px; margin-bottom: 14px; line-height: 1.4; }
.goods-card .price { font-size: 17px; color: #1677ff; margin-bottom: 18px; font-weight: 600; }
.goods-card form { margin-top: auto; }
.buy-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}
.buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(22, 119, 255, 0.25);
}
.buy-btn:disabled {
  background: #ccc !important;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 直播 */
.live-banner {
  background: linear-gradient(135deg, #1677ff, #36cfc9);
  border-radius:12px;
  padding:40px 30px;
  color:#fff;
  text-align:center;
  margin-bottom:30px;
}
.live-banner h1 { font-size:32px; margin:0 0 10px 0; }
.live-banner p { font-size:15px; opacity:0.95; margin:0; }
.live-search {
  background:#fff;
  border-radius:12px;
  padding:20px;
  margin-bottom:25px;
  box-shadow:0 3px 10px rgba(0,0,0,0.08);
}
.live-search input {
  width:100%;
  border:1px solid #e5e6eb;
  border-radius:8px;
  padding:12px 15px;
  font-size:14px;
  outline:none;
  transition:0.3s;
}
.live-search input:focus { border-color:#1677ff; }
.live-tab {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:25px;
}
.live-tab a {
  background:#fff;
  border:1px solid #e5e6eb;
  padding:10px 18px;
  border-radius:8px;
  color:#333;
  text-decoration:none;
  font-size:14px;
  transition:0.2s;
}
.live-tab a.active { background:#1677ff; color:#fff; border-color:#1677ff; }
.live-tab a:hover { border-color:#1677ff; color:#1677ff; }
.live-card-box {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:18px;
  margin-bottom:30px;
}
.live-card {
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 3px 10px rgba(0,0,0,0.08);
  transition:0.3s;
  cursor:pointer;
}
.live-card:hover {
  transform:translateY(-5px);
  box-shadow:0 8px 15px rgba(0,0,0,0.12);
}
.live-cover {
  width:100%;
  height:110px;
  background:#1677ff;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:28px;
  position:relative;
}
.live-status {
  position:absolute;
  top:8px;
  right:8px;
  background:#ff4d4f;
  color:#fff;
  font-size:12px;
  padding:2px 6px;
  border-radius:4px;
}
.live-info { padding:15px; text-align:center; }
.live-info h4 { margin:0 0 5px 0; font-size:15px; color:#222; font-weight:500; }
.live-info p { margin:0; font-size:12px; color:#999; }
.live-tip {
  background:#fff7e6;
  border-left:4px solid #ff9c3b;
  padding:15px 20px;
  border-radius:8px;
  margin-bottom:20px;
  font-size:14px;
  color:#666;
}

/* 状态标签 */
.vip-active { color: #00b42a; font-weight: 600; }
.vip-expire { color: #f53f3f; font-weight: 600; }
.gold-text { color: #ff9c00; font-weight: bold; font-size: 16px; }
.btn-vip { background: linear-gradient(135deg, #1677ff, #0958d9); }
.btn-vip:hover { box-shadow: 0 6px 15px rgba(22, 119, 255, 0.3); }
.btn-gold { background: linear-gradient(135deg, #ffcc33, #ff9c00); }
.btn-gold:hover { box-shadow: 0 6px 15px rgba(255, 156, 0, 0.3); }
.btn-withdraw { background: linear-gradient(135deg, #00b42a, #009420); }
.btn-withdraw:hover { box-shadow: 0 6px 15px rgba(0, 180, 42, 0.3); }
.btn-order { background: linear-gradient(135deg, #722ed1, #531dab); }
.btn-order:hover { box-shadow: 0 6px 15px rgba(114, 46, 209, 0.3); }
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

/* 提现 */
.gold-tips { font-size: 16px; margin-bottom: 20px; color: #333; }
.gold-tips strong { color: #ff9c00; font-size: 18px; }
.record-box { margin-top: 30px; }
.record-title { font-size: 18px; font-weight: 600; margin-bottom: 15px; color: #1a1a1a; }
.record-item {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}
.record-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
.status { padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.status-wait { background: #fff7e6; color: #fa8c16; }
.status-success { background: #e6ffed; color: #00b42a; }
.status-fail { background: #fff1f0; color: #f53f3f; }

/* ===================== 响应式适配 ===================== */
@media (max-width: 900px) {
  .app-container { flex-direction: column; height: auto; }
  .sidebar {
    width: 100%;
    flex-direction: row;
    padding: 15px;
  }
  .sidebar-logo { display: none; }
  .sidebar-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    width: 100%;
  }
  .sidebar-nav a { padding: 8px 15px; border-radius: 6px; border-left: none; }
  .user-info { display: none; }
  .nav-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .screenshots { grid-template-columns: repeat(2, 1fr); }
  .server-table th, .server-table td { padding: 10px; font-size: 13px; }
  .goods-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body { padding: 0; align-items: flex-start; justify-content: flex-start; }
  .app-container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    border-radius: 0;
  }
  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
  }
  .sidebar-nav { display: flex; gap: 5px; }
  .sidebar-nav a { padding: 10px 15px; border-left: none; }
  .main-content { height: auto; padding: 20px 15px; }
  .page-title { font-size: 22px; }
  .info-card { padding: 20px 15px; }
  .doc-search input { width: 100%; }
  .doc-item { flex-direction: column; align-items: flex-start; gap: 10px; }
  .doc-operate { width: 100%; justify-content: space-between; }
  .sidebar-nav a i { display: none !important; }
}

@media (max-width: 600px) {
  .main-content { padding: 20px; }
  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
  }
  .tool-card { padding: 15px 10px; }
  .tool-card .card-icon {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
  .tool-card .card-title { font-size: 12px; }
}