/* AC Pro 品牌样式:首页 mc_hero(品牌蓝大厅风)/ mc_pulse(喜报条)/ mc_ranking(docs/design/ui-refresh.md §4.1/§4.4)
   通过 ui-default.footer_extra_html 中的 <link> 注入,全站生效。
   全局令牌与换肤规则见同目录 theme.css;本文件一律引用 var(--mc-*) 令牌,
   令牌没有的色值(规范字面值)在各区块顶部以局部变量定义。
   例外:hero 横幅为品牌蓝同族渐变底(2026-08-24 v2,亮/暗主题各自配色但同族,避免深色割裂)。 */

/* ===== §4.1 首页 hero(v2 游戏大厅风:深靛渐变 + 双层极光光斑漂移)===== */

/* 规范字面值(令牌外):大厅深底文字、玻璃卡、金 */
.mc-hero {
  --mc-hero-text: #eef1ff;
  --mc-hero-text-2: rgba(238, 241, 255, .62);
  --mc-hero-glass: rgba(255, 255, 255, .08);
  --mc-hero-line: rgba(255, 255, 255, .14);
  --mc-hero-gold: #ffd166;
}

.mc-hero .section__body {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 2rem 1.1rem;
  border-radius: var(--mc-radius-lg);
  color: var(--mc-hero-text);
  /* 品牌蓝同族渐变底(与主色 --mc-primary 一脉,避免与浅色页面的割裂感)
     + 右上白光 + 左下金光,光斑层放大 140% 缓慢漂移 */
  background:
    radial-gradient(520px 260px at 85% -10%, rgba(255, 255, 255, .22), transparent 70%),
    radial-gradient(460px 260px at 6% 112%, rgba(246, 194, 68, .3), transparent 70%),
    linear-gradient(115deg, #2a3f9e, var(--mc-primary) 55%, #5b6cff);
  background-size: 140% 140%, 140% 140%, 100% 100%;
  animation: mcHeroDrift 14s ease-in-out infinite alternate;
}

@keyframes mcHeroDrift {
  from { background-position: 0% 0%, 0% 100%, 0 0; }
  to { background-position: 70% 45%, 45% 55%, 0 0; }
}

/* 左:logo + 标语横排;右:按钮组 */
.mc-hero__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.mc-hero__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.mc-hero__logo {
  height: 40px;
  width: auto; /* logo.svg 是 128x32 横版,固定宽高比防压扁 */
  flex: none;
  /* logo.svg 是深色文字版,品牌蓝横幅上垫白底圆角成 logo 砖,保证可读 */
  background: rgba(255, 255, 255, .94);
  padding: 5px 12px;
  border-radius: 10px;
  box-sizing: border-box;
  animation: mcFloat 3.5s ease-in-out infinite;
}

@keyframes mcFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.mc-hero__brand-text {
  min-width: 0;
}

/* 品牌行:对外口径「AC Pro · 南昌信奥程老师」;品牌蓝底上白→金渐变字 */
.mc-hero__brand-name {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  background: linear-gradient(90deg, #ffffff, var(--mc-hero-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mc-hero__slogan {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--mc-hero-text-2);
}

.mc-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mc-hero__actions .button {
  margin-bottom: 0; /* 抵消 .button 默认的下外边距,保证按钮组垂直居中 */
}

/* 品牌蓝横幅上的按钮:主按钮反白突出,次按钮玻璃化(双类选择器压过核心 .button.primary) */
.mc-hero .button.primary {
  background: #fff;
  border-color: transparent;
  color: #2f47c8;
}
.mc-hero .button.primary:hover {
  background: #eef1ff;
}
.mc-hero .button:not(.primary) {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}

/* ===== 登录视角:欢迎语 + 等级条 + 数据芯片排 + 任务排 ===== */
.mc-hero__me {
  margin-top: 1.1rem;
}

.mc-hero__hello {
  font-size: 15px;
  font-weight: 600;
}

/* 等级条:Lv 芯片 + 通栏进度 + XP 文本 */
.mc-hero__lvbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.55rem;
  max-width: 620px;
}

.mc-hero__lvchip {
  flex: none;
  padding: 1px 10px;
  border-radius: var(--mc-radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--mc-hero-gold);
  background: rgba(246, 194, 68, .16);
  border: 1px solid rgba(246, 194, 68, .45);
}

.mc-hero__lvbar .mc-hero__progress {
  flex: 1;
  margin: 0;
}

.mc-hero__lvtext {
  flex: none;
  font-size: 12px;
  color: var(--mc-hero-text-2);
}

/* 数据芯片排:AC/徽章/AC豆/连击,玻璃 pill 横排(取代 v1 的五张大数据卡) */
.mc-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.mc-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: var(--mc-radius-pill);
  font-size: 12.5px;
  color: var(--mc-hero-text);
  background: var(--mc-hero-glass);
  border: 1px solid var(--mc-hero-line);
}

