/* 页脚基础样式 */
.footer {
    background: linear-gradient(135deg, #d4363a 0%, #b31217 100%);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 3rem;
}

/* 页脚区块样式 */
.footer-section {
    padding: 0 1rem;
}

.footer-section h3 {
    color: #FFD700;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #FFD700;
}

.footer-section p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

/* 页脚链接列表 */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-section ul li {
    margin-bottom: 1rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    /* display: inline-flex; */
    align-items: center;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.footer-section ul li a:hover {
    color: #FFD700;
    transform: translateX(5px);
}

/* 页脚图标 */
.footer-icon {
    display: inline-block;
    margin-right: 0.8rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 页脚版权信息 */
.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 1rem 1rem;
        margin-top: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }

    .footer-links {
        margin-left: 0;
    }

    .footer-section {
        padding: 0;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 2rem;
    }

    .footer-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .footer-section ul {
        columns: 2;
        column-gap: 2rem;
        text-align: left;
    }

    .footer-section ul li {
        margin-bottom: 0.8rem;
        break-inside: avoid;
        text-align: left;
    }

    .footer-section ul li a {
        font-size: 0.95rem;
        text-align: left;
        width: 100%;
    }

    .footer-icon {
        margin-right: 0.5rem;
        font-size: 1rem;
    }

    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1rem;
    }

    .footer-bottom p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
}

/* 平板电脑适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-section:first-child {
        grid-column: span 2;
    }
}
