/* =========================================
   1. 核心页面定义
   ========================================= */
:root {
    /* --- 默认：深海冰晶风格 (Night) --- */
    /* 背景：深蓝渐变 */
    --bg-gradient: linear-gradient(135deg, #0a1628 0%, #1a2f4a 50%, #0f1f38 100%);
    --card-bg: rgba(15, 35, 60, 0.6);
    --nav-bg: rgba(15, 35, 60, 0.75);
    
    /* 文字：冰霜白 */
    --text-primary: #e8f4f8;
    --text-secondary: #a8c9dc;
    --deep-frost: #e8f4f8; 
    
    --accent-blue: #64d8ff;   
    --accent-purple: #a8e6ff; 
    
    /* 边框与光晕 */
    --crystal-border: rgba(100, 200, 255, 0.25);
    --shadow: 0 8px 32px rgba(100, 216, 255, 0.1);
    
    /* 标签变量 */
    --tag-bg: rgba(100, 216, 255, 0.1);
    --tag-border: rgba(100, 216, 255, 0.3);
    --tag-text: #64d8ff;

    /* 预留变量 */
    --glacier-glow: rgba(167, 207, 233, 0.7);
}

/* --- 可选模式：日间 (晶莹冰魄风格 - Crystalline Glaciers) --- */

/*蓝色*/
[data-theme="day"] {
    --bg-gradient: linear-gradient(135deg, 
        #6c88f9 0%, 
        #40a5f2 25%, 
        #85baff 50%, 
        #80ccff 75%, 
        #5274ff 100%);
    
    --card-bg: rgba(255, 255, 255, 0.75);
    --nav-bg: rgba(255, 255, 255, 0.2); 
    --text-primary: #1e40af;   
    --text-secondary: #475569; 
    --deep-frost: #ffffff;     
    --crystal-border: rgba(255, 255, 255, 0.9);
    --shadow: 0 8px 32px rgba(37, 99, 235, 0.12);
    --accent-blue: #0069d9;    
    --accent-purple: #6366f1;  
    --tag-bg: rgba(224, 242, 254, 0.8); 
    --tag-border: rgba(56, 189, 248, 0.3); 
    --tag-text: #0284c7; 
}


/* =========================================
   2. 全局基础样式
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll; /* 滚动条始终占位显示，防止页面左右跳动 */
}

body {
    zoom: 0.9;
    min-height: calc(100vh / 0.9); /* 补偿zoom后高度 */
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    background-attachment: fixed;
    transition: color 0.3s, background 0.3s;
}



a, button, .nav-link, .tool-card, .search-wrapper, .theme-toggle {
    transition: all 0.3s ease;
}

.nav-link::after {
    transition: width 0.3s ease; /* 下划线动画 */
}


/* =========================================
   3. 导航栏样式
   ========================================= */
.nav-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    z-index: 1000;
    height: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
}

.nav-bar {
    width: 100%;
    padding: 0 2.5rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* 左侧区域：Logo */
.nav-left {
    flex-shrink: 0;
    min-width: 160px;
}

/* 中间区域：导航链接 */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
    max-width: 1000px;
}
.nav-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 110px;
    justify-content: flex-end;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}


.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.8rem 0.6rem;
    border-radius: 8px;
    position: relative;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link:hover, .nav-link.active {
    background: transparent; 
    color: var(--accent-blue); 
    text-shadow: 0 0 10px rgba(161, 196, 253, 0.8); 
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    right: 50%;
    height: 2px;
    background: var(--accent-blue);
    box-shadow: 0 0 5px var(--accent-blue);
    border-radius: 2px;
    transition: left 0.3s ease, right 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    left: 0;
    right: 0;
}

/* --- 主题切换按钮优化 --- */
.theme-toggle {
    cursor: pointer;
    font-size: 1.4rem; /* 图标调大一点 */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    
    /* 给它一个淡淡的背景，看起来更像个按钮 */
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1); /* 悬停放大 */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3); /* 发光效果 */
}

/* 适配日间模式下的按钮颜色 */
[data-theme="day"] .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="day"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* =========================================
   4. 用户头像菜单样式
   ========================================= */

/* 夜间模式（默认）- 深海冰境 */

   .user-avatar-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-avatar-wrapper:hover {
    transform: scale(1.08);
}

