/*
Theme Name: Yorushika Clone
Author: Gemini
Description: A minimalist theme inspired by yorushika.com
*/

:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --border-color: #eeeeee;
    --accent-color: #999999;
}

html {
    overflow-x: hidden; /* 彻底杜绝由于内容向右平移导致的底部横向滚动条 */
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Noto Serif SC", "Noto Serif JP", "Songti SC", "Times New Roman", serif;
    line-height: 1.8;
    letter-spacing: 0.05em;
    overflow-x: hidden; /* 彻底杜绝由于内容向右平移导致的底部横向滚动条 */
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* 固定在左侧的侧边栏 */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh; /* 满屏高度 */
    padding: 60px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    border-right: 1px solid var(--border-color); /* 原来的底边框改为右边框 */
    z-index: 100;
}

.site-title {
    font-size: 24px;
    font-weight: normal;
    letter-spacing: 0.2em;
    margin-bottom: 60px; /* 标题和菜单之间增加留白 */
}

.site-nav {
    display: flex;
    flex-direction: column; /* 菜单变为纵向排列 */
    gap: 25px; /* 菜单项之间的间距 */
}

.site-nav a {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-left: 0; /* 移除之前的水平边距 */
}

/* 右侧主内容区域 */
#main-content {
    margin-left: 260px; /* 为左侧侧边栏留出空间 (等于侧边栏宽度) */
    width: calc(100% - 260px);
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 900px;
    margin: 80px auto; /* 增加上下留白 */
    padding: 0 40px;
    flex-grow: 1; /* 让 footer 自动沉底 */
}

/* NEWS 列表样式 */
.news-list {
    list-style: none;
    padding: 0;
}
.news-list li {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    display: flex;
    align-items: baseline;
}
.news-date {
    font-size: 14px;
    color: var(--accent-color);
    width: 150px;
}
.news-title {
    font-size: 16px;
}

/* 唱片/歌词网格视图 (Grid) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
}
/* =========================================
   3. 列表页：滚动浮现动画 (Scroll Reveal)
========================================= */
.grid-item {
    text-align: center;
    opacity: 0; /* 初始状态全透明隐藏 */
    transform: translateY(40px); /* 初始状态往下沉 40px */
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 当 JS 判定元素进入屏幕后，会给它加上这个 class */
.grid-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.grid-item img {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

/* =========================================
   2. 解决图片加载时的排版偏移 & 悬停遮罩
========================================= */
.image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1; 
    background-color: #f5f5f5; 
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: relative; 
}

.image-wrap img,
.image-wrap .placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.grid-item:hover .image-wrap img {
    transform: scale(1.05);
}

/* 悬停暗色遮罩底层 */
.hover-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.15); 
    opacity: 0; 
    transition: opacity 0.4s ease;
    z-index: 10;
}

.grid-item:hover .hover-info {
    opacity: 1;
}

/* 左上角：文章标题 (增加从上往下滑入的位移动画) */
.hover-title {
    position: absolute;
    top: 15px;
    left: 15px;
    max-width: 63%;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 6px 12px;
    font-size: 13px;
    letter-spacing: 0.1em;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    
    /* 初始状态：往上偏移 15px 且全透明 */
    transform: translateY(-15px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

/* 右下角：发布时间 (增加从下往上滑入的位移动画) */
.hover-date {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: var(--text-color); 
    color: var(--bg-color); 
    padding: 5px 10px;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    
    /* 初始状态：往下偏移 15px 且全透明 */
    transform: translateY(15px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    transition-delay: 0.05s; /* 比标题晚一点点出现，增加层次感 */
}

/* 鼠标悬停时，文字归位并显现 */
.grid-item:hover .hover-title,
.grid-item:hover .hover-date {
    transform: translateY(0);
    opacity: 1;
}

/* 文章详情 (Post) */
.post-header {
    text-align: center;
    margin-bottom: 50px;
}
.post-content {
    max-width: 600px;
    margin: 0 auto;
}

/* Linktree 风格按钮 (Discography 专用) */
.category-discography .post-content ul {
    list-style: none;
    padding: 0;
}
.category-discography .post-content ul li {
    margin-bottom: 15px;
}
.category-discography .post-content ul li a {
    display: block;
    padding: 15px;
    border: 1px solid var(--text-color);
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s;
}
.category-discography .post-content ul li a:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

#footer {
    text-align: center;
    padding: 40px 0;
    font-size: 12px;
    color: var(--accent-color);
}

/* 艺人分类筛选菜单 */
.category-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.category-filter a {
    font-size: 13px;
    color: var(--accent-color);
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
}

.category-filter a.active {
    color: var(--text-color);
}

/* 优雅的下划线动画效果 */
.category-filter a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

.category-filter a:hover::after,
.category-filter a.active::after {
    width: 100%;
}

/* =========================================
   全局修改与菜单交互
========================================= */
body.menu-open {
    overflow: hidden; /* 展开菜单时禁止底层滚动 */
    padding-right: calc(100vw - 100%); /* 核心修复：自动补偿右侧垂直滚动条消失造成的宽度差，防止页面跳动 */
}

/* 汉堡按钮 */
#menu-toggle {
    position: fixed;
    top: 40px;
    left: 40px;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    mix-blend-mode: difference;
    z-index: 1000;
}
#menu-toggle span {
    display: block;
    height: 1px;
    width: 100%;
    background-color: #fff !important;
    transition: all 0.3s ease;
}

