/* 新主页只复用本站的导航、看板娘和全局播放器外壳。 */
@import url('./core/variables.css');
@import url('./layout/shell.css');
@import url('./features/music.css');
@import url('./components/live2d.css');
/* 弹窗（SiteModal）的基线样式。它此前只挂在 classic.css 下，而首页会把 classic.css
   整体设成 media="not all"，于是遮罩的 display:none / position:fixed 全部失效：
   未打开时退化成文档末尾的一行「⚠️」，打开时也弹不到屏幕中央。
   这份样式表没有 media 限制，挂在这里可以在两种页面模式下都生效。 */
@import url('./components/modal.css');
@import url('./features/home-refresh.css');
@import url('./features/home-template.css');
@import url('./components/quiet-controls.css');

body.journey-page {
    min-height: 100vh;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #fff;
}

body.journey-page #journey-home {
    padding: 0;
}

body.journey-page .journey-main,
body.journey-page #home {
    height: auto !important;
    min-height: 100svh;
    overflow: visible !important;
}

body.journey-page .main-content > .tab-content {
    display: none !important;
}

body.journey-page .main-content > #home.tab-content.active {
    display: block !important;
}

body.journey-page > .footer,
body.journey-page > .parallax-bg-wrapper,
.new-home-music-stubs {
    display: none !important;
}

body.journey-page .header-brand {
    display: flex;
}

body.journey-page .header-brand,
body.journey-page .header-brand:hover,
body.journey-page .header-brand:visited,
body.journey-page .header-brand *,
body.journey-page .drawer-menu .logo {
    text-decoration: none !important;
}

.header-brand,
.header-brand:hover,
.header-brand:focus,
.header-brand:visited,
.header-brand * {
    text-decoration: none !important;
}

body:not(.is-admin) .admin-only-nav {
    display: none !important;
}

/* 旅程首页模板的元素靠 journey.css 里的 display:none 隐藏，而切到其他 Tab 时
   journey.css 会被 main.js 改成 media="not all" 整体失效，元素就会退化成整条横栏
   落到文档底部（#musicPlayer 曾经如此；#mobileMenu 是同一原因，已从 index.html 删除）。
   再遇到同类残留元素，加到这个选择器列表里，不要各自散落规则。
   只在非首页隐藏：旅程首页仍需要 journey.css 和其中的播放器。 */
body:not(.journey-page) #musicPlayer {
    display: none !important;
}

body.journey-page .top-nav {
    bottom: auto !important;
    padding: 0 !important;
}

/* 5103 的全局 nav 规则不能参与本站抽屉的布局。 */
body.journey-page .drawer-nav {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    z-index: auto;
    display: block;
    padding: 18px 12px;
}

/* 进入原有功能页后，彻底撤销 5103 对通用 nav 标签的定位污染。 */
body.functional-page:not(.site-navigation) .top-nav {
    right: 20px !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    padding: 0 !important;
}

body.functional-page .drawer-nav {
    position: static;
    inset: auto;
    z-index: auto;
    display: block;
    padding: 18px 12px;
}

body.journey-page .sidebar-overlay,
body.journey-page .drawer-menu,
body.journey-page .hamburger-menu-btn,
body.journey-page .header-brand,
body.journey-page .top-nav,
body.journey-page .nav-search-panel {
    font-family: Georgia, "LXGW WenKai Lite", serif;
}

body.journey-page .floating-player {
    z-index: 10020;
}

body.journey-page #live2d-wrapper {
    z-index: 10010 !important;
}
