/* 全局重置 */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 通用样式 */
.yzy-dcim-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.yzy-dcim-header {
    text-align: left;
    margin-bottom: 30px;
    padding: 20px 0;
    background: transparent;
    border-bottom: 2px solid #000;
}

/* 相册列表页标题布局 */
.yzy-dcim-header.album-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0 20px 0;
}

.yzy-dcim-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
    background: linear-gradient(180deg, transparent 60%, #FFE66D 60%);
    padding: 0 8px;
    line-height: 1.4;
}

.yzy-dcim-header h2 i {
    display: none;
}

.album-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 8px;
    max-width: 100%;
}

/* 相册详情页头部 */
.album-detail-header {
    padding: 15px 0 20px 0;
    position: relative;
}

.album-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 15px;
}

.back-link {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.back-link:hover {
    background: #333;
    text-decoration: none;
    color: #fff;
}

.back-link i {
    font-size: 16px;
}

.album-header-title {
    flex: 1;
    text-align: left;
}

.album-header-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
    margin: 0;
    letter-spacing: -0.5px;
    background: linear-gradient(180deg, transparent 60%, #FFE66D 60%);
    padding: 0 8px;
    display: inline-block;
    line-height: 1.4;
}

.album-count-info {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #000;
    color: #fff;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* 加载指示器 */
.loading-indicator {
    text-align: center;
    padding: 30px;
}

.loading-indicator .spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
    color: #666;
    font-size: 14px;
}

.loading-indicator i {
    font-size: 16px;
}

.no-more-data {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 14px;
}

.no-more-data i {
    font-size: 18px;
    color: #999;
    margin-right: 8px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #999;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state i {
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* 标签筛选 */
.tag-filter {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.tag-item {
    padding: 10px 14px;
    border-radius: 4px;
    background: #f5f5f0;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
}

.tag-item:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    text-decoration: none;
}

.tag-item.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* 相册列表样式 */
.album-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.album-card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    background: #fff;
    border: 2px solid #000;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 6px 6px 0 0 #000;
}

.album-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 0 #000;
}

/* 图片数量角标 */
.album-count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FFD700;
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid #000;
    z-index: 2;
}

/* 相册标签 */
.album-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.album-tag {
    padding: 3px 8px;
    background: #f5f5f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.7rem;
    color: #666;
}

.album-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.album-cover {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    flex-shrink: 0;
}

.album-info {
    padding: 14px 14px 12px 14px;
    background: #fff;
    border-top: 1px solid #eee;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.album-info h4 {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.album-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #f5f5f0;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.7rem;
    margin-top: 6px;
    width: fit-content;
    max-width: max-content;
}

.album-badge i {
    font-size: 0.65rem;
}

/* 专辑卡片右下角箭头按钮 */
.album-enter-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 3;
}

.album-enter-btn i {
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.album-card:hover .album-enter-btn {
    background: #333;
    transform: scale(1.1);
}

.album-card:hover .album-enter-btn i {
    transform: translateX(2px);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: white;
    font-size: 2rem;
    pointer-events: none;
}

.yzy-dcim-item:hover .photo-overlay,
.yzy-dcim-card:hover .photo-overlay,
.yzy-dcim-grid-item:hover .photo-overlay {
    opacity: 1;
}

/* Live Photo容器悬停时显示overlay */
.live-photo-container:hover .photo-overlay {
    opacity: 1;
}

.yzy-dcim-layout-waterfall .photo-title,
.yzy-dcim-layout-waterfall .photo-location {
    padding: 10px 12px;
    font-size: 0.8rem;
    background: #fff;
}

.yzy-dcim-layout-waterfall .photo-title {
    font-weight: 600;
    color: #000;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-top: 1px solid #eee;
}

.yzy-dcim-layout-waterfall .photo-title i {
    display: none;
}

.yzy-dcim-layout-waterfall .photo-location {
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: color 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
    border-top: 1px solid #f5f5f5;
}

.yzy-dcim-layout-waterfall .photo-location:hover {
    color: #000;
}

.yzy-dcim-layout-waterfall .photo-location i {
    font-size: 0.7rem;
}

/* 图片数量角标 */
.yzy-dcim-layout-waterfall .photo-count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FFD700;
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid #000;
    z-index: 2;
}

