/* ============================================================
   寻游互娱官网 — 公共样式 v0.3.0
   对标 Team17 风格 + 红色调
   - 字体: Outfit Black + Poppins + 中文 fallback
   - 配色: 4 档红色 + 中性灰
   - 版式: 大标题 + 大留白
   - 装饰: SVG 线条 / 几何 / 暗色 section 间隔
   ============================================================ */

/* ---- 字体 ---- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

/* ---- 调色板 (类似 Tailwind red 4 档) ---- */
:root {
  /* 主色 — 寻游红 */
  --red-50:  #FEF2F0;
  --red-100: #FBE3E0;
  --red-200: #F7C7C0;
  --red-300: #EE9388;
  --red-400: #E25F50;
  --red-500: #D8261C;   /* 主红 */
  --red-600: #B81E15;
  --red-700: #8C1610;
  --red-800: #5C0E0A;
  --red-900: #2D0705;

  /* 中性 */
  --ink-50:  #F7F8FA;
  --ink-100: #F2F3F5;
  --ink-200: #E5E6EB;
  --ink-300: #C9CDD4;
  --ink-400: #86909C;
  --ink-500: #4E5969;
  --ink-600: #2A2F38;
  --ink-700: #1F2329;
  --ink-800: #15171C;
  --ink-900: #0A0B0E;

  /* 语义色 */
  --color-xunyou: var(--red-500);
  --color-shizhiyou: #FF5A1F;
  --color-text: var(--ink-700);
  --color-text-2: var(--ink-500);
  --color-text-3: var(--ink-400);
  --color-border: var(--ink-200);
  --color-bg: #FFFFFF;
  --color-bg-2: var(--ink-50);
  --color-bg-3: var(--ink-100);
  --color-dark: var(--ink-800);
  --color-dark-2: var(--ink-700);
  --color-accent: var(--color-xunyou);

  /* 字体 */
  --font-display: 'Outfit', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Poppins', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-cn: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
  --shadow-2xl: 0 24px 80px rgba(0,0,0,0.24);
  --shadow-glow: 0 0 32px rgba(216,38,28,0.35);
  --shadow-glow-lg: 0 0 64px rgba(216,38,28,0.5);

  /* 圆角 */
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* 容器 */
  --maxw: 1280px;

  /* 动效曲线 */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);

  /* 间距 */
  --section-py: 120px;
  --section-py-lg: 160px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--red-500) var(--ink-100);
}
html::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-track { background: var(--ink-100); }
html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--red-500), var(--red-700));
  border-radius: 5px;
}
html::-webkit-scrollbar-thumb:hover { background: var(--red-600); }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
  font-weight: 400;
}
@media (hover: none), (max-width: 900px) {
  body { cursor: auto; font-size: 15px; }
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; cursor: none; }
input, textarea, select { font-family: inherit; font-size: 15px; outline: none; }
@media (hover: none), (max-width: 900px) {
  button, input, textarea, select { cursor: auto; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink-800);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(40px, 6vw, 80px); font-weight: 900; }
h2 { font-size: clamp(32px, 4.5vw, 60px); }
h3 { font-size: clamp(24px, 3vw, 36px); }
h4 { font-size: clamp(18px, 1.5vw, 22px); font-weight: 700; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   自定义鼠标光标 (桌面端)
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--red-500);
  border-radius: 50%;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 2px solid var(--red-500);
  border-radius: 50%;
  transition: width 0.25s var(--ease-out-expo), height 0.25s var(--ease-out-expo), border-color 0.2s;
  mix-blend-mode: difference;
}
.cursor-ring.hovering {
  width: 64px; height: 64px;
  border-color: var(--red-300);
}
@media (hover: none), (max-width: 900px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   滚动进度条
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-500), var(--red-300));
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--red-500);
}

