/* ========================================
   嘉荣物流 - 全局样式
   ======================================== */
html {
    scroll-behavior: smooth; /* 平滑滚动，可选，体验更好 */
    scroll-padding-top: 80px; /* 滚动时顶部预留80px，避开导航栏高度 */
}
:root {
    --primary: #003366;
    --secondary: #0055a4;
    --accent: #e30613;
    --text: #333333;
    --light-bg: #f5f7fa;
    --white: #ffffff;
    --gray: #666666;
    --border: #e0e0e0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   导航栏 - 半透明 Rhenus 风格
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(0, 51, 102, 0.85);  /* 半透明深蓝背景 */
    backdrop-filter: blur(10px);          /* 毛玻璃模糊效果 */
    -webkit-backdrop-filter: blur(10px);  /* Safari兼容 */
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);  /* 底部细线 */
}

/* 滚动后导航栏变实心 */
.navbar.scrolled {
    background: rgba(0, 51, 102, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1400px;  /* 更宽的容器 */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 40px;  /* 左右留白 */
}

/* Logo */
.logo {
    /* display: flex;
    align-items: center;
    text-decoration: none; */
    /* margin-right: auto;   */
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%); /* 垂直居中对齐导航栏 */
    z-index: 10;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin-left: auto;  /* 菜单推到右侧 */
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);  /* 白色文字 */
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

/* ========================================
   页面标题横幅
   ======================================== */
.page-banner {
    height: 300px;
    background: linear-gradient(135deg, rgba(0,51,102,0.9) 0%, rgba(0,85,164,0.9) 100%),
                url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=1920') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 0;  /* 半透明导航栏覆盖在banner上 */
    padding-top: 70px;  /* 为导航栏留出空间 */
}

.page-banner h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-banner p {
    font-size: 18px;
    opacity: 0.9;
}

/* 面包屑导航 */
.breadcrumb {
    background: var(--light-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 14px;
    color: var(--gray);
}

.breadcrumb-inner a {
    color: var(--secondary);
    text-decoration: none;
}

.breadcrumb-inner a:hover {
    text-decoration: underline;
}

.breadcrumb-inner span {
    margin: 0 8px;
    color: #999;
}

/* ========================================
   通用按钮
   ======================================== */
.btn-primary {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 14px 36px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid var(--secondary);
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 14px 36px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    background: transparent;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-white {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 14px 36px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid var(--white);
    transition: all 0.3s;
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
}

/* ========================================
   Hero 全屏背景视频
   ======================================== */
.hero-video {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* 视频轮播容器：容纳多段视频，重叠排列 */
.hero-video-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    transition: opacity 1.2s ease;
}

/* 每段视频默认隐藏，切换到 active 时淡入 */
.hero-video__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    object-position: center top;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 0;
}

.hero-video__bg.active {
    opacity: 1;
    z-index: 1;
}

/* 渐变遮罩：左侧深蓝，右侧渐渐透明 */
.hero-video__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 30, 70, 0.82) 0%,
        rgba(0, 51, 102, 0.65) 40%,
        rgba(0, 51, 102, 0.25) 70%,
        rgba(0, 51, 102, 0.08) 100%
    );
    z-index: 1;
}

/* 文字内容区 */
.hero-video__content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
    color: var(--white);
}

/* 上方小标签 */
.hero-video__label {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 18px;
    animation: fadeInUp 0.8s ease both;
}

/* 主标题 */
.hero-video__title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 22px;
    animation: fadeInUp 0.8s ease 0.15s both;
}

/* 副标题 */
.hero-video__subtitle {
    font-size: 19px;
    line-height: 1.75;
    opacity: 0.88;
    margin-bottom: 42px;
    max-width: 580px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* 按钮组 */
.hero-video__actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.45s both;
}

/* 底部滚动箭头 */
.hero-video__scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
}

