/* 响应式样式 */

/* 平板设备 (1024px 及以下) */
@media (max-width: 1024px) {
    .navbar {
        padding: 1.2rem 4%;
    }

    .navbar-brand {
        font-size: 1.6rem;
    }

    .nav-links {
        gap: 1.8rem;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    .about-home {
        padding: 4.5rem 32px;
    }

    .about-home-container {
        gap: 3rem;
    }

    .about-home-text h2 {
        font-size: 1.9rem;
    }

    .about-home-desc {
        font-size: 1rem;
    }

    .about-home-stats {
        gap: 2rem;
    }

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

    .advantages {
        padding: 4.5rem 4%;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .advantage-card {
        padding: 2rem 1.2rem;
    }

    .advantage-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .advantage-card h3 {
        font-size: 1.1rem;
    }

    /* 案例展示响应式 */
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* 新闻中心响应式 */
    .news {
        padding: 4.5rem 4%;
    }

    .news-tabs {
        margin-bottom: 2.5rem;
    }

    .news-tab {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .products {
        padding: 4.5rem 4%;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content,
    .contact-content {
        padding: 4.5rem 4%;
    }

    .contact-grid {
        gap: 2.5rem;
    }

    .footer-main {
        gap: 2.5rem;
    }
}

/* 平板/大屏手机 (768px 及以下) */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 3%;
    }

    .navbar.scrolled {
        padding: 0.8rem 3%;
    }

    .logo-img {
        height: 28px;
    }

    .navbar-brand {
        font-size: 1.1rem;
        max-width: 78%;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .about-home {
        padding: 3.5rem 24px;
    }

    .about-home-container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .about-home-text {
        text-align: center;
    }

    .about-home-text h2 {
        font-size: 1.8rem;
    }

    .about-home-label {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .about-home-desc {
        font-size: 0.95rem;
    }

    .about-home-stats {
        gap: 1.5rem;
        justify-content: center;
    }

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

    .stat-label {
        font-size: 0.8rem;
    }

    .products {
        padding: 0.5rem 3% 3rem;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .section-title p {
        font-size: 1.05rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

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

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-card {
        padding: 0;
    }

    .product-image-wrapper {
        aspect-ratio: 4 / 3;
    }

    .product-info {
        padding: 1rem;
    }

    .product-info h3 {
        font-size: 1.1rem;
    }

    .product-model {
        font-size: 0.8rem;
    }

    .page-header {
        height: 24vh;
        /* 避开固定导航栏，防止遮挡标题 */
        padding-top: 80px;
        box-sizing: border-box;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .about-content,
    .contact-content {
        padding: 3.5rem 3%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info,
    .contact-form {
        padding: 2rem 1.5rem;
    }

    .contact-info h3,
    .contact-form h3 {
        font-size: 1.6rem;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .info-icon {
        margin-right: 0;
        font-size: 1.6rem;
    }

    .map-section {
        margin-top: 2.5rem;
    }

    .map-placeholder {
        height: 300px;
        font-size: 1.1rem;
    }

    .footer {
        padding: 3rem 3% 1.5rem;
    }

    .footer-main {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }
}

/* 手机设备 (576px 及以下) */
@media (max-width: 576px) {
    .navbar {
        padding: 0.9rem 2.5%;
    }

    .navbar.scrolled {
        padding: 0.7rem 2.5%;
    }

    .logo-img {
        height: 26px;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .products {
        padding: 0.3rem 2.5% 2.5rem;
    }

    .about-home {
        padding: 3rem 22px;
    }

    .about-home-text h2 {
        font-size: 1.6rem;
    }

    .about-home-label {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .about-home-desc {
        font-size: 0.9rem;
    }

    .about-home-stats {
        gap: 1.2rem;
    }

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

    .section-title h2 {
        font-size: 1.9rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-info {
        padding: 0.8rem;
    }

    .product-info h3 {
        font-size: 1rem;
    }

    .page-header {
        height: 22vh;
        /* 避开固定导航栏，防止遮挡标题 */
        padding-top: 70px;
        box-sizing: border-box;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .about-content,
    .contact-content {
        padding: 3rem 2.5%;
    }

    .contact-info,
    .contact-form {
        padding: 1.8rem 1.2rem;
    }

    .contact-info h3,
    .contact-form h3 {
        font-size: 1.5rem;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 0.9rem;
    }

    .submit-button {
        padding: 1rem;
        font-size: 1rem;
    }

    .map-placeholder {
        height: 250px;
        font-size: 1rem;
    }
}

/* 小屏手机 (480px 及以下) */
@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 2%;
    }

    .logo-img {
        height: 24px;
    }

    .navbar-brand {
        font-size: 0.9rem;
    }

    .products {
        padding: 0.2rem 2% 2rem;
    }

    .about-home {
        padding: 2.5rem 20px;
    }

    .about-home-text h2 {
        font-size: 1.4rem;
    }

    .about-home-desc {
        font-size: 0.85rem;
    }

    .about-home-stats {
        gap: 1rem;
    }

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

    .stat-label {
        font-size: 0.75rem;
    }

    .about-home-btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .product-info {
        padding: 0.6rem;
    }

    .product-info h3 {
        font-size: 0.9rem;
    }

    .product-model {
        font-size: 0.75rem;
    }

    .page-header {
        height: 20vh;
        /* 避开固定导航栏，防止遮挡标题 */
        padding-top: 64px;
        box-sizing: border-box;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .about-content,
    .contact-content {
        padding: 2.5rem 2%;
    }

    .contact-info,
    .contact-form {
        padding: 1.6rem 1rem;
    }

    .footer {
        padding: 2.5rem 2% 1rem;
    }

    .footer-main {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding-bottom: 2rem;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
        padding-bottom: 0.5rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }
}
