/* ==========================================================================
   目标站像素级规格层（arcade 主题）
   数据来源：target-f12-desktop.json / target-f12-mobile.json（F12 采样快照，
             已随截图归档至 南宫导航归档-20261110/deliverables/，非运行时依赖）
   采样：1440×900 与 390×844，getComputedStyle 实测
   本文件最后加载，只覆盖视觉，不改布局语义与业务钩子
   ========================================================================== */

body.ng-skin {
  --tgt-panel: #fffdfd;
  --tgt-line: #e1d4ea;
  --tgt-ink: #3b2a49;
  --tgt-muted: #725d81;
  --tgt-btn: #6a4693;
  --tgt-cta-text: #fff9ed;
  --tgt-inset: #f5f1f6;
  --tgt-shadow: 0 4px 18px rgba(0, 0, 0, .043);
  --tgt-tl: url("../../images/clone/arcade/category-tl.webp");
  --tgt-br: url("../../images/clone/arcade/category-br.webp");
  --tgt-ptl: url("../../images/clone/arcade/platform-tl.webp");
  --tgt-pbr: url("../../images/clone/arcade/platform-br.webp");
  --tgt-button: url("../../images/clone/arcade/button.avif");

  background: linear-gradient(135deg, #f8f3fb 0%, #efe8f5 100%) !important;
  color: var(--tgt-ink);
}

/* --------------------------------------------------------------------------
   1. 顶栏：1180×70，r16，双图纹理
   -------------------------------------------------------------------------- */
body.ng-skin .ng-brand-header {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1180px;
  height: 70px;
  margin: 12px auto;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--tgt-line);
  border-radius: 16px;
  background: var(--tgt-panel);
  box-shadow: inset 0 0 0 2px var(--tgt-inset), var(--tgt-shadow);
}

body.ng-skin .ng-brand-header::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    var(--tgt-tl) left top / min(50%, 150px) auto no-repeat,
    var(--tgt-br) right bottom / min(47%, 140px) auto no-repeat;
  opacity: .19;
}

body.ng-skin .ng-brand-header__row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 19px;
  box-sizing: border-box;
}

body.ng-skin .ng-brand-header .brand-logo {
  display: block;
  width: auto;
  height: 49px;
  max-height: 49px;
  object-fit: contain;
}

body.ng-skin .ng-head-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 5px 12px 5px 7px;
  box-sizing: border-box;
  border: 1px solid var(--tgt-line);
  border-radius: 14px;
  background: var(--tgt-panel);
  box-shadow: inset 0 1px rgba(255, 253, 253, .72), 0 7px 18px rgba(59, 42, 73, .09);
  color: var(--tgt-ink);
}

body.ng-skin .ng-head-cta__icon img {
  width: 30px;
  height: 30px;
  display: block;
  border-radius: 50%;
}

body.ng-skin .ng-head-cta__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--tgt-ink);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   2. 轮播：1180 宽，比例 389/175，r18
   -------------------------------------------------------------------------- */
body.ng-skin .carousel {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 10px !important;
  padding: 0 !important;
  box-sizing: border-box;
}

body.ng-skin .carousel-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  aspect-ratio: 389 / 175;
  height: auto;
  border-radius: 18px !important;
  overflow: hidden;
}

body.ng-skin .carousel-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   3. 公告条：完全对齐目标站 .page-shell .marquee-wrap / .marquee / .marquee-text
      1140×44，padding 7/16/7/43，r16；左侧 8px 圆点 + 32px 竖分割线；
      文本 padding-left:100% + translateX(0→-100%)，周期由 JS 按 48px/s 写入变量
   -------------------------------------------------------------------------- */
body.ng-skin .notice-section {
  width: 100% !important;
  max-width: 1180px !important;
  height: 44px;
  margin: 10px auto 4px !important;
  padding: 0 20px !important;
  box-sizing: border-box;
  overflow: visible;
}

