/* CSS 变量定义 - 暗黑主题 */
:root {
    --bg-color: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-header: #0d0d0d;
    --text-color: #fff;
    --text-secondary: #999;
    --text-muted: #666;
    --border-color: #1a1a1a;
    --card-bg: #1a1a1a;
    --hover-bg: #2a2a2a;
}

/* 白天模式 */
[data-theme="light"] {
    --bg-color: #f5f5f5;
    --bg-secondary: #fff;
    --bg-header: rgba(255,255,255,0.95);
    --text-color: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --border-color: #e0e0e0;
    --card-bg: #fff;
    --hover-bg: #f0f0f0;
}

/* 基础样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #0d0d0d; 
    color: #fff; 
    line-height: 1.6; 
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* 主题切换按钮 */
.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--hover-bg);
}

/* 头部 */
.header { 
    background: var(--bg-header); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: background 0.3s, border-color 0.3s;
}
.header-inner { 
    padding: 12px 24px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.logo { 
    font-size: 20px; 
    font-weight: bold; 
    color: #00c853;
    text-decoration: none;
}
.nav { display: flex; gap: 24px; }
.nav a { color: var(--text-secondary); padding: 5px 0; transition: color 0.3s; font-size: 18px; font-weight: 600; }
.nav a:hover,.nav a.active { color: #00c853; }

/* 导航滚动容器 - 固定定位 */
.nav-scroll-wrapper {
    position: sticky;
    top: 45px; /* header高度：padding 12+12 + border 1 + 内容约20 */
    background: #0d0d0d;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 100;
    margin-top: -1px; /* 消除可能的缝隙 */
}
.nav-scroll-btn {
    width: 28px;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    flex-shrink: 0;
    transition: all 0.3s;
    z-index: 10;
    padding: 0 4px;
}
.nav-scroll-btn:hover {
    color: #00c853;
}
.nav-scroll-btn svg {
    width: 18px;
    height: 18px;
}
.nav-scroll-prev {
    margin-left: 4px;
}
.nav-scroll-next {
    margin-right: 4px;
}

/* 第一层导航 - 模特名称 */
.nav-models-wrapper {
    background: #0d0d0d;
    border-bottom: 1px solid #1a1a1a;
}
.nav-models {
    flex: 1;
    display: flex;
    gap: 32px;
    padding: 14px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scroll-behavior: smooth;
}
.nav-models::-webkit-scrollbar { display: none; }
.model-name {
    flex-shrink: 0;
    display: inline-block;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s;
}
.model-name:hover, .model-name.active {
    color: #00c853;
}

/* 第二层导航 - 分类标签 - 固定在第一层下面 */
.nav-categories-wrapper {
    position: sticky;
    top: 88px; /* header(45px) + 第一层导航(43px) */
    background: #0d0d0d;
    border-bottom: 1px solid #1a1a1a;
    z-index: 99;
    margin-top: -1px; /* 消除可能的缝隙 */
}
.nav-categories {
    flex: 1;
    display: flex;
    gap: 28px;
    padding: 12px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scroll-behavior: smooth;
}
.nav-categories::-webkit-scrollbar { display: none; }
.cat-tag {
    flex-shrink: 0;
    display: inline-block;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}
.cat-tag:hover, .cat-tag.active {
    color: #00c853;
    border-bottom-color: #00c853;
}

/* 导航栏图标 */
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s;
    background: transparent;
    border: none;
    cursor: pointer;
}
.nav-icon svg {
    width: 16px;
    height: 16px;
}
.nav-icon:hover {
    background: var(--hover-bg);
    color: #ff6b6b;
}

/* 主题切换图标 */
.theme-toggle .theme-icon-light {
    display: none;
}
[data-theme="light"] .theme-toggle .theme-icon-dark {
    display: none;
}
[data-theme="light"] .theme-toggle .theme-icon-light {
    display: block;
}

/* 头部操作区 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.login-link, .register-link {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}
.login-link {
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.login-link:hover {
    background: var(--hover-bg);
    color: var(--text-color);
}
.register-link {
    background: linear-gradient(135deg,#ff6b6b,#feca57);
    color: #000;
    font-weight: 500;
}
.register-link:hover {
    opacity: 0.9;
}
.user-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: var(--card-bg);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}
.user-link:hover {
    background: var(--hover-bg);
    color: #ff6b6b;
}

/* 详情页信息行 - 紧凑布局 */
.detail-info-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 12px;
}
.detail-info-row .info-link,
.detail-info-row .info-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}
.detail-info-row .info-link {
    background: rgba(0, 200, 83, 0.15);
    color: #00c853;
}
.detail-info-row .info-link:hover {
    background: #00c853;
    color: #fff;
}
.detail-info-row .info-tag {
    background: #1a1a1a;
    color: #999;
    border: 1px solid #333;
}
.detail-info-row .info-tag:hover {
    border-color: #00c853;
    color: #fff;
}
.detail-info-row .fav-btn-inline {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    background: transparent;
    border: 1px solid #666;
    color: #999;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}
.detail-info-row .fav-btn-inline:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}
.detail-info-row .fav-btn-inline.favorited {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

/* 卡片遮罩层 - 左下角日期 */
.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 12px 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 2;
}
.item-date {
    font-size: 11px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* 主内容 - 通铺全屏 */
.main { padding: 24px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin: 30px 0 20px; }
.section-title { font-size: 20px; font-weight: bold; }
.section-more { color: var(--text-muted); }

/* 视图切换 */
.view-switch { display: flex; align-items: center; gap: 10px; }
.view-switch span { color: var(--text-muted); font-size: 14px; }
.view-btn { 
    padding: 8px 16px; 
    background: var(--card-bg); 
    border-radius: 6px; 
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}
.view-btn.active { 
    background: linear-gradient(135deg,#ff6b6b,#feca57); 
    color: #000; 
    font-weight: bold;
    border-color: transparent;
}

/* 悬浮浏览模式切换 */
.view-mode-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.view-mode-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}
.view-mode-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.view-mode-float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.view-mode-float-btn:hover,
.view-mode-float-btn.active {
    background: linear-gradient(135deg,#ff6b6b,#feca57);
    color: #000;
    border-color: transparent;
    transform: scale(1.1);
}
.view-mode-trigger {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg,#ff6b6b,#feca57);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
    transition: all 0.3s;
}
.view-mode-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255,107,107,0.5);
}

