/* 响应式设计 */

/* 平板设备 */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-buttons {
        gap: 12px;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .artist-content {
        gap: 24px;
    }
    
    .artist-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .work-content {
        gap: 20px;
    }
    
    .work-preview {
        width: 160px;
    }
    
    .work-preview img {
        height: 120px;
    }
    
    .links {
        gap: 24px;
    }
}

/* 移动设备 */
@media (max-width: 768px) {
    /* 导航 */
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-mobile.show {
        display: flex;
    }
    
    /* 英雄区域 */
    .hero-section {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 60px;
    }
    
    .hero-image img {
        max-width: 300px;
    }
    
    .hero-text p {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        width: 200px;
        justify-content: center;
    }
    
    /* 区块 */
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }
    
    .card {
        padding: 24px;
    }
    
    /* 画师信息 */
    .artist-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .artist-avatar img {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .artist-name {
        font-size: 24px;
    }
    
    .artist-alias {
        font-size: 18px;
    }
    
    .artist-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* 作品展示 */
    .work-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .work-preview {
        width: 100%;
        text-align: center;
    }
    
    .work-preview img {
        width: 200px;
        height: 150px;
    }
    
    .work-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* 分页 */
    .pagination {
        flex-direction: column;
        gap: 16px;
    }
    
    /* 评论 */
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .comments-pagination {
        flex-direction: column;
        gap: 12px;
    }
    
    /* 底部 */
    .links {
        flex-direction: column;
        gap: 16px;
    }
    
    /* 弹窗 */
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        max-width: 100%;
    }
    
    .modal-header {
        padding: 16px 16px 0;
        margin-bottom: 16px;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 0 16px 16px;
    }
    
    .modal-footer {
        padding: 0 16px 16px;
        margin-top: 16px;
        padding-top: 16px;
    }
    
    .modal-tip {
        display: none;
    }
}

/* 小屏幕移动设备 */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-image img {
        max-width: 250px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .card {
        padding: 20px;
    }
    
    .artist-name {
        font-size: 20px;
    }
    
    .artist-alias {
        font-size: 16px;
    }
    
    .work-title {
        font-size: 20px;
    }
    
    .work-preview img {
        width: 150px;
        height: 120px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .form-title {
        font-size: 20px;
    }
    
    .list-title {
        font-size: 20px;
    }
}

/* 超小屏幕 */
@media (max-width: 360px) {
    .hero-buttons .btn {
        width: 180px;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .artist-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .work-actions {
        flex-direction: column;
    }
    
    .work-actions .btn {
        width: 100%;
    }
}

/* 横屏模式优化 */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .hero-image {
        margin-bottom: 20px;
    }
    
    .hero-image img {
        max-width: 200px;
    }
    
    .hero-text {
        margin-bottom: 24px;
    }
    
    .section {
        padding: 40px 0;
    }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-image img {
        max-width: 500px;
    }
    
    .section-title {
        font-size: 42px;
    }
    
    .hero-text p {
        font-size: 22px;
    }
}

/* 打印样式 */
@media print {
    .header,
    .hero-buttons,
    .artist-actions,
    .work-actions,
    .pagination,
    .comment-form-card,
    .comments-pagination,
    .footer,
    .modal {
        display: none !important;
    }
    
    .hero-section {
        padding-top: 0;
        min-height: auto;
    }
    
    .section {
        padding: 20px 0;
        break-inside: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    body {
        background: white;
    }
    
    .artist-info,
    .works-section,
    .comments-section {
        background: white;
    }
}

/* 减少动画的用户偏好 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .card {
        border: 1px solid #374151;
    }
    
    .modal-content {
        border: 2px solid #374151;
    }
}