/* =========================================
   汉堡菜单 (Menu Toggle) 悬停高级微交互
========================================= */

/* 1. 先赋予所有菜单线条极度丝滑的过渡动画曲线 */
#menu-toggle span {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease !important;
}

/* 2. 悬停时：最上面那条线优雅地向右错位 4px */
#menu-toggle:hover span:first-child {
    transform: translateX(4px);
}

/* 3. 悬停时：中间的线（如果是三杠菜单）稍微变淡一点，增加层次感 */
#menu-toggle:hover span:nth-child(2) {
    opacity: 0.5;
}

/* 4. 悬停时：最下面那条线向左错位 4px，与第一条线形成呼应 */
#menu-toggle:hover span:last-child {
    transform: translateX(-4px);
}

/* 汉堡按钮被点击时变成 'X' */
#menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
#menu-toggle.active span:nth-child(2) { opacity: 0; }
#menu-toggle.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* 居中标题 */
#header-mobile {
    text-align: center;
    padding: 40px 0 20px 0;
}
#header-mobile .site-title {
    margin-bottom: 0;
    font-size: 20px;
}

/* 覆盖式侧边面板 */
#overlay-menu {
    position: fixed;
    top: 0;
    left: -350px;
    width: 320px;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 999;
    box-shadow: 2px 0 15px rgba(0,0,0,0.03);
    padding: 100px 50px;
    box-sizing: border-box;
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}
#overlay-menu.active { left: 0; }
#overlay-menu .site-title { margin-bottom: 60px; font-size: 22px; letter-spacing: 0.2em; }
#overlay-menu .site-nav { display: flex; flex-direction: column; gap: 30px; }
#overlay-menu .site-nav a { font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; margin: 0; }
/* =========================================
   1. 高级下划线：左进右出效果 (已修复)
========================================= */

/* 核心修复点：增加了 position: relative 和 display: inline-block */
#overlay-menu .site-nav a,
.category-filter-vertical a {
    position: relative; /* 最关键的一行！限制下划线只能在文字内部活动 */
    display: inline-block;
    width: fit-content; 
    text-decoration: none;
}

/* 初始状态（取消选中时）：从右边收回 */
#overlay-menu .site-nav a::after,
.category-filter-vertical a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-color);
    
    transform: scaleX(0);
    transform-origin: right; /* 默认基点在右：当鼠标移走时，线条向右边收缩 */
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

/* 悬停状态（选中时）：从左边划出 */
#overlay-menu .site-nav a:hover::after,
.category-filter-vertical a:hover::after,
.category-filter-vertical a.active::after {
    transform: scaleX(1);
    transform-origin: left; /* 悬停时基点变到左边：线条从左边开始生长 */
}

/* 透明遮罩 */
#menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
#menu-backdrop.active { opacity: 1; visibility: visible; }

/* ======== 新增：页面整体推移效果 ======== */
#main-content {
    margin: 0;
    width: 100%;
    /* 增加动画过渡，与菜单的缓动效果保持一致 */
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

/* 当菜单展开时，整个主内容向右推移 30px */
body.menu-open #main-content {
    transform: translateX(30px);
}

.container {
    max-width: 900px;
    margin: 80px auto; /* 因为顶部去掉了标题，可以适当增加页首留白 */
    padding: 0 40px;
}