/* 冰晶光环 - 夜间 */
.avatar-frost-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid #64d8ff;
    box-shadow: 
        0 0 20px rgba(100, 216, 255, 0.6),
        inset 0 0 15px rgba(100, 216, 255, 0.3);
    animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(15, 35, 60, 0.9);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(100, 216, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.user-avatar-wrapper:hover .avatar-glow {
    opacity: 1;
}

/* 下拉菜单容器 - 夜间深海冰境 */
.user-dropdown-menu {
    position: absolute;
    right: 2rem;
    top: 95px;
    width: 300px;
    
    /* 深海冰晶背景 - 立体渐变 */
    background: linear-gradient(145deg, 
        rgba(15, 35, 60, 0.98) 0%,
        rgba(20, 45, 75, 0.98) 50%,
        rgba(15, 35, 60, 0.98) 100%
    );
    
    backdrop-filter: blur(30px) saturate(180%);
    border-radius: 16px;
    
    /* 冰晶立体边框 */
    border: 1px solid rgba(100, 216, 255, 0.3);
    border-top: 1px solid rgba(100, 216, 255, 0.5);
    border-left: 1px solid rgba(100, 216, 255, 0.4);
    
    /* 立体光影效果 */
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(100, 216, 255, 0.1) inset,
        0 2px 4px rgba(255, 255, 255, 0.05) inset,
        0 0 50px rgba(100, 216, 255, 0.2);
    
    z-index: 1000;
    display: none;
    overflow: hidden;
    animation: dropdownSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown-menu.show {
    display: block;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 顶部冰晶装饰线 - 夜间 */
.dropdown-top-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(100, 216, 255, 0.6) 20%,
        rgba(168, 230, 255, 0.8) 50%, 
        rgba(100, 216, 255, 0.6) 80%,
        transparent 100%);
    box-shadow: 
        0 0 20px rgba(100, 216, 255, 0.6),
        0 1px 0 rgba(255, 255, 255, 0.2);
}

.dropdown-container {
    padding: 25px 20px 20px;
}

/* 用户信息区域 */
.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
}

.dropdown-avatar-container {
    position: relative;
    width: 60px;
    height: 60px;
}

/* 旋转光环 - 夜间 */
.dropdown-avatar-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid rgba(100, 216, 255, 0.6);
    box-shadow: 
        0 0 25px rgba(100, 216, 255, 0.5),
        inset 0 0 20px rgba(100, 216, 255, 0.3);
    animation: profileRingRotate 8s linear infinite;
}

@keyframes profileRingRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dropdown-avatar-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(15, 35, 60, 0.8);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* 高光效果 */
.dropdown-avatar-shine {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
}

.dropdown-profile-text {
    flex: 1;
}

.dropdown-username {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e8f4f8;
    margin-bottom: 4px;
    text-shadow: 
        0 0 15px rgba(100, 216, 255, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

.dropdown-user-title {
    font-size: 0.85rem;
    color: rgba(168, 216, 255, 0.7);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* 冰晶分割线 - 夜间 */
.dropdown-divider {
    height: 1px;
    position: relative;
    margin: 15px 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(100, 216, 255, 0.3) 10%,
        rgba(168, 216, 255, 0.5) 50%, 
        rgba(100, 216, 255, 0.3) 90%,
        transparent 100%);
    box-shadow: 
        0 0 15px rgba(100, 216, 255, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 立体冰晶菜单项 - 夜间 */
.dropdown-menu-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    color: #a8d8ff;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    
    /* 立体感 */
    background: linear-gradient(135deg, 
        rgba(100, 216, 255, 0.03) 0%,
        transparent 100%);
}

/* 光影扫过效果 */
.dropdown-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(100, 216, 255, 0.15), 
        transparent);
    transition: left 0.6s ease;
}

.dropdown-menu-item:hover::before {
    left: 100%;
}

.dropdown-menu-item:hover {
    background: linear-gradient(135deg, 
        rgba(100, 216, 255, 0.12) 0%,
        rgba(100, 216, 255, 0.08) 100%);
    border-left: 3px solid #64d8ff;
    padding-left: 11px;
    
    /* 立体光影 */
    box-shadow: 
        0 4px 15px rgba(100, 216, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        inset 0 0 30px rgba(100, 216, 255, 0.05);
}

.dropdown-menu-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    color: #64d8ff;
    transition: all 0.3s ease;
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(100, 216, 255, 0.4));
}

.dropdown-menu-item:hover .dropdown-menu-icon {
    color: #a8e6ff;
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 12px rgba(100, 216, 255, 0.8));
}

