/* 响应式样式 - 手机自适应 */

/* 汉堡菜单默认隐藏 */
.mobile-menu-btn {
    display: none;
}

/* ==================== 通用响应式 ==================== */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px !important;
    }

    /* 隐藏桌面端元素 */
    .hide-mobile {
        display: none !important;
    }
}

/* ==================== Header 响应式 ==================== */
@media screen and (max-width: 768px) {
    .header-container {
        padding: 0 15px;
        height: 60px;
        position: relative;
        justify-content: space-between;
    }

    .header-logo {
        flex: 0 0 auto;
    }

    .header-logo img {
        height: 35px;
        max-width: 140px;
    }

    .header-container .header-nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 20px;
        overflow-y: auto;
        z-index: 999;
    }

    .header-nav.active {
        display: block;
        height: calc(100vh - 60px);
        padding-top: 0;
    }

    .header-nav a {
        border-bottom: 1px solid #eee;
        font-size: 16px;
    }

    .header-nav a.active::after {
        display: none;
    }

    .nav-item {
        padding: 10px 0 !important;
        width: 100%;
    }

    .nav-item a {
        height: max-content !important;
        line-height: 1 !important;
    }

    .sub-menu {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        padding: 0 0 0 20px !important;
        background: transparent !important;
    }

    .nav-item .sub-menu {
        opacity: 1;
        visibility: visible;
    }

    .sub-menu .sub-menu-container {
        padding: 0 !important;
    }

    .sub-menu-container .sub-menu-grid {
        display: block;
    }

    .sub-menu-grid a {
        padding: 10px 0;
        background: none;
        min-height: max-content;
        border-radius: 0;
    }

    .sub-menu-grid .sub-menu-icon {
        display: none;
    }

    .sub-menu-grid .sub-menu-header {
        padding: 0;
        border-bottom: none;
        margin-bottom: 5px;
        font-size: 16px;
    }

    .sub-menu-header h4 {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .sub-menu-item p {
        font-size: 12px !important;
    }

    /* 隐藏登录注册和电话 */
    .header-actions {
        display: none !important;
    }

    .header-phone {
        display: none !important;
    }

    /* 汉堡菜单按钮 - 右上角 */
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 30px;
        cursor: pointer;
        order: 999;
        margin-left: auto;
    }

    .mobile-menu-btn span {
        display: block;
        width: 22px;
        height: 2px;
        background: #333;
        margin: 3px 0;
        transition: all 0.3s;
    }

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

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -5px);
    }

    .contact-modal-body {
        flex-direction: column !important;
    }

    .contact-modal-body .contact-modal-left {
        text-align: center;
    }
}

