/* ============================================================
   风卷云网 · 统一主题样式 site.css
   风格：高级且活泼（渐变 + 玻璃拟态 + 柔和阴影 + 悬浮动效）
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --primary: #6366f1;        /* 靛蓝（主色） */
  --primary-dark: #4f46e5;
  --secondary: #06b6d4;      /* 青蓝（副色） */
  --accent: #f43f5e;         /* 玫红（点睛） */
  --accent-2: #a855f7;       /* 紫罗兰 */
  --amber: #f59e0b;          /* 琥珀 */

  --dark: #0f172a;           /* 深海蓝（正文/页脚） */
  --text: #1e293b;           /* 主文本 */
  --muted: #64748b;          /* 次要文本 */
  --light: #f8fafc;          /* 浅背景 */
  --card: #ffffff;           /* 卡片底色 */
  --border: #e2e8f0;         /* 描边 */

  --grad-main: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --grad-warm: linear-gradient(135deg, #f43f5e 0%, #f59e0b 100%);
  --grad-cool: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 999px;
  --nav-h: 64px;
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- 顶部导航 ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.site-nav .brand .brand-logo {
  font-size: 1.5rem;
  -webkit-text-fill-color: initial;
}

.site-nav .nav-menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-nav .nav-item {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.25s, background 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.site-nav .nav-item .ico {
  font-size: 1.05rem;
  line-height: 1;
}

.site-nav .nav-item:hover {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
}

.site-nav .nav-item.active {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.12);
}

/* 主操作按钮（导航内） */
.site-nav .nav-cta {
  margin-left: 0.4rem;
  padding: 0.5rem 1.3rem;
  border-radius: var(--radius-full);
  color: #fff;
  font-weight: 700;
  background: var(--grad-main);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}
.site-nav .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.45);
  color: #fff;
}

/* 移动端汉堡（简易适配） */
.site-nav .nav-toggle { display: none; }

@media (max-width: 820px) {
  .site-nav { padding: 0 4%; }
  .site-nav .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 1rem 1rem;
    display: none;
  }
  .site-nav .nav-menu.open { display: flex; }
  .site-nav .nav-item { padding: 0.8rem 1rem; }
  .site-nav .nav-cta { margin: 0.4rem 0 0; text-align: center; }
  .site-nav .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
  }
}

/* ---------- 通用容器 ---------- */
.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.section { padding: 3.5rem 0; }

/* ---------- 首页英雄区 ---------- */
.hero {
  position: relative;
  padding: 5.5rem 0 4rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 15% -10%, rgba(99,102,241,0.16), transparent 60%),
    radial-gradient(900px 460px at 90% 0%, rgba(6,182,212,0.16), transparent 60%),
    radial-gradient(700px 420px at 50% 110%, rgba(244,63,94,0.10), transparent 60%),
    var(--light);
}

.hero .hero-eyebrow {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(99,102,241,0.10);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.1;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.hero .hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero .hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
  font-family: inherit;
}

.btn-primary {
  color: #fff;
  background: var(--grad-main);
  box-shadow: 0 8px 22px rgba(99,102,241,0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(99,102,241,0.45);
  color: #fff;
}

.btn-warm {
  color: #fff;
  background: var(--grad-warm);
  box-shadow: 0 8px 22px rgba(244,63,94,0.30);
}
.btn-warm:hover { transform: translateY(-3px); color: #fff; }

.btn-ghost {
  color: var(--primary-dark);
  background: #fff;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  color: var(--primary);
}

.btn:active { transform: scale(0.97); }

/* ---------- 声明卡片 ---------- */
.notice-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 2.2rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  box-shadow: var(--shadow-md);
  color: var(--muted);
  line-height: 1.9;
  text-align: justify;
}
.notice-card strong { color: var(--text); }

/* ---------- 特性/入口卡片区 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  padding: 1.8rem 1.6rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-card .fc-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #fff;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- 游戏大厅 ---------- */
.page-head {
  text-align: center;
  padding: 3rem 0 1.5rem;
}
.page-head .eyebrow {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(6,182,212,0.12);
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}
.page-head h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.6rem;
}
.page-head p { color: var(--muted); }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.6rem;
  padding-bottom: 4rem;
}

.game-card {
  position: relative;
  display: block;
  padding: 1.6rem 1.5rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.game-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--grad-main);
  opacity: 0.85;
}
.game-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.game-card .gc-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  color: var(--primary-dark);
  background: rgba(99,102,241,0.12);
}
.game-card .gc-emoji {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
  background: var(--grad-main);
  box-shadow: 0 8px 18px rgba(99,102,241,0.30);
}
.game-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.game-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.game-card .gc-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  transition: gap 0.25s;
}
.game-card:hover .gc-play { gap: 12px; }

/* 卡片配色变体 */
.game-card.warm .gc-emoji { background: var(--grad-warm); box-shadow: 0 8px 18px rgba(244,63,94,0.30); }
.game-card.warm::before { background: var(--grad-warm); }
.game-card.warm .gc-play { color: var(--accent); }
.game-card.warm .gc-badge { color: var(--accent); background: rgba(244,63,94,0.12); }

.game-card.cool .gc-emoji { background: var(--grad-cool); box-shadow: 0 8px 18px rgba(168,85,247,0.30); }
.game-card.cool::before { background: var(--grad-cool); }
.game-card.cool .gc-play { color: var(--accent-2); }
.game-card.cool .gc-badge { color: var(--accent-2); background: rgba(168,85,247,0.12); }

.game-card.amber .gc-emoji { background: linear-gradient(135deg, #f59e0b, #f43f5e); box-shadow: 0 8px 18px rgba(245,158,11,0.30); }
.game-card.amber::before { background: linear-gradient(135deg, #f59e0b, #f43f5e); }
.game-card.amber .gc-play { color: var(--amber); }
.game-card.amber .gc-badge { color: var(--amber); background: rgba(245,158,11,0.14); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer a { color: #93c5fd; transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-links {
  display: flex;
  gap: 1.4rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

/* ---------- 游戏页返回浮钮 ---------- */
.game-back {
  position: fixed;
  top: 16px; left: 16px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  background: rgba(99,102,241,0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(15,23,42,0.35);
  transition: transform 0.25s, background 0.25s;
  font-family: inherit;
}
.game-back:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
  color: #fff;
}

/* ---------- 登录/注册 ---------- */
.auth-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background:
    radial-gradient(900px 400px at 20% 0%, rgba(99,102,241,0.14), transparent 60%),
    radial-gradient(800px 400px at 90% 100%, rgba(6,182,212,0.14), transparent 60%),
    var(--light);
}
.auth-card {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.4rem 2.2rem;
}
.auth-card h2 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-card .auth-sub { color: var(--muted); margin-bottom: 1.6rem; font-size: 0.95rem; }
.auth-card .form-field { margin-bottom: 1.1rem; }
.auth-card .form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.auth-card .form-field input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.auth-card .form-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.auth-card .auth-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.auth-card .auth-actions .btn { flex: 1; justify-content: center; }
.auth-register-tip {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.auth-register-tip a {
  color: var(--primary);
  font-weight: 600;
}
.auth-register-tip a:hover { text-decoration: underline; }
.auth-info {
  max-width: 640px;
  margin: 2.5rem auto 0;
  padding: 1.6rem 2rem;
  background: rgba(99,102,241,0.06);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  line-height: 1.9;
  text-align: center;
}
.auth-info h3 { color: var(--text); margin-bottom: 0.5rem; }

/* ---------- 动画 ---------- */
@keyframes floatUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: floatUp 0.6s ease both; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.24s; }
