/* 页脚样式 - 共享组件样式 */

/* 站点页脚 */
.site-footer {
    background: var(--dark);
    color: var(--gray-300);
    margin-top: 80px;
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
}

.footer-section {
    min-width: 0;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.brand-icon {
    font-size: 1.5rem;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.contact-icon {
    flex-shrink: 0;
    font-size: 1rem;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

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

.footer-legal {
    display: flex;
    gap: 16px;
}

.footer-legal a {
    font-size: 0.875rem;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--primary);
}

.footer-legal .divider {
    color: var(--gray-600);
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* 分享弹窗 */
.share-platforms {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.share-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    transition: all var(--transition-fast);
}

.share-icon.wechat { background: #07C160; }
.share-icon.moments { background: #FF9500; }
.share-icon.qq { background: #12B7F5; }
.share-icon.weibo { background: #E6162D; }

.share-btn:hover .share-icon {
    transform: scale(1.1);
}

.share-text {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.share-link-box {
    display: flex;
    gap: 12px;
}

.share-link-box .form-input {
    flex: 1;
    background: var(--gray-100);
}

/* 海报预览 */
.poster-preview {
    background: var(--gray-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
}

.poster-loading {
    padding: 40px;
    text-align: center;
    color: var(--gray-500);
}

.poster-loading .spinner {
    margin: 0 auto 16px;
}

.poster-template {
    background: var(--white);
}

.poster-header {
    background: var(--primary-gradient);
    padding: 30px 20px;
    text-align: center;
    color: var(--white);
}

.poster-logo {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.poster-title {
    font-size: 1rem;
    opacity: 0.9;
}

.poster-user {
    text-align: center;
    padding: 20px;
}

.poster-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    margin: 0 auto 12px;
    border: 3px solid var(--primary);
    object-fit: cover;
}

.poster-username {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.poster-level {
    font-size: 0.875rem;
    color: var(--primary);
}

.poster-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0 20px 20px;
}

.poster-stats .stat-item {
    text-align: center;
}

.poster-stats .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.poster-stats .stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.poster-qrcode {
    text-align: center;
    padding: 20px;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: var(--gray-200);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--gray-500);
    border-radius: var(--radius-sm);
}

.poster-footer {
    text-align: center;
    padding: 16px;
    font-size: 0.8125rem;
    color: var(--gray-500);
    background: var(--gray-100);
}

.poster-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 响应式 */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-main {
        padding: 40px 0 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .share-platforms {
        gap: 16px;
    }

    .share-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}