* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  background: #0a0a1a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  color: #fff;
}

.bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* 头部 */
.header {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 32px 20px 20px;
}

.header h1 {
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, #ff6b6b, #ffa500, #ffdd57, #48dbfb, #ff9ff3);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
  letter-spacing: 4px;
}

.header .subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
  letter-spacing: 8px;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* 游戏网格 - 强制三列紧凑 */
.games-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

/* 游戏卡片 */
.game-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  background: #111;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* 发光边框 */
.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.3s;
  z-index: 2;
  pointer-events: none;
}

.game-card:hover::before { opacity: 1; }

/* 封面图区域 */
.card-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.game-card:hover .card-cover img {
  transform: scale(1.06);
}

/* 封面底部渐变 */
.card-cover::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, #111);
}

/* 卡片信息区 */
.card-info {
  padding: 12px 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff;
  width: fit-content;
}

.card-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.2;
}

.card-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 0;
  border-radius: 50px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  width: 100%;
}

.card-btn:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  filter: brightness(1.1);
}

.card-btn svg {
  width: 14px; height: 14px;
  transition: transform 0.3s;
}

.card-btn:hover svg {
  transform: translateX(3px);
}

/* 主题色 */
.game-card.parking { --c1: #f093fb; --c2: #f5576c; }
.game-card.pet { --c1: #4facfe; --c2: #00f2fe; }
.game-card.gacha { --c1: #fa709a; --c2: #fee140; }
.game-card.merge { --c1: #6dd400; --c2: #f9d423; }
.game-card.snake { --c1: #00ff88; --c2: #00ccff; }
.game-card.screw { --c1: #a855f7; --c2: #6366f1; }
.game-card.kun { --c1: #00ccff; --c2: #0066cc; }
.game-card.shanhai { --c1: #FF4500; --c2: #FFD700; }
.game-card.card-craft { --c1: #7c3aed; --c2: #a855f7; }
.game-card.cocreate { --c1: #6c5ce7; --c2: #00cec9; }

/* header布局 */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-center { text-align: center; flex: 1; }

#authBox { flex-shrink: 0; }

/* 底部 */
.footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 24px 20px 36px;
  color: rgba(255,255,255,0.2);
  font-size: 12px;
}

/* 浮动emoji */
.float-emoji {
  position: fixed;
  font-size: 22px;
  opacity: 0.12;
  z-index: 1;
  animation: floatUp linear infinite;
  pointer-events: none;
}

@keyframes floatUp {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.12; }
  90% { opacity: 0.12; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* 反馈收集区 */
.feedback-section {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 10px auto 30px;
  padding: 0 24px;
}

.feedback-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.feedback-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
  background: linear-gradient(135deg, #ffdd57, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feedback-form {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.fb-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}

.fb-input:focus { border-color: rgba(255,255,255,0.3); }
.fb-input::placeholder { color: rgba(255,255,255,0.3); }

.fb-name { width: 120px; flex-shrink: 0; }
.fb-content { flex: 1; min-height: 42px; }

.fb-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff6b6b, #ffa500);
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.fb-btn:hover { filter: brightness(1.15); transform: scale(1.03); }
.fb-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.fb-msg {
  text-align: center;
  font-size: 13px;
  margin-top: 10px;
  min-height: 20px;
}

.fb-msg.success { color: #6dd400; }
.fb-msg.error { color: #ff6b6b; }

.fb-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.fb-list::-webkit-scrollbar { width: 4px; }
.fb-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.fb-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}

.fb-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.fb-body { flex: 1; min-width: 0; }
.fb-author { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 3px; }
.fb-text { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.5; word-break: break-word; }
.fb-time { font-size: 11px; color: rgba(255,255,255,0.25); flex-shrink: 0; margin-top: 2px; }

/* 移动端响应式 */
@media (max-width: 900px) {
  .header { padding: 24px 12px 14px; }
  .header h1 { font-size: 24px; letter-spacing: 2px; }
  .header .subtitle { font-size: 10px; letter-spacing: 4px; margin-top: 4px; }
  .header-inner { padding: 0 10px; }
  #authBox button { font-size: 11px !important; padding: 6px 12px !important; }
  #authBox img { width: 26px !important; height: 26px !important; }
  #authBox span { font-size: 11px !important; }
  .games-grid { gap: 10px; padding: 0 10px; max-width: 100%; }
  .card-cover { aspect-ratio: 4 / 3; }
  .card-info { padding: 8px 8px 10px; }
  .card-tag { font-size: 8px; padding: 2px 6px; margin-bottom: 5px; letter-spacing: 0; }
  .card-title { font-size: 13px; margin-bottom: 4px; }
  .card-desc { display: none; }
  .card-btn { font-size: 11px; padding: 6px 0; gap: 4px; }
  .card-btn svg { width: 11px; height: 11px; }
  .game-card { border-radius: 10px; }
  .game-card::before { border-radius: 10px; }
  .footer { padding: 16px 10px 24px; font-size: 10px; }
  .feedback-section { padding: 0 10px; }
  .feedback-box { padding: 16px 12px; border-radius: 12px; }
  .feedback-title { font-size: 14px; margin-bottom: 12px; }
  .feedback-form { flex-direction: column; }
  .fb-name { width: 100%; }
  .fb-btn { width: 100%; justify-content: center; }
}
