/* 底部样式文件 - footer.css */

/* 底部样式 */
.footer {
    background-color: #333;
    color: #FFFFFF;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-section:last-child {
    text-align: right;
    justify-self: end;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* 社交图标样式 */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon-wrapper {
    position: relative;
    cursor: pointer;
}

.social-icon {
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
    filter: brightness(0.8);
}

.social-icon:hover {
    filter: brightness(1.2);
    transform: scale(1.1);
}

.qr-code-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #333;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-bottom: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    width: 160px;           /* 固定容器宽度，避免百分比内容导致0宽 */
    min-width: 140px;       /* 保底宽度 */
    max-width: 220px;       /* 上限宽度 */
    overflow: hidden;
}

.social-icon-wrapper:hover .qr-code-tooltip {
    opacity: 1;
    visibility: visible;
}

.qr-code-placeholder {
    padding: 0.5rem;
    text-align: center;
}

/* 二维码图片自适配 */
.qr-code-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
}

/* 移动端适配：避免溢出屏幕 */
@media (max-width: 480px) {
    .qr-code-tooltip {
        width: 70vw;        /* 小屏使用视口宽度，避免溢出 */
        max-width: 90vw;
    }
}

/* 底部底栏样式 */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.footer-bottom-left,
.footer-bottom-right {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-right {
    text-align: right;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}