.mc-hero__chip b {
  font-size: 14px;
}

.mc-hero__chip--gold b {
  color: var(--mc-hero-gold);
}

/* 任务排:继续闯关(蓝紫光底 + 发光按钮)+ 每周挑战 + 今日目标 */
.mc-hero__tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.mc-hero__task {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 0.9rem;
  border-radius: var(--mc-radius-sm);
  background: var(--mc-hero-glass);
  border: 1px solid var(--mc-hero-line);
}

.mc-hero__task--go {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: linear-gradient(120deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06));
}

.mc-hero__task-main {
  flex: 1;
  min-width: 0;
}

.mc-hero__task-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 13px;
  font-weight: 600;
}

.mc-hero__task-head .n {
  flex: none;
  font-weight: 400;
  color: var(--mc-hero-text-2);
}

.mc-hero__task .mc-hero__progress {
  margin-top: 0.45rem;
}

.mc-hero__task-sub {
  margin-top: 0.35rem;
  font-size: 12px;
  color: var(--mc-hero-text-2);
}

.mc-hero__go-btn {
  flex: none;
  margin: 0;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(255, 255, 255, .45);
}

.mc-hero__go-btn:hover {
  box-shadow: 0 0 22px rgba(255, 255, 255, .65);
}

/* ===== 游客视角:品牌介绍 + 平台亮点三卡(玻璃风)===== */
.mc-hero__guest {
  margin-top: 1.2rem;
}

.mc-hero__guest-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mc-hero-text-2);
}

.mc-hero__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.mc-hero__feature {
  min-width: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--mc-radius-sm);
  background: var(--mc-hero-glass);
  border: 1px solid var(--mc-hero-line);
}

.mc-hero__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--mc-radius-sm);
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.mc-hero__feature-title {
  margin-top: 0.6rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--mc-hero-text);
}

.mc-hero__feature-desc {
  margin-top: 0.3rem;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--mc-hero-text-2);
}

/* 进度条:玻璃轨道 + 蓝金渐变填充 + 滚动条纹 */
.mc-hero__progress {
  height: 6px;
  border-radius: var(--mc-radius-pill);
  background: rgba(255, 255, 255, .16);
  overflow: hidden;
}

.mc-hero__progress-bar {
  height: 100%;
  border-radius: var(--mc-radius-pill);
  background:
    linear-gradient(45deg, rgba(255, 255, 255, .25) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .25) 50%, rgba(255, 255, 255, .25) 75%, transparent 75%),
    linear-gradient(90deg, #7c9aff, var(--mc-hero-gold));
  background-size: 14px 14px, 100% 100%;
  animation: mcBarStripe 0.9s linear infinite;
  transition: width 0.3s ease;
}

@keyframes mcBarStripe {
  from { background-position: 0 0, 0 0; }
  to { background-position: 14px 0, 0 0; }
}

/* 达成状态小徽标(pill + 内联 SVG);深底下用暗色友好配色 */
.mc-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: var(--mc-radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.mc-hero__badge--success {
  background: rgba(82, 196, 26, .22);
  color: #95de64;
}

/* 底部 meta 条:平台数据(count-up)+ 本周冲劲王芯片 */
.mc-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.7rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--mc-hero-line);
  font-size: 12.5px;
  color: var(--mc-hero-text-2);
}

.mc-hero__meta b {
  font-size: 13.5px;
  color: var(--mc-hero-text);
}

.mc-hero__meta-dot {
  color: var(--mc-hero-line);
}

.mc-hero__champ {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 2px 11px 2px 4px;
  border-radius: var(--mc-radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--mc-hero-gold);
  background: rgba(246, 194, 68, .14);
  border: 1px solid rgba(246, 194, 68, .4);
}

.mc-hero__champ img {
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px #f6c244;
  animation: mcFxGold 2s ease-in-out infinite;
}