/* 卡片布局 - PC端一行三个 */
.yzy-dcim-layout-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.yzy-dcim-card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    background: #fff;
    border: 2px solid #000;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 6px 6px 0 0 #000;
}

.yzy-dcim-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 0 #000;
}

/* macOS 窗口头部 */
.yzy-dcim-card::before {
    content: '';
    display: block;
    height: 32px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.yzy-dcim-card::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF5F56;
    box-shadow: 
        -18px 0 0 #FFBD2E,
        -36px 0 0 #27C93F;
}

.yzy-dcim-card .card-image {
    height: 400px;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
    display: block;
    flex-shrink: 0;
}

.yzy-dcim-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yzy-dcim-card .card-body {
    padding: 16px;
    background: #fff;
    border-top: 1px solid #eee;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yzy-dcim-card .card-body h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yzy-dcim-card .card-body h5 i {
    display: none;
}

/* 卡片底部信息栏 */
.yzy-dcim-card .card-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.yzy-dcim-card .photo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    overflow: hidden;
}

.yzy-dcim-card .photo-tag {
    display: inline-block;
    padding: 3px 8px;
    background: #f5f5f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
}

.yzy-dcim-card .photo-likes {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
}

.yzy-dcim-card .photo-likes i {
    font-size: 0.9rem;
    color: #000;
}

/* IMG 编号样式 - 左侧 */
.yzy-dcim-card .photo-number {
    position: absolute;
    top: 8px;
    left: 12px;
    background: transparent;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    font-family: 'Courier New', monospace;
    z-index: 10;
    line-height: 32px;
}

.yzy-dcim-card .photo-location {
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yzy-dcim-card .photo-location:hover {
    color: #000;
}

.yzy-dcim-card .photo-location i {
    font-size: 0.7rem;
}

/* 网格布局 */
.yzy-dcim-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.yzy-dcim-grid-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s;
    background: #fff;
    border: 2px solid #000;
    box-shadow: 6px 6px 0 0 #000;
}

.yzy-dcim-grid-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 0 #000;
}

.yzy-dcim-grid-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.yzy-dcim-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer样式 */
.site-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 30px;
    background: #fff;
}

.site-footer p {
    margin: 5px 0;
    color: #999;
    font-size: 0.8rem;
}

.footer-links {
    margin-top: 10px;
    font-size: 0.8rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
    margin: 0 8px;
}

