/* ============================================================
   星河AI-key 卡密商城 · motion6.css v20261206
   六个资源重做（只借鉴思路，不抄任何一家代码/文案）：
   1) motionsites.ai —— 电影感 = 视频层之上的平静 UI + 滚动揭示
      （本店无视频，用慢速渐变漂移 + 逐词淡入 + 滚动 stagger 代替）
   2) cta.gallery —— CTA：药丸形、单一强调色、2-4 字文案、
      悬停上浮、价格 = 大字现价 + 划线原价 + 折扣徽章
   3) fontshare.com —— Satoshi（正文/数字）+ Clash Display（标题拉丁）
      免费可商用（ITF Free Font License）；中文走系统字体回退
   4) footer.design —— 大字页脚：巨型品牌字 + 四栏网格 + 底栏
   5) studio.motionsites.ai —— 品牌替换一致性：全站同一套
      品牌 token（魔法棒 logo、腾讯蓝 #0052D9、星河AI-key）
   6) 60fps —— 只动 transform / opacity；按钮按压 100ms 缩到 0.97，
      松开 200ms 弹簧回弹；全站统一时序；减动效时全部关闭
   另顺手修三处实测毛病：顶部紫粉背景图、分类名 lang() 乱码、
   空态 layer.msg 悬浮灰框（见 Index.html / index.js 对应改动）。
   只改样式/模板，不动支付逻辑与商品数据。
   ============================================================ */