/* ==================== Banner 响应式 ==================== */
@media screen and (max-width: 768px) {
    .banner-section {
        min-height: 300px;
    }

    .banner-content {
        padding: 30px 15px;
    }

    .banner-title {
        font-size: 24px !important;
    }

    .banner-subtitle {
        font-size: 14px !important;
    }

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

/* ==================== 首页模块响应式 ==================== */
@media screen and (max-width: 768px) {
    /* 通用标题 */
    .section-title {
        font-size: 22px !important;
        margin-bottom: 10px !important;
    }

    .section-subtitle {
        font-size: 13px !important;
        margin-bottom: 30px !important;
    }

    /* 核心业务模块 */
    .core-business {
        padding: 40px 0 !important;
    }

    .business-tabs {
        flex-wrap: wrap;
        gap: 10px !important;
    }

    .business-tab {
        padding: 10px 15px !important;
        font-size: 13px !important;
    }

    .business-content {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .business-left,
    .business-right {
        width: 100% !important;
    }

    .business-right {
        margin-top: 20px;
    }

    .business-right img {
        max-width: 100%;
        height: auto;
    }

    .business-header .business-number {
        font-size: 36px !important;
    }

    .business-header h3 {
        font-size: 18px !important;
    }

    .business-features {
        gap: 15px !important;
    }

    .feature-item h4 {
        font-size: 15px !important;
    }

    .feature-item p {
        font-size: 13px !important;
    }

    /* 智慧农业模块 */
    .smart-agriculture {
        padding: 40px 0 !important;
    }

    .agriculture-content {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .agriculture-left,
    .agriculture-right {
        width: 100% !important;
        height: max-content !important;
    }

    /*.agriculture-left h2 {*/
    /*    font-size: 22px !important;*/
    /*}*/

    .agriculture-left p {
        font-size: 14px !important;
    }

    .agriculture-right {
        margin-top: 20px;
    }

    .agriculture-right img {
        max-width: 100%;
        height: auto;
    }

    /* 六大核心功能模块 */
    .core-functions {
        padding: 40px 0 !important;
    }

    .functions-header {
        flex-direction: column !important;
        gap: 20px !important;
        margin-bottom: 20px !important;
    }

    .functions-header-left,
    .functions-header-right {
        width: 100% !important;
    }

    /*.functions-title {*/
    /*    font-size: 22px !important;*/
    /*}*/

    .functions-tabs {
        flex-wrap: wrap;
        gap: 8px !important;
    }

    .function-tab {
        padding: 8px 15px !important;
        font-size: 13px !important;
    }

    .functions-content {
        flex-direction: column !important;
    }

    .functions-left,
    .functions-right {
        width: 100% !important;
    }

    .functions-left h3 {
        font-size: 18px !important;
    }

    .functions-left p {
        font-size: 14px !important;
    }

    .functions-right {
        margin-top: 20px;
    }

    .functions-right img {
        max-width: 100%;
        height: auto;
    }

    /* 适用于多个行业模块 */
    .industry-application {
        padding: 40px 0 !important;
    }

    .industry-content {
        flex-direction: column !important;
    }

    .industry-left,
    .industry-right {
        width: 100% !important;
    }

    /*.industry-left h2 {*/
    /*    font-size: 22px !important;*/
    /*}*/

    .industry-tabs {
        flex-wrap: wrap;
        gap: 10px !important;
    }

    .industry-tab {
        padding: 10px 15px !important;
        font-size: 13px !important;
    }

    .industry-right {
        margin-top: 20px;
    }

    .industry-right img {
        max-width: 100%;
        height: auto;
    }

    /* 解决方案模块 */
    .marketing-solutions {
        padding: 40px 0 !important;
    }

    .solutions-main-title {
        font-size: 20px !important;
    }

    .solutions-main-subtitle {
        font-size: 13px !important;
    }

    .solutions-layout {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .solutions-sidebar {
        width: 100% !important;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
        height: max-content !important;
    }

    .solution-tab {
        padding: 10px 15px !important;
        font-size: 13px !important;
    }

    .solutions-main-wrapper {
        width: 100% !important;
    }

    .solution-header {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .solution-header h3 {
        font-size: 18px !important;
    }

    .solution-images {
        flex-direction: column !important;
    }

    .solution-image-item {
        width: 100% !important;
    }

    /* 专业执行活动服务模块 */
    .professional-services {
        padding: 40px 0 !important;
    }

    .services-layout {
        flex-direction: column !important;
    }

    .services-left,
    .services-right {
        width: 100% !important;
    }

    /*.services-title {*/
    /*    font-size: 22px !important;*/
    /*}*/

    /*.services-desc {*/
    /*    font-size: 16px !important;*/
    /*}*/

    .services-features {
        flex-wrap: wrap;
        gap: 10px !important;
    }

    .service-feature {
        font-size: 13px !important;
    }

    .services-buttons {
        flex-direction: column;
        gap: 10px !important;
    }

    .services-buttons a {
        width: 100%;
        text-align: center;
    }

    .services-right {
        margin-top: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .service-card {
        padding: 20px !important;
    }

    /* 品牌企业案例展示模块 */
    .brand-cases {
        padding: 40px 0 !important;
    }

    .brand-header {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .brand-title {
        font-size: 20px !important;
    }

    .brand-tabs {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .brand-tab {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    .brand-cases-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .brand-case-card h3 {
        font-size: 14px !important;
    }

    .brand-case-card p {
        font-size: 12px !important;
    }

    /* 立即咨询区域 */
    .contact-section {
        padding: 40px 0 !important;
    }

    .contact-main-title {
        font-size: 22px !important;
    }

    .container .contact-cards {
        display: block;
    }

    .contact-card {
        width: 100% !important;
        padding: 25px !important;
    }

    .contact-card.contact-card-qrcode {
        align-items: center;
        flex-direction: column;
    }

    .contact-card .contact-info-wrapper {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    .contact-card-left,
    .contact-card .contact-info-left,
    .contact-card .contact-info-right {
        text-align: center;
    }

    .contact-phone-number {
        font-size: 24px !important;
    }
}

/* ==================== 产品与服务页面响应式 ==================== */
@media screen and (max-width: 768px) {
    .product-section {
        padding: 40px 0 !important;
    }

    .product-container {
        padding: 0 15px;
    }

    .product-content {
        flex-direction: column !important;
    }

    .product-left,
    .product-right {
        width: 100% !important;
    }

    .product-tag {
        font-size: 12px !important;
    }

    .product-title {
        font-size: 22px !important;
    }

    .product-desc {
        font-size: 14px !important;
    }

    .product-btn {
        width: 100%;
        text-align: center;
    }

    .product-right {
        margin-top: 20px;
    }

    .product-right img {
        max-width: 100%;
        height: auto;
    }

    .product-features {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

/* ==================== 解决方案页面响应式 ==================== */
@media screen and (max-width: 768px) {
    .solution-section {
        padding: 40px 0 !important;
    }

    .solution-container {
        padding: 0 15px;
    }

    .solution-content {
        flex-direction: column !important;
    }

    .solution-left,
    .solution-right {
        width: 100% !important;
    }

    .solution-title {
        font-size: 22px !important;
    }

    .solution-desc {
        font-size: 14px !important;
    }

    .solution-right {
        margin-top: 20px;
    }

    .solution-right img {
        max-width: 100%;
        height: auto;
    }

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

    .solution-tabs {
        flex-wrap: wrap;
        gap: 10px !important;
    }

    .solution-tab {
        padding: 10px 15px !important;
        font-size: 13px !important;
    }
}

/* ==================== 案例模板页面响应式 ==================== */
@media screen and (max-width: 768px) {
    .cases-section {
        padding: 40px 0 !important;
    }

    .cases-container {
        padding: 0 15px;
    }

    .cases-title {
        font-size: 22px !important;
    }

    .cases-tabs {
        flex-wrap: wrap;
        gap: 10px !important;
    }

    .cases-tab {
        padding: 8px 15px !important;
        font-size: 13px !important;
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .case-card {
        /*padding: 15px !important;*/
    }

    .case-card h3 {
        font-size: 14px !important;
    }

    .case-card p {
        font-size: 12px !important;
    }
}

/* ==================== 合作渠道页面响应式 ==================== */
@media screen and (max-width: 768px) {
    .process-grid,
    .contact-cards-partner {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .advantage-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .process-grid .process-arrow {
        transform: rotate(90deg);
        margin: 0;
        align-self: center;
    }

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

    .contact-card-partner {
        padding: 20px 0 !important;
    }

    .contact-cards-partner .contact-card-qrcode-partner {
        flex-direction: column;
        justify-content: center;
    }

    .contact-card-partner .contact-card-left-partner {
        text-align: center;
    }

    .contact-card-partner .contact-info-wrapper-partner {
        display: block;
        text-align: center;
    }

    .contact-info-wrapper-partner .contact-info-right-partner {
        text-align: center;
        margin-top: 10px;
    }
}

/* ==================== 关于我们页面响应式 ==================== */
@media screen and (max-width: 768px) {
    .about-section {
        padding: 40px 0 !important;
    }

    .about-container {
        padding: 0 15px;
    }

    .about-content {
        flex-direction: column !important;
    }

    .about-left,
    .about-right {
        width: 100% !important;
    }

    .about-title {
        font-size: 22px !important;
    }

    .about-desc {
        font-size: 14px !important;
    }

    .about-right {
        margin-top: 20px;
    }

    .about-right img {
        max-width: 100%;
        height: auto;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 20px !important;
    }

    .stat-item {
        width: calc(50% - 10px);
    }

    .stat-number {
        font-size: 28px !important;
    }

    .stat-label {
        font-size: 13px !important;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .timeline {
        padding-left: 20px !important;
    }

    .timeline-item {
        padding-left: 20px !important;
    }

    .timeline-year {
        font-size: 16px !important;
    }

    .timeline-content {
        font-size: 14px !important;
    }
}

/* ==================== Footer 响应式 ==================== */
@media screen and (max-width: 768px) {
    .footer {
        padding: 40px 0 20px !important;
        padding-bottom: 80px !important;
    }

    .footer-container {
        padding: 0 15px;
    }

    .footer-main {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .footer-brand {
        width: 100% !important;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-qrcode {
        margin: 15px auto;
    }

    .footer-section {
        width: 100% !important;
    }

    .footer-section h3 {
        font-size: 16px !important;
        margin-bottom: 15px !important;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .footer-links li {
        width: calc(50% - 5px);
    }

    .footer-contact {
        width: 100% !important;
    }

    .footer-contact-phone {
        font-size: 22px !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center;
        padding-top: 20px !important;
    }

    .footer-bottom-left {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .footer-bottom-left a,
    .footer-bottom-left span {
        font-size: 12px !important;
    }
}

/* ==================== 联系我们弹窗响应式 ==================== */
@media screen and (max-width: 768px) {
    .contact-modal-content {
        width: 90% !important;
        min-width: auto !important;
        padding: 30px 20px !important;
    }

    .contact-modal-title {
        font-size: 20px !important;
    }

    .contact-modal-subtitle {
        font-size: 13px !important;
    }

    .contact-modal-qrcode {
        width: 150px !important;
        height: 150px !important;
    }

    .contact-modal-phone {
        font-size: 18px !important;
    }

    .contact-modal-tip {
        font-size: 12px !important;
    }
}

/* ==================== 新闻页面响应式 ==================== */
@media screen and (max-width: 768px) {
    .news-section {
        padding: 40px 0 !important;
    }

    .news-container {
        padding: 0 15px;
    }

    .news-title {
        font-size: 22px !important;
    }

    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .news-card {
        padding: 15px !important;
    }

    .news-card h3 {
        font-size: 16px !important;
    }

    .news-card p {
        font-size: 13px !important;
    }

    .news-date {
        font-size: 12px !important;
    }
}

/* ==================== 合作伙伴页面响应式 ==================== */
@media screen and (max-width: 768px) {
    .partner-section {
        padding: 40px 0 !important;
    }

    .partner-container {
        padding: 0 15px;
    }

    .partner-title {
        font-size: 22px !important;
    }

    .partner-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .partner-item {
        padding: 15px !important;
    }

    .partner-item img {
        max-height: 40px;
    }
}

/* ==================== 按钮通用响应式 ==================== */
@media screen and (max-width: 768px) {
    .btn-primary,
    .btn-detail,
    .btn-outline {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}

/* ==================== 小屏幕额外优化 ==================== */
@media screen and (max-width: 480px) {
    .brand-cases-grid {
        grid-template-columns: 1fr !important;
    }

    .cases-grid {
        grid-template-columns: 1fr !important;
    }

    .team-grid {
        grid-template-columns: 1fr !important;
    }

    .partner-grid {
        grid-template-columns: 1fr !important;
    }

    .stat-item {
        width: 100%;
    }
}
