﻿/* ============================================
   分页
   ============================================ */
#dataPagerContainer{
    text-align:center;
}
.layui-laypage .layui-laypage-curr .layui-laypage-em {
    background-color: var(--primary);
}

/* ============================================
   顶部实用条
   ============================================ */
.top-bar {
    background: #f7f7f7;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-60);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 30px;
}

.top-bar-left a {
    color: var(--primary);
    margin-left: 12px;
}

    .top-bar-left a:hover {
        text-decoration: underline;
    }

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .top-bar-right a {
        color: var(--text-60);
    }

        .top-bar-right a:hover {
            color: var(--primary);
        }

    .top-bar-right span {
        color: var(--border-strong);
    }

/* 二维码下拉（手机版 / 微信公众号） */
.top-drop {
    position: relative;
}

.top-drop-toggle {
    white-space: nowrap;
}

.top-drop-panel {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    width: 154px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    text-align: center;
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
    /* 小三角 */
    .top-drop-panel::before {
        content: "";
        position: absolute;
        top: -6px;
        right: 22px;
        width: 10px;
        height: 10px;
        background: #fff;
        border-left: 1px solid var(--border);
        border-top: 1px solid var(--border);
        transform: rotate(45deg);
    }

    .top-drop-panel img {
        display: block;
        border-radius: 4px;
    }

    .top-drop-panel p {
        font-size: 12px;
        color: var(--text-60);
        margin: 8px 0 0;
    }

/* 桌面悬停展开；触屏点击加 .open 展开 */
.top-drop:hover .top-drop-panel,
.top-drop.open .top-drop-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-drop:hover .top-drop-toggle,
.top-drop.open .top-drop-toggle {
    color: var(--primary);
}

/* ============================================
   主头部：Logo + 搜索 + 发布
   ============================================ */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 18px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.logo img{
    max-width:200px;
}

/* 搜索框 */
.search-box {
    flex: 1;
    max-width: 540px;
}

.search-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: -1px;
}

    .search-tabs a {
        padding: 4px 14px;
        font-size: 13px;
        color: var(--text-60);
        border: 1px solid transparent;
        border-bottom: none;
        border-radius: var(--radius) var(--radius) 0 0;
    }

        .search-tabs a.active {
            color: var(--primary);
            background: #fff;
            border-color: var(--primary);
            font-weight: 600;
        }

.search-row {
    display: flex;
    height: 40px;
}

    .search-row input {
        flex: 1;
        border: 2px solid var(--primary);
        border-right: none;
        padding: 0 14px;
        font-size: 14px;
        outline: none;
        border-radius: var(--radius) 0 0 var(--radius);
    }

    .search-row button {
        width: 92px;
        background: var(--primary);
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        border-radius: 0 var(--radius) var(--radius) 0;
        transition: background 0.3s;
    }

        .search-row button:hover {
            background: var(--primary-dark);
        }

.hot-search {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-40);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .hot-search a {
        color: var(--text-40);
        margin-right: 12px;
    }

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

/* 头部右侧动作 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.publish-btn {
    background: linear-gradient(135deg, var(--accent), #e8550c);
    color: #fff;
    padding: 9px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.35);
    transition: all 0.3s;
}

    .publish-btn:hover {
        transform: translateY(-2px);
    }

.hotline {
    text-align: right;
    line-height: 1.3;
}

    .hotline strong {
        display: block;
        font-size: 12px;
        color: var(--text-60);
        font-weight: 400;
    }

    .hotline span {
        font-size: 21px;
        color: var(--primary);
        font-weight: 800;
        letter-spacing: 0.5px;
    }

/* 汉堡 */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

    .nav-toggle span {
        display: block;
        width: 24px;
        height: 2.5px;
        border-radius: 3px;
        background: var(--text);
        transition: all 0.35s var(--ease);
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

/* ============================================
   红色导航条
   ============================================ */
.nav-strip {
    background: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: stretch;
}

    .nav-menu > li > a {
        display: block;
        padding: 0 26px;
        height: 44px;
        line-height: 44px;
        font-size: 15px;
        font-weight: 600;
        color: #fff;
        position: relative;
        transition: background 0.25s;
    }

        .nav-menu > li > a::after {
            content: "";
            position: absolute;
            left: 26px;
            right: 26px;
            bottom: 8px;
            height: 2px;
            background: #fff;
            transform: scaleX(0);
            transition: transform 0.3s var(--ease);
        }

        .nav-menu > li > a:hover, .nav-menu > li.active > a {
            background: var(--primary-dark);
        }

            .nav-menu > li.active > a::after {
                transform: scaleX(1);
            }

    /* 二级下拉菜单（行业资讯） */
    .nav-menu > li.has-sub {
        position: relative;
    }

        .nav-menu > li.has-sub > a {
            padding-right: 20px;
        }

.nav-caret {
    display: inline-block;
    margin-left: 5px;
    font-size: 10px;
    transition: transform .25s;
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    min-width: 168px;
    padding: 6px 0;
    background: #fff;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
    display: none;
}

    .nav-menu .sub-menu a {
        display: block;
        padding: 10px 20px;
        white-space: nowrap;
        font-size: 13.5px;
        font-weight: 500;
        line-height: 1.5;
        color: var(--text);
        height: auto;
    }

        .nav-menu .sub-menu a:hover,
        .nav-menu .sub-menu li.active a {
            background: #fdf0f2;
            color: var(--primary);
        }

.nav-menu > li.has-sub:hover .sub-menu,
.nav-menu > li.has-sub.sub-open .sub-menu {
    display: block;
}

.nav-menu > li.has-sub:hover > a .nav-caret,
.nav-menu > li.has-sub.sub-open > a .nav-caret {
    transform: rotate(180deg);
}


/* ============================================
   页面横幅（内页）
   ============================================ */
.page-banner {
    background: linear-gradient(135deg, var(--primary-deep), var(--primary-dark));
    color: #fff; padding: 38px 0 32px; position: relative; overflow: hidden;
}
.page-banner::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.3), transparent 55%);
}
.page-banner h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; position: relative; }
.page-banner p { opacity: 0.85; font-size: 14px; position: relative; }

