/*
Theme Name: ZyCompact
Theme URI: https://123.com
Author: 智妍
Author URI: https://123.com
Description: 紧凑型中文博客主题：顶部分类导航，左侧链接+标签栏，紧凑布局，加载快，支持多主题色切换。
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: zycompact
*/

/* ===== 主题色变量（默认=明亮） ===== */
:root {
    --c-bg:          #f5f6f8;
    --c-text:        #24292f;
    --c-text-soft:   #57606a;
    --c-text-muted:  #8c959f;
    --c-link:        #0366d6;
    --c-link-hover:  #024ea4;
    --c-accent:      #2f81f7;
    --c-accent-dark:  #1f6feb;
    --c-accent-rgb:  47,129,247;

    --c-card-bg:     #fff;
    --c-card-border: #e1e4e8;
    --c-title-bg:    #f6f8fa;
    --c-dashed:      #eaecef;
    --c-input-bg:    #fff;
    --c-input-border:#d0d7de;

    --c-header-bg:   #161b22;
    --c-header-text: #c9d1d9;
    --c-header-bg-dark: #0d1117;
    --c-header-border: #30363d;
    --c-header-link: #58a6ff;
    --c-header-muted:#8b949e;

    --c-code-bg:     #0d1117;
    --c-code-text:   #e6edf3;

    --c-tag-bg:      #eef3fb;
    --c-tag-text:    #2f5ea8;
    --c-tag-border:  #d6e1f2;

    --c-badge-bg:    #fde5e5;
    --c-badge-text:  #c41f1f;

    --c-dot-cpu:     #2f81f7;
    --c-dot-mem:     #f0c674;

    --c-danger:      #f85149;

    --c-music-panel-bg:   #161b22;
    --c-music-panel-ctrl: #21262d;
    --c-music-panel-text: #c9d1d9;
}

/* 暗淡 */
[data-theme="dim"] {
    --c-bg:          #2d333b;
    --c-text:        #cdd9e5;
    --c-text-soft:   #909dab;
    --c-text-muted:  #768390;
    --c-link:        #539bf5;
    --c-link-hover:  #6cb6ff;
    --c-accent:      #4789f0;
    --c-accent-dark: #3b82e8;
    --c-accent-rgb:  71,137,240;

    --c-card-bg:     #373e47;
    --c-card-border: #545d68;
    --c-title-bg:    #2d333b;
    --c-dashed:      #545d68;
    --c-input-bg:    #2d333b;
    --c-input-border:#545d68;

    --c-header-bg:   #22272e;
    --c-header-text: #adbac7;
    --c-header-bg-dark: #1c2128;
    --c-header-border: #373e47;
    --c-header-link: #539bf5;
    --c-header-muted:#768390;

    --c-code-bg:     #1c2128;
    --c-code-text:   #adbac7;

    --c-tag-bg:      #2d333b;
    --c-tag-text:    #539bf5;
    --c-tag-border:  #545d68;

    --c-badge-bg:    #3d2424;
    --c-badge-text:  #f0a0a0;

    --c-dot-cpu:     #4789f0;
    --c-dot-mem:     #d4a64a;

    --c-danger:      #f85149;

    --c-music-panel-bg:   #22272e;
    --c-music-panel-ctrl: #2d333b;
    --c-music-panel-text: #adbac7;
}

/* 雅蓝 */
[data-theme="blue"] {
    --c-bg:          #eaf2fa;
    --c-text:        #1a3354;
    --c-text-soft:   #4a6a8a;
    --c-text-muted:  #7a9aaa;
    --c-link:        #1565a0;
    --c-link-hover:  #0d4d80;
    --c-accent:      #2f81f7;
    --c-accent-dark:  #1f6feb;
    --c-accent-rgb:  47,129,247;

    --c-card-bg:     #f7fbff;
    --c-card-border: #c5d9ed;
    --c-title-bg:    #e0ecf6;
    --c-dashed:      #d0dfee;
    --c-input-bg:    #f7fbff;
    --c-input-border:#b0c8e0;

    --c-header-bg:   #1a3354;
    --c-header-text: #c5d9ed;
    --c-header-bg-dark: #142841;
    --c-header-border: #2a4a6a;
    --c-header-link: #6cb6ff;
    --c-header-muted:#7a9aaa;

    --c-code-bg:     #142841;
    --c-code-text:   #c5d9ed;

    --c-tag-bg:      #dceaf7;
    --c-tag-text:    #1565a0;
    --c-tag-border:  #b0c8e0;

    --c-badge-bg:    #e0eef7;
    --c-badge-text:  #1565a0;

    --c-dot-cpu:     #2f81f7;
    --c-dot-mem:     #d4a64a;

    --c-danger:      #e05858;

    --c-music-panel-bg:   #1a3354;
    --c-music-panel-ctrl: #2a4a6a;
    --c-music-panel-text: #c5d9ed;
}

/* 淡红 */
[data-theme="red"] {
    --c-bg:          #faf0ee;
    --c-text:        #4a2420;
    --c-text-soft:   #7a4a44;
    --c-text-muted:  #aa7a74;
    --c-link:        #b03020;
    --c-link-hover:  #8a2010;
    --c-accent:      #e0584a;
    --c-accent-dark: #c8483a;
    --c-accent-rgb:  224,88,74;

    --c-card-bg:     #fff8f6;
    --c-card-border: #e8c8c0;
    --c-title-bg:    #f6e8e4;
    --c-dashed:      #eed8d0;
    --c-input-bg:    #fff8f6;
    --c-input-border:#d8b0a8;

    --c-header-bg:   #4a2420;
    --c-header-text: #e8c8c0;
    --c-header-bg-dark: #3a1814;
    --c-header-border: #6a3a30;
    --c-header-link: #f08070;
    --c-header-muted:#aa7a74;

    --c-code-bg:     #3a1814;
    --c-code-text:   #e8c8c0;

    --c-tag-bg:      #f6e8e4;
    --c-tag-text:    #b03020;
    --c-tag-border:  #d8b0a8;

    --c-badge-bg:    #e8d0c8;
    --c-badge-text:  #b03020;

    --c-dot-cpu:     #e0584a;
    --c-dot-mem:     #d4a64a;

    --c-danger:      #c83020;

    --c-music-panel-bg:   #4a2420;
    --c-music-panel-ctrl: #5a3430;
    --c-music-panel-text: #e8c8c0;
}

