/* ===== Footer ===== */
footer {
    background: #141414;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(81, 159, 224, 0.2), transparent);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 32px 0;
}

/* 两栏主体 */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: start;
    padding-bottom: 48px;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo {
    height: 32px;
    width: auto;
    opacity: 0.85;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-brand-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2px;
}

.footer-brand-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 300px;
}

.footer-brand-author {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.3px;
}

.footer-col-title {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #519FE0;
    padding-left: 4px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

.footer-contact-item:hover .footer-contact-icon {
    background: rgba(81, 159, 224, 0.08);
    border-color: rgba(81, 159, 224, 0.15);
}

.footer-contact-icon svg {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.35);
}

.footer-contact-item:hover .footer-contact-icon svg {
    color: #519FE0;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
}

.footer-contact-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.3px;
}

.footer-contact-value a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s;
}

.footer-contact-value a:hover {
    color: #519FE0;
}

/* 底部栏 */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
}

.footer-legal {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.18);
    text-align: right;
    max-width: 520px;
    line-height: 1.6;
}

.footer-legal strong {
    color: rgba(255, 255, 255, 0.3);
}

/* 响应式 */
@media (max-width: 640px) {
    .footer-inner {
        padding: 28px 16px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 20px;
    }

    .footer-brand-desc {
        display: none;
    }

    .footer-logo-row {
        margin-bottom: 0;
    }

    .footer-brand-name {
        font-size: 14px;
    }

    .footer-contact-col {
        display: flex;
        align-items: center;
        gap: 16px;
        padding-top: 16px;
    }

    .footer-col-title {
        display: none;
    }

    .footer-contact-list {
        flex-direction: row;
        gap: 16px;
    }

    .footer-contact-icon {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }

    .footer-contact-icon svg {
        width: 12px;
        height: 12px;
    }

    .footer-contact-value a {
        font-size: 12px;
    }

    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 14px 0;
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    }

    .footer-copyright {
        font-size: 11px;
    }

    .footer-legal {
        text-align: center;
        max-width: none;
        font-size: 10px;
    }
}
