@charset "utf-8";

/* 崩异 · 官网首页（/bengyi） */

/* 手写体字体栈：装了行楷/舒体的机器优先用，否则回落楷体 */
:root {
  --font-hand: "华文行楷", "STXingkai", "方正舒体", "FZShuTi", "华文新魏", "STXinwei",
               "楷体", "KaiTi", "STKaiti", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  background: #0a0a0f;
  color: #eceaf3;
  font: 14px/1.7 "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}
img { border: 0; display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.wrap--center { text-align: center; }

/* 按钮 */
.btn {
  display: inline-block;
  padding: 0 26px;
  height: 44px;
  line-height: 44px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #1a0710;
  background: linear-gradient(120deg, #ffd9a0, #ffb35c);
  transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn--sm { height: 34px; line-height: 34px; padding: 0 18px; font-size: 13px; }
.btn--lg { height: 52px; line-height: 52px; padding: 0 40px; font-size: 16px; border-radius: 6px; }

/* 导航 */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
  padding: 0 26px;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(9, 8, 14, .86);
  backdrop-filter: blur(10px);
  border-bottom-color: #26242f;
}
.nav__brand { display: flex; align-items: baseline; gap: 10px; flex: 0 0 auto; }
.nav__brand img { height: 42px; width: auto; }
.nav__brandsub { font-size: 10px; letter-spacing: 2.5px; color: #7d7987; }

.nav__links { position: relative; display: flex; gap: 76px; margin: 0 auto; padding-top: 12px; }
.nav__arc {
  position: absolute;
  left: -20px; right: -20px; top: -12px;
  width: auto; height: 30px;
  pointer-events: none;
}
.nav__links a { position: relative; font-family: var(--font-hand); font-size: 18px; color: #cfccd8; transition: color .2s; }
.nav__links a:hover { color: #fff; }
.nav__links a.is-active { color: #ffe6a8; }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -10px;
  width: 28px; height: 2px;
  margin-left: -14px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 230, 168, 0), #ffe6a8, rgba(255, 230, 168, 0));
  box-shadow: 0 0 10px rgba(255, 214, 130, .85);
}

.nav__tools { display: flex; gap: 4px; margin-left: 22px; flex: 0 0 auto; align-items: center; }

/* 登录后：手机号（中间打码）+ 紧挨着的退出按钮 */
.nav__user { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.nav__user[hidden] { display: none; }
.nav__phone { font-size: 14px; color: #cfccd8; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.nav__logout {
  padding: 4px 13px;
  border: 1px solid #3a3746;
  border-radius: 999px;
  font-size: 13px;
  color: #a9a4b4;
  transition: color .2s, border-color .2s;
}
.nav__logout:hover { color: #ffe6a8; border-color: #ffe6a8; }
.nav__icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #cfccd8;
  transition: background .2s, color .2s;
}
.nav__icon:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav__icon svg { width: 21px; height: 21px; }
/* 背景音乐按钮：播放中变金色并轻微跳动 */
.nav__music.is-on { color: #ffe6a8; }
.nav__music.is-on svg { animation: musicBob 1.15s ease-in-out infinite; }
@keyframes musicBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-1.6px); }
}

/* 首屏 */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
.hero__cover { position: absolute; inset: 0; background: #0b0714 url(../../assets/poster-bengyi.jpg) center / cover no-repeat; }
.hero__cover video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0;
  transition: opacity .5s ease;
}
.hero__cover video.is-ready { opacity: 1; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 6, 14, .6) 0%, rgba(8, 6, 14, .18) 38%, rgba(10, 10, 15, .96) 100%);
}

/* 中央：播放按钮 */
.hero__center {
  position: absolute;
  left: 0; right: 0; top: 45%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  text-align: center;
  transform: translateY(-50%);
}
.hero__play {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  transition: transform .2s, filter .2s;
}
.hero__play svg { display: block; width: 100%; height: 100%; }
.hero__play:hover { transform: scale(1.08); filter: brightness(1.15); }
.hero__play:active { transform: scale(.96); }
.hero__playRing { transform-origin: 32px 32px; animation: playPulse 2.4s ease-out infinite; }
@keyframes playPulse {
  0%   { transform: scale(1);    opacity: .5; }
  100% { transform: scale(1.45); opacity: 0; }
}
.hero__tag {
  font-family: var(--font-hand);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 5px;
  color: #ffd9ea;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}

/* 左下：适龄提示 + 社交 */
.hero__bl {
  position: absolute;
  left: 26px; bottom: 26px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.agebadge { width: 76px; height: auto; }
.socials { display: flex; gap: 2px; }
.socials__item {
  position: relative;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  color: rgba(255, 255, 255, .72);
  transition: color .2s, background .2s;
}
.socials__item:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.socials__item svg { width: 20px; height: 20px; }
.socials__item img { display: block; width: 20px; height: 20px; opacity: .75; transition: opacity .2s; }
.socials__item:hover img { opacity: 1; }

/* 微信：鼠标移上去弹出二维码 */
.socials__pop {
  position: absolute;
  left: -16px;
  bottom: 40px;
  z-index: 6;
  width: 136px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 8px;
  background: rgba(10, 8, 16, .96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  pointer-events: none;
}
.socials__pop img { width: 100%; height: auto; border-radius: 4px; opacity: 1; }
.socials__pop em { display: block; margin-top: 6px; font-size: 11px; font-style: normal; text-align: center; color: #cfc9da; }
.socials__wx:hover .socials__pop,
.socials__wx:focus .socials__pop { opacity: 1; visibility: visible; transform: none; }

/* 右下：资讯卡 + SCROLL */
.hero__br {
  position: absolute;
  right: 26px; bottom: 26px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.hnews {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 300px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  background: rgba(10, 8, 16, .55);
  backdrop-filter: blur(6px);
  transition: border-color .2s, background .2s;
}
.hnews:hover { border-color: rgba(255, 214, 130, .6); background: rgba(16, 12, 24, .72); }
.hnews img { width: 76px; height: 48px; object-fit: cover; border-radius: 4px; flex: 0 0 auto; }
.hnews__title { font-size: 13px; line-height: 1.5; color: #ded9e6; }
.hero__scroll { font-size: 11px; letter-spacing: 3px; color: rgba(255, 255, 255, .5); writing-mode: vertical-rl; }

/* 底部：下载区 */
.hero__dl {
  position: absolute;
  left: 50%; bottom: 52px;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transform: translateX(-50%);
}
.qr {
  position: relative;
  width: 92px; height: 92px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 8px;
  background: #fff;
  flex: 0 0 auto;
}
.qr img { display: block; width: 100%; height: 100%; border-radius: 4px; }
.qr__wx {
  position: absolute;
  right: -7px; bottom: -7px;
  width: 25px; height: 25px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #07c160;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .55);
}
.qr__wx svg { display: block; width: 16px; height: 16px; }

.dlbtn {
  height: 92px;
  min-width: 118px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(12, 10, 18, .62);
  backdrop-filter: blur(6px);
  color: #ece8f2;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;   /* 「云·崩异」是 <a>，去掉链接默认下划线 */
  transition: border-color .2s, background .2s;
}
.dlbtn:hover { border-color: rgba(255, 214, 130, .65); background: rgba(22, 17, 30, .8); }
.dlbtn svg { width: 20px; height: 20px; flex: 0 0 auto; }

/* PC 下载：图标在上、文字在下 */
.dlbtn--pc { flex-direction: column; gap: 8px; }
.dlbtn--pc svg { width: 26px; height: 26px; }

/* 云·崩异 网页版：实心黑、三行、手写体 */
.dlbtn--cloud {
  flex-direction: column;
  gap: 1px;
  padding: 0 30px;
  background: rgba(4, 3, 7, .88);
  font-family: var(--font-hand);
}
.dlbtn--cloud .dlbtn__t { font-size: 23px; font-weight: 400; letter-spacing: 2px; }
.dlbtn--cloud .dlbtn__s { font-size: 14px; line-height: 1.5; color: #cfc9da; }

/* 右侧两列；「支持 Apple Mac」挂在 App Store 那一列下面 */
.dlright { display: flex; align-items: flex-start; gap: 8px; }
.dlcol { display: flex; flex-direction: column; gap: 8px; }
/* 每列按钮只有一半高：两行 + 间距正好等于二维码高度，四者底边才齐平 */
.dlcol .dlbtn { height: 42px; min-width: 0; padding: 0 18px; gap: 8px; }
.hero__mac { padding-top: 2px; font-size: 11px; letter-spacing: .5px; color: rgba(255, 255, 255, .55); text-align: center; }

/* 主次两种字号并排：Android 下载 / App Store 下载 / 云·崩异 下载 / TapTap 下载 */
.dlbtn--pair .dlbtn__t { font-size: 16px; font-weight: 700; letter-spacing: .5px; }
.dlbtn--pair .dlbtn__s { font-size: 13px; color: #cfc9da; }

/* 区块 */
.sec { position: relative; padding: 84px 0; overflow: hidden; }
.sec--alt { background: #0e0d14; }
.sec > .wrap { position: relative; z-index: 1; }

/* 背景装饰素材（用户提供的透明 PNG，压低透明度当纹理用） */
.deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
}
.deco--r { right: 0; top: 0; width: 178px; height: 428px; }
.deco--l { left: 0; bottom: 0; width: 272px; height: 527px; }
.deco--about {
  background-image: url(../../assets/deco-about.png);
  opacity: .17;
}
.deco--line {
  background-image: url(../../assets/deco-line.png);
  opacity: .15;
}
.deco--line-flip {
  background-image: url(../../assets/deco-line.png);
  opacity: .13;
  transform: scaleX(-1);
  right: 0; bottom: 0; top: auto;
}
.sec__title {
  position: relative;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  padding-left: 18px;
  margin-bottom: 34px;
}
.sec__title::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 4px; height: 26px;
  margin-top: -13px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff4d7d, #57b0f5);
}
/* 居中区块里标题要收缩到文字宽度，否则装饰竖条会飘到最左边 */
.wrap--center .sec__title { display: inline-block; }

/* 资讯面板：左大图 + 右分类列表 */
.newspanel {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  border: 1px solid #26242f;
  background: #12101a;
}
.newspanel__cover { position: relative; display: block; overflow: hidden; }
.newspanel__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform .5s ease;
}
.newspanel__cover:hover img { transform: scale(1.05); }

.newspanel__side { display: flex; flex-direction: column; padding: 22px 26px 18px; }
.newstabs { display: flex; gap: 26px; border-bottom: 1px solid #2a2833; }
.newstabs button {
  position: relative;
  padding-bottom: 12px;
  font-size: 15px;
  color: #9a95a6;
  transition: color .2s;
}
.newstabs button:hover { color: #dcd7e4; }
.newstabs button.is-active { color: #ffe6a8; }
.newstabs button.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: #ffe6a8;
}

.newslist { flex: 1 1 auto; }
.newslist li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #211f29;
}
.newslist a {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
  color: #ded9e6;
  transition: color .2s;
}
.newslist a:hover { color: #ffe6a8; }
.newslist time { flex: 0 0 auto; font-size: 13px; color: #7d7987; font-variant-numeric: tabular-nums; }
.newslist__empty { padding: 18px 0; font-size: 14px; color: #7d7987; }

.newspanel__more {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
  color: #a9a4b4;
  transition: color .2s;
}
.newspanel__more i { font-style: normal; font-size: 19px; line-height: 1; color: #ffe6a8; }
.newspanel__more:hover { color: #ffe6a8; }

/* 下滑入场：卡片插入式。
   只对 .js（有脚本）生效 —— 万一脚本没跑或用户禁用 JS，内容照样直接可见，
   不会因为停在 opacity:0 而变成一片空白。 */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(54px) scale(.975);
  transition: opacity .75s cubic-bezier(.22, .75, .3, 1), transform .75s cubic-bezier(.22, .75, .3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* 角色介绍：立绘放大当背景，文案叠在左侧 */
.charsec { padding: 0; }
.charstage {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* 左侧压暗，保证叠在上面的文字能看清 */
.charstage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(10, 10, 15, .97) 0%,
    rgba(10, 10, 15, .93) 32%,
    rgba(10, 10, 15, .74) 48%,
    rgba(10, 10, 15, .3) 63%,
    rgba(10, 10, 15, 0) 78%);
}

/* 背景立绘：贴底、放大、靠右 */
.charstage__art {
  position: absolute;
  right: 6%;
  bottom: 0;
  height: 97%;
  display: flex;
  align-items: flex-end;
  z-index: 0;
  pointer-events: none;
}
.charstage__still { display: block; height: 100%; width: auto; }
.charstage__still[hidden] { display: none; }

.char { position: relative; height: 100%; width: fit-content; animation: charFloat 5.2s ease-in-out infinite; }
@keyframes charFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}
.char::after {
  content: "";
  position: absolute;
  left: 8%; right: 8%; bottom: 2%;
  height: 16%;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(120, 150, 255, .3), rgba(120, 150, 255, 0) 70%);
  filter: blur(8px);
}
.char__base { display: block; height: 100%; width: auto; }

/* 两片飘带：摆幅比之前大近一倍。
   挖洞内缩 22px，所以 3.2 度以内不会露出底下的洞。 */
.char__wing { position: absolute; pointer-events: none; will-change: transform; }
.char__wing--l {
  left: 7.90%; top: 14.04%; width: 28.88%;
  transform-origin: 100% 12%;
  animation: swayL 4.6s ease-in-out infinite;
}
.char__wing--r {
  left: 58.66%; top: 11.30%; width: 39.82%;
  transform-origin: 0% 16%;
  animation: swayR 5.4s ease-in-out infinite;
}
@keyframes swayL {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50%      { transform: rotate(-3.2deg) translateY(9px); }
}
@keyframes swayR {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50%      { transform: rotate(3deg) translateY(-9px); }
}

/* 叠在立绘上的内容。这一区不受居中容器限制，直接靠左铺开。
   注意 margin 必须归零 —— .wrap 的 `margin: 0 auto` 在 flex 里会把元素居中，
   光靠 max-width: none 覆盖不掉。 */
.charstage__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 46px;
  padding: 76px 4vw;
}
.charsec__head { position: absolute; left: 0; right: 0; top: 56px; z-index: 2; }
.charsec__head .sec__title { margin-bottom: 0; }

/* 角色列表。宽度写死 —— 目前只有「岁」一个，
   但栏位要留着，以后加角色回来右侧文案不会位移。 */
.roster { display: flex; flex-direction: column; gap: 4px; flex: 0 0 96px; width: 96px; }
.roster button {
  position: relative;
  display: block;
  width: 100%;
  padding: 11px 6px 11px 14px;
  border-radius: 8px;
  text-align: left;
  opacity: .45;
  transition: opacity .25s, background .25s;
}
.roster button::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 0;
  border-radius: 2px;
  background: #ffe6a8;
  transition: height .25s, margin-top .25s;
}
.roster button em { font-style: normal; font-size: 16px; color: #9a95a6; }
.roster button:hover { opacity: .8; background: rgba(255, 255, 255, .04); }
.roster button.is-active { opacity: 1; background: rgba(255, 255, 255, .06); }
.roster button.is-active::before { height: 22px; margin-top: -11px; }
.roster button.is-active em { color: #ffe6a8; }

/* 引语 / CV / 名字 / 简介 */
.charmeta { max-width: 410px; min-width: 0; }
.charmeta__quote {
  font-family: var(--font-hand);
  font-size: 22px;
  line-height: 1.7;
  color: #eae5f2;
  letter-spacing: 1px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .9), 0 0 4px rgba(0, 0, 0, .7);
}
.charmeta__cv {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 12px;
  border: 1px solid #3a3746;
  border-radius: 999px;
  font-size: 12px;
  color: #9a95a6;
}
.charmeta__name {
  margin-top: 14px;
  font-family: var(--font-hand);
  font-size: 66px;
  line-height: 1.05;
  color: #ffe6a8;
  letter-spacing: 8px;
}
.charmeta__latin {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 10px;
  color: #f2eef8;
}
.charmeta__desc {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.95;
  color: #bdb7c9;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .9), 0 0 4px rgba(0, 0, 0, .7);
}
/* 特色 */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat {
  padding: 28px 24px 26px;
  border: 1px solid #26242f;
  border-radius: 8px;
  background: #110f18;
}
.feat__ico { width: 44px; height: 44px; color: #57b0f5; margin-bottom: 16px; }
.feat__name { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feat__desc { color: #97939f; font-size: 14px; }

/* 下载 */
.dl__note { color: #97939f; margin: -18px 0 26px; }
.dl { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.dl__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 1px solid #34313f;
  border-radius: 6px;
  background: #15131d;
  color: #ddd9e4;
  font-size: 15px;
  transition: border-color .2s, background .2s;
}
.dl__item:hover { border-color: #ff4d7d; background: #1a1724; }
.dl__item svg { width: 20px; height: 20px; color: #ff8fb0; }

/* 脚页 */
.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; }

/* 适龄徽章按钮 */
.agebtn {
  padding: 0;
  line-height: 0;
  border-radius: 6px;
  transition: transform .2s, filter .2s;
}
.agebtn:hover { transform: scale(1.05); filter: brightness(1.08); }
.agebtn:active { transform: scale(.97); }

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

/* 面板高度跟着内容走，一屏展示完，不留滚动条 */
.dialog { position: relative; width: min(760px, 90vw); }
.dialog .close {
  position: absolute;
  top: 0; right: -46px;
  z-index: 9;
  width: 46px; height: 46px;
  cursor: pointer;
}
.dialog .close svg { display: block; width: 100%; height: 100%; }
.dialog .close:hover { filter: brightness(1.18); }

.dialog .panel {
  position: relative;
  width: 100%;
  padding: 28px 52px 34px;
  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: 7px;
  border: 1px solid #c3b089;
  pointer-events: none;
}

.dialog .orn {
  position: absolute;
  width: 10px; height: 10px;
  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 {
  padding-top: 4px;
  font-family: "Source Han Serif SC", "Noto Serif SC", "STZhongsong", "STSong", "SimSun", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  color: #8b6c3c;
}

.dialog .panel__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 14px;
}
.dialog .panel__divider i {
  display: block;
  width: 132px; 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: 7px; height: 7px;
  margin: 0 12px;
  background: #a8906a;
  transform: rotate(45deg);
}

.dialog .panel__body {
  max-height: 66vh;
  overflow-y: auto;
  scrollbar-width: thin;
  font-size: 15px;
  line-height: 1.85;
  color: #7d6547;
}
.dialog .panel__body::-webkit-scrollbar { width: 5px; }
.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: 7px; }
.dialog .panel__body--indent { padding-left: 1.6em; }
.dialog .panel__note { margin-top: 10px; font-size: 11px; line-height: 1.6; color: #a3906f; }

/* 视频弹窗 */
.vmodal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7vh 4vw;
  background: rgba(4, 3, 8, .87);
  backdrop-filter: blur(6px);
}
.vmodal[hidden] { display: none; }
.vmodal__box {
  position: relative;
  width: min(720px, 100%);
  aspect-ratio: 16 / 9;
  border: 1px solid #34313f;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .8);
  animation: vmodalIn .26s ease-out;
}
.vmodal__box video { display: block; width: 100%; height: 100%; border-radius: 8px; background: #000; }
.vmodal__close {
  position: absolute;
  right: 0;
  top: -46px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #4a4658;
  background: #221f2c;
  color: #fff;
  transition: background .2s, transform .2s;
}
.vmodal__close:hover { background: #332f42; transform: scale(1.08); }
.vmodal__close svg { width: 20px; height: 20px; }
@keyframes vmodalIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: none; }
}
body.is-locked { overflow: hidden; }

/* 提示。层级必须高于所有弹窗（登录 150 / 适龄 140 / 视频 130），
   否则弹窗打开时提示会被它的遮罩盖住，看起来像「点了没反应」。 */
.toast {
  position: fixed; inset: 0; z-index: 200;
  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, body { height: 100%; overflow: hidden; }
main { display: contents; }

.deck { position: relative; height: 100%; }
.screen {
  position: absolute;
  inset: 0;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease;
}
/* 切入式：新屏直接出现并淡入，旧屏立即消失（不参与过渡，避免状态残留） */
.screen.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.hero.screen { height: 100%; }
.sec.screen { display: flex; flex-direction: column; justify-content: center; }
.charsec.screen { padding: 0; }
.charsec.screen .charstage { min-height: 0; height: 100%; }
.footer.screen { display: flex; align-items: center; justify-content: center; }

/* 登录弹窗（浅色卡片，和参考图同版式；标题用本站自己的品牌名） */
.login {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 6, 12, .62);
  backdrop-filter: blur(4px);
}
.login[hidden] { display: none; }
.login__box {
  position: relative;
  width: min(430px, 100%);
  padding: 34px 34px 30px;
  border-radius: 16px;
  background: #f7f8fc;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}
.login__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  color: #2a2a35;
  transition: transform .2s;
}
.login__close:hover { transform: scale(1.12); }
.login__close svg { width: 100%; height: 100%; }
.login__title {
  margin-bottom: 26px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  color: #1c1c26;
}
.login__row {
  display: flex;
  align-items: center;
  height: 56px;
  margin-bottom: 14px;
  padding: 0 8px 0 18px;
  border-radius: 10px;
  background: #ecEEf6;
}
.login__cc {
  padding-right: 14px;
  margin-right: 14px;
  border-right: 1px solid #cfd3e2;
  font-size: 17px;
  color: #2a2a35;
}
.login__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font: inherit;
  font-size: 16px;
  color: #1c1c26;
}
.login__input::placeholder { color: #9aa0b4; }
.login__code {
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  color: #2f6bd8;
}
.login__code:disabled { color: #9aa0b4; cursor: default; }
.login__agree {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 6px 0 22px;
  font-size: 13px;
  line-height: 1.6;
  color: #5b6076;
  cursor: pointer;
}
.login__agree input { position: absolute; opacity: 0; pointer-events: none; }
.login__tick {
  position: relative;
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 1px;
  border: 1.5px solid #b9bed0;
  border-radius: 50%;
  transition: background .2s, border-color .2s;
}
.login__agree input:checked + .login__tick { border-color: #3d7bf0; background: #3d7bf0; }
.login__agree input:checked + .login__tick::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.login__submit {
  /* 必须显式 block：button 默认 inline-block 会落进行盒，
     父级 line-height 撑出的 strut 会在按钮上方多留一段空隙 */
  display: block;
  width: 100%;
  height: 54px;
  border-radius: 10px;
  background: #9dbdf7;          /* 浅蓝 = 条件未满足，不可点 */
  color: #fff;
  font-size: 19px;
  letter-spacing: 2px;
  cursor: default;
  transition: background .25s;
}
.login__submit.is-ready { background: #3d7bf0; cursor: pointer; }   /* 深蓝 = 可点 */
.login__submit:disabled { cursor: default; }

/* 窄屏 */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__brand img { height: 28px; }
  .nav__brandsub { display: none; }
  .nav__tools { margin-left: auto; }
  .sec { padding: 56px 0; }
  .sec__title { font-size: 22px; margin-bottom: 24px; }
  /* 角色区：立绘退到背景，文案居中叠上去 */
  .charstage { min-height: 78vh; }
  .charstage::before {
    background: linear-gradient(180deg, rgba(10, 10, 15, .86) 0%, rgba(10, 10, 15, .7) 45%, rgba(10, 10, 15, .4) 100%);
  }
  .charstage__art { right: 50%; height: 88%; transform: translateX(50%); }
  .charstage__inner { flex-direction: column; gap: 18px; padding-top: 60px; padding-bottom: 40px; }
  .roster { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .roster button { min-width: 0; width: auto; padding: 8px 14px; text-align: center; }
  .roster button::before { display: none; }
  .roster button em { font-size: 14px; }
  .charmeta { max-width: 100%; text-align: center; }
  .charmeta__quote { font-size: 18px; }
  .charmeta__name { font-size: 40px; letter-spacing: 4px; }
  .charmeta__latin { font-size: 26px; letter-spacing: 5px; }
  .charmeta__desc { font-size: 14px; }
  .charsec__head { top: 34px; }
  .feats { grid-template-columns: 1fr; }
  .news__item { flex-wrap: wrap; gap: 8px 12px; }
  .news__title { flex-basis: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer__logo { height: 50px; }
  .footer__branddivider { height: 45px; }

  /* 首屏改为纵向排布，避免绝对定位互相压叠 */
  .hero { height: auto; min-height: 100vh; padding: 92px 0 28px; display: flex; flex-direction: column; justify-content: center; }
  .hero__center {
    position: static;
    transform: none;
    order: 1;
    gap: 14px;
  }
  .hero__tag { font-size: 18px; letter-spacing: 3px; }
  .hero__dl {
    position: static;
    transform: none;
    order: 2;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 28px 0 0;
    padding: 0 14px;
  }
  .qr { width: 62px; height: 62px; padding: 4px; }
  .qr__wx { right: -5px; bottom: -5px; width: 20px; height: 20px; }
  .qr__wx svg { width: 13px; height: 13px; }
  .dlbtn { height: auto; min-height: 48px; min-width: 0; padding: 8px 13px; font-size: 12px; gap: 6px; }
  .dlbtn svg { width: 16px; height: 16px; }
  .dlcol .dlbtn { height: auto; min-height: 46px; padding: 6px 12px; gap: 6px; }
  .dlbtn--pc { gap: 4px; }
  .dlbtn--pc svg { width: 20px; height: 20px; }
  .dlbtn--cloud { padding: 6px 16px; gap: 0; }
  .dlbtn--cloud .dlbtn__t { font-size: 17px; letter-spacing: 1px; }
  .dlbtn--cloud .dlbtn__s { font-size: 11px; }
  .dlbtn--pair .dlbtn__t { font-size: 13px; letter-spacing: 0; }
  .dlbtn--pair .dlbtn__s { font-size: 11px; }
  .dlright { gap: 6px; }
  .dlcol { gap: 6px; }
  .dlcol .dlbtn__t { font-size: 13px; letter-spacing: 0; }
  .dlcol .dlbtn__s { font-size: 11px; }
  .hero__mac { font-size: 10px; }
  .hero__bl {
    position: static;
    order: 4;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin: 24px 14px 0;
  }
  .agebadge { width: 56px; }
  .socials__item { width: 28px; height: 28px; }
  .socials__item svg { width: 18px; height: 18px; }
  .socials__item img { width: 18px; height: 18px; }
  .socials__pop { left: -10px; bottom: 36px; width: 120px; }
  .hero__br { display: none; }

  /* 资讯面板窄屏改上下排 */
  .newspanel { grid-template-columns: 1fr; }
  .newspanel__cover img { aspect-ratio: 16 / 9; }
  .newspanel__side { padding: 16px 16px 14px; }
  .newstabs { gap: 20px; }
  .newslist li { gap: 10px; padding: 11px 0; }
  .newslist a { font-size: 14px; }

  /* 适龄弹窗窄屏 */
  .dialog { width: 92vw; }
  .dialog .close { top: -46px; right: 0; width: 40px; height: 40px; }
  .dialog .panel { padding: 20px 18px 22px; }
  .dialog .orn { width: 10px; height: 10px; }
  .dialog .panel__title { font-size: 22px; padding-top: 2px; letter-spacing: 0; }
  .dialog .panel__divider { margin: 10px 0 14px; }
  .dialog .panel__divider i { width: 70px; }
  .dialog .panel__divider b { width: 7px; height: 7px; margin: 0 10px; }
  .dialog .panel__body { max-height: 72vh; font-size: 13.5px; line-height: 1.8; }
  .dialog .panel__note { font-size: 11px; }
}

/* 手机竖屏：解决窄屏下导航被隐藏、以及内容超过一屏被裁掉的两个问题。
   实测 390×844 时文档高度正好等于屏高 —— 说明内容被锁死无法滚动，
   手机屏短，页脚/角色区下半部分会直接看不到。 */
@media (max-width: 560px) {
  /* 1) 导航改成底部标签栏。
        原来是 display:none 直接隐藏，手机上根本无法切换分屏，
        社区 / 充值中心更是完全够不到。 */
  .nav__links {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    gap: 0;
    margin: 0;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    justify-content: space-around;
    background: linear-gradient(180deg, rgba(12, 10, 18, .55), rgba(10, 8, 16, .96));
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .nav__arc { display: none; }
  .nav__links a {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 2px 14px;
    font-size: 14px;
    text-align: center;
    color: #b6b2c2;
  }
  .nav__links a.is-active::after {
    left: 50%;
    bottom: 6px;
    width: 20px;
    margin-left: -10px;
  }

  /* 2) 给底部标签栏留出空间，别把内容压在它下面。
        用 .xxx.screen 的写法是为了压过上面 .charsec.screen{padding:0} 等规则。 */
  .hero.screen,
  .sec.screen,
  .charsec.screen,
  .footer.screen { padding-bottom: 62px; }

  /* 3) 关键修复：当前屏内容超过一屏时要能滚。
        否则手机屏短，超出部分被 overflow:hidden 直接裁掉、且永远够不到。
        切屏手势会先让屏内滚到底再切 —— 逻辑在同文件的 canScroll()。 */
  .screen.is-active {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* 4) 角色区标题原为绝对定位 top:34px，手机上会和左上角 logo 叠在一起 */
  .charsec__head { position: static; margin-bottom: 10px; }
  .charsec__head .sec__title { font-size: 20px; }
  .charsec.screen .charstage { min-height: auto; height: auto; }
  .charstage__inner { padding-top: 24px; }

  /* 5) 首屏在手机上内容较高，允许自然撑开 */
  .hero { min-height: calc(100vh - 62px); padding-bottom: 82px; }

  /* 6) 点击区偏小：实测社交图标 28x28、站标 53x28，手机上不好点中。
        这里统一撑到 40px 上下（推荐 44px，40 是不破坏现有排版前提下的折中）。 */
  .socials { gap: 8px; }
  .socials__item { width: 40px; height: 40px; }
  .socials__item svg,
  .socials__item img { width: 24px; height: 24px; }
  .nav__brand { min-height: 40px; align-items: center; }
  .nav__brand img { height: 32px; }

  /* 7) 页脚链接同样偏小：实测只有 16px 高，手指不好点。撑到 40px。 */
  .footer__links a { display: inline-block; min-height: 40px; line-height: 40px; }

  /* 8) 资讯列表项与「更多」链接实测只有 23px 高。
        用上下内边距把它撑到约 40px —— 不用改 display，
        避免影响条目内部（标题 + 日期）原有的排布。 */
  .newslist li > a,
  .newspanel__more { padding-top: 8px; padding-bottom: 8px; }

  /* 9) 可见小字：下载按钮副标题 11px、Mac 提示 10px，提到 12px 以上。
        选择器要写两层：单写 .dlbtn__s 会被上面更高优先级的规则盖掉（实测无效）。 */
  .dlbtn .dlbtn__s,
  .hero .dlbtn__s { font-size: 12px; }
  .hero .hero__mac { font-size: 12px; }

  /* 10) 首屏视频铺满：竖屏下 16:9 视频会上下留黑边，整屏看着就是"一大片黑"。
         这里让容器撑满并强制按 cover 裁切铺开。
         同时把首屏高度改回内容自适应 —— 原 min-height:100vh + padding-bottom:82px
         会把内容顶在上半部，下面空出一大段。 */
  /* 注意：<section class="hero screen"> 上还有一条 .hero.screen { height: 100% }
     （两个类，优先级高于 .hero），只改 .hero 会被它盖掉 —— 实测 height 仍是 100vh。
     所以这里用同样的两段选择器盖回去。 */
  .hero.screen,
  .hero { height: auto; min-height: auto; padding-bottom: 16px; }
  .hero__cover { position: absolute; inset: 0; }
  .hero__cover video { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__playRing { animation: none; opacity: 0; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