/* 暗黑 */
[data-theme="dark"] {
    --c-bg:          #0d1117;
    --c-text:        #e6edf3;
    --c-text-soft:   #8b949e;
    --c-text-muted:  #6e7681;
    --c-link:        #58a6ff;
    --c-link-hover:  #79b8ff;
    --c-accent:      #388bfd;
    --c-accent-dark: #1f6feb;
    --c-accent-rgb:  56,139,253;

    --c-card-bg:     #161b22;
    --c-card-border: #30363d;
    --c-title-bg:    #161b22;
    --c-dashed:      #30363d;
    --c-input-bg:    #0d1117;
    --c-input-border:#30363d;

    --c-header-bg:   #010409;
    --c-header-text: #8b949e;
    --c-header-bg-dark: #010409;
    --c-header-border: #21262d;
    --c-header-link: #58a6ff;
    --c-header-muted:#6e7681;

    --c-code-bg:     #010409;
    --c-code-text:   #e6edf3;

    --c-tag-bg:      #161b22;
    --c-tag-text:    #58a6ff;
    --c-tag-border:  #30363d;

    --c-badge-bg:    #3d2424;
    --c-badge-text:  #f0a0a0;

    --c-dot-cpu:     #388bfd;
    --c-dot-mem:     #d4a64a;

    --c-danger:      #f85149;

    --c-music-panel-bg:   #010409;
    --c-music-panel-ctrl: #161b22;
    --c-music-panel-text: #8b949e;
}

