/* 陪护照首页 — 基于 Axure 原型，与 style.css 叠加 */

:root {
    --peihu-hero-deep: #0a1628;
    --peihu-hero-mid: #0d3a6e;
    --peihu-accent-teal: #14b8a6;
    --peihu-coop-green: #0d9488;
    --peihu-coop-blue: #0ea5e9;
}

/* 右侧悬浮客服（贴边、左侧大圆角、蓝底，对齐图二样式） */
.float-service {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    width: 92px;
    padding: 0;
    background: #1f75e6;
    border-radius: 36px 0 0 36px;
    box-shadow: -6px 6px 28px rgba(25, 80, 180, 0.38);
    text-align: center;
    color: #fff;
    font-size: 12px;
    line-height: 1.45;
    overflow: hidden;
}

.float-service-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px 18px;
    box-sizing: border-box;
}

.float-service-head {
    margin-bottom: 12px;
}

.float-service img.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    display: block;
}

.float-service .hotline-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0.98;
    margin-bottom: 6px;
}

.float-service a.phone {
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    margin: 0 0 14px;
    word-break: break-all;
}

.float-service .qr-wrap {
    background: #fff;
    padding: 6px;
    border-radius: 10px;
    border: 2px solid #1a5fd0;
    line-height: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.float-service .qr-wrap img {
    width: 64px;
    height: 64px;
    display: block;
    border-radius: 4px;
}

/* Logo 图片 + 文字 */
.logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.logo-title-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 12px;
    line-height: 1.2;
}

.logo-title-wrap .brand {
    font-size: 20px;
    font-weight: 700;
    color: #1354a9;
}

.logo-title-wrap .brand-sub {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

header .logo.logo-text a {
    display: flex;
    align-items: center;
}

.menu a.nav-tel {
    background: linear-gradient(135deg, #1e6ed3, #0ea5e9);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 24px;
    font-weight: 600;
    white-space: nowrap;
}

.menu a.nav-tel:after {
    display: none;
}

.menu a.nav-tel i {
    margin-right: 6px;
}

/* Hero：背景图 banner.jpg + 叠层；桌面拉高可视高度，减少「只显示一截」的感觉 */
.hero.peihu-hero {
    padding: 140px 0 90px;
    background-color: #0a1628;
    margin-top: 50px;
    background-image:
        linear-gradient(145deg, rgba(10, 22, 40, 0.58) 0%, rgba(13, 58, 110, 0.42) 50%, rgba(10, 30, 55, 0.55) 100%),
        url('/article_theme/custom/ebike/img/banner.jpg');
    /* 横向 Banner 常见构图偏上，top 对齐比 center 更容易看全主体 */
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    /* 保证首屏有足够高度展示背景（cover 时上下少被裁） */
    min-height: clamp(520px, 68vh, 920px);
    position: relative;
    overflow: hidden;
}

.hero.peihu-hero:before {
    background:
        radial-gradient(ellipse 80% 50% at 70% 20%, rgba(20, 184, 166, 0.1), transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(30, 110, 211, 0.22), transparent 45%);
    opacity: 1;
}

.hero.peihu-hero .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 16px;
}

.hero.peihu-hero .hero-kicker i {
    color: #5eead4;
}

.hero.peihu-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero.peihu-hero .hero-lead {
    font-size: 1.35rem;
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 16px;
}

.hero.peihu-hero .hero-desc {
    font-size: 1rem;
    line-height: 1.75;
    opacity: 0.88;
    max-width: 520px;
    margin-bottom: 28px;
}

.hero.peihu-hero .cta-buttons .primary-btn {
    background: #fff;
    color: #1354a9;
}

.hero.peihu-hero .cta-buttons .secondary-btn {
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
}

/* 手机 + 环绕标签 */
.hero-visual-wrap {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 440px;
    margin: 0 auto;
}

.phone-frame {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 400px;
    background: #0f172a;
    border-radius: 28px;
    padding: 10px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.35),
        inset 0 0 0 2px rgba(255, 255, 255, 0.12);
    z-index: 2;
}

.phone-frame .phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #e2e8f0;
}

.phone-frame .phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.orbit-tag {
    position: absolute;
    z-index: 3;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    color: #1354a9;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
}

.orbit-tag.t1 { top: 8%; left: 5%; }
.orbit-tag.t2 { top: 22%; right: 0; }
.orbit-tag.t3 { top: 42%; left: 0; }
.orbit-tag.t4 { bottom: 28%; right: 4%; }
.orbit-tag.t5 { bottom: 12%; left: 8%; }
.orbit-tag.t6 { top: 58%; right: 2%; }

