/* ========================================
   hf.css - 头部导航 & 底部页脚样式 (所有页面共用)
   ======================================== */

/* ===== HEADER & NAVIGATION ===== */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1001;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--secondary-color);
    height: 2px;
    width: 100%;
    border-radius: 2px;
    position: absolute;
    transition: var(--transition);
}

.nav-toggle-label span {
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle-label span::before {
    content: "";
    top: -8px;
}

.nav-toggle-label span::after {
    content: "";
    top: 8px;
}

/* Hamburger Animation */
.nav-toggle:checked+.nav-toggle-label span {
    background: transparent;
}

.nav-toggle:checked+.nav-toggle-label span::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle:checked+.nav-toggle-label span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Logo */
.logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--secondary-color);
    margin-left: 4px;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active {
    font-weight: 700;
}

.nav-links .btn {
    padding: 8px 20px;
    font-size: 14px;
    margin-left: 8px;
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 80px 0 60px;
    background: #fff;
    border-top: 1px solid var(--border-color);
}

/* ===== BOTTOM CTA SECTION ===== */
.bottom-cta {
    padding: 100px 0;
    background: #fff;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.bottom-cta h2 {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

.bottom-cta p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 32px;
}

.bottom-cta .remark {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr) 1fr;
    gap: 40px;
}

.footer-nav-row-mobile {
    display: contents;
    /* 桌面端作为透明容器，子元素直接参与网格布局 */
}

.footer-brand .logo {
    margin-bottom: 20px;
    display: block;
}

.footer-brand .tagline {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-nav-col h5 {
    color: var(--secondary-color);
    margin-bottom: 24px;
    font-size: 16px;
}

.footer-nav-col b {
    color: var(--primary-color) !important;
}

.footer-nav-col img {
    display: block;
    margin: 0 auto 12px;
}

.footer-nav-col p {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-nav-col ul {
    list-style: none;
}

.footer-nav-col ul li {
    margin-bottom: 12px;
}

.footer-nav-col ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13px;
    transition: var(--transition);
}

.footer-nav-col ul li a:hover {
    color: var(--primary-color);
}
.footer-nav-col a{text-decoration: none;
    color: var(--primary-color);font-size:18px;}
.footer-nav-col a:hover{text-decoration:}
.footer-bottom {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.search-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.7;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.search-tags a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.search-tags a:hover {
    color: var(--primary-color);
}

.copyright {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ===== RESPONSIVE - Header/Footer ===== */
@media (max-width: 1200px) {
    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .nav-toggle-label {
        display: block;
        margin-right: -4px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 71px;
        left: -24px;
        width: calc(100% + 48px);
        background: white;
        padding: 16px 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 16px;
        width: 100%;
        display: block;
        padding: 16px;
        border-bottom: 1px solid var(--bg-light);
    }

    .nav-links li:last-child {
        padding: 12px 0;
    }

    .nav-links li:last-child a.btn {
        display: inline-flex;
        width: auto;
        color: white !important;
        padding: 10px 32px;
        border-bottom: none;
        margin: 0 auto;
    }

    .nav-toggle:checked~.nav-links {
        display: flex;
    }

    body {
        padding-top: 72px;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Footer Mobile Specific */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .footer-brand .logo {
        display: inline-flex;
    }

    .footer-brand .tagline {
        white-space: nowrap;
        /* 不换行 */
        overflow: hidden;
        text-overflow: ellipsis;
        /* 超过部分显示省略号 */
        font-size: 11px;
        margin-top: 8px;
    }

    /* 服务项目、优势案例、快速链接在一行 */
    .footer-grid {
        display: flex;
        flex-direction: column;
    }

    .footer-grid> :not(.footer-brand):not(.hide-mobile) {
        display: none;
        color: var(--primary-color) !important;
        /* 默认先隐藏其他 */
    }

    /* 重新组织 3 个导航栏成一行 */
    .footer-grid {
        display: block !important;
    }

    .footer-nav-row-mobile {
        display: flex !important;
        justify-content: space-between;
        margin-top: 24px;
        padding: 0 10px;
    }

    .footer-grid .footer-nav-col {
        display: block;
        flex: 1;
        text-align: center;
    }

    .footer-nav-col h5 {
        font-size: 16px;
        margin-bottom: 12px;
        white-space: nowrap;
    }



    .hide-mobile {
        color: var(--primary-color) !important;
    }
}

/* ===== Toast Notification ===== */
.wechat-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(16, 24, 40, 0.95);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-width: 250px;
    max-width: 90%;
}

.wechat-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}