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

/* 平板设备 (1024px以下) */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-right img {
        width: 300px;
        height: 300px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 移动设备 (768px以下) */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }

    .main-content {
        margin-left: 60px;
        padding: 15px 10px;
    }

    .page-section {
        padding: 20px;
    }

    .hero-section {
        padding: 0 20px;
    }

    .hero-right img {
        width: 250px;
        height: 250px;
    }

    .nav-item::after {
        display: none;
    }

    .nav-item {
        width: 40px;
        height: 40px;
    }

    .logo {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .projects-page {
        padding: 20px 15px;
    }

    .project-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .project-card::before {
        top: 15px;
        right: 15px;
        left: 15px;
        bottom: auto;
        width: auto;
        height: 120px;
        transform: none;
        border-radius: 10px;
    }

    .project-info {
        margin-top: 140px;
    }

    /* 博客页面响应式 */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-page {
        padding: 30px 20px;
    }

    .blog-header h1 {
        font-size: 28px;
    }

    /* 项目模态框响应式 */
    .project-modal {
        padding: 15px;
    }

    .modal-content {
        max-height: 95vh;
        border-radius: 20px;
        max-width: 95vw;
    }

    .modal-header {
        padding: 25px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .modal-company-info {
        width: 100%;
        gap: 16px;
    }

    .modal-company-logo {
        width: 60px;
        height: 60px;
        border-radius: 12px;
    }

    .modal-title-info h2 {
        font-size: 1.6rem;
    }

    .modal-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 25px 20px;
        max-height: calc(95vh - 120px);
    }

    .modal-description h3 {
        font-size: 1.2rem;
        margin: 25px 0 15px 0;
        padding-left: 16px;
    }

    .modal-description p {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .modal-technologies,
    .modal-highlights {
        margin-top: 25px;
        padding: 20px 16px;
    }

    .modal-technologies h3,
    .modal-highlights h3 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .tech-tags,
    .highlight-tags {
        gap: 10px;
    }

    .tech-tag,
    .modal-highlights .highlight-tag {
        padding: 8px 14px;
        font-size: 0.85rem;
        border-radius: 20px;
    }

    /* 成果卡片响应式 */
    .modal-achievements {
        margin-top: 30px;
        padding: 25px 20px;
    }

    .modal-achievements h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .achievement-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .achievement-video {
        height: 180px;
    }

    .achievement-content {
        padding: 16px;
    }

    .achievement-content h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .achievement-content p {
        font-size: 0.9rem;
    }

    /* 外部视频链接响应式 */
    .video-placeholder i {
        font-size: 2.5rem;
        margin-bottom: 8px;
    }

    .video-placeholder span {
        font-size: 0.9rem;
    }

    .play-overlay i {
        font-size: 3rem;
    }
}

/* 超小屏幕 (480px以下) */
@media (max-width: 480px) {
    .hero-right img {
        width: 200px;
        height: 200px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .social-links {
        gap: 15px;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
