/* 全局样式 */
:root {
    --primary-color: #007AFF;
    --secondary-color: #8E8E93;
    --success-color: #34C759;
    --danger-color: #FF3B30;
    --warning-color: #FF9500;
    --info-color: #5AC8FA;
    --light-color: #FFFFFF;
    --dark-color: #1C1C1E;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* 全新现代导航栏样式 */
.modern-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    margin: 12px 0 0 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    /* 由外层 .container 控制左右边距与最大宽度 */
}

.nav-container {
    height: 100%;
    padding: 0; /* 使用外层 .container 的左右内边距，避免双重边距 */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 移动端导航边距与相册盒子对齐 */
@media (max-width: 575.98px) {
  /* 去掉容器左右内边距，避免与自定义边距叠加 */
  .nav-wrapper { padding-left: 0; padding-right: 0; }
  /* 导航栏不需要额外边距，依赖Bootstrap容器系统 */
}

/* 品牌标志区域 */
.nav-brand {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.brand-link:hover {
    color: #333;
    text-decoration: none;
}

.brand-icon {
    font-size: 1.4rem;
    margin-right: 10px;
    color: #555;
}

.brand-text {
    color: inherit;
    white-space: nowrap;
}

/* 导航菜单区域 */
.nav-menu {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* 通用图标按钮 */
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #333;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}
.icon-button:hover { background: rgba(0,0,0,0.06); }
.icon-button:active { transform: scale(0.98); }

.nav-search-toggle { margin-right: 8px; }

/* 保证导航容器计算宽度包含边框，避免移动端1px溢出导致对齐偏差 */
.modern-navbar { box-sizing: border-box; }

/* 用户区域样式 */
.nav-user {
    position: relative;
    margin-left: 15px;
}

.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
}

/* 登录按钮样式 */
.nav-auth {
    position: relative;
    margin-left: 15px;
}

.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #333;
    transition: width 0.3s ease;
    z-index: 0;
}

.login-button:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    border-color: transparent;
}

.login-button:hover::before {
    width: 100%;
}

.login-button:active {
    transform: translateY(-1px);
}

/* 修复点击加载时的状态 - 防止伪元素动画卡住 */
.login-button:focus,
.login-button:active:focus {
    outline: none;
}

.login-button:active::before {
    width: 100%;
    transition: width 0.1s ease;
}

/* 点击状态立即完成动画，避免加载时卡在中间 */
.login-button.loading::before {
    width: 100%;
    transition: none;
}

.login-button.loading {
    color: white;
    pointer-events: none;
}

.login-button span {
    position: relative;
    z-index: 1;
}

/* 主体内容区域 */
main {
    min-height: calc(100vh - 200px);
}

/* 英雄区域样式 */
.hero-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 20px;
    padding: 4rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-section h1 {
    color: var(--text-primary) !important;
    font-weight: 700;
}

/* 搜索栏样式 */
.search-section {
    margin-bottom: 2rem;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

/* 覆盖式全局搜索 */
.search-overlay[hidden] { display: none !important; }
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
}
.search-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
}
.search-overlay__panel {
    position: relative;
    max-width: 720px;
    margin: 8vh auto 0 auto;
    background: transparent; /* 仅保留搜索框，不显示面板背景 */
    border-radius: 16px;
    box-shadow: none;
    border: none;
    overflow: visible; /* 允许内部绝对定位的建议浮层溢出显示 */
}
.search-overlay__header { display: none; }
.search-overlay__title { display: none; }

.overlay-form { padding: 0; }
.overlay-form .search-input-group { margin: 0 14px; }

