/* 仿 cg.188wm.cn/index.html 首屏版式
   原站骨架：#Version(946h) > #Flash(视频,z1) + #Header(静帧)
             + #Download2(左上品牌图) + #Download(5个入口) + .musicbox + 雪花
   这里保留同样的层级与坐标，改成 1920x1080 等比缩放，修掉原站已失效的资源。
   品牌角标与 5 个入口的视觉均已重做（深紫金），不再引用原站图片素材。 */

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #060b1a; }
body { font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }

/* 舞台外的留白用同画面的模糊底，避免缩放后出现黑边 */
.backdrop {
  position: fixed; inset: -48px; z-index: 0;
  background: url("hero.jpg") center / cover no-repeat;
  filter: blur(34px) brightness(.30) saturate(.85);
}

#stage {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform: translate(-50%, -50%); transform-origin: center center;
  overflow: hidden; z-index: 1;
  box-shadow: 0 0 90px rgba(0, 0, 0, .65);
}

/* --- 原画两层 --- */
#Header { position: absolute; inset: 0; z-index: 0; }
#Header img { display: block; width: 100%; height: 100%; object-fit: cover; }
#Flash { position: absolute; inset: 0; z-index: 1; }
#Flash video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* --- 飘落花瓣 / 星点（原站 snowfall.jquery.js，那个 flake.png 已 404，这里用 Canvas 重做） --- */
#petals { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

/* --- 左上品牌角标：原站 left:50%; margin-left:-850px = 1920 下的 x=110, top:10 --- */
#Download2 { position: absolute; top: 10px; left: 110px; width: 470px; z-index: 1500; }
#Download2 .erweima2 img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 30, 70, .22));
}
#Download2 .erweima2 { transition: transform .3s ease; }
#Download2 .erweima2:hover { transform: scale(1.03); }

/* --- 五个入口：坐标沿用原站（width:762 / top:550 / 间距 45 / 118x328），
       样式完全重做：半透明深紫金「玻璃玉牌」，纯 CSS + 真实文本，
       不引用原站 pic_download.png；底色透光，后面的动态视频能透出来 --- */
#Download { width: 770px; position: absolute; top: 548px; left: 50%; margin-left: -385px; z-index: 1500; }
/* 只垫极淡一层暗晕托住文字，不再把视频压暗 */
#Download::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -90px; right: -90px; top: -34px; bottom: -34px;
  background: radial-gradient(ellipse at center,
              rgba(8, 4, 22, .20) 0%, rgba(8, 4, 22, .10) 52%, rgba(8, 4, 22, 0) 80%);
}
#Download ul { list-style: none; display: flex; gap: 45px; }
#Download li { position: relative; }

/* 玉牌本体：低透明度深紫玻璃 + 香槟金细边，视频可透出；
   文字靠深色描边与金色辉光保证在明亮画面上依然清晰 */
#Download li a {
  position: relative; display: block; width: 118px; height: 328px;
  border-radius: 10px; overflow: hidden; text-decoration: none;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 214, 130, .12), transparent 62%),
    linear-gradient(180deg, rgba(58, 32, 84, .26), rgba(20, 11, 40, .20) 54%, rgba(44, 25, 66, .28));
  border: 1px solid rgba(238, 196, 112, .72);
  box-shadow: inset 0 0 22px rgba(170, 110, 230, .12),
              0 8px 22px rgba(3, 8, 26, .38);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
/* 顶部挂环，做「令牌」而不是书签 */
#Download li a::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 46px; height: 11px; border-radius: 0 0 9px 9px;
  background: linear-gradient(180deg, rgba(255, 234, 184, .92), rgba(195, 140, 52, .88));
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
/* hover：一道金光自上而下扫过（替代源站 sprite 下半部深蓝态） */
#Download li a::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(168deg, transparent 34%, rgba(255, 240, 200, .24) 50%, transparent 64%);
  transform: translateY(-105%); transition: transform .65s ease;
}
#Download li a:hover {
  transform: translateY(-10px); border-color: #ffe0a0;
  box-shadow: inset 0 0 22px rgba(170, 110, 230, .16),
              0 0 26px rgba(255, 196, 90, .40), 0 16px 32px rgba(3, 8, 26, .55);
}
#Download li a:hover::after { transform: translateY(105%); }