/* =========================================
   Discography 专属的侧栏布局
========================================= */
.disco-layout {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: flex-start;
}

.disco-sidebar {
    width: 150px;
    flex-shrink: 0;
    position: sticky;
    top: 100px; 
}

.category-filter-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.category-filter-vertical a {
    font-size: 13px;
    color: var(--accent-color);
    letter-spacing: 0.15em;
    /* position: relative; 和 width 已经在前面的高级动画里统一定义过了，这里不需要再写 */
}
.category-filter-vertical a.active { color: var(--text-color); }

/* 注意：这里把残留的旧 ::after 代码删掉了，这样它就会乖乖去执行上面那个高级的滑动动画了！ */

.disco-content { flex-grow: 1; }

/* =========================================
   移动端响应式 (手机屏幕适配)
========================================= */
@media (max-width: 768px) {
    #menu-toggle { top: 25px; left: 25px; }
    #overlay-menu { width: 80%; left: -100%; padding: 80px 40px; }
    
    /* 手机端偏移幅度可以缩小一点，避免屏幕溢出太多 */
    body.menu-open #main-content {
        transform: translateX(15px);
    }

    .container { margin-top: 60px; padding: 0 20px; }
    .disco-layout { flex-direction: column; gap: 30px; }
    .disco-sidebar { width: 100%; position: static; }
    .category-filter-vertical { flex-direction: row; flex-wrap: wrap; gap: 15px 25px; }
}

/* =========================================
   3. 专辑详情：全屏首屏沉浸式设计 (Hero Section)
========================================= */
.post-hero {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: var(--bg-color);
    overflow: hidden; /* 防止模糊溢出产生滚动条 */
}

/* 高级半屏模糊背景 */
.hero-bg-blur {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%; /* 占据右边一半的屏幕 */
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(80px); /* 极度模糊，变成光晕效果 */
    opacity: 0.4; /* 降低透明度，保持极简感 */
    z-index: 1; /* 置于底层 */
    transform: scale(1.2); /* 稍微放大避免边缘露底 */
}

/* 悬浮在正中央的巨大封面 */
.hero-cover {
    width: 80%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15); /* 加深了阴影，增强悬浮感 */
    z-index: 2; /* 置于模糊背景之上 */
    position: relative;
}

.hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 左下角的极简发行日期 */
.hero-date {
    position: absolute;
    bottom: 60px;
    left: 80px; /* 与页面的左边距对齐 */
    font-size: 11px;
    letter-spacing: 0.25em;
    mix-blend-mode: difference;
    color: #fff !important;
    z-index: 2;
}

/* 底部引导向下滑动的动画组件 */
.scroll-down-indicator {
    position: absolute;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 2;
    cursor: pointer; /* 鼠标放上去变成小手，提示可点击 */
    mix-blend-mode: difference;
    z-index: 10;
    padding-bottom: 20px;
}

.scroll-down-indicator span {
    font-size: 10px;
    letter-spacing: 0.25em;
    color: #fff !important;
    transition: color 0.3s ease;
}

.scroll-down-indicator:hover span {
    color: var(--accent-color);
}

