/* ===== Explore 页专属样式：复合渐变背景、目录面板、收拢按钮、博客画廊卡片 ===== */
/* ===== Explore 页面专属样式 ===== */
/* 复合渐变背景（顶部全黑留给视差 → 下部深色彩虹） */
body {
    background:
        /* 下部各处辉光 */
        radial-gradient(ellipse 60% 35% at 70% 75%, rgba(140,50,200,0.10) 0%, transparent 55%),
        radial-gradient(ellipse 50% 30% at 30% 70%, rgba(10,150,180,0.06) 0%, transparent 50%),
        radial-gradient(ellipse 70% 25% at 55% 82%, rgba(200,60,100,0.06) 0%, transparent 55%),
        radial-gradient(ellipse 45% 20% at 20% 90%, rgba(60,180,120,0.04) 0%, transparent 50%),
        radial-gradient(ellipse 55% 20% at 80% 60%, rgba(220,160,40,0.04) 0%, transparent 50%),
        /* 主渐变：顶部纯黑覆盖视差区 → 交界处开始渐变 → 下部深色彩虹 */
        linear-gradient(
            180deg,
            #000000 0%,
            #000000 25%,
            #000000 28%,
            #080018 30%,
            #12002a 34%,
            #1a0038 38%,
            #200828 44%,
            #1a0a30 50%,
            #140838 56%,
            #0e1440 62%,
            #081a48 68%,
            #0e1038 76%,
            #180630 84%,
            #200a28 90%,
            #1a1030 95%,
            #101838 100%
        );
    background-attachment: scroll;
}

/* ===== 目录面板 ===== */
.info-box {
    top: 8.75vw;
    left: 2vw;
    z-index: 30;
    background-image: url('../images/bg_index.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.info-box .dir-title {
    color: #ffffff;
    font-size: 1.5vw;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5vw;
    margin: 0 0 1.2vw 0;
    padding-bottom: 0.6vw;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 20px rgba(255, 33, 192, 0.3);
}
.info-box .dir-item {
    color: #d0d0e8;
    font-size: 0.88vw;
    margin: 0.25vw 0;
    padding: 0.4vw 0.8vw;
    cursor: pointer;
    border-radius: 0.4vw;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.6vw;
    line-height: 1.4;
    letter-spacing: 0.5px;
}
.info-box .dir-item:hover {
    background: rgba(255, 33, 192, 0.15);
    color: #ff21c0;
    padding-left: 1vw;
    text-shadow: 0 0 12px rgba(255, 33, 192, 0.3);
}
.info-box .dir-item .dir-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6vw;
    height: 1.6vw;
    border-radius: 50%;
    background: rgba(33, 235, 255, 0.12);
    color: #21ebff;
    font-size: 0.65vw;
    font-weight: 700;
    flex-shrink: 0;
    font-family: 'Orbitron', sans-serif;
    border: 1px solid rgba(33, 235, 255, 0.2);
}
.info-box .dir-item:hover .dir-num {
    background: rgba(255, 33, 192, 0.2);
    color: #ff21c0;
    border-color: rgba(255, 33, 192, 0.3);
}
.info-box .dir-top {
    color: #c8c0e8;
    font-size: 0.85vw;
    margin: 0 0 0.8vw 0;
    padding: 0.6vw 0.8vw;
    cursor: pointer;
    border-radius: 0.5vw;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6vw;
    border: 1px solid rgba(168, 85, 247, 0.2);
    background: linear-gradient(135deg, rgba(168,85,247,0.08) 0%, rgba(33,235,255,0.04) 100%);
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    font-weight: 500;
}
.info-box .dir-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,33,192,0.12) 0%, rgba(168,85,247,0.08) 50%, rgba(33,235,255,0.04) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.info-box .dir-top:hover::before {
    opacity: 1;
}
.info-box .dir-top:hover {
    border-color: rgba(255, 33, 192, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.15), 0 0 40px rgba(255, 33, 192, 0.06);
}
.info-box .dir-top:active {
    transform: translateY(0);
}
.info-box .dir-top .dir-icon {
    font-size: 1.1vw;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8vw;
    height: 1.8vw;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,33,192,0.2), rgba(168,85,247,0.2));
    color: #ff21c0;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-box .dir-top:hover .dir-icon {
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(255,33,192,0.4);
}
.info-box .dir-top .dir-text {
    position: relative;
    z-index: 1;
}

/* 收拢按钮 — 固定定位，与 info-box 垂直中心对齐 */
.info-toggle {
    position: fixed;
    top: calc(8.75vw + 37.5vh);
    left: 0;
    transform: translateY(-50%);
    z-index: 31;
    width: 2vw;
    height: 5vw;
    border: none;
    background: rgba(20, 10, 50, 0.6);
    color: #a080c0;
    cursor: pointer;
    font-size: 1vw;
    backdrop-filter: blur(4px);
    border-radius: 0.5vw 0 0 0.5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
    padding: 0;
    line-height: 1;
}
.info-toggle:hover {
    background: rgba(255, 33, 192, 0.25);
    color: #ff21c0;
}

/* ===== 博客画廊区域 ===== */
.sec h2:first-child {
    font-size: 2.8vw;
    font-weight: 900;
    background: linear-gradient(135deg, #ff21c0, #a855f7, #21ebff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 6px;
    margin-bottom: 0.3rem;
    font-family: 'Noto Serif SC', serif;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(255, 33, 192, 0.15));
}
.sec .subtitle {
    font-size: 1.2vw;
    opacity: 0.5;
    font-weight: 400;
    color: #a080c0;
    letter-spacing: 4px;
    margin: 0 0 2.5rem 0;
    border: none;
    background: none;
    -webkit-text-fill-color: #a080c0;
    font-family: 'Noto Serif SC', serif;
    font-style: italic;
}

