/* ===== 响应式设计 ===== */

/* 平板设备 (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .avatar {
        width: 250px;
        height: 250px;
    }
    
    .avatar-ring {
        width: 270px;
        height: 270px;
    }
    
    .featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
}

/* 小平板和大手机 (481px - 768px) */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* 导航栏移动端样式 */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* 英雄区域移动端 */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .avatar {
        width: 200px;
        height: 200px;
    }
    
    .avatar-ring {
        width: 220px;
        height: 220px;
    }
    
    /* 区域标题 */
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    /* 特色作品网格 */
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-item {
        margin: 0 auto;
        max-width: 400px;
    }
    
    /* 社交媒体网格 */
    .social-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* 联系区域 */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-cta {
        justify-content: center;
    }
    
    /* 页脚 */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        gap: 1rem;
    }
}

/* 手机设备 (320px - 480px) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo h2 {
        font-size: 1.3rem;
    }
    
    /* 英雄区域 */
    .hero-section {
        padding-top: 70px;
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 200px;
    }
    
    .avatar {
        width: 150px;
        height: 150px;
    }
    
    .avatar-ring {
        width: 170px;
        height: 170px;
    }
    
    /* 区域间距调整 */
    .featured-section,
    .social-section,
    .contact-section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* 特色作品 */
    .featured-image {
        height: 250px;
    }
    
    .featured-overlay {
        padding: 1.5rem;
    }
    
    .featured-overlay h3 {
        font-size: 1.3rem;
    }
    
    /* 社交媒体卡片 */
    .social-card {
        padding: 1.5rem;
    }
    
    .social-card h3 {
        font-size: 1.3rem;
    }
    
    /* 联系信息 */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-cta {
        flex-direction: column;
        align-items: center;
    }
    
    /* 页脚链接 */
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 超小屏幕设备 (最大320px) */
@media screen and (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .avatar {
        width: 120px;
        height: 120px;
    }
    
    .avatar-ring {
        width: 140px;
        height: 140px;
    }
    
    .featured-image {
        height: 200px;
    }
    
    .social-card,
    .featured-overlay {
        padding: 1rem;
    }
}

/* 横屏模式优化 */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding-top: 70px;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .avatar {
        width: 150px;
        height: 150px;
    }
    
    .avatar-ring {
        width: 170px;
        height: 170px;
    }
}

/* 高分辨率屏幕优化 */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .avatar {
        width: 350px;
        height: 350px;
    }
    
    .avatar-ring {
        width: 370px;
        height: 370px;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .hamburger,
    .hero-buttons,
    .contact-cta,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .hero-section,
    .featured-section,
    .social-section,
    .contact-section {
        padding: 1rem 0;
        background: white;
    }
    
    .section-title {
        font-size: 18pt;
        color: black;
    }
}

/* 减少动画效果 (用户偏好) */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .avatar-ring {
        animation: none;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #000000;
        color: #f5f5f7;
    }
    
    .navbar {
        background: rgba(0, 0, 0, 0.95);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .nav-logo h2,
    .nav-link {
        color: #f5f5f7;
    }
    
    .hero-section {
        background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
    }
    
    .section-title {
        color: #f5f5f7;
    }
    
    .featured-section {
        background: #1c1c1e;
    }
    
    .contact-section {
        background: #2c2c2e;
    }
    
    .btn-secondary {
        background: rgba(255, 255, 255, 0.1);
        color: #f5f5f7;
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}