/* 优雅的下划线生长动画 */
.scroll-down-indicator .line {
    width: 1px;
    height: 60px;
    background-color: #fff !important;
    animation: lineDrop 2.5s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

/* =========================================
   2. 仅限首页大屏的 SCROLL 提示 (左下角方形竖排)
========================================= */
/* 在前面加上 .home-hero，把这个极简方块死死锁在首页，绝不影响专辑页！ */
.home-hero .scroll-down-indicator {
    position: absolute;
    bottom: 0;
    left: 0; 
    mix-blend-mode: normal !important; /* 首页关闭反色 */
    
    background-color: #ffffff; 
    padding: 30px 20px 20px 20px; 
    border-radius: 0; 
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.05); 
    
    display: flex;
    flex-direction: column;
    align-items: center;
    
    transform: none !important; 
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.home-hero .scroll-down-indicator:hover {
    background-color: #f2f2f2; 
    transform: none !important; 
}

/* 仅限首页的文字竖排 */
.home-hero .scroll-down-indicator span {
    color: #000 !important; 
    font-size: 11px;
    letter-spacing: 0.15em;
    font-weight: normal;
    
    writing-mode: vertical-rl !important;
    text-orientation: mixed;
    margin-bottom: 20px; 
}

/* 仅限首页的长线 */
.home-hero .scroll-down-indicator .line {
    background-color: #000 !important;
    width: 1px; 
    height: 60px; 
}

@keyframes lineDrop {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* 下滑后的正文内容重置上下边距，并加宽阅读区 */
.post-content-wrap {
    padding: 100px 20px;
    max-width: 800px; /* 从之前的 600px 放宽到了 800px，让两边更宽 */
    margin: 0 auto; /* 保证居中 */
}

/* 标题区域：改为居左，字体缩小 */
.post-header {
    text-align: left; /* 从 center 改为 left */
    margin-bottom: 50px;
}

.post-header h1 {
    font-size: 22px; /* 缩小标题字号 (原本默认通常很大) */
    font-weight: normal; /* 取消粗体，更显优雅 */
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

/* 新闻页面的时间显示：配合标题居左 */
.post-header time {
    font-size: 13px;
    color: var(--accent-color);
    letter-spacing: 0.1em;
}

/* 正文内容区域，让段落也有舒适的阅读宽度 */
.post-content {
    max-width: 100%; /* 填满上面的 800px 容器 */
}

/* 如果你的图片或内嵌元素之前被限制了宽度，这里确保它们能自适应变宽 */
.post-content img {
    max-width: 100%;
    height: auto;
}

/* ====== 手机端适配 ====== */
@media (max-width: 768px) {
    .hero-bg-blur {
        width: 100%; /* 手机屏幕小，模糊背景可以铺满全屏 */
        opacity: 0.3;
    }
}

/* 禁用画廊和首屏元素的文字选中，防止误触破坏沉浸感 */
.image-wrap, .hover-info, .hero-cover, .hero-bg-blur, .scroll-down-indicator, .home-hero-link {
    user-select: none;
    -webkit-user-select: none; /* 兼容 Safari */
}

/* =========================================
   主页专属样式 (Home Page)
========================================= */
.home-hero {
    width: 100%;
    height: 100vh;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* 当没有图片时的优雅底色（极简的高级灰） */
    background-color: #f8f9fa; 
    
    /* 让内容居中 */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 巧妙的占位设计：当没有插入图片时显示的骨架底纹和提示 */
.home-hero::before {
    content: 'HERO IMAGE NOT SET'; /* 提示语 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    opacity: 0.5;
    z-index: 1;
    pointer-events: none; /* 防止遮挡点击 */
}

/* 如果 .home-hero 被赋予了背景图片（意味着用户配置了），我们就把那句提示语隐藏掉 */
.home-hero[style*="background-image"]::before {
    display: none;
}

.home-hero-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
}

/* =========================================
   主页新闻区域样式
========================================= */
.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.section-header h2 {
    font-size: 16px;
    letter-spacing: 0.2em;
    font-weight: normal;
}

.view-all-btn {
    text-align: center;
    margin-top: 50px;
}

.view-all-btn a {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid var(--border-color);
    font-size: 12px;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
}

.view-all-btn a:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

/* =========================================
   Linktree 风格流媒体按钮 (专辑页面专用)
========================================= */
/* 强制隐藏默认黑点，并让整个列表区域居中 */
.album-post .post-content ul {
    list-style: none !important; /* 去除该死的黑点 */
    padding: 0;
    margin: 50px auto; /* 居中显示，并与上下内容保持 50px 的呼吸感距离 */
    max-width: 320px;  /* 限制最大宽度，让按钮显得修长精致，不会铺满全屏 */
}

.album-post .post-content ul li {
    margin-bottom: 15px;
}

/* 按钮的本体样式 */
.album-post .post-content ul li a {
    display: block;
    padding: 15px 20px;
    border: 1px solid var(--text-color); 
    text-align: center; 
    border-radius: 4px; 
    background-color: transparent;
    
    /* 【核心修复1】严禁使用 transition: all！只允许背景和文字颜色过渡，绝不唤醒 GPU 3D 加速 */
    transition: background-color 0.3s ease, color 0.3s ease; 
    
    font-size: 13px;
    letter-spacing: 0.15em;
    text-decoration: none;
}

/* 鼠标悬停时的黑白反转交互 */
.album-post .post-content ul li a:hover {
    background-color: var(--text-color);
    
    /* 【核心修复2】加入强力备用色和 !important，彻底解决悬停后文字变成黑色的消失惨案 */
    color: var(--bg-color, #ffffff) !important; 
    
    /* 【核心修复3】彻底删除 transform 和 box-shadow，永远告别页面顶部的奇怪残影和撕裂 */
}


/* =========================================
   STAFF / CREDIT 歌词幕后信息排版
========================================= */
/* =========================================
   歌词页面专属排版 (标题居中 + 歌词块居左)
========================================= */

/* 1. 强制歌词页和单曲页的标题绝对居中 */
.category-lyrics .post-title,
.category-songs .post-title {
    text-align: center !important;
    margin-bottom: 40px; /* 给标题和歌词之间留出呼吸感 */
}

/* 2. 歌词正文：文字靠左，文本块整体居中 */
.category-lyrics .post-content,
.category-songs .post-content {
    text-align: left; 
    white-space: pre-wrap; 
    
    /* 核心排版魔法：限制歌词最宽占据 600px，并在屏幕正中央显示 */
    max-width: 600px; 
    margin: 0 auto;   
}

/* 1. 强制歌词页和单曲页的标题绝对居中 (强化爆破版) */
.category-lyrics h1,
.category-lyrics h2,
.category-lyrics .post-title,
.category-lyrics .post-header,
.category-songs h1,
.category-songs h2,
.category-songs .post-title,
.category-songs .post-header {
    display: block !important; /* 强制变成区块元素 */
    width: 100% !important;    /* 强制占满一整行的宽度 */
    text-align: center !important; /* 在这一整行里绝对居中 */
    margin-bottom: 40px !important;
}

.staff-info {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color); /* 极简的顶部灰线 */
    font-size: 12px;
    color: var(--accent-color);
    text-align: left;
    
    /* 【核心修复】强制浏览器尊重你在后台敲打的每一个回车换行！ */
    white-space: pre-wrap; 
    
    /* 拉开行距，让名单看起来不那么拥挤，更显专业 */
    line-height: 2.2; 
    letter-spacing: 0.08em;
}

/* =========================================
   专辑曲目列表 (Tracklist) 专属排版 (整行交互完美版)
========================================= */
.album-post .post-content ol {
    list-style: none; 
    padding: 0;
    margin: 60px auto;
    max-width: 500px; 
    text-align: left !important; 
    counter-reset: track-counter; 
}

.album-post .post-content ol li {
    counter-increment: track-counter;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color); 
    display: flex;
    align-items: center;
    position: static; /* 核心：取消 li 的定位，把主导权交给 a 标签 */
    font-size: 14px;
    transition: border-color 0.3s ease; 
}

/* 曲目序号 (01., 02....) */
.album-post .post-content ol li::before {
    content: counter(track-counter, decimal-leading-zero) ".";
    font-size: 11px;
    color: var(--accent-color);
    margin-right: 20px;
    letter-spacing: 0.1em;
    font-family: "Times New Roman", serif; 
    transition: color 0.3s ease;
    position: relative;
    z-index: 1; /* 保证数字不会被鼠标判定层盖住 */
}

/* 【核心修复一】让 a 标签撑开成一个“霸道总裁”，占满全行 */
.album-post .post-content ol li a {
    flex: 1; /* 这一句最关键！强行拉伸占满右侧所有剩余空间 */
    display: block; 
    position: relative !important; /* 强制作为右侧箭头的唯一灯塔基准 */
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    
    padding-left: 0; /* 我们用内边距做动画，不用 transform，绝不抖动 */
    transform: none !important; 
}

/* 隐形点击热区：现在 a 已经是全宽了，向左延伸盖住数字即可 */
.album-post .post-content ol li a::before {
    content: '';
    position: absolute;
    top: -15px;
    bottom: -15px;
    left: -40px; /* 往左延伸盖住 01. 02. */
    right: -10px; /* 往右稍微延伸，保证盲点区域也能点 */
    z-index: 10;
    cursor: pointer;
}

/* 【核心修复二】真正的高级日系半箭头（只有横线和上半部分） */
.album-post .post-content ol li a::after {
    content: '';
    position: absolute;
    right: 15px; /* 箭头最终停留在距离右侧 15px 的位置 */
    top: 50%;
    margin-top: -2px; /* 微调箭头的垂直高度，使其与文字居中 */
    
    width: 20px; /* 箭头的长干（横线）长度，越长越优雅 */
    height: 5px; /* 箭头尖端翘起的高度 */
    
    /* 我们只画一条底边和一条右边 */
    border-bottom: 1px solid var(--text-color); 
    border-right: 1px solid var(--text-color); 
    
    /* 几何魔法：利用倾斜（skewX）将原本垂直的右边框，硬生生拉扯成完美的 45 度倒钩斜线！ */
    transform: translateX(-15px) skewX(45deg); 
    opacity: 0; 
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* =========================================
   神级悬停交互 (Hover)
========================================= */

/* 1. 只要鼠标进入【整行】，文字向右滑动（使用 padding，外层点击框稳如泰山） */
.album-post .post-content ol li:hover a {
    color: var(--accent-color);
    padding-left: 8px; 
}

/* 2. 鼠标进入【整行】时，半箭头滑出（注意必须保持 skewX 倾斜属性） */
.album-post .post-content ol li:hover a::after {
    opacity: 1;
    transform: translateX(0) skewX(45deg); 
}

/* 3. 细节：悬停在带有链接的行时，前面的数字也微微亮起 */
.album-post .post-content ol li:has(a):hover::before {
    color: var(--text-color);
}

/* =========================================
   右下角直角社交面板 (呼应左下角)
========================================= */
.fixed-social-panel {
    position: fixed;
    bottom: 0;
    right: 0; /* 绝对贴死右下角，毫无保留 */
    z-index: 999;
    
    /* 纯粹的直角方块背景 */
    background-color: #ffffff; 
    padding: 25px 15px; /* 上下留白多一点，左右紧凑，呈长条状 */
    border-radius: 0; /* 绝对的几何感 */
    
    /* 左侧加一点点极弱的阴影，与左下角的 SCROLL 面板呈镜像对称 */
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.05); 
    
    display: flex;
    flex-direction: column; /* 强制图标竖排 */
    align-items: center;
    gap: 25px; /* 图标之间的均匀间距 */
}

/* 链接容器：不加任何背景色和背景悬停变化 */
.fixed-social-panel a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    color: #000; /* 图标默认纯黑 */
    text-decoration: none;
}

/* 图标本体：赋予动画神经 */
.fixed-social-panel a svg {
    width: 18px;
    height: 18px;
    /* 贝塞尔曲线控制图标形变，ease 控制颜色渐变 */
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s ease;
}

/* 神级悬停交互：面板背景完全不动，只有被选中的小图标发生跳动和变色 */
.fixed-social-panel a:hover svg {
    transform: scale(1.3) translateY(-2px); /* 图标本身放大 1.3 倍并微微上浮 */
    color: var(--accent-color); /* 颜色变成你在主题里设定的强调色（高级灰） */
}

/* =========================================
   404 错误页面专属排版 (极简日系)
========================================= */
.error-page-wrap {
    /* 强行撑开视口高度，减去头部尾部后，让内容完美垂直居中 */
    min-height: 70vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--bg-color);
}

