/* ====== base 保持原风格，加入移动端覆写 ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
}

body {
    background-color: #f9fafc;
    line-height: 1.5;
    color: #1e293b;
    overflow-x: hidden;
    /* 防止横向溢出 */
    width: 100%;
}

/* ----- 固定头部 (移动端压缩) ----- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 40, 80, 0.1);
    padding: 0 16px;
}

.site-header-content {
    width: 1200px;
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.logo {
    font-size: 1.5rem;
    /* 移动端稍小 */
    font-weight: 600;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    flex-wrap: wrap;
    /* 允许换行，但尽量保留在一行 */
    justify-content: flex-end;
}

.nav-menu a {
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    /* 移动端适当缩小 */
    color: #334155;
    padding: 0.4rem 0;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.nav-menu a.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* ----- 滚动区块锚点补偿 ----- */
.scroll-section {
    scroll-margin-top: 70px;
}

/* ----- 图片模块通用 ----- */
.image-module {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    /* 左右内边距稍小 */
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.image-module:nth-child(even) {
    background-color: #f8fafc;
}

.module-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.module-container h2 {
    font-size: 2rem;
    /* 移动端降一点 */
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.02em;
    border-left: 6px solid #3b82f6;
    padding-left: 1.2rem;
    word-break: break-word;
}

.image-wrapper {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 20px 30px -10px rgba(0, 20, 40, 0.2);
    transition: box-shadow 0.3s;
    width: 100%;
}

.image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
    will-change: transform, opacity;
}

.img-caption {
    text-align: center;
    font-size: 1rem;
    color: #475569;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
}

/* ----- 九宫格专用样式 (移动端适配) ----- */
.grid-9 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    /* 移动端缩小间距 */
    margin: 0.5rem 0 1rem 0;
}

.grid-item {
    background-color: #f1f5f9;
    border-radius: 18px;
    /* 稍小圆角 */
    overflow: hidden;
    box-shadow: 0 10px 18px -8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 16 / 9;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.grid-item:hover img {
    transform: scale(1.05);
}

/* 查看更多按钮 */
.more-btn-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    padding: 0.7rem 1.8rem;
    /* 移动端略小 */
    border-radius: 60px;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 10px 18px -6px #1e3a8a;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    /* 如果作为a标签 */
    white-space: nowrap;
}

.more-btn i {
    font-size: 1rem;
}

/* ----- 底部联系人模块 (移动端重排) ----- */
.footer.full-width.opacity {
    width: 100%;
    background-color: #2a2a2a;
    color: #aaa;
    padding: 30px 20px 20px;
    /* 左右内边距 */
    font-family: '微软雅黑', 'PingFang SC', sans-serif;
    line-height: 1.6;
}

.foot-con.width-1200 {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px 40px;
}

/* 二维码区域移动端居中 */
.foot-con .qrcode {
    width: 140px;
    margin: 0 auto;
    /* 移动端居中 */
    text-align: center;
    color: #ccc;
}

.foot-con .qrcode dt {
    width: 140px;
    height: 140px;
    background: #fff;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.foot-con .qrcode dt img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 4px;
}

.foot-con .qrcode dd {
    font-size: 14px;
}

.foot-con .infobox {
    flex: 1;
    min-width: 260px;
    /* 防止过窄 */
}

.mapInfo dl.first dt {
    font-size: 18px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 8px;
    border-left: 4px solid #fff;
    padding-left: 12px;
}

.mapInfo dl.first dd {
    font-size: 14px;
    margin-left: 16px;
    padding: 2px 0;
    color: #bbb;
    word-break: break-word;
}

.num {
    font-size: 15px;
    color: #ddd;
    margin: 15px 0 5px;
    padding-left: 16px;
}

.num span {
    font-size: 22px;
    /* 移动端稍小 */
    font-weight: 600;
    margin-left: 10px;
    letter-spacing: 1px;
    display: inline-block;
}

.btmInfo {
    border-top: 1px solid #3c3c3c;
    padding-top: 18px;
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    color: #888;
}

.btmInfo span {
    margin-right: 15px;
}

.btmInfo a {
    color: #aaa;
    text-decoration: none;
}

.btmInfo a:hover {
    color: #c60b1e;
}

/* ===== 原有动画保留 (无改动) ===== */
#section1.in-view .image-wrapper img {
    animation-name: bounceInDown;
    animation-duration: 2s;
    animation-fill-mode: both;
}

#section11.in-view .image-wrapper .img1 {
    animation-name: bounceInRight;
    animation-duration: 2s;
    animation-fill-mode: both;
}

#section11.in-view .image-wrapper .img2 {
    animation-name: bounceInLeft;
    animation-duration: 2s;
    animation-fill-mode: both;
}