/* 目标站实测：底色 #fffdfd、无背景图、边框 #e1d4ea、投影 inset 0 1px #fff.45 + 0 2px 8px */
body.ng-skin .marquee-wrap {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  min-height: 44px;
  padding: 7px 16px 7px 43px !important;
  box-sizing: border-box;
  overflow: hidden !important;
  border: 1px solid var(--tgt-line) !important;
  border-radius: 16px !important;
  background: var(--tgt-panel) !important;
  background-image: none !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .45),
    0 2px 8px rgba(20, 35, 60, .05) !important;
}

/* 左侧圆点（目标站 inset 21/1113/13/17 → 10×10 @ left 17 top 21） */
body.ng-skin .marquee-wrap::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  top: 21px;
  left: 17px;
  z-index: 2;
  width: 10px;
  min-width: 10px;
  height: 10px;
  min-height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--tgt-btn) !important;
  box-shadow: 0 0 0 5px rgba(106, 70, 147, .11);
  transform: none;
}

/* 圆点右侧竖分割线（目标站 inset 12/1105/12/32，渐变 #e1d4ea） */
body.ng-skin .marquee-wrap::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 32px;
  width: 1px;
  border-radius: 99px;
  background: linear-gradient(180deg, transparent, var(--tgt-line), transparent) !important;
  pointer-events: none;
}

/* 旧标记里的“公告”文字块，目标站没有，直接不渲染 */
body.ng-skin .marquee-tag {
  display: none !important;
}

body.ng-skin .marquee-wrap .marquee {
  position: relative;
  display: block;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: 28px;
  overflow: hidden;
  padding: 0 !important;
  white-space: nowrap;
  animation: none !important;
  transform: none !important;
}

/* 旧的双份 track 结构若还在，必须停掉动画，否则和文本动画打架 */
body.ng-skin .marquee-wrap .marquee-track {
  display: block;
  width: 100%;
  animation: none !important;
  transform: none !important;
}

body.ng-skin .marquee-text {
  display: inline-block;
  min-width: max-content;
  padding: 0 0 0 100% !important;
  overflow: visible;
  color: var(--tgt-ink) !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 21.7px;
  letter-spacing: .5px;
  text-shadow: none;
  white-space: nowrap;
  text-overflow: clip;
  animation: ngNoticeTextScroll var(--ng-notice-duration, 13s) linear infinite;
  will-change: transform;
}

body.ng-skin .marquee-wrap:hover .marquee-text {
  animation-play-state: paused;
}

@keyframes ngNoticeTextScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

html[data-motion="off"] body.ng-skin .marquee-text,
body.ng-skin .marquee-wrap.is-static .marquee-text {
  padding-left: 0 !important;
  animation: none !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body.ng-skin .marquee-text {
    padding-left: 0 !important;
    animation: none !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   4. 图标跑马灯：容器 1180×80，圆标 64，图 56，gap 14
   -------------------------------------------------------------------------- */
body.ng-skin .ng-platform-logo-carousel {
  width: 100%;
  max-width: 1180px;
  height: 80px;
  margin: 8px auto 2px;
  padding: 0 20px;
  box-sizing: border-box;
  overflow: hidden;
}

/* ng-redesign.css 用 #homeView 的 id 权重压过普通类，这里必须带 id + !important */
body.ng-skin #homeView .ng-platform-logo-carousel {
  width: 100% !important;
  max-width: 1180px !important;
  height: 80px;
  margin: 8px auto 2px !important;
  padding: 0 20px !important;
  box-sizing: border-box;
  overflow: hidden;
}

body.ng-skin #homeView .ng-platform-logo-shell {
  width: 100% !important;
  height: 80px !important;
  padding: 0 !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible;
}

body.ng-skin #homeView .ng-platform-logo-viewport {
  width: 100% !important;
  height: 80px !important;
  padding: 5px 0 !important;
  box-sizing: border-box;
  overflow: auto hidden;
}

