/* ===== 底部样式（深色简洁版） ===== */
.footer {
    background: #111111;
    color: #9ca3af;
    padding: 40px 0 20px;
    margin-top: 40px;
    width: 100%;
}
.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.footer-top-border {
    border-top: 1px solid #2a2a2a;
    margin-bottom: 30px;
}
.footer-body-row {
    display: flex;
    gap: 40px;
    margin-bottom: 32px;
}
.footer-links-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    flex: 1;
    gap: 24px;
}
.footer-col h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: #3b82f6; }

/* 联系我们 */
.footer-col-contact p {
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.footer-col-contact p span {
    color: #e5e7eb;
    font-weight: 500;
    white-space: nowrap; /* 强制标签不换行 */
}

/* 二维码区域 */
.footer-qr-section {
    flex-shrink: 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.qr-item { text-align: center; width: 100px; }
.qr-item .qr-box {
    width: 100px;
    height: 100px;
    background: #ffffff;
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
}
.qr-item .qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-item span { font-size: 12px; color: #ccc; }

/* 底部版权 */
.footer-bottom-bar {
    border-top: 1px solid #2a2a2a;
    padding-top: 16px;
    display: flex;
    justify-content: center;
    font-size: 13px;
    color: #6b7280;
}
.footer-bottom-bar a { color: #6b7280; text-decoration: none; margin: 0 4px; }
.footer-bottom-bar a:hover { color: #3b82f6; }

/* ===== 右侧悬浮工具栏（已优化） ===== */
.float-toolbar {
    position: fixed;
    right: 24px;
    bottom: 80px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 6px 4px; /* 调整内边距 */
    justify-content: space-evenly; /* 让按钮完美均等分布，消除底部留白 */
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
    width: fit-content;
}
.float-toolbar.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.float-toolbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    padding: 8px 0 6px;
    color: #555;
    text-decoration: none;
    font-size: 11px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    line-height: 1;
}
.float-toolbar a:hover {
    background: #1a56db;
    color: #fff;
    transform: translateY(-1px);
}
.float-toolbar a .icon {
    width: 20px;
    height: 20px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.float-toolbar a .icon svg { width: 18px; height: 18px; fill: currentColor; }

/* 微信二维码弹窗 */
.wechat-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.wechat-modal-overlay.show { display: flex; }
.wechat-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-width: 320px;
    width: 90%;
    position: relative;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.wechat-modal-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none; border: none;
    font-size: 24px; color: #999;
    cursor: pointer; line-height: 1;
    transition: color 0.2s;
}
.wechat-modal-close:hover { color: #333; }
.wechat-modal .qr-box {
    width: 200px; height: 200px;
    margin: 0 auto 16px;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}
.wechat-modal .qr-box img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.wechat-modal h4 { font-size: 18px; color: #1a1a2e; margin: 0 0 6px; font-weight: 600; }
.wechat-modal p { font-size: 13px; color: #888; margin: 0; }

/* 复制提示 */
.copy-toast {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.copy-toast.show { opacity: 1; }

/* ===== 独立圆形蓝色返回顶部按钮 ===== */
#back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    width: 48px;
    height: 48px;
    background: #1a56db; /* 与截图一致的蓝色 */
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}
#back-to-top:hover {
    background: #0f3d99;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 86, 219, 0.4);
}
#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#back-to-top svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .footer-links-columns { grid-template-columns: 1fr; }
    .footer-qr-section { flex-direction: row; justify-content: center; width: 100%; }
    .float-toolbar { right: 10px; bottom: 60px; padding: 3px; gap: 0; }
    .float-toolbar a { width: 44px; padding: 4px 0 2px; font-size: 10px; }
    .float-toolbar a .icon { width: 16px; height: 16px; margin-bottom: 2px; }
    .float-toolbar a .icon svg { width: 14px; height: 14px; }
    #back-to-top { right: 10px; bottom: 16px; width: 40px; height: 40px; }
    #back-to-top svg { width: 18px; height: 18px; }
}