/* ========================================
 * 企业官网 - 响应式样式
 * 与 Bootstrap 3 断点对齐
 * ======================================== */

/* --- 小桌面 (≤1200px) --- */
@media (max-width: 1200px) {
    .ent-products-cates {
        grid-template-columns: repeat(4, 1fr);
    }
    .ent-footer__main {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 24px;
    }
}

/* --- 平板 (≤992px) --- */
@media (max-width: 992px) {
    /* 导航 */
    .ent-hamburger {
        display: block;
        position: relative;
        float: right;
        margin-right: 15px;
        padding: 9px 10px;
        margin-top: 8px;
        margin-bottom: 8px;
        background-color: transparent;
        background-image: none;
        border: 1px solid transparent;
        border-radius: 3px;
    }
    .ent-hamburger:focus {
        outline: 0;
    }
    .ent-hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 1px;
        background-color: var(--text-primary);
        transition: all 0.3s ease;
    }
    .ent-hamburger span + span {
        margin-top: 4px;
    }
    .ent-nav__menu {
        display: none;
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        padding: 70px 20px 20px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        -webkit-box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
        z-index: 999;
        transition: right 0.3s ease;
    }
    .ent-nav__menu.open {
        display: flex;
        right: 0;
    }
    .ent-nav__item {
        margin-left: 0;
        width: 100%;
    }
    .ent-nav__link {
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-color);
    }
    .ent-nav__link::after {
        display: none;
    }

    /* 移动端下拉菜单样式 */
    .ent-nav__item--has-dropdown > .ent-nav__dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        -webkit-box-shadow: none;
        border-top: none;
        border-radius: 0;
        background: var(--bg-light);
        padding: 0;
        display: none;
        min-width: auto;
    }
    .ent-nav__item--has-dropdown.submenu-open > .ent-nav__dropdown {
        display: block;
    }
    .ent-nav__dropdown-item {
        padding: 10px 16px 10px 32px;
        font-size: 13px;
        border-bottom: 1px solid var(--border-color);
    }
    .ent-nav__dropdown-item:hover {
        padding-left: 38px;
    }
    .ent-nav__dropdown-item::before {
        display: none;
    }

    /* 移动端Mega Menu */
    .ent-nav__mega {
        width: 100%;
        flex-direction: column;
        border-top: none;
        padding: 0;
    }
    .ent-nav__mega-left {
        flex: none;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 0;
        margin-bottom: 0;
    }
    .ent-nav__mega-cate {
        padding: 10px 16px 10px 32px;
        margin: 0;
    }
    .ent-nav__mega-right {
        padding: 0;
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }
    .ent-nav__mega-product {
        padding: 10px 8px;
    }
    .ent-nav__mega-product i {
        font-size: 22px;
    }

    /* 汉堡按钮旋转动画 */
    .ent-hamburger.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .ent-hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .ent-hamburger.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
    .ent-nav__phone {
        display: none;
    }
    .nav-overlay.show {
        display: block;
    }

    /* Banner */
    .ent-banner {
        margin-top: 64px;
    }
    .ent-banner .swiper-slide {
        height: 400px;
    }
    .ent-banner__content {
        padding-top: 100px;
    }
    .ent-banner__title {
        font-size: 30px;
    }
    .ent-banner__subtitle {
        font-size: 15px;
    }
    .ent-banner-cates__inner {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 产品 */
    .ent-products-cates {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    /* 关于我们 */
    .ent-about-home {
        flex-direction: column;
        gap: 24px;
    }
    .ent-about-home__img {
        flex: none;
        width: 100%;
    }
    .ent-about-home__img::after {
        display: none;
    }

    /* Footer */
    .ent-footer__main {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    /* 页面标题横幅 */
    .ent-page-banner {
        margin-top: 64px;
    }

    /* 移动端底部操作栏显示 */
    .ent-mobile-bar {
        display: block;
    }
    body {
        padding-bottom: 70px; /* 底部操作栏高度 */
    }
}

/* --- 手机 (≤768px) --- */
@media (max-width: 768px) {
    h1, .h1 { font-size: 26px; }
    h2, .h2 { font-size: 22px; }
    h3, .h3 { font-size: 18px; }

    .section {
        padding: 48px 0;
    }
    .section-title {
        margin-bottom: 32px;
    }

    /* Banner */
    .ent-banner .swiper-slide {
        height: 320px;
    }
    .ent-banner__content {
        padding-top: 80px;
    }
    .ent-banner__title {
        font-size: 24px;
    }
    .ent-banner__subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }
    .ent-banner__btn {
        padding: 10px 28px;
        font-size: 14px;
    }
    .ent-banner-cates {
        margin-top: -24px;
    }
    .ent-banner-cates__inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .ent-banner-cate {
        padding: 16px 12px;
    }
    .ent-banner-cate__icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .ent-banner-cate__name {
        font-size: 13px;
    }

    /* 产品 */
    .ent-products-cates {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .ent-products-cate__icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    .ent-products-cate__name {
        font-size: 12px;
    }

    /* 关于我们 */
    .ent-about-home__img img {
        height: 220px;
    }

    /* 解决方案 */
    .ent-solution-card {
        padding: 24px 16px;
    }
    .ent-solution-card__icon {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }

    /* 新闻 */
    .ent-news-tab {
        gap: 20px;
    }
    .ent-news-tab__item {
        font-size: 14px;
    }

    /* 案例 */
    .ent-case-card img {
        height: 140px;
    }

    /* Footer */
    .ent-footer {
        padding: 40px 0 0;
    }
    .ent-footer__main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* 页面标题 */
    .ent-page-banner {
        padding: 40px 0;
    }
    .ent-page-banner h1 {
        font-size: 24px;
    }

    /* 产品详情 */
    .ent-product-detail__gallery img {
        height: 240px;
    }
    .ent-product-detail__thumbs img {
        width: 56px;
        height: 56px;
    }
    .ent-product-detail__info h1 {
        font-size: 20px;
    }

    /* 面包屑 */
    .ent-breadcrumb {
        margin-top: 64px;
        padding: 12px 0;
    }

    /* 内容区 */
    .page-content {
        padding: 32px 0;
    }

    /* 友情链接 */
    .ent-friend-links__list {
        gap: 12px;
    }
}

/* --- 小屏手机 (≤480px) --- */
@media (max-width: 480px) {
    h1, .h1 { font-size: 22px; }
    h2, .h2 { font-size: 20px; }

    .section {
        padding: 36px 0;
    }

    /* Banner */
    .ent-banner .swiper-slide {
        height: 280px;
    }
    .ent-banner__title {
        font-size: 20px;
    }
    .ent-banner-cates__inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* 产品 */
    .ent-products-cates {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 新闻 */
    .ent-news-tab {
        gap: 16px;
    }
    .ent-news-tab__item {
        font-size: 13px;
    }

    /* 产品详情参数表 */
    .ent-product-detail__params th,
    .ent-product-detail__params td {
        padding: 8px 10px;
        font-size: 13px;
    }
    .ent-product-detail__params th {
        width: 100px;
    }
}
