/* 响应式设计 */

/* LOGO响应式 */
@media (max-width: 768px) {
    .logo-img {
        height: 60px;
    }
    
    .admin-logo .logo-img {
        height: 28px;
    }
    
    .admin-logo h1 {
        font-size: 16px;
    }
    
    .login-info .info-logo {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 50px;
    }
    
    .admin-logo .logo-img {
        height: 24px;
    }
    
    .admin-logo h1 {
        font-size: 14px;
    }
}

/* 平板设备 */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 36px;
    }

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

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

    .news-card {
        flex-direction: column;
    }

    .news-date {
        width: 100%;
        flex-direction: row;
        gap: 15px;
        padding: 10px;
        justify-content: center;
    }
}

/* 手机设备 */
@media (max-width: 768px) {
    .navbar .container {
        padding: 0 15px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        gap: 0;
    }

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

    .nav-menu li {
        margin: 10px 0;
    }

    .hamburger {
        display: flex;
    }

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

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

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

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

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content > p {
        font-size: 16px;
    }

    .hero-content .hero-desc {
        font-size: 14px;
    }

    .section {
        padding: 50px 0;
    }

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

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

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

    .about-text h3 {
        font-size: 22px;
    }

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

    .contact-form {
        padding: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* 小屏幕手机 */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 18px;
    }

    .logo .tagline {
        font-size: 10px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

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

    .product-image {
        height: 150px;
        font-size: 48px;
    }

    .product-info h3 {
        font-size: 18px;
    }

    .contact-form h3 {
        font-size: 22px;
    }
}