.dropdown-menu-text {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.dropdown-menu-arrow {
    width: 16px;
    height: 16px;
    color: rgba(168, 216, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu-item:hover .dropdown-menu-arrow {
    color: #a8e6ff;
    transform: translateX(5px);
}

/* 退出按钮 - 夜间 */
.dropdown-footer {
    margin-top: 12px;
}

.dropdown-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    color: rgba(255, 150, 150, 0.9);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 100, 100, 0.3);
    background: linear-gradient(135deg,
        rgba(255, 100, 100, 0.08) 0%,
        rgba(255, 100, 100, 0.05) 100%);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    
    /* 立体感 */
    box-shadow: 
        0 2px 8px rgba(255, 100, 100, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dropdown-logout-btn svg {
    width: 16px;
    height: 16px;
}

.dropdown-logout-btn:hover {
    background: linear-gradient(135deg,
        rgba(255, 100, 100, 0.15) 0%,
        rgba(255, 100, 100, 0.1) 100%);
    border-color: rgba(255, 100, 100, 0.5);
    color: rgba(255, 180, 180, 1);
    box-shadow: 
        0 4px 15px rgba(255, 100, 100, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 日间模式 - 明亮冰晶 */

[data-theme="day"] .user-dropdown-menu {
    /* 明亮冰晶背景 - 立体渐变 */
    background: linear-gradient(145deg, 
        rgba(240, 249, 255, 0.95) 0%,
        rgba(224, 242, 254, 0.95) 50%,
        rgba(240, 249, 255, 0.95) 100%
    );
    
    backdrop-filter: blur(30px) saturate(180%);
    
    /* 冰晶立体边框 */
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-top: 1px solid rgba(147, 197, 253, 0.6);
    border-left: 1px solid rgba(147, 197, 253, 0.5);
    
    /* 立体光影效果 */
    box-shadow: 
        0 25px 70px rgba(37, 99, 235, 0.15),
        0 10px 30px rgba(59, 130, 246, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 2px 4px rgba(255, 255, 255, 0.5) inset,
        0 0 50px rgba(96, 165, 250, 0.15);
}

/* 日间 - 顶部装饰线 */
[data-theme="day"] .dropdown-top-line {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.5) 20%,
        rgba(96, 165, 250, 0.7) 50%, 
        rgba(59, 130, 246, 0.5) 80%,
        transparent 100%);
    box-shadow: 
        0 0 20px rgba(96, 165, 250, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.8);
}

/* 日间 - 用户名 */
[data-theme="day"] .dropdown-username {
    color: #1e3a8a;
    text-shadow: 
        0 0 10px rgba(59, 130, 246, 0.3),
        0 1px 2px rgba(255, 255, 255, 0.8);
}

/* 日间 - 用户标题 */
[data-theme="day"] .dropdown-user-title {
    color: #3b82f6;
}

/* 日间 - 头像边框 */
[data-theme="day"] .dropdown-avatar-container img {
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

[data-theme="day"] .dropdown-avatar-ring {
    border: 2px solid rgba(96, 165, 250, 0.6);
    box-shadow: 
        0 0 25px rgba(96, 165, 250, 0.4),
        inset 0 0 20px rgba(96, 165, 250, 0.2);
}

/* 日间 - 分割线 */
[data-theme="day"] .dropdown-divider {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(96, 165, 250, 0.3) 10%,
        rgba(147, 197, 253, 0.5) 50%, 
        rgba(96, 165, 250, 0.3) 90%,
        transparent 100%);
    box-shadow: 
        0 0 15px rgba(96, 165, 250, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.5);
}

/* 日间 - 菜单项 */
[data-theme="day"] .dropdown-menu-item {
    color: #1e40af;
    background: linear-gradient(135deg, 
        rgba(96, 165, 250, 0.03) 0%,
        transparent 100%);
}

[data-theme="day"] .dropdown-menu-item::before {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(96, 165, 250, 0.15), 
        transparent);
}

[data-theme="day"] .dropdown-menu-item:hover {
    background: linear-gradient(135deg, 
        rgba(96, 165, 250, 0.15) 0%,
        rgba(96, 165, 250, 0.1) 100%);
    border-left: 3px solid #3b82f6;
    
    /* 立体光影 */
    box-shadow: 
        0 4px 15px rgba(96, 165, 250, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(59, 130, 246, 0.1),
        inset 0 0 30px rgba(96, 165, 250, 0.08);
}

/* 日间 - 菜单图标 */
[data-theme="day"] .dropdown-menu-icon {
    color: #3b82f6;
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.3));
}

[data-theme="day"] .dropdown-menu-item:hover .dropdown-menu-icon {
    color: #2563eb;
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.6));
}

/* 日间 - 箭头 */
[data-theme="day"] .dropdown-menu-arrow {
    color: rgba(96, 165, 250, 0.5);
}