/* 编号金牌（半透明，不挡画面） */
#Download .pnum {
  position: absolute; top: 28px; left: 50%; transform: translateX(-50%);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font: 700 16px/1 Georgia, serif; color: #3a2408;
  background: radial-gradient(circle at 34% 26%, rgba(255, 243, 202, .92),
              rgba(229, 183, 96, .82) 62%, rgba(168, 118, 44, .72));
  box-shadow: 0 2px 10px rgba(0, 0, 0, .38), inset 0 1px 2px rgba(255, 255, 255, .6);
}
/* 竖排主标题：真实文本 + 深色描边，透明底上也不糊 */
#Download .ptitle {
  position: absolute; top: 94px; left: 50%; transform: translateX(-50%);
  writing-mode: vertical-rl; text-orientation: upright; white-space: nowrap;
  font: 700 27px/1.2 "STKaiti", "KaiTi", "楷体", "Microsoft YaHei", serif;
  letter-spacing: 4px; color: #ffe6ae;
  text-shadow:
    0 0 3px rgba(8, 4, 20, .95), 1px 1px 0 rgba(8, 4, 20, .95),
    -1px -1px 0 rgba(8, 4, 20, .95), 0 0 10px rgba(8, 4, 20, .9),
    0 0 16px rgba(255, 196, 90, .70);
}
/* 竖排小字 */
#Download .psub {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  writing-mode: vertical-rl; text-orientation: upright; white-space: nowrap;
  font: 400 13px/1.2 "Microsoft YaHei", sans-serif;
  letter-spacing: 4px; color: #f2e6ff;
  text-shadow:
    0 0 3px rgba(8, 4, 20, .95), 1px 1px 0 rgba(8, 4, 20, .9),
    -1px -1px 0 rgba(8, 4, 20, .9), 0 0 8px rgba(8, 4, 20, .85);
}
/* 底部金线 */
#Download .pline {
  position: absolute; left: 14px; right: 14px; bottom: 18px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 130, .8), transparent);
}

/* --- 音乐按钮：原站 .musicbox 200x200 靠左上，这里收成圆形唱片。
       2026-11-06 按用户「左移一点，别让音乐图标挡住」从 right:36px 左移到
       right:400px（整页 x≈1458~1520）：右侧三列竖排文案从 x≈1600 起，
       书法大字从 y≈183 起，这个位置两不碰，也不压品牌角标和玉牌。 --- */
#musicbox {
  position: absolute; top: 26px; right: 400px; z-index: 99999;
  width: 62px; height: 62px; border-radius: 50%;
  border: 1px solid rgba(255, 230, 170, .75); cursor: pointer;
  background: radial-gradient(circle at 34% 28%, #fff0c4, #e2b264 62%, #8a5a1e);
  box-shadow: 0 0 24px rgba(255, 205, 110, .45), inset 0 2px 4px rgba(255, 255, 255, .5);
  color: #4a2c08; font-size: 27px; line-height: 1;
  display: grid; place-items: center; transition: .25s;
}
#musicbox:hover { transform: scale(1.08); }
#musicbox span { display: block; }
#musicbox.playing span { animation: spin 4s linear infinite; }
#musicbox.muted { filter: grayscale(.65) brightness(.72); }
@keyframes spin { to { transform: rotate(360deg); } }

/* 键盘可达 */
#Download li a:focus-visible, #musicbox:focus-visible { outline: 2px solid #9fe4ff; outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  #Download li a, #Download li a::after, #Download2 .erweima2, #musicbox.playing span {
    animation: none !important; transition: none !important;
  }
  #Download li a::after { transform: translateY(-105%) !important; }
}