/* 进行中比赛/作业芯片(meta 条最前,白玻璃风;`.mc-hero a` 前缀压过 theme.css 全局链接色) */
.mc-hero a.mc-hero__ongoing {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--mc-radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .35);
}
.mc-hero a.mc-hero__ongoing:hover {
  background: rgba(255, 255, 255, .26);
  color: #fff;
  text-decoration: none;
}

/* ===== §4.4 首页激励榜:前三 24px 圆形徽标(金/银/铜浅底 + 同色文字) ===== */

/* 规范字面值(令牌外):银牌、铜牌色 */
.mc-rank {
  --mc-rank-silver: #9ca3af;
  --mc-rank-bronze: #b45309;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.mc-rank--1 {
  background: var(--mc-gold-soft);
  color: var(--mc-gold);
}

.mc-rank--2 {
  background: rgba(156, 163, 175, .16);
  color: var(--mc-rank-silver);
}

.mc-rank--3 {
  background: rgba(180, 83, 9, .12);
  color: var(--mc-rank-bronze);
}

/* 其余名次:弱化文字色,保留占位宽度对齐 */
.mc-rank--plain {
  background: transparent;
  color: var(--mc-text-3);
  font-weight: 400;
}

/* ===== 每日签到(hero 按钮组内) ===== */

/* 未签到:表单去掉默认外边距,与按钮组对齐 */
.mc-hero__checkin-form {
  margin: 0;
}

/* 已签到:连击徽标放大到按钮高度,视觉与按钮组齐平 */
.mc-hero__checkin {
  padding: 6px 12px;
  font-size: 13px;
}

/* ===== 迁移账号欢迎卡(mc_home_security.html) ===== */
.mc-welcome .section__body a {
  color: var(--mc-primary);
}

/* hero 暗色变体:暗色主题下 --mc-primary 变浅(#7c9aff),横幅改固定深品牌蓝,保持同族不割裂;
   其余组件一律走 var(--mc-*) 令牌,暗色由 theme.css 整体重映射自动适配。 */
html.theme--dark .mc-hero .section__body {
  background:
    radial-gradient(520px 260px at 85% -10%, rgba(255, 255, 255, .12), transparent 70%),
    radial-gradient(460px 260px at 6% 112%, rgba(246, 194, 68, .22), transparent 70%),
    linear-gradient(115deg, #1e2a63, #2f47c8 55%, #3d4ea8);
  background-size: 140% 140%, 140% 140%, 100% 100%;
}

/* ===== 主导航「评测记录」入口已改为服务端按角色渲染(partials/nav.html 覆盖,
   仅超管/教师可见);此处不再有 CSS 隐藏规则,勿恢复——否则超管/教师也看不到。 ===== */

/* ===== 页脚精简(全站):隐藏「状态 Status / 开发 Development / 支持 Support / 关于 About」
   四个链接列——它们在 ui-default partials/footer.html 里整体包在 .footer__links 行内,
   故一条规则隐藏整行;最底行 .footer__extra-link(品牌文案/版权/语言与主题切换)保留。 ===== */
.footer .footer__links {
  display: none;
}

/* ===== 移动端适配(<=640px,hero 卡/签到按钮/进度条小屏) ===== */
@media screen and (max-width: 640px) {
  .mc-hero .section__body {
    padding: 1.25rem 1rem;
  }

  /* 品牌区与按钮组上下排列,按钮通栏防溢出 */
  .mc-hero__main {
    flex-direction: column;
    align-items: stretch;
  }

  .mc-hero__actions {
    width: 100%;
  }

  .mc-hero__actions .button,
  .mc-hero__checkin-form,
  .mc-hero__checkin-form .button {
    width: 100%;
    text-align: center;
  }

  .mc-hero__checkin {
    justify-content: center;
  }

  /* 任务排(继续闯关/每周挑战/今日目标)单列铺开 */
  .mc-hero__task {
    flex: 1 1 100%;
    min-width: 0;
  }

  .mc-hero__task--go {
    flex-direction: column;
    align-items: stretch;
  }

  .mc-hero__go-btn {
    width: 100%;
    text-align: center;
  }

  /* 平台亮点三卡小屏单列 */
  .mc-hero__features {
    grid-template-columns: 1fr;
  }

  .mc-hero__logo {
    height: 32px;
  }

  .mc-hero__brand-name {
    font-size: 17px;
  }

  /* 冲劲王芯片小屏不右挤,回行靠左 */
  .mc-hero__champ {
    margin-left: 0;
  }
}
/* 隐藏改密页"You haven't set an email."警告:迁移账号用 @*.local 占位邮箱,
   该警告对少儿用户是噪音且未汉化。页面级选择器,不影响其它页面。 */
.page--home_security blockquote.warn { display: none; }
/* 公开注册已关闭:隐藏导航「注册」按钮(服务端另有 302 兜底,见 mc-brand index.js) */
.nav__list--secondary a[href="/register"], .nav__list--secondary a.nav__item--round[href="/register"] { display: none; }

/* ===== 客观题答题卡导航(题目页右侧栏 #problem-navigation,核心 problem_detail.page.tsx 注入):
   核心样式为比赛单题号(1/2/3)设计,格子固定 1.5rem 见方;初赛真题编号是「1-1」~「3-10」,
   最长 4 字符,固定宽放不下导致折行出框。此处放开为按内容自适应宽度、禁止折行、字号略降。
   作用域限定 #problem-navigation,不影响比赛页同名的 .contest-problems。 ===== */
#problem-navigation .contest-problems {
  width: auto;
  margin: 0.5rem 1rem;
  grid-template-columns: repeat(auto-fill, minmax(2.1rem, 1fr));
  column-gap: 0.375rem;
  row-gap: 0.5rem;
}
#problem-navigation .contest-problems > a {
  width: auto;
  min-width: 2.1rem;
  padding: 0 0.3rem;
  white-space: nowrap;
  font-size: 0.8125rem;
}