.hero-video__scroll span {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255,255,255,0.7);
    border-bottom: 2px solid rgba(255,255,255,0.7);
    transform: rotate(45deg);
    animation: scrollBounce 1.5s infinite;
    margin: 0 auto;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.7; }
    50%       { transform: rotate(45deg) translateY(8px); opacity: 1; }
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-video__content { padding: 0 24px; }
    .hero-video__title   { font-size: 32px; }
    .hero-video__subtitle{ font-size: 16px; }
    .hero-video__actions { gap: 14px; }
    .hero-video__overlay {
        background: rgba(0, 30, 70, 0.5);
    }
}

/* 视频容器淡出效果 */
.hero-video-carousel.fading-out {
    opacity: 0;
    transition: opacity 1.2s ease;
}

/* ========================================
   图片轮播样式
   ======================================== */
/* 图片轮播容器淡入效果 */
.hero-carousel-fallback {
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-carousel-fallback.visible {
    opacity: 1;
}

.hero-carousel-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-carousel-fallback .carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-carousel-fallback .carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-carousel-fallback .carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-carousel-fallback .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 1.2s ease-out;
}

.hero-carousel-fallback .carousel-slide.active img {
    transform: scale(1.18);
}


/* ========================================
   卡片组件
   ======================================== */
.card {
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 30px;
}

.card-title {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
}

.card-text {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
}

/* ========================================
   服务卡片 (大图遮罩版)
   ======================================== */
.service-card-large {
    position: relative;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
}

.service-card-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card-large:hover img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,51,102,0.95));
    padding: 10px 30px 30px;
    color: var(--white);
}

.service-overlay h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.service-overlay p {
    font-size: 15px;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.learn-more {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.learn-more:hover {
    gap: 15px;
}

/* ========================================
   章节标题
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--gray);
    font-size: 18px;
}

/* ========================================
   CTA 区块
   ======================================== */
.cta-section {
    padding: 80px 5%;
    background: var(--primary);
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    color: #888;
}

.footer-col h4 {
    color: var(--white);
    font-size: 14px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col a {
    display: block;
    color: #aaa;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* ========================================
   动画
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease both;
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(0, 51, 102, 0.98);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        gap: 20px;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .page-banner h1 {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-header h2 {
        font-size: 28px;
    }
}

/* ========================================
   index 页面样式
   ======================================== */
        .philosophy {
            padding: 80px 0;
            background: var(--light-bg);
        }

        .philosophy-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 40px;
        }

        .philosophy-card {
            background: var(--white);
            padding: 50px 40px;
            text-align: center;
            box-shadow: var(--shadow);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .philosophy-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-hover);
        }

        .philosophy-icon {
            width: 80px;
            height: 80px;
            /* background-color: var(--primary);
            border-radius: 50%; */
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 25px;
            color: var(--white);
            font-size: 32px;
        }

        /* 以客户为中心图标 */
        .philosophy-icon.icon-heart {
            background-image: url("../images/Trust.png") ;
            background-position: center ;
            background-size: 80px 80px ;
            background-repeat: no-repeat;
            color: transparent;
        }

        /* 精细和谐图标 */
        .philosophy-icon.icon-harmony {
            background-image: url("../images/Values.png") ;
            background-position: center ;
            background-size: 80px 80px ;
            background-repeat: no-repeat;
            color: transparent;
        }
        /* 科技应用+产业管理图标 */
        .philosophy-icon.icon-robert {
            background-image: url("../images/robert.jpg");
            background-position: center;
            background-size: 80px 80px;
            background-repeat: no-repeat;
            color: transparent;
        }

        .philosophy-card h3 {
            font-size: 22px;
            color: var(--primary);
            margin-bottom: 15px;
        }

        .philosophy-card p {
            color: var(--gray);
            font-size: 15px;
            line-height: 1.8;
            text-align: left;
            text-indent: 2em;
        }

        .services-preview {
            padding: 40px 0;
            background: var(--white);
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
        }

        .stats {
            padding: 30px 0;
            background: var(--secondary);
            color: var(--white);
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 40px;
            text-align: center;
        }

        .stat-item h3 {
            font-size: 48px;
            font-weight: 600;
            margin-bottom: 0px;
        }

        .stat-item p {
            font-size: 16px;
            opacity: 0.9;
        }

        .news-preview {
            padding: 80px 0;
            background: var(--light-bg);
        }

        .news-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
        }

        .news-card .card-body {
            padding: 25px;
        }

        .news-date {
            color: var(--secondary);
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 10px;
            text-transform: uppercase;
        }

        @media (max-width: 768px) {
            .hero-content h1 { font-size: 32px; }
            .hero-content p { font-size: 18px; }
            .philosophy-grid,
            .services-grid,
            .stats-grid,
            .news-grid { grid-template-columns: 1fr; }
        }

/* ========================================
   about 页面样式
   ======================================== */
.about-content { padding: 80px 0; }
        .about-grid {
            display: grid;
            grid-template-columns: 0.8fr 1.2fr;
            gap: 60px;
            align-items: center;
            margin-bottom: 80px;
        }
        .about-grid.reverse { direction: rtl; }
        .about-grid.reverse > * { direction: ltr; }
        .about-grid img { width: 100%; box-shadow: var(--shadow); }
        .about-text h3 { font-size: 28px; color: var(--primary); margin-bottom: 20px; }
        .about-text p { color: var(--gray); line-height: 1.8; margin-bottom: 15px; }

        .timeline { padding: 80px 0; background: var(--light-bg); }
        .timeline-list { max-width: 800px; margin: 0 auto; }
        .timeline-item {
            display: flex;
            gap: 30px;
            margin-bottom: 40px;
            padding-left: 30px;
            border-left: 3px solid var(--secondary);
        }
        .timeline-year {
            font-size: 24px;
            font-weight: 700;
            color: var(--secondary);
            min-width: 100px;
        }
        .timeline-content h4 { font-size: 18px; color: var(--primary); margin-bottom: 8px; }
        .timeline-content p { color: var(--gray); font-size: 15px; }

        .team { padding: 80px 0; }
        .team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
        .team-card { text-align: center; }
        .team-card img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; }
        .team-card h4 { font-size: 18px; color: var(--primary); margin-bottom: 5px; }
        .team-card p { color: var(--gray); font-size: 14px; }

