/*
 * 萌界工作室 V2.1 · 尺度与动态景深
 * 加载于 V2.0 主样式之后；保留原有页面结构及品牌排版。
 * 动态原则：只在大面积视觉区轻运动，不对阅读中的文字做连续动画。
 */
:root {
  --side: clamp(24px, 4.4vw, 76px);
  --max: 1360px;
}

/* 01 / 全站视觉密度：标题不再霸占视口，段落与导航仍然易读 */
.mast { height: 76px; }
.mast.is-scrolled { height: 66px; }
.mast-inner { gap: 22px; }
.identity { min-width: 175px; }
.identity-mark { width: 30px; }
.identity-text b { font-size: 15px; }
.main-nav { gap: clamp(10px, 1.1vw, 21px); }
.nav-primary, .nav-combo { font-size: 12px; }
.nav-primary.is-current:after { bottom: 15px; }
.nav-panel { padding-top: 26px; padding-bottom: 26px; }
.nav-panel-intro strong { font-size: 22px; margin: 12px 0; }
.nav-panel-links>a { padding-top: 11px; padding-bottom: 11px; }
.button { min-height: 48px; min-width: 165px; padding: 0 20px; font-size: 13px; }
.line-link { min-width: 175px; font-size: 13px; }
.section-head { margin-bottom: 40px; gap: 36px; }
.section-head h2, .content-heading { font-size: clamp(30px, 3.55vw, 56px); margin-top: 15px; line-height: 1.35; }
.section-head>p { font-size: 14px; line-height: 1.88; }
.eyebrow, .serial { font-size: 11px; }

/* 02 / 首页首屏 */
.home-hero { height: min(760px, 88svh); min-height: 570px; }
.home-copy { width: min(680px, 77%); padding-top: 42px; }
.home-copy h1 { font-size: clamp(52px, 6.2vw, 88px); margin: 24px 0 15px; line-height: 1.22; }
.home-hero-en { margin-bottom: 19px; font-size: 10px; }
.home-hero-desc { max-width: 490px; font-size: 14px; line-height: 1.95; }
.hero-actions { margin-top: 26px; gap: 12px; }
.hero-trace { top: 114px; }
.hero-counter { bottom: 90px; font-size: 20px; }
.home-hero-base { bottom: 24px; }

/* 03 / 缩减文章区块留白，而不是缩小阅读文字到难以辨认 */
.editorial { padding: 95px 0 100px; }
.editorial-layout { grid-template-columns: 24% 1fr; gap: 42px; }
.editorial-small .vertical-rule { height: 74px; }
.display-heading { font-size: clamp(35px, 4.25vw, 62px); line-height: 1.38; }
.editorial-bottom { margin-top: 43px; padding-top: 24px; gap: 35px; }
.editorial-bottom p { font-size: 14px; line-height: 2; }
.editorial-bottom .line-link { flex-basis: 185px; }
.showcase { padding: 86px 0 105px; }
.feature-strips { gap: 14px; }
.feature-strip { min-height: 326px; }
.feature-strip-image { min-height: 326px; }
.feature-strip-detail { padding: clamp(24px, 3.25vw, 48px); }
.feature-strip-detail>p { margin: 28px 0 8px; }
.feature-strip-detail h3 { font-size: clamp(29px, 3.25vw, 46px); margin-bottom: 12px; }
.feature-strip-detail strong { font-size: 14px; }
.feature-cta { padding-top: 20px; }
.section-tail { margin-top: 34px; }
.approach, .journal-peek { padding: 95px 0 105px; }
.approach-lead { margin-bottom: 40px; }
.approach-lead .display-heading { margin-top: 23px; }
.approach-grid a { min-height: 245px; padding-top: 30px; padding-bottom: 24px; }
.approach-grid h3 { font-size: 23px; margin: 24px 0 10px; }
.approach-grid p { font-size: 13px; line-height: 1.9; }
.manifesto { min-height: 480px; padding: 90px 0; }
.manifesto blockquote { font-size: clamp(31px, 3.85vw, 57px); margin: 32px 0 20px; }
.manifesto-lines { font-size: 200px; }
.editorial-articles a { min-height: 240px; padding-top: 31px; padding-bottom: 30px; }
.editorial-articles h3 { font-size: 23px; margin-top: 18px; }
.end-invite { padding: 87px 0; }
.end-invite h2 { font-size: clamp(38px, 4vw, 60px); }
.end-invite p { font-size: 14px; }