.list-wrap { padding: 22px 0 60px; }
.detail-wrap { padding: 22px 0 60px; }

/* 面包屑 */
.breadcrumb { font-size: 12.5px; color: var(--text-60); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-60); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 7px; color: var(--text-40); }
.breadcrumb .cur { color: var(--primary); font-weight: 600; }

/* ============================================
   筛选工具条
   ============================================ */
.filter-bar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    margin-bottom: 16px; padding: 12px 16px; background: #fff;
    border: 1px solid var(--border); border-radius: var(--radius);
}
.filter-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-cats a {
    padding: 5px 14px; font-size: 13px; color: var(--text-60); border-radius: 3px;
    background: var(--bg-light); transition: all 0.25s;
}
.filter-cats a:hover { color: var(--primary); }
.filter-cats a.active { background: var(--primary); color: #fff; }
.filter-count { font-size: 13px; color: var(--text-60); }
.filter-count strong { color: var(--primary); font-size: 16px; margin: 0 2px; }



/* ============================================
   页脚（密集站点地图）
   ============================================ */
.footer {
    background: #2b2b2b;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 40px;
}

.footer-promises {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.promises-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

    .promises-grid > div {
        padding: 20px 14px;
        text-align: center;
        border-right: 1px solid var(--border);
    }

        .promises-grid > div:last-child {
            border-right: none;
        }

    .promises-grid strong {
        display: block;
        font-size: 16px;
        color: var(--text);
        font-weight: 700;
    }

    .promises-grid span {
        font-size: 12.5px;
        color: var(--text-40);
    }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr) 1fr;
    gap: 28px;
    padding: 36px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-about .logo-text strong {
    color: #fff;
}

.footer-about .logo-text small {
    color: rgba(255,255,255,0.4);
}

.footer-about p {
    margin-top: 14px;
    font-size: 12.5px;
    line-height: 1.85;
    color: rgba(255,255,255,0.5);
}

.footer h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    transition: all 0.25s;
}

    .footer-links a:hover {
        color: var(--accent);
    }

.footer-contact li {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 9px;
    line-height: 1.6;
}