#section2.in-view .image-wrapper img {
    animation-name: bounceInLeft;
    animation-duration: 2s;
    animation-fill-mode: both;
}

#section3.in-view .image-wrapper img {
    animation-name: bounceInRight;
    animation-duration: 2s;
    animation-fill-mode: both;
}

#section4.in-view .image-wrapper img {
    animation-name: bounceInDown;
    animation-duration: 2s;
    animation-fill-mode: both;
}

@keyframes bounceInDown {

    0%,
    60%,
    75%,
    90%,
    100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }

    0% {
        opacity: 0;
        transform: translate3d(0, -3000px, 0);
    }

    60% {
        opacity: 1;
        transform: translate3d(0, 25px, 0);
    }

    75% {
        transform: translate3d(0, -10px, 0);
    }

    90% {
        transform: translate3d(0, 5px, 0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes bounceInLeft {

    0%,
    60%,
    75%,
    90%,
    100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }

    0% {
        opacity: 0;
        transform: translate3d(-3000px, 0, 0);
    }

    60% {
        opacity: 1;
        transform: translate3d(25px, 0, 0);
    }

    75% {
        transform: translate3d(-10px, 0, 0);
    }

    90% {
        transform: translate3d(5px, 0, 0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes bounceInRight {

    0%,
    60%,
    75%,
    90%,
    100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }

    0% {
        opacity: 0;
        transform: translate3d(3000px, 0, 0);
    }

    60% {
        opacity: 1;
        transform: translate3d(-25px, 0, 0);
    }

    75% {
        transform: translate3d(10px, 0, 0);
    }

    90% {
        transform: translate3d(-5px, 0, 0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes softBounce {
    0% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-12px);
    }

    60% {
        transform: translateY(4px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes gentleSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    40% {
        transform: rotate(4deg) scale(1.02);
    }

    70% {
        transform: rotate(-2deg) scale(0.98);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

.image-wrapper img {
    animation: none;
}

/* 禁止图片拖拽 */
img {
    user-select: none;
    pointer-events: none;
}

/* ========== 专门移动端媒体查询 ========== */
@media (max-width: 768px) {
    .site-header {
        height: 60px;
        padding: 0 12px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-menu ul {
        gap: 0.8rem;
    }

    .nav-menu a {
        font-size: 0.9rem;
    }

    .scroll-section {
        scroll-margin-top: 60px;
    }

    .image-module {
        padding: 3rem 1rem;
        min-height: auto;
        /* 移动端不强制全屏，更自然 */
    }

    .module-container h2 {
        font-size: 1.8rem;
        padding-left: 1rem;
    }

    .grid-9 {
        gap: 0.8rem;
    }

    .grid-item {
        border-radius: 14px;
    }

    .more-btn {
        padding: 0.6rem 1.4rem;
        font-size: 1rem;
    }

    /* 底部二维码和信息堆叠 */
    .foot-con.width-1200 {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .foot-con .infobox {
        width: 100%;
    }

    .mapInfo dl.first dt {
        text-align: left;
        /* 保持左对齐可读 */
    }

    .mapInfo dl.first dd {
        text-align: left;
    }

    .num {
        text-align: left;
    }

    .num span {
        display: block;
        /* 手机号换行，点击方便 */
        margin-left: 0;
        margin-top: 5px;
    }

    .btmInfo {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 5px;
    }

    .btmInfo span {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
    }

    .nav-menu ul {
        gap: 0.5rem;
    }

    .nav-menu a {
        font-size: 0.8rem;
        padding: 0.3rem 0;
    }

    .module-container h2 {
        font-size: 1.5rem;
    }

    .grid-9 {
        gap: 0.5rem;
    }

    .more-btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    .more-btn i {
        font-size: 0.9rem;
    }
}

/* 解决极窄屏（如折叠屏）导航换行问题 */
@media (max-width: 360px) {
    .nav-menu ul {
        gap: 0.3rem;
    }

    .nav-menu a {
        font-size: 0.75rem;
    }
}

/* 为section11的两个图片留出间距 (保持原有结构) */
#section11 .module-container {
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
}

#section11 .image-wrapper {
    /* flex: 1 1 300px; */
    min-width: 250px;
}

/* 移动端上下间距 */
#section11 .module-container {
    gap: 1.5rem;
}

/* 弹窗遮罩层 */
.poster-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

/* 弹窗内容 */
.poster-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

/* 海报图片 */
.poster-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* 关闭按钮 */
.poster-close {
    position: absolute;
    top: -30px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 5px;
}

.poster-close:hover {
    color: #ff6b6b;
}

/* 隐藏状态 */
.poster-modal.hidden {
    display: none;
}