[data-theme="day"] .dropdown-menu-item:hover .dropdown-menu-arrow {
    color: #3b82f6;
}

/* 日间 - 退出按钮 */
[data-theme="day"] .dropdown-logout-btn {
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg,
        rgba(220, 38, 38, 0.08) 0%,
        rgba(220, 38, 38, 0.05) 100%);
    box-shadow: 
        0 2px 8px rgba(220, 38, 38, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="day"] .dropdown-logout-btn:hover {
    background: linear-gradient(135deg,
        rgba(220, 38, 38, 0.15) 0%,
        rgba(220, 38, 38, 0.1) 100%);
    border-color: rgba(220, 38, 38, 0.6);
    color: #b91c1c;
    box-shadow: 
        0 4px 15px rgba(220, 38, 38, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* 日间 - 导航栏头像 */
[data-theme="day"] .user-avatar {
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

[data-theme="day"] .avatar-frost-ring {
    border: 2px solid rgba(96, 165, 250, 0.7);
    box-shadow: 
        0 0 20px rgba(96, 165, 250, 0.5),
        inset 0 0 15px rgba(96, 165, 250, 0.2);
}

[data-theme="day"] .avatar-glow {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.4) 0%, transparent 70%);
}

/* =========================================
   5. 移动端菜单
   ========================================= */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-gradient);
    border-bottom: 1px solid var(--crystal-border);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    
    /* 核心修复：初始状态设为彻底隐藏且不占位 */
    display: none; 
    visibility: hidden;
    opacity: 0;
    transform: translateY(-20px); 
    
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

/* 激活状态 */
.mobile-menu.active {
    display: block;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu .nav-link {
    display: block;
    text-align: center;
    color: var(--text-primary);
    padding: 1.2rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--crystal-border);
    text-decoration: none;
}

/* 汉堡按钮变为 X 的动画 */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   6. 搜索区域
   ========================================= */
.search-container {
    max-width: 800px;
    margin: 0 auto 40px; 
}

.search-wrapper {
    display: flex;              
    flex-wrap: nowrap;          
    align-items: center;        
    justify-content: space-between;
    
    background: var(--card-bg);
    border: 1px solid var(--crystal-border);
    border-radius: 50px;
    padding: 5px 5px 5px 15px; 
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    width: 100%;                
}

.search-wrapper:hover, .search-wrapper:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(100, 216, 255, 0.2);
}

.search-type {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
    padding-right: 10px;
    margin-right: 10px;
    font-size: 1rem;
    border-right: 1px solid var(--crystal-border); 
    flex-shrink: 0;
}

[data-theme="day"] .search-type option {
    background-color: #ffffff;
    color: #333;
}
.search-type option {
    background-color: #0f1f38; /* 默认黑夜 */
    color: #e8f4f8;
}

.search-input {
    flex: 1;           
    min-width: 0;      
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
    padding: 10px 0;   
    font-size: 1rem;
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.search-button {
    background: var(--accent-purple);
    border: none;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;     
    margin-left: 10px;  
}

.search-button:hover {
    transform: scale(1.1) rotate(10deg);
    background: var(--accent-blue);
}

/* =========================================
   7. 内容区域 & 卡片
   ========================================= */
.content-container {
    max-width: 1200px;
    margin: 100px auto 40px; 
    padding: 20px;

    flex-grow: 1;  /* 撑满高度，页脚沉底 */
    width: 100%;   /* 防止宽度塌陷 */
}

.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, 300px); 
    gap: 30px; 
    justify-content: center;
}

.tool-link { text-decoration: none; color: inherit; }

.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--crystal-border);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column; 
    height: 100%; 
}

.tool-card:hover { transform: translateY(-5px); }

.tool-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-purple);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.tool-icon img { width: 60%; filter: brightness(0) invert(1); }

.tool-name { color: var(--accent-blue); margin-bottom: 10px; font-size: 1.2rem; font-weight: 600; }
.tool-desc { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.5; flex-grow: 1; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

.tag {
    background: var(--tag-bg);
    color: var(--tag-text);
    border: 1px solid var(--tag-border);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    backdrop-filter: blur(2px);
}

.tag:hover {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
    transform: scale(1.05);
}

/* =========================================
   8. 仪表盘与通用按钮
   ========================================= */
.dashboard-header { text-align: center; margin-bottom: 30px; }
.dashboard-card { background: var(--card-bg); padding: 2rem; border-radius: 15px; margin-bottom: 20px; text-align: center; border: 1px solid var(--crystal-border); }
.value-highlight { color: #2196F3; font-weight: bold; margin: 0 5px; }

button {
    background: linear-gradient(to right, rgba(96, 165, 250, 0.9), var(--glacier-glow));
    border: 1px solid var(--crystal-border);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    color: var(--deep-frost);
    cursor: pointer;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.3);
}

/* =========================================
   9. 冰晶博客专用样式
   ========================================= */
.blog-hero {
    text-align: center;
    animation: fadeIn 1s ease;
    margin: 0 auto 5px;
}

.blog-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(37, 99, 235, 0.1);
}

