:root {
    color-scheme: light dark;
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.03), 0 4px 6px -2px rgba(0, 0, 0, 0.01);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}
* {
    box-sizing: border-box;
}
/* 简化滚动条解决方案 */
html {
    /* 设置滚动条预留空间，现代浏览器的最佳解决方案 */
    scrollbar-gutter: stable;
    /* 防止水平滚动 */
    overflow-x: hidden;
}

/* 合并body样式，避免重复定义 */
body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--background-color);
    color: var(--text-primary);
    /* 防止页面宽度变化导致抖动 */
    width: 100%;
    box-sizing: border-box;
    /* 只防止水平滚动，不设置垂直滚动 */
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* hero 样式已移除 - 未使用 */

/* Navigation Bar */
.navbar {
    border-radius: 0;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

/* PC端一级分类不悬浮 */
@media (min-width: 769px) {
    .navbar {
        position: relative;
        z-index: 10;
    }
}

/* 移动端一级分类保持悬浮 */
@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 10px;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 100;
    }
}

.navbar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

.lang-switch {
    display: flex;
    align-items: center;
    margin-left: auto;
    font-size: 13px;
}

/* 桌面端语言切换 */
.lang-switch-desktop {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-switch-desktop a {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #64748b;
    text-decoration: none;
    line-height: 1.2;
    background: rgba(255, 255, 255, 0.8);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lang-switch-desktop a:hover {
    border-color: rgba(148, 163, 184, 0.9);
    color: #111827;
    background: #e5e7eb;
    transform: translateY(-1px);
}

.lang-switch-desktop a.active {
    background: linear-gradient(135deg, #22d3ee, #6366f1);
    border-color: transparent;
    color: #0f172a;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* 移动端语言切换 - 下拉菜单 */
.lang-switch-mobile {
    display: none;
    position: relative;
}

.lang-switch-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(255, 255, 255, 0.95);
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.lang-switch-toggle:hover,
.lang-switch-toggle:focus {
    border-color: rgba(148, 163, 184, 0.9);
    background: #ffffff;
    color: #111827;
    outline: none;
}

.lang-switch-toggle.active {
    border-color: #6366f1;
    background: linear-gradient(135deg, #22d3ee, #6366f1);
    color: #0f172a;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.lang-current {
    font-weight: 500;
}

.lang-arrow {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.lang-switch-toggle.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 120px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 12px 16px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: #f8fafc;
    color: #1e293b;
}

.lang-option.active {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(99, 102, 241, 0.1));
    color: #6366f1;
    font-weight: 600;
}

/* 移除一级分类的滚动悬浮样式 */

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Main Navigation */
.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 6px;
    justify-content: center;
    background: rgba(243, 244, 246, 0.7);
    border-radius: 16px;
}

.nav-menu li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #334155;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
    transition: left 0.6s ease;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: background 0.3s ease;
}

.nav-menu li a:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.15);
}

.nav-menu li a:hover::before {
    left: 100%;
}

.nav-menu li a.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.3);
}

.nav-menu li a.active::after {
    background: transparent;
}

.nav-menu li a .count {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.25);
    padding: 3px 10px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.nav-menu li a.active .count {
    background: rgba(255, 255, 255, 0.35);
    color: white;
    font-weight: 600;
}

/* Animations */
.navbar {
    animation: fadeInDown 0.6s ease-out;
}

