:root {
  --bg-color: #fbf8f1;
  --text-main: #2b2b2b;
  --text-muted: #666;
  --arcade-red: #e63946;
  --arcade-blue: #2a6fdb;
  --neon-yellow: #f4d03f;
  --neon-pink: #ff6b6b;
  --neon-cyan: #00d2d3;
  --card-bg: #ffffff;
  --border-color: #e0dcd3;
  --pixel-font: 'Courier New', Courier, monospace;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

/* 顶部导航 */
.top-nav {
  position: sticky;
  top: 0;
  background: rgba(251, 248, 241, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--border-color);
  z-index: 100;
  transition: all 0.3s ease;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
}
.brand img {
  height: 32px;
  width: auto;
  border-radius: 4px;
}
.nav-links {
  display: flex;
  gap: 20px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--arcade-red);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 4px 12px;
}
.search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  padding: 4px;
  width: 120px;
}
.btn-download-nav {
  background: var(--arcade-red);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: bold;
  border: 2px solid #b32d37;
  box-shadow: 0 4px 0 #b32d37;
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn-download-nav:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #b32d37;
}

/* 通用区块 */
.section {
  padding: 60px 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.section-title {
  font-size: 26px;
  font-weight: 800;
  position: relative;
  letter-spacing: 1px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--arcade-red) 0, var(--arcade-red) 4px, transparent 4px, transparent 8px);
}
.pixel-icon {
  width: 32px;
  height: 32px;
  background-color: var(--arcade-blue);
  border-radius: 4px;
  display: inline-block;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.5), inset -2px -2px 0 rgba(0,0,0,0.2);
}

/* 首屏 - 街机机身 */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 40px 16px;
  background: linear-gradient(180deg, #fbf8f1 0%, #f0ebe1 100%);
}
.arcade-cabinet {
  background: var(--card-bg);
  border: 8px solid var(--neon-pink);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 12px 0 rgba(0,0,0,0.1), 0 0 20px rgba(255,107,107,0.4);
  position: relative;
  width: 100%;
  max-width: 400px;
}
.arcade-screen {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  border: 4px solid #333;
}
.arcade-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.1) 0px, rgba(0,0,0,0.1) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 2;
}
.arcade-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.arcade-score-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: var(--neon-yellow);
  font-family: var(--pixel-font);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 3;
  border: 1px solid var(--neon-yellow);
}
.arcade-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 0 8px;
}
.joystick {
  width: 24px;
  height: 24px;
  background: var(--arcade-red);
  border-radius: 50%;
  border: 3px solid #333;
}
.btn-arcade {
  display: flex;
  gap: 8px;
}
.btn-arcade span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #333;
}
.btn-arcade span:nth-child(1) { background: var(--arcade-blue); }
.btn-arcade span:nth-child(2) { background: var(--neon-yellow); }

.hero-text {
  text-align: center;
  max-width: 600px;
}
.hero-text h1 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--text-main);
  text-shadow: 2px 2px 0 rgba(230,57,70,0.2);
}
.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}
.stat-item {
  background: #fff;
  border: 2px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--pixel-font);
  font-size: 14px;
  font-weight: bold;
}
.stat-item span {
  color: var(--arcade-red);
  font-size: 18px;
}
.hero-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.btn-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 56px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(0,0,0,0.2);
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn-large:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 rgba(0,0,0,0.2);
}
.btn-android {
  background-color: #3ddc84;
  color: #111;
  border: 2px solid #26a65b;
  box-shadow: 0 6px 0 #26a65b;
}
.btn-ios {
  background-color: #007aff;
  border: 2px solid #005bb5;
  box-shadow: 0 6px 0 #005bb5;
}

