/* ============================================
   联系页面样式 - 移动优先
   ============================================ */

/* 移动端基础样式（默认） */
.contact-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: url(../images/bg_footer.jpg) no-repeat;
    background-size: cover;
    background-position: center;
}

.certificate-scroll {
    width: 100%;
    padding: 1rem 0;
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.certificate-scroll ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0 1rem;
    min-width: min-content;
}

.certificate-scroll ul li {
    flex-shrink: 0;
}

.certificate-scroll ul li img {
    height: 8rem;
    width: auto;
    object-fit: cover;
}

.contact-title {
    width: 100%;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-title h1 {
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    margin: 0.5rem 0;
    line-height: 1.2;
}

.contact-title small {
    display: block;
    font-size: 1.125rem;
    color: var(--color-text-muted);
    font-weight: 400;
    text-align: center;
    line-height: 1.2;
}

.contact-content {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: relative;
}

.contact-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.company-address {
    width: 100%;
    padding: 1rem;
}

.company-address h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
    color: var(--color-text);
}

.company-address h4 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0.5rem 0;
    color: var(--color-text);
    line-height: 1.5;
}

.company-address h4:last-child {
    text-align: right;
}

.wechat-qr {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem;
}

.qr-code img {
    width: 8rem;
    height: auto;
}

.qr-code span {
    font-size: 1rem;
    text-align: center;
}

.copyright-footer {
    width: 100%;
    padding: 0.75rem;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.copyright-footer img {
    display: inline-block;
    height: 1rem;
    width: auto;
    vertical-align: text-bottom;
}

.copyright-footer a {
    color: var(--color-link);
    margin-right: 0.5rem;
}

/* 平板适配 */
@media (min-width: 768px) {
    .certificate-scroll ul li img {
        height: 12rem;
    }

    .contact-title h1 {
        font-size: 2rem;
    }

    .contact-title small {
        font-size: 1.5rem;
    }

    .contact-info {
        flex-direction: row;
        justify-content: flex-end;
        align-items: flex-end;
        gap: 1.5rem;
    }

    .company-address {
        width: auto;
    }

    .wechat-qr {
        width: auto;
        justify-content: flex-end;
        align-items: flex-end;
    }

    .qr-code img {
        width: 10rem;
    }

    .copyright-footer {
        font-size: 1rem;
    }

    .copyright-footer img {
        height: 1.25rem;
    }
}

/* 桌面端适配 */
@media (min-width: 992px) {
    .certificate-scroll ul li img {
        height: 15rem;
    }

    .contact-title h1 {
        font-size: 2.25rem;
    }

    .company-address h3 {
        font-size: 1.5rem;
    }

    .company-address h4 {
        font-size: 1.125rem;
    }
}