.blog-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--crystal-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.2);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(30, 60, 90, 0.1) 0%, rgba(15, 40, 70, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--crystal-border);
}

[data-theme="day"] .blog-image {
    background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
}

.blog-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.blog-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; gap: 15px; margin-bottom: 10px; font-size: 0.85rem; color: var(--text-secondary); opacity: 0.8; }
.blog-title { font-size: 1.4rem; margin-bottom: 12px; color: var(--text-primary); font-weight: 600; line-height: 1.3; }
.blog-excerpt { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
.read-more { display: inline-block; color: var(--accent-blue); font-weight: 600; text-decoration: none; margin-top: auto; transition: transform 0.3s; }
.read-more:hover { transform: translateX(5px); }

/* =========================================
   10. 全局雪花飘落效果 (Global Snow)
   ========================================= */
.snowflake {
    position: fixed;
    color: var(--text-primary); /* 跟随文字颜色，白天黑字，晚上白字 */
    font-size: 20px;
    pointer-events: none; /* 鼠标可穿透，不影响点击 */
    animation: fall linear infinite;
    z-index: 99999; /* 确保在最顶层 */
    opacity: 0.3;  /* 稍微透明一点，不要太抢眼 */
}
/* --- 新增：白天模式下隐藏雪花 --- */
[data-theme="day"] .snowflake {
    display: none !important;
}

@keyframes fall {
    to { transform: translateY(100vh) rotate(360deg); }
}

/* =========================================
   11. 响应式布局 (修复版)
   ========================================= */
@media (max-width: 768px) {
    .nav-center { display: none; }
    .hamburger { display: block; }
    .nav-bar { padding: 0 1rem; }
    .nav-left { flex: 1; }
    .nav-right { gap: 10px; }
}

/* 强制重置：确保电脑端绝对不显示移动端元素 */
@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    .hamburger {
        display: none !important;
    }
}

/* =========================================
   12. 冰弦凝阁 (Music Player) 专用样式
   ========================================= */

/* 布局容器：左边播放器，右边歌单 */
.music-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    margin-top: 20px;
}

/* --- 左侧：核心播放器卡片 --- */
.player-card {
    background: var(--card-bg);
    border: 1px solid var(--crystal-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky; /* 滚动时固定在左侧 */
    top: 100px;
}

/* 唱片封面区域 */
.disc-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 8px solid rgba(255,255,255,0.1);
}

.disc-wrapper::after {
    /* 唱片中间的孔 */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.5);
    z-index: 2;
}

.disc-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    animation: rotate 20s linear infinite;
    animation-play-state: paused; /* 默认暂停 */
}

/* 旋转动画 */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.player-card.playing .disc-image {
    animation-play-state: running;
}

/* 歌曲信息 */
.song-info h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.song-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* 进度条 */
.progress-area {
    width: 100%;
    margin-bottom: 20px;
    cursor: pointer;
}

.progress-bar {
    height: 6px;
    width: 100%;
    background: rgba(100, 200, 255, 0.2);
    border-radius: 6px;
    position: relative;
}

.progress-current {
    height: 100%;
    width: 0%;
    background: var(--accent-blue);
    border-radius: 6px;
    position: relative;
    box-shadow: 0 0 10px var(--accent-blue);
    transition: width 0.1s linear;
}

.progress-current::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-area:hover .progress-current::after {
    opacity: 1;
}

.time-stamps {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* 播放控制按钮 */
.controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.btn-control {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-control:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent-blue);
}

.btn-play {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.btn-play:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #fff;
}

/* --- 右侧：歌单列表 --- */
.playlist-card {
    background: var(--card-bg);
    border: 1px solid var(--crystal-border);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(15px);
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--crystal-border);
    font-weight: bold;
    color: var(--text-secondary);
}

.song-list {
    list-style: none;
    max-height: 500px;
    overflow-y: auto;
}

/* 自定义滚动条 */
.song-list::-webkit-scrollbar {
    width: 6px;
}
.song-list::-webkit-scrollbar-thumb {
    background: rgba(100, 200, 255, 0.3);
    border-radius: 3px;
}