/* 04 / 内页：顶部标题与内容布局的尺度同步收紧 */
.inner-hero { min-height: 445px; padding-top: 76px; }
.inner-hero-content { padding-top: 83px; padding-bottom: 80px; }
.inner-hero h1 { font-size: clamp(44px, 5.2vw, 76px); margin: 20px 0 21px; }
.inner-hero-content>p { font-size: 14px; line-height: 2; max-width: 620px; }
.inner-hero-sub { margin-top: 17px; }
.page-section { padding: 88px 0 100px; }
.two-part { gap: 35px; }
.two-part p { font-size: 14px; line-height: 2.05; }
.research-hubs>a { padding: 27px 24px 23px; min-height: 265px; }
.research-hubs h3 { font-size: 23px; margin: 19px 0 11px; }
.research-hubs p { font-size: 13px; }
.research-hubs b { padding-top: 19px; }
.discipline { min-height: 110px; padding: 29px 2px; }
.discipline h3 { font-size: 21px; }
.paper-list li { font-size: 14px; }
.product-hero { height: min(685px, 84svh); min-height: 550px; }
.product-hero-inside { padding-top: 108px; padding-bottom: 48px; position: relative; z-index: 2; }
.product-hero h1 { font-size: clamp(54px, 6.4vw, 94px); margin: 24px 0 35px; }
.product-name { font-size: 23px; }
.game-declaration { gap: 58px; }
.game-declaration h2 { font-size: clamp(31px, 3.5vw, 52px); margin: 26px 0; }
.game-declaration .lead-text { margin-bottom: 30px; }
.lead-text { font-size: clamp(18px, 1.75vw, 24px)!important; }
.facts>div { padding: 13px 0; }
.focus-grid { margin-top: 42px; }
.focus-grid article { padding: 27px 24px 29px; min-height: 190px; }
.focus-grid h3 { font-size: 21px; margin: 28px 0 12px; }
.concept-section { padding: 82px 0; }
.concept-grid { gap: 50px; }
.concept-grid h2 { font-size: clamp(30px, 3.25vw, 48px); }
.end-article h2 { font-size: clamp(33px, 3.5vw, 49px); }
.phase-timeline { margin-top: 43px; }
.phase-timeline>div { min-height: 240px; padding: 25px 22px; }
.phase-timeline h3 { font-size: 22px; margin: 42px 0 10px; }
.articles-list>a { padding: 31px 0; }
.articles-list h3 { font-size: 25px; margin: 12px 0 9px; }
.article-hero { padding: 137px 0 46px; }
.article-hero h1 { font-size: clamp(38px, 4.6vw, 67px); margin: 28px 0 19px; }
.article-hero-bottom { margin-top: 52px; }
.article-layout { gap: 46px; }
.article-preface { font-size: 21px!important; }
.article-body section { padding: 25px 0; }
.article-body h2 { font-size: 24px; }
.article-body p { font-size: 15px; line-height: 2.1; }
.faq-layout { gap: 45px; }
.faq-layout h2 { font-size: clamp(31px, 3.4vw, 51px); }
.faq-items summary { font-size: 16px; padding: 20px 0; }
.contact-composition { gap: 60px; }
.contact-composition p { font-size: 14px; }
.contact-aside a, .contact-aside strong { font-size: 18px; }
.legal-copy { gap: 46px; }
.legal-copy article h2 { font-size: 29px; }
.legal-copy article p { font-size: 15px; }
.footer { padding-top: 75px; }
.footer-top { gap: 55px; padding-bottom: 58px; }
.footer-slogan { font-size: clamp(29px, 2.7vw, 42px); }
.footer-directory { gap: 20px; }
.notfound { padding-top: 150px; }
.notfound strong { font-size: clamp(95px, 14vw, 210px); }
.notfound h1 { font-size: clamp(39px, 5vw, 64px); }