/* 核心优势 — 圆形图标底（本地 PNG 图标） */
.advantages.peihu-adv .advantage-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(30, 110, 211, 0.1);
    color: #1e6ed3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.advantages.peihu-adv .advantage-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.section-header.peihu-blue h2 {
    color: #0f172a;
}

.section-header.peihu-blue h2:after {
    background: linear-gradient(90deg, #1e6ed3, #14b8a6);
}

/* 功能模块 三栏 */
.modules-section {
    padding: 100px 0;
    background: #f1f5f9;
}

.modules-head {
    text-align: center;
    margin-bottom: 50px;
}

.modules-head h2 {
    font-size: 2.25rem;
    color: #0f172a;
    margin-bottom: 12px;
}

.modules-head p {
    color: #64748b;
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
}

.modules-layout {
    display: grid;
    /* minmax(0,1fr) 避免左右列被长文本/子项最小宽度撑成不等宽 */
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px) minmax(0, 1fr);
    gap: 20px 28px;
    align-items: stretch;
    justify-items: stretch;
    min-height: 0;
}

.module-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    align-self: stretch;
    min-height: 0;
    /* 与网格行同高，便于下方卡片均分高度 */
    height: 100%;
}

.module-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    /* 5 张卡片均分整列高度，左右列总高度一致 */
    flex: 1 1 0;
    min-height: 0;
}

/* 文案区占满剩余宽度并允许换行，左右列卡片宽度一致 */
.module-card > div:not(.mc-icon) {
    flex: 1 1 0;
    min-width: 0;
}

.module-card .mc-icon {
    width: 52px;
    height: 52px;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.module-card .mc-icon img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.module-card h3 {
    font-size: 1.15rem;
    color: #0f172a;
    margin-bottom: 8px;
}

.module-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.65;
}

/* 功能模块中间：与左右同高，轮播区拉满列高 */
.modules-center {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 0;
    align-self: stretch;
    height: 100%;
}

/* 功能模块中间：原生轮播，与左右列同高、点击可靠 */
.modules-carousel-wrap {
    margin: 0 auto;
    width: 100%;
    max-width: min(480px, 100%);
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
    align-self: stretch;
    display: flex;
    justify-content: center;
    align-items: stretch;
    box-sizing: border-box;
}

.modules-native-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 48px 4px;
    box-sizing: border-box;
}

.modules-ns-viewport {
    overflow: hidden;
    width: 100%;
    flex: 1 1 auto;
    min-height: 400px;
}

.modules-ns-track {
    display: flex;
    width: 300%;
    height: 100%;
    min-height: 100%;
    transition: transform 0.38s cubic-bezier(0.25, 0.85, 0.35, 1);
    will-change: transform;
}

.modules-ns-slide {
    flex: 0 0 33.333333%;
    width: 33.333333%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    box-sizing: border-box;
}

.modules-ns-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.modules-ns-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.38);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.modules-ns-btn:hover {
    background: rgba(15, 23, 42, 0.52);
}

.modules-ns-prev {
    left: 4px;
}

.modules-ns-next {
    right: 4px;
}

.modules-ns-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 10px 0 4px;
}

.modules-ns-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(15, 23, 42, 0.22);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.modules-ns-dots button.is-active {
    background: #1e6ed3;
    transform: scale(1.12);
}

/* 系统展示前 — 三列小卡 */
.showcase-bridge {
    padding: 80px 0 40px;
    background: #fff;
}

.bridge-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
}

.bridge-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.bridge-card .bc-icon {
    margin-bottom: 12px;
    line-height: 0;
}

.bridge-card .bc-icon img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.bridge-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #0f172a;
}

.bridge-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.bridge-phone .phone-frame {
    position: relative;
    transform: none;
    left: auto;
    top: auto;
    margin: 0 auto;
    width: 200px;
    height: 400px;
}

/* 系统展示 */
.showcase-section {
    padding: 60px 0 100px;
    background: #fff;
}

/* 系统展示：原生轮播，每组横排 4 图；截图无外框灰边 */
.showcase-carousel-wrap {
    max-width: 100%;
    margin: 0 auto;
}

.showcase-slider {
    position: relative;
    padding: 8px 52px 12px;
    max-width: 100%;
}

.showcase-viewport {
    overflow: hidden;
    width: 100%;
}

.showcase-track {
    display: flex;
    width: 300%;
    transition: transform 0.42s cubic-bezier(0.25, 0.85, 0.35, 1);
    will-change: transform;
}

