/* 日漫垂直轮播图样式
 * ==========================================
 * 定义了左侧点击“日漫”时显示的专属英雄区样式。
 * 特点：全屏大图 + 右侧悬浮垂直列表 + 玻璃拟态效果。
 */

.japan-hero {
    position: relative;
    width: 100%;
    height: 500px;
    /* 保持与主页 Hero 一致高度 */
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
    /* 列表靠右对齐 */
    background-color: #000;
    transition: opacity 0.3s ease;
    margin-bottom: 2rem;
}

/* --- 1. 背景图层 (Background Layer) --- */
.jh-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease-in-out;
    z-index: 0;
}

/* 背景叠加渐变层 (为了增强右侧白色文字的可读性) */
.jh-bg::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    /* 仅覆盖右侧 */
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.9));
    z-index: 1;
}

/* --- 2. 右侧垂直列表 (Vertical List) --- */
.jh-list {
    position: relative;
    z-index: 2;
    /* 位于背景之上 */
    width: 400px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 垂直居中 */
    padding-right: 40px;
    gap: 15px;
    /* 列表项间距 */
}

/* 单个列表项 */
.jh-item {
    background: rgba(255, 255, 255, 0.05);
    /* 极弱的背景，玻璃感 */
    backdrop-filter: blur(10px);
    border-left: 3px solid transparent;
    /* 默认左边框透明 */
    padding: 20px;
    border-radius: 4px;
    /* 右侧圆角 */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* 悬停或激活状态 */
.jh-item:hover,
.jh-item.active {
    background: rgba(255, 166, 0, 0.15);
    /* 橙色高亮背景 */
    border-left: 3px solid var(--primary-color);
    /* 橙色左边框指示器 */
    padding-left: 30px;
    /* 文字向右缩进动画 */
}

/* --- 3. 字体样式 (Typography) --- */
.jh-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.jh-desc {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.4;

    /* 多行文本截断 (最多2行) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    opacity: 0.7;
    /* 默认半透明 */
    transition: opacity 0.3s;
}

/* 激活时显示更清晰的描述 */
.jh-item.active .jh-desc {
    opacity: 1;
    color: #eee;
}

/* 明亮模式适配 */
[data-theme="light"] .jh-item {
    background: rgba(0, 0, 0, 0.5);
    /* 增加底色深度，保证在亮色下依然可见 */
}