/* 底部全局样式 */
.footer {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    /* 添加微妙的纹理背景 */
    background-image: 
        linear-gradient(135deg, #2c3e50, #1a252f),
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.02) 0px,
            rgba(255,255,255,0.02) 1px,
            transparent 1px,
            transparent 10px
        );
    color: #fff;
    font-size: 14px;
    padding: 40px 0 25px;
    position: relative;
    box-shadow: 
        inset 0 15px 15px -15px rgba(0,0,0,0.3),
        inset 0 -5px 15px -5px rgba(0,0,0,0.2);
    animation: footerFadeIn 0.8s ease-out forwards;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, 
        transparent, 
        rgba(52, 152, 219, 0.1) 20%, 
        rgba(52, 152, 219, 0.3) 50%, 
        rgba(52, 152, 219, 0.1) 80%, 
        transparent
    );
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.footer-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right,
        transparent,
        rgba(52, 152, 219, 0.05),
        transparent
    );
}

/* 链接区域样式 */
.footer-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    flex: 1;
    margin-right: 40px;
}

.footer-column {
    flex: 1;
    min-width: 140px;
    padding-right: 20px;
    opacity: 0;
    animation: footerFadeIn 0.5s ease-out forwards;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }
.footer-column:nth-child(5) { animation-delay: 0.5s; }

.footer-column h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 500;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    transition: all 0.3s;
    overflow: hidden;
}

.footer-column h4::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.footer-column:hover h4::before {
    left: 100%;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, #3498db, #2980b9);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(52, 152, 219, 0.3);
}

.footer-column:hover h4 {
    transform: translateX(5px);
}

.footer-column:hover h4::after {
    width: 50px;
    box-shadow: 0 1px 5px rgba(52, 152, 219, 0.5);
}

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

.footer-column ul li {
    margin-bottom: 10px;
    position: relative;
}

.footer-column ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-column ul li a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #3498db;
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-column ul li a:hover {
    padding-left: 15px;
    color: #3498db;
}

.footer-column ul li a:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* 二维码区域样式 */
.qr-codes {
    display: flex;
    gap: 20px;
    padding-top: 5px;
}

.qr-item {
    text-align: center;
    perspective: 1000px;
    position: relative;
}

.qr-item::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.qr-item:hover::after {
    opacity: 1;
    transform: scale(1);
}

.qr-item img {
    width: 100px;  /* 基准尺寸 */
    height: 100px;
    padding: 4px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.2),
        0 0 0 1px rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.qr-item:hover img {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 30px rgba(0,0,0,0.3),
        0 0 0 1px rgba(52, 152, 219, 0.2);
}

.qr-item p {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    transition: all 0.3s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.qr-item:hover p {
    color: #3498db;
}

/* 公司信息样式 */
.company-info {
    text-align: center;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.company-info::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, 
        transparent, 
        #3498db 20%, 
        #2980b9 50%, 
        #3498db 80%, 
        transparent
    );
    transform: translateX(-50%);
    transition: width 0.5s ease;
    box-shadow: 0 1px 3px rgba(52, 152, 219, 0.3);
}

.company-info:hover::after {
    width: 200px;
}

.company-info p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    position: relative;
}

.company-info:hover p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.separator {
    margin: 0 10px;
    color: rgba(255,255,255,0.2);
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

/* 备案信息样式 */
.certificates {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

.license {
    margin-bottom: 8px;
}

.license a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    background: linear-gradient(to right, transparent 50%, rgba(52, 152, 219, 0.1) 50%);
    background-size: 200% 100%;
    background-position: 0 0;
    overflow: hidden;
}

.license a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: #3498db;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.license a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.license a:hover {
    color: #3498db;
    background-position: -100% 0;
    padding: 2px 5px;
    margin: 0 -5px;
    border-radius: 3px;
}

/* 认证图标样式 */
.cert-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 0;
    max-width: 800px;
    margin: 0 auto;
}

.cert-icons img {
    width: 114px;
    height: 43px;
    object-fit: contain;
    /* 移除灰度滤镜 */
    /* filter: grayscale(100%); */
    /* 调整透明度为完全不透明 */
    opacity: 1;
    transition: all 0.3s;
}

