@charset "utf-8";

/* 度量沿用 www.yuanshen.com 首屏，见 README */

/* 全局重置 */
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
h1 { margin: 0; }
a { background-color: transparent; text-decoration: none; color: inherit; }
img { border-style: none; }
button {
  font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0;
  text-transform: none; -webkit-appearance: none; appearance: none;
  background: none; border: 0; padding: 0; color: inherit;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  list-style: none;
}

html, body {
  background-color: #07030c;
  font-size: 14px;
  color: #333;
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

body {
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
}

body img {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  display: block;
}

img:not([src]), img[src=""] { opacity: 0; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 页面骨架 */
.home { width: 100%; min-height: 100vh; min-height: 100dvh; }

.home__main { position: relative; width: 100%; height: 100vh; height: 100dvh; }

.home__main .kv { position: relative; height: 100%; }

/* 背景视频 */
.home__main .kv__cover {
  display: block;
  position: absolute;
  left: 50%;
  top: 0;
  width: 100%;
  height: 100%;
  transform: translateX(-50%);
  overflow: hidden;
  /* 视频解码前先用封面兜底，避免开屏空窗 */
  background: #0b0714 url(../assets/poster.jpg) center / cover no-repeat;
}
.home__main .kv__cover .kv__video {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
  /* 慢速推镜 */
  animation: kvPush 60s ease-in-out infinite alternate;
  /* 未就绪时透明，露出下面的封面 */
  opacity: 0;
  transition: opacity .5s ease;
}
.home__main .kv__cover .kv__video.is-ready { opacity: 1; }
@keyframes kvPush {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* 动态图层（速度线 / 星芒） */
.home__main .fx {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.home__main .fx__svg { display: block; width: 100%; height: 100%; }

/* 横竖屏各一套图层：16:9 的那套在竖屏会被裁得只剩中间一点 */
html[data-device="pc"]     .fx__svg--mobile { display: none; }
html[data-device="mobile"] .fx__svg--pc     { display: none; }

/* 动态图片元素 */
.home__main .cards {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.home__main .card {
  position: absolute;
  width: 22vw;
  min-width: 210px;
  max-width: 420px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 122, 180, .5);
  box-shadow: 0 12px 44px rgba(0, 0, 0, .62);
  opacity: 0;
  animation: cardCycle 20s ease-in-out infinite;
  will-change: opacity, transform;
}
.home__main .card__art {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
  background-blend-mode: screen;
}
.home__main .card__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* 画面里的光核 */
    radial-gradient(circle at 50% 56%, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, 0) 5%),
    radial-gradient(circle at 50% 56%, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, 0) 26%),
    /* 斜向光束 */
    repeating-linear-gradient(112deg, rgba(255, 255, 255, .1) 0 2px, rgba(255, 255, 255, 0) 2px 46px),
    /* 地平光带 */
    linear-gradient(180deg, rgba(255, 255, 255, 0) 56%, rgba(255, 255, 255, .13) 58%, rgba(255, 255, 255, 0) 66%),
    /* 暗角 */
    radial-gradient(110% 100% at 50% 50%, rgba(0, 0, 0, 0) 42%, rgba(6, 0, 10, .74) 100%);
}
.home__main .card figcaption {
  font-size: 13px;
  letter-spacing: 2px;
  color: #ffd9ec;
  padding: 6px 10px;
  border-top: 1px solid rgba(255, 122, 180, .32);
  background: linear-gradient(90deg, rgba(32, 8, 26, .94), rgba(18, 6, 30, .78));
}
.home__main .card--a { left: 5%;  top: 26%;     --rot: -5deg; animation-delay: 0s; }
.home__main .card--b { right: 5%; top: 20%;     --rot: 4deg;  animation-delay: -5s; }
.home__main .card--c { left: 9%;  bottom: 26%;  --rot: 6deg;  animation-delay: -10s; }
.home__main .card--d { right: 8%; bottom: 30%;  --rot: -4deg; animation-delay: -15s; }

.home__main .card--a .card__art {
  background-image:
    radial-gradient(circle at 28% 74%, #ff2f5e 0%, rgba(255, 47, 94, 0) 56%),
    radial-gradient(circle at 76% 22%, #b44bff 0%, rgba(180, 75, 255, 0) 58%),
    linear-gradient(158deg, #33051c 0%, #14041c 100%);
}
.home__main .card--b .card__art {
  background-image:
    radial-gradient(circle at 70% 70%, #2fe0ff 0%, rgba(47, 224, 255, 0) 55%),
    radial-gradient(circle at 24% 26%, #8a3dff 0%, rgba(138, 61, 255, 0) 60%),
    linear-gradient(200deg, #071a30 0%, #12042a 100%);
}
.home__main .card--c .card__art {
  background-image:
    radial-gradient(circle at 34% 30%, #ffc24a 0%, rgba(255, 194, 74, 0) 52%),
    radial-gradient(circle at 78% 76%, #ff2f5e 0%, rgba(255, 47, 94, 0) 58%),
    linear-gradient(150deg, #2e1004 0%, #1a0416 100%);
}
.home__main .card--d .card__art {
  background-image:
    radial-gradient(circle at 62% 34%, #2fe0ff 0%, rgba(47, 224, 255, 0) 54%),
    radial-gradient(circle at 28% 78%, #b44bff 0%, rgba(180, 75, 255, 0) 58%),
    linear-gradient(210deg, #04202c 0%, #15052e 100%);
}

@keyframes cardCycle {
  0%   { opacity: 0; transform: translateY(24px) scale(.92) rotate(var(--rot, 0deg)); }
  9%   { opacity: 1; transform: translateY(0)    scale(1)   rotate(var(--rot, 0deg)); }
  33%  { opacity: 1; transform: translateY(0)    scale(1)   rotate(var(--rot, 0deg)); }
  45%  { opacity: 0; transform: translateY(-18px) scale(1.04) rotate(var(--rot, 0deg)); }
  100% { opacity: 0; transform: translateY(24px) scale(.92) rotate(var(--rot, 0deg)); }
}

/* 标识 */
/* logo.png 是 1.89:1，固定小尺寸，两端一致 */
.home__main .kv .logo { position: absolute; z-index: 6; left: 16px; top: 16px; width: 80px; }
.home__main .kv .logo img { width: 100%; }

/* 按钮组 */
.home__main .btn-group .btn-jump {
  position: absolute;
  z-index: 7;
  bottom: 1.6rem;
  left: 50%;
  margin-left: -1.89rem;
  width: 3.78rem;
  height: .86rem;
  cursor: pointer;
  display: block;
}
.home__main .btn-group .btn-jump svg { display: block; width: 100%; height: 100%; }
.home__main .btn-group .btn-jump:hover { filter: brightness(1.14); }
.home__main .btn-group .btn-jump:active { transform: scale(.985); }

.home__main .btn-group .btn-age {
  position: absolute;
  z-index: 7;
  bottom: .2rem;
  left: .2rem;
  width: 1rem;
  height: 1.32rem;
  cursor: pointer;
}
.home__main .btn-group .btn-age svg { display: block; width: 100%; height: 100%; }
.home__main .btn-group .btn-age:hover { filter: brightness(1.08); }

.home__main .btn-group .btn-jump:focus-visible,
.home__main .btn-group .btn-age:focus-visible {
  outline: 2px solid #ffd9ea;
  outline-offset: 3px;
  border-radius: 4px;
}

/* 适龄提示弹窗 */
.dialog-mask {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(4, 0, 8, .68);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}
.dialog-mask[hidden] { display: none; }

.dialog { position: relative; width: 854px; height: 642px; }
.dialog .close {
  position: absolute;
  top: 0;
  right: -57px;
  z-index: 9;
  width: 57px;
  height: 57px;
  cursor: pointer;
}
.dialog .close svg { display: block; width: 100%; height: 100%; }
.dialog .close:hover { filter: brightness(1.18); }

.dialog .panel {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 34px 62px 40px;
  background:
    radial-gradient(120% 80% at 50% 0%, #fbf8f0 0%, rgba(251, 248, 240, 0) 60%),
    linear-gradient(160deg, #f7f3e8 0%, #efe8d8 55%, #e6ddca 100%);
  border: 1.5px solid #a8906a;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .7);
  /* 禁止选中文本（配合 JS 里的 copy/contextmenu 拦截） */
  -webkit-user-select: none;
  user-select: none;
}
.dialog .panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid #c3b089;
  pointer-events: none;
}

.dialog .orn {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1px solid #a8906a;
  background: #f3ecdc;
  transform: rotate(45deg);
}
.dialog .orn--tl { left: 2px;  top: 2px; }
.dialog .orn--tr { right: 2px; top: 2px; }
.dialog .orn--bl { left: 2px;  bottom: 2px; }
.dialog .orn--br { right: 2px; bottom: 2px; }

.dialog .panel__title {
  font-family: "Source Han Serif SC", "Noto Serif SC", "STZhongsong", "STSong", "SimSun", serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  color: #8b6c3c;
  padding-top: 8px;
}

.dialog .panel__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0 22px;
}
.dialog .panel__divider i {
  display: block;
  width: 190px;
  height: 1px;
  background: linear-gradient(90deg, rgba(168, 144, 106, 0), #a8906a);
}
.dialog .panel__divider i:last-child {
  background: linear-gradient(90deg, #a8906a, rgba(168, 144, 106, 0));
}
.dialog .panel__divider b {
  display: block;
  width: 9px;
  height: 9px;
  margin: 0 16px;
  background: #a8906a;
  transform: rotate(45deg);
}

.dialog .panel__body {
  height: calc(100% - 118px);
  overflow-y: auto;
  scrollbar-width: thin;
  font-size: 20px;
  line-height: 1.9;
  color: #7d6547;
}
.dialog .panel__body::-webkit-scrollbar { width: 6px; }
.dialog .panel__body::-webkit-scrollbar-track { background: rgba(168, 144, 106, .12); border-radius: 3px; }
.dialog .panel__body::-webkit-scrollbar-thumb { background: rgba(168, 144, 106, .55); border-radius: 3px; }
.dialog .panel__body p { margin-bottom: 8px; }
.dialog .panel__body--indent { padding-left: 1.6em; }
.dialog .panel__note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #a3906f;
}

/* 脚页 */
.footer {
  background: #0b0b10;
  color: #8b8b98;
  font-size: 12.5px;
  line-height: 2;
  padding: 26px 22px 30px;
  border-top: 1px solid rgba(255, 90, 150, .16);
}
.footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.footer__brand { flex: 0 0 auto; }
.footer__brandbox {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__logo { height: 60px; width: auto; display: block; }
.footer__branddivider { width: 1px; height: 54px; background: #2e2e38; flex: 0 0 auto; }

.footer__content { flex: 1 1 auto; min-width: 0; }
.footer__links { margin-bottom: 6px; }
.footer__links a { color: #b9b9c6; }
.footer__links a:hover { color: #ff9ec4; }
.footer__links i,
.footer__line i,
.footer__copy i { margin: 0 8px; font-style: normal; color: #3e3e4a; }

.footer__line { color: #85858f; }
.footer__copy { color: #a9a9b6; margin-top: 2px; }

.footer__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.footer__badge {
  display: block;
  line-height: 0;
  opacity: .88;
  transition: opacity .2s;
}
a.footer__badge:hover { opacity: 1; }
.footer__badge img { display: block; height: 34px; width: auto; }

/* 「暂未发布」提示 */
.toast {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.toast[hidden] { display: none; }

.toast__box {
  min-width: 260px;
  padding: 26px 42px 24px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 130, 185, .55);
  background: linear-gradient(160deg, rgba(40, 10, 34, .94), rgba(16, 6, 26, .94));
  box-shadow: 0 18px 60px rgba(0, 0, 0, .7);
  backdrop-filter: blur(4px);
}
.toast__icon { display: block; width: 48px; height: 48px; margin: 0 auto 10px; }
.toast__icon svg { display: block; width: 100%; height: 100%; }
.toast__title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #ffe9f4;
}
.toast__desc {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: #d4a8c4;
}
.toast.is-in .toast__box { animation: toastIn .3s cubic-bezier(.2, .9, .3, 1.25); }
.toast.is-out .toast__box { animation: toastOut .26s ease-in forwards; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(.93); }
  to   { opacity: 1; transform: none; }
}
@keyframes toastOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-10px) scale(.97); }
}

/* 移动端适配 */
html[data-device="mobile"] .kv .btn-group .btn-jump { bottom: 2rem; }
html[data-device="mobile"] .kv .cards { display: none; }

html[data-device="mobile"] .dialog { width: 6.57rem; height: 9.65rem; }
html[data-device="mobile"] .dialog .close { display: none; }
html[data-device="mobile"] .dialog .panel { padding: .3rem .34rem .34rem; border-width: 1px; }
html[data-device="mobile"] .dialog .panel::before { inset: .07rem; }
html[data-device="mobile"] .dialog .orn { width: .12rem; height: .12rem; }
html[data-device="mobile"] .dialog .panel__title { font-size: .42rem; padding-top: .04rem; letter-spacing: 0; }
html[data-device="mobile"] .dialog .panel__divider { margin: .1rem 0 .14rem; }
html[data-device="mobile"] .dialog .panel__divider i { width: 1.5rem; }
html[data-device="mobile"] .dialog .panel__divider b { width: .07rem; height: .07rem; margin: 0 .1rem; }
html[data-device="mobile"] .dialog .panel__body {
  height: calc(100% - .86rem);
  font-size: .25rem;
  line-height: 1.85;
}
html[data-device="mobile"] .dialog .panel__note { font-size: .19rem; }

html[data-device="mobile"] .footer { font-size: .24rem; line-height: 1.9; padding: .3rem .24rem .36rem; }

/* 手机端页脚链接：原来 .footer__links a 没有任何内边距，
   实测点击区只有 46x15px，手指很难点中。这里把每个链接撑到约 40px 高，
   整行改成可换行的弹性布局，窄屏下不会挤成一条。 */
html[data-device="mobile"] .footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: .06rem;
}
html[data-device="mobile"] .footer__links a {
  display: inline-block;
  min-height: .76rem;
  line-height: .76rem;
  padding: 0 .04rem;
}
html[data-device="mobile"] .footer__links i {
  line-height: .76rem;
}
html[data-device="mobile"] .footer__inner { flex-direction: column; align-items: flex-start; gap: .18rem; }
html[data-device="mobile"] .footer__logo { height: .98rem; }
html[data-device="mobile"] .footer__branddivider { height: .88rem; }
html[data-device="mobile"] .footer__brandbox { gap: .18rem; }
html[data-device="mobile"] .toast__box { min-width: 0; width: 4.6rem; padding: .3rem .3rem .28rem; }
html[data-device="mobile"] .toast__title { font-size: .3rem; }
html[data-device="mobile"] .toast__desc { font-size: .21rem; }

/* 无障碍 / 省电 */
@media (prefers-reduced-motion: reduce) {
  .home__main .kv__cover .kv__video,
  .home__main .card { animation: none; }
  .home__main .card--a { opacity: 1; }
}
