/* ============================================================
   白日梦 AIGC — 全局基础样式 (base.css)
   深色电影感主题 · 主色调 #e1e0cc / 强调 #dedbc8 / 点缀 #b70000
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  background: #000;
  color: #e1e0cc;
  font-family: "Almarai", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, video { display: block; max-width: 100%; }
ul { list-style: none; }

/* 噪点纹理 */
.bg-noise::before,
.noise-overlay {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.65'/%3E%3C/svg%3E");
}

/* 顶部胶囊导航 */
.nav-pill {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 60;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.2vw, 52px);
  width: min(calc(100vw - 48px), 1680px);
  max-width: none;
  overflow-x: auto;
  padding: 18px clamp(24px, 3vw, 42px);
  border-radius: 0 0 36px 36px;
  background: rgba(0, 0, 0, .94);
  color: rgba(225, 224, 204, .78);
  font-size: clamp(13.5px, 1.305vw, 18px);
  white-space: nowrap;
  scrollbar-width: none;
  backdrop-filter: blur(10px);
}
.nav-pill::-webkit-scrollbar { display: none; }
.nav-pill a { transition: color .2s ease, opacity .2s ease; }
.nav-pill a:hover, .nav-pill a.active { color: #e1e0cc; }
.nav-pill a.active { position: relative; }
.nav-pill a.active::after {
  content: ""; position: absolute; left: 50%; bottom: -8px;
  width: 4px; height: 4px; border-radius: 50%; background: #b70000;
  transform: translateX(-50%);
}
/* 返回主站链接，区别于站内锚点导航 */
.nav-pill a.back-home {
  flex: 0 0 auto;
  color: #fff;
  background: rgba(183, 0, 0, .20);
  border: 1px solid rgba(183, 0, 0, .55);
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 700;
}
.nav-pill a.back-home:hover { background: rgba(183, 0, 0, .36); color: #fff; }

/* 语言切换 */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: clamp(6px, 1.5vw, 15px);
  padding: 5px;
  border: 1px solid rgba(222, 219, 200, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  flex: 0 0 auto;
}
.lang-switch button {
  min-width: 51px; height: 36px; border: 0; border-radius: 999px;
  background: transparent; color: rgba(225, 224, 204, .58);
  font-size: 16.5px; cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.lang-switch button.active { background: #dedbc8; color: #050505; }

a:focus-visible, button:focus-visible {
  outline: 2px solid rgba(222, 219, 200, .8);
  outline-offset: 4px;
}

/* 通用按钮 */
.cta {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 6px 7px 6px 23px;
  border: 0; border-radius: 999px;
  background: #dedbc8; color: #050505; font-weight: 700; cursor: pointer;
  transition: gap .2s ease, transform .2s ease;
}
.cta .arrow {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 999px; background: #000; color: #dedbc8;
  transition: transform .2s ease;
}
.cta:hover { gap: 18px; transform: translateY(-2px); }
.cta:hover .arrow { transform: scale(1.08); }

/* 滚动进入动画 */
.reveal {
  opacity: 0; transform: translateY(28px); filter: blur(8px);
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1),
              transform .9s cubic-bezier(.16, 1, .3, 1),
              filter .9s cubic-bezier(.16, 1, .3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); filter: blur(0); }

/* 页脚 */
.site-footer {
  padding: 64px clamp(16px, 4vw, 52px) 56px;
  border-top: 1px solid rgba(222, 219, 200, .1);
  background: #000;
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .8fr));
  gap: 40px;
}
.footer-brand h3 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 12px; }
.footer-brand p { color: rgba(222, 219, 200, .55); font-size: 13px; line-height: 1.7; max-width: 360px; }
.footer-col h4 {
  color: #dedbc8; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 16px;
}
.footer-col a {
  display: block; color: rgba(222, 219, 200, .6); font-size: 13.5px;
  padding: 6px 0; transition: color .18s ease;
}
.footer-col a:hover { color: #e1e0cc; }
.footer-bottom {
  max-width: 1160px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(222, 219, 200, .08);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  color: rgba(222, 219, 200, .4); font-size: 12px;
}
.footer-legal { display: flex; gap: 14px; }
.footer-legal a:hover { color: #e1e0cc; }

/* 页面通用头部 */
.page-head {
  max-width: 1160px; margin: 0 auto;
  padding: clamp(110px, 13vw, 168px) clamp(16px, 4vw, 40px) 34px;
}
.page-kicker {
  display: inline-block; margin-bottom: 18px;
  color: #dedbc8; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
}
.page-head h1 {
  color: #e1e0cc; font-size: clamp(38px, 7vw, 92px);
  font-weight: 700; line-height: .9; letter-spacing: -.06em;
}
.page-head .lede {
  max-width: 720px; margin-top: 22px;
  color: rgba(222, 219, 200, .68); font-size: clamp(14px, 1.4vw, 17px); line-height: 1.7;
}
.page-head .head-meta {
  margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 22px;
  color: rgba(222, 219, 200, .45); font-size: 12px; text-transform: uppercase;
}
.page-head .head-meta .dot { color: #b70000; }

/* 响应式 */
@media (max-width: 900px) {
  .nav-pill {
    width: calc(100% - 32px);
    justify-content: flex-start;
    gap: 21px;
    padding: 15px 18px;
  }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---- 数据源标记 ---- */
.moke-source-badge {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid rgba(222,219,200,.22);
  background: rgba(8,8,8,.82); backdrop-filter: blur(10px);
  color: rgba(222,219,200,.82); font-size: 11.5px; letter-spacing: .02em;
  cursor: pointer; transition: border-color .2s, color .2s, transform .2s;
}
.moke-source-badge:hover { border-color: rgba(222,219,200,.5); color: #e1e0cc; transform: translateY(-1px); }
.moke-source-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #9a9a8c; box-shadow: 0 0 0 0 rgba(154,154,140,.5);
}
.moke-source-badge[data-state="live"]::before { background: #6fbf8f; box-shadow: 0 0 8px rgba(111,191,143,.8); }
.moke-source-badge[data-state="local"]::before { background: #d6a75c; box-shadow: 0 0 8px rgba(214,167,92,.7); }
.moke-source-badge[data-state="pending"]::before { background: #9a9a8c; }

@media (max-width: 640px) {
  .moke-source-badge { right: 10px; bottom: 10px; font-size: 10.5px; padding: 6px 10px; }
}

/* ---- 轻提示 ---- */
.moke-toast {
  position: fixed; left: 50%; bottom: 36px; z-index: 90;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  max-width: min(88vw, 480px); padding: 11px 18px; border-radius: 999px;
  background: rgba(16,16,16,.94); border: 1px solid rgba(222,219,200,.26);
  backdrop-filter: blur(12px);
  color: #e1e0cc; font-size: 13px; line-height: 1.5; text-align: center;
  transition: opacity .22s ease, transform .3s cubic-bezier(.16,1,.3,1);
}
.moke-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   UI 增强层：滚动进度、光标光晕、入场动画、骨架屏
   ============================================================ */

/* ---- 顶部滚动进度条 ---- */
.moke-progress {
  position: fixed; top: 0; left: 0; z-index: 120;
  width: 100%; height: 2px; pointer-events: none;
  background: transparent;
}
.moke-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #b70000, #e6483a 55%, #dedbc8);
  box-shadow: 0 0 12px rgba(183,0,0,.6);
  transition: width .1s linear;
}

/* ---- 光标跟随光晕（仅桌面 / 非触屏） ---- */
.moke-cursor-glow {
  position: fixed; z-index: 1; top: 0; left: 0;
  width: 460px; height: 460px; margin: -230px 0 0 -230px;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(183,0,0,.16), rgba(183,0,0,.05) 42%, transparent 68%);
  transition: opacity .5s ease;
  will-change: transform;
}
.moke-cursor-glow.on { opacity: 1; }
body[data-force-light] .moke-cursor-glow {
  background: radial-gradient(circle, rgba(183,0,0,.1), transparent 66%);
}

/* ---- 卡片抬升 / 描边光效 ---- */
.lift {
  transition: transform .42s cubic-bezier(.16,1,.3,1), box-shadow .42s, border-color .3s;
  will-change: transform;
}
.lift:hover { transform: translateY(-7px); box-shadow: 0 30px 70px rgba(0,0,0,.5); }

/* ---- 交错入场（配合 .reveal 使用） ---- */
.reveal { transition-delay: var(--reveal-delay, 0ms); }

/* ---- 骨架屏 ---- */
.skeleton {
  position: relative; overflow: hidden; background: #141414;
}
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(222,219,200,.09), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ---- 通用关键帧 ---- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(183,0,0,.42); }
  70% { box-shadow: 0 0 0 12px rgba(183,0,0,0); }
}

/* ---- 页面整体入场 ---- */
main, .subhero, .toolbar, .section-wrap,
.hero-editorial, .article-shell, .features { animation: fadeUp .8s cubic-bezier(.16,1,.3,1) both; }

/* ---- 返回顶部 ---- */
.moke-top {
  position: fixed; right: 16px; bottom: 58px; z-index: 60;
  width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(222,219,200,.22);
  background: rgba(8,8,8,.82); backdrop-filter: blur(10px);
  color: rgba(222,219,200,.8); font-size: 15px;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .28s, transform .34s cubic-bezier(.16,1,.3,1), border-color .2s, color .2s;
}
.moke-top.on { opacity: 1; transform: translateY(0); pointer-events: auto; }
.moke-top:hover { border-color: rgba(222,219,200,.55); color: #e1e0cc; }

@media (max-width: 640px) {
  .moke-top { right: 10px; bottom: 48px; width: 34px; height: 34px; }
  .moke-cursor-glow { display: none; }
}