.error-page-inner {
    padding: 20px;
}

/* 404 大数字：极细、极淡、富有空间感 */
.error-code {
    font-size: 90px;
    font-weight: 200; /* 使用超细字体 */
    letter-spacing: 0.1em;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 15px;
    opacity: 0.9;
}

/* 英文标题 */
.error-title {
    font-size: 13px;
    letter-spacing: 0.25em;
    color: var(--text-color);
    margin-bottom: 10px;
}

/* 日文小字副标题：拉开色彩层级，使用你的强调灰色 */
.error-subtitle {
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--accent-color, #888);
    margin-bottom: 50px;
}

/* 返回首页的直角按钮：完美契合你流媒体列表的极简视觉 */
.back-home-btn {
    display: inline-block;
    padding: 13px 35px;
    border: 1px solid var(--text-color);
    border-radius: 0; /* 彻底移除圆角，硬朗直角 */
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--text-color);
    text-decoration: none;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 按钮悬停：瞬间黑白反转交互 */
.back-home-btn:hover {
    background-color: var(--text-color);
    color: var(--bg-color) !important;
}

/* 手机端适配：垂直堆叠布局 */
@media (max-width: 768px) {
    /* 强制整个英雄区块的内容水平居中 */
    .post-hero {
        display: flex;
        flex-direction: column; /* 手机上垂直排列 */
        justify-content: center; /* 垂直居中 */
        align-items: center;     /* 水平居中 (关键！) */
        width: 100%;
        text-align: center;      /* 确保文字也居中 */
    }
    
    /* 确保内部所有元素都自动居中 */
    .post-hero > * {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    /* 2. 重置日期元素，让它回归正常块级显示 */
    .hero-date {
        position: relative !important;
        display: block !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin-top: 30px !important; /* 封面与日期之间的间距 */
        margin-bottom: 0 !important;
        text-align: center !important;
        width: 100% !important;
        color: var(--text-color) !important; /* 确保文字清晰可见 */
        background-color: transparent !important; /* 去掉之前的诊断背景 */
        mix-blend-mode: normal !important; /* 取消混合模式，防止手机端颜色奇怪 */
    }
}

/* =========================================
   全屏封面模式 (Fullscreen Hero)
========================================= */
.hero-fullscreen {
    /* 复用基础排版，加入全屏背景属性 */
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* 覆盖掉原版 flex 可能带来的子元素居中拉伸 */
    display: block; 
}

/* 优雅的暗色底部渐变，保证 Scroll 和 Date 文字清晰可见 */
.hero-fullscreen .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

/* 提升文字层级，盖在遮罩上方 */
.hero-fullscreen .hero-date,
.hero-fullscreen .scroll-down-indicator {
    z-index: 2;
}

/* 强制全屏模式下的日期固定在左下角，覆盖原有的排版 */
.hero-fullscreen .hero-date {
    color: #fff !important; /* 强制白字 */
    mix-blend-mode: normal !important; /* 关闭反色，因为有了暗色遮罩 */
}

/* 强制全屏模式下的 SCROLL 居中与点击提权 */
.hero-fullscreen .scroll-down-indicator {
    position: absolute;
    bottom: 20px; 
    left: 50%;
    transform: translateX(-50%); 
    mix-blend-mode: normal !important; 
    
    /* 核心修复：把层级拉到极高，神挡杀神，佛挡杀佛，绝不被任何遮罩盖住 */
    z-index: 99 !important; 
    
    /* 核心修复：确保鼠标指针事件绝对穿透并生效 */
    pointer-events: auto !important; 
    cursor: pointer !important;
}

/* =========================================
   保护机制：全屏模式在手机端的独立规则
========================================= */
@media (max-width: 768px) {
    .hero-fullscreen {
        display: block !important;
        height: 100vh !important;
        padding: 0 !important;
    }

    /* 恢复全屏模式下手机端的日期居中！ */
    .hero-fullscreen .hero-date {
        position: absolute !important;
        bottom: 150px !important; /* 往上抬一点，给底部的 SCROLL 留出呼吸空间 */
        left: 50% !important; /* 物理居中 */
        transform: translateX(-50%) !important; /* 物理居中 */
        margin: 0 !important;
        text-align: center !important;
        width: 100% !important;
    }
}

/* =========================================
   极简分页导航 (Pagination)
========================================= */
.yorushika-pagination {
    width: 100%;
    margin-top: 80px;
    margin-bottom: 40px;
    text-align: center;
}

.yorushika-pagination .page-navigator {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px; /* 按钮之间的呼吸间距 */
}

.yorushika-pagination .page-navigator li {
    display: inline-block;
}

.yorushika-pagination .page-navigator li a,
.yorushika-pagination .page-navigator li span {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    text-decoration: none;
    padding-bottom: 5px;
    transition: all 0.3s ease;
    position: relative;
}

/* 当前所在页码的样式：文字变黑 + 底部黑线 */
.yorushika-pagination .page-navigator li.current a,
.yorushika-pagination .page-navigator li.current span {
    color: var(--text-color);
}

.yorushika-pagination .page-navigator li.current a::after,
.yorushika-pagination .page-navigator li.current span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-color);
}

