/* 
 * 响应式设计样式表
 * 参考Poppr网站风格 (https://www.poppr.be/en)
 */

/* 视频背景响应式样式 */
@media screen and (max-width: 767px) {
    #background-video {
        height: 100%;
        width: auto;
        min-width: 100%;
    }
    
    .mobile-menu {
        background-color: rgba(0, 0, 0, 0.95);
    }
    
    .hamburger span {
        background-color: white;
    }
    
    .header.scrolled {
        background-color: rgba(0, 0, 0, 0.8);
    }
}

/* 大型桌面设备 (1440px 以上) */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
}

/* 桌面设备 (1024px - 1439px) */
@media screen and (max-width: 1439px) {
    .container {
        max-width: 1200px;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
}

/* 平板设备 (768px - 1023px) */
@media screen and (max-width: 1023px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 6rem;
    }
    
    .container {
        max-width: 900px;
    }
    
    .header {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image,
    .about-text {
        width: 100%;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .social-links,
    .contact-form {
        width: 100%;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 80px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::before {
        left: 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* 移动设备 (767px 以下) */
@media screen and (max-width: 767px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2.5rem;
        --spacing-xl: 4rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .nav-desktop {
        display: none;
    }
    
    .nav-mobile {
        display: block;
        position: relative;
        z-index: 1001;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
    }
    
    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: white;
        transition: all var(--transition-fast);
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-medium);
    }
    
    .mobile-menu.active {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu ul {
        text-align: center;
    }
    
    .mobile-menu li {
        margin: var(--spacing-md) 0;
        transform: translateY(20px);
        opacity: 0;
        transition: all var(--transition-medium);
        transition-delay: calc(var(--i) * 0.1s);
    }
    
    .mobile-menu.active li {
        transform: translateY(0);
        opacity: 1;
    }
    
    .mobile-menu a {
        font-size: 1.5rem;
        font-weight: 500;
        letter-spacing: 2px;
        color: white;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .works-grid,
    .articles-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .work-info {
        opacity: 1;
        transform: translateY(0);
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .filter-buttons,
    .category-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn,
    .category-btn {
        width: 80%;
        margin-bottom: var(--spacing-xs);
    }
}

/* 小型移动设备 (480px 以下) */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .section-title,
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .contact-method {
        flex-direction: column;
    }
    
    .method-icon {
        margin-right: 0;
        margin-bottom: var(--spacing-sm);
    }
}

/* 打印样式 */
@media print {
    .header, 
    .footer, 
    .hero, 
    .contact-section,
    .scroll-indicator,
    .cta-button,
    .more-link {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    .works-section,
    .articles-section,
    .about-section {
        page-break-inside: avoid;
        margin: 20pt 0;
    }
    
    .work-item,
    .article-card {
        break-inside: avoid;
    }
    
    .about-content {
        display: block;
    }
    
    .about-image {
        max-width: 300pt;
        margin: 0 auto 20pt;
    }
} 