/**
 * Footer Styles
 * 网站底部样式 - 参考著名设计师网站的优雅设计
 */

.site-footer {
    width: 100%;
    background: var(--color-bg-primary);
    border-top: var(--border-thin);
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    overflow: hidden;
}

/* Footer 背景装饰 - 优雅的质感背景 */
.footer-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background-image: 
        /* 微妙的网格图案 */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 30px,
            rgba(201, 169, 97, 0.04) 30px,
            rgba(201, 169, 97, 0.04) 31px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 30px,
            rgba(201, 169, 97, 0.04) 30px,
            rgba(201, 169, 97, 0.04) 31px
        );
    background-size: 30px 30px;
    opacity: 0.3;
}

.footer-bg-decoration::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(
        ellipse at center,
        rgba(201, 169, 97, 0.08) 0%,
        rgba(201, 169, 97, 0.04) 40%,
        transparent 70%
    );
    filter: blur(100px);
}

.footer-bg-decoration::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: 20%;
    width: 500px;
    height: 300px;
    background: radial-gradient(
        ellipse at center,
        rgba(201, 169, 97, 0.06) 0%,
        transparent 60%
    );
    filter: blur(80px);
}

/* 亮色主题下的背景装饰 */
.theme-light .footer-bg-decoration {
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 30px,
            rgba(166, 124, 61, 0.08) 30px,
            rgba(166, 124, 61, 0.08) 31px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 30px,
            rgba(166, 124, 61, 0.08) 30px,
            rgba(166, 124, 61, 0.08) 31px
        );
    opacity: 0.5;
}

.theme-light .footer-bg-decoration::before {
    background: radial-gradient(
        ellipse at center,
        rgba(166, 124, 61, 0.12) 0%,
        rgba(166, 124, 61, 0.06) 40%,
        transparent 70%
    );
}

.theme-light .footer-bg-decoration::after {
    background: radial-gradient(
        ellipse at center,
        rgba(166, 124, 61, 0.1) 0%,
        transparent 60%
    );
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-xs);
}

.footer-logo-icon {
    width: 64px;
    height: 64px;
    display: block;
    transition: opacity var(--transition-fast);
    object-fit: contain;
}

.footer-logo-icon:hover {
    opacity: 0.85;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
    margin: 0;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 300;
    margin: 0;
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: var(--color-accent-gold);
    opacity: 0.4;
    margin: var(--spacing-sm) 0;
    transition: opacity var(--transition-normal);
}

.site-footer:hover .footer-divider {
    opacity: 0.7;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    margin: 0;
    font-weight: 300;
}

.footer-note {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0;
    font-weight: 300;
    opacity: 0.6;
}

/* 亮色主题调整 */
.theme-light .footer-divider {
    opacity: 0.5;
}

.theme-light .site-footer:hover .footer-divider {
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-footer {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .footer-content {
        gap: var(--spacing-sm);
    }

    .footer-logo-icon {
        width: 56px;
        height: 56px;
    }

    .footer-logo {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
    }

    .footer-tagline {
        font-size: 0.8rem;
    }

    .footer-copyright {
        font-size: 0.7rem;
    }

    .footer-note {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .footer-divider {
        width: 40px;
    }
}