body.ng-skin #homeView .ng-platform-logo-sequence {
  height: 70px !important;
  padding: 3px 14px 3px 0 !important;
  gap: 14px !important;
  align-items: center;
}

body.ng-skin .ng-platform-logo-link {
  width: 64px !important;
  height: 64px !important;
  padding: 3px;
  box-sizing: border-box;
  border: 1px solid var(--tgt-line);
  border-radius: 50%;
  background: var(--tgt-panel);
  overflow: hidden;
}

body.ng-skin .ng-platform-logo-link img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   5. 分区标题：目标站 .pk16-category-title —— 左对齐 + 左侧 4×28 竖条 + 底部 72×2 短线
      盒模型：margin 20/14 + min-height 44 = 78，网格再 margin-top 12 → 共 90
   -------------------------------------------------------------------------- */
/* 选择器带 #cardsScroll + h2#categoryTitle 三个 id，稳压 ng-redesign 的
   body.ng-skin #homeView #cardsScroll .ng-section-head h2{text-align:left!important} */
body.ng-skin #homeView #cardsScroll .ng-section-head {
  display: block;
  height: auto;
  margin: 0 !important;
  padding: 20px 0 14px !important;
  box-sizing: border-box;
}

body.ng-skin #homeView #cardsScroll .ng-section-head h2#categoryTitle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 44px;
  margin: 0 !important;
  padding: 0 0 0 15px;
  overflow: hidden;
  color: var(--tgt-ink) !important;
  font-size: clamp(24px, 3vw, 30px) !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 6px 18px rgba(36, 69, 126, .085);
}

/* 左侧竖条：4×28，垂直居中贴左边缘 */
body.ng-skin #homeView #cardsScroll .ng-section-head h2#categoryTitle::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 28px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--tgt-btn), #8f5fa8 60%, #a06a3f);
  box-shadow: 0 0 0 4px rgba(106, 70, 147, .07), 0 8px 18px rgba(106, 70, 147, .18);
  transform: translateY(-50%);
}

/* 底部短线：72×2，opacity .62 */
body.ng-skin #homeView #cardsScroll .ng-section-head h2#categoryTitle::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  bottom: 1px;
  left: 16px;
  width: 72px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tgt-btn), #a06a3f, transparent) !important;
  opacity: .62;
  transform: none;
}

/* --------------------------------------------------------------------------
   6. 卡片网格：1140 宽，3 列 372，gap 12
   -------------------------------------------------------------------------- */
/* ng-redesign.css 用 #homeView .cards-scroll 双 id 权重压 padding，这里同样带 id */
body.ng-skin #homeView #cardsScroll {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  /* 目标站 .cards-scroll 高度正好等于内部 section（946），底部不留内边距；
     给固定底栏让位由 main#ngMain 的 padding-bottom:108px 负责 */
  padding: 0 !important;
}

body.ng-skin #cardsSection {
  width: 1180px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box;
}

body.ng-skin #cardGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  /* 目标站 .card-grid 比标题块再低 12：767.48 + 78 + 12 = 857.48 */
  margin-top: 12px;
  width: 100%;
}

/* 卡片本体：372×112，r20，grid 62/160/90 */
body.ng-skin #cardGrid > .card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 62px 160px 90px;
  gap: 13px;
  align-items: center;
  height: 112px;
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--tgt-line);
  border-radius: 20px;
  background: var(--tgt-panel);
  box-shadow: inset 0 0 0 2px var(--tgt-inset), var(--tgt-shadow);
  color: var(--tgt-ink);
  text-decoration: none;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), border-color .18s, box-shadow .18s;
}

body.ng-skin #cardGrid > .card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    var(--tgt-ptl) left top / min(50%, 150px) auto no-repeat,
    var(--tgt-pbr) right bottom / min(47%, 140px) auto no-repeat;
  opacity: .19;
}

body.ng-skin #cardGrid > .card > * {
  position: relative;
  z-index: 1;
}