/* ============================================================
   顶部导航 — 极简 / 强品牌
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: all 0.3s var(--ease-out-expo);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  border-bottom-color: var(--ink-200);
  box-shadow: 0 1px 16px rgba(0,0,0,0.06);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s var(--ease-out-expo);
}
.site-header .logo:hover { transform: scale(1.05); }
.site-header .logo img { width: auto; }
/* 寻游 logo (1.77:1, 内容是图标+2字) 视觉权重比识游 (5:1, 大字铺开) 轻, 放大到 1.5x 高度平衡 */
.site-header .logo img:nth-child(1) { height: 64px; }  /* 1.77:1 寻游 */
.site-header .logo img:nth-child(2) { height: 42px; }  /* 5:1 识游 */
.site-header .logo .divider {
  width: 1px; height: 24px;
  background: var(--ink-200);
}
.site-header .nav {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 0;
}
.site-header .nav a {
  position: relative;
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-700);
  text-transform: uppercase;
  transition: all 0.25s var(--ease-out-expo);
}
.site-header .nav a::before {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 3px;
  background: var(--color-accent);
  transition: width 0.3s var(--ease-out-expo), left 0.3s var(--ease-out-expo);
}
.site-header .nav a:hover,
.site-header .nav a.active { color: var(--red-500); }
.site-header .nav a:hover::before,
.site-header .nav a.active::before {
  width: calc(100% - 40px);
  left: 20px;
}
.site-header .logo-single img { height: 44px; }

/* ============================================================
   Hero — 全宽 + 大字 + 渐变 + 装饰 (Team17 风)
   ============================================================ */
.hero {
  position: relative;
  padding: 100px 0 var(--section-py);
  overflow: hidden;
  isolation: isolate;
}
/* 背景: 暗红渐变 + SVG 网格 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, var(--red-100) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, var(--red-50) 0%, transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--red-50) 100%);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(216,38,28,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(216,38,28,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero .container { position: relative; z-index: 1; }

/* 双业务入口 */
.hero-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 2px solid var(--ink-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-xl);
  perspective: 1500px;
}
.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 48px;
  border-right: 2px solid var(--ink-200);
  cursor: none;
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
  overflow: hidden;
}
.hero-card:last-child { border-right: 0; }
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red-500) 0%, var(--red-700) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
  z-index: -1;
}
.hero-card:hover::before { opacity: 1; }
.hero-card:hover {
  z-index: 2;
  box-shadow: var(--shadow-2xl);
}
.hero-card:hover h2,
.hero-card:hover p,
.hero-card:hover .logo-wrap { color: #fff; }
.hero-card:hover .logo-wrap img { filter: brightness(0) invert(1); }
.hero-card .logo-wrap {
  margin-bottom: 40px;
  transform: translateZ(40px);
  animation: floatY 5s ease-in-out infinite;
  /* 平衡两个 logo 视觉重量 — 1.77:1 寻游 1.5x 高度 (130px) 才能跟 5:1 识游 (80px) 视觉密度匹配.
     寻游 130×230 ≈ 识游 80×400 (面积 30k vs 32k) */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 130px;
}
.hero-card .logo-wrap img {
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  transition: filter 0.5s;
  object-fit: contain;
}
.hero-card:nth-child(1) .logo-wrap img { height: 130px; }  /* 寻游 1.77:1 */
.hero-card:nth-child(2) .logo-wrap img { height: 80px; }   /* 识游 5:1 */
.hero-card h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
  transform: translateZ(30px);
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 0.1s forwards;
  letter-spacing: -0.01em;
}
.hero-card p {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  color: var(--ink-500);
  max-width: 400px;
  transform: translateZ(30px);
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 0.3s forwards;
  line-height: 1.4;
}
.hero-card .logo-wrap {
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 0s forwards, floatY 5s ease-in-out 1s infinite;
}

/* 单 hero (子页) */
.hero-single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 60px 0;
  perspective: 1500px;
}
.hero-single > * { will-change: transform; transform-style: preserve-3d; transition: transform 0.5s var(--ease-out-expo); }
.hero-single .logo-wrap { animation: floatY 5s ease-in-out infinite; }
.hero-single .logo-wrap img { width: 100%; max-width: 580px; max-height: 200px; height: auto; object-fit: contain; }
.hero-single h2 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 900;
  color: var(--red-500);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 0.2s forwards;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero-single .en {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--ink-500);
  font-weight: 400;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 0.4s forwards;
}

.brand-xunyou .hero-single h2 { color: var(--red-500); }
.brand-shizhiyou .hero-single h2 { color: var(--color-shizhiyou); }