.song-item {
    display: grid;
    grid-template-columns: 40px 1fr 100px 80px;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid transparent;
}

.song-item:hover {
    background: rgba(255,255,255,0.1);
}

.song-item.active {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid var(--accent-blue);
}

.song-index { color: var(--text-secondary); font-size: 0.9rem; }
.song-title-row { font-weight: 500; color: var(--text-primary); }
.song-artist { color: var(--text-secondary); font-size: 0.9rem; }
.song-duration { color: var(--text-secondary); font-size: 0.85rem; text-align: right; }

/* 正在播放的波形动画图标 */
.wave-icon {
    display: none;
    height: 15px;
    gap: 2px;
    align-items: flex-end;
}
.song-item.active .wave-icon { display: flex; }
.song-item.active .song-index { display: none; }

.bar {
    width: 3px;
    background: var(--accent-blue);
    animation: wave 1s infinite ease-in-out;
}
.bar:nth-child(2) { animation-delay: 0.2s; height: 60%; }
.bar:nth-child(3) { animation-delay: 0.4s; height: 30%; }

@keyframes wave {
    0%, 100% { height: 20%; }
    50% { height: 100%; }
}

/* 响应式 */
@media (max-width: 850px) {
    .music-container {
        grid-template-columns: 1fr;
    }
    .player-card {
        position: static;
        margin-bottom: 20px;
    }
}

/* ==================== 文件资源管理器样式 ==================== */
[data-theme="day"] body {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    background-attachment: fixed;
}

[data-theme="day"] .topbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
}

.download-board {
    max-width: 1500px;
    margin: auto;
    background: rgba(20, 30, 48, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(135, 206, 250, 0.2);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: #e0f7fa;
}

.download-header {
    text-align: center;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(135, 206, 250, 0.2);
    padding-bottom: 18px;
}

.download-header h2 {
    font-size: 1.5rem;
    color: #87cefa;
    margin-bottom: 6px;
    font-weight: 500;
}

.download-header p {
    font-size: 0.9rem;
    color: #a0c4ff;
}

/* ── 工具栏 ── */
.explorer-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.explorer-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    flex-wrap: wrap;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(135, 206, 250, 0.12);
    border-radius: 8px;
    min-height: 34px;
}

.crumb-root {
    color: #4facfe;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.crumb-root:hover {
    color: #00f2fe;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}

.crumb-sep {
    color: rgba(135, 206, 250, 0.3);
    margin: 0 2px;
}

.crumb-item {
    color: #a0c4ff;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.crumb-item:hover {
    color: #4facfe;
}

.crumb-item.active {
    color: #e0f7fa;
    cursor: default;
}

.explorer-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.explorer-search-wrap {
    flex: 1;
    min-width: 160px;
    position: relative;
}

.explorer-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: rgba(135, 206, 250, 0.5);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.explorer-search-icon svg {
    width: 15px;
    height: 15px;
}

#explorerSearch {
    width: 100%;
    padding: 8px 12px 8px 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(135, 206, 250, 0.2);
    border-radius: 8px;
    color: #e0f7fa;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

#explorerSearch:focus {
    border-color: rgba(79, 172, 254, 0.6);
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.2);
}

#explorerSearch::placeholder {
    color: rgba(160, 196, 255, 0.4);
}

.explorer-select {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(135, 206, 250, 0.2);
    border-radius: 8px;
    color: #a0c4ff;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: all 0.25s;
}

.explorer-select:hover {
    background: rgba(79, 172, 254, 0.12);
    border-color: rgba(79, 172, 254, 0.4);
}

.explorer-view-btns {
    display: flex;
    gap: 6px;
}

.explorer-view-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(135, 206, 250, 0.2);
    border-radius: 8px;
    cursor: pointer;
    color: #a0c4ff;
    transition: all 0.25s;
}

.explorer-view-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.explorer-view-btn:hover {
    background: rgba(79, 172, 254, 0.15);
    border-color: rgba(79, 172, 254, 0.4);
}

.explorer-view-btn.active {
    background: rgba(79, 172, 254, 0.2);
    border-color: rgba(79, 172, 254, 0.6);
    color: #4facfe;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.3);
}

/* ── 返回上级 ── */
.explorer-back {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(135, 206, 250, 0.15);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #a0c4ff;
    transition: all 0.25s;
    width: fit-content;
}

.explorer-back:hover {
    background: rgba(79, 172, 254, 0.12);
    border-color: rgba(79, 172, 254, 0.4);
    color: #4facfe;
}

.explorer-back svg {
    color: #4facfe;
    flex-shrink: 0;
}

