/* ============================================================
   🎮 迷你世界怀旧版 · 参考 43.135.15.27 风格
   - 配色：浅灰底(#f5f5f5) + 纯白卡(#fff) + 小红书粉红渐变主按钮
   - 风格：极简、清爽、留白大、信任感强（小红书/抖音引流爆款风格）
   - 适配：移动端优先
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  min-height: 100vh;
  background: #f5f5f5;
  color: #333;
  font-weight: 500;
  line-height: 1.6;
  font-size: 15px;
  letter-spacing: .2px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  touch-action: manipulation;
}
button { font-family: inherit; cursor: pointer; border: none; outline: none; -webkit-appearance: none; }
button:disabled { cursor: not-allowed; opacity: .55 !important; filter: grayscale(.3); }
img { display: block; max-width: 100%; -webkit-user-drag: none; }
img[loading] { content-visibility: auto; }
a { color: #ff4757; text-decoration: none; font-weight: 700; }

/* ============ 容器：参考站宽间距，max-width稍小（720px）更舒服 ============ */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 14px 100px; /* 底部100px留白，防止抖音底部导航挡按钮 */
}

/* ============ 顶部 Hero 区：参考站风格 ============ */
.hero-wrap {
  background: linear-gradient(135deg, #fff5f7 0%, #fff 100%);
  border-radius: 20px;
  padding: 22px 18px 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-wrap::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255,107,129,0.14), transparent 70%);
  border-radius: 50%;
}
.hero-wrap::after {
  content: '';
  position: absolute;
  bottom: -20px; left: -20px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(255,71,87,0.10), transparent 70%);
  border-radius: 50%;
}

.title {
  position: relative;
  font-size: 23px;
  font-weight: 800;
  color: #111;
  margin-bottom: 6px;
  line-height: 1.35;
  padding: 0 6px;
}
.subtitle {
  position: relative;
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}
.subtitle .num {
  color: #ff4757;
  font-weight: 800;
  font-size: 15px;
  padding: 0 2px;
}
.trust-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.trust-item {
  background: rgba(255,255,255,0.9);
  border-radius: 10px;
  padding: 8px 4px;
  text-align: center;
  font-size: 11.5px;
  color: #444;
  font-weight: 700;
  line-height: 1.4;
  border: 1px solid rgba(255,107,129,0.12);
}
.trust-item .ic { font-size: 14px; display: block; margin-bottom: 2px; }

/* ============ 4 统计卡：2x2 纯白卡 + 左彩条 ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.stat-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 14px 12px 12px 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 10px; left: 0; bottom: 10px;
  width: 4px;
  border-radius: 0 4px 4px 0;
}
.stat-card.uv::before    { background: linear-gradient(180deg, #a78bfa, #8b5cf6); }
.stat-card.pv::before    { background: linear-gradient(180deg, #38bdf8, #0ea5e9); }
.stat-card.get::before   { background: linear-gradient(180deg, #34d399, #10b981); }
.stat-card.sub::before   { background: linear-gradient(180deg, #fb923c, #f97316); }

.stat-card .label {
  font-size: 12.5px;
  color: #666;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.stat-card .val {
  font-size: 24px;
  font-weight: 800;
  color: #111;
  line-height: 1.15;
}
.stat-card.uv  .val { color: #6d28d9; }
.stat-card.pv  .val { color: #0284c7; }
.stat-card.get .val { color: #059669; }
.stat-card.sub .val { color: #ea580c; }

/* ============ 通用：白色圆角卡片（howto / copy-card / dy-row） ============ */
.howto, .copy-card, .dy-row {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  padding: 16px;
  margin-bottom: 14px;
}

/* ============ 任务说明（三步） ============ */
.howto {
  background: linear-gradient(180deg, #fff 0%, #fffafc 100%);
  border-top: 3px solid #ff6b81;
}
.howto h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: #111;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.howto ol {
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.howto ol li {
  counter-increment: step;
  position: relative;
  padding: 10px 0 10px 44px;
  font-size: 14.5px;
  color: #333;
  border-bottom: 1px dashed #f0f0f0;
  line-height: 1.7;
}
.howto ol li:last-child { border-bottom: none; padding-bottom: 0; }
.howto ol li:first-child { padding-top: 0; }
.howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 10px;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff6b81, #ff4757);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(255, 71, 87, .25);
}
.kw {
  color: #ff4757;
  font-weight: 800;
  padding: 1px 5px;
  background: #fff0f1;
  border-radius: 4px;
  margin: 0 1px;
}

