 /* 基础变量 (亮色模式) */
:root {
     --bg-color: #ffffff;
     --text-color: #111111;
     --card-bg: #ffffff;
     --nav-bg: rgba(255, 255, 255, 0.98);
     --search-bg: #f4f4f4;
     --accent-1: #ccff00; /* 酸性绿 */
     --accent-2: #ff0099; /* 亮粉色 */
     --accent-3: #5500ff; /* 电光紫 */
     --border-width: 3px;
     --max-width: 1200px;
     --code-bg: #282c34;
     --nav-height: 70px;
     --shadow-color: #111111;
 }

 /* 暗色模式变量 */
 [data-theme="dark"] {
     --bg-color: #0a0a0a;
     --text-color: #ffffff;
     --card-bg: #141414;
     --nav-bg: rgba(10, 10, 10, 0.98);
     --search-bg: #222222;
     --shadow-color: #ffffff; /* 暗色模式下阴影变为白色 */
     --code-bg: #1a1a1a;
 }

 * { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
 
 body {
     background-color: var(--bg-color); color: var(--text-color);
     font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
     line-height: 1.7;
     overflow-x: hidden;
     width: 100%;
     transition: background-color 0.3s, color 0.3s;
 }

 /* 暗色模式下图片降低亮度 */
 [data-theme="dark"] img {
     filter: brightness(0.8);
     transition: filter 0.3s;
 }
 
/* 移除所有可点击元素的默认蓝色高亮 */
button,
a,
input,
select,
textarea,
div[onclick],
[role="button"] { outline: none; }
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus,
div[onclick]:focus,
[role="button"]:focus { outline: none; box-shadow: none; }
* { -webkit-tap-highlight-color: transparent; }

 /* 图片加载动画- */
 .card-img-container img,
 .article-hero-img,
 .article-hero-bg,
 .article-body img,
 .lightbox-img {
     background-color: var(--search-bg);
 /* 加载圈图标 */
 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath fill='%23888' d='M25.251,6.461c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615V6.461z'%3E%3CanimateTransform attributeType='xml' attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.6s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
 background-repeat: no-repeat;
 background-position: center;
 background-size: 40px;
 transition: opacity 0.3s ease-in-out;
    }

    /* 当图片标记为加载完成时，强制移除背景图片和背景色 */
    img[data-loaded="true"] {
 background-image: none !important;
 background-color: transparent !important;
 opacity: 1 !important; /* 确保图片显示 */
    }

 .article-hero-img {
     min-height: 300px;
 }

 .article-body img {
     min-height: 100px;
 }

 /* Lightbox 特殊处理 */
 /* 预览大图时，背景设为透明 (因为遮罩层已经是黑的了)，只保留转圈动画 */
 .lightbox-img {
     background-color: transparent !important;
     background-size: 60px;
 }

 /* 导航与布局 */
 nav {
     display: flex; justify-content: space-between; align-items: center;
     padding: 0 5%; height: var(--nav-height); position: fixed; width: 100%; top: 0; z-index: 100;
     background: var(--nav-bg); border-bottom: var(--border-width) solid var(--text-color);
     transition: transform 0.3s ease-in-out, height 0.3s, background-color 0.3s, border-color 0.3s;
 }
 nav.nav-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}
 
 /* 左侧区域：Logo + 搜索框 + 切换按钮 */
 .nav-left { display: flex; align-items: center; gap: 2rem; flex: 1; }
 .logo { font-size: 1.1rem; font-weight: 900; letter-spacing: -1px; cursor: pointer; white-space: nowrap; }

 /* 搜索框样式 */
 .search-container { position: relative; width: 240px; }
 .search-input {
     width: 100%; padding: 0.5rem 0.8rem; 
     border: 2px solid var(--text-color); outline: none;
     font-family: inherit; font-weight: 500; 
     background: var(--search-bg); color: var(--text-color);
     transition: 0.3s;
 }
 .search-input:focus { background: var(--bg-color); box-shadow: 4px 4px 0 var(--accent-3); }
 
 /* 联想词下拉框 */
 .search-suggestions {
     position: absolute; top: 100%; left: 0; width: 100%;
     background: var(--bg-color); border: 2px solid var(--text-color); border-top: none;
     max-height: 300px; overflow-y: auto; display: none; z-index: 101;
 }
 .search-suggestions.active { display: block; }
 .suggestion-item {
     padding: 0.8rem; border-bottom: 1px solid #333; cursor: pointer; font-size: 0.9rem;
     display: flex; justify-content: space-between; color: var(--text-color);
 }
 [data-theme="light"] .suggestion-item { border-bottom: 1px solid #eee; }
 
 .suggestion-item:hover { background: var(--accent-1); color: #000; }
 .suggestion-item:last-child { border-bottom: none; }
 .suggestion-tag { font-size: 0.7rem; padding: 2px 6px; background: var(--text-color); color: var(--bg-color); border-radius: 4px; }

 /* 主题切换按钮样式 */
 .theme-btn {
     background: transparent; border: none; cursor: pointer;
     color: var(--text-color); font-size: 1.5rem;
     display: flex; align-items: center; justify-content: center;
     transition: transform 0.3s, color 0.3s;
     padding: 5px;
 }
 .theme-btn:hover { transform: rotate(15deg) scale(1.1); color: var(--accent-2); }

 /* 导航链接 */
 .nav-links { display: flex; gap: 2.5rem; align-items: center; }
 .nav-links a { text-decoration: none; color: var(--text-color); font-weight: 700; cursor: pointer; position: relative; }
 .nav-links a::after {
     content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; 
     background: var(--accent-2); transition: 0.3s;
 }
 .nav-links a:hover::after { width: 100%; }

 /* 移动端右侧控制区 (主题按钮 + 菜单按钮) */
 .mobile-controls { display: none; align-items: center; gap: 1.5rem; }
 .menu-toggle { font-size: 1.5rem; cursor: pointer; color: var(--text-color); }
 
 .menu-overlay {
     position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
     background: rgba(0,0,0,0.5); backdrop-filter: blur(5px);
     z-index: 98; opacity: 0; pointer-events: none; transition: 0.4s;
 }
 .menu-overlay.active { opacity: 1; pointer-events: auto; }
 
 .sidebar-close-btn { display: none; } 

 header {
     min-height: 60vh; display: flex; flex-direction: column; justify-content: center;
     padding: 8rem 5% 2rem; max-width: var(--max-width); margin: 0 auto;
 }
 .hero-text { font-size: clamp(3.5rem, 9vw, 7rem); font-weight: 900; line-height: 0.95; text-transform: uppercase; }
 
 .container { padding: 2rem 5% 5rem; max-width: var(--max-width); margin: 0 auto; }

 /* 分类栏 */
 .filter-wrapper { margin-bottom: 3rem; }
 .filter-grid {
     display: grid; gap: 1rem;
     grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
     overflow: hidden;
     padding: 5px;
     margin: -5px;
     align-content: start;
 }
 
 .filter-btn {
     padding: 0.6rem 0; width: 100%;
     background: transparent; border: 2px solid var(--text-color);
     color: var(--text-color);
     font-weight: 700; cursor: pointer; transition: 0.2s;
     text-align: center; display: flex; align-items: center; justify-content: center; gap: 5px;
 }
 .filter-btn.active, .filter-btn:hover {
     background: var(--text-color); color: var(--bg-color); box-shadow: 4px 4px 0 var(--accent-1);
 }
 .filter-btn.more-btn { background: var(--accent-1); color: #111; border-color: var(--text-color); }
 .filter-btn.more-btn:hover { background: var(--text-color); color: var(--accent-1); }

 /* 瀑布流布局 */
 .grid { column-count: 3; column-gap: 2.5rem; }

 /* 卡片样式 */
 .card {
     background: var(--card-bg); border: var(--border-width) solid var(--text-color);
     box-shadow: 6px 6px 0 var(--shadow-color); 
     display: inline-block; width: 100%; margin-bottom: 2.5rem;
     break-inside: avoid; transition: transform 0.3s, box-shadow 0.3s; vertical-align: top;
 }
 .card:hover { transform: translate(-4px, -4px); box-shadow: 12px 12px 0 var(--shadow-color); }
 
 .card-img-container {
     width: 100%; height: 220px; border-bottom: var(--border-width) solid var(--text-color);
     overflow: hidden; display: none;
 }
 .card-img-container img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
 .card:hover .card-img-container img { transform: scale(1.05); }
 
 .card-content { padding: 1rem 1.5rem; display: flex; flex-direction: column; }
 .card-tag {
     align-self: flex-start; background: var(--accent-1); padding: 0.2rem 0.8rem; color: #111;
     font-weight: 700; border: 2px solid var(--text-color); font-size: 0.8rem; margin-bottom: 1rem;
 }
 .card h3 { font-size: 1.3rem; margin-bottom: 0.8rem; line-height: 1.2; font-weight: 800; }
 .card p { 
     font-size: 1rem; color: var(--text-color); opacity: 0.8; margin-bottom: 1.5rem; 
     display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
 }
 .read-btn {
     padding: 0.8rem; text-align: center; background: var(--text-color);
     color: var(--bg-color); font-weight: 700; border: none; cursor: pointer; transition: 0.3s;
     width: 100%; display: block;
 }
 .read-btn:hover { background: var(--accent-3); color: white; }
 
 .card-date {
     font-size: 0.85rem;
     color: var(--text-color);
     opacity: 0.6;
     margin-bottom: 0.8rem;
     margin-top: -0.3rem;
     display: flex;
     align-items: center;
     gap: 6px;
     text-shadow: none;
     font-family: 'Space Grotesk', monospace;
     font-weight: 500;
 }
 
 /* 最后修改时间图标与提示框 */
 .info-wrapper {
     display: inline-flex;
     align-items: center;
     position: relative;
     margin-right: 5px;
 }
    
 .info-icon {
     display: inline-flex;
     justify-content: center;
     align-items: center;
     width: 18px;
     height: 18px;
     border-radius: 50%;
     border: 1.5px solid var(--text-color);
     font-size: 0.75rem;
     font-weight: 700;
     cursor: pointer;
     font-family: serif;
     transition: all 0.2s;
     color: var(--text-color);
 }
    
 .info-icon:hover, .info-icon.active {
     background: var(--accent-3);
     color: white;
     border-color: var(--accent-3);
 }
    
 /* 提示气泡 */
 .modified-tooltip {
     position: absolute;
     bottom: 150%;
     
     left: -6px;
     transform: none;
     
     width: max-content;
     max-width: 280px; /*pc端限进一步制宽度220px*/
     
     text-shadow: none !important;
     
     /* 亮色模式样式 */
     background: rgba(255, 255, 255, 0.9);
     backdrop-filter: blur(5px);
     border: 1px solid rgba(0, 0, 0, 0.1);
     color: #111;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
     
     border-radius: 6px;
     padding: 8px 12px;
     font-size: 0.75rem;
     line-height: 1.4;
     
     z-index: 20;
     opacity: 0;
     pointer-events: none;
     transition: opacity 0.2s;
     text-align: left;
     white-space: normal; /* 允许换行 */
 }
    
 /* 暗色模式适配 */
 [data-theme="dark"] .modified-tooltip {
     background: rgba(30, 30, 30, 0.9);
     border: 1px solid rgba(255, 255, 255, 0.2);
     color: #eee;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
 }
    
 .modified-tooltip.show {
     opacity: 1;
     pointer-events: auto;
 }
 
 .modified-tooltip::after {
     content: '';
     position: absolute;
     bottom: -5px;
     
     left: 9px;
     transform: rotate(45deg);
     
     width: 10px;
     height: 10px;
     
     background: rgba(255, 255, 255, 0.9);
     border-right: 1px solid rgba(0, 0, 0, 0.1);
     border-bottom: 1px solid rgba(0, 0, 0, 0.1);
 }
    
 [data-theme="dark"] .modified-tooltip::after {
     background: rgba(30, 30, 30, 0.9);
     border-right: 1px solid rgba(255, 255, 255, 0.2);
     border-bottom: 1px solid rgba(255, 255, 255, 0.2);
 }
 @media (max-width: 768px) {
 .modified-tooltip {
     max-width: 220px; /* 移动端进一步限制宽度175px */
 }
    }
    
 /* 文章详情覆盖层 */
 .article-overlay {
     position: fixed; top: 0; left: 0; width: 100%; height: 100%;
     background: var(--bg-color); z-index: 200;
     overflow-y: auto; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
     display: flex; flex-direction: column;
 }
 .article-overlay.active { transform: translateY(0); }

 .overlay-header {
     position: sticky; top: 0; left: 0; width: 100%;
     background: var(--nav-bg); border-bottom: var(--border-width) solid var(--text-color);
     padding: 1rem 5%; z-index: 10; display: flex; justify-content: space-between; align-items: center;
     backdrop-filter: blur(10px);
 }
 
 .overlay-title {
     font-weight: 700; font-size: 1.2rem; 
     white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%;
 }

    .close-btn {
 font-weight: 700; cursor: pointer;
 padding: 0.5rem 1.5rem;
 border: 2px solid var(--text-color);
 background: var(--bg-color); 
 color: var(--text-color);
 display: flex; align-items: center; gap: 5px; transition: 0.2s;
    }
    .close-btn:hover {
 background: var(--text-color);
 color: var(--bg-color);
    }
 
    /* 融合式 Hero 区域 */
    .article-hero-wrapper {
 position: relative;
 width: 100%;
 height: 400px; /* PC端固定高度 */
 min-height: 300px;
 overflow: hidden;
 display: flex;
 align-items: flex-end;
 border-bottom: var(--border-width) solid var(--text-color);
 transition: height 0.3s;
    }

    /* 背景大图 */
    .article-hero-bg {
 position: absolute;
 top: 0; left: 0; width: 100%; height: 100%;
 object-fit: cover;
 z-index: 0;
 opacity: 0;
 transition: opacity 0.5s;
    }

    .article-hero-overlay-gradient {
 position: absolute;
 top: 0; left: 0; width: 100%; height: 100%;
 z-index: 1;
 background: linear-gradient(
     to bottom, 
     transparent 0%, 
     rgba(0,0,0,0.0) 40%,
     var(--bg-color) 100%
 );
 pointer-events: none;
    }
    
    /* 标题内容容器 */
    .article-hero-content {
 position: relative;
 z-index: 2;
 width: 100%;
 max-width: 900px;
 margin: 0 auto;
 padding: 0 5% 2rem;
    }
    
    /* 标题样式 */
    .article-big-title {
 font-size: clamp(1.5rem, 4vw, 2.5rem);
 font-weight: 900;
 line-height: 1.1;
 margin-bottom: 1rem;
 text-shadow: 2px 2px 0 var(--bg-color);
    }
    
    /* Meta 信息 */
    .article-meta {
 color: var(--text-color);
 font-size: 0.9rem;
 font-family: monospace;
 display: flex;
 align-items: center;
 flex-wrap: wrap;
 column-gap: 0.8rem;
 row-gap: 0.5rem;
 text-shadow: 1px 1px 0 var(--bg-color);
    }
    
    .article-container {
 width: 100%;
 max-width: 900px;
 margin: 0 auto;
 padding: 2rem 5% 6rem; /* 顶部 padding 减小 */
    }
    
    /* 移动端适配 */
    @media (max-width: 768px) {
 .article-hero-wrapper {
     height: 260px; /* 移动端固定高度 */
 }
    }

 /* 富文本排版 */
 .article-body { font-size: 1rem; line-height: 1.8; color: var(--text-color); }
 .article-body p { margin-bottom: 1rem; text-align: left; text-align-last: left; word-wrap: break-word; }
 .article-body h2 { font-size: 1.35rem; margin: 1.5rem 0 1rem; font-weight: 800; border-left: 6px solid var(--accent-1); padding-left: 1rem; }
 .article-body h3 { font-size: 1.15rem; margin: 1.2rem 0 0.6rem; font-weight: 700; color: var(--text-color); border-left: 4px solid rgba(0, 0, 0, 0.15); padding-left: 0.8rem; }
 [data-theme="dark"] .article-body h3 { border-left-color: rgba(255, 255, 255, 0.2); }
 .article-body ul, .article-body ol { margin-bottom: 1rem; padding-left: 1.5rem; }
 .article-body li { margin-bottom: 0.3rem; }
 .article-body blockquote {
     background: var(--search-bg); border-left: 4px solid var(--text-color);
     padding: 1rem; margin: 1.5rem 0; font-style: italic; color: var(--text-color); opacity: 0.8;
 }
 .article-body table {
     width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 1rem;
 }
 /* 表格样式优化 (支持横向滚动、不换行、居中) */
 .article-body table {
     display: block; /* 【变为块级容器，允许设置滚动 */
     overflow-x: auto; /* 超出宽度时显示横向滚动条 */
     width: 100%; /* 容器宽度占满父元素 */
     border-collapse: collapse; 
     margin: 1rem 0;
     font-size: 0.9rem;
     line-height: 1.5;
     -webkit-overflow-scrolling: touch;
     
     /* 美化滚动条 (Chrome/Safari) */
     scrollbar-width: thin;
     scrollbar-color: var(--text-color) var(--search-bg);
 }

 /* 滚动条样式定制 */
 .article-body table::-webkit-scrollbar {
     height: 6px; /* 横向滚动条高度 */
 }
 .article-body table::-webkit-scrollbar-thumb {
     background: var(--text-color);
     border-radius: 3px;
 }
 .article-body table::-webkit-scrollbar-track {
     background: var(--search-bg);
 }

 .article-body th, .article-body td {
     border: 1px solid var(--text-color);
     padding: 0.6rem 1.2rem; /* 增加左右内边距，让表格看起来更宽敞 */
     
     text-align: center; /* 内容居中对齐 */
     white-space: nowrap; /* 强制文字不换行，直接撑开表格 */
 }

 .article-body th { 
     background: var(--text-color); 
     color: var(--bg-color); 
     font-weight: 700;
 }

 .article-body tr:nth-child(even) { 
     background: rgba(0,0,0,0.03); 
 }
 [data-theme="dark"] .article-body tr:nth-child(even) {
     background: rgba(255,255,255,0.05);
 }
 .article-body tr:nth-child(even) { background: var(--search-bg); }
 .article-body a { color: var(--accent-3); text-decoration: underline; font-weight: 700; }
 .article-body strong { color: var(--accent-2); }
 .article-body hr { border: 0; border-top: 2px dashed #ccc; margin: 3rem 0; }
 .article-body code:not(pre code) {
     background: var(--search-bg); padding: 0.2rem 0.4rem; border-radius: 4px; 
     font-family: monospace; font-size: 0.9em; color: #d63384;
 }
 .article-body img { 
     max-width: 100%; height: auto; display: block; margin: 2rem auto; 
     border: 2px solid var(--text-color); box-shadow: 6px 6px 0 rgba(0,0,0,0.1);
 }

 /* 代码块容器 */
 .mac-code-block {
     background: var(--code-bg); 
     border-radius: 8px; 
     margin: 1.2rem 0;
     border: 1px solid #333; 
     overflow: hidden; 
     position: relative;
 }

 /* 头部：包含红绿灯和操作按钮组 */
 .mac-header {
     background: #1c1f26; 
     padding: 8px 12px; 
     display: flex; 
     justify-content: space-between; 
     align-items: center;
     border-bottom: 1px solid #333;
 }
 .mac-dots { display: flex; gap: 8px; }
 .dot { width: 12px; height: 12px; border-radius: 50%; }
 .dot.red { background: #ff5f56; } 
 .dot.yellow { background: #ffbd2e; } 
 .dot.green { background: #27c93f; }

 /* 右侧按钮组容器 */
 .mac-actions {
     display: flex;
     gap: 8px;
 }

 /* 通用按钮样式 */
 .mac-btn {
     background: rgba(255,255,255,0.1); 
     color: #aaa; 
     border: 1px solid rgba(255,255,255,0.2);
     padding: 2px 6px; 
     border-radius: 4px; 
     font-size: 0.75rem; 
     cursor: pointer;
     transition: all 0.2s;
     display: flex;
     align-items: center;
     justify-content: center;
     min-width: 24px;
     height: 24px;
 }
 .mac-btn:hover {
     background: rgba(255,255,255,0.2);
     color: #fff;
 }
 .mac-btn.active {
     background: rgba(39, 201, 63, 0.3);
     color: #27c93f;
     border-color: #27c93f;
 }

 /* 代码内容容器 */
 .code-wrapper { 
     overflow-x: auto; 
     transition: max-height 0.5s ease; 
     scrollbar-width: thin; 
     scrollbar-color: #5c6370 transparent;
     padding-bottom: 0;
 }

 .mac-code-block.has-footer .code-wrapper {
     padding-bottom: 32px;
 }
 
 /* Webkit 滚动条美化 */
 .code-wrapper::-webkit-scrollbar { height: 6px; }
 .code-wrapper::-webkit-scrollbar-thumb { background: #5c6370; border-radius: 3px; }
 .code-wrapper::-webkit-scrollbar-track { background: transparent; }

 .code-wrapper.collapsed { max-height: 300px; }
 .code-wrapper.expanded { max-height: none; }

 /* 代码字体样式 */
 .mac-code-block code {
     font-family: 'Consolas', 'Monaco', monospace; 
     font-size: 0.75rem; 
     padding: 0.6rem !important;
     display: block; 
     color: #abb2bf;
     white-space: pre; 
     word-break: normal;
     overflow-wrap: normal;
 }

 .mac-code-block code.code-wrapping {
     white-space: pre-wrap; 
     word-break: break-all;
 }

 /* 底部展开按钮 */
 .expand-btn {
     position: absolute; 
     bottom: 0; 
     left: 0; 
     width: 100%;
     height: 32px;
     display: none;
     align-items: center;
     justify-content: center;
     gap: 5px;
     cursor: pointer;
     background: linear-gradient(to bottom, rgba(40, 44, 52, 0.4), var(--code-bg, #282c34) 60%);
     color: #abb2bf; 
     font-size: 0.75rem; 
     z-index: 5;
 }
 .expand-btn:hover { 
     color: white; 
     background: var(--code-bg, #282c34);
 }
 
 /* 文章目录样式 (移动端精简版) */
 .toc-box {
     background: var(--search-bg);
     border: 2px solid var(--text-color);
     margin-bottom: 2rem;
     overflow: hidden;
     border-radius: 4px;
 }
 .toc-header {
     padding: 1rem;
     background: var(--card-bg);
     border-bottom: 2px solid var(--text-color);
     cursor: pointer;
     display: flex;
     justify-content: space-between;
     align-items: center;
     font-weight: 700;
     transition: background 0.3s;
 }
 .toc-content {
     max-height: 0;
     overflow: hidden;
     transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
     background: var(--bg-color);
 }
 .toc-content.expanded {
     max-height: 1000px;
     transition: max-height 0.5s ease-in-out;
 }
 
 .toc-list {
     list-style: none;
     padding: 12px 16px;
     margin: 0 !important;
 }
 
 .toc-list li { 
     margin-bottom: 4px; 
 }

 /* 通用链接样式 */
 .toc-list a {
     text-decoration: none;
     color: var(--text-color);
     transition: 0.2s;
     display: block;
     
     /* 文字截断 */
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
     
     /* 修改此处：减小左侧内边距，拉近文字与色条的距离 */
     padding: 4px 0 4px 6px; 
 }
 
 .toc-list a:hover { 
     opacity: 1; 
     background: rgba(0,0,0,0.03);
     transform: translateX(4px);
 }
 [data-theme="dark"] .toc-list a:hover { background: rgba(255,255,255,0.05); }

 /* === H2 (主标题) 样式 === */
 .toc-list li:not(.toc-sub-item) a {
     font-weight: 700;
     /* 修改此处：字号改小 */
     font-size: 0.9rem; 
     /* 修改此处：颜色改为 accent-1，线条减细为 2px */
     border-left: 2px solid var(--accent-1); 
     opacity: 0.95;
 }

 /* === H3 (子标题) 样式 === */
 .toc-sub-item {
     padding-left: 0;
     margin-top: 2px;
 }

 .toc-sub-item a {
     font-size: 0.85rem;
     font-weight: 400;
     opacity: 0.75;
     
     margin-left: 6px;  /* 稍微缩进一点点以示区分 */
     /* H3 使用更细的灰色线条 */
     border-left: 1.5px solid rgba(0,0,0,0.15); 
 }
 
 [data-theme="dark"] .toc-sub-item a {
     border-left: 1.5px solid rgba(255,255,255,0.2);
 }

 /* Meta中的分类标签样式 */
 .article-meta .card-tag {
     margin-bottom: 0;
     padding: 0.1rem 0.5rem;
     font-size: 0.75rem;
     align-self: center;
     margin-right: 0rem;
 }

/* 图片预览样式 */
/* 图片预览遮罩层 */
.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex; flex-direction: column; 
    justify-content: center; align-items: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
    overflow: hidden; 
    touch-action: none;
}
.lightbox-overlay.active { opacity: 1; pointer-events: auto; }

.lightbox-img-wrapper {
    width: 100%; height: 75%;
    display: flex; justify-content: center; align-items: center;
    margin-bottom: 40px;
    overflow: visible;
}
       
/* 图片样式 */
.lightbox-img {
    max-width: 90%; max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    user-select: none; -webkit-user-drag: none;
    will-change: transform;
    transition: none;
    cursor: grab;
}
.lightbox-img:active { cursor: grabbing; }
.lightbox-img.is-animating {
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}
       
/* 底部胶囊控制栏 */
.lightbox-controls {
    position: absolute;
    bottom: 15%;
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    border-radius: 50px;
    display: flex; align-items: center; justify-content: center;
    gap: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1002;
    backdrop-filter: blur(10px);
}

.lb-btn {
    color: #fff; font-size: 1.6rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; opacity: 0.9;
}
.lb-btn:hover { opacity: 1; transform: scale(1.2); color: var(--accent-1); }
#lb-close:hover { color: #ff5f56; }
       
.lb-btn.disabled {
    opacity: 0.2; cursor: not-allowed; pointer-events: none; filter: grayscale(100%);
        }

/* 缩略图预览条 */
.lightbox-thumbnails {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    max-width: 85%;
    overflow-x: auto;
    z-index: 1003;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    scrollbar-width: none; 
}
.lightbox-thumbnails::-webkit-scrollbar { display: none; }
        
.lightbox-overlay.active .lightbox-thumbnails {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.lb-thumb {
    height: 45px;
    width: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}
        
.lb-thumb:hover {
    opacity: 0.8;
    transform: scale(1.05);
}
        
.lb-thumb.active {
    opacity: 1;
    border-color: var(--accent-1, #fff);
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
       
/* Lightbox 移动端适配 */
@media (max-width: 768px) {
    .lightbox-controls {
        padding: 10px 20px;
        gap: 15px;
        bottom: 90px; /* 抬高 */
        width: fit-content; 
        min-width: 0;
        max-width: 95%;
        justify-content: center;
    }
    .lb-btn { font-size: 1.3rem; }
            
    .lightbox-thumbnails {
        bottom: 15px;
        max-width: 95%;
        gap: 8px;
    }
    .lb-thumb {
       height: 35px;
    }
}
        
/* 针对超小屏幕的额外适配 */
@media (max-width: 360px) {
    .lightbox-controls { gap: 10px; padding: 8px 10px; }
    .lb-btn { font-size: 1.2rem; }
}

 /* 通用移动端适配 */
 @media (max-width: 768px) {
     :root { --nav-height: 50px; }
     nav { padding: 0 1rem; }
     .article-meta { font-size: 0.75rem; column-gap: 0.8rem; row-gap: 0.2rem; }
     .nav-left .search-container { display: none; }
     .nav-left .theme-btn { display: none; }

     /* 显示移动端控制区 */
     .mobile-controls { display: flex; }

 .nav-links {
     position: fixed; top: 0; right: 0; width: 280px;
     height: 100vh;
     background: var(--bg-color); flex-direction: column; 
     justify-content: flex-start; align-items: flex-start;
     padding: 2rem; gap: 1.5rem;
     
     transform: translateX(100%); 
     
     border-left: 3px solid var(--text-color); z-index: 99;
     box-shadow: none; 
 }
     
 .sidebar-close-btn {
     display: flex; align-self: flex-end; margin-bottom: 1rem;
     font-size: 1.5rem; cursor: pointer; 
     width: 40px; 
     height: 40px; 
     padding: 0; 
     justify-content: center; 
     align-items: center;
     border-radius: 0.25rem;
     border: 2px solid var(--text-color);
     color: var(--text-color);
     transition: 0.2s;
 }
 .sidebar-close-btn:hover {
     background: var(--text-color);
     color: var(--bg-color);
 }

     .nav-links .search-container {
  display: block; width: 100%; margin-bottom: 1rem;
     }

     .grid { column-count: 1; }
     .article-body table { display: block; overflow-x: auto; }

     .overlay-header { padding: 0.8rem 1rem; }
     .overlay-title { font-size: 1rem; }
     
     .close-btn {
  padding: 0; width: 36px; height: 36px;
  justify-content: center; border-radius: 4px;
     }
     .close-btn span { display: none; }

     .filter-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
     }
     .filter-btn { font-size: 0.8rem; padding: 0.4rem 0; }
 }
 
 @media (min-width: 769px) {
     .nav-links .search-container { display: none; }
     .filter-grid { grid-template-columns: repeat(7, 1fr); }
 }

 @media (min-width: 769px) and (max-width: 1024px) {
     .grid { column-count: 2; }
 }
 
 /* 置顶文章样式 */
 .pinned-badge {
     display: inline-block;
     background: var(--accent-1);
     color: #111;
     font-size: 0.75rem;
     font-weight: 900;
     font-family: 'Space Grotesk', monospace;
     padding: 2px 6px;
     margin-right: 8px;
     border: 2px solid var(--text-color);
     vertical-align: middle;
     transform: translateY(-2px);
     box-shadow: 2px 2px 0 var(--text-color);
 }
 
 /* 页脚样式 */
 .compact-footer {
     border-top: 2px solid var(--text-color);
     background: var(--bg-color);
     padding: 1rem 5%;
     font-family: 'Space Grotesk', monospace;
     font-size: 0.9rem;
     display: flex;
     justify-content: space-between;
     align-items: center;
     flex-wrap: wrap;
     gap: 1rem;
     position: relative;
     z-index: 10;
 }
 
 /* 左侧版权 */
 .footer-left {
     font-weight: 700;
     display: flex; align-items: center; gap: 15px;
 }
 
 /* 中间图标区 */
 .footer-icons {
     display: flex; gap: 1.5rem;
 }
 .footer-icon-btn {
     color: var(--text-color);
     font-size: 1.4rem;
     text-decoration: none;
     transition: transform 0.2s, color 0.2s;
     display: flex; align-items: center;
 }
 .footer-icon-btn:hover {
     color: var(--accent-3);
     transform: translateY(-3px);
 }
 
 /* 右侧运行时间 */
 .footer-uptime {
     font-family: monospace;
     background: var(--search-bg);
     padding: 4px 10px;
     border: 1px solid var(--text-color);
     font-size: 0.8rem;
     display: flex; align-items: center; gap: 8px;
 }
 .uptime-label {
     font-weight: 700;
     color: var(--accent-2);
     margin-right: 5px;
 }
 
 @media (max-width: 768px) {
     .compact-footer {
  flex-direction: column;
  text-align: center;
  padding-bottom: 2rem;
     }
     .footer-uptime { width: 100%; justify-content: center; }
 }
 
 .article-hero-content .card-tag {
     text-shadow: none !important;
     box-shadow: 2px 2px 0 var(--text-color);
     opacity: 1;
 }
 
 /* 分页组件样式 */
 .pagination-wrapper {
     margin-top: 4rem;
     display: flex;
     justify-content: center;
     align-items: center;
     gap: 0.8rem;
     font-family: 'Space Grotesk', monospace;
     font-weight: 700;
 }
 
 .page-btn {
     width: 40px; height: 40px;
     display: flex; justify-content: center; align-items: center;
     background: var(--bg-color);
     border: 2px solid var(--text-color);
     color: var(--text-color);
     cursor: pointer;
     transition: all 0.2s;
     font-size: 1rem;
     user-select: none;
 }
 
 /* 悬停与激活状态 */
 .page-btn:hover:not(.disabled) {
     background: var(--accent-1);
     transform: translateY(-2px);
     box-shadow: 4px 4px 0 var(--text-color);
 }
 
 .page-btn.active {
     background: var(--text-color);
     color: var(--bg-color);
     pointer-events: none;
 }
 
 /* 点击动画效果 */
 .page-btn:active:not(.disabled) {
     transform: translateY(0);
     box-shadow: none;
 }
 
 /* 禁用状态 (上一页/下一页) */
 .page-btn.disabled {
     opacity: 0.3;
     cursor: not-allowed;
     border-color: var(--text-color);
     pointer-events: none;
 }
 
 @media (max-width: 768px) {
     .pagination-wrapper { gap: 0.5rem; margin-top: 2rem; }
     .page-btn { width: 36px; height: 36px; font-size: 0.9rem; }
 }
 
    /* 网页滚动控制按钮组 */
    .scroll-controls {
 position: fixed;
 right: 30px;
 bottom: 100px;
 display: flex;
 flex-direction: column;
 gap: 8px;
 align-items: flex-end;
 z-index: 900;
 
 opacity: 0;
 transform: translateY(20px);
 pointer-events: none;
 
 transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28), right 0.3s ease;
    }

    /* 显示状态 */
    .scroll-controls.show {
 opacity: 1;
 transform: translateY(0);
 pointer-events: auto;
    }

    /* 收起模式  */
    .scroll-controls.minimized {
 right: 0;
    }

    /* 功能按钮包裹层 */
    .scroll-actions-wrapper {
 display: flex;
 flex-direction: column;
 gap: 8px;
 transition: all 0.3s ease;
 opacity: 1;
 transform: translateX(0);
    }

    /* 隐藏功能按钮 */
    .scroll-controls.minimized .scroll-actions-wrapper {
 opacity: 0;
 transform: translateX(20px);
 pointer-events: none;
 height: 0;
 margin: 0;
 overflow: hidden;
    }

    /* 按钮通用样式 */
    .scroll-btn {
 width: 52px; height: 52px;
 background: var(--bg-color);
 border: 2px solid var(--text-color);
 color: var(--text-color);
 display: flex; justify-content: center; align-items: center;
 cursor: pointer;
 font-size: 1.8rem;
 box-shadow: 4px 4px 0 var(--text-color);
 opacity: 0.5;
 transition: all 0.2s ease;
    }

    .scroll-btn:hover {
 background: var(--accent-1);
 transform: translate(-2px, -2px);
 box-shadow: 4px 4px 0 var(--text-color);
 opacity: 0.5;
    }

    /* 点击状态 */
    .scroll-btn:active {
 transform: translate(4px, 4px);
 box-shadow: 0 0 0 var(--text-color);
 background: var(--text-color);
 color: var(--bg-color);
 opacity: 0.9;
    }

    /* 切换按钮 */
    .toggle-handler {
 font-size: 1.5rem;
    }

    /* 收起后的切换按钮：吸附在右侧 */
    .scroll-controls.minimized .toggle-handler {
 width: 24px;
 height: 40px;
 border-right: none;
 border-radius: 4px 0 0 4px;
 box-shadow: none;
 background: var(--card-bg);
 opacity: 0.5;
    }
    
    /* 收起后悬停 */
    .scroll-controls.minimized .toggle-handler:hover {
 width: 30px;
 transform: none;
 opacity: 0.5;
    }
    
    
    /* 收起后点击 */
    .scroll-controls.minimized .toggle-handler:active {
 width: 30px;
 opacity: 0.5;
    }

    @media (max-width: 768px) {
 .scroll-controls { right: 20px; bottom: 100px; gap: 10px; }
 .scroll-btn { 
     width: 44px; height: 44px; font-size: 1.4rem; 
 }
 .scroll-controls.minimized { right: 0; }
    }
 
 /* 说说卡片样式 */
 .note-card {
     background: var(--card-bg);
     border: var(--border-width) solid var(--text-color);
     box-shadow: none;
     margin-bottom: 2.5rem;
     position: relative;
     padding: 1.2rem 2rem 1rem;
     overflow: hidden;
     break-inside: avoid;
     transition: transform 0.3s;
 }
 .note-card:hover { transform: translateY(-2px); }

/* 左上角大引号 */
.note-quote {
    position: absolute;
    
    top: -8px;
    left: 1px;
    
    font-size: 6rem;
    line-height: 1;
    font-family: "Times New Roman", serif;
    color: var(--text-color);
    
    opacity: 0.15;
    
    pointer-events: none;
    z-index: 0;
}

    @media (max-width: 768px) {
 .note-quote {
     font-size: 6.5rem;
     top: -10px;
     left: -4px;
 }
 
 .note-card {
     padding-left: 1.8rem;
 }
    }

    .note-header {
 position: relative;
 z-index: 1;
 display: flex;
 align-items: center;
 gap: 10px;
 margin-bottom: 0.5rem;
 font-size: 0.85rem;
 color: var(--text-color);
 opacity: 0.7;
 font-family: 'Space Grotesk', monospace;
    }

    .note-title {
 font-size: 1.1rem;
 font-weight: 800;
 margin-bottom: 0.8rem;
 color: var(--text-color);
 line-height: 1.4;
 position: relative;
 z-index: 1;
    }
    
    .note-category-wrapper {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 
 background: var(--search-bg);
 
 padding: 3px 8px;
 border-radius: 4px;
 
 font-size: 0.75rem;
 color: var(--text-color);
 opacity: 0.6;
 
 margin-bottom: 0.5rem;
 width: fit-content;
 font-family: 'Space Grotesk', monospace;
    }

    /* 内容区域 */
    .note-content {
 position: relative;
 z-index: 1;
 font-size: 1rem;
 line-height: 1.7;
 color: var(--text-color);
 
 /* 折叠状态样式 */
 max-height: 180px;
 overflow: hidden;
 transition: max-height 0.5s ease;
    }
    
    /* 展开状态 */
    .note-content.expanded {
 max-height: 2000px;
    }

    /* 折叠时的底部渐变遮罩 */
    .note-mask {
 position: absolute;
 bottom: 0; left: 0; width: 100%; height: 80px;
 background: linear-gradient(to bottom, transparent, var(--card-bg));
 pointer-events: none;
 transition: opacity 0.3s;
    }
    .note-content.expanded .note-mask { opacity: 0; }

    /* 底部操作栏 */
    .note-footer {
 position: relative;
 z-index: 2;
 text-align: center;
 margin-top: 1rem;
 padding-top: 0.5rem;
 border-top: 1px dashed rgba(0,0,0,0.1);
    }
    [data-theme="dark"] .note-footer { border-top: 1px dashed rgba(255,255,255,0.1); }

    /* 展开/收起按钮 */
    .note-toggle-btn {
 background: transparent;
 border: none;
 color: var(--text-color);
 font-weight: 700;
 cursor: pointer;
 font-size: 0.9rem;
 display: inline-flex; align-items: center; gap: 5px;
 padding: 5px 10px;
 transition: 0.2s;
    }
    .note-toggle-btn:hover { background: var(--search-bg); border-radius: 4px; }
    
    /* Note 里的图片样式 */
    .note-content img {
 max-width: 100%;
 border-radius: 4px;
 margin: 10px 0;
 border: 1px solid var(--text-color);
 cursor: zoom-in;
    }
    
    /* 标签功能样式 */
 
 .nav-item-container {
     position: relative;
     display: flex;
     align-items: center;
 }

 .tag-cloud-inner {
     display: flex;
     flex-wrap: wrap;
     gap: 10px;
     
 }

 .tag-pill {
     font-size: 0.76rem;
     padding: 4px 12px;
     border: 1px solid var(--text-color);
     background: var(--bg-color);
     color: var(--text-color);
     cursor: pointer;
     transition: all 0.2s;
     font-family: 'Space Grotesk', sans-serif;
     text-decoration: none !important;
 }
 
 .tag-pill:hover, .tag-pill.active {
     background: var(--text-color);
     color: var(--bg-color);
     transform: translateY(-2px);
 }
 
 .tag-pill::after { display: none !important; }

 .pc-tag-trigger {
     cursor: pointer;
     user-select: none;
 }
 
 .pc-tag-dropdown {
     position: absolute;
     top: 200%;
     left: 50%;
     transform: translateX(-50%) translateY(10px);
     width: 320px;
     max-height: 300px;
     overflow-y: auto;
     background: var(--bg-color);
     border: 2px solid var(--text-color);
     box-shadow: 6px 6px 0 var(--shadow-color);
     padding: 20px;
     z-index: 1000;
     
     opacity: 0;
     visibility: hidden;
     pointer-events: none;
     transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
     overscroll-behavior: contain;
     max-width: calc(100vw - 40px);
     left: 50%;
     transform: translateX(-50%) translateY(10px);
     margin-left: max(-160px, calc(50% - 50vw + 20px));
     margin-right: max(-160px, calc(50% - 50vw + 20px));
 }

 .pc-tag-dropdown.show {
     opacity: 1;
     visibility: visible;
     pointer-events: auto;
     transform: translateX(-50%) translateY(0);
 }

 .mobile-tag-wrapper { display: none; }

 @media (max-width: 768px) {
     .pc-tag-trigger, .pc-tag-dropdown { display: none; }
     
     .nav-item-container {
  width: 100%;
  display: block;
     }

     .mobile-tag-wrapper {
  display: block;
  width: 100%;
  border-bottom: 1px solid rgba(0,0,0,0.1);
     }
     [data-theme="dark"] .mobile-tag-wrapper { border-bottom: 1px solid rgba(255,255,255,0.1); }

     .mobile-tag-header {
  font-weight: 700;
  font-size: 1rem;
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
     }

     .mobile-tag-body {
  height: 0;
  overflow: hidden;
  transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
     }
     
     .mobile-tag-body .tag-cloud-inner {
  padding: 10px 0 20px 0;
  max-height: 35vh;
  overflow-y: auto;
  overscroll-behavior: contain;
     }
     
     .tag-pill {
  padding: 6px 14px;
  font-size: 0.7rem;
     }
 }
 
 /* 分页底部信息栏 */
 .pagination-footer {
     margin-top: 1.5rem;
     display: flex;
     justify-content: center;
     align-items: center;
     gap: 15px;
     font-family: 'Space Grotesk', monospace;
     color: var(--text-color);
 }

 /* 左侧文字区域 */
 .page-info-text {
     display: flex;
     flex-direction: column;
     align-items: flex-end;
     font-size: 0.75rem;
     line-height: 1.3;
     opacity: 0.7;
     font-weight: 700;
 }

 /* 右侧跳转按钮 */
 .jump-btn {
     width: 32px;
     height: 32px;
     border-radius: 50%;
     border: 1.5px solid var(--text-color);
     background: transparent;
     color: var(--text-color);
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all 0.2s;
     font-size: 1rem;
 }

 .jump-btn:hover {
     background: var(--text-color);
     color: var(--bg-color);
     transform: scale(1.1) rotate(-15deg);
 }

 @media (max-width: 768px) {
     .pagination-footer { margin-top: 1rem; }
 }
 
    /* 黑幕（防剧透） */
    .spoiler {
 background-color: var(--text-color);
 color: transparent;
 cursor: pointer;
 border-radius: 2px;
 padding: 0 2px;
 margin: 0;
 transition: all 0.2s ease;
 user-select: none;
 font-weight: inherit;
 vertical-align: baseline;
 text-decoration: none !important;
 border-bottom: none !important;
 font-size: inherit;
    }

    /* 黑幕激活（显示）状态 */
    .spoiler.visible {
 background-color: transparent;
 color: var(--text-color);
 cursor: text;
 user-select: text;
    }

    /* 悬停提示（可选） */
    .spoiler:hover:not(.visible) {
 opacity: 0.85;
    }

    /* 折叠框 */
    .details-box {
 border: 2px solid var(--text-color);
 background: var(--card-bg);
 margin: 1.5rem 0;
 border-radius: 6px;
 overflow: hidden;
 transition: border-color 0.2s;
 box-shadow: none !important;
    }

    .details-header {
 background: var(--search-bg);
 padding: 12px 18px;
 cursor: pointer;
 display: flex;
 justify-content: space-between;
 align-items: center;
 font-weight: 700;
 font-family: 'Space Grotesk', sans-serif;
 color: var(--text-color);
 border-bottom: 2px solid transparent; /* 初始无边框 */
 transition: background-color 0.3s;
 user-select: none;
    }

    .details-header:hover {
 background: var(--bg-color);
    }

    .details-header span {
 color: var(--text-color) !important;
    }

    .details-icon {
 font-size: 1.1rem;
 transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .details-content-wrapper {
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s linear;
 opacity: 0;
 background: var(--bg-color);
    }

    .details-inner {
 padding: 20px;
 font-size: 0.95rem;
 line-height: 1.7;
    }

    .details-box.open .details-header {
 border-bottom: 2px solid var(--text-color);
 background: var(--bg-color);
    }

    .details-box.open .details-icon {
 transform: rotate(180deg);
 color: var(--accent-3);
    }

    .details-box.open .details-content-wrapper {
 opacity: 1;
    }
    
    /* 折叠框内部图片样式修正 */
    .details-inner img {
 margin: 1rem auto !important;
 max-width: 100% !important;
 box-shadow: none !important;
 border: 1px solid rgba(0,0,0,0.1);
    }
    [data-theme="dark"] .details-inner img {
 border-color: rgba(255,255,255,0.1);
    }
    
    /* 卡片高密度布局优化 */
    
    /* 缩小卡片整体内边距 */
    .card-content { 
 padding: 0.8rem 1.2rem;
    }

    /* 强制缩小标签组与标题之间的距离 */
    /* 注意：JS中给标签容器加了内联 margin-bottom:0.5rem，这里用 !important 覆盖 */
    .card-content > div:first-child {
 margin-bottom: 0.3rem !important;
    }

    /* 标签 */
    .card-tag {
 margin-bottom: 0;
 padding: 0.1rem 0.6rem;
    }

    /* 标题 */
    .card h3 { 
 margin-bottom: 0.25rem;
 margin-top: 0;
 font-size: 1.25rem;
 line-height: 1.25;
    }

    /* 日期 */
    .card-date { 
 margin-bottom: 0.6rem;
 margin-top: 0;
 opacity: 0.7;
    }

    /* 简介文本 */
    .card p { 
 margin-bottom: 1rem;
 font-size: 0.95rem;
 line-height: 1.6;
    }

    /* 阅读全文按钮 */
    .read-btn {
 padding: 0.6rem; text-decoration: none;
    }

    /* 文章正文区域 (Hero 以外) 高密度优化 */

    /* 减小正文容器的顶部和底部留白 */
    .article-container { 
 padding: 1.5rem 5% 4rem;
 max-width: 900px;
    }

    /* 收紧目录框的间距 */
    .toc-box {
 margin-bottom: 1.5rem;
    }
    .toc-list {
 padding: 0.8rem 1.2rem;
    }
    .toc-list li {
 margin-bottom: 0.3rem;
    }

    /* 正文排版紧凑 */
    .article-body { 
 line-height: 1.65;
    }

    .article-body p { 
 margin-bottom: 0.8rem; /* 段落间距减小 */
    }

    .article-body h2 { 
 margin: 1.4rem 0 0.8rem; /* 标题间距减小 */
 padding-left: 0.8rem;
    }

    .article-body h3 { 
 margin: 1.1rem 0 0.6rem; 
    }

    .article-body ul, .article-body ol { 
 margin-bottom: 0.8rem; 
 padding-left: 1.2rem;
    }
    
    .article-body blockquote {
 margin: 1.2rem 0;
 padding: 0.8rem 1rem;
    }
    
    /* 图片 */
    .article-body img {
 margin: 1rem auto 1.2rem !important;
    }

    /* 列表 */
    .article-body ul, .article-body ol {
 margin-top: -0.2rem;
 margin-bottom: 0.8rem;
    }

    .details-inner .mac-code-block {
 margin: 0.8rem 0 !important;
    }
    
    .details-inner img {
 margin: 0.8rem auto !important;
    }

    .article-body p + .mac-code-block,
    .article-body p + img {
 margin-top: 0.5rem !important;
    }

    @media (max-width: 768px) {
 .card-content { padding: 0.8rem 1rem; }
 .article-container { padding: 1rem 5% 3rem; }
    }
    
    /* 通用标签样式 */
    .meta-tag-wrapper {
 display: inline-flex;
 align-items: center;
 gap: 5px;
 background: var(--search-bg);
 padding: 3px 8px;
 border-radius: 4px;
 font-size: 0.75rem;
 color: var(--text-color);
 opacity: 0.6;
 font-family: 'Space Grotesk', monospace;
 vertical-align: middle;
 height: fit-content;
 align-self: center;
    }

    .card-header-row {
 display: flex;
 gap: 8px;
 flex-wrap: wrap;
 align-items: center;
 margin-bottom: 0.4rem !important;
    }

    .meta-tag-wrapper span {
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
 max-width: 200px;
    }
    
    .note-meta-row {
 display: flex;
 align-items: center;
 gap: 8px;
 flex-wrap: wrap;
 margin-bottom: 0.8rem;
    }

    .note-meta-row .note-category-wrapper,
    .note-meta-row .meta-tag-wrapper {
 display: inline-flex !important;
 align-items: center;
 justify-content: center;
 height: 24px;
 line-height: 1;
 padding: 0 8px;
 margin: 0 !important;
 border-radius: 4px;
 background: var(--search-bg);
 font-size: 0.75rem;
 color: var(--text-color);
 opacity: 0.6;
 vertical-align: middle;
    }

    .note-meta-row i {
 font-size: 0.9rem;
 margin-right: 4px;
 position: relative;
 top: 0.5px;
    }
    
    .meta-tag-wrapper,
    .note-meta-row .note-category-wrapper,
    .note-meta-row .meta-tag-wrapper {
 align-items: center !important;
 display: inline-flex !important;
 flex-wrap: nowrap;
 height: auto !important;
 min-height: 26px;
 padding: 4px 8px;
 white-space: normal !important;
    }

    .note-meta-row i, 
    .meta-tag-wrapper i {
 align-self: center !important;
 transform: translateY(0.3px);
 margin-top: 0 !important;
 flex-shrink: 0;
 margin-right: 4px;
    }

    /* 文字排版 */
    .meta-tag-wrapper span,
    .note-category-wrapper span {
 white-space: normal !important;
 line-height: 1.4;
 text-align: left;
 word-break: break-word;
    }
    
    /* Waline 评论系统自定义样式 */
    #waline {
 margin-top: 2rem;
 padding-top: 0.2rem;
 border-top: 2px dashed var(--text-color); /* 虚线分隔 */
 font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
    }
    
    /* 隐藏版权信息 */
    .wl-power { display: none !important; }

    /* 覆盖 Waline 默认变量 */
    :root {
 --waline-theme-color: var(--text-color) !important;
 --waline-active-color: var(--text-color) !important;
 --waline-bgcolor-light: var(--search-bg);
    }
    .wl-btn.primary {
 background: var(--text-color) !important;
 color: var(--bg-color) !important;
 border: 1px solid var(--text-color) !important;
 border-radius: 4px;
 transition: opacity 0.2s;
    }
    .wl-btn.primary:hover {
 opacity: 0.8;
    }
    .wl-editor:focus, .wl-input:focus {
 background: transparent !important;
 border-color: var(--text-color) !important;
 box-shadow: none !important;
    }
    [data-theme="dark"] {
 --waline-bgcolor: #141414;
 --waline-bgcolor-light: #222;
 --waline-border-color: #444;
    }
    
    /* 文章底部导航栏样式 */
    .article-navigation {
 margin-top: 2rem;
 margin-bottom: 0;
 display: flex;
 justify-content: space-between;
 gap: 20px;
 font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
    }
    .nav-item {
 flex: 1;
 display: flex;
 flex-direction: column;
 padding: 12px 15px;
 border: 2px solid var(--text-color);
 background: transparent;
 color: var(--text-color);
 cursor: pointer;
 transition: all 0.2s ease;
 text-decoration: none;
 max-width: 48%;
 position: relative;
 overflow: hidden;
    }
    .nav-item:hover {
 background: var(--text-color);
 color: var(--bg-color);
 transform: none;
 box-shadow: none;
    }
    .nav-item.empty {
 opacity: 0;
 pointer-events: none;
 visibility: hidden;
    }
    .nav-label {
 font-size: 0.75rem;
 font-weight: 700;
 opacity: 0.6;
 margin-bottom: 4px;
 display: flex;
 align-items: center;
 gap: 5px;
 text-transform: uppercase;
 letter-spacing: 1px;
 transition: opacity 0.2s;
    }
    .nav-item:hover .nav-label {
 opacity: 1;
 color: inherit;
    }
    .nav-title {
 font-size: 1rem;
 font-weight: 700;
 line-height: 1.4;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
 width: 100%;
 display: block;
    }
    .nav-item.next {
 align-items: flex-end;
 text-align: right;
    } 
    .nav-item.next .nav-label {
 flex-direction: row-reverse;
    }
    @media (max-width: 768px) {
 .article-navigation {
     flex-direction: column;
     gap: 10px;
     margin-top: 1.5rem;
 }
 .nav-item {
     max-width: 100%;
 }
    }
    
/* 相册/图集样式 */
.article-gallery {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: none;
}

.gallery-post-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-post-grid {
  display: grid;
  /* 自动填充列，最小宽度160px，自适应 */
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.gallery-post-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: zoom-in;
  background: var(--search-bg);
}

.gallery-post-item:hover {
  border-color: var(--text-color);
  transform: translateY(-4px);
  z-index: 10;
}

.gallery-post-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.gallery-post-item:hover img {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .gallery-post-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
}

@media (max-width: 340px) {
  .gallery-post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* 相册/图集样式结束 */

/* 侧边栏扩展卡片样式 */
/* 卡片通用标题栏 */
.extra-card-title {
    padding: 12px 15px;
    font-weight: 800;
    font-size: 0.95rem;
    border-bottom: 2px solid var(--text-color);
    background: var(--search-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 更多按钮 */
.extra-more-btn {
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--text-color);
    opacity: 0.6;
    display: flex;
    align-items: center;
    transition: 0.2s;
}
.extra-more-btn:hover {
    opacity: 1;
    color: var(--accent-3);
}

/* 分类列表样式 */
.sidebar-list-content {
    padding: 0;
}

.sidebar-cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    text-decoration: none;
    color: var(--text-color);
    transition: 0.2s;
    font-size: 0.9rem;
}
[data-theme="dark"] .sidebar-cat-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-cat-item:last-child {
    border-bottom: none;
}

.sidebar-cat-item:hover {
    background: var(--accent-1);
    color: #000;
    padding-left: 20px;
}

.cat-count {
    background: var(--text-color);
    color: var(--bg-color);
    font-size: 0.75rem;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: monospace;
    opacity: 0.8;
}
.sidebar-cat-item:hover .cat-count {
    background: #000;
    color: #fff;
    opacity: 1;
}

/* 标签云样式 */
.sidebar-tags-content {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-tag-pill {
    font-size: 0.8rem;
    padding: 4px 10px;
    border: 1px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.2s;
    opacity: 0.8;
}

.sidebar-tag-pill:hover {
    background: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    opacity: 1;
}

/* 标签内的数量统计样式 */
.tag-num {
    font-size: 0.85em;
    opacity: 0.7;
    margin-left: 4px;
    font-family: monospace;
}

/* 针对移动端隐藏这些侧边栏卡片（因为移动端侧边栏本身就不显示） */
@media (max-width: 900px) {
    .extra-card {
        display: none !important;
    }
}

/* 版权声明区域样式 */
.article-copyright {
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding: 1rem 1rem;
    
    background: var(--search-bg);
    border-left: 3px solid #2a70ff;
    border-radius: 0 4px 4px 0;
    
    text-align: left;
    font-size: 0.8rem;
    color: var(--text-color);
    font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    opacity: 0.9;
}
.article-copyright a {
    color: #2a70ff;
    font-weight: 700;
    text-decoration: none;
    margin: 0 4px;
    border-bottom: 1px dashed rgba(74, 112, 255, 0.5);
    transition: all 0.2s;
    display: inline;
}
.article-copyright a:hover {
    opacity: 0.8;
    border-bottom-style: solid;
}

/* 移动端底部卡片容器 */
.mobile-bottom-cards {
    display: none;
    margin-bottom: 2rem;
    gap: 1.5rem;
    flex-direction: column;
}

/* 仅在移动端显示 (900px以下) */
@media (max-width: 900px) {
    .mobile-bottom-cards {
        display: flex;
    }    
    .mobile-bottom-cards .extra-card {
        display: block !important;
    }    
    .mobile-bottom-cards .profile-card {
        padding: 1.5rem 1rem;
    }
}

/* 延迟检测卡片样式 */
.latency-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 2px solid var(--text-color);
    background: var(--search-bg);
    font-weight: 800;
    font-size: 0.95rem;
}

@keyframes spin-clockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.refresh-btn {
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s !important;
    border: none;
    background: transparent;
    color: var(--text-color);
    display: flex;
    align-items: center;
    transform: rotate(0deg);
}

.refresh-btn:hover { color: var(--accent-3); }

.refresh-btn.spinning {
    animation: spin-clockwise 0.6s ease-in-out;
    pointer-events: none;
}

.latency-list {
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-family: 'Space Grotesk', monospace;
    cursor: pointer;
}

.status-item:not(.current):hover {
    background: rgba(0,0,0,0.05);
}
[data-theme="dark"] .status-item:not(.current):hover {
    background: rgba(255,255,255,0.1);
}

.status-item.current {
    background: var(--text-color);
    color: var(--bg-color);
    font-weight: 700;
    cursor: default;
    pointer-events: none;
}

[data-theme="dark"] .status-item.current {
    background: #1a1a1a;
    color: #eee;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.dot-gray { background: #ccc; }
.dot-green { background: #27c93f; } 
.dot-yellow { background: #ffbd2e; }
.dot-red { background: #ff5f56; }

/* 彩蛋动画：荡秋千 */
@keyframes swing-rotate {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(5deg); }
    80% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

/* 持续摆动 (激活状态) */
@keyframes swing-loop {
    0% { transform: rotate(14deg); }
    50% { transform: rotate(-14deg); }
    100% { transform: rotate(14deg); }
}

/* 激活状态的头像类 */
.avatar-active {
    animation: swing-loop 2.5s ease-in-out infinite;
    box-shadow: 0 0 15px var(--accent-1);
    border-color: var(--accent-1) !important;
}

/* 点击时的反馈动画 */
.avatar-clicked {
    transform: scale(0.9);
    transition: transform 0.1s;
}

/* 待办事项 (Todo List) 样式 */

/* 列表容器：去除默认圆点，调整间距 */
.todo-list {
    list-style: none !important;
    padding-left: 5px !important;
    margin: 1.5rem 0;
}

/* 单个待办项 */
.todo-item {
    display: flex;
    align-items: flex-start; /* 顶部对齐，适应多行文本 */
    gap: 12px;
    margin-bottom: 10px;
    line-height: 1.6;
    position: relative;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    transition: opacity 0.2s;
}

/* 鼠标悬停效果 */
.todo-item:hover {
    opacity: 0.8;
}

/* 自定义复选框 (隐藏原生样式，重绘) */
.todo-item input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--bg-color);
    margin: 0;
    margin-top: 4px; /* 微调垂直对齐 */
    
    /* 核心样式：方框、粗边 */
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-color);
    border-radius: 4px; /*稍微圆角，也可以改为0变成直角*/
    
    display: grid;
    place-content: center;
    cursor: pointer;
    flex-shrink: 0; /* 防止被文字挤压变形 */
    transition: all 0.2s ease-in-out;
}

/* 选中状态：背景变黑 (或变绿) */
.todo-item input[type="checkbox"]:checked {
    background-color: var(--text-color);
    border-color: var(--text-color);
}

/* 选中状态的钩子 (使用伪元素绘制) */
.todo-item input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 0.2s transform cubic-bezier(0.18, 0.89, 0.32, 1.28);
    box-shadow: inset 1em 1em var(--bg-color); /* 钩子颜色为背景色(反色) */
    
    /* 这里用 clip-path 画一个勾，或者直接用方块代表选中 */
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    background-color: var(--accent-1); /* 酸性绿的钩子 */
}

/* 暗色模式下，选中后的钩子颜色 */
[data-theme="dark"] .todo-item input[type="checkbox"]::before {
    background-color: var(--bg-color); /* 黑色背景下的白色钩子，或保持 accent-1 */
    box-shadow: inset 1em 1em var(--accent-1); /* 钩子本体颜色 */
}

.todo-item input[type="checkbox"]:checked::before {
    transform: scale(1);
}

/* 选中后的文字样式：删除线 + 变淡 */
.todo-item input[type="checkbox"]:checked + span {
    text-decoration: line-through;
    color: var(--text-color);
    opacity: 0.5;
    transition: opacity 0.2s;
}

/* 标签文字样式 */
.todo-item span {
    color: var(--text-color);
    font-weight: 500;
}

/* --- Bangumi (追番) 页面样式 --- */

/* 筛选器 Tabs */
.bangumi-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--text-color);
}

.b-tab-btn {
    padding: 6px 16px;
    background: var(--search-bg);
    border: 1px solid var(--text-color);
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s;
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
}

.b-tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 2px 2px 0 var(--text-color);
}

.b-tab-btn.active {
    background: var(--text-color);
    color: var(--bg-color);
    pointer-events: none;
}

/* 番剧网格布局 */
.bangumi-grid {
    display: grid;
    /* 默认自适应，最小宽度180px */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* 移动端强制双列 (符合最少两个的要求) */
@media (max-width: 600px) {
    .bangumi-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 0.8rem;
    }
}

/* 卡片本体 */
.b-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 2px solid var(--text-color);
    text-decoration: none;
    color: var(--text-color);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    height: 100%;
}

.b-card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    z-index: 5;
}

[data-theme="dark"] .b-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
}

/* 封面区域 */
.b-cover-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3; /* 经典海报比例 */
    overflow: hidden;
    background: var(--search-bg);
}

.b-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.b-card:hover .b-cover {
    transform: scale(1.05);
}

/* 评分角标 */
.b-score {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--accent-1);
    color: #000;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 2px 6px;
    border: 1px solid #000;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
    z-index: 2;
    font-family: monospace;
}

/* 分类标签 (TV/OVA等) */
.b-category {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 2px;
    font-weight: 700;
    backdrop-filter: blur(2px);
    z-index: 2;
}

/* 内容区域 */
.b-info {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.b-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    /* 限制2行 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.b-summary {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    /* 限制3行 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1; /* 让简介填充剩余空间 */
}

/* 进度条区域 */
.b-progress-wrapper {
    margin-top: auto; /* 底部对齐 */
}

.b-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-family: monospace;
    font-weight: 700;
    margin-bottom: 4px;
    opacity: 0.8;
}

.b-bar-bg {
    width: 100%;
    height: 6px;
    background: var(--search-bg);
    border: 1px solid var(--text-color);
    border-radius: 3px;
    overflow: hidden;
}

.b-bar-fill {
    height: 100%;
    background: var(--accent-3); 
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* === 音乐播放器卡片样式 === */
.music-player-card {
    background: var(--card-bg);
    border: 2px solid var(--text-color);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 0.8rem 0;
    display: flex;
    gap: 20px;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
}

.music-player-card:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

/* 信息区域 */
.music-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
}

.music-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 8px;
}

.music-title {
    font-weight: 800;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.music-title i {
    font-size: 0.9em;
    opacity: 0.7;
}

.music-author {
    font-size: 0.8rem;
    opacity: 0.7;
    white-space: nowrap;
    font-family: 'Space Grotesk', monospace;
}

/* 进度条容器 */
.music-progress-container {
    width: 100%;
    height: 6px;
    background: var(--search-bg);
    border: 1px solid var(--text-color);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.music-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-3);
    border-radius: 2px;
    position: relative;
    transition: width 0.1s linear;
}

/* 拖动滑块 */
.music-progress-bar::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 12px; height: 12px;
    background: var(--text-color);
    border-radius: 50%;
    transition: transform 0.2s;
}

.music-progress-container:hover .music-progress-bar::after {
    transform: translateY(-50%) scale(1);
}

/* 时间显示 */
.music-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-family: monospace;
    opacity: 0.6;
    margin-top: 5px;
    font-weight: 700;
}