body.ng-skin #cardGrid > .card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 2px var(--tgt-inset), 0 10px 26px rgba(59, 42, 73, .10);
}

/* 头像 68，双层描边 + 三层阴影 */
body.ng-skin #cardGrid > .card .avatar {
  display: block;
  width: 68px;
  height: 68px;
  box-sizing: border-box;
  border: 2px solid rgba(125, 163, 238, .48);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #edf4ff);
  box-shadow:
    0 0 0 5px rgba(65, 121, 241, .055),
    0 8px 18px rgba(30, 77, 163, .14),
    inset 0 1px rgba(255, 255, 255, .95);
  overflow: hidden;
}

body.ng-skin #cardGrid > .card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* 文案区：160 宽，标题 17/800，描述 13/16.25 两行，整体由卡片 align-items:center 居中
   目标站 .meta 高 57.05 = 19.55 + 5 + 32.5，禁止写 height:100%（会被拉成 78） */
body.ng-skin #cardGrid > .card .meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  height: auto;
}

body.ng-skin #cardGrid > .card .title {
  font-size: 17px;
  font-weight: 800;
  line-height: 19.55px;
  color: var(--tgt-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.ng-skin #cardGrid > .card .desc {
  margin-top: 5px;
  font-size: 13px;
  line-height: 16.25px;
  color: var(--tgt-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 按钮：贴图拉伸，禁止再叠渐变 */
body.ng-skin #cardGrid > .card .go {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  align-self: center;
  width: 90px;
  height: 34px;
  padding: 2px 10px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 999px;
  background-image: var(--tgt-button);
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--tgt-btn);
  color: var(--tgt-cta-text);
  -webkit-text-fill-color: var(--tgt-cta-text);
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  white-space: nowrap;
  overflow: hidden;
}

body.ng-skin #cardGrid > .card .go::before,
body.ng-skin #cardGrid > .card .go::after {
  content: none;
  display: none;
}

body.ng-skin #cardGrid > .card .go:hover {
  filter: brightness(1.08);
}

/* --------------------------------------------------------------------------
   7. 底部导航：1180 宽，5 列，78 高
   -------------------------------------------------------------------------- */
