/* ============================================
   WADJAY ZHENGZHOU THEME - FOOTER STYLES
   专门针对页脚部分的样式，不会影响header
   ============================================ */

/* Footer Container */
#colophon.site-footer {
    background-color: var(--footer-bg);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

#colophon.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 1;
}

/* Footer Main Section */
.site-footer .footer-main {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
}

.site-footer .footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/pattern-light.svg');
    background-size: 300px;
    opacity: 0.05;
    pointer-events: none;
}

/* Footer Widgets */
.site-footer .footer-widget {
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.site-footer .footer-widget:last-child {
    margin-bottom: 0;
}

/* Footer Logo & About */
.site-footer .footer-about {
    animation: footerFadeInUp 0.6s ease-out;
}

.site-footer .footer-logo {
    margin-bottom: var(--spacing-lg);
    transition: transform var(--transition-normal);
}

.site-footer .footer-logo:hover {
    transform: translateY(-3px);
}

.site-footer .footer-logo a {
    display: inline-block;
}

.site-footer .footer-logo img {
    max-height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter var(--transition-normal);
}

.site-footer .footer-logo img:hover {
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(255, 255, 255, 0.1));
}

/* SVG logo特殊处理 - 移除filter让原色显示 */
.site-footer .footer-logo img[src$=".svg"] {
    filter: none;
}

.site-footer .footer-logo img[src$=".svg"]:hover {
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.1));
}

.site-footer .footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
    animation: footerFadeInUp 0.6s ease-out 0.1s both;
}

/* Certifications */
.site-footer .footer-certifications {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    animation: footerFadeInUp 0.6s ease-out 0.2s both;
}

.site-footer .footer-certifications .cert-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.site-footer .footer-certifications .cert-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.site-footer .footer-certifications .cert-badge:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.2);
}

.site-footer .footer-certifications .cert-badge:hover::before {
    opacity: 1;
}

.site-footer .footer-certifications .cert-badge img {
    max-width: 100%;
    max-height: 100%;
    filter: none;
    opacity: 1;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.site-footer .footer-certifications .cert-badge:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* Widget Titles */
.site-footer .footer-widget .widget-title {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: inline-block;
}

.site-footer .footer-widget .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transition: width var(--transition-normal);
}

.site-footer .footer-widget .widget-title:hover::after {
    width: 100%;
}

/* Footer Menus */
.site-footer .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    animation: footerFadeInUp 0.6s ease-out 0.3s both;
	text-align: left;
}

.site-footer .footer-menu li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 0;
	list-style-type: none;
	text-align: left;
}

.site-footer .footer-menu li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-normal);
}

.site-footer .footer-menu li:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.site-footer .footer-menu li:last-child {
    margin-bottom: 0;
}

.site-footer .footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: block;
    padding: 0.375rem 0;
    border-bottom: 1px solid transparent;
	text-align: left;
}

.site-footer .footer-menu a:hover {
    color: var(--white);
    padding-left: 0.5rem;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Contact Information */
.site-footer .contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    animation: footerFadeInUp 0.6s ease-out 0.4s both;
}

.site-footer .contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: 0.75rem 0;
    border-radius: 0px;
    transition: all var(--transition-normal);
}

.site-footer .contact-item:hover {
    transform: translateX(5px);
}

.site-footer .contact-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.site-footer .contact-content {
    flex: 1;
}

.site-footer .contact-content strong {
    display: block;
    color: var(--white);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.site-footer .contact-content p,
.site-footer .contact-content a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.site-footer .contact-content a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Social Links Section */
.site-footer .social-links .h6 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
    opacity: 0.9;
}

.site-footer .social-icons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.site-footer .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: var(--white);
    border-radius: 12px;
    font-size: 1.125rem;
    transition: all var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
}

.site-footer .social-icon i {
    position: relative;
    z-index: 2;
    transition: transform var(--transition-normal);
}

.site-footer .social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.3);
    border-color: var(--primary-color);
}

.site-footer .social-icon:hover::before {
    opacity: 1;
}

.site-footer .social-icon:hover i {
    transform: scale(1.2);
}