/* ===== 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    font-size: 14px;
    line-height: 1.65;
    transition: background .3s, color .3s;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.site-body { flex: 1; }
a { color: var(--c-link); text-decoration: none; }
a:hover { color: var(--c-link-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; vertical-align: middle; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ===== 顶栏 ===== */
.site-header {
    background: var(--c-header-bg);
    border-bottom: 2px solid var(--c-accent);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    min-height: 50px;
    gap: 12px;
}
.site-brand { flex-shrink: 0; }
.site-brand a {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
}
.site-brand a:hover { text-decoration: none; color: var(--c-header-link); }
.site-brand img.custom-logo {
    max-height: 36px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

/* 顶部导航 */
.main-nav { flex: 1; min-width: 0; overflow: hidden; }
.main-nav ul {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav li { flex-shrink: 0; }
.main-nav a {
    display: block;
    color: var(--c-header-text);
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all .15s;
    white-space: nowrap;
}
.main-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
    text-decoration: none;
}
.main-nav .current-menu-item > a,
.main-nav .current-cat > a {
    color: #fff;
    background: var(--c-accent);
}

/* 搜索框 */
.header-search { flex-shrink: 0; }
.header-search form { display: flex; gap: 4px; }
.header-search input[type=search] {
    width: 120px;
    padding: 5px 10px;
    background: var(--c-header-bg-dark);
    border: 1px solid var(--c-header-border);
    border-radius: 6px;
    color: var(--c-header-text);
    font-size: 13px;
    outline: none;
}
.header-search input[type=search]:focus { border-color: var(--c-accent); }
.header-search button {
    background: var(--c-accent);
    border: none;
    color: #fff;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ===== 主题色切换器 ===== */
.theme-switcher {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 3px;
}
.theme-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s, border-color .15s;
}
.theme-dot:hover { transform: scale(1.2); }
.theme-dot.active { border-color: #fff; transform: scale(1.15); }
.theme-dot-light  { background: #f5f6f8; }
.theme-dot-dim    { background: #545d68; }
.theme-dot-blue   { background: #2f81f7; }
.theme-dot-red    { background: #e0584a; }
.theme-dot-dark   { background: #0d1117; }

/* ===== 右侧浮动主题色切换器 ===== */
.zyc-theme-float {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    cursor: pointer;
}
/* 返回顶部（齿轮上面）默认收一半，hover 展开 */
.zyc-float-top {
    width: calc(var(--zyc-gear-size, 36px) * 0.5);
    height: calc(var(--zyc-gear-size, 36px) * 0.5);
    background: var(--c-accent);
    color: #fff;
    font-size: calc(var(--zyc-gear-size, 36px) * 0.5);
    border-radius: 8px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px -1px 8px rgba(0,0,0,.15);
    transition: width .2s ease, opacity .2s;
    flex-shrink: 0;
    opacity: 0.7;
    line-height: 1;
    padding-bottom: 2px;
    overflow: hidden;
    cursor: pointer;
}
.zyc-float-top:hover {
    width: var(--zyc-gear-size, 36px);
    opacity: 1;
    background: var(--c-accent-hover, var(--c-accent));
}
/* 到底部按钮（齿轮下面）默认收一半，hover 展开 */
.zyc-float-bottom {
    width: calc(var(--zyc-gear-size, 36px) * 0.5);
    height: calc(var(--zyc-gear-size, 36px) * 0.5);
    background: var(--c-accent);
    color: #fff;
    font-size: calc(var(--zyc-gear-size, 36px) * 0.5);
    border-radius: 0 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 2px 8px rgba(0,0,0,.15);
    transition: width .2s ease, opacity .2s;
    flex-shrink: 0;
    opacity: 0.7;
    line-height: 1;
    padding-top: 2px;
    overflow: hidden;
    cursor: pointer;
}
.zyc-float-bottom:hover {
    width: var(--zyc-gear-size, 36px);
    opacity: 1;
    background: var(--c-accent-hover, var(--c-accent));
}
/* 齿轮手柄：默认只显示一半，hover 显示完整 */
.zyc-theme-float-handle {
    width: calc(var(--zyc-gear-size, 36px) * 0.5);
    height: var(--zyc-gear-size, 36px);
    background: var(--c-accent);
    color: #fff;
    font-size: calc(var(--zyc-gear-size, 36px) * 0.5);
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 2px 8px rgba(0,0,0,.15);
    transition: width .2s ease;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
    overflow: hidden;
    line-height: 1;
}
.zyc-theme-float-handle:hover {
    width: var(--zyc-gear-size, 36px);
}
.zyc-theme-float-body {
    background: var(--c-card-bg);
    border: 1px solid var(--c-card-border);
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 10px 12px 10px 10px;
    box-shadow: -2px 2px 8px rgba(0,0,0,.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    /* 默认收起：宽度为0，不可见 */
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width .25s ease, opacity .2s ease, padding .25s ease;
    white-space: nowrap;
}
.zyc-theme-float-body .zyc-theme-float-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: .5px;
}
.zyc-theme-float-body .zyc-theme-float-options {
    display: flex;
    gap: 4px;
}
.zyc-theme-float-body .theme-dot {
    width: 18px;
    height: 18px;
}
.zyc-theme-float-body .theme-dot.active {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 1px var(--c-accent);
}
.zyc-theme-float-divider {
    width: 100%;
    height: 1px;
    background: var(--c-card-border);
    margin: 4px 0;
}
.zyc-theme-float-toggles {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}
.zyc-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--c-text);
    cursor: pointer;
    white-space: nowrap;
    min-width: 140px;
}
.zyc-toggle-row input[type=checkbox] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: var(--c-accent);
    flex-shrink: 0;
}

/* 左右滑动开关 */
.zyc-switch {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: #ccc;
    position: relative;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}
.zyc-switch-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
    transition: left .2s ease;
}
.zyc-switch.on { background: var(--c-accent); }
.zyc-switch.on .zyc-switch-knob { left: 18px; }

/* 重置按钮 */
.zyc-reset-btn {
    width: 100%;
    padding: 6px 12px;
    background: none;
    border: 1px solid var(--c-card-border);
    border-radius: 6px;
    color: var(--c-text-soft);
    font-size: 12px;
    cursor: pointer;
    transition: all .15s;
}
.zyc-reset-btn:hover {
    background: var(--c-danger);
    color: #fff;
    border-color: var(--c-danger);
}

/* 点击展开（点击齿轮才展开，hover 不展开） */
.zyc-theme-float.expanded .zyc-theme-float-body {
    width: auto;
    opacity: 1;
    padding: 10px 12px 10px 10px;
}
.zyc-theme-float.expanded .zyc-theme-float-handle {
    border-radius: 0;
    width: var(--zyc-gear-size, 36px);
}

/* ===== 显示选项效果 ===== */
/* 固定头部：site-header sticky 吸顶（默认就是 sticky，关掉则 relative） */
body:not(.zyc-opt-fixed-header) .site-header {
    position: relative;
}

/* 固定导航：导航栏独立 sticky 吸顶 */
body.zyc-opt-fixed-nav .main-nav {
    position: sticky;
    top: 0;
    z-index: 101;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
body:not(.zyc-opt-fixed-nav) .main-nav {
    box-shadow: none;
    border-radius: 0;
}

/* 折叠导航：导航项折叠成图标，hover 展开 */
body.zyc-opt-collapse-nav .main-nav {
    position: relative;
}
body.zyc-opt-collapse-nav .main-nav ul {
    max-height: 38px;
    overflow: hidden;
}
body.zyc-opt-collapse-nav .main-nav::after {
    content: '☰';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-header-bg);
    color: var(--c-header-text);
    cursor: pointer;
    font-size: 14px;
    z-index: 2;
}
body.zyc-opt-collapse-nav .main-nav:hover {
    overflow: visible;
}
body.zyc-opt-collapse-nav .main-nav:hover ul {
    max-height: 200px;
    overflow: visible;
}
body.zyc-opt-collapse-nav .main-nav:hover::after {
    content: '✕';
    height: 38px;
}

/* 置顶导航：整个 header 固定在页面最顶部（含 logo + 导航 + 搜索） */
body.zyc-opt-pin-nav .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
body.zyc-opt-pin-nav .site-header .main-nav {
    position: static;
}
body.zyc-opt-pin-nav .site-body {
    padding-top: 64px;
}
body.zyc-opt-pin-nav .site-header .container {
    max-width: 100%;
}
/* 折叠导航 + 置顶导航同时开启时，hover 展开不被 header 边界裁切 */
body.zyc-opt-pin-nav.zyc-opt-collapse-nav .main-nav:hover {
    overflow: visible;
}

/* ===== 盒子模型 ===== */
/* 关：三列一起全屏铺满，不留缝隙，但每列有合理间距 */
body:not(.zyc-opt-box-model) .container { max-width: 100%; padding: 0; }
body:not(.zyc-opt-box-model) .site-body { gap: 0; padding: 0; }
body:not(.zyc-opt-box-model) .main-wrap { padding: 12px; box-sizing: border-box; }
body:not(.zyc-opt-box-model) .sidebar-left { padding: 12px 8px 12px 12px; box-sizing: border-box; }
body:not(.zyc-opt-box-model) .sidebar-right { padding: 12px 12px 12px 8px; box-sizing: border-box; }
body:not(.zyc-opt-box-model) .blog-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}
body:not(.zyc-opt-box-model) .blog-list .post-item {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    margin-bottom: 0;
}
/* 开：限宽1180px居中，不动 */
body.zyc-opt-box-model .container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
/* 公共布局 */
.site-body { display: flex; gap: 16px; padding: 16px 0 32px; }
.main-wrap { flex: 1; min-width: 0; }

/* ===== 左侧栏 ===== */
.sidebar-left { width: 240px; flex-shrink: 0; }
.sidebar-left .widget {
    background: var(--c-card-bg);
    border: 1px solid var(--c-card-border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}
.sidebar-left .widget-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-text);
    padding: 8px 14px;
    background: var(--c-title-bg);
    border-bottom: 1px solid var(--c-card-border);
}
.sidebar-left .widget-content { padding: 8px 14px 12px; }
.sidebar-left .widget-content-center { padding: 8px 14px 12px; text-align: center; }
.sidebar-left ul { list-style: none; margin-top: 6px; }
.sidebar-left li {
    font-size: 13px;
    padding: 3px 0;
    border-bottom: 1px dashed var(--c-dashed);
}
.sidebar-left li:last-child { border-bottom: none; }

/* 标签云 */
.sidebar-left .tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.sidebar-left .tagcloud a {
    font-size: 12px !important;
    background: var(--c-tag-bg);
    color: var(--c-tag-text);
    border: 1px solid var(--c-tag-border);
    border-radius: 4px;
    padding: 2px 8px;
    line-height: 1.8;
}
.sidebar-left .tagcloud a:hover {
    background: var(--c-accent);
    color: #fff;
    text-decoration: none;
}

/* 自定义标签 */
.zyc-taglist { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.zyc-tag-item {
    display: inline-block;
    font-size: 12px;
    background: var(--c-tag-bg);
    color: var(--c-tag-text);
    border: 1px solid var(--c-tag-border);
    border-radius: 4px;
    padding: 2px 8px;
    line-height: 1.8;
}
.zyc-tag-item:hover { background: var(--c-accent); color: #fff; text-decoration: none; }
.zyc-tag-textonly { cursor: default; }
.zyc-tag-textonly:hover { background: var(--c-tag-bg); color: var(--c-tag-text); }

/* 链接列表 */
.widget-content-center .zyc-linklist { display: inline-block; text-align: left; }
.widget-content-center .zyc-catlist { display: inline-block; text-align: left; }
.zyc-linklist { list-style: none; margin-top: 4px; }
.zyc-linklist li { font-size: 13px; padding: 4px 0; border-bottom: 1px dashed var(--c-dashed); }
.zyc-linklist li:last-child { border-bottom: none; }
.zyc-linklist a { color: var(--c-link); text-decoration: none; }
.zyc-linklist a:hover { color: var(--c-link-hover); text-decoration: underline; }
.zyc-textonly { color: var(--c-text); }
.zyc-links-empty { font-size: 12px; color: var(--c-text-muted); }

/* 头像 */
.widget-avatar { text-align: center; }
.widget-avatar img {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--c-card-border); box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.widget-avatar .avatar-name { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--c-text); }
.widget-avatar .avatar-desc { font-size: 12px; color: var(--c-text-muted); margin-top: 2px; }

/* ===== 右侧栏 ===== */
.sidebar-right { width: 260px; flex-shrink: 0; }
.sidebar-right .widget {
    background: var(--c-card-bg);
    border: 1px solid var(--c-card-border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}
.sidebar-right .widget-title {
    font-size: 13px; font-weight: 700; color: var(--c-text);
    padding: 8px 14px; background: var(--c-title-bg);
    border-bottom: 1px solid var(--c-card-border);
}
.sidebar-right .widget-content { padding: 10px 14px 12px; }

/* 时钟 */
.clock-box { text-align: center; padding: 4px 0 6px; }
.clock-date { font-size: 13px; color: var(--c-text-soft); margin-bottom: 6px; letter-spacing: .5px; }
.clock-time {
    font-size: 26px; font-weight: 700; color: var(--c-text);
    font-variant-numeric: tabular-nums; letter-spacing: 1px; line-height: 1.2;
}
.clock-ms { font-size: 13px; color: var(--c-link); font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }

/* 服务器状态 */
.status-list { list-style: none; }
.status-list li {
    font-size: 12.5px; padding: 5px 0; display: flex; align-items: center; gap: 8px;
    border-bottom: 1px dashed var(--c-dashed);
}
.status-list li:last-child { border-bottom: none; }
.status-list .st-label {
    color: var(--c-text-soft); flex-shrink: 0; min-width: 74px;
    display: inline-flex; align-items: center; gap: 5px;
}
.status-list .st-value { color: var(--c-text); font-weight: 600; font-variant-numeric: tabular-nums; margin-left: auto; text-align: right; }
.status-list .st-bar { display: none; }
.st-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.st-dot-cpu { background: var(--c-dot-cpu); }
.st-dot-mem { background: var(--c-dot-mem); }
.status-updated { font-size: 11px; color: var(--c-text-muted); margin-top: 8px; text-align: right; }

/* ===== 流量计量表 ===== */
.widget-stats .widget-content { padding: 6px 10px 8px; }
.stats-period-switch {
    display: flex; gap: 4px; margin-bottom: 8px;
}
.zyc-stats-tab {
    flex: 1; padding: 4px 6px; border: 1px solid var(--c-card-border);
    background: var(--c-card-bg); color: var(--c-text-soft);
    border-radius: 4px; font-size: 11px; cursor: pointer; transition: all .15s;
}
.zyc-stats-tab.active {
    background: var(--c-accent); color: #fff; border-color: var(--c-accent);
}
.stats-section { margin-bottom: 10px; }
.stats-section:last-child { margin-bottom: 0; }
.stats-section-title {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; font-weight: 700; color: var(--c-text);
    margin-bottom: 4px;
}
.stats-hint {
    font-size: 10px; font-weight: 400; color: var(--c-text-muted);
}
.stats-unit-switch { display: flex; gap: 3px; }
.zyc-unit-tab {
    padding: 2px 7px; border: 1px solid var(--c-card-border);
    background: var(--c-card-bg); color: var(--c-text-soft);
    border-radius: 3px; font-size: 10px; cursor: pointer; transition: all .15s;
    font-family: "SFMono-Regular", Consolas, monospace;
}
.zyc-unit-tab.active {
    background: var(--c-accent); color: #fff; border-color: var(--c-accent);
}
.stats-chart {
    width: 100%; height: 62px; display: block;
    background: var(--c-title-bg); border: 1px solid var(--c-card-border);
    border-radius: 4px;
}
.stats-chart .grid {
    stroke: var(--c-card-border); stroke-width: 0.5; stroke-dasharray: 2 2;
}
.stats-chart .tick-label {
    font-size: 7px; fill: var(--c-text-muted);
}
.stats-chart .cpu-warn-zone {
    fill: var(--c-danger); fill-opacity: 0.06;
}
.stats-chart .cpu-warn-line {
    stroke: var(--c-danger); stroke-width: 0.5; stroke-dasharray: 3 2; opacity: 0.5;
}
.stats-chart .cpu-line {
    fill: none; stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round;
}
.stats-chart .net-line {
    fill: none; stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round;
}
.stats-chart .cpu-load1 { stroke: #2f81f7; }
.stats-chart .cpu-load5 { stroke: #f0c674; }
.stats-chart .cpu-load15 { stroke: #f85149; }
.stats-chart .net-rxr { stroke: #22c55e; }
.stats-chart .net-txr { stroke: #a855f7; }
.stats-chart .chart-empty { font-size: 9px; fill: var(--c-text-muted); }
.stats-chart-legend {
    display: flex; gap: 10px; font-size: 10px; color: var(--c-text-muted);
    margin-top: 3px;
}
.stats-chart-legend .dot {
    display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    margin-right: 3px; vertical-align: middle;
}
.stats-chart-hint {
    font-size: 10px; color: var(--c-text-soft);
    margin-top: 4px; line-height: 1.4;
}
.stats-net-row {
    display: flex; gap: 8px; margin-top: 4px;
}
.stats-net-item {
    flex: 1; display: flex; align-items: center; justify-content: space-between;
    background: var(--c-title-bg); border: 1px solid var(--c-card-border);
    border-radius: 4px; padding: 5px 8px;
}
.stats-net-label {
    font-size: 11px; color: var(--c-text-soft);
}
.stats-net-value {
    font-size: 12px; font-weight: 700; color: var(--c-text);
    font-variant-numeric: tabular-nums; font-family: "SFMono-Regular", Consolas, monospace;
}
.stats-net-hint {
    font-size: 10px; color: var(--c-text-muted);
    margin-top: 4px; line-height: 1.4;
}

/* ===== 音乐播放器 (网易云/APlayer 风格) ===== */
.widget-music { border: 1px solid var(--c-card-border); border-radius: 6px; overflow: hidden; }
.widget-music .widget-content { padding: 12px 14px; }

.music-stage {
    display: flex; gap: 12px; align-items: center;
    margin-bottom: 10px;
}

.music-disc-wrap {
    position: relative;
    flex: 0 0 72px;
    width: 72px; height: 72px;
}
.music-disc {
    width: 72px; height: 72px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, var(--c-title-bg) 30%, var(--c-bg) 32%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center;
    transform: rotate(var(--disc-rot, 0deg));
    transition: transform 0.3s linear;
}
.music-disc.rotating {
    animation: musicSpin 4s linear infinite;
}
.music-disc-svg { opacity: 0.9; }
@keyframes musicSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.music-info { flex: 1; min-width: 0; }
.music-name-wrap { margin-bottom: 6px; }
.music-name {
    font-size: 13px; font-weight: 600; color: var(--c-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.music-marquee-wrap {
    margin-top: 2px; height: 14px; overflow: hidden; position: relative;
}
.music-marquee-track { position: relative; width: 100%; }
.music-marquee-content {
    display: inline-block; white-space: nowrap;
    animation: marqueeMove 8s linear infinite;
    animation-play-state: paused;
}
.music-marquee-wrap:has(.music-marquee-content.playing-anim) .music-marquee-content {
    animation-play-state: running;
}
@keyframes marqueeMove {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.music-progress-wrap {
    position: relative; height: 16px; cursor: pointer;
    margin: 2px 0 4px;
}
.music-progress-bar {
    position: absolute; top: 50%; left: 0; right: 0;
    height: 3px; transform: translateY(-50%);
    background: var(--c-card-border);
    border-radius: 2px;
    overflow: visible;
}
.music-progress-buffer {
    position: absolute; top: 0; left: 0; height: 100%;
    background: var(--c-title-bg);
    border-radius: 2px;
    transition: width 0.2s;
}
.music-progress-fill {
    position: absolute; top: 0; left: 0; height: 100%;
    background: linear-gradient(90deg, #2f81f7, #5b9dff);
    border-radius: 2px;
}
.music-progress-thumb {
    position: absolute; top: 50%; right: -5px;
    width: 10px; height: 10px; border-radius: 50%;
    background: #2f81f7;
    transform: translate(50%, -50%);
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 1px 4px rgba(47,129,247,0.5);
}
.music-progress-wrap:hover .music-progress-fill {
    height: 4px;
}
.music-progress-wrap:hover .music-progress-thumb { opacity: 1; }

.music-time-row {
    display: flex; align-items: center; gap: 4px;
    font-size: 10px; color: var(--c-text-muted);
    font-variant-numeric: tabular-nums;
    font-family: "SFMono-Regular", Consolas, monospace;
}

.music-controls {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin: 8px 0 6px;
}
.music-btn {
    background: none; border: none; color: var(--c-text-soft);
    cursor: pointer; padding: 6px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.music-btn:hover { color: var(--c-text); background: var(--c-title-bg); }
.music-btn-big {
    width: 36px; height: 36px;
    background: var(--c-title-bg); border: 1px solid var(--c-card-border);
}
.music-btn-big:hover { background: var(--c-title-bg); transform: scale(1.05); }
.music-btn-big:active { transform: scale(0.95); }
.music-btn.loop-all     { color: var(--c-text); }
.music-btn.loop-one     { color: #22c55e; }
.music-btn.loop-none    { color: var(--c-text-muted); }

.music-volume-wrap {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 4px 0;
}
.music-btn#zyc-music-vol-btn { padding: 4px; }
.music-vol-slider {
    flex: 1; height: 3px; appearance: none;
    background: var(--c-card-border);
    border-radius: 2px; outline: none;
    cursor: pointer;
}
.music-vol-slider::-webkit-slider-thumb {
    appearance: none; width: 10px; height: 10px;
    border-radius: 50%; background: #2f81f7;
    cursor: pointer;
}
.music-vol-slider::-moz-range-thumb {
    width: 10px; height: 10px; border-radius: 50%;
    background: #2f81f7; border: none; cursor: pointer;
}

/* 播放列表 */
.music-playlist {
    list-style: none; margin: 6px 0 0; padding: 0;
    max-height: 160px; overflow-y: auto;
}
.music-playlist::-webkit-scrollbar { width: 4px; }
.music-playlist::-webkit-scrollbar-thumb { background: var(--c-card-border); border-radius: 2px; }

.music-item {
    display: flex; align-items: center; gap: 6px;
    padding: 5px 6px; border-radius: 3px;
    cursor: pointer; transition: background 0.15s;
    position: relative;
}
.music-item:hover { background: var(--c-title-bg); }
.music-item.playing {
    background: linear-gradient(90deg, var(--c-title-bg), transparent);
    color: var(--c-text);
}
.music-item.playing .music-item-name { color: #2f81f7; font-weight: 600; }
.music-item-no {
    font-size: 10px; color: var(--c-text-muted);
    font-family: "SFMono-Regular", Consolas, monospace;
    width: 18px;
}
.music-item.playing .music-item-no { color: #2f81f7; }
.music-item-name {
    flex: 1; font-size: 11px; color: var(--c-text-soft);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.music-item-eq {
    display: inline-flex; align-items: flex-end; gap: 1px;
    height: 10px; opacity: 0;
}
.music-item.playing .music-item-eq { opacity: 1; }
.music-item-eq i {
    width: 2px; background: #2f81f7; border-radius: 1px;
    animation: eqBar 0.8s ease-in-out infinite;
}
.music-item-eq i:nth-child(1) { height: 4px; animation-delay: 0s; }
.music-item-eq i:nth-child(2) { height: 7px; animation-delay: 0.2s; }
.music-item-eq i:nth-child(3) { height: 5px; animation-delay: 0.4s; }
@keyframes eqBar {
    0%, 100% { transform: scaleY(0.4); }
    50%      { transform: scaleY(1); }
}
.music-item:not(.playing) .music-item-eq i { animation: none; height: 4px; }

.music-empty {
    display: flex; flex-direction: column; align-items: center;
    padding: 16px 8px; text-align: center;
}
.music-empty-icon { font-size: 22px; margin-bottom: 4px; opacity: 0.6; }
.music-empty-text { font-size: 12px; color: var(--c-text-soft); margin-bottom: 4px; }
.music-empty-hint { font-size: 10px; color: var(--c-text-muted); line-height: 1.5; }
.music-empty-hint code {
    background: var(--c-title-bg); padding: 1px 4px; border-radius: 2px;
    font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px;
}

/* ===== 图表 hover 提示框 ===== */
.zyc-chart-tooltip {
    position: fixed; z-index: 9999;
    display: none;
    background: var(--c-tooltip-bg, #1c1c1c);
    color: var(--c-text, #eee);
    border: 1px solid var(--c-card-border, #444);
    border-radius: 4px; padding: 5px 8px;
    font-size: 11px; line-height: 1.6;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.zyc-tip-time {
    color: var(--c-text-soft, #aaa);
    font-size: 10px; margin-bottom: 2px;
    font-family: "SFMono-Regular", Consolas, monospace;
}
.zyc-tip-dot {
    display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    margin-right: 4px; vertical-align: middle;
}
.stats-chart { cursor: crosshair; }
.stats-chart .zyc-crosshair {
    stroke: rgba(255,255,255,0.35); stroke-width: 0.8;
    stroke-dasharray: 2 2; pointer-events: none;
}
.stats-chart .zyc-hover-dot {
    stroke: #fff; stroke-width: 1;
    pointer-events: none;
}

/* ===== 文章卡片 ===== */
.blog-list .post-item {
    background: var(--c-card-bg);
    border: 1px solid var(--c-card-border);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
    transition: border-color .15s, box-shadow .15s;
}
.blog-list .post-item:hover {
    border-color: var(--c-accent);
    box-shadow: 0 2px 8px rgba(var(--c-accent-rgb), .08);
}
.post-item .post-header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.post-item .entry-title { font-size: 16px; line-height: 1.45; flex: 1 1 auto; }
.post-item .entry-title a { color: var(--c-text); }
.post-item .entry-title a:hover { color: var(--c-link); text-decoration: none; }
.post-item .entry-meta { font-size: 12px; color: var(--c-text-muted); margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; }
.post-item .entry-meta a { color: var(--c-text-soft); }
.post-item .entry-meta a:hover { color: var(--c-link); }
.post-item .entry-summary { font-size: 13px; color: var(--c-text-soft); margin-top: 6px; }
.post-item .cat-badge {
    font-size: 12px; background: var(--c-badge-bg); color: var(--c-badge-text);
    border-radius: 4px; padding: 1px 8px; flex-shrink: 0;
}

/* ===== 单篇文章 ===== */
.single-wrap, .page-wrap {
    background: var(--c-card-bg);
    border: 1px solid var(--c-card-border);
    border-radius: 8px;
    padding: 24px 28px;
}
.single-wrap .entry-title { font-size: 22px; line-height: 1.4; margin-bottom: 8px; color: var(--c-text); }
.single-wrap .entry-meta {
    font-size: 12px; color: var(--c-text-muted);
    padding-bottom: 12px; margin-bottom: 16px;
    border-bottom: 1px solid var(--c-dashed);
    display: flex; gap: 14px; flex-wrap: wrap;
}
.single-wrap .entry-meta a { color: var(--c-text-soft); }
.single-wrap .entry-content { font-size: 15px; color: var(--c-text); }
.single-wrap .entry-content h1,
.single-wrap .entry-content h2,
.single-wrap .entry-content h3 { margin: 1.2em 0 .5em; line-height: 1.35; }
.single-wrap .entry-content h2 { font-size: 20px; border-bottom: 1px solid var(--c-dashed); padding-bottom: 6px; }
.single-wrap .entry-content h3 { font-size: 17px; }
.single-wrap .entry-content p { margin: .8em 0; }
.single-wrap .entry-content ul,
.single-wrap .entry-content ol { margin: .8em 0 .8em 1.6em; }
.single-wrap .entry-content blockquote {
    margin: 1em 0; padding: 6px 14px;
    border-left: 4px solid var(--c-accent);
    background: var(--c-title-bg);
    color: var(--c-text-soft);
}
.single-wrap .entry-content pre {
    background: var(--c-code-bg);
    color: var(--c-code-text);
    padding: 12px 14px; border-radius: 8px; overflow-x: auto;
    font-size: 13px; line-height: 1.5;
}
.single-wrap .entry-content code { font-family: "SFMono-Regular", Consolas, monospace; }
.single-wrap .entry-content img { border-radius: 6px; }
.single-wrap .post-tags { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--c-dashed); }
.single-wrap .post-tags a {
    display: inline-block; font-size: 12px;
    background: var(--c-tag-bg); color: var(--c-tag-text);
    border-radius: 4px; padding: 2px 9px; margin: 3px 4px 3px 0;
}
.single-wrap .post-tags a:hover { background: var(--c-accent); color: #fff; text-decoration: none; }

/* 上一篇/下一篇（迷你版，底部缩小） */
.post-nav-mini {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #e8e8e8;
    font-size: 12px;
    color: #aaa;
}
.post-nav-mini a,
.post-nav-mini span {
    text-decoration: none;
    color: #888;
    transition: color 0.15s;
}
.post-nav-mini a:hover { color: var(--c-accent); }
.post-nav-mini .nav-disabled { color: #ccc; cursor: default; }

/* 备案号 */
.zyc-paper-beian {
    text-align: center;
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
    font-family: "Source Han Sans SC","Microsoft YaHei",sans-serif;
    font-size: 11px;
    color: #aaa;
    line-height: 1.8;
}
.zyc-paper-beian a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.15s;
}
.zyc-paper-beian a:hover { color: #666; }
.zyc-paper-beian-sep { margin: 0 8px; color: #ddd; }

/* 响应式 */
@media (max-width: 720px) {
    .zyc-paper-page { margin: 20px auto; padding: 0 16px; }
    .zyc-paper { padding: 32px 20px 28px; font-size: 15px; line-height: 1.75; }
    .zyc-paper-title { font-size: 20px; }
    .zyc-paper-content h2 { font-size: 16px; }
    .zyc-paper-beian { font-size: 10px; }
}

/* ===== 评论 ===== */
.comments-area { margin-top: 16px; }
.comments-title { font-size: 15px; margin-bottom: 12px; color: var(--c-text); }
.comment-list { list-style: none; }
.comment-list .comment {
    background: var(--c-card-bg); border: 1px solid var(--c-card-border);
    border-radius: 8px; padding: 12px 16px; margin-bottom: 10px;
}
.comment-list .comment-author { font-weight: 700; font-size: 13px; }
.comment-list .comment-metadata { font-size: 12px; color: var(--c-text-muted); margin: 2px 0 6px; }
.comment-list .comment-content { font-size: 14px; }
.comment-reply-title { font-size: 15px; margin-bottom: 12px; color: var(--c-text); }
.comment-form label { display: block; font-size: 13px; margin: 8px 0 4px; color: var(--c-text-soft); }
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form input[type=url],
.comment-form textarea {
    width: 100%; padding: 8px 10px; border: 1px solid var(--c-input-border);
    border-radius: 6px; font-size: 14px; font-family: inherit; background: var(--c-input-bg);
    color: var(--c-text);
}
.comment-form textarea { min-height: 120px; }
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--c-accent); }
.comment-form .submit {
    background: var(--c-accent); color: #fff; border: none; border-radius: 6px;
    padding: 8px 20px; font-size: 14px; cursor: pointer; margin-top: 10px;
}
.comment-form .submit:hover { background: var(--c-accent-dark); }

/* ===== 归档/分页 ===== */
.archive-header {
    background: var(--c-card-bg); border: 1px solid var(--c-card-border);
    border-radius: 8px; padding: 10px 16px; margin-bottom: 10px; font-size: 14px;
    color: var(--c-text);
}
.archive-header strong { color: var(--c-text); }
.pagination { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pagination .page-numbers {
    display: inline-block; min-width: 32px; text-align: center;
    background: var(--c-card-bg); border: 1px solid var(--c-card-border);
    border-radius: 6px; padding: 5px 10px; font-size: 13px; color: var(--c-text);
}
.pagination .page-numbers.current { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.pagination .page-numbers:hover { border-color: var(--c-accent); text-decoration: none; }

/* ===== 404 / 搜索 ===== */
.notfound, .search-empty {
    background: var(--c-card-bg); border: 1px solid var(--c-card-border);
    border-radius: 8px; padding: 40px 24px; text-align: center;
    font-size: 15px; color: var(--c-text-soft);
}

/* ===== 页脚 ===== */
.site-footer {
    background: var(--c-header-bg); color: var(--c-header-muted);
    text-align: center; padding: 16px 0; font-size: 12px;
}
.site-footer a { color: var(--c-header-link); }
.site-footer .icp-line { margin-top: 6px; font-size: 11px; }
.site-footer .icp-line a { color: var(--c-header-muted); text-decoration: none; }
.site-footer .icp-line a:hover { color: var(--c-header-link); text-decoration: underline; }

/* ===== 音乐播放器（右侧栏） ===== */
.zyc-music-box { display: flex; align-items: center; gap: 6px; }
.zyc-music-controls { display: flex; gap: 2px; }
.zyc-music-btn {
    background: none; border: 1px solid var(--c-input-border); color: var(--c-text);
    cursor: pointer; font-size: 13px; padding: 3px 6px; border-radius: 4px;
    line-height: 1; transition: all .15s;
}
.zyc-music-btn:hover { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.zyc-reset-btn:hover { background: var(--c-danger); color: #fff; border-color: var(--c-danger); }
.zyc-top-btn {
    width: 100%; padding: 6px 12px; background: none;
    border: 1px solid var(--c-card-border); border-radius: 6px;
    color: var(--c-accent); font-size: 12px; cursor: pointer;
    transition: all .15s;
}
.zyc-top-btn:hover { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.zyc-music-btn-play { font-size: 15px; padding: 3px 8px; }
.zyc-music-btn-sm { font-size: 12px; padding: 3px 5px; margin-left: auto; }
.zyc-music-info { display: flex; flex-direction: column; flex: 1; min-width: 0; overflow: hidden; }
.zyc-music-name { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--c-text); font-weight: 600; }
.zyc-music-time { font-size: 10px; color: var(--c-text-muted); }
.zyc-music-list {
    margin-top: 6px; background: var(--c-title-bg); border: 1px solid var(--c-card-border);
    border-radius: 6px; max-height: 200px; overflow-y: auto;
}
.zyc-music-item {
    padding: 5px 10px; cursor: pointer; display: flex; gap: 6px; font-size: 12px;
    border-bottom: 1px solid var(--c-dashed); transition: background .15s; color: var(--c-text);
}
.zyc-music-item:last-child { border-bottom: none; }
.zyc-music-item:hover { background: var(--c-tag-bg); }
.zyc-music-item.active { color: var(--c-link); background: var(--c-tag-bg); font-weight: 600; }
.zyc-music-item-idx { color: var(--c-text-muted); min-width: 18px; }
#zyc-music { position: relative; flex-shrink: 0; }

/* 迷你条 */
.zyc-music-mini {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 10px; border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--c-header-border);
    flex-shrink: 0;
    max-width: 340px;
    height: 36px;
    box-sizing: border-box;
}

.zyc-music-cover {
    width: 28px; height: 28px; border-radius: 4px;
    object-fit: cover; flex-shrink: 0;
    background: var(--c-header-border);
}
.zyc-music-default-ic {
    width: 28px; height: 28px; border-radius: 4px;
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--c-accent);
    background: rgba(var(--c-accent-rgb, 47,129,247), 0.15);
    animation: musicPulse 1.4s ease-in-out infinite;
}
@keyframes musicPulse {
    0%,100% { opacity: 0.6; }
    50%     { opacity: 1; }
}

.zyc-music-mini-info {
    flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px;
}
.zyc-music-mini-name {
    font-size: 11px; color: var(--c-header-text); font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.3;
}
.zyc-music-mini-bar {
    height: 2px; background: var(--c-header-border); border-radius: 1px; overflow: hidden;
}
.zyc-music-mini-fill {
    height: 100%; background: var(--c-accent);
    border-radius: 1px; transition: width 0.3s linear;
}

.zyc-music-mini-btns { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }

.zyc-music-btn {
    background: none; border: none; color: var(--c-header-text);
    cursor: pointer; padding: 5px; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}
.zyc-music-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.zyc-music-btn-play { padding: 5px 7px; }
.zyc-music-btn-play:hover { background: var(--c-accent); }
.zyc-music-btn.loop-one  { color: #22c55e; }
.zyc-music-btn.loop-none { color: var(--c-header-muted); opacity: 0.5; }

/* 播放列表面板 */
.zyc-music-panel {
    position: absolute; top: calc(100% + 8px); right: 0;
    width: 300px;
    background: var(--c-header-bg);
    border: 1px solid var(--c-header-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    overflow: hidden; z-index: 102;
    animation: panelIn 0.2s ease-out;
}
@keyframes panelIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.zyc-music-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; border-bottom: 1px solid var(--c-header-border);
    background: rgba(255,255,255,0.04);
}
.zyc-music-panel-title {
    font-size: 12px; color: var(--c-header-text); font-weight: 600;
}
.zyc-music-panel-close {
    background: none; border: none; color: var(--c-header-muted);
    cursor: pointer; padding: 2px 4px; border-radius: 3px;
    display: flex; align-items: center;
}
.zyc-music-panel-close:hover { color: #fff; }

.zyc-music-list {
    list-style: none; margin: 0; padding: 4px 0;
    max-height: 240px; overflow-y: auto;
}
.zyc-music-list::-webkit-scrollbar { width: 3px; }
.zyc-music-list::-webkit-scrollbar-thumb { background: var(--c-header-border); border-radius: 2px; }

.zyc-music-item {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px; cursor: pointer; transition: background 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.zyc-music-item:last-child { border-bottom: none; }
.zyc-music-item:hover { background: rgba(255,255,255,0.05); }

.zyc-music-item-cover {
    width: 32px; height: 32px; border-radius: 3px;
    object-fit: cover; flex-shrink: 0;
    background: var(--c-header-border);
}
.zyc-music-item-ic {
    width: 32px; height: 32px; border-radius: 3px;
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--c-accent);
    background: rgba(var(--c-accent-rgb, 47,129,247), 0.12);
}

.zyc-music-item-name {
    flex: 1; min-width: 0;
    font-size: 12px; color: var(--c-header-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zyc-music-item.playing {
    background: rgba(var(--c-accent-rgb, 47,129,247), 0.1);
}
.zyc-music-item.playing .zyc-music-item-name {
    color: var(--c-accent); font-weight: 600;
}

.zyc-music-item-eq {
    display: inline-flex; align-items: flex-end; gap: 1px;
    height: 12px; opacity: 0; flex-shrink: 0;
}
.zyc-music-item.playing .zyc-music-item-eq { opacity: 1; }
.zyc-music-item-eq i {
    width: 2px; background: var(--c-accent); border-radius: 1px;
    animation: eqBar 0.8s ease-in-out infinite;
}
.zyc-music-item-eq i:nth-child(1) { height: 4px; animation-delay: 0s; }
.zyc-music-item-eq i:nth-child(2) { height: 8px; animation-delay: 0.2s; }
.zyc-music-item-eq i:nth-child(3) { height: 5px; animation-delay: 0.4s; }
@keyframes eqBar {
    0%,100% { transform: scaleY(0.3); }
    50%     { transform: scaleY(1); }
}
.zyc-music-item:not(.playing) .zyc-music-item-eq i { animation: none; height: 3px; }


/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .sidebar-left { display: none; }
    .sidebar-right { display: none; }
    /* 关掉盒子模型时手机端恢复单列，避免两列扎堆挤压 */
    body:not(.zyc-opt-box-model) .blog-list {
        display: grid;
        grid-template-columns: 1fr;
    }
    body:not(.zyc-opt-box-model) .blog-list .entry-summary { display: block; }
    body:not(.zyc-opt-box-model) .blog-list .post-item { padding: 12px 16px; margin-bottom: 0; }
    body:not(.zyc-opt-box-model) .blog-list .entry-title { font-size: 16px; line-height: 1.45; }
    body:not(.zyc-opt-box-model) .blog-list .entry-meta { font-size: 12px; }
    /* site-body 在移动端改成单列，主内容占满宽度 */
    .site-body { display: block; gap: 0; padding: 12px 0; }
    .main-wrap { width: 100%; }
    /* 关掉盒子模型时容器 padding 为 0 */
    body:not(.zyc-opt-box-model) .container { padding: 0; }
    body:not(.zyc-opt-box-model) .main-wrap { padding: 0; }
    body.zyc-opt-box-model .container { max-width: 100%; padding: 0 12px; }
    .header-inner { flex-wrap: wrap; padding: 8px 0; }
    .header-search input[type=search] { width: 110px; }
    .theme-switcher { display: none; }
    /* 分页适配 */
    .pagination { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 16px; }
    /* 浮动设置面板在窄屏下避免遮挡内容 */
    .zyc-theme-float { top: auto; bottom: 20px; transform: none; }
    .zyc-theme-float-body { border-radius: 8px 0 0 0; }
    /* 单篇文章/页面内边距缩小 */
    .single-wrap, .page-wrap { padding: 16px; }
    .single-wrap .entry-content { font-size: 14px; }
    .single-wrap .entry-title { font-size: 18px; }
}

/* 平板横屏：2 列，但侧栏仍隐藏 */
@media (min-width: 601px) and (max-width: 900px) {
    body:not(.zyc-opt-box-model) .blog-list {
        grid-template-columns: repeat(2, 1fr);
    }
    body:not(.zyc-opt-box-model) .blog-list .entry-summary { display: none; }
    body:not(.zyc-opt-box-model) .blog-list .post-item { padding: 8px 12px; margin-bottom: 0; }
    body:not(.zyc-opt-box-model) .blog-list .entry-title { font-size: 14px; line-height: 1.4; }
    body:not(.zyc-opt-box-model) .blog-list .entry-meta { font-size: 11px; }
    body:not(.zyc-opt-box-model) .blog-list .cat-badge { font-size: 11px; }
}




/* ===== 动态视频背景 v5 ===== */

/* 视频容器 */
.zyc-video-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #000;
}
.zyc-video-bg video {
    width: 100%; height: 100%;
    object-fit: fill;
    display: block;
}
.zyc-video-bg-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* ---- 状态1：内容+视频背景（毛玻璃，无声） ---- */
body.zyc-video-bg-active {
    background: transparent !important;
}


/* 强制内容层级在视频之上 */
body.zyc-video-bg-active {
    background: transparent !important;
}
body.zyc-video-bg-active .container,
body.zyc-video-bg-active .site-body,
body.zyc-video-bg-active .main-wrap {
    background: transparent !important;
    position: relative;
    z-index: 1;
}
body.zyc-video-bg-active .site-header {
    position: sticky;
    z-index: 100;
}
/* 齿轮面板保持最高层级，不被视频挡住 */
body.zyc-video-bg-active .zyc-theme-float {
    z-index: 999 !important;
}


body.zyc-video-bg-active .site-header {
    background: rgba(22, 27, 34, 0.75) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
body.zyc-video-bg-active .sidebar-left .widget,
body.zyc-video-bg-active .sidebar-right .widget {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(225, 228, 232, 0.5);
}
body.zyc-video-bg-active .sidebar-left .widget-title {
    background: rgba(246, 248, 250, 0.6) !important;
    border-bottom-color: rgba(225, 228, 232, 0.4);
}
body.zyc-video-bg-active .blog-list .post-item {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(225, 228, 232, 0.5);
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 12px 16px;
}
body.zyc-video-bg-active .site-footer {
    background: rgba(22, 27, 34, 0.75) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
body.zyc-video-bg-active .single-wrap .post-content,
body.zyc-video-bg-active .comments-area {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(225, 228, 232, 0.5);
    border-radius: 8px;
    padding: 20px;
}
/* 暗色主题 */
body.zyc-video-bg-active[data-theme="dim"] .sidebar-left .widget,
body.zyc-video-bg-active[data-theme="dim"] .sidebar-right .widget,
body.zyc-video-bg-active[data-theme="dim"] .blog-list .post-item,
body.zyc-video-bg-active[data-theme="dim"] .single-wrap .post-content,
body.zyc-video-bg-active[data-theme="dim"] .comments-area {
    background: rgba(55, 62, 71, 0.72) !important;
    border-color: rgba(84, 93, 104, 0.5);
}
body.zyc-video-bg-active[data-theme="dim"] .sidebar-left .widget-title {
    background: rgba(45, 51, 59, 0.6) !important;
}
body.zyc-video-bg-active[data-theme="dark"] .sidebar-left .widget,
body.zyc-video-bg-active[data-theme="dark"] .sidebar-right .widget,
body.zyc-video-bg-active[data-theme="dark"] .blog-list .post-item,
body.zyc-video-bg-active[data-theme="dark"] .single-wrap .post-content,
body.zyc-video-bg-active[data-theme="dark"] .comments-area {
    background: rgba(22, 27, 34, 0.72) !important;
    border-color: rgba(48, 54, 61, 0.5);
}
body.zyc-video-bg-active[data-theme="blue"] .sidebar-left .widget,
body.zyc-video-bg-active[data-theme="blue"] .sidebar-right .widget,
body.zyc-video-bg-active[data-theme="blue"] .blog-list .post-item,
body.zyc-video-bg-active[data-theme="blue"] .single-wrap .post-content,
body.zyc-video-bg-active[data-theme="blue"] .comments-area {
    background: rgba(247, 251, 255, 0.72) !important;
    border-color: rgba(197, 217, 237, 0.5);
}
body.zyc-video-bg-active[data-theme="red"] .sidebar-left .widget,
body.zyc-video-bg-active[data-theme="red"] .sidebar-right .widget,
body.zyc-video-bg-active[data-theme="red"] .blog-list .post-item,
body.zyc-video-bg-active[data-theme="red"] .single-wrap .post-content,
body.zyc-video-bg-active[data-theme="red"] .comments-area {
    background: rgba(255, 248, 246, 0.72) !important;
    border-color: rgba(232, 200, 192, 0.5);
}

/* ---- 状态2：沉浸（全屏视频+声音，内容隐藏） ---- */
body.zyc-immersive .site-header,
body.zyc-immersive .site-body,
body.zyc-immersive .site-footer,
body.zyc-immersive .zyc-theme-float {
    display: none !important;
}
body.zyc-immersive .zyc-video-bg {
    z-index: 9999;
    pointer-events: auto;
}

/* ---- 齿轮面板按钮 ---- */
.zyc-bg-switch-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 4px 0;
}
.zyc-bg-switch-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text-soft);
}
.zyc-bg-toggle {
    width: 32px; height: 32px;
    border: 1px solid var(--c-card-border);
    border-radius: 6px;
    background: var(--c-card-bg);
    cursor: pointer;
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
    padding: 0;
}
.zyc-bg-toggle:hover {
    border-color: var(--c-accent);
    transform: scale(1.08);
}
.zyc-bg-hint {
    font-size: 10px;
    color: var(--c-text-muted);
    width: 100%;
    margin-top: 2px;
}
