@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 40px;
        width: 100%;
        height: 300px;
    }

    .hero-video {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        height: 100%;
        display: block;
    }

    .hero-video-player {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .features-grid,
    .integration-grid,
    .scenarios-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
    }

    /* 重置网格位置，确保在移动设备上正常显示 */
    .scenario-card:nth-child(2).large,
    .scenario-card:nth-child(4).large,
    .scenario-card.small,
    .scenario-card.medium,
    .scenario-card.tall {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: row;
        gap: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-light);
        flex-direction: column;
        gap: 2rem;
        padding: 80px 20px;
        transition: right 0.3s;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    }

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

    .nav-cta {
        display: none;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 30px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        margin-bottom: 30px;
    }

    .hero-note {
        font-size: 14px;
        margin-top: 20px;
    }

    .card-body {
        grid-template-columns: 1fr;
    }

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

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

    .features-grid,
    .integration-grid,
    .scenarios-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card,
    .integration-card,
    .scenario-card {
        padding: 24px;
        margin-bottom: 0;
    }

    .feature-icon,
    .integration-icon,
    .scenario-icon {
        font-size: 40px;
        margin-bottom: 16px;
    }

    .feature-title,
    .integration-title,
    .scenario-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .feature-description,
    .integration-description,
    .scenario-description {
        font-size: 14px;
        line-height: 1.5;
    }

    .scenario-video.portrait .scenario-video-player {
        width: 100% !important;
        height: auto !important;
        max-height: 400px;
    }

    .scenario-card.large .scenario-video-player {
        height: 300px !important;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-text {
        text-align: center;
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        text-align: center;
    }

    .footer-logo {
        width: 28px;
        height: 28px;
    }

    .footer-brand .logo-text {
        font-size: 20px;
    }

    .footer-tagline {
        font-size: 12px;
    }

    .comparison-table {
        font-size: 14px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }

    .arch-content {
        flex-direction: column;
    }

    .arch-item {
        width: 100%;
        text-align: center;
    }

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

    .download-card {
        padding: 30px 20px;
    }

    .download-icon {
        font-size: 40px;
    }

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

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

    .download-info {
        padding: 30px 20px;
    }

    .system-requirements {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .system-requirements li {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        width: 32px;
        height: 32px;
    }

    .logo-text {
        font-size: 24px;
    }

    .tagline {
        font-size: 12px;
    }

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

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

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

    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .btn-large {
        padding: 12px 24px;
        font-size: 14px;
    }

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

    .feature-card,
    .integration-card,
    .scenario-card {
        padding: 20px;
    }

    .feature-icon,
    .integration-icon,
    .scenario-icon {
        font-size: 36px;
    }

    .feature-title,
    .integration-title,
    .scenario-title {
        font-size: 18px;
    }

    .comparison-table {
        font-size: 12px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 8px 4px;
    }

    .comparison-table th:nth-child(2),
    .comparison-table th:nth-child(3) {
        display: none;
    }

    .comparison-table td:nth-child(2),
    .comparison-table td:nth-child(3) {
        display: none;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 24px;
    }

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

    .nav-menu {
        font-size: 14px;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f5f5f5;
        --text-secondary: #b0b0b0;
        --bg-light: #1a1a1a;
        --bg-gray: #2d2d2d;
        --border-color: #404040;
    }

    .navbar {
        background: rgba(26, 26, 26, 0.95);
    }

    .feature-card,
    .integration-card,
    .arch-layer,
    .comparison-table table {
        background: #2d2d2d;
    }

    .integration-card {
        border-left-color: var(--secondary-color);
    }

    .integration-example {
        background: #1a1a1a;
    }

    .arch-item {
        background: #1a1a1a;
        border-color: #404040;
    }
}

@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(26, 26, 26, 0.98);
    }
}

@media print {
    .navbar,
    .hero-cta,
    .contact-cta,
    .footer {
        display: none;
    }

    .hero {
        background: white;
        color: black;
        padding: 40px 0;
    }

    .hero-title .highlight {
        color: black;
    }

    .feature-card,
    .integration-card,
    .scenario-card,
    .arch-layer {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .scenario-card {
        background: white;
        color: black;
    }
}