/* Specific Social Icon Colors */
.site-footer .social-icon[aria-label*="LinkedIn"]:hover i { color: #0077B5; }
.site-footer .social-icon[aria-label*="YouTube"]:hover i { color: #FF0000; }
.site-footer .social-icon[aria-label*="Twitter"]:hover i { color: #1DA1F2; }
.site-footer .social-icon[aria-label*="Facebook"]:hover i { color: #1877F2; }
.site-footer .social-icon[aria-label*="WhatsApp"]:hover i { color: #25D366; }
.site-footer .social-icon[aria-label*="WeChat"]:hover i { color: #09B83E; }

/* Footer Bottom Section */
.site-footer .footer-bottom {
    padding: var(--spacing-lg) 0;
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.site-footer .copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    line-height: 1.6;
}

.site-footer .copyright a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.site-footer .footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.site-footer .footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.site-footer .footer-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.site-footer .separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}



/* Footer-specific Animations */
@keyframes footerFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .site-footer .footer-certifications .cert-badge {
        width: 65px;
        height: 65px;
    }
    
    .site-footer .contact-item {
        padding: 0.625rem;
    }
}

@media (max-width: 991.98px) {
    .site-footer .footer-main {
        padding: var(--spacing-xl) 0;
    }
    
    .site-footer .footer-widget {
        margin-bottom: var(--spacing-xl);
    }
    
    .site-footer .footer-logo img {
        max-height: 50px;
    }
    
    .site-footer .footer-certifications .cert-badge {
        width: 60px;
        height: 60px;
    }
    
    .site-footer .footer-widget .widget-title {
        font-size: 1.125rem;
    }
    
    .site-footer .footer-links {
        justify-content: center;
        text-align: center;
        gap: 0.5rem;
    }
    
    .site-footer .separator {
        display: none;
    }
    
    .site-footer .footer-links a {
        padding: 0.25rem;
    }

}

@media (max-width: 767.98px) {
    .site-footer .row > div {
        text-align: center;
        margin-bottom: var(--spacing-xl);
    }
    
    .site-footer .footer-widget:last-child {
        margin-bottom: 0;
    }
    
    .site-footer .footer-widget .widget-title {
        font-size: 1.125rem;
        width: 100%;
        text-align: center;
    }
    
    .site-footer .footer-widget .widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .site-footer .footer-menu li {
        padding-left: 0;
    }
    
    .site-footer .footer-menu li::before {
        display: none;
    }
    
    .site-footer .footer-menu a:hover {
        padding-left: 0;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .site-footer .contact-item {
        justify-content: center;
        text-align: center;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .site-footer .contact-item i {
        margin-top: 0.125rem;
    }
    
    .site-footer .social-icons {
        justify-content: center;
    }
    
    .site-footer .footer-bottom .row > div {
        text-align: center;
        margin-bottom: var(--spacing-md);
    }
    
    .site-footer .footer-bottom .row > div:last-child {
        margin-bottom: 0;
    }
    
    .site-footer .footer-links {
        justify-content: center;
    }
    
}

@media (max-width: 575.98px) {
    .site-footer .footer-description {
        font-size: 0.875rem;
    }
    
    .site-footer .footer-menu a {
        font-size: 0.875rem;
        padding: 0.5rem 0;
    }
    
    .site-footer .contact-content strong,
    .site-footer .contact-content p,
    .site-footer .contact-content a {
        font-size: 0.85rem;
    }
    
    .site-footer .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .site-footer .copyright {
        font-size: 0.75rem;
        text-align: center;
    }
    
    .site-footer .footer-links a {
        font-size: 0.75rem;
        padding: 0.125rem 0.375rem;
    }
    
}

/* Print Styles */
@media print {
    .site-footer {
        display: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    #colophon.site-footer {
        background-color: #0a0a0a;
    }
    
    .site-footer .footer-main {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    }
    
    .site-footer .footer-bottom {
        background-color: rgba(0, 0, 0, 0.5);
    }
    
    .site-footer .contact-item {
        background: rgba(255, 255, 255, 0.03);
    }
    
    .site-footer .contact-item:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .site-footer .footer-logo,
    .site-footer .footer-certifications .cert-badge,
    .site-footer .social-icon,
    .site-footer .contact-item,
    .site-footer .footer-menu li::before,
    .site-footer .footer-menu a {
        transition: none;
    }
    
    @keyframes footerFadeInUp {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
}

/* ============================================
   FOOTER MODAL STYLES
   ============================================ */

/* 证书模态框 */
#cert-modal.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

#cert-modal.modal.active {
    display: block;
}

#cert-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

#cert-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

#cert-modal .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-dark);
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 2;
    transition: all var(--transition-normal);
}

#cert-modal .modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

#cert-modal .modal-body {
    padding: 40px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

#cert-modal .modal-body h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#cert-modal .modal-body p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* 社交图标工具提示 */
.site-footer .social-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10001;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.site-footer .social-tooltip::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.8);
}

/* 响应式页脚折叠 */
@media (max-width: 768px) {
    .site-footer .widget-title.collapsible {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .site-footer .toggle-icon {
        transition: transform 0.3s ease;
        font-size: 0.875rem;
    }
    
    .site-footer .footer-widget .widget-title + * {
        margin-top: 1rem;
    }
}

/* 脉冲动画 */
@keyframes footerPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.site-footer .social-icon.pulse {
    animation: footerPulse 0.6s ease;
}

@keyframes footerBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.1);
    }
}