/* =========================================================
   仙剑粉丝站 · 精简样式（替代原 123KB common.css）
   只保留首页实际使用的规则 + 新顶栏/视频弹窗样式
   ========================================================= */

/* ---------- 基础重置 ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  font-size: 14px;
  font-family: "Microsoft YaHei", "Adobe Heiti", "Helvetica", sans-serif;
  color: #222;
  line-height: 1.6;
}

a { color: #222; text-decoration: none; }
a:hover { text-decoration: underline; }
img { vertical-align: middle; border: 0; }
ul, ol, li { list-style: none; }
hr { display: block; height: 1px; border: 0; border-bottom: 1px solid #ccc; }

.clearfix { zoom: 1; }
.clearfix::after { content: ""; height: 0; display: block; clear: both; }
.hide { display: none; }

.box_style_02 { box-shadow: 0 0 4px rgba(55, 40, 19, .35); }
.text_style_03 { color: #fff; text-shadow: 0 0 8px #304f3a; }

/* ---------- 全屏背景 ---------- */
#animation_bg {
  position: fixed;
  inset: 0;
  background: url(/img/bg_static.jpg) no-repeat center center;
  background-size: cover;
}

/* ---------- 顶部导航栏（op.gg 风格 · 深色纯文字） ---------- */
#site_header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  z-index: 9970;
}

#global_nav {
  height: 48px;
  padding: 0;
}

#global_nav li:first-child a { padding-left: 35px; }

#global_nav ul { display: flex; height: 48px; }
#global_nav li { display: flex; }

#global_nav li a {
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: #b8c2d4;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  transition: color .2s, background-color .2s;
}

#global_nav li a:hover {
  color: #fff;
  text-decoration: none;
}

/* ---------- LOGO（左下角） ---------- */
#top h1 {
  position: fixed;
  bottom: 50px;
  left: 20px;
  z-index: 10;
}

/* ---------- 左侧弹出面板 ---------- */
#links_content {
  box-sizing: content-box; /* 宽度不含 padding，与原设计一致，保证收起时把手露出 */
  width: 424px;
  height: auto;
  min-height: 300px;
  padding: 15px 0 20px 65px;
  position: fixed;
  top: 160px;
  left: 0;
  background: rgba(255, 255, 255, .75);
  box-shadow: 0 0 8px rgba(32, 59, 89, .5);
  transition: left .5s cubic-bezier(.19, 1, .22, 1);
}

#links_content.collapsed { left: -457px; }

#links_content .tab {
  width: 30px;
  float: right;
  position: relative;
  top: 43px;
}

#links_content .tab a {
  width: 30px;
  height: 228px;
  background: url(/img/links_tab.png) no-repeat left bottom;
  display: block;
}

#links_content.collapsed .tab a { background-position: left top; }

#links_content .content {
  padding: 5px 0;
  float: left;
  width: 374px;
}

#links_content .content hr {
  margin: 5px 0 1px;
  background-color: rgba(204, 204, 204, .4);
  border-bottom-color: rgba(255, 255, 255, .4);
}

#links_content .purchase_link {
  display: inline-block;
  box-shadow: 0 0 8px rgba(32, 59, 89, .5);
}

#links_content .purchase_caption { font-size: 12px; }

#links_content .qr_item {
  display: inline-block;
  width: 155px;
  position: relative;
  top: 13px;
}

#links_content .qr_item img { vertical-align: inherit; }

.linktab_qrlist { margin: 10px 0; }
.linktab_qrlist li { float: right; width: 50%; text-align: left; }
.linktab_qrlist li:first-child { float: left; }

/* ---------- 右侧 Banner + 视频 ---------- */
#news_content {
  position: fixed;
  bottom: 100px;
  right: 0;
}

#news_content .banner {
  margin: 0 20px 10px auto;
  width: 420px;
  text-align: right;
}

#news_content .to_movie {
  margin: 0 20px 20px auto;
  width: 420px;
  text-align: right;
}

/* 视频预览窗：iframe 仅作视觉预览，覆盖层拦截点击 → 弹窗放大播放 */
.bili_preview {
  position: relative;
  display: inline-block;
  width: 253px;
  height: 142px;
  overflow: hidden;
  cursor: pointer;
}

.bili_preview iframe {
  width: 253px;
  height: 142px;
  border: 0;
  display: block;
  pointer-events: none; /* 点击穿透到覆盖层 */
}

.bili_preview .preview_mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(transparent 60%, rgba(0, 0, 0, .55));
  opacity: 0;
  transition: opacity .2s;
}

.bili_preview:hover .preview_mask { opacity: 1; }

.bili_preview .preview_mask span {
  color: #fff;
  font-size: 13px;
  padding: 6px 0 8px;
  letter-spacing: 1px;
}

/* ---------- 视频放大播放弹窗 ---------- */
#video_modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#video_modal[hidden] { display: none; }

#video_modal .vm_box {
  width: min(90vw, 960px);
}

#video_modal iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  background: #000;
}

#video_modal .vm_close {
  position: absolute;
  top: 18px;
  right: 26px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 22px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
}

#video_modal .vm_close:hover { background: rgba(255, 255, 255, .3); }

/* ---------- 页脚 ---------- */
#site_footer {
  width: 100%;
  position: fixed;
  bottom: 8px;
  left: 0;
  z-index: 9970;
}

#site_footer #copyright {
  text-align: center;
  width: 100%;
  padding: 4px 0 0 10px;
  float: left;
  font-size: 14px;
}

#site_footer #copyright a { color: #fff; }

#site_footer #site_footer_r {
  width: 100%;
  margin-left: -110px;
  float: right;
}

#site_footer_r_inner {
  margin-left: 110px;
  padding-right: 10px;
  text-align: right;
}

#site_footer_nav { display: inline-block; vertical-align: middle; }

#site_footer_nav a {
  font-size: 14px;
  color: #fff;
  text-shadow: 0 0 8px #304f3a;
  text-decoration: none;
}

#site_footer_nav a:hover { color: #fff; text-decoration: underline; }
