/**
 * 主站页脚样式（与 components/主站页脚.html 配套）
 * - 与 css/index.css 分离：首页版块样式请勿写在本文件
 * - 类名统一 f- 前缀，避免与正文类名冲突
 * - 联系区/快捷链接图标：Bootstrap Icons 字体（../fonts/bootstrap-icons.woff2）
 */

@font-face {
    font-family: "Bootstrap Icons";
    font-display: block;
    src: url("../fonts/bootstrap-icons.woff2") format("woff2");
}

/* 页脚专用图标字（仅映射本组件用到的字形） */
.f-bi {
    display: inline-block;
    line-height: 1;
    vertical-align: -0.125em;
}

.f-bi::before {
    font-family: "Bootstrap Icons" !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    speak: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.f-bi-geo-alt::before { content: "\f3e8"; }
.f-bi-telephone::before { content: "\f5c1"; }
.f-bi-chat-left-text::before { content: "\f252"; }
.f-bi-book::before { content: "\f194"; }
.f-bi-building::before { content: "\f1dd"; }
.f-bi-globe::before { content: "\f3ee"; }
.f-bi-hospital::before { content: "\f774"; }
.f-bi-grid::before { content: "\f3fc"; }

/* 页脚基础样式 */
.f-container {
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.f-bg-wrapper {
    padding-top: 25px;
    width: 100%;
    background-image: url(../img/foot_box_bg.png);
    background-size: cover;
    background-repeat: no-repeat;
}

/* 波浪动画效果 */
@keyframes f-wave-roll {
    0% { background-position: 0 bottom; }
    100% { background-position: 100% bottom; }
}

@keyframes f-wave-roll2 {
    0% { background-position: 0 bottom; }
    100% { background-position: -100% bottom; }
}

.f-waves {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px; /* 减小波浪高度 */
    transform: translateY(-99%);
    overflow: hidden;
    z-index: -2;
}

.f-waves .f-wave1 {
    position: relative;
    z-index: 2;
    height: 100%;
    background: url(../img/foot_bg.svg) 0 bottom repeat-x;
    background-size: auto 100%;
    animation: 5s linear infinite f-wave-roll;
}

.f-waves .f-wave2 {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    top: 0;
    background: url(../img/foot_bg02.svg) 0 bottom repeat-x;
    background-size: auto 100%;
    animation: 30s linear infinite f-wave-roll2;
    z-index: 1;
}

/* 紧凑三列布局 */
.f-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 12px 0 8px 0; /* 大幅减少内边距 */
}

.f-column {
    flex: 1;
    min-width: 260px;
    padding: 0 12px;
    margin-bottom: 10px;
}

/* 列标题 */
.f-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 5px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* 联系我们列 */
.f-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.f-contact-row {
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.f-contact-icon {
    flex-shrink: 0;
    width: 16px;
    margin-top: 1px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.f-contact-icon .f-bi {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    opacity: 0.9;
}

.f-contact-text {
    flex: 1;
}

.f-contact-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    margin-bottom: 1px;
    font-weight: 500;
}

.f-contact-detail {
    color: white;
    font-size: 11px;
    line-height: 1.3;
}

.f-contact-detail a,
.f-contact-link-feedback {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.f-contact-detail a:hover,
.f-contact-link-feedback:hover {
    color: #963b31;
}

.f-contact-link-feedback {
    font-size: 12px;
}

/* 备案信息居中显示 */
.f-beian-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center; /* 居中显示 */
}

.f-beian-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    line-height: 1.2;
    margin-bottom: 3px;
}

.f-beian-info a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.f-beian-info a:hover {
    color: #963b31;
}

/* 快捷链接列 */
.f-links-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.f-link-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.f-link-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}

.f-link-icon {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: #963b31;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.f-link-icon .f-bi {
    color: #fff;
    font-size: 11px;
    line-height: 1;
}

.f-link-text {
    color: white;
    font-size: 11px;
    line-height: 1.2;
    flex: 1;
}

/* 二维码列 */
.f-qr-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px; /* 两个二维码之间的间距 */
}

.f-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.f-qr-image {
    width: 86px; /* 稍小以适应并排显示 */
    height: 86px;
    margin-bottom: 4px;
    background: white;
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.f-qr-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.f-qr-label {
    color: white;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 1px;
}

.f-qr-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 9px;
}

/* 底部版权信息 */
.f-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 10px;
}

.f-bottom-left,
.f-bottom-right {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    line-height: 1.2;
}

.f-bottom-left a,
.f-bottom-right a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.f-bottom a:hover {
    color: #963b31;
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .f-column {
        flex: 0 0 50%;
        min-width: 240px;
    }

    .f-qr {
        flex: 0 0 100%;
        margin-top: 10px;
    }

    .f-qr-wrapper {
        justify-content: flex-start;
        gap: 20px;
    }

    .f-qr-item {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        width: auto;
    }

    .f-qr-image {
        width: 60px;
        height: 60px;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .f-column {
        flex: 0 0 100%;
        min-width: 100%;
        padding: 0 8px;
        margin-bottom: 12px;
    }

    .f-columns {
        padding: 10px 0 6px 0;
    }

    .f-title {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .f-contact-row {
        gap: 5px;
    }

    .f-contact-icon {
        width: 14px;
    }

    .f-contact-icon .f-bi {
        font-size: 12px;
    }

    .f-contact-label,
    .f-contact-detail,
    .f-link-text {
        font-size: 10px;
    }

    .f-link-icon {
        width: 16px;
        height: 16px;
    }

    .f-link-icon .f-bi {
        font-size: 9px;
    }

    .f-link-item {
        padding: 3px 5px;
    }

    .f-bottom {
        flex-direction: column;
        gap: 5px;
        text-align: center;
        padding: 6px 0;
    }

    .f-bottom-left,
    .f-bottom-right {
        width: 100%;
    }

    .f-qr-wrapper {
        justify-content: center;
        gap: 15px;
    }

    .f-qr-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .f-waves {
        height: 40px;
    }

    .f-bg-wrapper {
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .f-waves {
        height: 30px;
    }

    .f-bg-wrapper {
        padding-top: 15px;
    }

    .f-columns {
        padding: 8px 0 4px 0;
    }

    .f-qr-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .f-qr-image {
        width: 55px;
        height: 55px;
    }

    .f-contact-detail a,
    .f-contact-link-feedback {
        font-size: 9px;
    }

    .f-beian-info p {
        font-size: 9px;
    }

    .f-bottom-left,
    .f-bottom-right {
        font-size: 9px;
    }
}
