/* responsive.css */



/* 添加响应式支持 */
@media screen and (max-width: 1440px) {
    .container,
    .product-card .container {
        padding: 0 20px;
    }
}


/* 大屏幕设备 (1200px 以下) */
@media screen and (max-width: 1900px) {
    .container {
        max-width: 1860px;
    }

    .product-card .container {
        gap: 40px;
    }
}

/* 中等屏幕设备 (992px 以下) */
@media screen and (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    /* 产品卡片改为垂直布局 */
    .product-card .container {
        flex-direction: column;
        gap: 30px;
    }

    .product-info,
    .product-preview {
        width: 100%;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    /* 页脚改为两列布局 */
    .footer-content {
        flex-wrap: wrap;
        gap: 30px;
    }

    .footer-section {
        flex: 0 0 calc(50% - 15px);
    }
}

/* 平板设备 (768px 以下) */
@media screen and (max-width: 768px) {
    .container {
        max-width: 540px;
    }

    /* 导航栏改为汉堡菜单 */
    .nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .product-preview {
        flex-direction: column;
        align-items: center;
    }

    .preview-img {
        max-width: 80%;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-btn {
        width: 100%;
        text-align: center;
    }
}

/* 手机设备 (576px 以下) */
@media screen and (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .product-card {
        padding: 40px 0;
    }

    .product-title {
        font-size: 24px;
    }

    .product-tags {
        flex-wrap: wrap;
    }

    .footer-section {
        flex: 0 0 100%;
    }

    .rotating-text {
        width: 80px;
        height: 80px;
    }

    .rotating-text svg {
        width: 80px;
        height: 80px;
    }
}

/* 超小屏幕设备 (360px 以下) */
@media screen and (max-width: 360px) {
    .hero-title {
        font-size: 24px;
    }

    .product-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .preview-img {
        max-width: 100%;
    }
}

/* 针对导航栏的汉堡菜单样式 */
.hamburger {
    display: none;
    cursor: pointer;
    border: none;
    background: none;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s;
}

.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(7px, -6px);
}