/* 控制按钮 */
.music-ctrl-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 2em;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.music-ctrl-btn:hover {
    color: var(--accent-3);
    transform: scale(1.1);
}

/* 歌词区域 */
.music-lrc-wrapper {
    margin-top: 8px;
    height: 24px;
    overflow: hidden;
    text-align: left;
    position: relative;
    border-top: 1px dashed rgba(0,0,0,0.1);
    padding-top: 4px;
    padding-left: 2px;
}

[data-theme="dark"] .music-lrc-wrapper {
    border-top-color: rgba(255,255,255,0.1);
}

.music-lrc-content {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
    white-space: nowrap;
    font-weight: 500;
    min-height: 1.5em;
    transition: all 0.2s;
}

/* 逐字歌词样式 */
.lrc-word {
    display: inline-block;
    transition: color 0.1s, opacity 0.1s, transform 0.1s;
    opacity: 0.6;
    margin: 0 1px;
}

/* 激活的字 (唱过的字) */
.lrc-word.active {
    color: var(--accent-3);
    opacity: 1;
    transform: scale(1.1);
    font-weight: 700;
    text-shadow: 0 0 5px var(--bg-color); /* 增加一点对比度 */
}

/* 移动端适配 */
@media (max-width: 600px) {
    .music-player-card { padding: 8px 12px; gap: 15px; }
    .music-title { font-size: 1rem; }
    .music-ctrl-btn { font-size: 1.8rem; }
}