/* Responsive Design for Navigation */
@media (max-width: 1024px) {
    .navbar-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .logo-section {
        justify-content: center;
        width: 100%;
    }
    
    .nav-menu {
        justify-content: center;
        gap: 10px;
    }
    
    .nav-menu li a {
        padding: 7px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 16px;
        border-radius: 12px;
        /* 移动端保持一级分类悬浮 */
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .navbar-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    /* 移动端：logo和语言切换在同一行 */
    .logo-section {
        align-self: flex-start;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    /* 移动端：将语言切换移到logo-section旁边 */
    .navbar-content {
        flex-wrap: nowrap;
    }
    
    .lang-switch {
        position: absolute;
        top: 0;
        right: 0;
        margin-left: 0;
    }
    
    .main-nav {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .main-nav::-webkit-scrollbar {
        display: none;
    }
    
    .nav-menu {
        display: inline-flex;
        gap: 8px;
        padding: 6px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .nav-menu li a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    /* 移动端二级分类悬浮样式调整 */
    .sub-nav.sticky {
        padding: 12px 16px;
        width: calc(100% - 32px);
        top: 8px;
    }
    
    /* 移动端语言切换：隐藏桌面版，显示移动版 */
    .lang-switch-desktop {
        display: none;
    }
    
    .lang-switch-mobile {
        display: block;
    }
    
    .lang-switch {
        margin-left: 0;
        width: auto;
        flex-shrink: 0;
    }
}

/* fadeInUp 动画已移除 - 未使用 */

/* slideDown 动画 - 用于二级分类悬浮效果 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 二级分类导航样式 */
.sub-nav {
    margin: 10px 0 12px 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 15px 15px;
    border: 1px solid rgba(226, 232, 240, 0.3);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* 二级分类悬浮样式 - 仅在非移动端生效 */
@media (min-width: 769px) {
    .sub-nav.sticky {
        position: fixed;
        top: 8px;
        max-width: 1160px;
        z-index: 99;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(226, 232, 240, 0.3);

        padding: 12px 18px;
        margin: 0;
        gap: 8px;
    }
    
    .sub-nav.sticky .sub-nav-item {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .sub-nav.sticky .sub-nav-count {
        min-width: 20px;
        height: 20px;
        font-size: 11px;
        padding: 0 6px;
    }
}

/* 移动端二级分类不悬浮，避免与一级分类冲突 */
@media (max-width: 768px) {
    .sub-nav.sticky {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: auto;
        max-width: none;
        background: rgba(26, 32, 44, 0.6);
        box-shadow: none;
        animation: none;
    }
}

/* sub-nav-container 样式已移除 - 未使用 */

.sub-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.sub-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.sub-nav-item:hover::before {
    left: 100%;
}

.sub-nav-item:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #334155;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.sub-nav-item.active {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: #ffffff;
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
    border-color: #f97316;
}

.sub-nav-item.active:hover {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
    transform: translateY(-3px);
}

/* sub-nav-label 样式已移除 - 未使用 */

.sub-nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.15);
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    transition: all 0.3s ease;
}

.sub-nav-item:hover .sub-nav-count {
    background: rgba(100, 116, 139, 0.2);
    color: #475569;
}

.sub-nav-item.active .sub-nav-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* 二级分类导航响应式调整 */
@media (max-width: 768px) {
    .sub-nav {
        margin: 20px 0 24px 0;
        padding: 16px 18px;
        border-radius: 14px;
        gap: 10px;
    }
    
    .sub-nav-item {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .sub-nav-count {
        min-width: 22px;
        height: 22px;
        font-size: 11px;
        padding: 0 7px;
    }

}

.resolution-filters {
    margin-bottom: 32px;
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.95));
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.resolution-filters .device-filter,
.resolution-filters .resolution-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #475569;
    font-size: 14px;
}

.resolution-filters .device-filter > span,
.resolution-filters .resolution-filter > span {
    font-weight: 600;
    color: #1f2937;
    margin-right: 8px;
}

.resolution-filters a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.resolution-filters a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.45s ease;
}

.resolution-filters a:hover::before {
    left: 100%;
}

.resolution-filters a:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #334155;
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.resolution-filters a.active {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: #fff;
    border-color: #f97316;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
    transform: translateY(-2px);
}

.resolution-filters a span {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.resolution-filters a.active span {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .resolution-filters {
        padding: 18px;
        border-radius: 16px;
        gap: 14px;
    }

    .resolution-filters .device-filter,
    .resolution-filters .resolution-filter {
        gap: 10px;
    }

    .resolution-filters a {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 10px;
    }
}

/* hero 动画已移除 - 未使用 */
main {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0px 20px 10px;
    /* 确保宽度固定，防止抖动 */
    box-sizing: border-box;
}
/* 鼠标悬停显示图片名称的动画 */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* category-nav 和 category-menu 样式已移除 - 未使用 */
/* 重复的 .sub-nav 定义已移除，保留使用 sub-nav-item 的版本（第317行） */

.content-area::before {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.content-area:hover {
    /* 移除悬浮阴影，与主体融为一体 */
    box-shadow: none;
    border-color: var(--border-color);
}

/* content-header 样式已移除 - 未使用 */
/* 重复的 .sub-nav 定义已移除 - 保留使用 sub-nav-item 的版本 */
.grid {
    position: relative;
    /* 瀑布流布局由 JavaScript 动态设置 */
    min-height: 200px;
    /* 在布局初始化前，限制最大高度防止闪烁 */
    max-height: 200px;
    overflow: hidden;
    /* 确保宽度固定，防止抖动 */
    width: 100%;
    box-sizing: border-box;
    /* 移除过渡效果，避免切换分类时抖动 */
    transition: none;
    /* 布局完成前完全隐藏，避免抖动 */
    opacity: 0;
    visibility: hidden;
}
.grid.masonry {
    /* 瀑布流模式：使用绝对定位 */
    max-height: none;
    overflow: visible;
    /* 布局完成后，移除过渡效果，避免影响后续布局更新 */
    transition: none;
    /* 布局完成后显示 */
    opacity: 1;
    visibility: visible;
}
.grid.masonry .card {
    position: absolute;
    /* 位置由 JavaScript 计算 */
}
/* 在瀑布流布局初始化前，设置初始状态防止闪烁 */
.grid:not(.masonry) .card {
    position: absolute;
    /* 先设置为绝对定位，避免堆叠导致容器高度过大 */
    left: -9999px;
    top: 0;
    width: 220px;
    max-width: 100%;
    margin: 0;
    /* 确保卡片在布局前有固定宽度，防止错乱 */
    flex-shrink: 0;
    /* 完全隐藏，避免看到堆叠效果 */
    opacity: 0;
    visibility: hidden;
    transition: none;
}
@media (max-width: 960px) {
    .grid:not(.masonry) .card {
        width: 150px;
    }
}
/* 布局初始化后，显示卡片 */
.grid.masonry .card {
    opacity: 1;
    margin: 0;
    transition: opacity 0.3s ease;
}
.card {
    background: var(--card-background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    display: flex;
    flex-direction: column;
    position: relative;
    /* 设置初始最大宽度，防止显示过大 */
    max-width: 100%;
    border: 1px solid var(--border-color);
    isolation: isolate;
}
.card:hover {
    /* 移除悬浮阴影，与主体融为一体 */
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--border-color);
}
.card-img-wrapper {
    width: 100%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* 横图：保持横向展示 */
.card-img-wrapper.landscape {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
}
.card-img-wrapper.landscape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: none;
}
/* 竖图：瀑布流模式，宽度固定，高度自适应 */
.card-img-wrapper.portrait {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
}
.card-img-wrapper.portrait img {
    width: 100%;
    height: auto;
    display: block;
    background: #f3f4f6;
    max-height: none;
    object-fit: contain;
}
/* 默认样式（加载中或未检测到方向时） */
.card-img-wrapper:not(.landscape):not(.portrait) {
    height: 180px;
    min-height: 180px;
}
.card-img-wrapper:not(.landscape):not(.portrait) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: 100%;
}
.card-img-wrapper img {
    transition: opacity 0.2s ease;
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    /* 防止图片在加载时显示过大 */
    object-fit: contain;
}
.card-img-wrapper img.loading {
    opacity: 0.8;
}
/* 防止图片在加载时闪烁 - 使用固定尺寸 */
.card-img-wrapper:not(.landscape):not(.portrait) img {
    max-height: 180px;
    object-fit: cover;
}
.card-img-wrapper.landscape img {
    max-height: none;
    object-fit: cover;
    opacity: 1;
}
.card-img-wrapper.portrait img {
    max-height: none;
    object-fit: contain;
    opacity: 1;
}
.card-body {
    display: none; /* 默认隐藏卡片信息 */
}

/* 鼠标悬停时显示图片名称 */
.card:hover::after {
    content: attr(data-title);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 10;
    opacity: 0;
    transform: translateY(100%);
    animation: fadeInSlideUp 0.2s ease forwards;
}
/* card-title 样式已移除 - card-body 是 display: none，未使用 */
.card-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card a {
    text-decoration: none;
    color: inherit;
}
.empty {
    text-align: center;
    padding: 60px 20px 80px;
    color: #6b7280;
}
.empty p {
    margin-top: 10px;
}
@media (max-width: 960px) {
    main {
        padding: 24px 16px 40px;
    }
    .card-img-wrapper.landscape {
        aspect-ratio: 4 / 3;
    }
    /* card-img-wrapper.portrait 在响应式下保持默认样式 */
    .card-img-wrapper img {
        height: auto;
    }
}

/* 分页样式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    background: var(--card-background);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.pagination-btn:hover {
    background: #374151 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #374151;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    text-decoration: none;
    background: var(--card-background);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.pagination-number:hover {
    background: #e5e7eb !important;
    color: #111827 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pagination-number.active {    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    border-color: rgba(99,102,241,0.6);
    box-shadow: 0 8px 18px rgba(99,102,241,0.25);
    transform: none;
}

.site-footer {
    margin-top: 60px;
    padding: 40px 16px 50px;
    background: var(--card-background);
    border-top: 1px solid var(--border-color);
}

.site-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.site-footer .footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.site-footer .footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer .footer-links a:hover {
    color: #60a5fa;
}

.site-footer .footer-links span {
    color: var(--border-color);
}

.site-footer .footer-copyright {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .site-footer {
        padding: 32px 16px 40px;
    }

    .site-footer .footer-content {
        gap: 12px;
    }

    .site-footer .footer-links {
        font-size: 13px;
        gap: 8px;
    }
}