/* 移除悬停效果，保持原色显示 */
.cert-icons img:hover {
    /* filter: grayscale(0); */
    /* opacity: 1; */
    transform: translateY(-2px); /* 只保留上浮效果 */
}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
    .footer-content {
        max-width: 100%;
        padding: 0 15px;
    }
}

@media screen and (max-width: 992px) {
    .footer {
        padding: 15px 0;
    }

    .footer-main {
        flex-direction: column;
        margin-bottom: 10px;
    }
    
    .footer-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin: 0;
        width: 100%;
    }

    .footer-column {
        padding: 0;
        min-width: auto;
    }

    .qr-codes {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin: 15px 0;
        padding-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .qr-item img {
        width: 90px;  /* 稍微缩小 */
        height: 90px;
    }
}

@media screen and (max-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px 20px;
    }

    .footer-column h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .footer-column ul li a {
        font-size: 12px;
    }

    .qr-item img {
        width: 85px;
        height: 85px;
    }

    .company-info {
        margin: 15px 0;
        padding: 15px 10px;
    }

    .company-info p {
        display: flex;
        flex-direction: column;
        gap: 8px;
        white-space: normal;
        line-height: 1.5;
    }

    .company-info .separator {
        display: none;  /* 隐藏分隔符 */
    }

    .certificates {
        padding: 0 10px;
    }

    .license {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 10px;
    }

    .license .separator {
        display: none;  /* 隐藏分隔符 */
    }

    .license a {
        display: inline-block;
        padding: 3px 0;
    }

    .cert-icons {
        display: grid;
        grid-template-columns: repeat(3, 114px); /* 三列固定宽度 */
        grid-template-rows: repeat(2, 43px);     /* 两行固定高度 */
        gap: 20px;                               /* 统一的间距 */
        justify-content: center;
        align-content: center;
        padding: 20px;
    align-items: center;
    justify-items: center;
    }

    .cert-icons img {
        width: 114px;
        height: 43px;
    }
}

@media screen and (max-width: 576px) {
    .footer-content {
        padding: 0 10px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column h4 {
        font-size: 13px;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .qr-codes {
        gap: 10px;
    }

    .qr-item img {
        width: 80px;
        height: 80px;
    }

    .company-info {
        margin: 12px 0;
        padding: 12px 8px;
    }

    .company-info p {
        gap: 6px;
        font-size: 11px;
    }

    .company-info p span {
        position: relative;
        padding: 3px 0;
    }

    .certificates {
        padding: 0 8px;
    }

    .license {
        gap: 6px;
        margin-bottom: 8px;
    }

    .copyright {
        font-size: 10px;
        opacity: 0.8;
    }

    .cert-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media screen and (max-width: 375px) {
    .footer-content {
        padding: 0 8px;
    }

    .footer-links {
        gap: 8px;
    }

    .footer-column h4 {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .footer-column ul li a {
        font-size: 11px;
    }

    .qr-item img {
        width: 70px;
        height: 70px;
        padding: 3px;
    }

    .company-info {
        margin: 10px 0;
        padding: 10px 6px;
    }

    .company-info p {
        gap: 5px;
        font-size: 10px;
    }

    .certificates {
        padding: 0 6px;
    }

    .license {
        gap: 5px;
        margin-bottom: 6px;
    }

    .license a {
        font-size: 10px;
    }

    .cert-icons img {
        max-height: 30px;
    }
}

/* 小屏幕适配 */
@media (max-width: 400px) {
    .cert-icons {
        grid-template-columns: repeat(3, 90px);  /* 更小的宽度 */
        grid-template-rows: repeat(2, 34px);     /* 更小的高度 */
        gap: 15px;
    }

    .cert-icons img {
        width: 90px;
        height: 34px;
    }
}

/* 添加页脚整体载入动画 */
@keyframes footerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-column {
    opacity: 0;
    animation: footerFadeIn 0.5s ease-out forwards;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }
.footer-column:nth-child(5) { animation-delay: 0.5s; } 
} 