/* ========================================
   拼图轮播 - 博鳌展示
   ======================================== */
.mosaic-section {
    padding: 40px 0;
    background: var(--white);
    /* background: transparent; */
}

.mosaic-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 每个 slide 绝对定位，淡入淡出 */
.mosaic-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}
.mosaic-slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

/* 网格容器 - 3列2行 */
.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 280px 280px;
    gap: 8px;
}

/* Layout A: 左竖(占2行) + 右上大横(占2列) + 右下两小 */
.layout-A {
    grid-template-areas:
        "tall wide wide"
        "tall small1 small2";
}
.layout-A .cell-tall { grid-area: tall; }
.layout-A .cell-wide { grid-area: wide; }
.layout-A .mosaic-cell:nth-child(3) { grid-area: small1; }
.layout-A .mosaic-cell:nth-child(4) { grid-area: small2; }

/* Layout B: 左上大横(占2列) + 右竖(占2行) + 左下两小 */
.layout-B {
    grid-template-areas:
        "wide wide tall"
        "small1 small2 tall";
}
.layout-B .cell-wide { grid-area: wide; }
.layout-B .cell-tall { grid-area: tall; }
.layout-B .mosaic-cell:nth-child(3) { grid-area: small1; }
.layout-B .mosaic-cell:nth-child(4) { grid-area: small2; }

/* Layout C: 视频(占满3列) + 下面三小 */
.layout-C {
    grid-template-areas:
        "video video video"
        "small1 small2 small3";
}
.layout-C .cell-video { grid-area: video; }
.layout-C .mosaic-cell:nth-child(2) { grid-area: small1; }
.layout-C .mosaic-cell:nth-child(3) { grid-area: small2; }
.layout-C .mosaic-cell:nth-child(4) { grid-area: small3; }

