/* Footer styles */

footer {
    /* background-color: rgb(129, 131, 131); */
    background-color: rgb(129, 131, 131);
    color: #f0f0f0;
    padding: 50px 0 20px;
    position: relative;
    z-index: 1;
}

/* Footer content layout */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

/* Logo section */
.footer-logo {
    flex: 1;
    min-width: 300px;
    margin-right: 20px;
    margin-bottom: 20px;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 15px;
}

/* Section headings */
.footer-links h4,
.footer-contact h4,
.footer-qrcode h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4:after,
.footer-contact h4:after,
.footer-qrcode h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Contact section */
.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-contact p {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.footer-contact p i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--primary-color);
}

/* Links section */
.footer-links {
    flex: 1;
    min-width: 300px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    transition: color 0.3s ease, padding 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* QR code section */
.footer-qrcode {
    flex: 0.5;
    min-width: 150px;
    text-align: center;
}

.footer-qrcode h4:after {
    left: 50%;
    transform: translateX(-50%);
}

.qrcode {
    margin-top: 10px;
    background-color: #ffffff;
    padding: 8px;
    border-radius: 5px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.qrcode img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Subsidiaries links */
.subsidiaries-links {
    margin-top: 20px;
}

.subsidiaries-list {
    list-style: none;
    padding-left: 0;
}

.subsidiaries-list li {
    margin-bottom: 8px;
}

.subsidiaries-list a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s;
}

.subsidiaries-list a:hover {
    color: var(--primary-color);
    /* text-decoration: underline; */
}

/* Footer bottom */
.footer-bottom {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* 响应式样式 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo, .footer-contact, .footer-links, .footer-qrcode {
        width: 100%;
        min-width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .footer-links {
        text-align: left;
    }
    
    .footer-qrcode {
        text-align: left;
    }
    
    .footer-qrcode h4:after {
        left: 0;
        transform: none;
    }
    
    .qrcode {
        margin-left: 0;
    }
}
