/* ==========================================
   Footer 重新设计样式
   现代化、简洁、紧凑的页脚设计
   ========================================== */

/* ========== 页脚整体样式 ========== */
.site-footer {
    background: #1e2530;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* 背景装饰 */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2), transparent);
}

/* ========== 主要内容区 ========== */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    padding: 1.25rem 0;
}

/* ========== 品牌区域 ========== */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


.logo-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.25rem;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.logo-info p {
    font-size: 0.8125rem;
    color: #ffffff;
    margin: 0;
    font-weight: 400;
}

/* 品牌统计 */
.brand-stats {
    display: flex;
    gap: 2rem;
}

.brand-stats .stat {
    font-size: 0.8125rem;
    color: #ffffff;
    white-space: nowrap;
    font-weight: 400;
}

.brand-stats .stat strong {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-right: 0.25rem;
}

/* ========== 联系方式区域 ========== */
.footer-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    grid-auto-rows: auto;
    gap: 0.875rem 3rem;
    align-items: start;
}

.contact-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.02em;
    grid-column: 1 / -1;
    grid-row: 1;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: contents;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #ffffff;
    transition: all 0.3s ease;
    font-weight: 400;
    line-height: 1.6;
    grid-column: 1;
}

.contact-list li:nth-child(even) {
    grid-column: 2;
}

.contact-list li:hover {
    transform: translateX(3px);
}

.contact-list li i {
    color: #ffffff;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* 版权信息与邮箱/工作时间行对齐 */
.copyright-inline {
    display: contents;
}

.copyright-text {
    font-size: 0.8125rem;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    font-weight: 400;
    line-height: 1.5;
    grid-column: 3;
    grid-row: 2;
    justify-self: start;
    text-align: left;
}

.copyright-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    grid-column: 3;
    grid-row: 3;
    justify-self: start;
}

.copyright-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-weight: 400;
}

.copyright-links span {
    color: #ffffff;
}

/* ========== 响应式设计 ========== */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .footer-contact {
        grid-template-columns: 1fr;
    }

    .contact-list li {
        grid-column: 1;
    }
    
    .copyright-text {
        grid-column: 1;
        grid-row: auto;
        text-align: left;
        justify-self: start;
    }

    .copyright-links {
        grid-column: 1;
        grid-row: auto;
        justify-content: flex-start;
        justify-self: start;
    }
}

@media (max-width: 768px) {
    .footer-content {
        padding: 1.25rem 0;
        gap: 1.25rem;
    }

    .brand-stats {
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .brand-logo {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .logo-info h4 {
        font-size: 1rem;
    }

    .logo-info p {
        font-size: 0.75rem;
    }

    .brand-stats {
        gap: 1.25rem;
    }

    .brand-stats .stat {
        font-size: 0.75rem;
    }

    .brand-stats .stat strong {
        font-size: 0.9375rem;
    }

    .contact-title {
        font-size: 0.9375rem;
    }

    .contact-list li {
        font-size: 0.75rem;
    }
    
    .contact-list li i {
        font-size: 0.8125rem;
    }
    
    .copyright-text {
        font-size: 0.75rem;
        white-space: normal;
    }

    .copyright-links {
        font-size: 0.75rem;
    }
}
