* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f6fa;
  color: #333;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* 顶部标题区 */
.header {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: #fff;
  padding: 28px 16px 20px;
  text-align: center;
}

.header h1 {
  font-size: 24px;
  letter-spacing: 2px;
}

.header p {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.85;
}

/* 搜索栏 */
.search-bar {
  margin: 16px 0;
}

.search-bar input {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  outline: none;
}

/* 游戏列表 */
.game-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-item {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}

.game-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.game-item img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: cover;
}

.game-item .info {
  flex: 1;
  margin-left: 14px;
  min-width: 0;
}

.game-item .info h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.game-item .info p {
  font-size: 12px;
  color: #999;
}

.game-item .view-btn {
  flex-shrink: 0;
  background: #4a90e2;
  color: #fff;
  font-size: 13px;
  padding: 7px 18px;
  border-radius: 18px;
}

.empty-tip {
  text-align: center;
  color: #999;
  font-size: 14px;
  padding: 40px 0;
}

/* 详情页 */
.detail-nav {
  padding: 14px 0;
}

.back-btn {
  display: inline-block;
  color: #4a90e2;
  text-decoration: none;
  font-size: 15px;
}

.detail-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.detail-card .game-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.detail-card h2 {
  margin-top: 14px;
  font-size: 20px;
}

.detail-card .update-date {
  margin-top: 6px;
  font-size: 12px;
  color: #999;
}

.section {
  margin-top: 20px;
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section h3 {
  font-size: 15px;
  color: #666;
  margin-bottom: 14px;
  text-align: center;
}

.section .invite-img {
  display: block;
  width: 240px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid #eee;
}

.download-link {
  display: block;
  word-break: break-all;
  text-align: center;
  color: #4a90e2;
  font-size: 14px;
  text-decoration: none;
  padding: 12px;
  background: #f0f6ff;
  border-radius: 10px;
}

.download-btn {
  display: block;
  margin-top: 14px;
  background: #4a90e2;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  padding: 13px 0;
  border-radius: 24px;
}

.not-found {
  text-align: center;
  color: #999;
  padding: 60px 0;
  font-size: 15px;
}