/* Layout D: 全宽横图 + 下面竖+两小 */
.layout-D {
    grid-template-areas:
        "fullwide fullwide fullwide"
        "tall small1 small2";
}
.layout-D .cell-fullwide { grid-area: fullwide; }
.layout-D .cell-tall { grid-area: tall; }
.layout-D .mosaic-cell:nth-child(3) { grid-area: small1; }
.layout-D .mosaic-cell:nth-child(4) { grid-area: small2; }

/* Layout E: 全幅 占满整格 */
.layout-E {
    grid-template-columns: 1fr;
    grid-template-rows: 560px;
    /* grid-template-rows: auto; */
    grid-template-areas: "fullvideo";
}
.layout-E .cell-fullvideo { grid-area: fullvideo; }
.layout-E .cell-fullvideo video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Layout F: 全幅图片占满整格 */
.layout-F {
    grid-template-columns: 1fr;
    grid-template-rows: 560px;
    grid-template-areas: "fullwide";
}
.layout-F .cell-fullwide { grid-area: fullwide; }
.layout-F .cell-fullwide img {
    width: 100%;
    height:100%;
    object-fit: cover; /* 完整显示整张图 */
    object-position: center; /* 图片居中放置 */
}

/* Layout C2: 2x2 网格，支持两个视频 */
.layout-C2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 280px;
    grid-template-areas: none;
}
.layout-C2 .mosaic-cell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.layout-C3 {
    grid-template-areas:
        "small-v wide-v wide-v"
        "small1 small2 small3";
}
.layout-C3 .cell-small-v { grid-area: small-v; }
.layout-C3 .cell-wide-v  { grid-area: wide-v; }
.layout-C3 .mosaic-cell:nth-child(3) { grid-area: small1; }
.layout-C3 .mosaic-cell:nth-child(4) { grid-area: small2; }
.layout-C3 .mosaic-cell:nth-child(5) { grid-area: small3; }


/* 每个格子 */
.mosaic-cell {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: var(--border);
}
.mosaic-cell img,
.mosaic-cell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 8s ease-out;
}
.mosaic-slide.active .mosaic-cell img,
.mosaic-slide.active .mosaic-cell video {
    transform: scale(1.08);
}

/* 导航点 */
.mosaic-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    position: relative;
    z-index: 5;
}
.mosaic-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}
.mosaic-dot.active {
    background: var(--secondary);
    width: 28px;
    border-radius: 5px;
}

