/* 嘿次元 · 下载面板样式（加粗淡蓝 & 冰雾微光滚动条 + 夜间模式适配）
   由子主题 functions.php 通过 wp_enqueue_style 引入
   文件位置：zibll-child/custom-styles/download-panel.css */

/* ----------------------------------------------------
   1. 💎 嘿次元专属：加粗淡蓝 & 冰雾微光胶囊滚动条
---------------------------------------------------- */
::-webkit-scrollbar {
    width: 14px !important;
    height: 14px !important;
}

::-webkit-scrollbar-track {
    background: transparent !important;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(6, 167, 255, 0.65) !important;
    border-radius: 20px !important;
    transition: all 0.25s ease-in-out;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(6, 167, 255, 0.95) !important;
}

.dark-theme ::-webkit-scrollbar-thumb,
[data-theme="dark"] ::-webkit-scrollbar-thumb,
html.dark ::-webkit-scrollbar-thumb,
body.dark ::-webkit-scrollbar-thumb {
    background-color: rgba(6, 167, 255, 0.45) !important;
    border-radius: 20px !important;
    box-shadow: 0 0 8px rgba(6, 167, 255, 0.25) !important;
}

.dark-theme ::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover,
html.dark ::-webkit-scrollbar-thumb:hover,
body.dark ::-webkit-scrollbar-thumb:hover {
    background-color: rgba(6, 167, 255, 0.8) !important;
    box-shadow: 0 0 12px rgba(6, 167, 255, 0.5) !important;
}

* {
    scrollbar-width: auto;
    scrollbar-color: rgba(6, 167, 255, 0.65) transparent;
}

/* ----------------------------------------------------
   2. 百度网盘美化卡片样式
---------------------------------------------------- */
.custom-panel-container { 
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}
.custom-panel-column {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.custom-panel-baidu { 
    border: 1px solid var(--border-color, #e0e0e0);
    background-color: var(--main-bg-color, #fff);
    border-radius: 8px;
    padding: 18px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.dark-theme .custom-panel-baidu,
[data-theme="dark"] .custom-panel-baidu,
html.dark .custom-panel-baidu { 
    background-color: #232328 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
}
.custom-panel-container h3 { 
    margin: 0 0 10px 0 !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: bold !important;
    color: var(--main-color, #333) !important;
}
.dark-theme .custom-panel-container h3,
[data-theme="dark"] .custom-panel-container h3,
html.dark .custom-panel-container h3 {
    color: #eee !important;
}
.custom-panel-container .code-block { 
    margin: 10px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f6f8fa;
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--muted-color, #666);
}
.dark-theme .custom-panel-container .code-block,
[data-theme="dark"] .custom-panel-container .code-block,
html.dark .custom-panel-container .code-block { 
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #bbb !important;
}
.custom-panel-container .code-block b { 
    font-family: Consolas, monaco, monospace;
    color: #d93025;
    font-size: 15px;
}
.dark-theme .custom-panel-container .code-block b,
[data-theme="dark"] .custom-panel-container .code-block b,
html.dark .custom-panel-container .code-block b {
    color: #ff6b6b !important;
}
.custom-panel-container .copy-button { 
    background: #06A7FF;
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.custom-panel-container .copy-button:hover {
    background: #008be3;
}
.custom-download-button { 
    display: block !important;
    text-align: center !important;
    padding: 10px 15px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    margin-top: 12px !important;
    border: none !important;
    transition: background-color 0.2s ease-in-out !important;
    cursor: pointer !important;
    font-size: 14px !important;
}
.custom-download-button.blue-style { 
    background-color: #06A7FF !important;
    color: #ffffff !important;
}
.custom-download-button.blue-style:hover { 
    background-color: #008be3 !important;
    color: #ffffff !important;
}
