/* 全局变量 */
:root {
    --primary-color: #1e40af;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --gradient-primary: linear-gradient(135deg, #1e40af, #3b82f6);
    --gradient-secondary: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--dark-bg);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    padding-top: 0; /* 移除顶部空隙，专题信息贴顶显示 */
    padding-bottom: 20px; /* 精简底部留白 */
}

/* 导航栏 */
.navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: 60px;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    color: var(--text-primary) !important;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 英雄区域 */
.hero-section {
    position: relative;
    background: var(--gradient-primary);
    padding: 2rem 0;
    margin-bottom: 1rem;
    overflow: hidden;
}

/* Project ID=1 特殊背景图片 */
.hero-section.project-1-photo {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                url('../images/project_1_banner_1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section.project-1-agenda {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), 
                url('../images/project_1_banner_2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .hero-section.project-1-photo {
        min-height: 200px;
        background-position: center top;
    }
    
    .hero-section.project-1-agenda {
        min-height: 180px;
        background-position: center top;
    }
    
    .hero-section.project-1-photo .event-title,
    .hero-section.project-1-agenda .event-title {
        font-size: 1.3rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }
    
    .hero-section.project-1-photo .event-subtitle,
    .hero-section.project-1-agenda .event-subtitle {
        font-size: 1rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    }
}

.event-info {
    text-align: center;
    position: relative;
    z-index: 2;
}

.event-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.event-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.event-dates {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.date-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.live-indicator {
    background: var(--success-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 浮动背景元素 */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.element-3 {
    width: 40px;
    height: 40px;
    top: 30%;
    right: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* 日程标签 */
.schedule-tabs {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.tab-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0 1rem;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 80px;
}

.tab-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-glow);
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.day-number {
    font-size: 0.8rem;
    font-weight: 700;
}

.day-date {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* 统计信息 */
.stats-section {
    margin-bottom: 1rem;
}

.stat-item {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

/* 人脸搜索面板 */
.face-search-panel {
    background: var(--card-bg);
    border-radius: 20px;
    margin: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.search-header h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.upload-section {
    margin-bottom: 2rem;
}

.upload-area {
    border: 2px dashed var(--primary-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    background: rgba(59, 130, 246, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--secondary-color);
}

.upload-area i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.upload-area p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.upload-area input[type="file"] {
    display: none;
}

.preview-section {
    text-align: center;
    padding: 1rem;
}

#facePreview {
    max-width: 200px;
    max-height: 200px;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-card);
}

.preview-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.search-results h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.face-result-item {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.face-result-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    border-color: var(--primary-color);
}

.face-result-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.face-result-info {
    padding: 0.75rem;
}

.face-result-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.face-result-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

.face-similarity {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}



.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* 照片网格 */
.photos-section {
    margin-bottom: 2rem;
}

/* 覆盖container-fluid的padding，让照片网格贴近屏幕边缘 */
.photos-section .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.photos-grid {
    /* 使用flex布局，手动控制两列排列 */
    display: flex;
    gap: 0.5rem;
    padding: 0 0.5rem;
}

.photos-grid .photo-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.photo-card {
    background: var(--card-bg);
    border-radius: 8px; /* 减小圆角 */
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    /* grid布局：卡片自动排列 */
    display: flex;
    flex-direction: column;
    /* 让卡片高度由图片内容决定 */
    height: fit-content;
    width: 100%;
    /* 确保卡片在grid中按顺序排列 */
    grid-row: auto;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--primary-color);
}

.photo-image {
    width: 100%;
    height: auto;
    object-fit: contain; /* 改为contain，保持原比例 */
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
    /* 让图片按原始比例显示 */
    flex: none; /* 不占据剩余空间 */
    opacity: 1; /* 默认显示 */
}

.photo-image.loading {
    opacity: 0.3;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.photo-image.loaded {
    opacity: 1;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.photo-card:hover .photo-image {
    transform: scale(1.05);
}

/* 移除不再使用的照片覆盖层样式 */

/* 照片卡片点赞按钮样式 */
.photo-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
}

.card-like-btn {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
}

.card-like-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.card-like-btn.liked {
    background: rgba(0, 0, 0, 0.6);
    color: var(--danger-color);
}

.card-like-btn.liked:hover {
    background: rgba(0, 0, 0, 0.8);
}

.card-like-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.card-like-count {
    font-weight: 600;
    font-size: 0.75rem;
}



/* 照片卡片点赞按钮样式 */
.photo-likes {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 10;
}

.card-like-btn {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.card-like-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.card-like-btn.liked {
    background: rgba(0, 0, 0, 0.7);
    color: var(--danger-color);
    animation: likePulse 0.3s ease;
}

.card-like-btn.liked:hover {
    background: rgba(0, 0, 0, 0.8);
}

.card-like-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 点赞动画效果 */
@keyframes likePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 触摸设备适配 */
@media (hover: none) and (pointer: coarse) {
    .card-like-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

/* 照片模态框样式 */
.photo-modal-content {
    background: #000 !important;
    border: none;
    border-radius: 0;
    height: 100vh;
    position: relative;
}

/* 关闭按钮 */
.btn-close-modal {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1004;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    user-select: none;
}

.btn-close-modal:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.btn-close-modal:active {
    transform: scale(0.95);
    background: rgba(0, 0, 0, 1);
}

/* 确保关闭按钮在任何情况下都能被点击 */
.btn-close-modal {
    position: fixed !important;
    z-index: 1004 !important;
    pointer-events: auto !important;
}

/* 照片容器 */
.photo-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 10;
}

.photo-preview {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}




/* 人脸检测区域 - 叠加在大图上方 */
.face-detection-section {
    position: fixed; /* 改为固定定位，确保相对于视窗定位 */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1003; /* 提高z-index，确保在图片上方 */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    pointer-events: none; /* 允许点击穿透到下方元素 */
}

.detected-faces {
    pointer-events: auto; /* 恢复头像的点击功能 */
}

.detected-faces {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    height: 100%;
    overflow-x: auto;
}

.face-thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.face-thumbnail:hover {
    transform: scale(1.1);
    border-color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.face-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 社交按钮区域 */
.social-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 0.6rem;
    z-index: 1003;
    pointer-events: auto; /* 确保按钮可以点击 */
}

.social-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
    position: relative;
}

.social-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.9);
}

.social-btn.like-btn.liked {
    background: rgba(239, 68, 68, 0.9);
}

.social-btn.like-btn:hover {
    background: rgba(239, 68, 68, 0.8);
}

.social-btn.share-btn:hover {
    background: rgba(59, 130, 246, 0.8);
}

.social-btn.download-btn:hover {
    background: rgba(34, 197, 94, 0.8);
}

.social-btn i {
    font-size: 1.2rem;
}

.social-btn .like-count {
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 4px;
}

/* Toast提示样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-card);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-success .toast-content i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.toast-error .toast-content i {
    color: var(--danger-color);
    font-size: 1.2rem;
}

.toast-info .toast-content i {
    color: var(--info-color);
    font-size: 1.2rem;
}

.toast-content span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* 分享模态框样式 */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.share-modal-content {
    background: var(--card-bg);
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-card);
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.share-modal-header h5 {
    margin: 0;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background: var(--hover-bg);
}

.share-modal-body {
    padding: 1.5rem;
}

.share-preview {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.share-preview-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.share-preview-info h6 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.share-preview-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.share-options {
    display: flex;
    gap: 1rem;
}

.share-option-btn {
    flex: 1;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-option-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.share-option-btn i {
    font-size: 1rem;
}

.photo-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-time {
    font-size: 0.75rem;
    opacity: 0.8;
    margin: 0;
}

/* 加载状态 */
.loading-state {
    text-align: center;
    padding: 0.75rem 1rem; /* 大幅减小占用高度 */
    min-height: 0; /* 避免撑高布局 */
}

.loading-spinner {
    margin-bottom: 0.25rem;
}

.spinner {
    width: 22px; /* 缩小尺寸 */
    height: 22px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    display: none; /* 隐藏提示文字，减少视觉干扰 */
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-icon {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin: 0;
}

/* 加载更多 */
.load-more-section {
    text-align: center;
    padding: 2rem 1rem;
}

.load-more-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: white;
}

/* 人脸检测区域样式 */
/* 旧的人脸检测样式已移除，统一使用叠加在图片上的样式 */

.face-section-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

/* 旧的人脸检测样式已移除，统一使用全屏叠加样式 */

.detected-faces-title {
    width: 100%;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 旧的人脸缩略图样式已移除，统一使用全屏叠加样式 */

/* 人脸检测相关样式 - 简化为只显示头像 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 模态框样式 */
/* 旧的模态框样式已移除，统一使用全屏显示 */

.modal-header {
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
}

.modal-title {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}


/* 旧的模态框样式已移除，统一使用全屏显示 */

.photo-info {
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
}

.info-row {
    margin-bottom: 0.75rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row label {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.info-row span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* 底部信息栏 */
.footer-info {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
    z-index: 1000;
}

.event-details h6 {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.event-details p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
}

.auto-refresh {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success-color);
    font-size: 0.8rem;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 576px) {
    body {
        padding-top: 56px;
        padding-bottom: 72px;
    }

    .navbar {
        height: 56px;
    }

    .face-search-panel {
        margin: 0.5rem;
        padding: 1rem;
        border-radius: 14px;
    }

    .search-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .btn-close {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .photos-grid {
        display: flex;
        gap: 0.4rem;
        padding: 0 0.4rem;
    }
    
    .photos-grid .photo-column {
        gap: 0.4rem;
    }
    
    .photo-image {
        /* 移动端照片样式 - 保持原比例 */
        flex: none;
    }
    
    /* 移动端模态框样式 */
    .btn-close-modal {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        top: 15px;
        right: 15px;
    }
    
    .social-actions {
        bottom: 20px;
        right: 20px;
        gap: 0.5rem;
    }
    
    .social-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .social-btn i {
        font-size: 1rem;
    }
    
    .social-btn .like-count {
        font-size: 0.7rem;
        margin-left: 3px;
    }
    
    .face-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .detected-faces {
        gap: 0.8rem;
        padding: 0.3rem;
    }
    
    .face-detection-section {
        height: 80px;
        padding: 0.3rem;
    }

    .photo-container {
        top: 0;
        height: 100vh;
    }

    .photo-preview {
        width: 100vw;
        height: 100vh;
    }
    
    .event-title {
        font-size: 1.2rem;
    }
    
    .event-subtitle {
        font-size: 1rem;
    }
    
    .tab-btn {
        padding: 0.55rem 0.75rem;
        font-size: 0.85rem;
        min-width: 72px;
    }
    
    .stat-item {
        padding: 0.7rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }

    .photo-title {
        font-size: 0.8rem;
    }

    .photo-time {
        font-size: 0.7rem;
    }

    .face-result-image {
        height: 110px;
    }

    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.75rem;
    }
}

@media (min-width: 768px) {
    .photos-grid {
        display: flex;
        gap: 0.75rem;
        padding: 0 0.75rem;
    }
    
    .photos-grid .photo-column {
        gap: 0.75rem;
    }
}

@media (min-width: 992px) {
    .photos-grid {
        display: flex;
        gap: 0.75rem;
        padding: 0 0.75rem;
    }
    
    .photos-grid .photo-column {
        gap: 0.75rem;
    }
}

/* 触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .photo-card:hover {
        transform: none;
    }
    
    .photo-card:hover .photo-image {
        transform: none;
    }
    
    .photo-card:hover .photo-overlay {
        transform: translateY(100%);
    }
    
    .photo-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    }

    /* 减少移动端动画引起的性能消耗 */
    .tab-btn:hover,
    .stat-item:hover,
    .photo-card:hover,
    .face-result-item:hover {
        transform: none;
        box-shadow: none;
    }
}

/* 极小屏优化 */
@media (max-width: 360px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .face-result-image {
        height: 96px;
    }
    .photos-grid {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 照片信息区域样式 */
.photo-info-section {
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px;
    z-index: 1002;
    pointer-events: none;
}

.photo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    justify-content: flex-start;
}

.photo-tag {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #60a5fa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.photo-tag:hover {
    background: rgba(59, 130, 246, 0.4);
    border-color: #60a5fa;
    color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.face-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.face-tags-section {
    width: 100%;
    margin-bottom: 15px;
}

.face-tags-label {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 8px;
    text-align: left;
}

.face-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
}

.face-item {
    display: flex;
    align-items: center;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #6ee7b7;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    gap: 8px;
}

.face-item:hover {
    background: rgba(16, 185, 129, 0.4);
    border-color: #6ee7b7;
    color: #a7f3d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.face-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.face-name {
    font-weight: 500;
}

.face-score {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .photo-info-section {
        bottom: 70px;
        padding: 15px;
    }
    
    .photo-tags {
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .photo-tag {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
    
    .face-info {
        gap: 8px;
    }
    
    .face-item {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .face-avatar {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .photo-info-section {
        bottom: 60px;
        padding: 10px;
    }
    
    .photo-tags {
        gap: 4px;
        margin-bottom: 10px;
    }
    
    .photo-tag {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .face-info {
        gap: 6px;
    }
    
    .face-item {
        padding: 5px 8px;
        font-size: 0.8rem;
    }
    
    .face-avatar {
        width: 18px;
        height: 18px;
    }
}