/* ============================================================
   Section 通用 — 大留白 + 暗色交替 + 装饰
   ============================================================ */
.section {
  position: relative;
  padding: var(--section-py) 0;
  border-top: 1px solid var(--ink-200);
}
.section.dark {
  background: var(--ink-800);
  color: #fff;
  border-top: 0;
}
.section.dark h2,
.section.dark h3,
.section.dark h4 { color: #fff; }
.section.dark .section-title h3 { color: #fff; }
.section.dark .section-title .en { color: rgba(255,255,255,0.5); }
.section.dark .intro h4 { color: #fff; }
.section.dark .intro p { color: rgba(255,255,255,0.7); }

.section-title {
  text-align: center;
  margin-bottom: 80px;
}
.section-title h3 {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}
.section-title h3::after {
  content: "";
  position: absolute;
  bottom: -16px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 3px;
  background: var(--color-accent);
  transition: width 0.8s var(--ease-out-expo);
}
.section.in-view .section-title h3::after { width: 60px; }
.section-title .en {
  display: block;
  font-size: 14px;
  color: var(--ink-400);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 24px;
}

/* 通用 fade-in 元素 */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.fade-in.in-view { opacity: 1; transform: translateY(0); }
.fade-in[data-delay="1"] { transition-delay: 0.1s; }
.fade-in[data-delay="2"] { transition-delay: 0.2s; }
.fade-in[data-delay="3"] { transition-delay: 0.3s; }
.fade-in[data-delay="4"] { transition-delay: 0.4s; }
.fade-in[data-delay="5"] { transition-delay: 0.5s; }

/* ============================================================
   关于我们
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
}
.about .intro h4 {
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--ink-800);
}
.about .intro p {
  font-size: 16px;
  color: var(--ink-500);
  line-height: 1.9;
  margin-bottom: 20px;
}
.about .stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-card {
  position: relative;
  border: 2px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  background: #fff;
  transition: all 0.3s var(--ease-out-expo);
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}
.stat-card:hover {
  border-color: var(--red-500);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover .num,
.stat-card:hover .label { color: #fff; }
.stat-card > * { position: relative; z-index: 1; transition: color 0.3s; }
.stat-card .num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  color: var(--red-500);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-card .label {
  font-size: 15px;
  color: var(--ink-500);
  font-weight: 500;
}

/* ============================================================
   核心业务 (5 卡片)
   ============================================================ */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.biz-card {
  position: relative;
  border: 2px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  background: #fff;
  transition: all 0.3s var(--ease-out-expo);
  overflow: hidden;
  cursor: none;
}
.biz-card::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--red-50), transparent);
  transition: left 0.7s var(--ease-out-expo);
}
.biz-card:hover { border-color: var(--red-500); transform: translateY(-6px); box-shadow: var(--shadow-md); }
.biz-card:hover::before { left: 100%; }
.biz-card .title { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink-800); margin-bottom: 6px; }
.biz-card .desc { font-size: 13px; color: var(--ink-400); }