/* ── 列表表头 ── */
.explorer-list-header {
    display: grid;
    grid-template-columns: 1fr 90px 110px 90px;
    padding: 8px 14px;
    font-size: 0.75rem;
    color: rgba(160, 196, 255, 0.5);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(135, 206, 250, 0.12);
    margin-bottom: 4px;
}

/* ── 列表条目 ── */
.explorer-list-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.explorer-entry {
    display: grid;
    grid-template-columns: 1fr 90px 110px 90px;
    align-items: center;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
    animation: entryFadeIn 0.25s ease both;
    text-decoration: none;
}

.explorer-entry:hover {
    background: rgba(135, 206, 250, 0.1);
    border-color: rgba(135, 206, 250, 0.3);
    transform: translateX(3px);
}

.explorer-entry:hover .explorer-dl-btn {
    opacity: 1;
}

@keyframes entryFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.entry-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    min-width: 0;
}

.entry-icon-wrap {
    font-size: 1.5rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(135, 206, 250, 0.4));
}

.entry-label {
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.entry-label.is-folder {
    color: #e0f7fa;
    font-weight: 500;
}

.entry-label.is-file {
    color: #a0c4ff;
}

.entry-count {
    font-size: 0.75rem;
    color: rgba(135, 206, 250, 0.35);
    flex-shrink: 0;
}

.entry-size,
.entry-date {
    font-size: 0.8rem;
    color: #6c8aad;
}

.explorer-dl-btn {
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 3px 10px rgba(0, 242, 254, 0.25);
    white-space: nowrap;
    font-family: inherit;
}

.explorer-dl-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
}

.explorer-dl-btn:hover {
    box-shadow: 0 5px 18px rgba(0, 242, 254, 0.55);
    transform: scale(1.06);
}

/* ── 网格视图 ── */
.explorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.explorer-grid-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(135, 206, 250, 0.15);
    border-radius: 12px;
    padding: 20px 12px 14px;
    cursor: pointer;
    position: relative;
    text-align: center;
    transition: all 0.25s;
    animation: entryFadeIn 0.25s ease both;
    text-decoration: none;
}

.explorer-grid-card:hover {
    background: rgba(135, 206, 250, 0.12);
    border-color: rgba(79, 172, 254, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.explorer-grid-card:hover .explorer-dl-btn-grid {
    opacity: 1;
}

.grid-icon-wrap {
    font-size: 2.2rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 5px rgba(135, 206, 250, 0.4));
}

.grid-label {
    font-size: 0.8rem;
    color: #a0c4ff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grid-label.is-folder {
    color: #e0f7fa;
    font-weight: 500;
}

.grid-sub {
    font-size: 0.72rem;
    color: #6c8aad;
    margin-top: 4px;
}

.explorer-dl-btn-grid {
    opacity: 0;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: rgba(79, 172, 254, 0.25);
    border: 1px solid rgba(79, 172, 254, 0.4);
    color: #4facfe;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.explorer-dl-btn-grid svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
}

.explorer-dl-btn-grid:hover {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
    border-color: transparent;
}

/* ── 空状态 & 底部 ── */
.explorer-empty {
    text-align: center;
    padding: 40px;
    color: #6c8aad;
    font-size: 0.9rem;
}

.explorer-footer {
    margin-top: 16px;
    text-align: right;
    font-size: 0.78rem;
    color: rgba(108, 138, 173, 0.6);
    padding-top: 12px;
    border-top: 1px solid rgba(135, 206, 250, 0.1);
}

/* ── Toast 提示 ── */
#toast-message {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 22, 44, 0.9);
    color: #4facfe;
    border: 1px solid rgba(79, 172, 254, 0.4);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.88rem;
    backdrop-filter: blur(10px);
    transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9999;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(79, 172, 254, 0.2);
}

#toast-message.show {
    bottom: 30px;
}

[data-theme="day"] .download-board {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.8);
    color: #0f172a;
}

[data-theme="day"] .download-header h2 {
    color: #1e3a8a;
}

[data-theme="day"] .download-header p {
    color: #1e40af;
}

[data-theme="day"] .explorer-breadcrumb {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.7);
    color: #0f172a;
}

[data-theme="day"] .crumb-root {
    color: #1d4ed8;
}

[data-theme="day"] .crumb-sep {
    color: #94a3b8;
}

[data-theme="day"] .crumb-item {
    color: #1e40af;
}

[data-theme="day"] .crumb-item.active {
    color: #0f172a;
}

[data-theme="day"] #explorerSearch {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
    color: #0f172a;
}

[data-theme="day"] #explorerSearch::placeholder {
    color: #64748b;
}