body.ng-skin .ng-bottom-nav {
  width: 1180px;
  max-width: calc(100% - 24px);
  height: 78px !important;
  min-height: 78px !important;
  max-height: 78px;
  left: 50%;
  right: auto;
  bottom: 16px !important;
  transform: translateX(-50%);
  padding: 8px 8px 7px;
  box-sizing: border-box;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.ng-skin .ng-bottom-nav__item {
  height: 63px;
  padding: 2px 3px 1px;
  border-radius: 18px;
}

/* ==========================================================================
   移动端 390：顶栏 366×58，轮播 r14，卡片单列 112×144.8
   ========================================================================== */
@media (max-width: 768px) {
  body.ng-skin .ng-brand-header {
    width: auto;
    max-width: none;
    height: 58px;
    margin: 10px 12px 12px;
  }

  body.ng-skin .ng-brand-header__row {
    padding: 0 13px;
  }

  body.ng-skin .ng-brand-header .brand-logo {
    height: 36px;
    max-height: 36px;
  }

  body.ng-skin .ng-head-cta {
    height: 44px;
    padding: 5px 12px;
  }

  body.ng-skin .ng-head-cta__icon img {
    width: 28px;
    height: 28px;
  }

  body.ng-skin .carousel-wrap {
    width: auto;
    max-width: none;
    margin: 0 10px 10px !important;
    border-radius: 14px !important;
  }

  body.ng-skin .notice-section {
    width: auto;
    max-width: none;
    margin: 7px 0 4px !important;
    padding: 0 8px !important;
  }

  body.ng-skin .marquee-wrap {
    padding: 6px 11px 6px 38px;
  }

  body.ng-skin .marquee-text {
    font-size: 13px;
    line-height: 20.15px;
  }

  body.ng-skin #homeView .ng-platform-logo-carousel {
    width: auto !important;
    max-width: none !important;
    height: 70px;
    margin: 8px 0 2px !important;
    padding: 0 8px !important;
  }

  /* 目标站 390：shell 374×70（padding 7/5 + 1px 边），viewport 364×56，sequence 高 54 */
  body.ng-skin #homeView .ng-platform-logo-shell {
    height: 70px !important;
    padding: 7px 5px !important;
    box-sizing: border-box;
    background: var(--tgt-panel) !important;
    background-image: none !important;
    border: 1px solid var(--tgt-line) !important;
    border-radius: 18px !important;
    overflow: hidden;
  }

  body.ng-skin #homeView .ng-platform-logo-viewport {
    height: 56px !important;
    padding: 1px 0 !important;
  }

  body.ng-skin #homeView .ng-platform-logo-sequence {
    height: 54px !important;
    padding: 3px 6px !important;
    gap: 12px !important;
  }

  body.ng-skin .ng-platform-logo-link {
    width: 48px;
    height: 48px;
    padding: 1px;
    border-color: rgba(225, 212, 234, .345);
    background: rgba(255, 253, 253, .62);
  }

  body.ng-skin .ng-platform-logo-link img {
    width: 44px;
    height: 44px;
  }

  /* 目标站移动端 .cards-scroll 高 1131.17 = section 高，section 不带下外边距 */
  body.ng-skin #cardsSection {
    width: auto !important;
    max-width: none !important;
    margin: 0 10px !important;
    padding: 0 10px !important;
  }

  /* 目标站移动端：.section 顶 380.02 → .card-grid 461.61
     标题块 20+44+14 = 78，网格再 +3.6 = 81.6 */
  body.ng-skin #homeView #cardsScroll .ng-section-head {
    padding: 20px 0 14px !important;
  }

  body.ng-skin #homeView #cardsScroll .ng-section-head h2#categoryTitle {
    min-height: 44px;
    padding-left: 14px;
    font-size: 21px !important;
  }

  body.ng-skin #cardGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 3.6px;
  }

  body.ng-skin #cardGrid > .card {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    justify-items: center;
    height: 144.8px;
    padding: 26px 4px 6px;
    text-align: center;
  }

  body.ng-skin #cardGrid > .card::before {
    background:
      var(--tgt-ptl) left top / min(50%, 114px) auto no-repeat,
      var(--tgt-pbr) right bottom / min(47%, 108px) auto no-repeat;
  }

  body.ng-skin #cardGrid > .card .avatar {
    width: 54px;
    height: 54px;
    box-shadow:
      0 0 0 4.24px rgba(65, 121, 241, .055),
      0 6.85px 15.71px rgba(30, 77, 163, .133),
      inset 0 .62px rgba(255, 255, 255, .59);
  }

  body.ng-skin #cardGrid > .card .meta {
    height: auto;
    align-items: center;
  }

  body.ng-skin #cardGrid > .card .title {
    font-size: 12px;
    line-height: 16.8px;
    max-width: 100%;
  }

  body.ng-skin #cardGrid > .card .desc {
    display: none;
  }

  body.ng-skin #cardGrid > .card .go {
    width: min(76%, 90px);
    min-width: 78px;
    height: 32px;
    padding: 2px 8px;
    font-size: 12.5px;
  }

  body.ng-skin .ng-bottom-nav {
    width: 100%;
    max-width: none;
    left: 0;
    bottom: 0 !important;
    transform: none;
  }

  body.ng-skin .ng-bottom-nav__item {
    height: 63px;
  }
}

/* ≤480：纹理尺寸收紧到 114/108，与目标站一致 */
@media (max-width: 480px) {
  body.ng-skin .ng-brand-header::before {
    background:
      var(--tgt-tl) left top / min(50%, 114px) auto no-repeat,
      var(--tgt-br) right bottom / min(47%, 108px) auto no-repeat;
  }
}
