.site-footer {
    background: #0a1633;
    color: #fff;
}

.footer-main {
    padding: 2rem 0; /* 再次压低高度 */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    align-items: start; /* 各列内容顶部对齐，避免视觉错位 */
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo img {
    max-height: 45px;
    width: auto;
    display: inline-block;
}

.company-desc {
    color: rgba(255, 255, 255, 0.7);
    margin: 1.5rem 0;
    line-height: 1.8;
}

.contact-info {
    text-align: center;
}

.contact-info p {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    text-align: left; /* 字体居左 */
    width: 100%;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; /* 对齐左侧 */
    width: 30px;
    height: 2px;
    background: var(--color-primary-light);
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left; /* 菜单也居左对齐 */
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-menu a:hover {
    color: #fff;
}

.service-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left; /* 与 footer-menu 保持一致 */
}

.service-list li {
    margin-bottom: 0.75rem;
}

.service-list a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.service-list a:hover {
    color: #fff;
}

.footer-nav {
    text-align: left;
}

.footer-qrcode {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 二维码区域内容左对齐，与快捷链接标题对齐 */
}

.qrcode-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 二维码图片+文字左对齐 */
}

.qrcode-wrapper img {
    max-width: 120px;
    margin-bottom: 0.5rem;
}

.qrcode-wrapper p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.qrcode-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* 友情链接样式 */
.footer-friends {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0; /* 高度降低一点，从 1rem 改为 0.5rem */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.friend-links-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.friend-label {
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.friend-links-list a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.friend-links-list a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.copyright p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-primary-light);
    color: #fff;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    border-radius: 3px;
    border: 2px solid #fff; /* 添加白色边框防止与深色背景重叠 */
    pointer-events: none;
    will-change: transform, opacity;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--color-primary-light);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-info {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-info {
        grid-column: span 1;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
