/* Modern Footer Styles - 重写原有样式 */
/* 使用更高的特异性来覆盖原有样式 */
html body .container .footer,
html body .footer {
    position: relative !important;
    margin-top: 40px !important;
    padding: 40px 20px 30px !important;
    text-align: center !important;
    font-size: 14px !important;
    color: #666 !important;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03) !important;
}

html body .footer::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #5cb85c, #4cae4c, #6cc96c, #5cb85c) !important;
}

html body .progressbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #5cb85c, #4cae4c, #6cc96c, #5cb85c) !important;
    z-index: 9999 !important;
    transition: width 0.2s ease !important;
}

/* 重置原有样式 */
html body .footer p {
    margin: 0 !important;
    padding: 0 !important;
}

/* 悬浮按钮 - 固定颜色，不随主题变化 */
html body .suspend {
    position: fixed !important;
    right: 20px !important;
    bottom: 30px !important;
    z-index: 999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body .suspend li {
    position: relative !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #1890ff, #40a9ff) !important;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    transform: translateZ(0) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
}

html body .suspend li:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4) !important;
    background: linear-gradient(135deg, #40a9ff, #69c0ff) !important;
    animation: pulse 1.5s infinite !important;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3) !important;
    }

    50% {
        box-shadow: 0 4px 20px rgba(24, 144, 255, 0.6) !important;
    }

    100% {
        box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3) !important;
    }
}

html body .suspend li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* QQ图标 - 蓝色 */
html body .suspend li:nth-child(2) {
    background: linear-gradient(135deg, #1890ff, #0050b3) !important;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3) !important;
}

html body .suspend li:nth-child(2):hover {
    box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4) !important;
    background: linear-gradient(135deg, #40a9ff, #1890ff) !important;
}

/* 邮件图标 - 绿色 */
html body .suspend li:nth-child(3) {
    background: linear-gradient(135deg, #52c41a, #389e0d) !important;
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3) !important;
}

html body .suspend li:nth-child(3):hover {
    box-shadow: 0 6px 16px rgba(82, 196, 26, 0.4) !important;
    background: linear-gradient(135deg, #73d13d, #52c41a) !important;
}

/* 聊天图标 - 橘色 */
html body .suspend li:nth-child(4) {
    background: linear-gradient(135deg, #fa8c16, #d46b08) !important;
    box-shadow: 0 4px 12px rgba(250, 140, 22, 0.3) !important;
}

html body .suspend li:nth-child(4):hover {
    box-shadow: 0 6px 16px rgba(250, 140, 22, 0.4) !important;
    background: linear-gradient(135deg, #ffa940, #fa8c16) !important;
}

html body .suspend .more {
    position: absolute !important;
    visibility: hidden !important;
    opacity: 0 !important;
    top: 0 !important;
    right: 60px !important;
    min-width: 120px !important;
    padding: 8px 16px !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(5px) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transform: scale(0.8) translateX(10px) !important;
    transform-origin: right center !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    z-index: 1000 !important;
}

html body .suspend li:hover .more {
    visibility: visible !important;
    opacity: 1 !important;
    transform: scale(1) translateX(0) !important;
}

html body .suspend .more::after {
    content: '' !important;
    position: absolute !important;
    display: block !important;
    right: -6px !important;
    top: 50% !important;
    transform: translateY(-50%) rotate(45deg) !important;
    width: 12px !important;
    height: 12px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border-radius: 2px !important;
}

html body .suspend .more.weixin {
    padding: 12px !important;
    min-width: initial !important;
    background: rgba(0, 0, 0, 0.9) !important;
}

html body .suspend .more img {
    max-width: 120px !important;
    height: auto !important;
    border-radius: 4px !important;
}

html body .back-top {
    visibility: hidden !important;
    opacity: 0 !important;
    transform: scale(0) !important;
}

html body .back-top.show {
    visibility: visible !important;
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* 现代页脚 */

html body .footer .footer-content {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    max-width: 1200px !important;
    margin: 0 auto 30px !important;
}

html body .footer .footer-section {
    flex: 1 !important;
    min-width: 200px !important;
    padding: 0 15px !important;
    margin-bottom: 20px !important;
    text-align: left !important;
    animation: fadeInUp 0.8s ease-out !important;
}

html body .footer .footer-section:nth-child(1) {
    animation-delay: 0.1s !important;
}

html body .footer .footer-section:nth-child(2) {
    animation-delay: 0.3s !important;
}

html body .footer .footer-section:nth-child(3) {
    animation-delay: 0.5s !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0 !important;
        transform: translateY(20px) !important;
    }

    to {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

html body .footer .footer-section h3 {
    position: relative !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

html body .footer .footer-section h3::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 40px !important;
    height: 3px !important;
    background: #5cb85c !important;
    border-radius: 3px !important;
}

html body .footer .footer-section p {
    margin-bottom: 10px !important;
    line-height: 1.6 !important;
}

html body .footer .footer-section a {
    color: #5cb85c !important;
    transition: color 0.3s !important;
    text-decoration: none !important;
}

html body .footer .footer-section a:hover {
    color: #4cae4c !important;
}

html body .footer .footer-bottom {
    padding-top: 20px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

html body .footer .footer-bottom p {
    margin-bottom: 8px !important;
    line-height: 1.6 !important;
}

html body .footer .footer-bottom a {
    color: #5cb85c !important;
    transition: color 0.3s !important;
    text-decoration: none !important;
}

html body .footer .footer-bottom a:hover {
    color: #4cae4c !important;
}

/* 响应式 */
@media (max-width: 768px) {
    html body .footer {
        padding: 30px 15px 20px !important;
    }

    html body .footer .footer-section {
        min-width: 100% !important;
        margin-bottom: 30px !important;
        text-align: center !important;
    }

    html body .footer .footer-section h3::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    html body .suspend {
        right: 15px !important;
        bottom: 20px !important;
        gap: 10px !important;
    }

    html body .suspend li {
        width: 42px !important;
        height: 42px !important;
        font-size: 16px !important;
    }
}