/* 悬停动画 */
.yorushika-pagination .page-navigator li a:hover {
    color: var(--text-color);
}

/* =========================================
   全站通用加载与入场序列动画 (Global Cinematic Reveal)
========================================= */

/* 1. 全局遮罩 (纯白背景 + 居中线条) */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s cubic-bezier(0.77, 0, 0.175, 1), visibility 1s;
}

#global-loader .loader-line {
    width: 1px;
    height: 80px;
    background-color: var(--text-color);
    animation: lineDrop 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

/* 加载完毕，遮罩褪去 */
body.is-loaded #global-loader {
    opacity: 0;
    visibility: hidden;
}

/* =========================================
   2. 赋予全站各大区块初始的“沉底隐藏”状态
========================================= */
/* 首页大图、专辑页英雄区、普通图文容器：默认全部透明且下沉 30px */
body:not(.is-loaded) .home-hero,
body:not(.is-loaded) .post-hero,
body:not(.is-loaded) .container {
    opacity: 0;
    transform: translateY(30px);
}

/* 针对首页和全屏专辑页的特殊待遇：额外增加微微放大的蓄势感 */
body:not(.is-loaded) .home-hero,
body:not(.is-loaded) .hero-fullscreen {
    transform: scale(1.03) translateY(40px);
}

