/**
 * 曼城版外壳：顶部比分带 + 主导航 + 移动菜单 + 页脚 + 回顶 / 进度条。
 *
 * 首页和内页共用；颜色全部走 theme-vars.css 的 cs06 令牌，
 * 后台「站点设置 → 站点主题」切浅色 / 深色时页头页脚一起换。
 *
 * 类名统一 mc- 前缀，避免和内页 cs06 的 .wrap / .nav / .foot 撞车。
 */

.mc-wrap {
  width: min(1320px, calc(100% - 44px));
  margin: 0 auto;
}

@media (max-width: 640px) {
  .mc-wrap { width: calc(100% - 28px); }
}

/* ============ 顶部比分带 ============ */
.mc-ticker {
  background: var(--cs06-card-2);
  border-bottom: 1px solid var(--cs06-line);
}

.mc-ticker-in {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 40px;
  min-width: 0;
}

.mc-t-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  font-family: "Bahnschrift", "DIN Alternate", "Arial Narrow", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--cs06-ink-title);
}

.mc-t-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cs06-accent-ink);
  animation: mc-pulse 2s infinite;
}

@keyframes mc-pulse {
  70% { box-shadow: 0 0 0 7px rgb(var(--accent-rgb) / 0); }
  100% { box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / 0); }
}

.mc-t-track {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 30px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 30px), transparent);
}

.mc-t-group {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: none;
  padding-right: 24px;
  animation: mc-ticker-scroll 42s linear infinite;
}

.mc-ticker:hover .mc-t-group { animation-play-state: paused; }

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

.mc-t-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  font-size: 12px;
  color: var(--cs06-ink-2);
}

.mc-t-item em {
  font-style: normal;
  font-family: "Bahnschrift", "DIN Alternate", "Arial Narrow", system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--cs06-dim);
  border: 1px solid var(--cs06-line-2);
  padding: 1px 5px;
  border-radius: 3px;
}

.mc-t-item img { width: 17px; height: 17px; object-fit: contain; }
.mc-t-item b { font-weight: 500; }
.mc-t-item b.hl { color: var(--cs06-ink-title); font-weight: 700; }
.mc-t-item s { text-decoration: none; font-family: "Bahnschrift", "DIN Alternate", "Arial Narrow", system-ui, sans-serif; font-size: 12.5px; font-weight: 700; color: var(--cs06-accent-ink); letter-spacing: .02em; }

.mc-t-item .mc-res {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
}

.mc-t-item .mc-res.is-w { background: rgb(67 214 154 / .15); color: #21a56b; }
.mc-t-item .mc-res.is-d { background: rgb(120 130 145 / .14); color: var(--cs06-muted); }
.mc-t-item .mc-res.is-l { background: rgb(255 122 122 / .14); color: #d9534f; }

.mc-t-date {
  flex: none;
  font-family: "Bahnschrift", "DIN Alternate", "Arial Narrow", system-ui, sans-serif;
  font-size: 11px;
  color: var(--cs06-dim);
  letter-spacing: .06em;
  border-left: 1px solid var(--cs06-line-2);
  padding-left: 16px;
}

@media (max-width: 720px) {
  .mc-t-date { display: none; }
  .mc-t-item:nth-child(n + 5) { display: none; }
}

/* ============ 主导航 ============ */
.mc-mast {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--page-bg) 84%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cs06-line-2);
  transition: box-shadow .25s, background .25s;
}

.mc-mast.is-stuck {
  box-shadow: 0 18px 40px -30px rgb(0 0 0 / .9);
  background: color-mix(in srgb, var(--page-bg) 94%, transparent);
}

.mc-mast-in {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 76px;
}

.mc-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.mc-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgb(var(--accent-rgb) / .3));
}

.mc-brand b {
  display: block;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .03em;
  line-height: 1.1;
  color: var(--cs06-ink-title);
}

.mc-nav {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-left: auto;
}

.mc-nav a {
  position: relative;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cs06-muted);
  transition: color .18s;
}

.mc-nav a:hover { color: var(--cs06-ink-title); }
.mc-nav a.on { color: var(--cs06-ink-title); font-weight: 700; }
.mc-nav a.on::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 2px;
  background: var(--cs06-accent-ink);
}

.mc-mast-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 15px;
  border-radius: 6px;
  background: rgb(var(--accent-rgb));
  color: var(--cs06-on-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  transition: transform .18s, filter .18s;
}

.mc-mast-cta:hover { transform: translateY(-1px); filter: brightness(1.06); }
.mc-mast-cta i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .65; }

.mc-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--cs06-line-2);
  border-radius: 8px;
  background: var(--cs06-card);
  margin-left: auto;
  position: relative;
  flex: none;
}

.mc-burger span {
  position: absolute;
  left: 12px;
  width: 17px;
  height: 2px;
  background: var(--cs06-ink);
  transition: .2s;
}

