/* ============ 主视觉 ============ */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(120% 140% at 88% 8%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(128deg, #EDF5FF 0%, #D8E8FF 42%, #B7D3FF 100%);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 18px 40px rgba(20, 58, 107, .10);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 24px;
}

.hero-copy { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--primary);
  margin-bottom: 18px;
}
.hero-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: 46px;
  line-height: 1.12;
  color: var(--primary-deep);
  letter-spacing: -.02em;
  font-weight: 700;
}

.hero-sub {
  margin-top: 16px;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.8;
  color: #4B6584;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn { min-width: 132px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  font-size: 12px;
  color: #5D7591;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  opacity: .6;
}

/* 主视觉装饰 */
.hero-art {
  position: relative;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  color: var(--primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
  transform: translate(calc(var(--px, 0) * 6px), calc(var(--py, 0) * 6px));
  transition: transform 600ms var(--ease);
}

.gear-ring { animation: spin 28s linear infinite; transform-origin: center; }
.gear-spokes { animation: spin 28s linear infinite reverse; transform-origin: center; }
.float-a { animation: bob 7s var(--ease) infinite; }
.float-b { animation: bob 9s var(--ease) infinite .8s; }
.float-c { animation: bob 11s var(--ease) infinite 1.6s; }
.pipe-a { animation: drift 12s var(--ease) infinite; }
.pipe-b { animation: drift 15s var(--ease) infinite 1s; }
.dot-a { animation: pulse 4s var(--ease) infinite; }
.dot-b { animation: pulse 5s var(--ease) infinite 1.2s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}
@keyframes pulse {
  0%, 100% { opacity: .25; }
  50% { opacity: .65; }
}

@media (max-width: 1023px) {
  .hero { padding: 40px 32px; grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .hero-art { display: none; }
}
@media (max-width: 767px) {
  .hero { padding: 32px 22px; border-radius: 20px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 13px; }
  .hero-actions .btn { flex: 1; min-width: 0; }
}

/* ============ 今日推荐 ============ */
.feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 28px 32px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: #A9CBFF;
}

.feature-visual {
  position: relative;
  height: 148px;
  border-radius: 14px;
  background: linear-gradient(140deg, #EAF2FF, #CFE2FF);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.feature-visual .ic { width: 68px; height: 68px; color: var(--primary); stroke-width: 1.4; }
.feature-visual::after {
  content: "";
  position: absolute;
  width: 120px; height: 120px;
  right: -34px; bottom: -40px;
  border-radius: 50%;
  background: rgba(255, 122, 26, .14);
}
.feature-visual::before {
  content: "";
  position: absolute;
  width: 74px; height: 74px;
  left: -22px; top: -26px;
  border-radius: 50%;
  border: 1.5px solid rgba(47, 107, 255, .22);
}

.feature-body { min-width: 0; }
.feature-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.feature-title { font-size: 22px; color: var(--primary-deep); }
.feature-desc { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.75; }
.feature-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--muted); }
.feature-meta .best { color: var(--accent); font-weight: 600; font-family: var(--font-num); }

.feature-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-btn);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(255, 122, 26, .26);
  transition: background-color var(--t-mid) var(--ease), transform var(--t-fast) var(--ease);
}
.feature-go:hover { background: #ff8a33; }
.feature-go:active { transform: scale(.97); }

@media (max-width: 1023px) {
  .feature-card { grid-template-columns: 132px minmax(0, 1fr); gap: 20px; padding: 22px; }
  .feature-visual { height: 120px; }
  .feature-visual .ic { width: 50px; height: 50px; }
  .feature-go { grid-column: 1 / -1; width: 100%; justify-content: center; margin-top: 4px; }
}
@media (max-width: 767px) {
  .feature-card { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .feature-visual { height: 84px; border-radius: 12px; }
  .feature-visual .ic { width: 38px; height: 38px; }
  .feature-title { font-size: 18px; }
  .feature-desc { font-size: 12px; }
}

/* ============ 分类快捷入口 ============ */
.type-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.type-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 20px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.type-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: #A9CBFF;
}
.type-tile .type-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
}
.type-tile .type-icon .ic { width: 24px; height: 24px; }
.type-name { font-size: 15px; font-weight: 600; color: var(--primary-deep); }
.type-count { font-size: 12px; color: var(--muted); }

.type-tile:nth-child(2) .type-icon { background: #FFEBDD; color: #D96A14; }
.type-tile:nth-child(3) .type-icon { background: #E2F3E8; color: #1F7A4C; }
.type-tile:nth-child(4) .type-icon { background: #EAE7FF; color: #4B3FBF; }
.type-tile:nth-child(5) .type-icon { background: #FFE7EA; color: #BC3B57; }

@media (max-width: 1023px) {
  .type-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .type-row {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .type-row::-webkit-scrollbar { display: none; }
  .type-tile { flex: 0 0 132px; padding: 16px; gap: 10px; scroll-snap-align: start; }
}

/* ============ 最近在玩 ============ */
.recent-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.recent-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.recent-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.recent-top { display: flex; align-items: center; gap: 12px; }
.recent-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: #EDF4FF;
  color: var(--primary);
}
.recent-icon .ic { width: 22px; height: 22px; }
.recent-name { font-size: 14px; font-weight: 600; color: var(--primary-deep); }
.recent-time { font-size: 11px; color: var(--muted); }
.recent-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.recent-score { font-family: var(--font-num); color: var(--accent); font-weight: 700; font-size: 15px; }

@media (max-width: 1023px) { .recent-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .recent-row { grid-template-columns: 1fr; } }

/* ============ 数据条 ============ */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.stat-item { padding: 26px 28px; }
.stat-item + .stat-item { border-left: 1px solid var(--line); }
.stat-num {
  font-family: var(--font-num);
  font-size: 30px;
  font-weight: 700;
  color: var(--primary-deep);
  line-height: 1.1;
}
.stat-unit { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; font-family: var(--font); }
.stat-label { margin-top: 6px; font-size: 12px; color: var(--muted); }

@media (max-width: 767px) {
  .stat-item { padding: 18px 16px; }
  .stat-num { font-size: 22px; }
  .stat-label { font-size: 11px; }
}

/* ============ 页脚 ============ */
.foot {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