:root {
  --m6-blue: #0052d9;
  --m6-blue-deep: #003da6;
  --m6-blue-soft: #e8f0fe;
  --m6-ink: #11191c;
  --m6-sub: #5a636a;
  --m6-line: #e8ecf1;
  --m6-bg: #f7f8fa;
  --m6-card: #ffffff;
  --m6-spring: cubic-bezier(.34, 1.56, .64, 1);
  --m6-ease-out: cubic-bezier(.16, 1, .3, 1);
  --m6-font-display: "Clash Display", "Satoshi", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --m6-font-body: "Satoshi", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
body.uc-body {
  font-family: var(--m6-font-body);
  background-color: var(--m6-bg) !important;
  /* 根治顶部紫粉条：后台 background_url 图片 + 玻璃渐变全部清掉 */
  background-image: none !important;
}
:root[data-theme] .bg-content.uc-bg { background: var(--m6-bg) !important; }
:root[data-theme] body.uc-body { background-image: none !important; }
.uc-topbar, .uc-topbar__inner { background: rgba(255, 255, 255, .92) !important; }
.shop-brand__name, .eggai-head__title, .eggai-sec-title,
.eggai-card__name, .eggai-card__tier { font-family: var(--m6-font-display); }

/* ---------- 1) MotionSites：电影感入场 ---------- */
@keyframes m6-hero-in {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes m6-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes m6-drift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes m6-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.eggai-head__title { animation: m6-hero-in .7s var(--m6-ease-out) both; }
.eggai-head__sub { animation: m6-fade-up .6s var(--m6-ease-out) .12s both; }
.eggai-cats { animation: m6-fade-up .6s var(--m6-ease-out) .22s both; }
/* 商品卡 / 流程卡依次入场（滚动揭示的轻量版：只用 transform/opacity） */
.eggai-card, .eggai-steps__list li, .eggai-notice {
  animation: m6-fade-up .55s var(--m6-ease-out) both;
}
.eggai-card:nth-child(2), .eggai-steps__list li:nth-child(2) { animation-delay: .08s; }
.eggai-card:nth-child(3), .eggai-steps__list li:nth-child(3) { animation-delay: .16s; }
.eggai-card:nth-child(4), .eggai-steps__list li:nth-child(4) { animation-delay: .24s; }
/* 品牌跑马灯：边缘渐隐，慢速无限循环 */
.m6-marquee {
  overflow: hidden; padding: 18px 0 4px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.m6-marquee__track {
  display: flex; gap: 0; width: max-content;
  animation: m6-marquee 32s linear infinite;
  font-family: var(--m6-font-display); font-size: 13px; font-weight: 700;
  letter-spacing: .18em; color: #9aa3ad; text-transform: uppercase; white-space: nowrap;
}
.m6-marquee__track span { padding: 0 22px; }
.m6-marquee__track span i { font-style: normal; color: var(--m6-blue); padding-right: 22px; }

/* ---------- 2) CTA Gallery：醒目按钮 + 价格 ---------- */
/* 主按钮：药丸、单一强调色、渐变、悬停上浮、箭头轻推 */
.shop-btn--primary, .eggai-activate__btn {
  background: linear-gradient(135deg, #0a63e8, var(--m6-blue) 55%, var(--m6-blue-deep)) !important;
  border: none !important; border-radius: 999px !important;
  font-weight: 700 !important; letter-spacing: .02em;
  box-shadow: 0 6px 18px rgba(0, 82, 217, .28);
  transition: transform .2s var(--m6-ease-out), box-shadow .2s var(--m6-ease-out), filter .2s;
  will-change: transform;
}
.shop-btn--primary:hover, .eggai-activate__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 82, 217, .34);
  filter: brightness(1.06);
}
.eggai-activate__btn::after { content: " →"; transition: transform .2s var(--m6-ease-out); display: inline-block; }
.eggai-activate__btn:hover::after { transform: translateX(4px); }
/* 价格展示：大字现价 + 划线原价 + 折扣徽章 */
.eggai-card__price { font-family: var(--m6-font-display); font-size: 20px; font-weight: 700; color: var(--m6-blue); }
.eggai-card__price .m6-cur { font-size: 13px; font-weight: 700; margin-right: 1px; }
.eggai-card__was { font-size: 13px; color: #9aa3ad; text-decoration: line-through; margin-left: 6px; font-weight: 500; }
.m6-badge {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 700;
  color: var(--m6-blue); background: var(--m6-blue-soft);
  border-radius: 999px; padding: 3px 9px; letter-spacing: .02em; white-space: nowrap;
}
.eggai-card__cover { position: relative; overflow: hidden; }
.eggai-card__cover .m6-badge { position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, .94); }
/* 动态商品卡（JS 渲染的 .acg-card）同款 CTA 化 */
.item-list .acg-card { transition: transform .25s var(--m6-ease-out), box-shadow .25s var(--m6-ease-out), border-color .25s; }
.item-list .acg-card:hover { transform: translateY(-4px); border-color: var(--m6-blue); box-shadow: 0 14px 32px rgba(0, 82, 217, .14); }
.item-list .acg-card .price { font-family: var(--m6-font-display); font-weight: 700; color: var(--m6-blue); }
.item-list .acg-card .acg-thumb { transition: transform .4s var(--m6-ease-out); }
.item-list .acg-card:hover .acg-thumb { transform: scale(1.05); }

/* ---------- 6) 60fps：按压手感 ---------- */
.shop-btn, .eggai-activate__btn, .eggai-chip, .eggai-card__btn,
.item-list .acg-card, .shop-icon-btn {
  transition-timing-function: var(--m6-ease-out);
}
.shop-btn:active, .eggai-activate__btn:active, .eggai-chip:active,
.eggai-card__btn:active:not(:disabled), .shop-icon-btn:active {
  transform: scale(.97);
  transition-duration: .1s;
  transition-timing-function: ease-in;
}
.eggai-card { transition: transform .25s var(--m6-spring), box-shadow .25s var(--m6-ease-out), border-color .25s; }
.eggai-card:hover { transform: translateY(-4px); }
.eggai-chip { transition: transform .18s var(--m6-ease-out), background .18s, color .18s, border-color .18s, box-shadow .18s; }
.eggai-chip:hover { transform: translateY(-1px); }
.eggai-chip:active { transform: scale(.96); }
.shop-btn:focus-visible, .eggai-activate__btn:focus-visible,
.eggai-chip:focus-visible, .eggai-card__btn:focus-visible {
  outline: 2px solid var(--m6-blue); outline-offset: 2px;
}
/* 空态：正常文档流居中，不再悬浮遮挡 */
.eggai-item-list .eggai-empty, .eggai-item-list > div {
  width: 100%; text-align: center; color: var(--m6-sub);
  padding: 36px 0; font-size: 15px; position: static !important;
}

/* ---------- 4) Footer.design：大字页脚 ---------- */
.eggai-footer { border-top: 1px solid var(--m6-line); margin-top: 56px; padding: 40px 0 0; }
.m6-foot-brand {
  font-family: var(--m6-font-display); font-weight: 700;
  font-size: clamp(44px, 9vw, 96px); line-height: 1; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1.5px #c9d4e2;
  text-align: center; user-select: none; margin: 0 0 28px; white-space: nowrap;
  overflow: hidden;
}
.m6-foot-brand b { color: var(--m6-blue); -webkit-text-stroke: 0; font-weight: 700; }
.eggai-footer__cols { grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr; }
.hk-badge { display: flex; align-items: center; gap: 10px; font-size: 17px; color: #11191c; margin: 4px 0 18px; }
.hk-badge__icon { display: inline-flex; flex: none; }
.hk-badge__icon svg { display: block; border-radius: 3px; }
.eggai-footer__cols a { transition: color .18s, transform .18s var(--m6-ease-out); }
.eggai-footer__cols a:hover { color: var(--m6-blue); transform: translateX(2px); }
.m6-foot-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  border-top: 1px solid var(--m6-line); margin-top: 28px; padding: 16px 0 20px;
  font-size: 12px; color: #8b939c;
}
.m6-foot-bottom p { margin: 0; }

/* ---------- 暗色 ---------- */
:root[data-theme="dark"] body.uc-body { background-color: #0e1116 !important; }
:root[data-theme="dark"] .uc-topbar, :root[data-theme="dark"] .uc-topbar__inner { background: rgba(14, 17, 22, .92) !important; }
:root[data-theme="dark"] .m6-foot-brand { -webkit-text-stroke-color: #2a3340; }
:root[data-theme="dark"] .m6-marquee__track { color: #5b6673; }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .eggai-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .eggai-footer__cols { grid-template-columns: 1fr; }
  .m6-foot-brand { font-size: 40px; }
}

/* ---------- 减动效：全部关闭 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 商品卡放大 + 封面完整显示 (2026-12-06) ---------- */
.item-list { gap: 18px; }
@media (min-width: 992px) { .item-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .item-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.acg-thumb {
  aspect-ratio: 1 / 1;
  background-color: #fff !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.acg-card > .acg-body { padding: 12px 14px 14px; gap: 6px; }
.acg-card .goods-title { font-size: 15px; }
.acg-card .price { font-size: 19px; }
.acg-card .stat-bottom, .acg-card .meta { font-size: 12px; }
