:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #1f2430;
    --muted: #8c93a3;
    --brand: #2f55d4;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.m-page {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    padding-top: calc(56px + env(safe-area-inset-top));
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

/* m-header/m-logo/m-buy-btn 样式由 css/mobile/header.css 统一提供 */

.m-banner {
    padding: 12px 12px 0;
}

.m-banner-swiper {
    border-radius: 16px;
    overflow: hidden;
}

.m-banner-slide {
    min-height: 220px;
    color: #fff;
    display: flex;
    align-items: flex-start;
    border-radius: 16px;
    overflow: hidden;
}

.m-banner-slide-1 {
    background: url(https://mstatic.ofpay.com/marketing/upload/d78f01b55e4f443180f757ef362655ff.png) center center no-repeat;
    background-size: cover;
}

.m-banner-slide-2 {
    background: linear-gradient(145deg, #2660ad, #1e4f9a 62%, #17407d);
}

.m-banner-inner {
    padding: 28px 20px 22px;
}

.m-banner-kicker {
    margin: 0;
    font-size: 12px;
    opacity: 0.85;
}

.m-banner h1 {
    margin: 0 0 10px;
    font-size: clamp(18px, 5.5vw, 26px);
    line-height: 1.35;
    font-weight: 600;
    color: #fff;
}

.m-banner p {
    margin: 0 0 18px;
    font-size: clamp(12px, 3.2vw, 14px);
    line-height: 1.6;
    opacity: 0.9;
    color: #fff;
}

.m-banner-btn {
    display: block;
    width: 120px;
    height: 38px;
    border: none;
    border-radius: 19px;
    cursor: pointer;
    background: url(https://mstatic.ofpay.com/marketing/upload/be44af0041ed449b85352a1d27582d0b.png) no-repeat center center;
    background-size: 100% 100%;
}

.m-banner-pagination {
    text-align: center;
    padding-bottom: 10px;
}

.m-banner-pagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.m-banner-pagination .swiper-pagination-bullet-active {
    width: 16px;
    border-radius: 999px;
    background: #fff;
}

.m-section {
    margin: 12px;
    background: var(--card);
    border-radius: 14px;
    padding: 18px 14px;
    box-shadow: 0 4px 20px rgba(34, 52, 108, 0.06);
}

.m-section-title h2 {
    margin: 0;
    text-align: center;
    font-size: 20px;
    color: #1f2e56;
}

.m-section-title p {
    margin: 8px 0 0;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

.m-service-grid {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* grid-template-columns: repeat(3, minmax(0, 1fr)); */
    gap: 10px;
}

.m-service-item {
    text-decoration: none;
    border: 1px solid #edf1fb;
    border-radius: 10px;
    min-height: 88px;
    flex-shrink: 0;
    width: 31%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 6px;
    color: #31426f;
    font-size: 13px;
    font-weight: 600;
    background: #fafcff;
}

.m-service-item img {
    display: block;
    width: clamp(36px, 10vw, 52px);
    height: clamp(36px, 10vw, 52px);
    object-fit: contain;
}

.m-solution-tabs {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.m-solution-tabs::-webkit-scrollbar {
    display: none;
}

.m-solution-tabs button {
    white-space: nowrap;
    border: 1px solid #e3e9f8;
    border-radius: 999px;
    background: #fff;
    color: #5d6c8f;
    font-size: 12px;
    padding: 6px 12px;
}

.m-solution-tabs button.is-active {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(90deg, #4b78ff, #2f55d4);
}

.m-solution-card {
    margin-top: 12px;
    background: #f6f9ff;
    border: 1px solid #ebf0fc;
    border-radius: 12px;
    padding: 14px;
}

.m-solution-card h3 {
    margin: 0;
    font-size: 16px;
    color: #22335f;
}

.m-solution-card p {
    margin: 8px 0 0;
    font-size: 13px;
    color: #677190;
    line-height: 1.7;
}

.m-case-swiper {
    margin-top: 14px;
    border-radius: 12px;
    overflow: hidden;
}

.m-case-swiper .swiper-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.m-case-pagination {
    text-align: center;
    margin-top: 10px;
}

.m-case-pagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: #d3d9ea;
    opacity: 1;
}

.m-case-pagination .swiper-pagination-bullet-active {
    background: var(--brand);
    width: 16px;
    border-radius: 999px;
}

.m-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 6px;
    text-align: center;
    padding: 14px 8px;
}

.m-stat-item {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 6px 2px;
}

.m-stat-item strong {
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-size: clamp(16px, 4.5vw, 22px);
    color: #0148A4;
    font-weight: 700;
    font-family: Barlow, -apple-system, sans-serif;
    line-height: 1.2;
}

.m-stat-item strong span {
    color: #0148A4;
    font-size: clamp(18px, 4.5vw, 22px);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}

.m-stat-item strong em {
    color: #2f2f2f;
    font-style: normal;
    font-size: clamp(10px, 3vw, 12px);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}

.m-stat-item span {
    display: block;
    margin-top: 4px;
    font-size: clamp(16px, 4vw, 22px);
    color: #2f2f2f;
    line-height: 1.4;
}

.m-news-list {
    margin-top: 14px;
    display: grid;
    gap: 24px;
}

.m-news-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
    align-items: center;
}

a.m-news-item {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: rgba(26, 111, 216, 0.12);
}

a.m-news-item:active h3,
a.m-news-item:hover h3 {
    color: #1a6fd8;
}

.m-news-item img {
    width: 102px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
}

.m-news-item h3 {
    padding-left: 10px;
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #25345f;
}

.m-news-item p {
    margin: 6px 0 0;
    font-size: 12px;
    color: #7b839c;
    line-height: 1.55;
}

.m-footer {
    margin: 12px;
    padding: 24px 14px;
    border-radius: 14px;
    background: linear-gradient(145deg, #293f8f, #1f2f6e);
    color: #fff;
    text-align: center;
}

.m-footer h3 {
    margin: 0;
    font-size: 18px;
}

.m-footer p {
    margin: 8px 0 14px;
    font-size: 12px;
    opacity: 0.9;
}

.m-footer a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    color: #1e2f71;
    background: #fff;
}

/* ===== 四大场景 ===== */
.m-scene-wrap {
    margin-top: 14px;
}

.m-scene-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.m-scene-tab {
    padding: 8px 4px;
    border: 1px solid #dde4f5;
    border-radius: 8px;
    background: #f5f8ff;
    color: #666;
    font-size: clamp(12px, 3.2vw, 14px);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.m-scene-tab.is-active {
    background: #0148A4;
    border-color: #0148A4;
    color: #fff;
    font-weight: 600;
}

.m-scene-body {
    position: relative;
}

.m-scene-item {
    display: none;
}

.m-scene-item.is-active {
    display: block;
}

.m-scene-desc {
    margin: 0 0 12px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    padding-left: 10px;
    /* border-left: 3px solid #0148A4; */
    text-align: center;
}

.m-scene-item img {
    display: block;
    width: 85%;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    margin: 0 auto;
}

@media (max-width: 360px) {
    .m-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .m-stats {
        grid-template-columns: 1fr;
    }
}