.footer-bottom {
    padding: 18px 0;
    text-align: center;
    font-size: 12.5px;
    color: rgba(255,255,255,0.4);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

    .footer-bottom a {
        color: rgba(255,255,255,0.5);
    }

        .footer-bottom a:hover {
            color: var(--accent);
        }


/* ============================================
   动画
   ============================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

[data-animate] {
    opacity: 0; transform: translateY(26px);
    transition: opacity 0.7s var(--ease) var(--delay, 0s), transform 0.7s var(--ease) var(--delay, 0s);
}
[data-animate].in-view { opacity: 1; transform: translateY(0); }
[data-animate="left"] { transform: translateX(-34px); }
[data-animate="left"].in-view { transform: translateX(0); }
[data-animate="right"] { transform: translateX(34px); }
[data-animate="right"].in-view { transform: translateX(0); }
[data-animate="scale"] { transform: scale(0.9); }
[data-animate="scale"].in-view { transform: scale(1); }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
    .portal-grid { grid-template-columns: 1fr; }
    .cat-panel-list { display: grid; grid-template-columns: 1fr 1fr; }
    .carousel-track { min-height: 280px; }
    .service-panel { flex-direction: row; flex-wrap: wrap; }
    .service-hotline { width: 100%; }
    .service-quick { width: 50%; grid-template-columns: repeat(2,1fr); }
    .hot-news-panel { flex: 1; min-width: 260px; }

    .cat-grid, .prod-grid { grid-template-columns: repeat(3, 1fr); }
    .hot-cat-grid { grid-template-columns: 1fr; }
    .quick-entry-grid { grid-template-columns: 1fr 1fr; }
    .adv-grid { grid-template-columns: repeat(2, 1fr); }
    .portal-info-grid { grid-template-columns: 1fr; }
    .detail-layout, .about-layout { grid-template-columns: 1fr; }
    .side-nav, .supply-reco { position: static; }

    /* 侧导航变横向滑动条 */
    .side-nav h4 { display: none; }
    .side-nav ul { display: flex; overflow-x: auto; gap: 4px; padding: 6px; }
    .side-nav ul li { border-bottom: none; flex-shrink: 0; }
    .side-nav ul li a { padding: 7px 16px; white-space: nowrap; background: var(--bg-light); border-radius: 20px; }
    .side-nav ul li a::before { display: none; }
    .side-nav ul li.active a { background: var(--primary); color: #fff; }

    .promises-grid { grid-template-columns: repeat(3, 1fr); }
    .promises-grid > div:nth-child(3n) { border-right: none; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }

    /* 导航条：汉堡展开 */
    .nav-toggle { display: flex; }
    .hotline { display: none; }
    .nav-menu {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; background: var(--primary);
        max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); z-index: 50;
    }
    .nav-menu.open { max-height: 640px; }
    .nav-menu > li > a { border-bottom: 1px solid rgba(255,255,255,0.15); }
    .nav-strip { position: relative; }

    /* 二级菜单：纵向手风琴 */
    .nav-menu > li.has-sub > a { padding-right: 42px; }
    .nav-caret {
        position: absolute; right: 16px; top: 50%; margin: 0;
        transform: translateY(-50%); font-size: 12px;
    }
    .nav-menu > li.has-sub.sub-open > a .nav-caret { transform: translateY(-50%) rotate(180deg); }
    .nav-menu .sub-menu {
        position: static; display: none; padding: 0;
        background: var(--primary-dark); border-radius: 0;
        box-shadow: none;
    }
    .nav-menu > li.has-sub.sub-open .sub-menu { display: block; }
    .nav-menu .sub-menu a { color: rgba(255,255,255,.82); padding-left: 46px; }
    .nav-menu .sub-menu a:hover,
    .nav-menu .sub-menu li.active a { background: rgba(255,255,255,.1); color: #fff; }
}
@media (max-width: 640px) {
    /* 顶条换行，二维码下拉在手机端同样可用 */
    .top-bar-inner { height: auto; flex-wrap: wrap; gap: 4px 10px; padding: 7px 0; }
    .top-bar-left { line-height: 1.6; }
    .top-bar-right { gap: 8px; flex-wrap: wrap; }
    .top-drop-panel { right: auto; left: 0; }
    .top-drop-panel::before { right: auto; left: 22px; }
    .header-inner { flex-wrap: wrap; gap: 12px; padding: 14px 0; }
    .search-box { order: 3; flex-basis: 100%; max-width: none; }
    .publish-btn { padding: 8px 14px; font-size: 13px; }
    .logo-mark { width: 44px; height: 44px; font-size: 17px; }
    .logo-text strong { font-size: 19px; }

    .cat-grid, .prod-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-panel-list { grid-template-columns: 1fr; }
    .quick-entry-grid { grid-template-columns: 1fr; }
    .adv-grid { grid-template-columns: 1fr; }
    .quick-entry-grid a { border-right: none; border-bottom: 1px solid var(--border); }
    .service-panel { flex-direction: column; }
    .service-quick { width: 100%; }
    .news-item { flex-direction: column; gap: 10px; }
    .news-date { flex-direction: row; gap: 8px; width: auto; padding: 6px 14px; align-self: flex-start; }
    .news-date strong { font-size: 16px; }
    .detail-main { padding: 20px 16px; }
    .detail-title { font-size: 20px; }
    .contact-cards, .coop-grid { grid-template-columns: 1fr; }
    .cta .container { flex-direction: column; align-items: flex-start; }
    .promises-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .page-banner h1 { font-size: 22px; }

    .float-bar { bottom: 14px; top: auto; transform: none; flex-direction: row; right: 50%; margin-right: -90px; }
    .float-tip { display: none; }
}