/* ============ 移动端适配 平板 ≤768px ============ */
@media (max-width: 768px) {
    /* 关于我们图文区块 */
    .about-content {
        padding: 40px 0;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }
    /* 取消反向布局，单列不需要rtl左右翻转 */
    .about-grid.reverse {
        direction: ltr;
    }
    .about-text h3 {
        font-size: 24px;
    }

    /* 时间线模块 */
    .timeline {
        padding: 40px 0;
    }
    .timeline-item {
        flex-direction: column;
        gap: 8px;
        padding-left: 20px;
        margin-bottom: 30px;
    }
    .timeline-year {
        font-size: 20px;
        min-width: unset;
    }

    /* 团队成员模块 */
    .team {
        padding: 40px 0;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .team-card img {
        width: 120px;
        height: 120px;
    }

    /* 拼图轮播基础适配 */
    .mosaic-section {
        padding: 20px 0;
    }
    .mosaic-grid {
        /* grid-template-columns: 1fr;
        grid-template-rows: auto; */
        gap: 6px;
    }
    /* 清空PC端自定义网格区域 */
    .layout-A,.layout-B,.layout-C,.layout-D,.layout-C2,.layout-C3 {
        /* grid-template-areas: none; */
        grid-template-rows: 170px 170px;
    }
    /* .cell-wide,.cell-tall,.cell-video,.cell-fullwide,.cell-small-v,.cell-wide-v {
        grid-column: unset;
        grid-row: unset;
    } */
    /* 移动端关闭图片放大动画，避免布局错位 */
    .mosaic-slide.active .mosaic-cell img,
    .mosaic-slide.active .mosaic-cell video {
        transform: scale(1);
    }
    /* 全屏单图布局降低高度 */
    .layout-E,.layout-F {
        grid-template-rows: 300px;
    }
}

/* ========================================
   services 页面样式
   ======================================== */
.services-detail { padding: 20px 0; }
        .service-block {
            display: grid;
            grid-template-columns: 1fr; /*若需两列 修改为1fr 1fr；*/
            gap: 40px;
            align-items: center;
            margin-bottom: 20px;
        }
        .service-images {
            display: grid;
            grid-template-columns: 1fr 1.6fr 1.6fr;
            gap: 20px;
        }
        .service-images img { 
            width: 100%; 
            /* 统一宽高比 16:9，两张图比例完全一致 */
            aspect-ratio: 16 / 10;
            object-fit: cover;
            box-shadow: var(--shadow); 
        }
        .service-images video {
            width: 100%;
            aspect-ratio: 16 / 10;
            object-fit: cover;
            box-shadow: var(--shadow);
        }
        .service-block:nth-child(even) { direction: rtl; }
        .service-block:nth-child(even) > * { direction: ltr; }
        .service-block img { width: 100%; box-shadow: var(--shadow); }
        .service-info h3 {
            font-size: 32px;
            color: var(--primary);
            margin-bottom: 10px;
            padding-bottom: 10px;
            border-bottom: 3px solid var(--secondary);
            display: inline-block;
        }
        .service-info p { color: var(--gray); line-height: 1.8; margin-bottom: 10px; }
        .service-features { list-style: none; }
        .service-features li {
            padding: 10px 0;
            padding-left: 30px;
            position: relative;
            color: var(--text);
        }
        .service-features li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--secondary);
            font-weight: bold;
        }

        .service-cards { padding: 80px 0; background: var(--light-bg); }
        .service-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
        .service-item {
            background: var(--white);
            padding: 40px 30px;
            text-align: center;
            box-shadow: var(--shadow);
            transition: transform 0.3s;
        }
        .service-item:hover { transform: translateY(-5px); }
        .service-item .icon {
            width: 60px;
            height: 60px;
            background: var(--primary);
            color: var(--white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            font-size: 24px;
        }
        .service-item h4 { font-size: 18px; color: var(--primary); margin-bottom: 12px; }
        .service-item p { font-size: 14px; color: var(--gray); line-height: 1.6; }


        @media (max-width: 768px) {
        /* 原有已有的单列配置保留 */
        .service-block, .service-cards-grid { grid-template-columns: 1fr; }

        /* 修复图片网格：手机端强制单列 */
        .service-images {
            grid-template-columns: 1fr;
            gap: 16px;
        }

        /* 取消偶数区块左右反转，单列不需要反向布局，避免文字错乱 */
        .service-block:nth-child(even) { direction: ltr; }

        /* 适配标题字号 */
        .service-info h3 {
            font-size: 24px;
        }

        /* 缩小区块间距 */
        .service-block {
            gap: 24px;
            margin-bottom: 12px;
        }

        /* 服务卡片适配 */
        .service-item {
            padding: 24px 18px;
        }
        .service-cards {
            padding: 40px 0;
        }

        /* 列表项上下边距缩小，适配移动端 */
        .service-features li {
            padding: 8px 0 8px 28px;
        }
    }
/* ========================================
   solutions 页面样式
   ======================================== */
.solutions { padding: 80px 0; }
        .solution-card {
            display: grid;
            grid-template-columns: 1.8fr 1fr;
            gap: 20px;
            align-items: center;
            margin-bottom: 80px;
            background: var(--white);
            box-shadow: var(--shadow);
        }
        .solution-card:nth-child(even) { direction: rtl; }
        .solution-card:nth-child(even) > * { direction: ltr; }
        .solution-card img { width: 100%; object-fit: cover; min-height: 400px; }
        .solution-content { padding: 10px; }
        .solution-content .tag {
            display: inline-block;
            background: var(--secondary);
            color: var(--white);
            padding: 5px 15px;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 20px;
        }
        .solution-content h3 { font-size: 28px; color: var(--primary); margin-bottom: 0px; }
        .solution-content p { color: var(--gray); line-height: 1.8; margin-bottom: 20px; }
        .solution-content ul { list-style: none; margin-bottom: 25px; }
        .solution-content ul li {
            padding: 8px 0;
            padding-left: 20px;
            position: relative;
            color: var(--text);
        }
        .solution-content ul li::before {
            content: '▸';
            position: absolute;
            left: 0;
            color: var(--secondary);
        }

        @media (max-width: 768px) {
            .solution-card { grid-template-columns: 1fr; }
            .solution-card img { min-height: 250px; }
        }

/* ========================================
   news 页面样式
   ======================================== */
.news-section { padding: 80px 0; }
        .news-filter {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-bottom: 50px;
            flex-wrap: wrap;
        }
        .filter-btn {
            padding: 10px 25px;
            border: 1px solid var(--border);
            background: var(--white);
            color: var(--text);
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
        }
        .filter-btn.active,
        .filter-btn:hover {
            background: var(--secondary);
            color: var(--white);
            border-color: var(--secondary);
        }

        .news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
        .news-item { background: var(--white); box-shadow: var(--shadow); transition: transform 0.3s; }
        .news-item:hover { transform: translateY(-5px); }
        .news-item img { width: 100%; height: 220px; object-fit: cover; }
        .news-item-body { padding: 25px; }
        .news-meta {
            display: flex;
            gap: 15px;
            margin-bottom: 12px;
            font-size: 13px;
            color: var(--gray);
        }
        .news-meta .category { color: var(--secondary); font-weight: 600; }
        .news-item h3 { font-size: 18px; color: var(--primary); margin-bottom: 12px; line-height: 1.4; }
        .news-item p { color: var(--gray); font-size: 14px; line-height: 1.7; margin-bottom: 15px; }
        .read-more { color: var(--secondary); text-decoration: none; font-weight: 600; font-size: 14px; }

        .pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 60px;
        }
        .pagination a {
            padding: 10px 18px;
            border: 1px solid var(--border);
            color: var(--text);
            text-decoration: none;
            transition: all 0.3s;
        }
        .pagination a:hover,
        .pagination a.active {
            background: var(--secondary);
            color: var(--white);
            border-color: var(--secondary);
        }

        @media (max-width: 768px) {
            .news-list { grid-template-columns: 1fr; }
        }

