/* 响应式样式 - 商业级设计 */

/* 平板设备 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
        backdrop-filter: blur(20px);
        padding: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero-section {
        padding: 60px 20px 40px;
    }

    .hero-title .name {
        font-size: 32px;
    }

    .hero-typing {
        font-size: 16px;
    }

    .hero-skills {
        gap: 8px;
    }

    .skill-badge {
        font-size: 12px;
        padding: 5px 12px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-links {
        gap: 12px;
    }

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

    .hero-stats-bar {
        gap: 10px;
        margin-bottom: 40px;
        flex-wrap: wrap;
    }

    .stat-card {
        padding: 14px 18px;
        min-width: calc(50% - 10px);
        flex: unset;
    }

    .stat-icon {
        font-size: 24px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 12px;
    }

    .latest-item {
        padding: 14px 16px;
    }

    .latest-article-title {
        font-size: 14px;
    }

    .latest-excerpt {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 180px;
    }

    .video-search-box {
        flex-direction: column;
    }

    .video-search-btn {
        width: 100%;
        justify-content: center;
    }

    .video-results {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-card {
        flex-direction: column;
        text-align: center;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .video-player-container {
        height: 300px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-links {
        justify-content: center;
    }

    .ai-chat-box {
        width: calc(100vw - 48px);
        right: -12px;
        height: 450px;
    }
}

/* 手机设备 */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 16px;
    }

    .nav-logo .logo-text {
        font-size: 16px;
    }

    .hero-section {
        padding: 40px 16px 30px;
    }

    .hero-avatar {
        width: 80px;
        height: 80px;
        font-size: 38px;
    }

    .hero-title .greeting {
        font-size: 16px;
    }

    .hero-title .name {
        font-size: 28px;
    }

    .hero-typing {
        font-size: 14px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-skills {
        gap: 6px;
    }

    .skill-badge {
        font-size: 11px;
        padding: 4px 10px;
    }

    .hero-actions {
        gap: 10px;
    }

    .hero-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .hero-links {
        gap: 10px;
    }

    .hero-link {
        width: 38px;
        height: 38px;
    }

    .link-svg {
        width: 18px;
        height: 18px;
    }

    .hero-stats-bar {
        gap: 10px;
        flex-wrap: wrap;
    }

    .stat-card {
        padding: 12px 14px;
        min-width: calc(50% - 10px);
        flex: 1;
    }

    .stat-icon {
        font-size: 20px;
    }

    .stat-number {
        font-size: 18px;
    }

    .stat-label {
        font-size: 11px;
    }

    .latest-articles {
        padding: 0 16px 30px;
    }

    .latest-title {
        font-size: 18px;
    }

    .latest-item {
        padding: 12px 14px;
    }

    .latest-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .latest-article-title {
        font-size: 13px;
    }

    .section-title {
        font-size: 28px;
    }

    .video-search-input {
        padding: 14px 16px;
        font-size: 15px;
    }

    .video-search-btn {
        padding: 14px 24px;
        font-size: 15px;
    }

    .video-card {
        border-radius: 10px;
    }

    .video-cover {
        height: 120px;
    }

    .video-player-container {
        height: 250px;
    }

    .blog-card {
        border-radius: var(--radius);
    }

    .card-content {
        padding: 20px;
    }

    .blog-title {
        font-size: 20px;
    }

    .modal-content {
        padding: 24px;
    }

    .ai-chat-box {
        width: calc(100vw - 32px);
        right: -8px;
        height: 400px;
    }

    .ai-chat-header {
        padding: 16px 20px;
    }

    .ai-chat-messages {
        padding: 16px;
    }

    .ai-chat-input-area {
        padding: 12px;
    }
}