@media (max-width: 768px) {
    .view-mode-float {
        bottom: 20px;
        right: 15px;
    }
    .view-mode-float-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    .view-mode-trigger {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* 网格布局 - 通铺全屏 */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); 
    gap: 16px; 
    margin-bottom: 40px; 
}
@media (min-width: 1400px) { .grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 1200px) { .grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 992px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 480px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.item { 
    background: #1a1a1a; 
    border-radius: 8px; 
    overflow: hidden; 
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 3/4;
    position: relative;
}
.item:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 12px 30px rgba(0, 200, 83, 0.2); 
}
.item-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}
.item-img { 
    width: 100%; 
    height: 100%; 
    position: relative; 
    overflow: hidden; 
}
.item-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.3s; 
}
.item:hover .item-img img { transform: scale(1.05); }

/* 底部渐变遮罩和信息 */
.item-info { 
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 12px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
}
.item-title { 
    font-size: 13px; 
    color: #fff;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}
.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #999;
}
.item-stats {
    display: flex;
    gap: 12px;
}
.item-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 收藏按钮 */
.item-fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s;
    z-index: 10;
}
.item-fav-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}
.item-fav-btn.favorited {
    background: rgba(255,107,107,0.8);
}

/* 置顶徽章 - 可选 */
.item-badge { 
    position: absolute; 
    top: 10px; 
    left: 10px; 
    background: linear-gradient(135deg,#ff6b6b,#feca57); 
    padding: 4px 12px; 
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: bold; 
    color: #000; 
    z-index: 2;
}

/* 瀑布流布局 */
.waterfall { column-count: 4; column-gap: 20px; }
.waterfall-item { 
    break-inside: avoid; 
    margin-bottom: 20px; 
    background: var(--card-bg); 
    border-radius: 12px; 
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: background 0.3s;
}
.waterfall-img { position: relative; }
.waterfall-img img { width: 100%; height: auto; display: block; }
.waterfall-info { padding: 12px; }
.waterfall-title { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 40px 0; flex-wrap: wrap; }
.pagination a,.pagination span { 
    padding: 8px 14px; 
    background: var(--card-bg); 
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    min-width: 40px;
    text-align: center;
}
.pagination a:hover {
    background: var(--hover-bg);
    border-color: #ff6b6b;
}
.pagination .current { 
    background: linear-gradient(135deg,#ff6b6b,#feca57); 
    color: #000; 
    font-weight: bold;
    border-color: transparent;
}
.pagination .page-ellipsis {
    background: transparent;
    border-color: transparent;
    color: var(--text-muted);
    cursor: default;
}
.pagination .page-prev,
.pagination .page-next {
    padding: 8px 16px;
}

/* 详情页 */
.detail-header { max-width: 1000px; margin: 0 auto; padding: 15px 20px; }
.detail-title { font-size: 24px; margin-bottom: 8px; }
.detail-meta { color: var(--text-muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 15px; }
.detail-meta .meta-item { display: flex; align-items: center; }
.detail-meta .meta-link { 
    color: #ff6b6b; 
    font-weight: 500; 
    padding: 2px 10px; 
    background: rgba(255,107,107,0.1); 
    border-radius: 20px; 
    margin-left: 5px;
    transition: all 0.3s;
}
.detail-meta .meta-link:hover { 
    background: linear-gradient(135deg,#ff6b6b,#feca57); 
    color: #000; 
}

/* TAGS */
.detail-tags { 
    margin-top: 15px; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
}
.detail-tags .tag-link { 
    padding: 5px 12px; 
    background: var(--card-bg); 
    border: 1px solid var(--border-color); 
    border-radius: 20px; 
    font-size: 13px; 
    color: var(--text-secondary);
    transition: all 0.3s;
}
.detail-tags .tag-link:hover { 
    background: linear-gradient(135deg,#ff6b6b,#feca57); 
    color: #000; 
    border-color: transparent;
}
.gallery { max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; }
.gallery .img-wrapper { margin-bottom: 15px; cursor: pointer; }
.gallery img { width: 100%; border-radius: 8px; }

/* Lightbox 灯箱 */
.lightbox { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.95); 
    z-index: 9999; 
    justify-content: center; 
    align-items: center; 
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 40px; color: #fff; font-size: 40px; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 30px; cursor: pointer; padding: 15px; background: rgba(255,255,255,0.1); border-radius: 8px; }
.lightbox-nav:hover { background: rgba(255,107,107,0.5); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 16px; background: rgba(0,0,0,0.5); padding: 8px 20px; border-radius: 20px; }

/* 详情页浏览模式切换 */
.view-mode-switch { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 8px; 
    margin: 15px 0 25px;
    padding: 10px 12px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.view-mode-switch span { 
    color: var(--text-muted); 
    font-size: 13px;
    margin-right: 5px;
}
.view-mode-btn { 
    padding: 6px 12px; 
    background: var(--bg-color); 
    border-radius: 6px; 
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-size: 13px;
    transition: all 0.3s;
}
.view-mode-btn:hover { 
    background: var(--hover-bg); 
}
.view-mode-btn.active { 
    background: linear-gradient(135deg,#ff6b6b,#feca57); 
    color: #000; 
    font-weight: 500;
    border-color: transparent;
}

/* 图片网格模式 */
.photo-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
    gap: 15px; 
    max-width: 1200px; 
    margin: 0 auto 40px; 
}
.photo-grid-item { 
    position: relative; 
    aspect-ratio: 1; 
    background: var(--card-bg); 
    border-radius: 8px; 
    overflow: hidden; 
    cursor: pointer;
    border: 1px solid var(--border-color);
}
.photo-grid-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.3s; 
}
.photo-grid-item:hover img { 
    transform: scale(1.05); 
}
.photo-number { 
    position: absolute; 
    bottom: 8px; 
    right: 8px; 
    background: rgba(0,0,0,0.7); 
    color: #fff; 
    padding: 4px 10px; 
    border-radius: 20px; 
    font-size: 12px; 
}

/* 幻灯片模式 */
.slide-show { 
    max-width: 1000px; 
    margin: 0 auto 40px; 
    background: var(--card-bg); 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid var(--border-color);
}
.slide-container { 
    position: relative; 
    height: 70vh; 
    background: #000;
}
.slide-item { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    display: none; 
    justify-content: center; 
    align-items: center; 
}
.slide-item.active { 
    display: flex; 
}
.slide-item img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
}
.slide-caption { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    padding: 20px; 
    background: linear-gradient(transparent, rgba(0,0,0,0.8)); 
    color: #fff; 
    text-align: center;
}
.slide-controls { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 20px; 
    padding: 15px;
    background: var(--bg-secondary);
}
.slide-btn { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    border: none; 
    background: var(--card-bg); 
    color: var(--text-color); 
    font-size: 20px; 
    cursor: pointer; 
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}
.slide-btn:hover { 
    background: linear-gradient(135deg,#ff6b6b,#feca57); 
    color: #000;
    transform: scale(1.1);
}
.play-btn { 
    width: 60px; 
    height: 60px; 
    font-size: 24px; 
    background: linear-gradient(135deg,#ff6b6b,#feca57);
    color: #000;
}

/* 页脚 */
.footer { 
    text-align: center; 
    padding: 30px; 
    color: var(--text-muted); 
    font-size: 13px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    transition: all 0.3s;
}

/* 响应式 - 平板 */
@media (max-width: 1200px) { 
    .waterfall { column-count: 3; } 
}

/* 响应式 - 手机端优化 */
@media (max-width: 768px) {
    /* 移动端隐藏元素 */
    .hide-mobile {
        display: none !important;
    }
    
    /* 头部优化 */
    .header-inner { 
        padding: 8px 6px; 
        gap: 4px;
        flex-wrap: nowrap;
    }
    .logo {
        font-size: 18px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .nav {
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex: 1;
        justify-content: flex-start;
        padding: 0 2px;
    }
    .nav::-webkit-scrollbar {
        display: none;
    }
    .nav a {
        font-size: 18px;
        white-space: nowrap;
        padding: 5px 2px;
        flex-shrink: 0;
    }
    .header-actions {
        gap: 2px;
    }
    .header-actions {
        gap: 4px;
    }
    .nav-icon {
        width: 32px;
        height: 32px;
    }
    .nav-icon svg {
        width: 16px;
        height: 16px;
    }
    .logo { 
        font-size: 15px; 
        white-space: nowrap;
        flex-shrink: 0;
    }
    .nav { 
        gap: 10px; 
        font-size: 12px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex: 1;
        margin: 0 5px;
    }
    .nav::-webkit-scrollbar { 
        display: none; 
    }
    .nav a { 
        padding: 4px 0;
        white-space: nowrap;
    }
    .theme-toggle { 
        width: 36px; 
        height: 36px; 
        font-size: 18px;
        flex-shrink: 0;
    }
    .header-actions {
        gap: 6px;
        flex-shrink: 0;
    }
    .login-link, .register-link {
        padding: 5px 10px;
        font-size: 13px;
        white-space: nowrap;
    }
    .user-link {
        padding: 5px 10px;
        font-size: 12px;
        white-space: nowrap;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 内容区优化 */
    .main { padding: 15px 12px; }
    .section-header { 
        margin: 20px 0 15px; 
    }
    .section-title { 
        font-size: 16px; 
    }
    
    /* 网格优化 */
    .grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; 
    }
    .waterfall { 
        column-count: 2; 
        column-gap: 10px; 
    }
    .waterfall-item { 
        margin-bottom: 10px; 
    }
    
    /* 详情页浏览模式切换优化 */
    .view-mode-switch {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }
    .view-mode-switch span {
        font-size: 13px;
        width: 100%;
        margin-bottom: 5px;
    }
    .view-mode-btn {
        padding: 6px 12px;
        font-size: 13px;
        flex: 1;
        text-align: center;
    }
    
    /* 幻灯片模式优化 */
    .slide-container {
        height: 50vh;
    }
    .slide-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .play-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    /* 页脚优化 */
    .footer {
        padding: 20px 15px;
        font-size: 12px;
    }
}


/* ==================== 统一列表项样式 ==================== */
/* 列表项链接 */
.item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 右上角图片数量 */
.item-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 5;
}

/* 左下角收藏按钮 - 位于缩略图内 */
.item-fav-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
    z-index: 10;
}
.item-fav-btn:hover {
    background: rgba(255,107,107,0.8);
    transform: scale(1.1);
}
.item-fav-btn.favorited {
    background: rgba(255,107,107,0.9);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .item-count {
        font-size: 11px;
        padding: 3px 8px;
    }
    .item-fav-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
        bottom: 8px;
        left: 8px;
    }
}