/* 音乐播放器 PC 端歌词布局优化 */
@media (min-width: 769px) {
    .music-info:has(.music-lrc-wrapper) {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "header   lyrics"
            "progress lyrics"
            "time     lyrics";
        column-gap: 25px;
        row-gap: 4px;
        align-items: center;
    }

    .music-info:has(.music-lrc-wrapper) .music-header {
        grid-area: header;
        margin-bottom: 0;
    }

    .music-info:has(.music-lrc-wrapper) .music-progress-container {
        grid-area: progress;
        width: 100%;
        align-self: center;
    }

    .music-info:has(.music-lrc-wrapper) .music-time {
        grid-area: time;
        margin-top: 0;
    }

    .music-info:has(.music-lrc-wrapper) .music-lrc-wrapper {
        grid-area: lyrics;
        height: 100%;     
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        border-left: 2px dashed rgba(0,0,0,0.1); 
        padding-left: 20px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    [data-theme="dark"] .music-info:has(.music-lrc-wrapper) .music-lrc-wrapper {
        border-left-color: rgba(255,255,255,0.1);
    }

    .music-info:has(.music-lrc-wrapper) .music-lrc-content {
        font-size: 0.9rem;
        text-align: left;
        width: 100%;
    }
}

/* === 视频播放器样式 === */
.video-player-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 0.7rem;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 6px;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    aspect-ratio: 16 / 9;
    user-select: none;
    transition: box-shadow 0.3s;
    font-family: 'Space Grotesk', sans-serif;
}