/* 输入组（与首页样式一致，略有微调） */
.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: visible;
    transition: box-shadow 0.3s ease;
    border: 1px solid #e7ebf3;
}
.search-input-group:focus-within { box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.search-input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-size: 16px;
    outline: none;
    background: transparent;
}
.search-input::placeholder { color: #9aa4b2; }
.search-btn {
    background: transparent;
    border: none;
    padding: 0 12px;
    height: 44px;
    cursor: pointer;
    color: #666;
}
.search-btn i { font-size: 18px; }

/* 建议浮层（全局复用） */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    border: 1px solid #e7ebf3;
    overflow: hidden;
    z-index: 3000; /* 确保位于弹层内容之上 */
    max-height: 320px;
    overflow-y: auto;
}
.search-suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}
.search-suggestion-item:hover { background: #f7f9fb; }
.search-suggestion-item.is-active { background: #eef4ff; }
.search-suggestion-thumb { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: #f2f4f7; }
.search-suggestion-title { flex: 1; font-size: 14px; line-height: 1.2; }
.search-suggestions .muted { color: #94a3b8; }

/* skeleton */
.skeleton-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.skeleton-thumb, .skeleton-line {
    background: linear-gradient(90deg, #f2f4f7 25%, #e9edf5 37%, #f2f4f7 63%);
    animation: shimmer 1.4s infinite;
    background-size: 400% 100%;
    border-radius: 8px;
}
.skeleton-thumb { width: 36px; height: 36px; }
.skeleton-line { height: 10px; width: 60%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.search-form .input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-form .form-control {
    border: 1px solid #dee2e6;
    background: white;
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
    border-radius: 12px 0 0 12px;
    border-right: none;
}

.search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    background: white;
}

.search-form .btn {
    border-radius: 0;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border: 1px solid #007bff;
}

.search-form .btn-primary {
    border-radius: 0 12px 12px 0;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.search-form .btn-outline-secondary {
    border-radius: 0 12px 12px 0;
    margin-left: -1px;
    border-left: 1px solid #6c757d;
}

.search-info {
    animation: fadeIn 0.3s ease-in;
}

/* 响应式搜索栏 */
@media (max-width: 768px) {
    .search-section {
        padding: 0;
        margin-bottom: 1.5rem;
    }
    
    .search-form .input-group {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        display: flex;
    }
    
    .search-form .form-control {
        border-radius: 0;
        border: 1px solid #dee2e6;
        border-right: none;
        margin-bottom: 0;
        flex: 1;
    }
    
    .search-form .btn {
        border-radius: 0;
        margin: 0;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .search-form .btn-primary {
        border-color: var(--primary-color);
    }
    
    .search-form .btn-outline-secondary {
        margin-left: -1px;
        border-left: 1px solid #6c757d;
    }
}

/* 图片卡片样式 - 文字覆盖在背景图片上 */
.photo-card {
    position: relative;
    transition: all 0.3s ease;
    border: none;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1; /* 正方形卡片 */
}

.photo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 兼容旧浏览器的正方形方案 */
@supports not (aspect-ratio: 1 / 1) {
    .photo-card {
        height: 0;
        padding-bottom: 100%;
    }
    
    .photo-card .card-body {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(transparent, rgba(0,0,0,0.8));
        color: white;
        padding: 1.5rem 1rem 1rem;
        z-index: 2;
    }
}

/* 图片容器占满整个卡片 */
.card-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f8f9fa;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.photo-card:hover .card-img-container img {
    transform: scale(1.1);
}

/* 文字内容覆盖在图片上 */
.photo-card .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1.5rem 1rem 1rem;
    z-index: 2;
}

.photo-card .card-title {
    color: white !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.photo-card .card-text {
    color: rgba(255,255,255,0.9) !important;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

/* 作者和统计信息样式 */
.photo-card .d-flex {
    align-items: flex-end;
}

.photo-card .text-muted {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.75rem;
}

.photo-card .fas {
    color: rgba(255,255,255,0.8);
    margin-right: 0.25rem;
}

/* 查看按钮样式调整 */
.card-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.photo-card:hover .card-img-overlay {
    opacity: 1;
}

.photo-overlay {
    text-align: center;
}

.photo-overlay .btn {
    background-color: rgba(255,255,255,0.95);
    color: var(--primary-color);
    border: none;
    font-weight: 600;
}

.photo-overlay .btn:hover {
    background-color: white;
    transform: scale(1.05);
}

/* 修复photo overlay按钮的加载状态 */
.photo-overlay .btn:active {
    transform: scale(1.02);
    transition: transform 0.1s ease;
}

.photo-overlay .btn.loading {
    transform: none !important;
    pointer-events: none;
    opacity: 0.7;
}

/* VIP徽章样式 */
.photo-card .badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 4;
}

/* 统计信息布局 */
.photo-stats {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .photo-card .card-body {
        padding: 1rem 0.75rem 0.75rem;
    }
    
    .photo-card .card-title {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .photo-card .card-text {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .photo-card .text-muted {
        font-size: 0.7rem;
    }
    
    .photo-stats {
        gap: 0.5rem;
    }
    
    .photo-card .badge {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .photo-card .card-body {
        padding: 0.75rem 0.6rem 0.6rem;
    }
    
    .photo-card .card-title {
        font-size: 0.85rem;
    }
    
    .photo-card .card-text {
        display: none; /* 在小屏幕上隐藏描述文字 */
    }
    
    .photo-stats {
        gap: 0.4rem;
    }
    
    .photo-stats small {
        font-size: 0.65rem;
    }
}

/* 表单样式 */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 修复所有按钮在加载时的状态 */
.btn:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.btn.loading {
    transform: none !important;
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading:hover {
    transform: none !important;
    box-shadow: none;
}

/* 卡片样式 */
.card {
    border: none;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    border-radius: 16px 16px 0 0 !important;
    border: none;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 分页样式 */
.pagination .page-link {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    border: none;
    background-color: #f8f9fa;
    color: #495057;
    transition: all 0.2s ease;
    font-weight: 500;
    margin: 0 3px;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.pagination .page-item.active .page-link {
    background-color: #6c757d;
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* 移动端分页响应式样式 */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
    }
    
    .pagination .page-item {
        margin: 1px;
    }
    
    .pagination .page-link {
        padding: 0.4rem 0.55rem;
        font-size: 0.85rem;
        min-width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f8f9fa;
        color: #495057;
        border: none;
        border-radius: 8px;
    }
    
    .pagination .page-link:hover {
        background-color: #e9ecef;
        color: #495057;
    }
    
    .pagination .page-item.active .page-link {
        background-color: #6c757d;
        color: white;
    }
    
    /* 在中等屏幕上显示适量页码，保持美观 */
    .pagination .page-item:not(.page-prev):not(.page-next):not(.page-current):not(.page-dots):not(.page-adjacent) {
        display: none;
    }
    
    /* 显示当前页、相邻页码、前后翻页和省略号 */
    .pagination .page-item.page-current,
    .pagination .page-item.page-adjacent,
    .pagination .page-item.page-dots,
    .pagination .page-item.page-prev,
    .pagination .page-item.page-next {
        display: flex !important;
    }
}

@media (max-width: 576px) {
    .pagination .page-link {
        min-width: 30px;
        height: 30px;
        padding: 0.3rem 0.4rem;
        font-size: 0.8rem;
        margin: 0 1px;
        background-color: #f8f9fa;
        color: #495057;
        border: none;
        border-radius: 8px;
    }
    
    .pagination .page-link:hover {
        background-color: #e9ecef;
        color: #495057;
    }
    
    .pagination .page-item.active .page-link {
        background-color: #6c757d;
        color: white;
    }
    
    /* 在小屏幕上显示更多页码，保持美观 */
    .pagination .page-item:not(.page-prev):not(.page-next):not(.page-current):not(.page-dots):not(.page-adjacent) {
        display: none;
    }
    
    /* 显示当前页、相邻页码、前后翻页和省略号 */
    .pagination .page-item.page-current,
    .pagination .page-item.page-adjacent,
    .pagination .page-item.page-dots,
    .pagination .page-item.page-prev,
    .pagination .page-item.page-next {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .pagination .page-link {
        min-width: 26px;
        height: 26px;
        padding: 0.25rem 0.35rem;
        font-size: 0.75rem;
        background-color: #f8f9fa;
        color: #495057;
        border: none;
        border-radius: 6px;
    }
    
    .pagination .page-link:hover {
        background-color: #e9ecef;
        color: #495057;
    }
    
    .pagination .page-item.active .page-link {
        background-color: #6c757d;
        color: white;
    }
    
    .pagination .page-link i {
        font-size: 11px;
    }
    
    /* 在极小屏幕上也显示相邻页码，保持美观的4个按钮布局 */
    .pagination .page-item:not(.page-prev):not(.page-next):not(.page-current):not(.page-dots):not(.page-adjacent) {
        display: none;
    }
    
    /* 显示当前页、相邻页码、前后翻页和省略号 */
    .pagination .page-item.page-current,
    .pagination .page-item.page-adjacent,
    .pagination .page-item.page-dots,
    .pagination .page-item.page-prev,
    .pagination .page-item.page-next {
        display: flex !important;
    }
}

/* 徽章样式 */
.badge {
    border-radius: 6px;
    font-weight: 500;
}

/* 提醒框样式 */
.alert {
    border: none;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-primary {
    border-left-color: var(--primary-color);
}

.alert-success {
    border-left-color: var(--success-color);
}

.alert-danger {
    border-left-color: var(--danger-color);
}

.alert-warning {
    border-left-color: var(--warning-color);
}

.alert-info {
    border-left-color: var(--info-color);
}

/* 侧边栏样式 */
.list-group-item {
    border: none;
    border-radius: 8px !important;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 页脚样式 */
.simple-footer {
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

.simple-footer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 表格样式 */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.table th {
    background-color: #f8f9fa;
    border: none;
    font-weight: 600;
}

.table td {
    border: none;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
}

/* 图片详情页样式 */
.photo-detail-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* 响应式导航栏设计 - 与Bootstrap容器边距一致 */
@media (max-width: 1200px) {
    .nav-container {
        max-width: 960px; /* Bootstrap container-lg max-width */
    }
}

@media (max-width: 992px) {
    .nav-container {
        max-width: 720px; /* Bootstrap container-md max-width */
    }
}

@media (max-width: 768px) {
    .modern-navbar {
        height: 65px;
        margin: 10px 0 0 0;
        border-radius: 14px;
    }
    
    .nav-container {
        max-width: 540px; /* Bootstrap container-sm max-width */
        padding: 0 15px; /* Bootstrap container padding */
    }
    
    .nav-user,
    .nav-auth {
        margin-left: 12px;
    }
    
    .brand-link {
        font-size: 1.3rem;
    }
    
    .brand-icon {
        font-size: 1.2rem;
        margin-right: 8px;
    }
    
    .user-link {
        padding: 8px 16px;
        font-size: 0.9rem;
        border-radius: 20px;
    }
    
    .user-name {
        max-width: 100px;
    }
    
    .login-button {
        padding: 10px 24px;
        font-size: 0.9rem;
        border-radius: 20px;
    }
    
    .vip-crown,
    .admin-shield {
        font-size: 0.75rem;
        margin-left: 4px;
    }
}

@media (max-width: 576px) {
    .modern-navbar {
        height: 60px;
        margin: 8px 0 0 0;
        border-radius: 12px;
    }
    
    .nav-container {
        max-width: 100%; /* Full width on extra small screens */
        padding: 0 15px; /* Bootstrap container padding */
    }
    
    .nav-user,
    .nav-auth {
        margin-left: 10px;
    }
    
    .brand-link {
        font-size: 1.2rem;
    }
    
    .brand-icon {
        font-size: 1.1rem;
        margin-right: 6px;
    }
    
    .user-link {
        padding: 6px 14px;
        font-size: 0.85rem;
        border-radius: 18px;
    }
    
    .user-name {
        max-width: 80px;
    }
    
    .login-button {
        padding: 8px 20px;
        font-size: 0.85rem;
        border-radius: 18px;
    }
    
    .user-icon {
        font-size: 0.85rem;
        margin-right: 6px;
    }
    
    .vip-crown,
    .admin-shield {
        display: none;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .btn-group .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 工具提示样式 */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    background-color: var(--dark-color);
    border-radius: 6px;
}

/* VIP专属样式 */
.vip-only {
    border: 2px solid var(--warning-color);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.vip-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #333;
    font-weight: bold;
}

/* 管理员专属样式 */
.admin-only {
    border: 2px solid var(--danger-color);
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

/* Bootstrap网格布局已处理响应式，无需额外样式 */

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 点赞按钮特效 */
.like-btn {
    transition: all 0.3s ease;
}

.like-btn.liked {
    color: var(--danger-color);
    transform: scale(1.1);
}

.like-btn:hover {
    transform: scale(1.2);
}

/* 上传区域样式 */
.upload-area {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.05);
}

.upload-area.dragover {
    border-color: var(--success-color);
    background-color: rgba(40, 167, 69, 0.1);
}

/* 面包屑导航样式 */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.5;
}

.breadcrumb-item a:hover {
    color: #555;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #666;
    line-height: 1.5;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #ccc;
    margin: 0 8px;
    line-height: 1.5;
}

/* 移动端面包屑优化 */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 14px;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 6px;
    }
    
    .breadcrumb-item a,
    .breadcrumb-item.active {
        line-height: 1.4;
        vertical-align: baseline;
    }
}