/* ========================================
   contact 页面样式
   ======================================== */
.contact-section { padding: 80px 0; }
        .contact-grid {
            display: grid;
            grid-template-columns: 1.2fr 3fr;
            gap: 10px;
        }

        .contact-info h3 { font-size: 28px; color: var(--primary); margin-bottom: 30px; }
        .contact-image { display: flex; align-items: center; }
        .contact-image img { width: 100%; height: auto; border-radius: 6px; object-fit: cover; min-height: 400px; }
        .contact-item {
            display: flex;
            gap: 20px;
            margin-bottom: 30px;
            align-items: flex-start;
        }
        .contact-icon {
            width: 50px;
            height: 50px;
            background: var(--primary);
            color: var(--white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }
        .contact-detail h4 { font-size: 16px; color: var(--primary); margin-bottom: 5px; }
        .contact-detail p { color: var(--gray); font-size: 15px; line-height: 1.6; }

        .contact-form {
            background: var(--light-bg);
            padding: 50px;
        }
        .contact-form h3 { font-size: 24px; color: var(--primary); margin-bottom: 30px; }
        .form-group { margin-bottom: 25px; }
        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: var(--text);
            font-size: 14px;
            font-weight: 500;
        }
        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 14px;
            border: 1px solid var(--border);
            font-size: 15px;
            font-family: inherit;
            transition: border-color 0.3s;
        }
        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--secondary);
        }
        .form-group textarea { resize: vertical; min-height: 120px; }

        .map-section { padding: 0 0 80px; }
        .map-placeholder {
            width: 100%;
            height: 450px;
            background: var(--light-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gray);
            font-size: 18px;
            border: 2px dashed var(--border);
        }

        .branches { padding: 80px 0; background: var(--light-bg); }
        .branches-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
        .branch-card {
            background: var(--white);
            padding: 35px;
            box-shadow: var(--shadow);
            transition: transform 0.3s;
        }
        .branch-card:hover { transform: translateY(-5px); }
        .branch-card h4 { font-size: 18px; color: var(--primary); margin-bottom: 15px; }
        .branch-card p { color: var(--gray); font-size: 14px; line-height: 1.8; margin-bottom: 8px; }
        .branch-card .phone { color: var(--secondary); font-weight: 600; }

        @media (max-width: 768px) {
            .contact-grid,
            .branches-grid { grid-template-columns: 1fr; }
            .contact-form { padding: 30px; }
        }

