/* 响应式设计 */

/* 大平板设备 (最大宽度 1200px) */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 45% 55%;
        gap: 40px;
        padding: 0 20px;
    }
    
    .software-mockup {
        max-width: 600px;
    }
    
    .volume-controls {
        flex-direction: column;
        gap: 10px;
    }
}

/* 平板设备 (最大宽度 1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

    /* Hero区域 */
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    /* 功能展示 */
    .feature-row {
        gap: 40px;
    }

    .feature-content h3 {
        font-size: 1.8rem;
    }

    /* 价格卡片 */
    .pricing-grid {
        gap: 30px;
    }

    /* 波形图响应式 */
    .waveform-demo {
        height: 180px;
    }
    
    .wave-bar {
        width: 4px;
    }
    
    .waveform-visual {
        gap: 2.5px;
    }

    .pricing-card {
        height: 380px;
    }

    /* 技术栈 */
    .tech-stack {
        gap: 40px;
    }

    .tech-item img {
        width: 60px;
        height: 60px;
    }
}

/* 小平板/大手机 (最大宽度 768px) */
@media (max-width: 768px) {
    /* Hero区域改为上下布局 */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-left {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-right {
        display: none; /* 小屏幕隐藏软件模拟 */
    }
    
    .feature-highlights {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 30px auto;
    }
    
    /* 波形图移动端优化 */
    .waveform-demo {
        height: 150px;
    }
    
    .wave-bar {
        width: 3px;
    }
    
    .waveform-visual {
        gap: 2px;
    }
    
    .particle {
        width: 1.5px;
        height: 1.5px;
    }
    /* 导航栏 */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Hero区域 */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* 功能展示 */
    .feature-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .feature-row.reverse {
        direction: ltr;
    }

    .feature-image {
        order: -1;
    }

    /* 价格卡片 */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 400px;
        margin: 60px auto 0;
    }

    /* 技术栈 */
    .tech-stack {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }
    
    .tech-item {
        flex: 0 0 calc(50% - 15px);
        max-width: 120px;
    }

    /* 底部 */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* 手机设备 (最大宽度 480px) */
@media (max-width: 480px) {
    /* 全局 */
    .container {
        padding: 0 15px;
    }

    /* 导航栏 */
    .nav-brand {
        font-size: 1.2rem;
    }

    .nav-logo {
        width: 30px;
        height: 30px;
    }

    /* Hero区域 */
    .hero {
        min-height: 100vh;
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .version {
        font-size: 1.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    /* 章节标题 */
    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* 技术栈 */
    .tech-stack {
        gap: 20px;
        margin: 40px 0;
    }
    
    .tech-item {
        flex: 0 0 calc(50% - 10px);
        max-width: 100px;
    }
    
    .tech-item img {
        width: 50px;
        height: 50px;
    }
    
    .tech-item span {
        font-size: 0.9rem;
        margin-top: 8px;
    }

    /* 功能展示 */
    .feature-content h3 {
        font-size: 1.5rem;
    }

    .icon-3d {
        font-size: 40px;
    }

    .feature-mockup, .mixer-demo, .lyrics-demo {
        padding: 20px;
    }

    .lyrics-demo {
        font-size: 1.5rem;
    }

    /* 价格卡片 */
    .amount {
        font-size: 2.5rem;
    }

    .card-front, .card-back {
        padding: 30px 20px;
    }

    /* 下载区域 */
    .download-content h2 {
        font-size: 2rem;
    }

    .btn-download {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* 底部 */
    .footer {
        padding: 40px 0 20px;
    }
}

/* 超小屏幕 (最大宽度 360px) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .feature-content h3 {
        font-size: 1.3rem;
    }

    .amount {
        font-size: 2rem;
    }
}

/* 横屏模式优化 */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .scroll-indicator {
        display: none;
    }
}

/* 高分辨率屏幕 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-logo, .footer-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 打印样式 */
@media print {
    .navbar, .hero-buttons, .scroll-indicator, .nav-toggle {
        display: none;
    }

    .hero {
        height: auto;
        padding: 20px 0;
    }

    .pricing-card .card-inner {
        transform: none;
    }

    .card-back {
        display: none;
    }

    * {
        color: #000 !important;
        background: #fff !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #e0e0e0;
        --text-light: #b0b0b0;
        --white: #2a2a2a;
        --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .navbar {
        background: rgba(42, 42, 42, 0.95);
    }

    .hero-bg {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    }

    .features {
        background: var(--white);
    }

    .footer {
        background: #0a0a0a;
    }
}

/* 动画性能优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}