.mc-burger span:nth-child(1) { top: 15px; }
.mc-burger span:nth-child(2) { top: 20px; }
.mc-burger span:nth-child(3) { top: 25px; }
.mc-burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.mc-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mc-burger[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.mc-mnav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--cs06-card);
  border-bottom: 1px solid var(--cs06-line-2);
  padding: 10px 16px 22px;
  box-shadow: 0 28px 40px -26px rgb(0 0 0 / .9);
}

.mc-mnav.open { display: block; }

.mc-mnav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid var(--cs06-line);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--cs06-ink);
}

.mc-mnav a span {
  font-family: "Bahnschrift", "DIN Alternate", "Arial Narrow", system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--cs06-dim);
  font-weight: 700;
}

.mc-mnav .mc-mnav-cta {
  margin-top: 14px;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: rgb(var(--accent-rgb));
  color: var(--cs06-on-accent);
  justify-content: center;
  font-size: 13.5px;
}

@media (max-width: 1080px) {
  .mc-nav { display: none; }
  .mc-burger { display: block; }
  .mc-mast-cta { display: none; }
}

/* ============ 页脚 ============ */
.mc-foot {
  margin-top: 48px;
  background: var(--cs06-card-2);
  border-top: 1px solid var(--cs06-line);
  color: var(--cs06-muted);
}

.mc-foot .mc-wrap { padding: 26px 0 18px; }

.mc-foot-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
}

.mc-foot-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mc-foot-brand img { width: 38px; height: 38px; object-fit: contain; }

.mc-foot-brand b {
  display: block;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .03em;
  color: var(--cs06-ink-title);
}

.mc-foot-intro {
  margin: 14px 0 0;
  max-width: 560px;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--cs06-muted);
}

.mc-foot-links {
  display: flex;
  align-items: baseline;
  gap: 8px 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.mc-foot-links h4 {
  margin: 0;
  flex: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--cs06-ink-2);
}

.mc-fl-row { display: flex; flex-wrap: wrap; gap: 6px 16px; flex: 1; min-width: 0; }
.mc-fl-row a { font-size: 12px; color: var(--cs06-muted); transition: color .18s; }
.mc-fl-row a:hover { color: var(--cs06-accent-ink); }

.mc-foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--cs06-line-2);
  font-size: 11.5px;
  color: var(--cs06-dim);
}

.mc-foot-bottom a { color: var(--cs06-muted); }
.mc-foot-bottom a:hover { color: var(--cs06-accent-ink); }

/* ============ 回顶 / 进度条 ============ */
.mc-to-top {
  position: fixed;
  right: 24px;
  bottom: 26px;
  z-index: 70;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--cs06-line-2);
  background: var(--cs06-card);
  color: var(--cs06-ink-2);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: .22s;
}

.mc-to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.mc-to-top:hover { border-color: var(--cs06-accent-ink); color: var(--cs06-accent-ink); }
.mc-to-top svg { width: 18px; height: 18px; }

.mc-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  width: 0;
  height: 2px;
  background: var(--cs06-accent-ink);
  pointer-events: none;
}

@media (max-width: 640px) {
  .mc-mast-in { height: 64px; gap: 14px; }
  .mc-brand img { width: 32px; height: 32px; }
  .mc-brand b { font-size: 16px; }
  .mc-foot .mc-wrap { padding-top: 22px; }
  .mc-to-top { right: 16px; bottom: 18px; }
}


/* 内页正文：外壳容器留出上下呼吸，别贴着页头开始 */
body.mc-inner .hm-main {
  padding-top: 24px;
  padding-bottom: 48px;
}

@media (max-width: 640px) {
  body.mc-inner .hm-main { padding-top: 16px; padding-bottom: 32px; }
}

/* 内页正文容器：cs06 的内页依赖 .wrap（原来定义在 huangma-chrome.css，换壳后要补回来） */
body.mc-inner .wrap {
  width: min(1240px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  body.mc-inner .wrap { width: calc(100% - 28px); }
}

/* 首页比分带：每场可点详情；直播中 / 未开赛 */
.mc-t-item{text-decoration:none;transition:color .18s}
.mc-t-item:hover b{color:var(--cs06-ink-title)}
.mc-t-item:hover s{color:var(--cs06-accent-ink)}
.mc-t-item .mc-res.is-live{background:rgb(var(--cs06-hot-rgb) / .18);color:var(--cs06-hot-text);width:auto;padding:0 6px;border-radius:999px}
.mc-t-item .mc-res.is-up{background:rgb(var(--accent-rgb) / .10);color:var(--cs06-muted);width:auto;padding:0 6px;border-radius:999px}
.mc-t-empty{padding-left:14px;font-size:12px;color:var(--cs06-muted)}

/* 后台「站点设置 → 背景图片」：根元素画图，body 让出底色。
   （内页 cs06.css 里也有一份，这里补一份给首页 manc-home.css 用） */
html.has-site-bg {
  background-image: var(--site-bg, none);
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

html.has-site-bg body {
  background-color: transparent;
}

html.has-site-bg body::before {
  background-image: none;
}

/* 设了全站背景图时，页脚也让出底色，别把图挡住 */
html.has-site-bg .mc-foot {
  background: transparent;
}
