/* Footer Styles */
:root {
    --footer-bg: #0d1117;
    --footer-text: #f5f5f5;
    --footer-link: #e0e0e0;
    --footer-link-hover: #ffffff;
    --footer-border: rgba(255, 255, 255, 0.1);
    --footer-secondary: #161b22;
    --footer-accent: var(--primary-color, #0056b3);
}

@keyframes footerGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.site-footer {
    background-color: var(--footer-bg);
    background-image: linear-gradient(
        135deg, 
        var(--footer-bg) 0%, 
        #0e1521 25%, 
        var(--footer-bg) 50%, 
        #0e1521 75%, 
        var(--footer-bg) 100%
    );
    background-size: 400% 400%;
    animation: footerGradient 15s ease infinite;
    color: var(--footer-text);
    position: relative;
    z-index: 10;
    font-size: 0.95rem;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    display: block;
    width: 100%;
    clear: both;
    margin-top: 2rem;
}

.footer-content {
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.footer-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(0, 86, 179, 0.03) 10%, transparent 30%),
                radial-gradient(circle at 90% 80%, rgba(0, 86, 179, 0.03) 10%, transparent 30%);
    pointer-events: none;
    z-index: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.footer-branding .site-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem;
    letter-spacing: -0.5px;
}

.footer-branding .site-title a {
    color: #fff;
    text-decoration: none;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.footer-branding .site-title a:hover {
    background: linear-gradient(90deg, var(--footer-accent), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo {
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

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

.footer-logo img {
    max-height: 50px;
    width: auto;
    filter: brightness(1.1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 90%;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
    color: #fff;
    position: relative;
    padding-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--footer-accent);
    transition: width 0.3s ease;
}

.footer-nav:hover .footer-heading::after {
    width: 60px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--footer-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: -1;
}

.social-icon:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.social-icon:hover::before {
    width: 100%;
    height: 100%;
}

.social-icon i {
    transition: transform 0.3s ease;
}

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

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.85rem;
    position: relative;
    transition: transform 0.3s ease;
}

.footer-menu li:hover {
    transform: translateX(5px);
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 0;
    display: inline-block;
}

.footer-menu a:hover {
    color: #fff;
}

.footer-menu a::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--footer-accent);
    opacity: 0;
    transition: opacity 0.3s ease, left 0.3s ease;
}

.footer-menu a:hover::before {
    opacity: 1;
    left: -12px;
}

.footer-address {
    font-style: normal;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-email, .footer-phone {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-email a, .footer-phone a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-email a::before, .footer-phone a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--footer-accent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.footer-email a:hover, .footer-phone a:hover {
    color: #fff;
}

.footer-email a:hover::before, .footer-phone a:hover::before {
    transform: translateX(0);
}

.footer-email a::after, .footer-phone a::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 0.5rem;
    color: var(--footer-accent);
    opacity: 0;
    transition: opacity 0.3s ease, margin-left 0.3s ease;
}

.footer-email a::after {
    content: "\f0e0";
}

.footer-phone a::after {
    content: "\f095";
}

.footer-email a:hover::after, .footer-phone a:hover::after {
    opacity: 1;
    margin-left: 0.75rem;
}

.footer-bottom {
    background-color: var(--footer-secondary);
    padding: 1.5rem 0;
    border-top: 1px solid var(--footer-border);
}

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

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.footer-bottom-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.footer-bottom-menu li {
    position: relative;
}

.footer-bottom-menu li:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

.footer-bottom-menu a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-menu a:hover {
    color: #fff;
}

/* Animations for elements */
.animate-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-fade.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive styles */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-content {
        padding: 4rem 0 2rem;
    }
    
    .footer-branding {
        grid-column: 1 / -1;
    }
    
    .footer-description {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        padding: 3rem 0 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .copyright {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .footer-bottom-menu {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-content {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-heading {
        text-align: center;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-menu a {
        display: block;
        text-align: center;
    }
    
    .footer-menu a::before {
        display: none;
    }
    
    .footer-bottom {
        padding: 1rem 0;
    }
    
    .footer-bottom-menu {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .footer-bottom-menu li:not(:last-child)::after {
        display: none;
    }
}

/* 添加页脚动态效果 */
.site-footer::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--primary-color, #0056b3), 
        #5c8dff, 
        var(--primary-color, #0056b3)
    );
    background-size: 200% 100%;
    animation: footerBorder 8s linear infinite;
    z-index: 3;
}

@keyframes footerBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 简单版Footer样式 */
:root {
    --footer-bg: #0d1117;
    --footer-text: #f5f5f5;
    --footer-accent: #2d76ee;
}

.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0 20px;
    position: relative;
    width: 100%;
    clear: both;
    display: block;
}

.footer-simple {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    margin-right: 20px;
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 50px;
    width: auto;
}

.footer-logo .site-title {
    margin: 0;
    font-size: 1.5rem;
}

.footer-logo .site-title a {
    color: white;
    text-decoration: none;
}

.footer-menu-simple {
    flex: 2;
    min-width: 300px;
    margin-bottom: 20px;
}

.simple-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.simple-menu li {
    margin-right: 20px;
    margin-bottom: 10px;
}

.simple-menu a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.simple-menu a:hover {
    color: var(--footer-accent);
}

.footer-social-simple {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-icon-simple:hover {
    background-color: var(--footer-accent);
    transform: translateY(-3px);
}

.footer-copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* 响应式样式 */
@media (max-width: 768px) {
    .footer-simple {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-logo, .footer-menu-simple {
        margin-right: 0;
    }
    
    .simple-menu {
        justify-content: center;
    }
} 