[data-theme="day"] .explorer-select {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
    color: #0f172a;
}

[data-theme="day"] .explorer-view-btn {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
    color: #1e40af;
}

[data-theme="day"] .explorer-view-btn.active {
    background: rgba(29, 78, 216, 0.2);
    border-color: rgba(29, 78, 216, 0.5);
    color: #1d4ed8;
}

[data-theme="day"] .explorer-back {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.7);
    color: #1e40af;
}

[data-theme="day"] .explorer-list-header {
    color: #334155;
}

[data-theme="day"] .explorer-entry {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.65);
}

[data-theme="day"] .explorer-entry:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(29, 78, 216, 0.3);
}

[data-theme="day"] .entry-label.is-folder {
    color: #1e3a8a;
    font-weight: 600;
}

[data-theme="day"] .entry-label.is-file {
    color: #1e40af;
}

[data-theme="day"] .entry-count {
    color: #64748b;
}

[data-theme="day"] .entry-size,
[data-theme="day"] .entry-date {
    color: #334155;
}

[data-theme="day"] .explorer-grid-card {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.65);
}

[data-theme="day"] .explorer-grid-card:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(29, 78, 216, 0.3);
}

[data-theme="day"] .grid-label {
    color: #1e40af;
}

[data-theme="day"] .grid-label.is-folder {
    color: #1e3a8a;
    font-weight: 600;
}

[data-theme="day"] .grid-sub {
    color: #334155;
}

[data-theme="day"] .explorer-footer {
    color: #475569;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="day"] .explorer-empty {
    color: #475569;
}

/* ── 响应式 ── */
@media (max-width: 600px) {

    .explorer-list-header,
    .explorer-entry {
        grid-template-columns: 1fr 70px;
    }

    .explorer-list-header span:nth-child(3),
    .explorer-list-header span:nth-child(4),
    .explorer-entry .entry-date {
        display: none;
    }

    .explorer-dl-btn {
        opacity: 1;
    }

    .explorer-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}


/* =========================================
   13. 页脚样式
   ========================================= */
.site-footer {
    text-align: center;
    padding: 20px 0 16px;
    border-top: 1px solid var(--crystal-border);
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.site-footer h3 {
    margin: 0 0 6px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.site-footer a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

.site-footer a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent-blue);
}

.site-footer p { margin: 0; }

[data-theme="day"] .site-footer {
    color: var(--text-secondary);
}
[data-theme="day"] .site-footer h3 {
    color: var(--text-secondary);
}

/* =========================================
   14. 冰晶滚动条
   ========================================= */

/* 滚动条整体宽度 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

/* 滚动条轨道 */
::-webkit-scrollbar-track {
    background: rgba(10, 22, 40, 0.6);
    border-left: 1px solid rgba(100, 216, 255, 0.08);
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(100, 216, 255, 0.6) 0%,
        rgba(168, 230, 255, 0.4) 50%,
        rgba(100, 216, 255, 0.6) 100%
    );
    border-radius: 4px;
    border: 1px solid rgba(100, 216, 255, 0.3);
    box-shadow: 0 0 6px rgba(100, 216, 255, 0.4);
}

/* 滑块悬停 */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        rgba(100, 216, 255, 0.9) 0%,
        rgba(168, 230, 255, 0.7) 50%,
        rgba(100, 216, 255, 0.9) 100%
    );
    box-shadow: 0 0 12px rgba(100, 216, 255, 0.7),
                0 0 20px rgba(100, 216, 255, 0.3);
}

/* 滑块拖动中 */
::-webkit-scrollbar-thumb:active {
    background: rgba(100, 216, 255, 1);
    box-shadow: 0 0 16px rgba(100, 216, 255, 0.9);
}

/* 日间模式适配 */
[data-theme="day"]::-webkit-scrollbar-track {
    background: rgba(200, 230, 255, 0.3);
    border-left: 1px solid rgba(0, 105, 217, 0.1);
}

[data-theme="day"]::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(0, 105, 217, 0.5) 0%,
        rgba(64, 165, 242, 0.4) 50%,
        rgba(0, 105, 217, 0.5) 100%
    );
    border-color: rgba(0, 105, 217, 0.3);
    box-shadow: 0 0 6px rgba(0, 105, 217, 0.3);
}

[data-theme="day"]::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        rgba(0, 105, 217, 0.8) 0%,
        rgba(64, 165, 242, 0.7) 50%,
        rgba(0, 105, 217, 0.8) 100%
    );
    box-shadow: 0 0 12px rgba(0, 105, 217, 0.5);
}