.footer-links a:hover {
    color: #000;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .yzy-dcim-layout-waterfall {
        column-count: 2;
    }
    
    .skeleton-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .album-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .yzy-dcim-container {
        padding: 20px 15px;
    }
    
    .yzy-dcim-header {
        padding: 15px 0;
    }
    
    .yzy-dcim-header.album-list-header {
        padding: 12px 0 18px 0;
        gap: 12px;
    }
    
    .yzy-dcim-header h2 {
        font-size: 1.5rem;
    }
    
    .yzy-dcim-header .album-count-info {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .album-detail-header {
        padding: 12px 0 18px 0;
    }
    
    .album-header-top {
        margin-bottom: 12px;
        gap: 12px;
    }
    
    .back-link {
        width: 32px;
        height: 32px;
    }
    
    .back-link i {
        font-size: 14px;
    }
    
    .album-header-title h2 {
        font-size: 1.5rem;
    }
    
    .album-count-info {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .yzy-dcim-layout-waterfall {
        column-count: 2;
        column-gap: 12px;
    }
    
    .yzy-dcim-layout-waterfall .yzy-dcim-item {
        margin-bottom: 12px;
    }
    
    .yzy-dcim-layout-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .yzy-dcim-layout-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .album-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .album-cover {
        height: 280px;
    }
    
    .skeleton-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 12px;
    }
    
    .site-nav {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .yzy-dcim-container {
        padding: 15px 10px;
    }
    
    .yzy-dcim-layout-waterfall {
        column-count: 1;
        column-gap: 0;
    }
    
    .yzy-dcim-layout-waterfall .yzy-dcim-item {
        margin-bottom: 12px;
    }
    
    .yzy-dcim-layout-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .yzy-dcim-header {
        padding: 12px 0;
    }
    
    .yzy-dcim-header h2 {
        font-size: 1.3rem;
    }
    
    .album-detail-header {
        padding: 10px 0 15px 0;
    }
    
    .album-header-top {
        margin-bottom: 10px;
        gap: 10px;
    }
    
    .back-link {
        width: 30px;
        height: 30px;
    }
    
    .back-link i {
        font-size: 13px;
    }
    
    .album-header-title h2 {
        font-size: 1.3rem;
    }
    
    .album-count-info {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .site-title {
        font-size: 1.3rem;
    }
    
    .nav-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .album-cover {
        height: 200px;
    }
    
    .album-enter-btn {
        width: 32px;
        height: 32px;
        bottom: 12px;
        right: 12px;
    }
    
    .album-enter-btn i {
        font-size: 0.8rem;
    }
    
    .yzy-dcim-card .card-image {
        height: 200px;
    }
    
    .album-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .skeleton-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* 自定义图片模态框 */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    overflow: hidden;
}

.photo-modal.active {
    opacity: 1;
    visibility: visible;
}

.photo-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 99, 71, 0.92);
    cursor: pointer;
}

.photo-modal-content {
    position: relative;
    width: 90%;
    max-width: 1100px;
    height: 85vh;
    background: white;
    border: 3px solid #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
    display: flex;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.photo-modal.active .photo-modal-content {
    transform: scale(1);
}

.photo-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #000;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
}

.photo-modal-close:hover {
    background: #000;
    color: white;
}

.photo-modal-body {
    display: flex;
    width: 100%;
    height: 100%;
}

.photo-modal-left {
    flex: 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-right: 2px solid #000;
}

.photo-modal-left img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 2px solid #000;
}

