/* 响应式设计优化 */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 40px;
    }
    
    .header-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .header-left {
        text-align: center;
    }
    
    .header-buttons {
        justify-content: center;
    }
    
    .gallery-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .video-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .header-title {
        font-size: 2rem;
    }
    
    .header-highlight {
        padding: 24px;
    }
    
    .section h2 {
        font-size: 1.6rem;
    }
    
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .header-title {
        font-size: 1.8rem;
    }
    
    .header-highlight {
        padding: 20px;
        font-size: 1rem;
    }
    
    .section h2 {
        font-size: 1.4rem;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .quick-nav ul {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-download {
        width: 100%;
        padding: 12px 20px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .header-title {
        font-size: 1.6rem;
    }
    
    .header-highlight {
        padding: 16px;
        font-size: 0.95rem;
    }
    
    .section h2 {
        font-size: 1.3rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .time {
        bottom: 12px;
        right: 12px;
        font-size: 0.85rem;
        padding: 10px 16px;
    }
}

/* 打印样式优化 */
@media print {
    .header-buttons,
    .quick-nav,
    .gallery-container,
    .video-container,
    .footer-nav,
    .time {
        display: none;
    }
    
    .container {
        padding: 0;
    }
    
    .header-grid {
        display: block;
    }
    
    .header-left {
        display: none;
    }
    
    .header-highlight {
        background: transparent;
        border: none;
        padding: 0;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* 动画优化 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

/* 图片优化 */
.gallery-item img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* 视频容器优化 */
.video-item {
    position: relative;
    padding-top: 56.25%; /* 16:9 比例 */
    overflow: hidden;
    border-radius: 12px;
}

.video-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 可访问性优化 */
[aria-hidden="true"] {
    pointer-events: none;
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