/* ============ 换一批按钮 ============ */
.refresh-row { display: flex; justify-content: center; margin: 14px 0 16px; }
.refresh-btn {
  background: #fff;
  color: #ff4757;
  border: 1.5px solid rgba(255, 71, 87, 0.3);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.08);
  transition: transform .1s;
}
.refresh-btn:active { transform: scale(.96); }

/* ============ 5 文案卡 ============ */
.copies-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 2px;
}
.copy-card {
  padding: 0;
  overflow: hidden;
  border-left: 4px solid #ff4757;
  border-radius: 0 16px 16px 0;
}
.copy-num {
  display: inline-block;
  margin: 14px 16px 8px;
  background: #fff0f1;
  color: #ff4757;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}
.copy-text {
  margin: 0 16px 12px;
  font-size: 14.5px;
  color: #111;
  line-height: 1.75;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff5f7, #fffafc);
  border: 1px solid #ffe4e9;
}
.copy-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  padding: 0 16px 0;
}
.comment-input {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 52px;
  outline: none;
  transition: all .15s;
  background: #fafafa;
  color: #111;
  font-weight: 500;
}
.comment-input:focus {
  border-color: #ff4757;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 71, 87, .12);
}
.copy-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(16, 185, 129, .25);
  transition: transform .1s;
}
.copy-btn:active { transform: scale(.95); }

/* ============ 内嵌上传框区（每条文案下各绑定1个） ============ */
.card-upload-wrap {
  margin: 14px 16px 0;
  padding: 14px;
  background: #fafafa;
  border-top: 1px dashed #e5e7eb;
  border-radius: 0 0 12px 12px;
}
.card-upload-label {
  font-size: 13px;
  color: #444;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.upload-box { position: relative; aspect-ratio: 1 / 1; }
.upload-box.inline {
  width: 100px;
  aspect-ratio: 1 / 1;
  display: inline-block;
}
.upload-box input { display: none; }
.upload-box label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  border: 2.5px dashed #d1d5db;
  border-radius: 12px;
  background: #fff;
  color: #9ca3af;
  cursor: pointer;
  text-align: center;
  line-height: 1.35;
  transition: all .15s;
  overflow: hidden;
  font-weight: 700;
}
.upload-box label:active { transform: scale(.96); }
.upload-box label:hover {
  border-color: #ff4757;
  color: #ff4757;
  background: #fff5f7;
}
.upload-box label .up-txt { margin-top: 3px; font-size: 11px; }
.upload-box.error label {
  border-color: #ef4444;
  background: #fef2f2;
  color: #dc2626;
  animation: shake .35s;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ============ 抖音号输入 ============ */
.dy-row {
  padding: 14px 16px;
  margin-top: 2px;
}
.dy-row label {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: #111;
  margin-bottom: 8px;
}
.dy-row input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: all .15s;
  background: #fafafa;
  color: #111;
  font-weight: 600;
}
.dy-row input:focus {
  border-color: #ff4757;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 71, 87, .12);
}

/* ============ 全局图片状态 ============ */
.img-status {
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.img-status.ok {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  color: #047857;
  border: 1px solid #a7f3d0;
}
.img-status.bad {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  color: #c2410c;
  border: 1px solid #fed7aa;
}
.tip-tiny {
  font-size: 12.5px;
  color: #888;
  line-height: 1.75;
  padding: 8px 4px 0;
}
.tip-tiny br { content: ""; display: block; margin-bottom: 2px; }

/* ============ 提交按钮：全宽 + 粉红渐变（小红书爆款同款） ============ */
.submit-btn {
  width: 100%;
  padding: 16px 18px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b81 0%, #ff4757 100%);
  border-radius: 16px;
  letter-spacing: .5px;
  box-shadow: 0 8px 22px rgba(255, 71, 87, 0.35),
              0 1px 0 rgba(255,255,255,.25) inset;
  transition: transform .08s, box-shadow .2s;
}
.submit-btn:active {
  transform: scale(.985);
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.30),
              0 1px 0 rgba(255,255,255,.25) inset;
}

