/* FC 27 game landing — Hero + Cate only
   主站约定：默认=暗色 UI；html.dark=亮色 UI
   Figma 10516:53132：容器 1400 / 列表 gap 16 / 卡 337.75×292 / 4 列 flex */

.fc-page {
  --tpl-section-py: 48px;
  --tpl-section-gap: 24px;
  --tpl-container: 1400px;
  --fc-page-bg: #0c111c;
  --fc-text: #fff;
  --fc-text-muted: #94a7c6;
  --fc-brand: #006ef5;
  --fc-arrow-bg: rgba(138, 155, 209, 0.2);
  --fc-cate-text: #fff;
  --fc-cate-card-bg: #1f2937;
  --fc-card-shadow: none;
  --fc-cols: 4;
  --fc-card-gap: 16px;
  float: left;
  width: 100%;
  clear: both;
  background: var(--fc-page-bg);
  color: var(--fc-text);
}

/* 本页才引入：取消公共 .footer 上边距/顶内边距，避免与主题色割裂 */
.footer {
  margin-top: 0;
  padding-top: 0;
}

html.dark .fc-page {
  --fc-page-bg: #f6f6f6;
  --fc-text: #0c111c;
  --fc-text-muted: #52525b;
  --fc-arrow-bg: rgba(138, 155, 209, 0.2);
  --fc-cate-text: #0c111c;
  --fc-cate-card-bg: #fff;
  --fc-card-shadow: 0 4px 24px rgba(12, 17, 28, 0.06);
}

.fc-page .container {
  max-width: var(--tpl-container);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.fc-title {
  margin: 0;
  color: var(--fc-text);
  font-size: 30px;
  line-height: 38px;
  font-weight: 700;
}

.fc-subtitle {
  margin: 8px 0 0;
  color: var(--fc-text-muted);
  font-size: 16px;
  line-height: 25px;
  font-weight: 400;
}

.fc-section {
  float: left;
  width: 100%;
  padding: var(--tpl-section-py) 0 0;
}

.fc-section:last-child {
  padding-bottom: 120px;
}

.fc-section__head {
  margin-bottom: var(--tpl-section-gap);
}

/* Hero — 结构对齐 aion2/ms；背景用 players-fc ball 图；文案左对齐（稿） */
.fc-hero {
  position: relative;
  float: left;
  width: 100%;
  height: 320px;
  max-height: 320px;
  overflow: hidden;
  background: #120707;
}

.fc-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.fc-hero__bg-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.fc-hero__bg-img--m {
  display: none;
}

.fc-hero__shade {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: min(1045px, 60%);
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
}

.fc-hero__inner {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  max-height: 320px;
  max-width: var(--tpl-container);
  margin: 0 auto;
  padding: 0 20px;
}

.fc-crumbs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 max(20px, calc((100% - var(--tpl-container)) / 2 + 20px));
  overflow: hidden;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 12px;
  letter-spacing: 0.1875px;
  white-space: nowrap;
}

.fc-crumbs a {
  color: #fff;
  font-weight: 400;
  text-decoration: none;
}

.fc-crumbs a:hover {
  text-decoration: underline;
}

.fc-crumbs__sep,
.fc-crumbs__here {
  color: #fff;
  font-weight: 400;
}

.fc-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
  text-align: left;
  filter: drop-shadow(0 4px 10px rgba(0, 14, 61, 0.1));
}

.fc-hero__title {
  margin: 0;
  color: #fff;
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
}

.fc-hero__desc {
  margin: 0 0 16px;
  max-width: 604px;
  color: #fff;
  font-size: 16px;
  line-height: 26px;
  font-weight: 600;
}

.fc-hero__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  max-width: 604px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.fc-hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 5px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  box-sizing: border-box;
  white-space: nowrap;
}

.fc-hero__badge-ico {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
}

/* Categories — 1400 宽内 4 列 × 2 行 flex，禁止 grid */
.fc-cate__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fc-card-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.fc-cate__item {
  flex: 0 0 calc((100% - (var(--fc-cols) - 1) * var(--fc-card-gap)) / var(--fc-cols));
  max-width: calc((100% - (var(--fc-cols) - 1) * var(--fc-card-gap)) / var(--fc-cols));
  min-width: 0;
  box-sizing: border-box;
}

.fc-cate__card {
  position: relative;
  display: block;
  height: 292px;
  padding: 32px 16px 20px;
  overflow: hidden;
  border-radius: 16px;
  color: var(--fc-cate-text);
  text-decoration: none;
  background: var(--fc-cate-card-bg);
  box-shadow: var(--fc-card-shadow);
  box-sizing: border-box;
}

.fc-cate__watermark {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.fc-cate__text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fc-cate__text strong {
  font-size: 24px;
  line-height: 24px;
  font-weight: 700;
}

.fc-cate__text span {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.fc-cate__arrow {
  position: absolute;
  left: 16px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 32px;
  background: var(--fc-arrow-bg);
  box-sizing: border-box;
}

.fc-cate__arrow img {
  display: block;
  width: 24px;
  height: 24px;
}

.fc-cate__art {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 200px;
  object-fit: contain;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.fc-cate__art--focus {
  opacity: 0;
}

.fc-cate__card:hover .fc-cate__art:not(.fc-cate__art--focus) {
  opacity: 0;
}

.fc-cate__card:hover .fc-cate__art--focus {
  opacity: 1;
}

/* fade-up */
html.fc-anim .fc-page .fc-fade-up {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--fc-fade-delay, 0s);
  will-change: opacity, transform;
}

html.fc-anim .fc-page .fc-fade-up.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  html.fc-anim .fc-page .fc-fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1200px) {
  .fc-page {
    --fc-cols: 2;
  }
  .fc-hero__title {
    font-size: clamp(32px, 5vw, 48px);
  }
}
