/* 网站底部样式 */

/* 引用主题变量定义文件 */
@import 'theme-variables.css';

.footer {
    background-color: var(--footer-bg, #2c3e50);
    color: white;
    padding: 60px 0 30px;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.footer-col {
    padding: 0 15px;
    margin-bottom: 30px;
}

/* 页脚Logo样式 */
.footer-logo {
    margin-bottom: 20px;
}

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

/* 页脚描述 */
.footer-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--footer-text-secondary, rgba(255, 255, 255, 0.7));
    margin-bottom: 20px;
}

/* 页脚社交图标 */
.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--footer-social-bg, rgba(255, 255, 255, 0.1));
    color: white;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--primary-color, #f9a826);
    transform: translateY(-3px);
}

/* 页脚标题 */
.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color, #f9a826);
}

/* 页脚链接列表 */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--footer-text-secondary, rgba(255, 255, 255, 0.7));
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 10px;
}

.footer-links a::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary-color, #f9a826);
    font-size: 12px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 15px;
}

.footer-links a:hover::before {
    left: 5px;
}

/* 页脚联系信息 */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    background-color: transparent !important; /* 确保背景透明，不受其他样式影响 */
    padding: 0 !important; /* 确保没有内边距 */
    border: none !important; /* 确保没有边框 */
    box-shadow: none !important; /* 确保没有阴影 */
}

.contact-item i {
    color: var(--primary-color, #f9a826);
    font-size: 18px;
    min-width: 20px;
    text-align: center;
}

.contact-item span {
    color: var(--footer-text-secondary, rgba(255, 255, 255, 0.7));
    line-height: 1.6;
}

/* 页脚底部 */
.footer-bottom {
    border-top: 1px solid var(--footer-border, rgba(255, 255, 255, 0.1));
    padding-top: 0px;
    margin-top: 0px;
}

.footer-bottom .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.copyright {
    font-size: 14px;
    color: var(--footer-text-tertiary, rgba(255, 255, 255, 0.5));
    margin: 0;
}

.footer-policy {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    justify-content: center;
}

.footer-policy li {
    flex-shrink: 0;
    white-space: nowrap;
}

.footer-policy a {
    color: var(--footer-text-tertiary, rgba(255, 255, 255, 0.5));
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-policy a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .footer-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .footer-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-policy {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        justify-content: center;
    }
    
    .copyright {
        text-align: center;
    }
}

@media (max-width: 575px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-title {
        font-size: 16px;
    }
    
    .footer-description {
        font-size: 14px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color, #f9a826);
    color: var(--text-light, white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark, #e08e00);
    transform: translateY(-5px);
}