/* 05 / 实际动态背景：主视觉慢速推进、流光和微光粒子层。文字始终稳定。 */
.home-hero-art, .product-bg, .inner-hero-art {
  transform-origin: center center;
  animation: scene-breathe 21s ease-in-out infinite alternate;
}
.home-hero::before, .product-hero::before, .inner-hero::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 36% 48% at 76% 43%, rgba(202,164,122,.20), transparent 72%),
              radial-gradient(ellipse 30% 53% at 60% 84%, rgba(72,124,166,.15), transparent 80%);
  filter: blur(22px);
  animation: ambient-wander 19s ease-in-out infinite alternate;
}
.home-hero::after, .product-hero::after, .inner-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  z-index: 0;
  opacity: .20;
  background: linear-gradient(111deg, transparent 37%, rgba(255,228,190,.10) 48%, transparent 57%);
  background-size: 260% 100%;
  animation: soft-sweep 17s linear infinite;
}
.ambient-particles { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.home-hero-inner, .hero-trace, .home-hero-base, .inner-hero-content, .inner-hero-bottom, .product-hero-inside, .concept-tag { z-index: 2; }
.inner-hero-content { position: relative; }
.inner-hero-grid { animation: grid-drift 28s ease-in-out infinite alternate; }
.product-empire::before { background: radial-gradient(ellipse 46% 55% at 76% 50%,rgba(205,136,79,.27),transparent 76%); }
.product-xuanling::before { background: radial-gradient(ellipse 42% 45% at 67% 50%,rgba(96,166,160,.22),transparent 78%); }
.product-voxel::before { background: radial-gradient(ellipse 44% 55% at 72% 48%,rgba(197,156,201,.22),transparent 76%); }
.manifesto::before {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 0;
  width: 70vw;
  height: 70vw;
  max-width: 1050px;
  max-height: 1050px;
  right: -19%; top: -48%;
  background: radial-gradient(circle, rgba(140,110,81,.24), rgba(64,111,135,.10) 35%, transparent 67%);
  filter: blur(10px);
  animation: ambient-wander 25s ease-in-out infinite alternate;
}
.manifesto-lines { animation: typography-drift 24s ease-in-out infinite alternate; }

@keyframes scene-breathe {
  0%   { transform: scale(1.015) translate3d(-.4%,0,0); }
  100% { transform: scale(1.075) translate3d(1.1%,-.6%,0); }
}
@keyframes ambient-wander {
  0%   { transform: translate3d(-5%, 2%,0) rotate(-6deg); opacity: .55; }
  100% { transform: translate3d(7%,-5%,0) rotate(8deg); opacity: 1; }
}
@keyframes grid-drift {
  from { transform: skewX(-11deg) scale(1.1) translate3d(-1%,0,0); }
  to   { transform: skewX(-11deg) scale(1.1) translate3d(2.5%,-1%,0); }
}
@keyframes soft-sweep {
  from { background-position: 110% 0; }
  to   { background-position: -110% 0; }
}
@keyframes typography-drift {
  from { transform: translateY(0); }
  to   { transform: translateY(-24px); }
}

/* 06 / 平板：视觉比例独立收敛，避免桌面规则覆盖原响应式。 */
@media(max-width:1160px) {
  .mobile-drawer { padding-top: 76px; }
  .mast.is-scrolled .mobile-drawer { padding-top: 66px; }
}
@media(max-width:900px) {
  :root { --side: clamp(22px, 5vw, 48px); }
  .home-hero { min-height: 550px; height: 83svh; }
  .home-copy { width: 100%; }
  .home-copy h1 { font-size: clamp(46px, 7vw, 72px); }
  .editorial, .showcase, .approach, .journal-peek { padding: 74px 0 84px; }
  .section-head { gap: 22px; }
  .feature-strip { min-height: 295px; }
  .feature-strip-image { min-height: 295px; }
  .feature-strip-detail { padding: 26px; }
  .feature-strip-detail h3 { font-size: 30px; }
  .inner-hero { min-height: 420px; }
  .inner-hero-content { padding-top: 72px; padding-bottom: 75px; }
  .page-section { padding: 75px 0 80px; }
  .concept-grid, .game-declaration { gap: 35px; }
  .footer-top { gap: 32px; }
}
@media(max-width:650px) {
  :root { --side: 20px; }
  .mast { height: 65px; }
  .mast.is-scrolled { height: 61px; }
  .identity-mark { width: 27px; }
  .identity-text b { font-size: 13px; }
  .mobile-drawer { padding-top: 65px; }
  .mast.is-scrolled .mobile-drawer { padding-top: 61px; }
  .mobile-single, .mobile-row { min-height: 58px; font-size: 18px; }
  .mobile-sub a { font-size: 14px; padding: 11px 5px; }
  .home-hero { min-height: 555px; height: 83svh; }
  .home-copy { padding-top: 35px; }
  .home-copy .eyebrow { font-size: 10px; }
  .home-copy h1 { font-size: clamp(42px, 10.3vw, 57px); margin: 20px 0 13px; line-height: 1.27; }
  .home-hero-en { font-size: 9px; margin-bottom: 15px; letter-spacing: .13em; }
  .home-hero-desc { font-size: 12.5px; line-height: 1.9; max-width: 330px; }
  .hero-actions { margin-top: 22px; gap: 9px; }
  .button { min-height: 46px; min-width: unset; padding: 0 13px; font-size: 12px; gap: 10px; }
  .home-hero-base { bottom: 18px; font-size: 9px; }
  .editorial, .showcase, .approach, .journal-peek { padding: 62px 0 72px; }
  .display-heading { font-size: clamp(28px, 7.4vw, 39px); line-height: 1.46; }
  .editorial-bottom { margin-top: 26px; }
  .editorial-bottom p { font-size: 13px; }
  .section-head { margin-bottom: 26px; }
  .section-head h2 { font-size: clamp(28px, 7vw, 38px); line-height: 1.4; }
  .section-head>p { font-size: 12.5px; }
  .feature-strips { gap: 16px; }
  .feature-strip { min-height: 0; }
  .feature-strip-image { min-height: 0; aspect-ratio: 1.52; }
  .feature-strip-detail { padding: 20px 22px; min-height: 252px; }
  .feature-strip-detail>p { margin: 18px 0 7px; }
  .feature-strip-detail h3 { font-size: 29px; margin-bottom: 10px; }
  .feature-strip-detail strong { font-size: 12.5px; }
  .feature-cta { padding-top: 13px; margin-top: 20px; }
  .approach-grid a { min-height: 192px; padding: 20px 0!important; }
  .approach-grid h3 { font-size: 21px; margin: 14px 0 9px; }
  .approach-grid p { font-size: 13px; }
  .manifesto { min-height: 385px; padding: 65px 0; }
  .manifesto blockquote { font-size: clamp(28px, 7vw, 34px); margin: 25px 0; }
  .manifesto-lines { font-size: 100px; }
  .editorial-articles a, .editorial-articles a+a { min-height: 214px; padding: 23px 0; }
  .editorial-articles h3 { font-size: 21px; }
  .end-invite { padding: 62px 0; }
  .end-invite h2 { font-size: 36px; }
  .inner-hero { padding-top: 65px; min-height: 370px; }
  .inner-hero-content { padding: 80px 0 70px; }
  .inner-hero h1 { font-size: clamp(39px, 9.4vw, 53px); margin: 16px 0; }
  .inner-hero-content>p { font-size: 12.5px; line-height: 1.9; }
  .inner-hero-bottom { bottom: 17px; }
  .page-section { padding: 60px 0 72px; }
  .content-heading { font-size: clamp(28px, 7.2vw, 41px); }
  .two-part p { font-size: 13px; }
  .research-hubs>a { min-height: 224px; padding: 23px; }
  .research-hubs h3 { font-size: 23px; }
  .discipline { padding: 25px 0; min-height: 0; }
  .discipline h3 { font-size: 19px; }
  .product-hero { height: 78svh; min-height: 535px; }
  .product-hero-inside { padding-top: 90px; padding-bottom: 33px; }
  .product-hero h1 { font-size: clamp(43px, 10.5vw, 62px); margin: 17px 0 35px; }
  .product-name { font-size: 21px; }
  .concept-tag { top: 88px; }
  .game-declaration h2 { font-size: 32px; margin: 20px 0; }
  .game-declaration .lead-text { margin: 18px 0 26px; }
  .lead-text { font-size: 18px!important; }
  .focus-grid { margin-top: 30px; }
  .focus-grid article { min-height: 166px; padding: 23px; }
  .focus-grid h3 { font-size: 20px; margin: 19px 0 10px; }
  .concept-section { padding: 57px 0; }
  .concept-grid h2 { font-size: 31px; }
  .end-article h2 { font-size: 32px; }
  .phase-timeline { margin-top: 30px; }
  .phase-timeline>div { min-height: 202px; padding: 20px 15px; }
  .phase-timeline h3 { font-size: 20px; margin: 27px 0 9px; }
  .articles-list>a { padding: 25px 0; }
  .articles-list h3 { font-size: 21px; }
  .article-hero { padding-top: 117px; }
  .article-hero h1 { font-size: clamp(36px, 8.2vw, 49px); margin: 20px 0; }
  .article-hero-bottom { margin-top: 35px; }
  .article-body p { font-size: 14px; }
  .article-preface { font-size: 19px!important; }
  .faq-layout h2 { font-size: 30px; }
  .faq-items summary { font-size: 15px; }
  .contact-composition p { font-size: 13px; }
  .contact-aside a, .contact-aside strong { font-size: 16px; }
  .legal-copy article h2 { font-size: 26px; }
  .legal-copy article h3 { font-size: 19px; }
  .legal-copy article p { font-size: 14px; }
  .footer { padding: 53px 0 24px; }
  .footer-top { padding-bottom: 43px; }
  .footer-slogan { font-size: 31px; }
  .notfound { padding: 140px 0 75px; }
  .notfound strong { font-size: 122px; }
  .notfound h1 { font-size: 39px; }
  /* 手机上动态更克制：保留场景呼吸，移除较大面积的扫光。 */
  .home-hero::after, .product-hero::after, .inner-hero::after { opacity: .08; }
  .home-hero::before, .product-hero::before, .inner-hero::before { filter: blur(12px); }
}
@media(max-width:380px) {
  .home-copy h1 { font-size: 40px; }
  .hero-actions .button { padding: 0 10px; font-size: 11px; }
  .product-hero h1 { font-size: 41px; }
  .mobile-single, .mobile-row { font-size: 17px; }
}
/* 07 / 无障碍及能耗控制：系统设置“减少动态效果”时完全静止 */
@media(prefers-reduced-motion:reduce) {
  .home-hero-art, .product-bg, .inner-hero-art,
  .home-hero::before, .home-hero::after, .product-hero::before, .product-hero::after,
  .inner-hero::before, .inner-hero::after, .inner-hero-grid,
  .manifesto::before, .manifesto-lines { animation: none!important; }
  .home-hero-art, .product-bg, .inner-hero-art { transform: none!important; }
}
/* 页面在后台标签页不执行 CSS 动画；JS 部分会同步停止重绘 */
.site-hidden .home-hero-art, .site-hidden .product-bg, .site-hidden .inner-hero-art,
.site-hidden .home-hero::before, .site-hidden .home-hero::after,
.site-hidden .product-hero::before, .site-hidden .product-hero::after,
.site-hidden .inner-hero::before, .site-hidden .inner-hero::after,
.site-hidden .inner-hero-grid, .site-hidden .manifesto::before, .site-hidden .manifesto-lines {
  animation-play-state: paused;
}
