/**
 * 统一页脚样式 - 所有页面共享
 * 此文件确保全站页脚保持一致
 */

/* Footer Styles */
.custom-footer-wrapper {
    width: 100vw !important;
    max-width: none !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    margin-top: 80px;
    padding: 0;
    box-sizing: border-box;
    background: #9c846B;
}

.hospital-footer {
    background: #9c846B;
    color: #ffffff;
    padding: 20px 20px 15px;
    position: relative;
    z-index: 1;
}

/* Ensure footer is at the bottom */
.site-content {
    margin-bottom: 0 !important;
}

body {
    display: flex;
    flex-direction: column-reverse;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    margin-bottom: 0 !important;
}

/* Remove any default footer spacing */
#page {
    margin-bottom: 0 !important;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 3fr 3fr 2fr 2fr;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-column h3.footer-title {
    color: #ffffff;
    font-size: 1.1em;
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #9c846B;
}

.footer-qr-column {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15px;
}

.footer-qr-image {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
}

.footer-info-list,
.footer-nav,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-info-list li,
.footer-nav li,
.footer-contact li {
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-info-list li i {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    margin-top: 3px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-contact li i {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    margin-top: 3px;
}

.footer-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-nav a i {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-phone {
    font-size: 2em;
    font-weight: 700;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom-content p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9em;
    margin: 8px 0;
}

.footer-bottom-content a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.footer-bottom-content a:hover {
    color: rgba(255,255,255,0.8);
}

/* Hide Astra theme default footer */
.ast-footer-site-title,
.ast-footer-copyright,
footer.site-footer,
.ast-small-footer,
.ast-footer,
.site-footer {
    display: none !important;
    visibility: hidden;
    height: 0;
    padding: 0;
    margin: 0;
}

/* Ensure our custom footer is visible */
.hospital-footer {
    display: block !important;
    visibility: visible !important;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hospital-footer {
        padding: 50px 15px 20px;
        margin-top: 60px;
    }
}
