/* ===================================
   移动端专用样式
   Swiss Modernism 2.0 风格
   =================================== */

/* 基础移动端样式 */
@media (max-width: 768px) {
    /* 导航栏移动端优化 */
    .navbar {
        padding: 1rem 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        box-shadow: var(--shadow-sm);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    .logo {
        font-size: 1.3rem;
        font-weight: 700;
        letter-spacing: 0.5px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 90%;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(20px);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        border-left: 1px solid var(--border-color);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 1.2rem 1rem;
        min-width: 100%;
        text-align: left;
        border-radius: var(--border-radius-md);
        margin-bottom: 0.5rem;
        transition: all 0.3s ease;
        color: var(--text-primary);
        border: 1px solid transparent;
    }

    .nav-link:hover {
        background: rgba(59, 130, 246, 0.05);
        transform: translateX(10px);
        border-color: var(--primary-color);
    }

    .nav-link.active {
        background: rgba(59, 130, 246, 0.1);
        color: var(--primary-color);
        border-color: var(--primary-color);
    }

    .hamburger {
        display: flex;
        cursor: pointer;
        padding: 0.75rem;
        border-radius: var(--border-radius-md);
        background: #F1F5F9;
        border: 1px solid var(--border-color);
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .hamburger:hover {
        background: #E2E8F0;
        transform: scale(1.05);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* 英雄区域移动端优化 */
    .hero {
        padding: 8rem 1.5rem 4rem;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #FFFFFF;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-text {
        order: 2;
        animation: fadeInUp 1s ease 0.3s both;
    }

    .hero-visual {
        order: 1;
        animation: fadeInDown 1s ease both;
    }

    .hero-title {
        font-size: 2.2rem;
        font-weight: 800;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        letter-spacing: -0.5px;
        color: var(--text-primary);
    }

    .title-line {
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--text-secondary);
        margin-bottom: 0.75rem;
    }

    .title-name {
        font-size: 2.5rem;
        font-weight: 700;
        margin: 0.75rem 0;
        color: var(--primary-color);
    }

    .hero-description {
        font-size: 1rem;
        color: var(--text-secondary);
        margin-bottom: 2.5rem;
        line-height: 1.7;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1.25rem;
        align-items: center;
    }

    .btn {
        padding: 1rem 1.75rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: var(--border-radius-md);
        min-width: 200px;
        text-align: center;
    }

    .btn-primary {
        background: var(--gradient-primary);
        color: white;
        box-shadow: var(--shadow-md);
    }

    .btn-secondary {
        background: white;
        color: var(--primary-color);
        border: 1px solid var(--primary-color);
    }

    /* 音乐播放器移动端优化 */
    .music-player {
        padding: 1.25rem;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .player-container {
        padding: 2rem;
        background: white;
        border-radius: var(--border-radius-xl);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }

    .vinyl {
        width: 180px;
        height: 180px;
        margin-bottom: 1.75rem;
    }

    .vinyl-spinner {
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, #111 0%, #333 60%, #111 100%);
        border-radius: 50%;
        animation: rotate 6s linear infinite;
        box-shadow: var(--shadow-md);
    }

    .vinyl-center {
        width: 40px;
        height: 40px;
        background: var(--gradient-primary);
        border-radius: 50%;
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

    /* 音频波形动画 */
    .audio-wave {
        height: 60px;
        gap: 0.35rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
        background: #F1F5F9;
        border-radius: 30px;
        border: 1px solid var(--border-color);
    }

    .wave-bar {
        width: 3px;
        background: var(--gradient-primary);
        border-radius: 2px;
        animation: wave 1.2s ease-in-out infinite;
    }

    .wave-bar:nth-child(1) { animation-delay: 0s; height: 15px; }
    .wave-bar:nth-child(2) { animation-delay: 0.1s; height: 25px; }
    .wave-bar:nth-child(3) { animation-delay: 0.2s; height: 35px; }
    .wave-bar:nth-child(4) { animation-delay: 0.3s; height: 45px; }
    .wave-bar:nth-child(5) { animation-delay: 0.4s; height: 55px; }
    .wave-bar:nth-child(6) { animation-delay: 0.5s; height: 45px; }
    .wave-bar:nth-child(7) { animation-delay: 0.6s; height: 35px; }
    .wave-bar:nth-child(8) { animation-delay: 0.7s; height: 25px; }
    .wave-bar:nth-child(9) { animation-delay: 0.8s; height: 15px; }
    .wave-bar:nth-child(10) { animation-delay: 0.9s; height: 25px; }

    .song-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 1.25rem;
        text-align: center;
    }

    .time-display {
        font-size: 0.8rem;
        color: var(--text-secondary);
        display: flex;
        justify-content: space-between;
        margin-bottom: 0.75rem;
        font-family: var(--font-mono);
    }

    .song-progress {
        height: 5px;
        background: var(--gradient-primary);
        border-radius: 2.5px;
        width: 0;
        transition: width 0.1s ease;
    }

    .song-progress-container::before {
        height: 5px;
        background: #E2E8F0;
        border-radius: 2.5px;
    }

    .player-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1.25rem;
        padding: 1.25rem;
        background: #F8FAFC;
        border-radius: var(--border-radius-lg);
        border: 1px solid var(--border-color);
        margin-top: 1.25rem;
    }

    .control-button {
        width: 45px;
        height: 45px;
        background: white;
        border: 1px solid var(--border-color);
        border-radius: 50%;
        color: var(--text-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-sm);
    }

    .control-button:hover {
        background: var(--primary-color);
        color: white;
        transform: scale(1.05);
    }

    .control-button.play-button {
        width: 55px;
        height: 55px;
        background: var(--primary-color);
        color: white;
        border: 1px solid var(--primary-color);
    }

    /* 通用区域移动端优化 */
    section {
        padding: 5rem 1.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .section-header {
        text-align: center;
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: var(--text-primary);
        letter-spacing: -0.5px;
    }

    .title-underline {
        width: 60px;
        height: 3px;
        background: var(--gradient-primary);
        margin: 0 auto;
        border-radius: 1.5px;
    }

    /* 关于部分移动端优化 */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-intro {
        font-size: 1rem;
        line-height: 1.7;
        color: var(--text-secondary);
        margin-bottom: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2.5rem;
    }

    .stat-item {
        padding: 1.75rem;
        background: #FFFFFF;
        border-radius: var(--border-radius-xl);
        border: 1px solid var(--border-color);
        text-align: center;
        box-shadow: var(--shadow-sm);
        transition: all 0.3s ease;
    }

    .stat-item:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }

    .stat-number {
        font-size: 2.2rem;
        font-weight: 700;
        color: var(--primary-color);
        margin-bottom: 0.75rem;
    }

    .stat-label {
        color: var(--text-secondary);
        font-size: 0.95rem;
        font-weight: 500;
    }

    /* 代码块移动端优化 */
    .code-block {
        margin: 0 auto;
        max-width: 320px;
        background: #FFFFFF;
        border-radius: var(--border-radius-lg);
        border: 1px solid var(--border-color);
        overflow: hidden;
        box-shadow: var(--shadow-md);
    }

    .code-header {
        padding: 1rem 1.25rem;
        background: #F1F5F9;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        gap: 0.75rem;
    }

    .code-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
    }

    .code-dot.red { background: #EF4444; }
    .code-dot.yellow { background: #F59E0B; }
    .code-dot.green { background: #10B981; }

    .code-content {
        padding: 1.75rem;
        font-family: var(--font-mono);
        font-size: 0.8rem;
        overflow-x: auto;
        background: #F8FAFC;
    }

    /* 技能部分移动端优化 */
    .skills-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-card {
        background: #FFFFFF;
        border-radius: var(--border-radius-lg);
        padding: 2rem;
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
        transition: all 0.3s ease;
    }

    .skill-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }

    .skill-icon {
        width: 60px;
        height: 60px;
        background: rgba(59, 130, 246, 0.1);
        border-radius: 12px;
        margin-bottom: 1.5rem;
        color: var(--primary-color);
        border: 1px solid rgba(59, 130, 246, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .skill-icon svg {
        width: 28px;
        height: 28px;
    }

    .skill-title {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: var(--text-primary);
    }

    .skill-description {
        font-size: 0.95rem;
        color: var(--text-secondary);
        margin-bottom: 1.75rem;
        line-height: 1.6;
    }

    .skill-bar {
        height: 6px;
        background: #E2E8F0;
        border-radius: 3px;
        overflow: hidden;
    }

    .skill-progress {
        height: 100%;
        background: var(--gradient-primary);
        border-radius: 3px;
        width: 0;
        transition: width 1.5s ease;
    }

    /* 项目部分移动端优化 */
    .projects-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-card {
        background: #FFFFFF;
        border-radius: var(--border-radius-lg);
        overflow: hidden;
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
        transition: all 0.3s ease;
    }

    .project-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }

    .project-image {
        height: 200px;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(249, 115, 22, 0.1) 100%);
        position: relative;
        overflow: hidden;
        border-bottom: 1px solid var(--border-color);
    }

    .project-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(59, 130, 246, 0.6) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: all 0.3s ease;
        transform: translateY(20px);
    }

    .project-card:hover .project-overlay {
        opacity: 1;
        transform: translateY(0);
    }

    .project-tech {
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 1.5rem;
    }

    .project-tech span {
        padding: 0.5rem 1rem;
        background: rgba(59, 130, 246, 0.1);
        border: 1px solid var(--primary-color);
        border-radius: 20px;
        font-size: 0.8rem;
        color: var(--primary-color);
    }

    .project-info {
        padding: 2rem;
    }

    .project-title {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: var(--text-primary);
    }

    .project-description {
        font-size: 0.95rem;
        color: var(--text-secondary);
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    /* 联系部分移动端优化 */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-item {
        display: flex;
        gap: 1.25rem;
        padding: 1.75rem;
        background: #FFFFFF;
        border-radius: var(--border-radius-lg);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
        transition: all 0.3s ease;
    }

    .contact-item:hover {
        transform: translateX(10px);
        box-shadow: var(--shadow-md);
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        background: rgba(59, 130, 246, 0.1);
        border-radius: 10px;
        color: var(--primary-color);
        flex-shrink: 0;
        border: 1px solid rgba(59, 130, 246, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact-icon svg {
        width: 24px;
        height: 24px;
    }

    .contact-details h4 {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: var(--text-primary);
    }

    .contact-details p {
        font-size: 0.95rem;
        color: var(--text-secondary);
        line-height: 1.5;
    }

    /* 联系表单移动端优化 */
    .contact-form {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
        background: #FFFFFF;
        border-radius: var(--border-radius-lg);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 1rem 1.25rem;
        background: #F8FAFC;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius-md);
        color: var(--text-primary);
        font-size: 1rem;
        font-family: var(--font-main);
        transition: all 0.3s ease;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .form-group textarea {
        resize: vertical;
        min-height: 150px;
    }

    .form-group button {
        align-self: center;
        padding: 1rem 2rem;
        font-size: 1rem;
        font-weight: 600;
    }

    /* 页脚移动端优化 */
    .footer {
        padding: 3rem 1.5rem;
        background: #FFFFFF;
        border-top: 1px solid var(--border-color);
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .footer-logo {
        font-size: 1.2rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: var(--text-primary);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-logo .logo-text {
        color: var(--text-primary);
    }

    .footer-logo .logo-dot {
        color: var(--primary-color);
        font-size: 1.4rem;
        font-weight: 900;
    }

    .footer-social {
        display: flex;
        gap: 1.25rem;
    }

    .social-link {
        width: 42px;
        height: 42px;
        background: #F1F5F9;
        border: 1px solid var(--border-color);
        border-radius: 50%;
        color: var(--text-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-sm);
    }

    .social-link:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
    }

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

    .footer-copyright {
        color: var(--text-secondary);
        font-size: 0.85rem;
        text-align: center;
        margin-top: 1rem;
    }

    .footer-copyright::before {
        content: '';
        display: block;
        width: 60px;
        height: 2px;
        background: var(--primary-color);
        margin: 0 auto 1.25rem;
        border-radius: 1px;
    }

    /* 滚动指示器 */
    .scroll-indicator {
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        animation: bounce 2s infinite;
    }

    .scroll-arrow {
        width: 20px;
        height: 20px;
        border-right: 2px solid var(--primary-color);
        border-bottom: 2px solid var(--primary-color);
        transform: rotate(45deg);
        animation: arrowMove 1.5s infinite;
    }

    /* 动画定义 */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes wave {
        0%, 100% {
            transform: scaleY(0.5);
        }
        50% {
            transform: scaleY(1);
        }
    }

    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateY(0) translateX(-50%);
        }
        40% {
            transform: translateY(-15px) translateX(-50%);
        }
        60% {
            transform: translateY(-7.5px) translateX(-50%);
        }
    }

    @keyframes arrowMove {
        0% {
            opacity: 0;
            transform: rotate(45deg) translateX(-8px) translateY(-8px);
        }
        50% {
            opacity: 1;
            transform: rotate(45deg) translateX(0) translateY(0);
        }
        100% {
            opacity: 0;
            transform: rotate(45deg) translateX(8px) translateY(8px);
        }
    }

    /* 响应式调整 */
    @media (max-width: 480px) {
        .hero {
            padding: 7rem 1rem 3rem;
        }

        section {
            padding: 4rem 1rem;
        }

        .container {
            padding: 0 1rem;
        }

        .hero-title {
            font-size: 1.8rem;
        }

        .title-name {
            font-size: 2.2rem;
        }

        .btn {
            min-width: 180px;
            padding: 0.875rem 1.5rem;
            font-size: 0.95rem;
        }

        .music-player {
            padding: 1rem;
            max-width: 280px;
        }

        .player-container {
            padding: 1.5rem;
        }

        .vinyl {
            width: 160px;
            height: 160px;
        }

        .stat-item {
            padding: 1.5rem;
        }

        .stat-number {
            font-size: 2rem;
        }

        .skill-card {
            padding: 1.75rem;
        }

        .project-info {
            padding: 1.75rem;
        }

        .contact-item {
            padding: 1.5rem;
        }

        .contact-form {
            padding: 1.75rem;
        }
    }
}
