/* Global footer styles - 整合所有页面的footer样式 */

/* Footer波浪颜色变量 */
:root {
    /* 基于原配色的现代化方案 */
    --primary-color: #9e94d8;
    --primary-gradient: linear-gradient(135deg, #9e94d8 0%, #b6ade6 100%);
    --secondary-color: #333333;
    --background-color: #f2eefc;
    --background-gradient: linear-gradient(135deg, #f2eefc 0%, #e8e2f7 50%, #ddd6f3 100%);
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-bg-hover: rgba(255, 255, 255, 0.9);
    --text-color: #444444;
    --text-secondary: #666666;
    --online-color: #00BFA6;
    --nav-bg: rgba(109, 91, 154, 0.8);
    --nav-bg-scroll: rgba(109, 91, 154, 0.95);
    --button-hover: #b6ade6;
    --accent-color: #f59e0b;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(158, 148, 216, 0.3);
    --shadow-color: rgba(109, 91, 154, 0.2);
    --shadow-hover: rgba(109, 91, 154, 0.3);
    --footer-background-color: #1e293b;
    /* 支持系统主题 */
    color-scheme: light dark;
}


.dark-theme {
    --footer-wave-color: #0a0f1c;
}

@media (prefers-color-scheme: dark) {
    :root:not(.dark-theme) {
        --footer-wave-color: #0a0f1c;
    }
}

/* Footer过渡区域 - 首页专用 */
.footer-transition-section {
    position: relative;
    background: var(--background-color);
    height: 150px;
    overflow: hidden;
}

.footer-wave-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 1;
}

.footer-wave-divider svg {
    width: 100%;
    height: 100%;
    display: block;
    
}

.footer-wave-path {
    fill: var(--footer-background-color);
}

/* 深色主题Footer过渡区域适配 */
.dark-theme .footer-transition-section {
    background: var(--background-color);
}

/* 系统深色主题Footer过渡区域适配 */
@media (prefers-color-scheme: dark) {
    :root:not(.dark-theme) .footer-transition-section {
        background: var(--background-color) !important;
    }
}

/* Footer base */
footer {
    padding: 60px 20px 30px;
    background: var(--footer-background-color);
    color: var(--text-color);
    text-align: center;
    position: relative;
    margin-top: -2px; /* 消除波浪和footer之间的间隙 */
}
footer p {
    text-align: center;
}

.social-links {
    margin-bottom: 25px;
}

.social-links a {
    display: inline-block;
    margin: 0 12px;
    color: white;
    font-size: 1.3em;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-4px);
}

/* Footer link columns */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.footer-column h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-column svg{
    width: 18px;
    height: 18px;
    margin-left: 8px;
}

/* Website status info */
.website-status-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 25px 0 15px 0;
    flex-wrap: wrap;
    opacity: 0.8;
    font-size: 0.9em;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-item:hover {
    color: var(--primary-color);
    background: rgba(158, 148, 216, 0.1);
    transform: translateY(-2px);
}

.status-item i {
    font-size: 14px;
    color: var(--primary-color);
    opacity: 0.8;
}

.status-item span {
    font-family: var(--font-primary);
    font-weight: 500;
}

.status-item span span {
    font-family: var(--font-mono);
    font-weight: 600;
    color: #fff;
    opacity: 0.9;
}

/* Clickable version item */
#version-status-item {
    cursor: pointer;
    position: relative;
}

#version-status-item:hover {
    color: var(--primary-color);
    background: rgba(158, 148, 216, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(158, 148, 216, 0.2);
}

#version-status-item:hover i {
    color: var(--primary-color);
    opacity: 1;
}

#version-status-item:hover span span {
    color: var(--primary-color);
    opacity: 1;
}

#version-status-item:active {
    transform: translateY(0);
    background: rgba(158, 148, 216, 0.2);
}

/* Dark theme overrides (explicit .dark-theme) */
.dark-theme footer {
    background: linear-gradient(135deg, #0a0f1c 0%, #1a1f2e 100%);
    border-top: 1px solid rgba(71, 85, 105, 0.3);
}

.dark-theme .footer-column h3 {
    color: #c4b5fd;
}

.dark-theme .footer-column a {
    color: #cbd5e1;
}

.dark-theme .footer-column a:hover {
    color: #c4b5fd;
}

.dark-theme .copyright-info {
    border-top: 1px solid rgba(71, 85, 105, 0.3);
    color: #94a3b8;
}

/* Copyright */
.copyright-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    color: #aaa;
}

.copyright-info p {
    margin: 8px 0;
}

.copyright-info a:any-link {
    color: #aaa;
}

.copyright-info a:hover {
    color: var(--primary-color);
}

.copyright-info svg {
    width: 12px;
    height: 12px;
    margin-left: 8px;
}

/* Responsive tweaks */
@media (max-width: 846px) {
    .website-status-info {
        gap: 15px;
        margin: 20px 0 10px 0;
    }
    .status-item {
        padding: 6px 10px;
        font-size: 0.85em;
    }
}

/* Dark scheme auto (only footer-related) */
@media (prefers-color-scheme: dark) {
    :root:not(.dark-theme) footer {
        background: linear-gradient(135deg, #0a0f1c 0%, #1a1f2e 100%) !important;
        border-top: 1px solid rgba(71, 85, 105, 0.3) !important;
    }
    :root:not(.dark-theme) .footer-column h3 {
        color: #c4b5fd !important;
    }
    :root:not(.dark-theme) .footer-column a {
        color: #cbd5e1 !important;
    }
    :root:not(.dark-theme) .footer-column a:hover {
        color: #c4b5fd !important;
    }
    :root:not(.dark-theme) .copyright-info {
        border-top: 1px solid rgba(71, 85, 105, 0.3) !important;
        color: #94a3b8 !important;
    }
}


