/**
 * 移动端样式（≤768px）
 * 在 index.html 中于 index.css 之后引入，仅在小屏生效。
 * PC / 平板样式仍在 index.css（含底部 1180px 自适应）。
 */

@media (max-width: 768px) {
    /* ---------- 通用 ---------- */
    html {
        overflow-x: clip;
    }

    /* ---------- Banner（Figma 375px） ---------- */
    .banner {
        align-items: stretch;
        min-height: 500px;
        height: 500px;
    }

    .banner__slide[data-banner="fanruan"] {
        background-image: url('https://src.fanruan.com/website/fanruan/2024-banner/m-banner.png') !important;
    }

    .banner__slide[data-banner="wufan"] {
        background-image: url('https://src.fanruan.com/2026-website/fanruan/index/image/mbanner-wufan.png') !important;
    }

    .banner__slide[data-banner="dora"] {
        background-image: url('https://src.fanruan.com/2026-website/fanruan/index/image/mbanner-dora.png') !important;
    }

    .banner__slide[data-banner="moss"] {
        background-image: url('https://src.fanruan.com/2026-website/fanruan/index/image/mbanner-moss.png') !important;
    }

    .banner__slide[data-banner="binext"] {
        background-image: url('https://src.fanruan.com/2026-website/fanruan/index/image/mbanner-finebinext.png') !important;
    }

    .banner__slide[data-banner="xiguan"] {
        display: none !important;
    }

    .banner__content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: none;
        height: 100%;
        padding: 28px 38px;
        text-align: center;
    }

    .banner__h1 {
        font-size: 30px;
        margin-bottom: 12px;
    }

    .banner__h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .banner__h3 {
        font-size: 12px;
        margin-bottom: 12px;
        line-height: 1.5;
    }

    .banner h3 br,
    .banner__h3 br {
        display: none;
    }

    .banner__btn {
        width: 110px;
        min-width: 110px;
        max-width: none;
        height: 36px;
        padding: 0 7px 0 14px;
        font-size: 14px;
    }

    .banner__btn-icon {
        width: 22px;
        height: 22px;
    }

    .banner__btn-icon img {
        width: 13px;
    }

    .banner__progress {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 28px;
        display: flex !important;
        justify-content: center;
        margin: 0;
        gap: 8px;
    }

    .banner__progress-item {
        width: 18px;
        height: 5px;
        border-radius: 999px;
        background: #888888;
        overflow: hidden;
    }

    .banner__progress-item.is-active .banner__progress-bar {
        background: #ffffff;
    }

    .banner__progress-bar {
        border-radius: 0;
        background: #ffffff;
    }

    .banner-tabs {
        display: none !important;
    }

    /* ---------- 模块通用（除 Banner） ---------- */
    .ai-center,
    .digital-products,
    .industry-solutions,
    .customer-cases,
    .service-system,
    .brand-power,
    .awards,
    .footer-cta {
        padding-top: 40px;
        padding-bottom: 20px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .ai-center__title,
    .digital-products__title,
    .industry-solutions__title,
    .customer-cases__title,
    .service-system__title,
    .brand-power__title,
    .awards__title,
    .footer-cta__title {
        font-size: 24px;
        line-height: 1.4;
    }

    /* ---------- AI 应用中心（移动端 Tab + 预览面板） ---------- */
    .ai-center__title {
        margin-bottom: 16px;
        padding: 0;
    }

    .ai-center__grid {
        display: none;
    }

    .ai-center__mobile {
        display: block;
    }

    .ai-center__mobile-tabs-row {
        display: flex;
        gap: 12px;
        justify-content: center;
    }

    .ai-center__mobile-tabs-row + .ai-center__mobile-tabs-row {
        margin-top: 12px;
    }

    .ai-center__mobile-tab {
        flex: 0 0 calc((100% - 24px) / 3);
        width: calc((100% - 24px) / 3);
        height: 30px;
        padding: 0 6px;
        border: 1px solid #4D76FF;
        border-radius: 30px;
        background: #FFFFFF;
        font-size: 12px;
        font-weight: 500;
        line-height: 1;
        color: #4D76FF;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .ai-center__mobile-tab.is-active {
        border-color: transparent;
        background: linear-gradient(90deg, #1C5DF6 0.36%, #34E1FF 92.86%);
        color: #FFFFFF;
    }

    .ai-center__mobile-panel {
        position: relative;
        width: 100%;
        height: 310px;
        margin-top: 12px;
        background-color: #f4f6ff;
        border-radius: 8px;
        overflow: hidden;
        isolation: isolate;
    }

    .ai-center__mobile-panel::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        z-index: 0;
        pointer-events: none;
        background-repeat: no-repeat;
        background-position: center bottom;
        background-size: 88% auto;
    }

    .ai-center__mobile-panel--bg-1::before {
        background-image: url('https://src.fanruan.com/2026-website/fanruan/index/image/mpart1-wufan.png');
    }

    .ai-center__mobile-panel--bg-2::before {
        background-image: url('https://src.fanruan.com/2026-website/fanruan/index/image/mpart1-dora.png');
    }

    .ai-center__mobile-panel--bg-3::before {
        background-image: url('https://src.fanruan.com/2026-website/fanruan/index/image/mpart1-moss.png');
    }

    .ai-center__mobile-panel--bg-4::before {
        background-image: url('https://src.fanruan.com/2026-website/fanruan/index/image/mpart1-xiguan.png');
    }

    .ai-center__mobile-panel--bg-5::before {
        background-image: url('https://src.fanruan.com/2026-website/fanruan/index/image/mpart1-fanbei.png');
    }

    .ai-center__mobile-panel-body {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 20px 24px 0;
        text-align: center;
    }

    .ai-center__mobile-panel-logo {
        display: block;
        width: auto;
        height: 28px;
    }

    .ai-center__mobile-panel-name {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        line-height: 1.4;
        color: #000000;
    }

    .ai-center__mobile-panel-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 90px;
        height: 26px;
        border: 1px solid #4D76FF;
        border-radius: 30px;
        background: #FFFFFF;
        font-size: 14px;
        font-weight: 500;
        line-height: 1;
        color: #4D76FF;
        text-decoration: none;
    }

    .ai-center__mobile-panel-btn--disabled {
        cursor: default;
        opacity: 0.6;
    }

    /* ---------- 一站式数字化产品 ---------- */
    .digital-products {
        margin-left: 0;
        margin-right: 0;
        max-width: none;
        border-radius: 0;
        background-color: #ffffff;
    }

    .digital-products__bg {
        display: none;
    }

    .digital-products__title {
        margin-bottom: 24px;
        padding: 0;
    }

    .digital-products__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
        max-width: none;
        margin: 0 auto;
        padding: 0;
    }

    .digital-products__item {
        width: 100%;
        min-width: 0;
    }

    .digital-products__card {
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 0;
        aspect-ratio: auto;
        padding: 20px 12px 24px;
        border-radius: 8px;
        border: 1px solid #D6EDFF;
        box-shadow: 0px 2px 8px 0px #4D76FF1A;
    }

    .digital-products__card:hover {
        transform: none;
        border-color: #D6EDFF;
        box-shadow: 0px 2px 8px 0px #4D76FF1A;
    }

    .digital-products__card h4 {
        font-size: 16px;
    }

    .digital-products__card-title-suffix {
        display: none;
    }

    .digital-products__card p {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .digital-products__card p br {
        display: none;
    }

    .digital-products__visual {
        aspect-ratio: auto;
        height: 120px;
        margin-bottom: 16px;
    }

    .digital-products__btn {
        width: 82px;
        height: 28px;
        font-size: 11px;
    }

    .digital-products__actions {
        gap: 8px;
    }

    /* ---------- 行业解决方案（移动端 Swiper） ---------- */
    .industry-solutions {
        padding-left: 30px;
        padding-right: 0;
        overflow: hidden;
    }

    .industry-solutions__title {
        margin-bottom: 24px;
        padding: 0 30px 0 0;
    }

    .industry-solutions__list {
        display: none !important;
    }

    .industry-solutions__mobile {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .industry-solutions__mobile-swiper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .industry-solutions__mobile-swiper .swiper-wrapper {
        align-items: stretch;
    }

    .industry-solutions__mobile-slide {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        height: 400px;
        padding: 30px;
        border-radius: 8px;
        background-color: #f4f6ff;
        background-repeat: no-repeat;
        background-position: center bottom;
        background-size: cover;
        text-decoration: none;
        color: inherit;
        -webkit-tap-highlight-color: transparent;
    }

    .industry-solutions__mobile-slide--zhizao {
        background-image: url('https://src.fanruan.com/2026-website/fanruan/index/image/mpart3-zhizao1.png');
    }

    .industry-solutions__mobile-slide--xiaofei {
        background-image: url('https://src.fanruan.com/2026-website/fanruan/index/image/mpart3-xiaofei1.png');
    }

    .industry-solutions__mobile-slide--qiche {
        background-image: url('https://src.fanruan.com/2026-website/fanruan/index/image/mpart3-qiche1.png');
    }

    .industry-solutions__mobile-slide--nengyuan {
        background-image: url('https://src.fanruan.com/2026-website/fanruan/index/image/mpart3-nengyuan1.png');
    }

    .industry-solutions__mobile-slide--yiyao {
        background-image: url('https://src.fanruan.com/2026-website/fanruan/index/image/mpart3-yiyao1.png');
    }

    .industry-solutions__mobile-slide--jinrong {
        background-image: url('https://src.fanruan.com/2026-website/fanruan/index/image/mpart3-jinrong1.png');
    }

    .industry-solutions__mobile-slide-title {
        margin: 0 0 8px;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.4;
        color: #000000;
    }

    .industry-solutions__mobile-slide-desc {
        margin: 0;
        font-size: 12px;
        font-weight: 400;
        line-height: 1.5;
        color: #333333;
    }

    .industry-solutions__mobile-slide-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 108px;
        height: 30px;
        margin-top: 12px;
        border: 1px solid #4D76FF;
        border-radius: 30px;
        background: #FFFFFF;
        font-size: 12px;
        font-weight: 500;
        line-height: 1;
        color: #4D76FF;
    }

    .industry-solutions__mobile-pagination {
        position: static !important;
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 16px;
        padding-right: 30px;
        transform: none !important;
    }

    .industry-solutions__mobile-pagination.swiper-pagination-horizontal {
        bottom: auto;
        left: auto;
        width: auto;
    }

    .industry-solutions__mobile-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 3px;
        margin: 0 !important;
        border-radius: 2px;
        background: #555555;
        opacity: 1;
        transition: background-color 0.2s ease;
    }

    .industry-solutions__mobile-pagination .swiper-pagination-bullet-active {
        background: #4D76FF;
    }

    /* ---------- 客户案例 ---------- */
    .customer-cases__inner {
        width: 100%;
        max-width: none;
    }

    .customer-cases__title {
        margin-bottom: 24px;
    }

    .customer-cases__tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .customer-cases__tabs::-webkit-scrollbar {
        display: none;
    }

    .customer-cases__tab {
        flex-shrink: 0;
        height: 40px;
        padding: 0 16px;
        font-size: 14px;
        border-radius: 40px;
    }

    .customer-cases__tab.is-active {
        width: auto;
        min-width: 0;
        padding: 0 18px;
    }

    .customer-cases__hero {
        width: 100%;
        aspect-ratio: auto;
        min-height: 280px;
        padding: 28px 24px;
    }

    .customer-cases__hero-title {
        margin-bottom: 16px;
        font-size: 22px;
    }

    .customer-cases__hero-desc {
        max-width: 100%;
        margin-bottom: 32px;
        font-size: 14px;
    }

    .customer-cases__cards {
        flex-direction: row;
        align-items: stretch;
        gap: 8px;
        margin-top: 8px;
    }

    .customer-cases__card {
        flex: 1;
        min-width: 0;
        width: auto;
        max-width: none;
        height: auto;
        min-height: 0;
        aspect-ratio: auto;
    }

    .customer-cases__card-cover {
        height: auto;
        aspect-ratio: 370 / 165;
    }

    .customer-cases__card-body {
        display: flex;
        flex-direction: column;
        padding: 8px;
    }

    .customer-cases__card-logo,
    .customer-cases__card-logo[src*="huarun2"] {
        display: none;
    }

    .customer-cases__card-name {
        margin-bottom: 4px;
        font-size: 10px;
    }

    .customer-cases__card-desc {
        margin-bottom: 0;
        font-size: 8px;
        line-height: 1.4;
    }

    .customer-cases__card-tags {
        display: none;
    }

    .customer-cases__more-btn {
        display: none;
    }

    /* ---------- 服务体系 ---------- */
    .service-system__title {
        margin-bottom: 28px;
        padding: 0;
    }

    .service-system__title br {
        display: none;
    }

    .service-system__card-desc br {
        display: none;
    }

    .service-system__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        max-width: none;
    }

    .service-system__row {
        display: contents;
    }

    .service-system__card {
        box-sizing: border-box;
        width: 100%;
        max-width: none;
        height: 190px;
        min-height: 190px;
        padding: 15px;
        aspect-ratio: auto;
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }

    .service-system__card--sm,
    .service-system__card--lg {
        width: 100%;
        max-width: none;
        height: 190px;
        min-height: 190px;
        aspect-ratio: auto;
    }

    .service-system__card--bg-2 {
        background-image: url("https://src.fanruan.com/2025-website/finebi-website/index/img/fb-service2.png");
    }

    .service-system__card--bg-3 {
        background-image: url("https://src.fanruan.com/2025-website/finebi-website/index/img/fb-service3.png");
    }

    .service-system__card--bg-4 {
        background-image: url("https://src.fanruan.com/2025-website/finebi-website/index/img/fb-service4.png");
    }

    .service-system__card--bg-5 {
        background-image: url("https://src.fanruan.com/2025-website/finebi-website/index/img/fb-service5.png");
    }

    .service-system__card--bg-5 .service-system__card-desc {
        width: auto;
    }

    .service-system__card--bg-6 {
        grid-column: 1 / -1;
        height: 214px;
        min-height: 214px;
        padding: 22px;
        background-image: url("https://src.fanruan.com/2025-website/finebi-website/index/img/fb-service6.png");
    }

    .service-system__card--bg-6 .service-system__card-desc {
        width: 80%;
    }

    .service-system__card-title {
        margin-bottom: 8px;
        font-size: 16px;
        font-weight: 600;
    }

    .service-system__card-desc {
        font-size: 12px;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ---------- 品牌实力 ---------- */
    .brand-power__title {
        margin-bottom: 28px;
        padding: 0;
    }

    .brand-power__grid {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        max-width: none;
    }

    .brand-power__left {
        width: 100%;
        max-width: none;
        gap: 12px;
    }

    .brand-power__card--sm,
    .brand-power__card--lg {
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 0;
        aspect-ratio: auto;
        padding: 24px;
    }

    .brand-power__card--sm {
        min-height: 160px;
    }

    .brand-power__left .brand-power__card--sm:first-child {
        padding: 20px;
        min-height: 0;
    }

    .brand-power__left .brand-power__card--sm:first-child .brand-power__card-title {
        margin-bottom: 12px;
        font-size: 16px;
    }

    .brand-power__left .brand-power__card--sm:first-child .brand-power__card-body {
        flex-direction: column;
        gap: 12px;
    }

    .brand-power__left .brand-power__card--sm:first-child .brand-power__card-text {
        width: 100%;
        font-size: 14px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .brand-power__left .brand-power__card--sm:first-child .brand-power__card-media {
        width: 100%;
        height: 140px;
    }

    .brand-power__card--lg {
        min-height: 320px;
    }

    .brand-power__card-title--center {
        margin-bottom: 32px;
    }

    .brand-power__brand-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 32px;
        column-gap: 16px;
    }

    .brand-power__brand-grid img {
        max-width: 140px;
    }

    .brand-power__news-link {
        white-space: normal;
    }

    /* ---------- 奖项及认可 ---------- */
    .awards__title {
        margin-bottom: 28px;
        padding: 0;
    }

    .awards__list {
        display: flex;
        flex-wrap: nowrap;
        gap: 52px;
        width: 100%;
        max-width: none;
        margin: 0;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .awards__list::-webkit-scrollbar {
        display: none;
    }

    .awards__item {
        flex-shrink: 0;
        width: 100px;
        max-width: none;
    }

    .awards__item:nth-child(5) {
        grid-column: unset;
        justify-self: unset;
    }

    .awards__icon {
        width: 72px;
        height: 72px;
        max-width: none;
        margin: 0 auto;
    }

    .awards__item:nth-child(-n + 3) .awards__icon img {
        width: 56px;
        height: auto;
    }

    .awards__item:nth-child(n + 4) .awards__icon img {
        width: 48px;
        height: 48px;
    }

    .awards__item p {
        margin-top: 16px;
        font-size: 12px;
    }

    /* ---------- 底部 CTA ---------- */
    .footer-cta__title {
        padding: 0;
    }

    .footer-cta__subtitle {
        font-size: 15px;
        padding: 0;
        margin-bottom: 32px;
    }

    .footer-cta__btn {
        width: 110px;
        height: 35px;
        padding: 0 6px 0 12px;
        justify-content: flex-start;
        gap: 12px;
        font-size: 14px;
    }

    .footer-cta__btn-icon {
        width: 22px;
        height: 22px;
    }

    .footer-cta__btn-icon img {
        width: 11px;
        height: 11px;
    }
}

/* 超小屏（≤480px）微调 */
@media (max-width: 480px) {
    .digital-products__list {
        gap: 10px;
    }
}