/* =========================================
   3. 设定高级物理过渡曲线
========================================= */
.home-hero, 
.post-hero, 
.container {
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

/* =========================================
   4. 迷雾消散，内容集体升起！
========================================= */
body.is-loaded .home-hero,
body.is-loaded .post-hero,
body.is-loaded .container {
    opacity: 1;
    transform: scale(1) translateY(0); /* 统一归位 */
    transition-delay: 0.1s; 
}

/* =========================================
   5. UI 元素最后滑出 (SCROLL引导 和 右下角社交)
========================================= */
/* 初始利用负边距藏在地平线外 */
body:not(.is-loaded) .scroll-down-indicator { opacity: 0; margin-bottom: -60px; }
body:not(.is-loaded) .fixed-social-panel { opacity: 0; margin-right: -80px; }

/* 绑定统一的丝滑曲线 */
.scroll-down-indicator, .fixed-social-panel {
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), margin 1s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s ease !important;
}

/* 延迟登场：必须等背后的封面图稳住之后再滑出来 */
body.is-loaded .scroll-down-indicator { opacity: 1; margin-bottom: 0; transition-delay: 2.0s; }
body.is-loaded .fixed-social-panel { opacity: 1; margin-right: 0; transition-delay: 2.3s; }


/* =========================================
   全站通用基础按钮样式 (Global Button)
   供全站文章、自定义页面及第三方插件 (如 ConfirmLink) 统一调用
========================================= */
.btn, 
.button {
    display: inline-block;
    padding: 13px 35px; /* 修长的纵横比 */
    background-color: transparent;
    color: var(--text-color) !important; /* 强制覆盖 a 标签默认颜色 */
    border: 1px solid var(--text-color);
    border-radius: 0; /* 绝对直角，契合极简日系风 */
    font-size: 18px;
    letter-spacing: 0.2em; /* 极宽的字间距，增加呼吸感 */
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    font-family: inherit; /* 继承主题的衬线字体 */
    
    /* 仅保留颜色相关的平滑过渡，杜绝形变导致的卡顿 */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* 悬停时的神级黑白瞬间反转交互 */
.btn:hover, 
.button:hover {
    background-color: var(--text-color) !important;
    color: var(--bg-color) !important;
    border-color: var(--text-color);
}

/* 可选：按钮禁用状态（变灰、禁止点击） */
.btn:disabled, 
.button:disabled,
.btn.disabled, 
.button.disabled {
    border-color: var(--border-color);
    color: var(--accent-color) !important;
    cursor: not-allowed;
    background-color: transparent !important;
}

/* =========================================
   确认跳转插件专属皮肤 (ConfirmLink Theme)
   定制极简直角复选框与文字交互
========================================= */

/* 1. 文字样式继承主题属性 */
.confirm-plugin-text {
    font-size: 18px;
    letter-spacing: 0.15em;
    color: var(--text-color);
    transition: color 0.3s ease;
}

/* 悬停时文字微微变淡 (你的强调色) */
.confirm-plugin-label:hover .confirm-plugin-text {
    color: var(--accent-color);
}

/* 2. 彻底抹杀原生复选框，重绘直角方块 */
.confirm-plugin-check {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid var(--text-color);
    border-radius: 0; /* 绝对直角 */
    margin: 0 12px 0 0; /* 与右侧文字保持距离 */
    cursor: pointer;
    position: relative;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* 3. 勾选后的黑白反转与对号 */
.confirm-plugin-check:checked {
    background-color: var(--text-color);
}

/* 极简手绘白线对号 */
.confirm-plugin-check:checked::after {
    content: '';
    width: 3px;
    height: 7px;
    border: solid var(--bg-color, #ffffff);
    border-width: 0 1px 1px 0;
    transform: rotate(45deg) translateY(-1px);
}