/* ===== 洛谷式难度标签(2026-08-18,与 mc-brand/templates/mc_difficulty.html 配套):
   文字着色不加底色(对齐洛谷题目列表样式);档位 0 未评定灰,1-8 红橙黄绿青蓝紫黑。
   黄档文字用 #eab308(洛谷底色 #ffc116 直接当文字在白底上对比度太低,略加深);
   底色版同套色值在 gamify.css 难度彩条(.mc-diff--N)。 ===== */
.mc-diff-tag { font-weight: 600; white-space: nowrap; }
.mc-diff-tag--0 { color: #8f959e; }
.mc-diff-tag--1 { color: #fe4c61; }
.mc-diff-tag--2 { color: #f39c11; }
.mc-diff-tag--3 { color: #eab308; }
.mc-diff-tag--4 { color: #52c41a; }
.mc-diff-tag--5 { color: #13c2c2; }
.mc-diff-tag--6 { color: #3498db; }
.mc-diff-tag--7 { color: #9d4dcf; }
.mc-diff-tag--8 { color: #0e1d69; }
/* 暗色主题:黑档近黑文字在深底上看不清,remap 为浅靛 */
html.theme--dark .mc-diff-tag--8 { color: #aab4e8; }
/* 难度列放宽:核心 col--difficulty 固定 70px(training_detail/problem_main.page.styl),
   放不下洛谷式文字标签(最长 NOI/NOI+/CTS),放宽到 7.5rem */
.page--training_detail .col--difficulty,
.page--problem_main .col--difficulty,
.page--problem_category .col--difficulty { width: 7.5rem; }

/* ===== 徽章 chip 动效(全局版,2026-08-24)=====
   核心 user.badge 第 4 段特效名由 mc-gamify syncCoreBadge 写入,
   mc-brand components/user.html 覆盖模板据此给 chip 加 mc-fx-* 类(讨论区/记录等核心页面生效)。
   关键帧与 mc-gamify gamify.css 的 mc-fx-* 同一定义,两处同步修改。 */
.user-profile-badge[class*="mc-fx-"] {
  position: relative;
  overflow: hidden;
}
.user-profile-badge.mc-fx-gold::after,
.user-profile-badge.mc-fx-frost::after,
.user-profile-badge.mc-fx-violet::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -70%;
  width: 45%;
  height: 180%;
  transform: skewX(-20deg);
  animation: mcFxShine 2.4s ease-in-out infinite;
}
.user-profile-badge.mc-fx-gold::after { background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.8), transparent); }
.user-profile-badge.mc-fx-frost::after { background: linear-gradient(105deg, transparent, rgba(190, 225, 255, 0.9), transparent); }
.user-profile-badge.mc-fx-violet::after { background: linear-gradient(105deg, transparent, rgba(230, 200, 255, 0.85), transparent); }
.user-profile-badge.mc-fx-gold { animation: mcFxGold 1.8s ease-in-out infinite; }
.user-profile-badge.mc-fx-frost { animation: mcFxFrost 2.4s ease-in-out infinite; }
.user-profile-badge.mc-fx-violet { animation: mcFxViolet 2.2s ease-in-out infinite; }
.user-profile-badge.mc-fx-rainbow {
  box-shadow: 0 0 6px 2px rgba(246, 194, 68, 0.5);
  animation: mcFxRainbow 3s linear infinite;
}
.user-profile-badge.mc-fx-flame { animation: mcFxFlame 1.1s ease-in-out infinite; }
.user-profile-badge.mc-fx-rare { animation: mcFxRare 2.2s ease-in-out infinite; }
.user-profile-badge.mc-fx-epic { animation: mcFxEpic 2s ease-in-out infinite; }
@keyframes mcFxShine {
  0% { left: -70%; }
  55%, 100% { left: 140%; }
}
@keyframes mcFxGold {
  0%, 100% { box-shadow: 0 0 3px 1px rgba(246, 194, 68, 0.55); }
  50% { box-shadow: 0 0 10px 3px rgba(246, 194, 68, 0.95); }
}
@keyframes mcFxFrost {
  0%, 100% { box-shadow: 0 0 3px 1px rgba(91, 143, 249, 0.4); }
  50% { box-shadow: 0 0 10px 3px rgba(140, 190, 255, 0.9); }
}
@keyframes mcFxViolet {
  0%, 100% { box-shadow: 0 0 3px 1px rgba(146, 84, 222, 0.45); }
  50% { box-shadow: 0 0 10px 3px rgba(180, 120, 255, 0.9); }
}
@keyframes mcFxRainbow {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}
@keyframes mcFxFlame {
  0%, 100% { box-shadow: 0 0 4px 1px rgba(250, 84, 28, 0.55); transform: scale(1); }
  45% { box-shadow: 0 0 12px 4px rgba(255, 120, 40, 0.95); transform: scale(1.08); }
  70% { box-shadow: 0 0 7px 2px rgba(250, 84, 28, 0.7); transform: scale(1); }
}
@keyframes mcFxRare {
  0%, 100% { box-shadow: 0 0 2px 1px rgba(100, 160, 255, 0.25); }
  50% { box-shadow: 0 0 7px 2px rgba(100, 160, 255, 0.6); }
}
@keyframes mcFxEpic {
  0%, 100% { box-shadow: 0 0 3px 1px rgba(146, 84, 222, 0.4); }
  50% { box-shadow: 0 0 9px 3px rgba(146, 84, 222, 0.85); }
}

/* ===== 首页 AC 喜报条(mc_pulse,2026-08-24 瘦身版):单行横向无缝滚动,悬停暂停 ===== */
.mc-pulse .section__body.mc-pulse__strip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 38px;
  padding: 0 1rem;
  overflow: hidden;
}
.mc-pulse__strip-icon {
  flex: none;
  font-size: 15px;
}
.mc-pulse__marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.mc-pulse__marquee-inner {
  display: inline-flex;
  white-space: nowrap;
  animation: mcMarquee 30s linear infinite;
}
.mc-pulse__marquee:hover .mc-pulse__marquee-inner {
  animation-play-state: paused;
}
@keyframes mcMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.mc-pulse__item {
  margin-right: 2.5rem;
  font-size: 12.5px;
  color: var(--mc-text-2);
}
.mc-pulse__item b {
  color: var(--mc-text);
}
.mc-pulse__item-ac {
  padding: 0 4px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--mc-gold);
}
.mc-pulse__item i {
  font-style: normal;
  margin-left: 0.35rem;
  font-size: 12px;
  color: var(--mc-text-3);
}

/* 减弱动效偏好:关闭全部装饰性动画 */
@media (prefers-reduced-motion: reduce) {
  .mc-hero .section__body,
  .mc-hero__logo,
  .mc-hero__progress-bar,
  .mc-hero__champ img,
  .mc-pulse__marquee-inner,
  .user-profile-badge[class*="mc-fx-"],
  .user-profile-badge[class*="mc-fx-"]::after {
    animation: none !important;
  }
}

/* ---- 题目页信息卡 + 侧栏操作按钮 + 内容分节(2026-08-26,参考新样式)---- */
/* 信息卡:2×2 统计芯片(难度/通过率/尝试/已通过) */
.mc-pinfo .section__body { padding: 14px 16px; }
.mc-pinfo__chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.mc-pinfo__chip {
    border-radius: 10px;
    padding: 8px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.mc-pinfo__chip--diff { background: #f3f0ff; }
.mc-pinfo__chip--rate { background: #eef6ff; }
.mc-pinfo__chip--try  { background: #f0f4ff; }
.mc-pinfo__chip--ac   { background: #f0fdf4; }
html.theme--dark .mc-pinfo__chip--diff { background: rgba(139, 92, 246, .16); }
html.theme--dark .mc-pinfo__chip--rate { background: rgba(56, 189, 248, .13); }
html.theme--dark .mc-pinfo__chip--try  { background: rgba(124, 154, 255, .13); }
html.theme--dark .mc-pinfo__chip--ac   { background: rgba(34, 197, 94, .13); }
.mc-pinfo__chip-label { font-size: 11px; color: var(--mc-text-3); }
.mc-pinfo__chip-val { font-size: 15px; font-weight: 700; color: var(--mc-text); line-height: 1.3; }
.mc-pinfo__chip-val .mc-diff-tag { font-size: 13px; }
/* 信息行:ID/类型/时限/内存/上传者 */
.mc-pinfo__rows { margin: 6px 0 0; }
.mc-pinfo__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 7px 2px;
    border-top: 1px dashed var(--mc-border);
    font-size: 13px;
}
.mc-pinfo__row dt { color: var(--mc-text-3); flex: none; }
.mc-pinfo__row dd { margin: 0; font-weight: 500; text-align: right; }
/* 标签药丸 */
.mc-pinfo__tags { margin-top: 4px; border-top: 1px dashed var(--mc-border); padding-top: 8px; }
.mc-pinfo__tags-label { font-size: 12px; color: var(--mc-text-3); }
.mc-pinfo__tags .problem__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
}
.mc-pinfo__tags .problem__tag { list-style: none; margin: 0; }
.mc-pinfo__tags .problem__tag-link {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--mc-primary-soft);
    color: var(--mc-primary);
    font-size: 12px;
}
/* 侧栏操作项按钮化 */
.section--problem-sidebar .menu__item { margin-bottom: 6px; }
.section--problem-sidebar .menu__item .menu__link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border: 1px solid var(--mc-border);
    border-radius: 10px;
    background: var(--mc-card);
    transition: border-color .15s, background .15s;
}
.section--problem-sidebar .menu__item .menu__link:hover {
    border-color: var(--mc-primary);
    text-decoration: none;
}
.section--problem-sidebar .menu__item .menu__link.highlight {
    background: var(--mc-primary-soft);
    border-color: transparent;
    color: var(--mc-primary);
    font-weight: 600;
}
.section--problem-sidebar .menu__item button.menu__link { cursor: pointer; font-size: inherit; }
.section--problem-sidebar .menu__item [name="problem-sidebar__rejudge"] {
    background: #fef9c3;
    border-color: transparent;
    color: #854d0e;
    font-weight: 600;
}
html.theme--dark .section--problem-sidebar .menu__item [name="problem-sidebar__rejudge"] {
    background: rgba(250, 204, 21, .16);
    color: #fde047;
}
/* 内容分节标题:主色竖条(样例面板的「输入数据 N」除外) */
.problem-content h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.5em;
}
.problem-content h2::before {
    content: '';
    width: 4px;
    height: 1em;
    border-radius: 2px;
    background: var(--mc-primary);
    flex: none;
}
.problem-content .sample h2 { margin-top: 0; font-size: 15px; }
.problem-content .sample h2::before { display: none; }
/* 样例面板工具条按钮(Copy/填充到自测)小按钮化;填充到自测常态可见(核心只在 IDE 模式显示) */
.problem-content .code-toolbar > .toolbar { background: transparent; padding-right: 4px; }
.problem-content .code-toolbar .toolbar-item a {
    font-size: 12px !important;
    border: 1px solid var(--mc-border) !important;
    border-radius: 6px !important;
    padding: 1px 10px !important;
    background: var(--mc-card) !important;
    color: var(--mc-primary);
}
.problem-content .scratchpad-fill-button { display: inline-block; }
/* 样例面板两处遮挡修复(2026-08-27,ABC163B 等长数据行题已踩):
   ① 核心 .sample>.toolbar 定位 top:3.7875em 正好压在数据第二行上 → 提到与「输入数据 N」标题同行;
   ② prism 主题的 code 是 white-space:pre,长数据行不换行会横向溢出,pre 底部滚动条把数据再遮一半 → 强制换行 */
.problem-content .sample > .toolbar { top: 0.55em !important; }
.problem-content .sample pre > code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
