/* ============================================
   Footer 底部样式
   与 Header 视觉风格保持一致：
   - 使用 init.css 中定义的 CSS 变量
   - 采用 BEM 命名规范：footer + __element + --modifier
   - 所有样式均限定在 .footer 选择器下，避免污染其他模块
   ============================================ */


/* --------------------------------------------
   1. 底部主容器 - .footer
   整体深色背景，承上启下作为页面结尾
   -------------------------------------------- */
.footer {
    width: 100%;
    /* 与 Header 强调色保持一致，呈现专业感 */
    background-color: #212121;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.7;
    /* 顶部蓝色装饰条，呼应 Header 强调色 */
    /* border-top: 1px solid var(--header-color-accent-2); */
}


/* --------------------------------------------
   2. 顶部装饰条 - .footer__decoration
   居中放置的细线 + 圆点，作为标题区的视觉装饰
   -------------------------------------------- */
.footer__decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px 0 10px;
}

.footer__decoration-line {
    display: block;
    width: 60px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.25);
}

.footer__decoration-dot {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--header-color-accent-2);
    /* 阴影光晕，强化视觉焦点 */
    box-shadow: 0 0 8px rgba(4, 153, 225, 0.6);
}


/* --------------------------------------------
   3. 主体两列布局 - .footer__main
   桌面端左右两栏：联系信息 / 网站导航
   -------------------------------------------- */
.footer__main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    padding: 30px 0 30px;
    /* 上下分隔线，仅作用于主体区域底部 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


/* --------------------------------------------
   4. 区块标题 - .footer__info-title
   联系信息 / 网站导航 共同复用
   -------------------------------------------- */
.footer__info-title {
    position: relative;
    margin: 0 0 24px;
    padding-left: 14px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1px;
}

/* 标题左侧的蓝色竖线，呼应整体强调色 */
.footer__info-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 3px;
    height: 16px;
    background-color: var(--header-color-accent-2);
    transform: translateY(-50%);
    border-radius: 2px;
}


/* --------------------------------------------
   5. 联系信息区域 - .footer__info / .footer__contact
   左侧宽度 60% 左右的联系信息块
   -------------------------------------------- */
.footer__info {
    flex: 1 1 60%;
    min-width: 0;
}

.footer__contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 单个联系方式条目 */
.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

/* 联系图标容器 */
.footer__contact-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: rgba(4, 153, 225, 0.12);
    color: var(--header-color-accent-2);
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.footer__contact-item:hover .footer__contact-icon {
    background-color: rgba(4, 153, 225, 0.22);
    transform: translateY(-2px);
}

/* 联系项文字内容区 */
.footer__contact-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

/* 标签：联系电话 / 座机 / 传真 / 地址 */
.footer__contact-label {
    font-size: 14px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* 联系值（电话号码 / 地址） */
.footer__contact-value {
    font-size: 15px;
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-all;
}

a.footer__contact-value:hover {
    color: var(--header-color-accent-2);
}

/* 纯文本值（无链接） */
/* .footer__contact-value--text {
    cursor: default;
    pointer-events: none;
} */

/* 微信同步等小标签 */
.footer__contact-tag {
    display: inline-block;
    align-self: flex-start;
    margin-top: 4px;
    padding: 1px 8px;
    font-size: 12px;
    color: var(--header-color-accent-2);
    background-color: rgba(4, 153, 225, 0.12);
    border: 1px solid rgba(4, 153, 225, 0.3);
    border-radius: 10px;
}


/* --------------------------------------------
   6. 网站导航区域 - .footer__nav
   右侧宽度 40% 左右的导航块
   -------------------------------------------- */
.footer__nav {
    flex: 1 1 35%;
    min-width: 0;
}

.footer__nav-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__nav-item {
    list-style: none;
}

/* 导航链接 */
.footer__nav-link {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 6px 0 6px 18px;
    font-size: 15px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* 链接前的小三角，鼠标悬停时向右滑动 */
.footer__nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid var(--header-color-accent-2);
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.footer__nav-link:hover {
    transform: translateX(4px);
}

.footer__nav-link:hover::before {
    transform: translateY(-50%) translateX(2px);
}

/* 当前页对应导航高亮 */
.footer__nav-link--active {
    color: var(--header-color-accent-2);
    font-weight: 600;
}


/* --------------------------------------------
   7. 底部版权区 - .footer__bottom
   -------------------------------------------- */
.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 0 22px;
    font-size: 13px;
    color: #8a98ab;
    text-align: center;
}

.footer__copyright {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer__divider {
    color: rgba(255, 255, 255, 0.2);
}

.footer__beian {
    color: #8a98ab;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__beian:hover {
    color: var(--header-color-accent-2);
}


/* ============================================
   响应式适配 - Responsive
   保持与 init.css / header.css 一致的断点策略
   ============================================ */

/* --------------------------------------------
   平板端适配 (max-width: 1023px)
   -------------------------------------------- */
@media screen and (max-width: 1023px) {

    .footer__main {
        flex-direction: column;
        gap: 36px;
        padding: 24px 0 32px;
    }

    .footer__info,
    .footer__nav {
        flex: 1 1 auto;
        width: 100%;
    }

    .footer__contact {
        gap: 18px 28px;
    }

    .footer__nav-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* --------------------------------------------
   移动端适配 (max-width: 768px)
   -------------------------------------------- */
@media screen and (max-width: 768px) {

    .footer {
        font-size: 13px;
    }

    .footer__decoration {
        padding: 22px 0 6px;
    }

    .footer__decoration-line {
        width: 40px;
    }

    .footer__info-title {
        font-size: 16px;
        margin-bottom: 18px;
    }

    .footer__contact {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer__contact-icon {
        width: 36px;
        height: 36px;
    }

    .footer__contact-icon svg {
        width: 18px;
        height: 18px;
    }

    .footer__contact-value {
        font-size: 14px;
    }

    .footer__nav-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 16px;
    }

    .footer__nav-link {
        font-size: 14px;
        padding: 4px 0 4px 16px;
    }

}


/* --------------------------------------------
   小屏幕移动端适配 (max-width: 480px)
   -------------------------------------------- */
@media screen and (max-width: 480px) {

    .footer__decoration {
        padding: 18px 0 4px;
    }

    .footer__decoration-line {
        width: 28px;
    }

    .footer__main {
        gap: 28px;
        padding: 18px 0 24px;
    }

    .footer__contact-item {
        gap: 10px;
    }

    .footer__contact-label {
        font-size: 12px;
    }

    .footer__bottom {
        padding: 14px 0 18px;
        font-size: 12px;
    }

}