/* 热播机台屏墙 */
.grid-arcade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
.arcade-card {
  background: #fff;
  border: 4px solid var(--border-color);
  border-radius: 12px;
  padding: 8px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.arcade-card:hover, .arcade-card.active {
  border-color: var(--arcade-blue);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(42,111,219,0.2);
}
.arcade-card-cover {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #000;
}
.arcade-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--arcade-red);
  color: #fff;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: bold;
}
.arcade-card-info {
  margin-top: 8px;
}
.arcade-card-title {
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.arcade-card-score {
  font-size: 12px;
  color: var(--arcade-blue);
  font-family: var(--pixel-font);
  margin-top: 4px;
}

/* 更新日历 */
.task-board {
  background: #fff;
  border: 4px solid #333;
  border-radius: 12px;
  padding: 16px;
}
.task-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 2px dashed var(--border-color);
}
.task-row:last-child {
  border-bottom: none;
}
.task-time {
  font-family: var(--pixel-font);
  font-weight: bold;
  font-size: 18px;
  width: 64px;
  flex-shrink: 0;
}
.task-covers {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
}
.task-cover-item {
  width: 48px;
  flex-shrink: 0;
  text-align: center;
}
.task-cover-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
}
.task-status {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.status-active {
  background: var(--neon-yellow);
  color: #333;
  font-weight: bold;
  animation: blink 1s infinite alternate;
}
.status-wait {
  background: #eee;
  color: #999;
}
@keyframes blink {
  from { opacity: 1; }
  to { opacity: 0.5; }
}

/* 排行榜 */
.ranking-list {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 2px solid var(--border-color);
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.rank-item:last-child {
  border-bottom: none;
}
.rank-num {
  font-family: var(--pixel-font);
  font-size: 24px;
  font-weight: bold;
  width: 40px;
  text-align: center;
  color: #ccc;
}
.rank-item.top1 .rank-num { color: #f1c40f; }
.rank-item.top2 .rank-num { color: #bdc3c7; }
.rank-item.top3 .rank-num { color: #cd7f32; }
.rank-item.top1 {
  background: #fff9e6;
  border-radius: 8px;
  padding: 12px;
  margin: 0 -12px;
}
.rank-cover {
  width: 40px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
}
.rank-info {
  flex: 1;
}
.rank-title {
  font-weight: bold;
  font-size: 15px;
}
.rank-tags {
  font-size: 12px;
  color: var(--text-muted);
}
.rank-score {
  font-family: var(--pixel-font);
  color: var(--arcade-red);
  font-weight: bold;
}
.rank-trend {
  font-size: 12px;
  width: 32px;
  text-align: right;
}
.trend-up { color: #2ecc71; }
.trend-down { color: #e74c3c; }

/* 题材分类 */
.map-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: #f0f4f8;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #d0d7de;
}
.map-node {
  background: #fff;
  border: 2px solid var(--arcade-blue);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.map-node:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(42,111,219,0.4);
}
.map-node-title {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 8px;
}
.map-node-covers {
  display: flex;
  justify-content: center;
  gap: 4px;
}
.map-node-covers img {
  width: 32px;
  height: 44px;
  object-fit: cover;
  border-radius: 2px;
}

/* 独播首发 */
.premiere-split {
  display: flex;
  gap: 24px;
}
.premiere-main {
  flex: 1;
  background: #fff;
  border: 4px solid var(--neon-cyan);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  box-shadow: 0 0 20px rgba(0,210,211,0.2);
}
.ribbon {
  position: absolute;
  top: -12px;
  left: 12px;
  background: var(--arcade-red);
  color: #fff;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 4px;
  transform: rotate(-3deg);
}
.premiere-main img {
  width: 120px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.premiere-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.side-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.side-list-item img {
  width: 40px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
}

/* 免费专区 */
.free-play-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}
.free-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.free-card:hover {
  border-color: var(--arcade-red);
  transform: translateY(-4px);
}
.free-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.free-card-info {
  padding: 8px;
  text-align: center;
  position: relative;
}
.free-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--arcade-red);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 用户评价 */
.sticker-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  background: #f9f9f9;
  padding: 24px;
  border-radius: 12px;
}
.sticker {
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 2px 4px 8px rgba(0,0,0,0.1);
  position: relative;
  transform: rotate(-2deg);
}
.sticker:nth-child(even) { transform: rotate(2deg); }
.sticker::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 16px;
  background: rgba(200,200,200,0.5);
  border-radius: 2px;
}
.sticker-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.sticker-user img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.sticker-name {
  font-weight: bold;
  font-size: 14px;
}
.sticker-stars {
  color: #f1c40f;
  font-size: 12px;
}
.sticker-text {
  font-size: 13px;
  color: #555;
}

/* FAQ 说明书 */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after {
  content: '+';
  font-size: 20px;
  color: var(--text-muted);
}
.faq-a {
  padding: 0 16px 16px;
  color: var(--text-muted);
  font-size: 14px;
  display: none;
}
.faq-item.active .faq-a {
  display: block;
}

/* 下载安装区 */
.download-section {
  text-align: center;
  padding: 60px 16px;
  background: #fff;
  border-top: 4px solid var(--border-color);
}
.step-cards {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.step-card {
  background: #f9f9f9;
  border: 2px solid var(--border-color);
  padding: 20px;
  border-radius: 12px;
  width: 260px;
  text-align: left;
}
.step-num {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: var(--arcade-blue);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-weight: bold;
  margin-bottom: 8px;
}
.step-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
}
.step-desc {
  font-size: 13px;
  color: var(--text-muted);
}
.btn-coin-group {
  display: flex;
  justify-content: center;
  gap: 32px;
}
.btn-coin {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 8px 0 rgba(0,0,0,0.2);
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn-coin:active {
  transform: translateY(8px);
  box-shadow: 0 0 0 rgba(0,0,0,0.2);
}
.btn-coin.android {
  background: #3ddc84;
  color: #111;
  box-shadow: 0 8px 0 #26a65b;
}
.btn-coin.ios {
  background: #007aff;
  box-shadow: 0 8px 0 #005bb5;
}
.btn-coin svg {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
}

/* 页脚 */
footer {
  background: #f0ebe1;
  padding: 40px 16px 20px;
  font-size: 13px;
  color: #888;
  text-align: center;
  border-top: 1px solid #ddd;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.footer-links a:hover {
  color: var(--text-main);
}
.copyright {
  margin-top: 16px;
  line-height: 1.8;
}

/* 移动端适配 */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
  }
  .map-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .premiere-split {
    flex-direction: column;
  }
  .btn-coin-group {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .search-box { display: none; }
  .section { padding: 40px 16px; }
  .grid-arcade { grid-template-columns: repeat(2, 1fr); }
  .task-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ranking-list { padding: 8px; }
  .rank-item { padding: 8px 0; gap: 8px; }
  .rank-title { font-size: 14px; }
  .footer-links { flex-direction: column; gap: 12px; }
  .btn-large { width: 100%; max-width: 280px; }
  .hero-btns { flex-direction: column; align-items: center; width: 100%; }
  .float-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    padding: 8px 16px;
    gap: 12px;
    z-index: 999;
  }
  .float-bar .btn-large {
    flex: 1;
    min-height: 48px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 26px; }
  .section-title { font-size: 22px; }
  .hero-stats { flex-wrap: wrap; gap: 8px; }
  .stat-item { padding: 6px 12px; font-size: 12px; }
  .stat-item span { font-size: 16px; }
  .step-card { width: 100%; }
}

/* 减少动效 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}