/* ========================================
   appCenter 页面样式
   ======================================== */
.appCenter { padding: 40px 40px;}
    .appCenter-card {
        /* background-image: url(../images/桌面背景.png);
        background-size: cover;
        background-position: center; */
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 40px;
        /* align-items: center; */
        place-items: center;
        /* background: #fff; */
        padding: 50px;
        border-radius: 16px;
        box-shadow: 0 4px 30px rgba(0,0,0,0.08);
        margin: 60px 0;
    }
    .appCenter-card img {
        max-width: 30%;
        width: 100%;
        border-radius: 12px;
        object-fit: cover;
    }

    /* ========== 右侧表单样式========== */
    .appCenter-content {
        width: 70%;
    }
    .appCenter-content h3 {
        font-size: 26px;
        color: #1a1a1a;
        text-align: center;
        margin-bottom: 32px;
        font-weight: 600;
        /* border-left: 4px solid #2563eb; */
        padding-left: 12px;
        user-select: none;
    }

    /* 表单整体统一间距 */
    .login-form {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    /* 输入项容器 */
    .form-item {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .form-item label {
        font-size: 15px;
        color: #333;
        font-weight: 500;
    }
    .form-item input {
        width: 100%;
        height: 48px;
        padding: 0 16px;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 15px;
        transition: all 0.25s ease;
        box-sizing: border-box;
    }
    /* 输入框聚焦高亮 */
    .form-item input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
        outline: none;
    }
    .form-item input::placeholder {
        color: #aaa;
    }

    /* 按钮组布局：左右分开 */
    .form-btn-group {
        display: flex;
        gap: 16px;
        margin-top: 10px;
    }
    .form-btn-group button {
        flex: 1;
        height: 48px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.25s ease;
        border: none;
    }

    /* 登录主按钮（蓝色主色） */
    .btn-login {
        background-color: #2563eb;
        color: #fff;
    }
    .btn-login:hover {
        background-color: #1d4ed8;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
        transform: translateY(-2px);
    }
    .btn-login:active {
        transform: translateY(0);
    }

    /* 注册次要按钮（白色边框） */
    .btn-register {
        background-color: #fff;
        color: #2563eb;
        border: 1px solid #2563eb !important;
    }
    .btn-register:hover {
        background-color: #f0f6ff;
    }

    /* 移动端适配：768px以下左右变上下堆叠 */
    @media (max-width: 768px) {
        .appCenter-card {
            grid-template-columns: 1fr;
            padding: 30px 20px;
            gap: 30px;
        }
        .appCenter-content h3 {
            font-size: 22px;
        }
        .form-btn-group {
            flex-direction: column;
            gap: 12px;
        }
    }
