@charset "utf-8";
/* ============================================================
   原始火龙 · 视觉增强层
   ------------------------------------------------------------
   说明：
   1. 本文件只做「氛围 / 交互 / 质感」增强，不改动任何原有布局尺寸、
      定位与 HTML 结构。
   2. 所有规则均为增量覆盖，删掉 index.html 中对本文件的引用即可
      100% 恢复原始效果。
   ============================================================ */

/* ---------- 1. 全局渲染质感 ---------- */
html {
  scroll-behavior: smooth;               /* 平滑滚动 */
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection {
  background: #b3121a;
  color: #fff;
}

/* 暗金配色滚动条，贴合传奇页游气质 */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: #0b0807;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8a5a1e, #4a2c0d);
  border: 2px solid #0b0807;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #c98a2e, #6a3d10);
}

/* ---------- 2. 首屏电影感：暗角 + 底部柔和过渡 ---------- */
/* 消除视频画面与下方深色板块之间的生硬切割，并压暗四角聚焦主体 */
#Version::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;                  /* 不阻挡下载按钮点击 */
  background:
    radial-gradient(ellipse at 50% 42%, transparent 48%, rgba(0, 0, 0, .30) 100%),
    linear-gradient(to bottom, transparent 80%, #050308 100%);
}

/* ---------- 3. 三个下载按钮：悬浮 + 暖光 + 按压反馈 ---------- */
.navs a {
  transition: transform .28s cubic-bezier(.2, .8, .3, 1), filter .28s ease;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .55));
  will-change: transform;
}
.navs a:hover {
  transform: translateY(-8px) scale(1.02);
  filter: drop-shadow(0 14px 26px rgba(255, 120, 30, .45)) brightness(1.08);
}
.navs a:active {
  transform: translateY(-3px) scale(.99);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5));
}

/* ---------- 4. 章节标题：柔和的金色呼吸光 ---------- */
@keyframes titleBreathe {
  0%, 100% { filter: drop-shadow(0 2px 8px rgba(255, 170, 60, .28)); }
  50%      { filter: drop-shadow(0 2px 18px rgba(255, 190, 80, .55)); }
}
.YZ_title {
  animation: titleBreathe 4s ease-in-out infinite;
}

/* ---------- 5. 滚动入场动画（需 enhance.js 配合） ---------- */
/* 关键：元素「默认完全可见」，只在滚入视口时给一次淡入动画。
   这样即使脚本失效、截图或打印，内容也永远不会消失。 */
@keyframes sectionEnter {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
html.js-ready .YZkj.enter-anim .YZ_title,
html.js-ready .YZkj.enter-anim .YZshow img,
html.js-ready .YZkj.enter-anim iframe {
  animation: sectionEnter .8s cubic-bezier(.2, .7, .3, 1) both;
}
/* 同一区块内错落出场，更有节奏 */
html.js-ready .YZkj.enter-anim .YZshow img,
html.js-ready .YZkj.enter-anim iframe {
  animation-delay: .12s;
}

/* ---------- 5.5 游戏展示区：消除 ad.gif 素材自带的纯黑边断层 ---------- */
/* ad.gif 左右各有约 100px 实黑像素（非透明），与上方满屏地砖的 112.gif
   拼接时形成突兀黑块。用 lighten 混合让纯黑透出 .YZkj 深色底纹，
   游戏画面与金框亮度高于底色，不受影响。 */
.YZkj_04 img[src*="ad.gif"] {
  mix-blend-mode: lighten;
}

/* ---------- 6. 底部版权区质感 ---------- */
.bottom {
  border-top: 1px solid rgba(199, 157, 72, .28);
}
.bottom .STYLE7 {
  color: #9c8556;
  line-height: 1.5;                      /* 收紧行高，避免文字块被容器裁切 */
}
/* 原 HTML 用两个全角空格段落把版权文字往下顶，导致文字贴底、
   备案条被 overflow:hidden 裁掉。移除首个占位段，让整块上移、完整可见。 */
.bottom .STYLE2 > p.STYLE7:first-child {
  display: none;
}

/* ---------- 7. 尊重用户的「减少动态效果」系统设置 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .YZ_title { animation: none; }
  html.js-ready .YZkj.enter-anim .YZ_title,
  html.js-ready .YZkj.enter-anim .YZshow img,
  html.js-ready .YZkj.enter-anim iframe {
    animation: none !important;
  }
}
