/* ==========================================================
   footer.css — 页脚样式（精确复刻设计稿）
   设计稿尺寸基准：1920 × 416
   ========================================================== */

/* ---------- 主体 ---------- */
.footer {
    position: relative;
    width: 100%;
    background: #12131B;
    color: #fff;
    overflow: hidden;
}

.footer-main {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    height: 376px;
}

/* ---------- Logo ---------- */
.footer-logo {
    position: absolute;
    left: 241px;
    top: 58px;
    width: 76px;
    height: 17px;
    display: block;
}

.footer-logo img {
    display: block;
    width: 100%;
    height: 100%;
}

/* ---------- 通用列 ---------- */
.footer-col {
    position: absolute;
    top: 56px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
}

/* 各列水平坐标（依据设计稿：1920 画布） */
.footer-col.fc-quick   { left: 764px;  width: 100px; }
.footer-col.fc-news    { left: 924px;  width: 120px; }
.footer-col.fc-links   { left: 1084px; width: 260px; }
.footer-col.fc-contact { left: 1384px; width: 360px; }

/* ---------- 列标题 ---------- */
.footer-col .col-title {
    font-size: 14px;
    font-weight: 305;
    color: #FFFFFF;
    line-height: 20px;
    margin-bottom: 23px; /* 标题与第一条链接间距 ≈ 23px */
}

/* ---------- 链接 ---------- */
.footer-col .col-link {
    display: block;
    font-size: 14px;
    font-weight: 250;
    color: #A7A7A7;
    line-height: 20px;
    margin-top: 16px; /* 链接之间的纵向间距 */
    white-space: nowrap;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-col .col-link:first-of-type {
    margin-top: 0;
}

.footer-col .col-link:hover {
    color: #FFFFFF;
}

/* ---------- 联系我们（带社交图标） ---------- */
.footer-contact .col-title {
    font-weight: 250;
}

.footer-contact .contact-item {
    font-size: 14px;
    font-weight: 250;
    color: #A7A7A7;
    line-height: 20px;
    margin-top: 18px; /* 原 24px，压缩间距为 hover 二维码留出空间 */
    white-space: nowrap;
}

.footer-contact .contact-item:first-of-type {
    margin-top: 0;
}

/* 英文版 Base 地址过长：允许换行（设计稿 #11:381015 为 384px 两行） */
.footer-contact .contact-item.contact-wrap {
    white-space: normal;
    width: 384px;
    line-height: 19px;
}

.footer-contact .socials-wrap {
    position: relative;
    width: max-content;
    margin-top: 12px;
}

.footer-contact .socials {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

/* 每个图标独立成组，二维码相对该组定位，显示在对应图标正下方 */
.footer-contact .social-item {
    position: relative;
    width: 32px;
    flex: 0 0 auto;
}

/* 圆形底：默认 #30323E；hover 时圆变白、图标转为品牌色（设计稿 hover 态） */
.footer-contact .socials a {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #30323E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .25s ease;
}

.footer-contact .socials a img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    pointer-events: none;
    transition: opacity .25s ease;
}

.footer-contact .socials a .ico-hover { opacity: 0; }

.footer-contact .socials a:hover { background: #fff; }
.footer-contact .socials a:hover .ico-default { opacity: 0; }
.footer-contact .socials a:hover .ico-hover { opacity: 1; }

/* 英文版海外平台图标（单图 PNG，无 hover 变色版，hover 保持显示） */
.footer-contact .socials a .ico-en {
    width: 20px;
    height: 20px;
}

.footer-contact .socials a:hover .ico-en { opacity: 1; }

/* 二维码：hover（或键盘聚焦）对应图标时，浮现在该图标正下方 */
.footer-contact .qr-pop {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    width: 80px;
    height: 80px;
    padding: 3px;
    background: #fff;
    border-radius: 3px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-4px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    z-index: 5;
    pointer-events: none;
}

.footer-contact .qr-pop img {
    display: block;
    width: 74px;
    height: 74px;
}

.footer-contact .social-item:hover .qr-pop,
.footer-contact .social-item:focus-within .qr-pop {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ---------- 底部版权条 ---------- */
.footer-bottom {
    position: relative;
    width: 100%;
    height: 40px;
    background: #1C1C25;
    text-align: center;
    padding-top: 12px;
}

.footer-bottom span {
    font-size: 12px;
    font-weight: 305;
    color: #A7A7A7;
    line-height: 16px;
    letter-spacing: 0;
}

/* ==========================================================
   响应式
   ========================================================== */
@media (max-width: 1440px) {
    .footer-main {
        transform-origin: top center;
    }
}

@media (max-width: 1200px) {
    .footer-col.fc-quick   { left: 560px; }
    .footer-col.fc-news    { left: 700px; }
    .footer-col.fc-links   { left: 850px; }
    .footer-col.fc-contact { left: 1140px; }
    .footer-logo           { left: 120px; }
}

@media (max-width: 900px) {
    .footer-main {
        height: auto;
        padding: 48px 24px 32px;
    }

    .footer-logo {
        position: static;
        margin-bottom: 40px;
    }

    .footer-col {
        position: static;
        width: 100% !important;
        margin-bottom: 32px;
    }

    .footer-col .col-link {
        margin-top: 16px;
    }

    .footer-contact .contact-item {
        margin-top: 12px;
    }

    .footer-contact .socials-wrap {
        width: auto;
        margin-top: 24px;
    }

    /* 移动端无 hover：四个二维码改为纵向常显在各图标下方（横向排列，跟随对应图标） */
    .footer-contact .socials {
        gap: 12px;
        flex-wrap: wrap;
    }

    .footer-contact .social-item {
        width: auto;
    }

    .footer-contact .qr-pop {
        position: static;
        width: 64px;
        height: 64px;
        padding: 2px;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 12px;
        pointer-events: auto; /* 移动端需支持长按识别/保存二维码 */
    }

    .footer-contact .qr-pop img {
        width: 60px;
        height: 60px;
    }

    .footer-bottom {
        padding: 12px 16px;
    }
}