.video-player-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: pointer;
}

.video-big-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 64px;
    height: 64px;
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    z-index: 5;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.video-player-wrapper.paused .video-big-play-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.video-big-play-btn i {
    font-size: 32px;
    color: #fff;
    margin-left: 4px;
}

.video-controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 15px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-player-wrapper:hover .video-controls-bar,
.video-player-wrapper.paused .video-controls-bar {
    opacity: 1;
}

.video-player-wrapper.user-inactive:not(.paused) {
    cursor: none;
}
.video-player-wrapper.user-inactive:not(.paused) .video-controls-bar {
    opacity: 0;
}

.video-progress-area {
    position: absolute;
    top: -8px; 
    left: 0;
    width: 100%;
    height: 10px;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    z-index: 12;
}

.video-progress-bg {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    transition: height 0.1s;
}

.video-progress-area:hover .video-progress-bg { height: 4px; }

.video-progress-fill {
    height: 100%;
    width: 0;
    background: var(--accent-3, #5500ff); 
    position: relative;
}

.video-progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 12px; height: 12px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.1s;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.video-progress-area:hover .video-progress-fill::after { transform: translateY(-50%) scale(1); }

.v-btn {
    color: rgba(255,255,255,0.9);
    font-size: 1.4rem;
    cursor: pointer;
    background: transparent;
    border: none;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.2s, transform 0.1s;
    width: 32px; height: 32px;
}
.v-btn:hover { color: #fff; transform: scale(1.1); }
.v-btn:active { transform: scale(0.95); }

.v-time {
    color: #ddd;
    font-size: 0.75rem;
    font-family: monospace;
    font-weight: 500;
    margin-left: -5px;
    cursor: default;
    min-width: 90px;
}

.v-spacer { flex: 1; }

.v-speed-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.v-speed-btn {
    font-size: 0.9rem;
    font-weight: 700;
    width: auto;
    padding: 0 5px;
    color: rgba(255,255,255,0.9);
}

.v-speed-menu {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.9);
    border-radius: 4px;
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 20;
}

.v-speed-container:hover .v-speed-menu {
    opacity: 1;
    visibility: visible;
    bottom: 50px;
}

.v-speed-item {
    padding: 6px 15px;
    font-size: 0.85rem;
    color: #ccc;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    transition: background 0.2s, color 0.2s;
}

.v-speed-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.v-speed-item.active {
    color: var(--accent-3, #5500ff);
    font-weight: 700;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .v-time { font-size: 0.7rem; min-width: auto; }
    .v-speed-btn { font-size: 0.8rem; }
}