  /* ===== CSS 变量 ===== */
:root {
    --bg-primary: #0d0d1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #1a1a2e;
    --text-primary: #fff;
    --text-secondary: rgba(255,255,255,0.5);
    --text-muted: rgba(255,255,255,0.25);
    --text-faint: rgba(255,255,255,0.12);
    --border-color: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --nav-bg: rgba(13,13,26,0.92);
    --pagination-bg: rgba(13,13,26,0.85);
    --shadow-color: rgba(0,0,0,0.5);
    --overlay-bg: rgba(0,0,0,0.92);
    --card-bg: #1a1a2e;
    --input-bg: rgba(255,255,255,0.05);
    --input-border: rgba(255,255,255,0.06);
    --btn-hover: rgba(255,255,255,0.08);
    --scrollbar-thumb: rgba(255,255,255,0.15);
    --scrollbar-thumb-hover: rgba(255,255,255,0.25);
    --progress-bar: linear-gradient(90deg, #4fc3f7, #00e5ff);
    --accent-color: #4fc3f7;
    --accent-hover: rgba(79,195,247,0.2);
    --detail-panel-bg: #1a1a2e;
    --arrow-bg-hover: rgba(255,255,255,0.08);
    --arrow-color: rgba(255,255,255,0.2);
    --arrow-color-hover: rgba(255,255,255,0.8);
    --btn-bg: rgba(0,0,0,0.4);
    --btn-border: rgba(255,255,255,0.08);
    --btn-color: rgba(255,255,255,0.7);
    --btn-hover-bg: rgba(0,0,0,0.6);
    --btn-hover-color: rgba(255,255,255,0.9);
    --meta-color: rgba(255,255,255,0.7);
    --meta-shadow: 0 2px 20px rgba(0,0,0,0.9), 0 0 40px rgba(0,0,0,0.4);
    --resolution-bg: #1a1a2e;
    --detail-panel-bg: #1a1a2e;
}

[data-theme="light"] {
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: rgba(0,0,0,0.5);
    --text-muted: rgba(0,0,0,0.25);
    --text-faint: rgba(0,0,0,0.1);
    --border-color: rgba(0,0,0,0.06);
    --border-hover: rgba(0,0,0,0.12);
    --nav-bg: rgba(255,255,255,0.92);
    --pagination-bg: rgba(255,255,255,0.85);
    --shadow-color: rgba(0,0,0,0.08);
    --overlay-bg: rgba(255,255,255,0.95);
    --card-bg: #ffffff;
    --input-bg: rgba(0,0,0,0.04);
    --input-border: rgba(0,0,0,0.08);
    --btn-hover: rgba(0,0,0,0.06);
    --scrollbar-thumb: rgba(0,0,0,0.15);
    --scrollbar-thumb-hover: rgba(0,0,0,0.25);
    --detail-panel-bg: #ffffff;
    --arrow-bg-hover: rgba(0,0,0,0.06);
    --arrow-color: rgba(0,0,0,0.15);
    --arrow-color-hover: rgba(0,0,0,0.5);
    --btn-bg: rgba(255,255,255,0.6);
    --btn-border: rgba(0,0,0,0.06);
    --btn-color: rgba(0,0,0,0.6);
    --btn-hover-bg: rgba(255,255,255,0.9);
    --btn-hover-color: rgba(0,0,0,0.85);
    --meta-color: rgba(0,0,0,0.7);
    --meta-shadow: 0 2px 20px rgba(255,255,255,0.9), 0 0 40px rgba(255,255,255,0.4);
    --resolution-bg: #ffffff;
    --detail-panel-bg: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { 
    width: 100%; 
    height: 100%; 
    background: var(--bg-primary); 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    overflow: hidden; 
    transition: background 0.3s ease, color 0.3s ease; 
    color: var(--text-primary); 
    -webkit-tap-highlight-color: transparent !important;
}

/* ===== 进度条 ===== */
#progress-bar { position: fixed; top: 0; left: 0; height: 2.5px; background: var(--progress-bar); width: 0%; z-index: 9999; transition: width 0.3s ease; box-shadow: 0 0 12px rgba(79,195,247,0.4); }

/* ===== 导航栏 ===== */
.nav-toggle { position: fixed; top: 12px; left: 12px; z-index: 1001; background: var(--nav-bg); backdrop-filter: blur(8px); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); font-size: 20px; padding: 6px 12px; cursor: pointer; transition: 0.2s; line-height: 1; -webkit-tap-highlight-color: transparent; }
.nav-toggle:hover { background: var(--accent-hover); border-color: rgba(79,195,247,0.2); }
.nav-toggle.hidden { display: none !important; }
.navbar { position: fixed; top: 12px; left: 56px; z-index: 1000; background: var(--nav-bg); backdrop-filter: blur(16px); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 200px; opacity: 0; transform: translateY(-10px) scale(0.95); transition: opacity 0.25s ease, transform 0.25s ease; pointer-events: none; box-shadow: 0 8px 32px var(--shadow-color); max-width: 90vw; }
.navbar.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.navbar-header { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.navbar .logo { color: var(--text-primary); font-size: 17px; font-weight: 300; display: flex; align-items: center; gap: 8px; }
.navbar .logo span { color: var(--accent-color); font-weight: 600; }
.navbar .badge { color: var(--text-secondary); font-size: 12px; }
.navbar .search-box { display: flex; gap: 6px; width: 100%; }
.navbar .search-box input { flex: 1; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 6px; padding: 5px 10px; color: var(--text-primary); font-size: 13px; outline: none; transition: 0.2s; }
.navbar .search-box input:focus { border-color: var(--accent-color); }
.navbar .search-box input::placeholder { color: var(--text-muted); }
.navbar .search-box .search-btn { background: var(--accent-hover); border: none; color: var(--accent-color); padding: 5px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; transition: 0.2s; }
.navbar .search-box .search-btn:hover { background: rgba(79,195,247,0.25); color: var(--text-primary); }
.navbar .nav-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.navbar .nav-actions a, .navbar .nav-actions button { background: var(--input-bg); border: none; color: var(--text-secondary); padding: 5px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; transition: 0.2s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-family: inherit; -webkit-tap-highlight-color: transparent; }
.navbar .nav-actions a:hover, .navbar .nav-actions button:hover { background: var(--btn-hover); color: var(--text-primary); }
.navbar .nav-actions .badge-dot { display: inline-block; width: 6px; height: 6px; background: #ff6b6b; border-radius: 50%; margin-left: 2px; animation: pulse-dot 2s infinite; }
#themeToggle { background: var(--accent-hover); color: var(--accent-color); border-radius: 50%; width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center; }
#themeToggle:hover { background: rgba(79,195,247,0.3); color: var(--text-primary); }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ===== ★★★ 应用 - Flex 布局（修复叠加） ★★★ ===== */
.app { 
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    height: 100vh; 
    height: 100dvh;
    padding: 0; 
    overflow: hidden; 
    background: var(--bg-primary);
}

.grid { 
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    padding: 0;
    overflow-y: auto; 
    min-height: 0;
    background: var(--bg-primary);
    align-content: flex-start;
    gap: 0;
}

/* ★★★ 滚动条样式 ★★★ */
.grid::-webkit-scrollbar { width: 6px; }
.grid::-webkit-scrollbar-track { 
    background: rgba(255,255,255,0.04); 
    border-radius: 3px;
}
.grid::-webkit-scrollbar-thumb { 
    background: var(--accent-color); 
    border-radius: 3px;
    transition: 0.3s;
}
.grid::-webkit-scrollbar-thumb:hover { 
    background: #81d4fa; 
}

/* ===== 卡片 - Flex 项 ===== */
.card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    flex: 0 0 calc(100% / 6);
    aspect-ratio: 16 / 9;
    cursor: pointer;
    transition: background 0.3s ease;
    contain: strict;
    -webkit-tap-highlight-color: transparent;
    border-radius: 0;
    min-height: 0;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1);
    background: var(--bg-card);
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.card img.loaded { opacity: 1; }
.card:hover img { transform: scale(1.05); }

.card .placeholder-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(12px) brightness(0.7);
    transform: scale(1.04);
    transition: opacity 0.6s ease;
    z-index: 1;
    background-color: var(--bg-card);
}

.card .placeholder-bg.hidden { opacity: 0; }

.card .info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 14px 12px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.card:hover .info { opacity: 1; }
.card .info .date { font-size: 10px; color: rgba(255,255,255,0.4); }
.card .info .title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .info .copyright { font-size: 11px; color: rgba(255,255,255,0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 加载状态 ===== */
.loading-indicator {
    flex: 0 0 100%;
    text-align: center;
    padding: 20px 0 30px;
    color: var(--text-muted);
    font-size: 14px;
}
.loading-indicator i {
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-more {
    flex: 0 0 100%;
    text-align: center;
    padding: 20px 0 30px;
    color: var(--text-faint);
    font-size: 13px;
}

/* ===== 回到顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 100;
    background: var(--pagination-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-color);
    display: none;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.back-to-top:hover {
    background: var(--accent-hover);
    border-color: var(--accent-color);
    transform: scale(1.05);
}
.back-to-top.visible {
    display: flex;
}

.empty {
    flex: 0 0 100%;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}
.empty .icon { font-size: 40px; margin-bottom: 10px; }

/* ============================================================
   大图预览
   ============================================================ */
.preview-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    justify-content: center;
    align-items: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.preview-overlay.active { display: flex; }

.preview-overlay::before {
    content: '';
    position: fixed;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: center/cover no-repeat;
    filter: blur(30px) brightness(0.4);
    z-index: -1;
    transform: scale(1.1);
    transition: background-image 0.4s ease;
}

.preview-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}

.preview-image {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    background: #0d0d1a;
    pointer-events: auto;
    cursor: pointer;
    z-index: 5;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 28px;
    padding: 16px 12px;
    cursor: pointer;
    transition: 0.25s ease;
    border-radius: 8px;
    z-index: 10;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
    -webkit-touch-callout: none;
    user-select: none;
}
.arrow:focus { outline: none !important; box-shadow: none !important; }
.arrow:hover { color: #fff; background: rgba(0, 0, 0, 0.5); }
.arrow:active { background: rgba(0, 0, 0, 0.4); transform: translateY(-50%) scale(0.95); }
.arrow-left { left: 12px; }
.arrow-right { right: 12px; }

.toolbar {
    position: fixed;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 20;
    flex-wrap: wrap;
    justify-content: flex-end;
    transition: opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.toolbar .btn {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    outline: none !important;
}
.toolbar .btn:focus { outline: none !important; box-shadow: none !important; }
.toolbar .btn:hover { background: rgba(255, 255, 255, 0.15); color: #fff; border-color: rgba(255, 255, 255, 0.2); }

.donate-qr-wrapper {
    position: relative;
    display: inline-block;
}
.donate-qr-wrapper .qr-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(20, 20, 35, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
    z-index: 30;
    min-width: 280px;
}
.donate-qr-wrapper .qr-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 20px;
    border: 8px solid transparent;
    border-bottom-color: rgba(20, 20, 35, 0.95);
}
.donate-qr-wrapper .qr-tooltip .qr-row { display: flex; gap: 12px; justify-content: center; align-items: center; }
.donate-qr-wrapper .qr-tooltip .qr-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.donate-qr-wrapper .qr-tooltip .qr-item img { width: 110px; height: 110px; display: block; border-radius: 6px; background: #fff; padding: 4px; }
.donate-qr-wrapper .qr-tooltip .qr-item .qr-label { color: rgba(255, 255, 255, 0.6); font-size: 11px; font-weight: 500; }
.donate-qr-wrapper .qr-tooltip .qr-item .qr-label.wechat { color: #07c160; }
.donate-qr-wrapper .qr-tooltip .qr-item .qr-label.alipay { color: #1677ff; }
.donate-qr-wrapper .qr-tooltip .qr-footer { text-align: center; color: rgba(255, 255, 255, 0.35); font-size: 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.donate-qr-wrapper:hover .qr-tooltip { display: block; }

.dropdown { position: relative; display: inline-block; }
.dropdown .btn { padding-right: 8px; }
.dropdown .btn i.fa-chevron-down { font-size: 9px; margin-left: 2px; opacity: 0.5; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: rgba(20, 20, 35, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px 0;
    min-width: 130px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    z-index: 20;
}
.dropdown-menu.show { display: block; }
.dropdown-menu a { display: block; padding: 6px 16px; color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 12px; transition: 0.15s; white-space: nowrap; }
.dropdown-menu a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.dropdown-menu .divider { height: 1px; background: rgba(255, 255, 255, 0.06); margin: 4px 12px; }

.donate-modal { display: none !important; }

.info-panel {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    text-align: center;
    pointer-events: none;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9);
    z-index: 5;
    transition: opacity 0.3s ease;
}
.info-panel .copyright { font-size: 14px; color: rgba(255, 255, 255, 0.85); line-height: 1.5; }
.info-panel .date { font-size: 12px; color: rgba(255, 255, 255, 0.4); margin-top: 4px; }
.info-panel .desc { font-size: 13px; color: rgba(255, 255, 255, 0.5); margin-top: 4px; max-width: 500px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; line-height: 1.6; }

/* ============================================================
   评论弹窗
   ============================================================ */
.comment-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.25s ease;
}
.comment-overlay.active { display: flex; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.comment-modal {
    background: #ffffff !important;
    border-radius: 16px;
    width: 92%;
    max-width: 720px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid #e8e8e8;
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

[data-theme="dark"] .comment-modal {
    background: #ffffff !important;
    border-color: #e8e8e8 !important;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px 14px;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
}
.comment-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 10px;
}
.comment-header h2 i {
    color: #4fc3f7;
}
.comment-header .close-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.comment-header .close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.comment-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 16px;
    background: #ffffff !important;
}
.comment-body::-webkit-scrollbar { width: 4px; }
.comment-body::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

[data-theme="dark"] .comment-body {
    background: #ffffff !important;
}

/* ============================================================
   ★★★ Twikoo 暗色模式 - 强制白底黑字 ★★★
   ============================================================ */

/* 评论弹窗整体 - 强制白色背景 */
[data-theme="dark"] .comment-modal {
    background: #ffffff !important;
    border-color: #e8e8e8 !important;
}

[data-theme="dark"] .comment-body {
    background: #ffffff !important;
}

[data-theme="dark"] .comment-header {
    border-bottom-color: #e8e8e8 !important;
}
[data-theme="dark"] .comment-header h2 {
    color: #1a1a2e !important;
}
[data-theme="dark"] .comment-header .close-btn {
    color: #999 !important;
}
[data-theme="dark"] .comment-header .close-btn:hover {
    background: #f0f0f0 !important;
    color: #333 !important;
}

/* ★★★ 强制 Twikoo 所有文字变黑 ★★★ */
[data-theme="dark"] .tk-comments,
[data-theme="dark"] .tk-comment,
[data-theme="dark"] .tk-input,
[data-theme="dark"] .tk-submit,
[data-theme="dark"] .tk-meta,
[data-theme="dark"] .tk-loading,
[data-theme="dark"] .tk-footer,
[data-theme="dark"] .tk-powered {
    color: #333333 !important;
}

/* 输入框 - 白底黑字 */
[data-theme="dark"] .tk-input {
    background: #f5f7fa !important;
    border: 1px solid #e8ecf1 !important;
}
[data-theme="dark"] .tk-input textarea,
[data-theme="dark"] .tk-input input {
    color: #1a1a2e !important;
    background: transparent !important;
}
[data-theme="dark"] .tk-input textarea::placeholder,
[data-theme="dark"] .tk-input input::placeholder {
    color: #aaa !important;
}

/* 评论列表 - 黑字 */
[data-theme="dark"] .tk-comment .tk-nick,
[data-theme="dark"] .tk-comment .tk-nick a {
    color: #1a1a2e !important;
}
[data-theme="dark"] .tk-comment .tk-content,
[data-theme="dark"] .tk-comment .tk-content p {
    color: #333333 !important;
}
[data-theme="dark"] .tk-comment .tk-time {
    color: #aaa !important;
}

/* 操作按钮 */
[data-theme="dark"] .tk-comment .tk-actions .tk-action {
    color: #999 !important;
}
[data-theme="dark"] .tk-comment .tk-actions .tk-action:hover {
    color: #4fc3f7 !important;
}
[data-theme="dark"] .tk-comment .tk-like .tk-like-count {
    color: #999 !important;
}

/* 提交按钮 */
[data-theme="dark"] .tk-submit .tk-btn {
    background: #4fc3f7 !important;
    color: #ffffff !important;
}

/* 评论计数、排序 */
[data-theme="dark"] .tk-meta .tk-count {
    color: #666 !important;
}
[data-theme="dark"] .tk-meta .tk-order {
    color: #888 !important;
}
[data-theme="dark"] .tk-meta .tk-order.active {
    color: #4fc3f7 !important;
}

/* 加载更多 */
[data-theme="dark"] .tk-loading .tk-load-more {
    color: #aaa !important;
}
[data-theme="dark"] .tk-loading .tk-load-more:hover {
    color: #4fc3f7 !important;
}

/* 空状态 */
[data-theme="dark"] .tk-empty {
    color: #aaa !important;
}

/* 底部 Powered by Twikoo */
[data-theme="dark"] .tk-footer,
[data-theme="dark"] .tk-powered,
[data-theme="dark"] .tk-footer a,
[data-theme="dark"] .tk-powered a {
    color: #aaa !important;
}
[data-theme="dark"] .tk-footer a:hover,
[data-theme="dark"] .tk-powered a:hover {
    color: #666 !important;
}
        
/* ============================================================
   ★★★ 响应式 ★★★
   ============================================================ */
@media (max-width: 1200px) { 
    .card { flex: 0 0 calc(100% / 6); } 
}
@media (max-width: 992px) { 
    .card { flex: 0 0 calc(100% / 5); } 
}
@media (max-width: 768px) {
    .card { flex: 0 0 calc(100% / 4); }
    .navbar { left: 52px; min-width: 160px; padding: 12px 14px; top: 10px; }
    .nav-toggle { font-size: 18px; padding: 5px 10px; top: 10px; left: 10px; }
    .arrow { font-size: 20px; padding: 12px 8px; }
    .arrow-left { left: 4px; }
    .arrow-right { right: 4px; }
    .toolbar { top: 10px; right: 10px; gap: 4px; }
    .toolbar .btn { font-size: 11px; padding: 4px 8px; }
    .info-panel .copyright { font-size: 13px; }
    .info-panel .desc { font-size: 12px; -webkit-line-clamp: 1; }
    .donate-qr-wrapper .qr-tooltip { min-width: 220px; padding: 8px 10px; }
    .donate-qr-wrapper .qr-tooltip .qr-item img { width: 90px; height: 90px; }
    .comment-modal { width: 95%; max-height: 90vh; border-radius: 12px; }
    .comment-header { padding: 14px 16px 10px; }
    .comment-header h2 { font-size: 16px; }
    .comment-body { padding: 14px 16px 12px; }
    .back-to-top { width: 38px; height: 38px; font-size: 16px; bottom: 70px; right: 14px; }
}
@media (max-width: 576px) {
    .card { flex: 0 0 calc(100% / 3); }
    .donate-qr-wrapper .qr-tooltip { min-width: 180px; padding: 6px 8px; }
    .donate-qr-wrapper .qr-tooltip .qr-item img { width: 75px; height: 75px; }
}
@media (max-width: 400px) {
    .card { flex: 0 0 calc(100% / 2); }
    .navbar { left: 48px; min-width: 140px; padding: 10px 12px; top: 8px; }
    .navbar .logo { font-size: 14px; }
    .navbar .search-box input { font-size: 12px; padding: 4px 8px; }
    .navbar .nav-actions a, .navbar .nav-actions button { font-size: 12px; padding: 4px 8px; }
    #themeToggle { width: 28px; height: 28px; font-size: 13px; }
    .nav-toggle { font-size: 16px; padding: 4px 8px; top: 8px; left: 8px; }
    .arrow { font-size: 16px; padding: 8px 6px; }
    .arrow-left { left: 2px; }
    .arrow-right { right: 2px; }
    .toolbar .btn span { display: none; }
    .toolbar .btn { padding: 4px 8px; }
    .dropdown-menu { min-width: 100px; right: -10px; }
    .dropdown-menu a { font-size: 11px; padding: 4px 12px; }
    .donate-qr-wrapper .qr-tooltip { min-width: 150px; padding: 4px 6px; right: -20px; }
    .donate-qr-wrapper .qr-tooltip .qr-item img { width: 60px; height: 60px; }
    .donate-qr-wrapper .qr-tooltip .qr-row { gap: 4px; }
    .donate-qr-wrapper .qr-tooltip .qr-item .qr-label { font-size: 8px; }
    .donate-qr-wrapper .qr-tooltip .qr-footer { font-size: 8px; margin-top: 4px; padding-top: 4px; }
    .comment-modal { width: 98%; max-height: 92vh; border-radius: 8px; }
    .comment-header h2 { font-size: 14px; }
    .comment-body { padding: 10px 12px 8px; }
    .back-to-top { width: 34px; height: 34px; font-size: 14px; bottom: 60px; right: 10px; }
}