.photo-modal-right {
    width: 380px;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.photo-modal-header {
    padding: 30px 25px;
    border-bottom: 2px solid #000;
    flex-shrink: 0;
}

.photo-badge {
    display: inline-block;
    background: #FFD700;
    color: #000;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border: 1px solid #000;
}

.photo-modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.photo-modal-header p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.photo-modal-info {
    padding: 20px 25px;
    border-bottom: 2px solid #000;
    flex-shrink: 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

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

.info-item i {
    font-size: 14px;
    color: #000;
    width: 20px;
}

.photo-modal-actions {
    padding: 20px 25px;
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #000;
    flex-shrink: 0;
}

.action-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #000;
    background: white;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn:hover {
    background: #f5f5f5;
}

.action-btn-primary {
    background: #FFD700;
    border-color: #000;
}

.action-btn-primary:hover {
    background: #FFC700;
}

.action-btn-primary.liked {
    background: #FF6B6B;
    border-color: #FF6B6B;
}

.action-btn-primary.liked:hover {
    background: #FF5252;
    border-color: #FF5252;
}

.photo-modal-meta {
    padding: 20px 25px;
    flex-shrink: 0;
}

/* EXIF 元数据样式 */
.exif-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.exif-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.exif-title i {
    color: #666;
}

.exif-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.exif-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.exif-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.exif-value {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.exif-empty {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
}

.exif-empty i {
    margin-right: 5px;
}

.meta-link {
    font-size: 11px;
    color: #999;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.meta-link:hover {
    color: #000;
}

.photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #000;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
    z-index: 10;
}

.photo-nav:hover:not(:disabled) {
    background: #000;
    color: white;
}

.photo-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.photo-nav-prev {
    left: -70px;
}

.photo-nav-next {
    right: -70px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .photo-modal-content {
        width: 95%;
        height: 90vh;
    }
    
    .photo-nav-prev {
        left: 10px;
    }
    
    .photo-nav-next {
        right: 10px;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .photo-modal-content {
        flex-direction: row;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border: none;
        border-radius: 0;
    }
    
    .photo-modal-left {
        flex: 1;
        min-width: 0;
        border-right: 2px solid #000;
        padding: 10px;
    }
    
    .photo-modal-left img {
        border: none;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .photo-modal-right {
        width: 280px;
        flex-shrink: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .photo-modal-header {
        padding: 15px;
    }
    
    .photo-modal-header h3 {
        font-size: 16px;
    }
    
    .photo-badge {
        font-size: 10px;
        padding: 3px 10px;
    }
    
    .photo-modal-info,
    .photo-modal-actions,
    .photo-modal-meta {
        padding: 12px 15px;
    }
    
    .action-btn {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .photo-nav {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .photo-nav-prev {
        left: 10px;
        top: 50%;
    }
    
    .photo-nav-next {
        right: 290px;
        top: 50%;
    }
    
    /* 768px以下模态框中的地图 */
    .photo-modal-right .photo-map-container {
        margin: 0 15px 12px 15px !important;
        border-width: 1px !important;
    }
    
    .photo-modal-right .photo-map-image {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .photo-modal-close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 14px;
        background: rgba(255, 255, 255, 0.95);
        z-index: 11;
    }
    
    .photo-modal-content {
        flex-direction: column !important;
        width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
    }
    
    .photo-modal-body {
        flex-direction: column !important;
        height: 100% !important;
    }
    
    .photo-modal-left {
        padding: 8px !important;
        flex: 0 0 45vh !important;
        height: 45vh !important;
        max-height: 45vh !important;
        width: 100% !important;
        border-right: none !important;
        border-bottom: 2px solid #000 !important;
        min-width: auto !important;
        background: #f5f5f5 !important;
    }
    
    .photo-modal-left img {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        border: none !important;
    }
    
    .photo-modal-right {
        width: 100% !important;
        height: 55vh !important;
        max-height: 55vh !important;
        flex: 0 0 55vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        display: flex !important;
        flex-direction: column !important;
        background: white !important;
        box-sizing: border-box !important;
    }
    
    .photo-modal-header {
        padding: 12px !important;
        border-bottom: 2px solid #000 !important;
    }
    
    .photo-modal-header h3 {
        font-size: 15px !important;
    }
    
    .photo-badge {
        font-size: 9px !important;
        padding: 3px 8px !important;
    }
    
    .photo-modal-info {
        padding: 10px 12px !important;
        border-bottom: 2px solid #000 !important;
    }
    
    .photo-modal-actions {
        padding: 10px 12px !important;
        border-bottom: 2px solid #000 !important;
    }
    
    .photo-modal-meta {
        padding: 10px 12px !important;
    }
    
    /* 移动端地图样式修复 */
    .photo-modal-right .photo-map-container {
        margin: 0 12px 10px 12px !important;
        border-width: 1px !important;
    }
    
    .photo-modal-right .photo-map-header {
        padding: 8px 10px !important;
        font-size: 0.85em !important;
        border-bottom-width: 1px !important;
    }
    
    .photo-modal-right .photo-map-link {
        display: block !important;
        overflow: hidden !important;
        line-height: 0 !important;
    }
    
    .photo-modal-right .photo-map-image {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .photo-modal-right .photo-map-link-only {
        padding: 10px !important;
        font-size: 0.9em !important;
    }
    
    .exif-container {
        padding: 10px !important;
    }
    
    .exif-title {
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }
    
    .exif-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    
    .exif-label {
        font-size: 10px !important;
    }
    
    .exif-value {
        font-size: 12px !important;
    }
    
    .info-item {
        font-size: 13px !important;
    }
    
    .action-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
        gap: 4px !important;
    }
    
    .action-btn i {
        font-size: 11px !important;
    }
    
    .meta-link {
        font-size: 10px !important;
    }
    
    .photo-nav {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .photo-nav-prev {
        left: 8px;
        top: 25%;
    }
    
    .photo-nav-next {
        right: 8px;
        top: 25%;
    }
}

/* 响应式设计 - 标签筛选 */
@media (max-width: 768px) {
    .tag-filter {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
        padding: 15px;
    }
    
    .tag-item {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .tag-filter {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 12px;
    }
    
    .tag-item {
        padding: 8px;
        font-size: 0.8rem;
    }
}

/* 响应式设计 - 卡片布局 */
@media (max-width: 768px) {
    .yzy-dcim-layout-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .yzy-dcim-card .card-image {
        height: 280px;
    }
    
    .yzy-dcim-card .photo-number {
        font-size: 0.7rem;
        top: 7px;
        left: 10px;
    }
    
    .yzy-dcim-card::after {
        top: 9px;
        right: 10px;
        width: 10px;
        height: 10px;
        box-shadow: 
            -15px 0 0 #FFBD2E,
            -30px 0 0 #27C93F;
    }
}

@media (max-width: 480px) {
    .yzy-dcim-layout-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .yzy-dcim-card .card-image {
        height: 240px;
    }
    
    .yzy-dcim-card .card-body {
        padding: 12px;
    }
    
    .yzy-dcim-card .card-body h5 {
        font-size: 0.85rem;
    }
    
    .yzy-dcim-card .photo-number {
        font-size: 0.65rem;
        top: 7px;
        left: 8px;
    }
    
    .yzy-dcim-card::after {
        top: 9px;
        right: 8px;
        width: 9px;
        height: 9px;
        box-shadow: 
            -14px 0 0 #FFBD2E,
            -28px 0 0 #27C93F;
    }
    
    .yzy-dcim-card .photo-tag {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    .yzy-dcim-card .photo-likes {
        font-size: 0.8rem;
    }
}

/* 视频、音频和链接样式 */
.yzy-dcim-item video,
.yzy-dcim-card video,
.yzy-dcim-grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 确保图标没有下划线 */
a .fas,
a .far,
a .fab,
a .fa {
    text-decoration: none !important;
}

a:hover .fas,
a:hover .far,
a:hover .fab,
a:hover .fa {
    text-decoration: none !important;
}

.photo-modal-left video {
    max-width: 100%;
    max-height: 100%;
    border: 2px solid #000;
}

.photo-modal-left audio {
    width: 100%;
    max-width: 400px;
}

/* 媒体类型图标容器 */
.media-icon-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
}

.media-icon-container i {
    font-size: 4rem;
    color: white;
}

.media-icon-container .media-label {
    font-size: 1rem;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Live Photo 样式 */
.live-photo-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.live-photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.live-photo-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.live-photo-video.playing {
    opacity: 1;
}

.live-photo-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.live-photo-badge:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: scale(1.05);
}

.live-photo-badge i {
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

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

/* 播放状态下的样式 */
.live-photo-container.playing .live-photo-badge {
    background: rgba(255, 0, 0, 0.8);
}

.live-photo-container.playing .live-photo-badge:hover {
    background: rgba(255, 0, 0, 0.95);
}

.live-photo-container.playing .live-photo-badge i {
    animation: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .media-icon-container i {
        font-size: 3rem;
    }
    
    .media-icon-container .media-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .media-icon-container i {
        font-size: 2.5rem;
    }
    
    .media-icon-container .media-label {
        font-size: 0.8rem;
    }
    
    .photo-modal-left audio {
        max-width: 100%;
    }
}