/* ============================================================
   后台页面样式（沿用浅色极简风，保持一致）
   ============================================================ */
.admin-layout { max-width: 1100px; margin: 0 auto; padding: 20px 14px 80px; }
.admin-login-box {
  max-width: 400px; margin: 120px auto 0;
  background: #fff;
  border-radius: 20px;
  padding: 30px 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.admin-login-box h2 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 800;
  color: #111;
}
.admin-login-box input {
  width: 100%; padding: 12px 14px; border: 1.5px solid #e5e7eb;
  border-radius: 12px; font-size: 15px; outline: none; margin-bottom: 14px;
  background: #fafafa; color: #111; font-weight: 600;
  transition: all .15s;
}
.admin-login-box input:focus {
  border-color: #ff4757; background: #fff;
  box-shadow: 0 0 0 4px rgba(255,71,87,.12);
}
.admin-login-box button {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #ff6b81, #ff4757);
  color: #fff; border-radius: 12px; font-size: 15.5px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(255,71,87,.3);
  transition: transform .08s;
}
.admin-login-box button:active { transform: scale(.985); }

.admin-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  background: #fff;
  padding: 10px; border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.admin-tab {
  flex: 1 1 auto; min-width: 110px; padding: 10px 14px; border-radius: 12px;
  background: #f5f5f5;
  color: #555; font-size: 13.5px; font-weight: 800; text-align: center;
  transition: all .15s;
  border: 1.5px solid transparent;
}
.admin-tab.active {
  background: linear-gradient(135deg, #ff6b81, #ff4757);
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(255,71,87,.28);
}
.admin-panel {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.admin-panel h3 {
  font-size: 17px; font-weight: 800; margin-bottom: 14px; color: #111;
}
.admin-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px;
}
.admin-mini-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mini-stat {
  background: #fafafa; border-radius: 12px; padding: 12px 14px;
  border-left: 4px solid #ff4757;
}
.mini-stat .label { font-size: 12.5px; color: #666; margin-bottom: 4px; }
.mini-stat .val { font-size: 18px; font-weight: 800; color: #111; }

.btn {
  display: inline-block; padding: 7px 14px; border-radius: 10px;
  font-size: 13.5px; font-weight: 800; background: #ff4757; color: #fff;
  transition: transform .08s;
}
.btn:active { transform: scale(.96); }
.btn.danger { background: #ef4444; }
.btn.warn   { background: #f59e0b; }
.btn.gray   { background: #6b7280; }
.btn + .btn { margin-left: 8px; }
.row {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px;
}
.row input[type=text],
.row input[type=url],
.row input[type=password] {
  flex: 1; min-width: 200px; padding: 9px 12px;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  font-size: 14px; outline: none; background: #fafafa; color: #111; font-weight: 600;
  transition: all .15s;
}
.row input:focus {
  border-color: #ff4757; background: #fff;
  box-shadow: 0 0 0 3px rgba(255,71,87,.12);
}
.row input[type=checkbox] { transform: scale(1.2); margin-right: 8px; accent-color: #ff4757; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; color: #333; }
.tbl th, .tbl td { padding: 10px; border-bottom: 1px solid #f0f0f0; text-align: left; vertical-align: top; }
.tbl th { background: #fafafa; font-weight: 800; color: #111; position: sticky; top: 0; z-index: 1; }
.tbl tr:hover td { background: #fffafc; }
.tbl .small { font-size: 12.5px; color: #444; max-width: 260px; word-break: break-all; }
.tbl .hash { font-family: Consolas, monospace; font-size: 11.5px; color: #6b7280; word-break: break-all; }
.tbl-wrap {
  overflow-x: auto; max-height: 560px;
  border: 1px solid #f0f0f0; border-radius: 12px;
}

/* ============================================================
   响应式：手机端微调
   ============================================================ */
@media (max-width: 560px) {
  .container { padding: 16px 12px 80px; }
  .title { font-size: 21px; }
  .trust-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .trust-item { padding: 10px 6px; font-size: 12px; }
  .stats-grid .val { font-size: 22px; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .upload-box.inline { width: 90px; }
  .copy-row { flex-direction: column; }
  .copy-btn { padding: 11px; }
  .submit-btn { font-size: 16px; padding: 15px 16px; }
}

/* ============================================================
   🎮 多游戏版：顶部导航 + 游戏卡片列表（参考 youxi.yumuren.com 风格）
   ============================================================ */

/* 顶部橙色导航栏 */
.site-nav {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  padding: 18px 20px 22px;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(255,107,53,.3);
}
.site-nav .nav-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-nav .nav-title {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 1px;
}
.site-nav .nav-home {
  background: rgba(255,255,255,.25);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.site-nav .nav-home:active { background: rgba(255,255,255,.35); }

/* 游戏详情页返回导航 */
.game-nav {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  padding: 14px 18px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(255,107,53,.3);
}
.game-nav .back-btn {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 6px 12px;
  background: rgba(255,255,255,.2);
  border-radius: 16px;
}
.game-nav .game-nav-title {
  font-weight: 800;
  font-size: 16px;
  flex: 1;
  text-align: center;
  margin-right: 50px;
}

/* 列表标题区 */
.list-header {
  text-align: center;
  padding: 28px 18px 22px;
}
.list-header .list-title {
  font-size: 22px;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.list-header .list-sub {
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

/* 游戏卡片列表 */
.games-list {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.game-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  border: 1px solid #f0f0f0;
}
.game-card:active {
  transform: scale(.98);
  background: #fafafa;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.game-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

.game-card .game-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.game-card .game-info {
  flex: 1;
  min-width: 0;
}
.game-card .game-name {
  font-size: 17px;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card .game-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-card .game-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
}

.game-card .game-arrow {
  font-size: 28px;
  color: #ccc;
  font-weight: 300;
  flex-shrink: 0;
}

/* 响应式：游戏卡片 */
@media (max-width: 480px) {
  .game-card { padding: 14px; gap: 12px; }
  .game-card .game-icon { width: 56px; height: 56px; font-size: 28px; }
  .game-card .game-name { font-size: 15.5px; }
  .game-card .game-desc { font-size: 12px; }
  .list-header { padding: 20px 14px 16px; }
  .list-header .list-title { font-size: 19px; }
}

/* 后台游戏管理Tab补充样式 */
.gm-list { display: flex; flex-direction: column; gap: 10px; }
.gm-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1.5px solid #e2e8f0; border-radius: 12px; background: #fff;
}
.gm-card .gm-ic { font-size: 26px; width: 42px; text-align: center; }
.gm-card .gm-info { flex: 1; min-width: 0; }
.gm-card .gm-name { font-weight: 900; font-size: 14px; color: #0f172a; }
.gm-card .gm-meta { font-size: 12px; color: #64748b; }
.gm-card .gm-actions { display: flex; gap: 6px; }
.gm-form { display: grid; gap: 10px; padding: 14px; background: #f8fafc; border-radius: 12px; border: 1px solid #e2e8f0; margin-bottom: 12px; }
.gm-form .row { display: flex; gap: 8px; align-items: center; }
.gm-form label { font-weight: 800; font-size: 13px; color: #334155; min-width: 90px; }
.gm-form input, .gm-form select, .gm-form textarea {
  flex: 1; padding: 8px 12px; border: 1.5px solid #cbd5e1; border-radius: 8px; font-size: 13px;
  background: #fff; font-family: inherit; color: #0f172a; font-weight: 600;
}
.gm-form .gm-tabs { display: flex; gap: 6px; }
.gm-form .gm-tab {
  padding: 6px 14px; border-radius: 8px; font-weight: 800; font-size: 12px;
  background: #e2e8f0; color: #64748b; cursor: pointer;
}
.gm-form .gm-tab.active { background: #6366f1; color: #fff; }
