/* 联系我们页面样式 */

/* 页面允许滚动 */
html,
body {
    overflow: auto;
    scrollbar-width: auto;
    height: auto;
    min-height: 100%;
}

/* Webkit 浏览器显示滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 页面主体 */
.contact-page {
    padding-top: 40px;
    background: #eef6ff;
}

/* ========== 滚动入场动画 ========== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* 移动端禁用滚动动画 */
@media (max-width: 768px) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.contact-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 140px 0 60px;
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #0073ff;
    margin-bottom: 15px;
}

.title-icon {
    width: 484px;
    height: 21px;
    display: block;
    margin: 0 auto;
}

/* 建筑图片 */
.building-banner {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.building-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* PC端显示PC图片，隐藏移动端图片 */
.building-banner .building-mobile {
    display: none !important;
}

.building-banner .building-pc {
    display: block !important;
}

/* 捐赠与联系方式区域 */
.contact-info-section {
    margin-bottom: 40px;
    margin-top: -180px;
    position: relative;
    z-index: 10;
}

.contact-info-inner {
    display: flex;
    background: url('../images/contact/bookBg.png') center center no-repeat;
    background-size: 1160px 438px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    width: 1160px;
    height: 438px;
    margin: 0 auto;
}

/* 左侧捐赠 */
.donation-block {
    flex: 1;
    padding: 62px 80px 40px 40px;
    display: flex;
    flex-direction: column;
}

.donation-header {
    margin-bottom: 30px;
}

.donation-logo {
    height: 44px;
    width: auto;
}

.donation-title {
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-weight: 400;
    font-size: 22px;
    color: #0073ff;
    margin-bottom: 16px;
    margin-top: 20px;
}

.donation-desc {
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    text-indent: 2em;
}

/* 中间分隔线 */
.contact-divider {
    width: 1px;
    background: #e8e8e8;
    margin: 40px 0;
}

/* 右侧联系方式 */
.contact-details {
    flex: 1;
    padding: 62px 40px 40px 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-details-title {
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-weight: 400;
    font-size: 28px;
    color: #0073ff;
    margin-bottom: 30px;
    margin-top: 0;
}



.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-item.mt30 {
    margin-top: 30px;
}
.contact-item.mt40 {
    margin-top: 40px;
}

.contact-icon {
    width: 39px;
    height: 39px;
    margin-top:7px;
    margin-right: 16px;
    flex-shrink: 0;
}

.contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #999;
    margin-bottom: 4px;
}

.contact-value {
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #333;
    word-break: break-all;
}

/* 地图区域 */
.map-section {
    width: 1160px;
    height: 471px;
    margin: 0 auto 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.map-title {
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.map-container {
    width: 1063px;
    height: 353px;
    border-radius: 5px;
    overflow: hidden;
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========== 响应式适配 ========== */
@media (max-width: 1200px) {
    .contact-container {
        padding: 120px 40px 40px;
    }
}

@media (max-width: 992px) {
    .contact-info-inner {
        flex-direction: column;
    }

    .contact-divider {
        width: auto;
        height: 1px;
        margin: 0 40px;
    }

    .donation-block,
    .contact-details {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 100px 20px 30px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    /* 移动端隐藏PC图片，显示移动端图片 */
    .building-banner .building-pc {
        display: none !important;
    }

    .building-banner .building-mobile {
        display: block !important;
    }

    .title-icon {
        width: 300px;
        height: auto;
    }

    .building-banner {
        margin-bottom: 24px;
    }

    /* 移动端捐赠与联系方式区域样式 */
    .contact-info-section {
        margin-top: -90px;
        margin-bottom: 24px;
        padding: 0 10px;
    }

    .contact-info-inner {
        width: 100%;
        height: auto;
        background: transparent;
        border-radius: 6px;
        box-shadow: none;
        flex-direction: column;
    }

    .contact-divider {
        display: none;
    }

    .donation-block {
        padding: 24px;
        background: #fff;
        border-radius: 6px;
        margin-bottom: 12px;
    }

    .donation-header {
        margin-bottom: 30px;
    }

    .donation-logo {
        width: 100%;
        height: auto;
    }

    .donation-title {
        font-size: 16px;
        color: #0073ff;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .donation-desc {
        font-size: 13px;
        line-height: 1.8;
        text-indent: 2em;
    }

    .contact-details {
        padding: 24px;
        background: #fff;
        border-radius: 6px;
        margin-bottom: 12px;
    }

    .contact-details-title {
        font-size: 16px;
        color: #0073ff;
        margin-bottom: 30px;
        text-align: center;
    }

    .contact-item {
        margin-bottom: 20px;
    }

    .contact-item:last-child {
        margin-bottom: 0;
    }

    .contact-item.mt24,
    .contact-item.mt30,
    .contact-item.mt40,
    .contact-item.mt50 {
        margin-top: 0;
    }

    .contact-icon {
        width: 32px;
        height: 32px;
        margin-right: 12px;
    }

    .contact-label {
        font-size: 12px;
    }

    .contact-value {
        font-size: 14px;
    }

    /* 移动端地图区域样式 */
    .map-section {
        width: auto;
        height: auto;
        padding: 24px;
        margin: 0 10px 24px;
        box-sizing: border-box;
        box-shadow: none;
    }

    .map-title {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .map-container {
        width: 100%;
        height: 177px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 24px;
    }

    .title-icon {
        width: 240px;
    }

    .donation-block,
    .contact-details {
        padding:25px 20px;
    }
}