.showcase-slide {
    flex: 0 0 33.333333%;
    width: 33.333333%;
    box-sizing: border-box;
    padding: 0 8px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.showcase-shot {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.showcase-shot img {
    width: 100%;
    height: auto;
    max-height: min(52vh, 440px);
    object-fit: contain;
    object-position: center top;
    display: block;
}

.showcase-btn {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.38);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.showcase-btn:hover {
    background: rgba(15, 23, 42, 0.55);
}

.showcase-btn-prev {
    left: 2px;
}

.showcase-btn-next {
    right: 2px;
}

.showcase-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.showcase-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(15, 23, 42, 0.22);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.showcase-dots button.is-active {
    background: #1e6ed3;
    transform: scale(1.15);
}

/* 合作方式 */
.cooperation-section {
    padding: 100px 0;
    background: #f8fafc;
}

.coop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.coop-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    background: #fff;
}

.coop-card .coop-head {
    padding: 36px 28px;
    color: #fff;
    text-align: center;
}

.coop-card .coop-head h3 {
    font-size: 1.75rem;
    margin: 12px 0 8px;
}

.coop-card .coop-head p {
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.5;
}

.coop-card .coop-head img.head-ico {
    display: block;
    margin: 0 auto;
    width: 56px;
    height: 56px;
    object-fit: contain;
    opacity: 0.98;
}

.coop-card.green .coop-head {
    background: linear-gradient(135deg, var(--peihu-coop-green), #0f766e);
}

.coop-card.blue .coop-head {
    background: linear-gradient(135deg, var(--peihu-coop-blue), #0284c7);
}

.coop-card .coop-body {
    padding: 28px 24px;
    background: #f8fafc;
    text-align: center;
}

.coop-card .coop-body p {
    color: #475569;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.98rem;
}

.coop-card .coop-body p:last-child {
    border-bottom: none;
}

footer .footer-brand-line {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 14px;
    opacity: 1;
    color: #fff;
}

footer .footer-brand-line i {
    margin-right: 10px;
    color: #7dd3fc;
}

/* 新闻区标题色 */
.news.peihu-news .section-header h2 {
    color: #1a3b66;
}

.news.peihu-news .section-header h2:after {
    background: #1e6ed3;
}

/* 合作方式摘要条（新闻上方） */
.coop-summary-bar {
    background: #f1f5f9;
    padding: 28px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.coop-summary-bar .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: center;
    color: #475569;
    font-size: 0.95rem;
    line-height: 2;
}

@media (max-width: 1024px) {
    .modules-layout {
        grid-template-columns: 1fr;
    }

    /* 单列布局：恢复卡片自然高度，避免被拉得过高 */
    .module-side {
        height: auto;
    }

    .module-card {
        flex: 0 0 auto;
        min-height: 0;
        overflow: visible;
    }

    .modules-center {
        order: -1;
        position: static;
        top: auto;
        padding-top: 0;
        height: auto;
        align-items: center;
    }

    .modules-carousel-wrap {
        max-width: 100%;
        height: auto;
        flex: 0 0 auto;
    }

    .modules-native-slider {
        height: auto;
        min-height: 0;
        padding: 0 42px 4px;
    }

    .modules-ns-viewport {
        min-height: 360px;
    }

    .showcase-slide {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 10px;
    }

    .showcase-shot {
        flex: 1 1 calc(50% - 6px);
        max-width: calc(50% - 6px);
    }

    .showcase-shot img {
        max-height: 340px;
    }

    .showcase-slider {
        padding-left: 46px;
        padding-right: 46px;
    }

    .bridge-row {
        grid-template-columns: 1fr;
    }

    .bridge-phone {
        order: -1;
    }
}

@media (max-width: 768px) {
    .float-service {
        display: none;
    }

    /* 手机端：去掉背景图，仅用渐变纯色，避免窄屏下图被裁切、加载大图 */
    .hero.peihu-hero {
        min-height: 0;
        background-image: none;
        background-color: #0a1628;
        background: linear-gradient(
            165deg,
            var(--peihu-hero-deep) 0%,
            var(--peihu-hero-mid) 42%,
            #1565c0 100%
        );
    }

    .hero.peihu-hero:before {
        opacity: 0;
        pointer-events: none;
    }

    .hero.peihu-hero .container {
        flex-direction: column;
    }

    .hero.peihu-hero .hero-content {
        padding-right: 0;
        text-align: center;
        margin-bottom: 40px;
    }

    .hero.peihu-hero .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero.peihu-hero h1 {
        font-size: 2rem;
    }

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

    .coop-grid {
        grid-template-columns: 1fr;
    }

    .showcase-shot img {
        max-height: 260px;
    }

    .showcase-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .coop-summary-bar .container {
        grid-template-columns: 1fr;
    }

    .menu a.nav-tel span {
        display: none;
    }

    .menu a.nav-tel i {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .advantages-grid {
        grid-template-columns: 1fr !important;
    }

    .orbit-tag {
        font-size: 11px;
        padding: 6px 10px;
    }
}
