/* web/css/portal.css — 今天摸什么鱼门户 (手机优先) */
:root {
  --bg: #1b1030;
  --panel: rgba(255, 255, 255, 0.06);
  --gold: #ffd34d;
  --text: #f3ecf9;
  --muted: #b9a8cc;
  --accent1: #ff8c42;
  --accent2: #c77dff;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  background: linear-gradient(180deg, #1b1030 0%, #2b1a3e 45%, #1b1030 100%);
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ========== 漂浮 emoji 背景 ========== */
.floaters {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.floater {
  position: absolute;
  font-size: 34px;
  opacity: 0.16;
  filter: blur(0.4px);
  animation: floatY 7s ease-in-out infinite;
}

.f1 { left: 8%;  top: 18%; animation-delay: 0s; }
.f2 { right: 10%; top: 12%; animation-delay: 1.2s; font-size: 42px; }
.f3 { left: 14%; top: 58%; animation-delay: 2.1s; font-size: 46px; }
.f4 { right: 16%; top: 52%; animation-delay: 0.6s; }
.f5 { left: 42%; top: 8%;  animation-delay: 1.8s; }
.f6 { right: 40%; top: 74%; animation-delay: 2.8s; font-size: 40px; }

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-26px) rotate(6deg); }
}

/* ========== Hero ========== */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 72px 24px 48px;
}

.badge-line {
  display: inline-block;
  font-size: 13px;
  color: var(--gold);
  border: 1px solid rgba(255, 211, 77, 0.5);
  border-radius: 999px;
  padding: 5px 16px;
  letter-spacing: 2px;
  margin-bottom: 22px;
}

.title {
  font-size: clamp(34px, 9vw, 56px);
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(120deg, #ffd34d 10%, #ff8c42 45%, #c77dff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}

.subtitle {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 30px;
}

.cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent1), #ffb347);
  color: #4a2400;
  font-size: 19px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 46px;
  box-shadow: 0 8px 30px rgba(255, 140, 66, 0.35);
  transition: transform 0.15s;
}

.cta:active { transform: scale(0.95); }

.hero-hint {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
}

/* ========== 内容区 ========== */
main {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.section { margin-bottom: 34px; }

.section-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
}

/* 摸鱼贴士 */
.tip-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  backdrop-filter: blur(6px);
  transition: opacity 0.3s;
}

.tip-card.fade { opacity: 0; }

/* 游戏卡片 */
.games {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.game-card {
  display: flex;
  gap: 14px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(6px);
  transition: transform 0.15s, border-color 0.15s;
}

.game-card:not(.disabled):active {
  transform: scale(0.98);
  border-color: var(--gold);
}

.game-card.disabled { opacity: 0.55; }

.game-cover {
  flex: 0 0 92px;
  height: 92px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cover-alchemy {
  background: radial-gradient(circle at 30% 30%, #4a3566, #241634);
  position: relative;
}

.cover-alchemy img {
  position: absolute;
  width: 62px;
}

.cover-alchemy img:first-child { transform: translate(-14px, -8px) rotate(-10deg); }
.cover-alchemy img:last-child { transform: translate(18px, 14px) rotate(8deg) scale(0.8); }

.cover-soon {
  background: radial-gradient(circle at 30% 30%, #3a2452, #241634);
  font-size: 44px;
}

.game-info { flex: 1; min-width: 0; }

.game-name {
  font-size: 17px;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 5px;
}

.game-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.game-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 2px 10px;
}

.tag-hot { color: #7dff9e; border-color: rgba(125, 255, 158, 0.5); }
.tag-soon { color: #ff9e9e; border-color: rgba(255, 158, 158, 0.4); }

/* 关于 */
.about {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 18px;
  backdrop-filter: blur(6px);
}

.about p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 12px;
}

.about p:last-child { margin-bottom: 0; }
.about b { color: var(--text); }

/* 页脚 */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #6d5587;
  font-size: 12px;
  line-height: 2;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