/* ===== blog-box 卡片 ===== */
.sec .blog-box {
    display: flex;
    align-items: flex-start;
    gap: 1.5vw;
    margin: 1.5vw 0;
    padding: 1.8vw 2vw;
    background: rgba(20, 10, 50, 0.35);
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: 0.8vw;
    transition: all 0.35s ease;
    backdrop-filter: blur(6px);
    width: 100%;
    height: auto;
    left: auto;
    position: relative;
    box-sizing: border-box;
}
.sec .blog-box:hover {
    background: rgba(30, 15, 60, 0.45);
    border-color: rgba(255, 33, 192, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.1), 0 0 60px rgba(255, 33, 192, 0.04);
}
.sec .blog-box .left {
    flex-shrink: 0;
    flex: none;
    max-width: none;
    width: 16vw;
    height: 11vw;
    border-radius: 0.6vw;
    overflow: hidden;
    background: rgba(33, 235, 255, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.12);
    margin-right: 1.5vw;
}
.sec .blog-box .left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition: opacity 0.3s, transform 0.3s;
}
.sec .blog-box:hover .left img {
    opacity: 1;
    transform: scale(1.05);
}
.sec .blog-box .right {
    flex: 1;
    min-width: 0;
}
.sec .blog-box .right p {
    margin: 0.4vw 0;
    font-size: 1.1vw;
    line-height: 1.5;
    color: #c8c0e0;
    letter-spacing: 0.5px;
}
.sec .blog-box .right p:first-child {
    font-size: 1.35vw;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    font-family: 'Noto Serif SC', serif;
    position: relative;
    padding-left: 0;
    display: inline-block;
}
.sec .blog-box .right p:first-child::after {
    content: '';
    display: block;
    width: 2.5vw;
    height: 2px;
    margin-top: 0.3vw;
    background: linear-gradient(90deg, #ff21c0, #a855f7, transparent);
    border-radius: 2px;
}
.sec .blog-box .right p:nth-child(2) {
    font-size: 0.88vw;
    opacity: 0.4;
    color: #706090;
    letter-spacing: 1.5px;
    font-style: italic;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    border-left: 2px solid rgba(168,85,247,0.2);
    padding-left: 0.6vw;
    margin: 0.5vw 0;
}
.sec .blog-box .right p:last-child {
    font-size: 1vw;
    opacity: 0.65;
    margin-top: 0.5vw;
    color: #b0a0d0;
    line-height: 1.6;
    padding: 0.4vw 0.6vw;
    background: rgba(0,0,0,0.15);
    border-radius: 0.3vw;
    border: 1px solid rgba(255,255,255,0.03);
}

/* light (day) mode */
body.light-mode .sec .blog-box {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(168, 85, 247, 0.15);
}
body.light-mode .sec .blog-box:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 33, 192, 0.2);
}
body.light-mode .sec .blog-box .right p { color: #555; }
body.light-mode .sec .blog-box .right p:first-child { color: #222; }
body.light-mode .sec .blog-box .right p:first-child::after {
    background: linear-gradient(90deg, #d01890, #a855f7, transparent);
}
body.light-mode .sec .blog-box .right p:nth-child(2) { color: #999; border-left-color: rgba(168,85,247,0.3); }
body.light-mode .sec .blog-box .right p:last-child { color: #666; background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.05); }

/* 移动端适配 */
@media (max-width: 768px) {
    /* 目录面板 — 底部抽屉（覆盖 base.css 的通用抽屉样式） */
    .info-box {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: auto !important;
        width: 100vw;
        height: 50vh;
        max-height: 50vh;
        border-radius: 4vw 4vw 0 0;
        padding: 3vw 4vw;
        background: rgba(12, 6, 35, 0.97);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 33, 192, 0.15);
        border-bottom: none;
        transform: translateY(calc(100% - 10vw));
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .info-box.open {
        transform: translateY(0);
    }
    .info-box .dir-title {
        font-size: 3.5vw;
        margin: 0 0 2vw 0;
        padding-bottom: 1.5vw;
    }
    .info-box .dir-item {
        font-size: 2.8vw;
        padding: 1.2vw 1.5vw;
        margin: 0.5vw 0;
        gap: 1.5vw;
    }
    .info-box .dir-item .dir-num {
        min-width: 5vw;
        height: 5vw;
        font-size: 2.2vw;
    }
    .info-box .dir-top {
        font-size: 2.8vw;
        padding: 1.2vw 1.5vw;
        margin: 0 0 1.5vw 0;
    }
    .info-box .dir-top .dir-icon {
        font-size: 3vw;
        width: 5vw;
        height: 5vw;
    }
    .sec h2:first-child { font-size: 5vw; }
    .sec .subtitle { font-size: 3vw; }
    .sec .blog-box { flex-direction: column; padding: 3vw; }
    .sec .blog-box .left { width: 100%; height: 40vw; margin-right: 0; }
    .sec .blog-box .right p { font-size: 2.8vw; }
    .sec .blog-box .right p:first-child { font-size: 3.5vw; }
    .sec .blog-box .right p:nth-child(2) { font-size: 2.4vw; }
    .sec .blog-box .right p:last-child { font-size: 2.6vw; }
}