/* ============================================================
   我们能为您做什么 (8 项 2 列)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 80px;
  max-width: 1000px;
  margin: 0 auto;
}
.service-item {
  position: relative;
  padding: 20px 0;
  border-bottom: 2px solid var(--ink-200);
  transition: all 0.3s var(--ease-out-expo);
  cursor: none;
}
.service-item::before {
  content: "→";
  position: absolute;
  left: -32px; top: 24px;
  color: var(--red-500);
  opacity: 0;
  font-size: 24px;
  font-weight: 700;
  transform: translateX(-12px);
  transition: all 0.3s var(--ease-out-expo);
}
.service-item:hover {
  padding-left: 32px;
  border-bottom-color: var(--red-500);
}
.service-item:hover::before { opacity: 1; transform: translateX(0); }
.service-item .cn {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 6px;
}
.service-item .en {
  font-size: 14px;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   合作项目 / 案例展示 (3D tilt + shine)
   ============================================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  perspective: 1500px;
}
.game-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
  cursor: none;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  will-change: transform;
  transform-style: preserve-3d;
}
.game-card:hover { box-shadow: var(--shadow-2xl), var(--shadow-glow); }
.game-card .cover {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out-expo), filter 0.5s;
}
.game-card:hover .cover { transform: scale(1.1); filter: brightness(0.7); }

.game-card .shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 240px at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,0.3), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 2;
}
.game-card:hover .shine { opacity: 1; }

.game-card .platform-badge {
  position: absolute;
  top: 0; left: 0;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom-right-radius: var(--radius);
  z-index: 3;
  transform: translateZ(20px);
  backdrop-filter: blur(8px);
  text-transform: uppercase;
}
.game-card .platform-badge::before {
  content: "";
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
}
.game-card .title-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  color: #fff;
  padding: 24px 20px 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 3;
  transform: translateY(20%);
  opacity: 0.85;
  transition: all 0.4s var(--ease-out-expo);
}
.game-card:hover .title-bar { transform: translateY(0); opacity: 1; }
.game-card .title-bar .title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.games-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 100px 0;
  color: var(--ink-400);
  font-size: 16px;
}

/* ============================================================
   精选项目 (Team17 风 — 大图游戏展示)
   ============================================================ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}
.featured-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  cursor: none;
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}
.featured-card:hover { box-shadow: var(--shadow-2xl), var(--shadow-glow); }
.featured-card .cover {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo), filter 0.4s;
}
.featured-card:hover .cover { transform: scale(1.06); filter: brightness(0.7); }
.featured-card .shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 280px at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 2;
}
.featured-card:hover .shine { opacity: 1; }
.featured-card .platform-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 3;
  backdrop-filter: blur(8px);
  text-transform: uppercase;
}
.featured-card .status-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--red-500);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 999px;
  z-index: 3;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(216,38,28,0.5);
}
.featured-card .info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 20px 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  color: #fff;
  z-index: 3;
  transform: translateY(20%);
  opacity: 0.85;
  transition: all 0.4s var(--ease-out-expo);
}
.featured-card:hover .info { transform: translateY(0); opacity: 1; }
.featured-card .info h4 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.featured-card .info .sub {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.featured-card .info .cta {
  display: inline-block;
  padding: 10px 24px;
  background: var(--red-500);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.2s;
}
.featured-card .info .cta:hover { background: var(--red-600); }
.featured-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 100px 0;
  color: var(--ink-400);
  font-size: 16px;
}

@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card { aspect-ratio: 16/9; cursor: auto; }
  .featured-card .shine { display: none; }
}

/* ============================================================
   Footer (Team17 风升级)
   ============================================================ */
.site-footer {
  background: var(--ink-900);
  color: rgba(255,255,255,0.7);
  padding: 0;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-500), transparent);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 32px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
  gap: 32px;
}
.footer-brand .footer-logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s;
}
.footer-brand .footer-logo:hover img { opacity: 0.8; }
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.footer-social .social-title {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}
.footer-social .social-icons {
  display: flex;
  gap: 12px;
}
.footer-social .social-icons a {
  width: 56px; height: 56px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.25s var(--ease-out-expo);
}
.footer-social .social-icons a:hover {
  border-color: var(--red-500);
  color: #fff;
  background: var(--red-500);
  transform: translateY(-2px);
}
.footer-social .social-icons svg {
  width: 24px; height: 24px;
  fill: currentColor;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--red-500); }
.footer-copyright {
  color: rgba(255,255,255,0.4);
}
@media (max-width: 700px) {
  .footer-top { flex-direction: column; align-items: center; text-align: center; }
  .footer-social { align-items: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
}
.contact {
  position: relative;
  background: var(--ink-800);
  color: #fff;
  padding: var(--section-py) 0;
  overflow: hidden;
  isolation: isolate;
}
.contact::before {
  content: "";
  position: absolute;
  top: -300px; right: -200px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--red-500) 0%, transparent 60%);
  opacity: 0.25;
  z-index: -1;
}
.contact::after {
  content: "";
  position: absolute;
  bottom: -300px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--red-700) 0%, transparent 60%);
  opacity: 0.2;
  z-index: -1;
}
.contact .section-title h3 { color: #fff; }
.contact .section-title h3::after { background: var(--red-500); }
.contact .section-title .sub {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  margin-top: 12px;
}
.contact-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.contact-info .info-block { margin-bottom: 40px; }
.contact-info h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #fff;
}
.contact-info .item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  transition: transform 0.3s var(--ease-out-expo);
}
.contact-info .item:hover { transform: translateX(8px); }
.contact-info .item .icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--red-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.3s;
}
.contact-info .item:hover .icon {
  background: #fff;
  color: var(--red-500);
}
.contact-info .item .label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-right: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.contact-info .work-time {
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s var(--ease-out-expo);
}
.contact-info .work-time:hover { background: rgba(255,255,255,0.08); border-color: var(--red-500); }
.contact-info .work-time h5 { font-size: 15px; color: #fff; margin-bottom: 12px; font-weight: 600; }
.contact-info .work-time p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.8; }

.contact-form {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 40px;
  color: var(--ink-700);
  box-shadow: var(--shadow-2xl);
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.contact-form .field { display: flex; flex-direction: column; position: relative; }
.contact-form .field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.contact-form .field label .req { color: var(--red-500); }
.contact-form .field:focus-within label { color: var(--red-500); }
.contact-form input,
.contact-form textarea {
  border: 2px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--ink-50);
  font-size: 15px;
  transition: all 0.25s var(--ease-out-expo);
  font-family: var(--font-body);
}
.contact-form input:hover,
.contact-form textarea:hover { border-color: var(--red-200); }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(216,38,28,0.1);
}
.contact-form textarea { resize: vertical; min-height: 120px; width: 100%; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form .submit {
  position: relative;
  width: 100%;
  background: var(--red-500);
  color: #fff;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
  overflow: hidden;
  transition: all 0.3s var(--ease-out-expo);
}
.contact-form .submit::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s var(--ease-out-expo);
}
.contact-form .submit:hover {
  background: var(--red-600);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(216,38,28,0.4);
}
.contact-form .submit:hover::before { left: 100%; }
.contact-form .submit:active { transform: translateY(0); }
.contact-form .submit.success { background: #2BA471; pointer-events: none; }
.contact-form .msg { margin-top: 12px; font-size: 14px; text-align: center; min-height: 20px; font-weight: 500; }
.contact-form .msg.ok { color: #2BA471; }
.contact-form .msg.err { color: var(--red-500); }

/* ============================================================
   Admin 后台 (保持原样)
   ============================================================ */
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--red-500), var(--red-700)); padding: 20px; }
.admin-login .box { background: #fff; padding: 48px 40px; border-radius: var(--radius-xl); box-shadow: var(--shadow-2xl); width: 400px; max-width: 100%; }
.admin-login h1 { font-size: 24px; text-align: center; margin-bottom: 32px; color: var(--ink-800); font-weight: 800; }
.admin-login input { width: 100%; border: 2px solid var(--ink-200); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; font-size: 15px; }
.admin-login input:focus { border-color: var(--red-500); }
.admin-login button { width: 100%; background: var(--red-500); color: #fff; padding: 14px; border-radius: var(--radius); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-login button:hover { background: var(--red-600); }
.admin-login .err { color: var(--red-500); font-size: 13px; text-align: center; margin-top: 12px; font-weight: 500; }

.admin-shell { min-height: 100vh; background: var(--ink-50); }
.admin-header { background: #fff; border-bottom: 1px solid var(--ink-200); padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.admin-header h1 { font-size: 18px; font-weight: 800; }
.admin-header .user { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--ink-500); }
.admin-header .user a { color: var(--red-500); font-weight: 500; }
.admin-body { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px); }
.admin-side { background: #fff; border-right: 1px solid var(--ink-200); padding: 16px 0; }
.admin-side .item { display: block; padding: 14px 24px; font-size: 14px; color: var(--ink-500); cursor: pointer; border-left: 3px solid transparent; font-weight: 500; }
.admin-side .item:hover { background: var(--ink-50); color: var(--ink-800); }
.admin-side .item.active { color: var(--red-500); border-left-color: var(--red-500); background: var(--red-50); font-weight: 600; }
.admin-main { padding: 32px; }
.admin-card { background: #fff; border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.admin-card h2 { font-size: 18px; margin-bottom: 16px; }
.game-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.game-list .item { border: 2px solid var(--ink-200); border-radius: var(--radius); overflow: hidden; background: #fff; }
.game-list .item .cover-wrap { aspect-ratio: 16/9; background: #000; overflow: hidden; }
.game-list .item .cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
.game-list .item .meta { padding: 14px; }
.game-list .item .meta .title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.game-list .item .meta .info { font-size: 12px; color: var(--ink-400); margin-bottom: 10px; }
.game-list .item .actions { display: flex; gap: 8px; }
.game-list .item .actions button { flex: 1; font-size: 12px; padding: 6px; border-radius: var(--radius); border: 1px solid var(--ink-200); background: #fff; color: var(--ink-500); cursor: pointer; }
.game-list .item .actions button.del { color: var(--red-500); }
.game-list .item .actions button:hover { background: var(--ink-50); }
.btn { background: var(--red-500); color: #fff; padding: 10px 20px; border-radius: var(--radius); font-size: 13px; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--red-600); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-ghost { background: #fff; color: var(--ink-700); border: 1px solid var(--ink-200); }
.btn-row { display: flex; gap: 8px; margin-bottom: 20px; align-items: center; }
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal { background: #fff; border-radius: var(--radius-lg); width: 480px; max-width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-2xl); }
.modal h3 { padding: 20px 24px; border-bottom: 1px solid var(--ink-200); font-size: 18px; }
.modal .body { padding: 24px; }
.modal .row { margin-bottom: 16px; }
.modal label { display: block; font-size: 12px; color: var(--ink-500); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.modal input, .modal select, .modal textarea { width: 100%; border: 2px solid var(--ink-200); border-radius: var(--radius); padding: 10px 12px; font-size: 14px; }
.modal input:focus, .modal select:focus, .modal textarea:focus { border-color: var(--red-500); }
.modal .footer { padding: 16px 24px; border-top: 1px solid var(--ink-200); display: flex; gap: 8px; justify-content: flex-end; }
.modal .footer .cancel { background: #fff; color: var(--ink-700); border: 1px solid var(--ink-200); padding: 8px 16px; border-radius: var(--radius); cursor: pointer; }
.modal .footer .ok { background: var(--red-500); color: #fff; padding: 8px 16px; border-radius: var(--radius); cursor: pointer; }
.upload-area { border: 2px dashed var(--ink-200); border-radius: var(--radius); padding: 28px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; min-height: 100px; display: flex; align-items: center; justify-content: center; }
.upload-area:hover { border-color: var(--red-500); }
.upload-area .preview { max-width: 100%; max-height: 200px; margin: 0 auto; border-radius: var(--radius); }
.upload-area .empty-hint { color: var(--ink-500); font-size: 14px; line-height: 1.7; }
.upload-area .hint { font-size: 12px; color: var(--ink-400); margin-top: 8px; }
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-msg { border: 2px solid var(--ink-200); border-radius: var(--radius); padding: 16px; background: #fff; }
.contact-msg.unread { border-left: 4px solid var(--red-500); background: var(--red-50); }
.contact-msg .head { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }
.contact-msg .head .name { font-weight: 600; }
.contact-msg .head .time { color: var(--ink-400); font-size: 12px; }
.contact-msg .body { font-size: 13px; color: var(--ink-500); line-height: 1.6; white-space: pre-wrap; }
.contact-msg .actions { margin-top: 10px; display: flex; gap: 8px; justify-content: flex-end; }

/* ============================================================
   keyframes
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-py: 80px; }
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  body { cursor: auto; font-size: 15px; }
  button, a, .hero-card, .game-card, .service-item, .biz-card { cursor: auto; }
  .hero-duo, .hero-single, .about, .contact-body, .services-grid, .games-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about .stats { grid-template-columns: 1fr 1fr; }
  .site-header .nav { display: none; }
  .container { padding: 0 20px; }
  .hero { padding: 40px 0 60px; }
  .section { padding: 60px 0; border-top: 0; }
  .section-title { margin-bottom: 48px; }
  .hero-card { padding: 60px 24px; }
  .contact-form { padding: 24px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .game-card { cursor: auto; }
  .game-card .shine { display: none; }
}

/* ============================================================
   reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-card .logo-wrap, .hero-single .logo-wrap { animation: none; }
  .game-card:hover .cover { transform: none; }
}
