/* ============================================================
   政企采购平台 - 全站公共样式
   移植自源站 header.html / footer.html / 各模板公共部分
   主色：#0057b8  辅助色：#4298e8
   ============================================================ */

/* ============================================================
   全局重置 & 变量
   ============================================================ */
:root {
    --gov-primary: #0057b8;
    --gov-secondary: #4298e8;
    --gov-primary-light: #e8f0fe;
    --gov-bg-gray: #f5f7fa;
    --gov-text-dark: #222;
    --gov-text-gray: #666;
    --gov-text-light: #999;
    --gov-border: #e8ecf1;
}
body {
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--gov-text-dark);
    background: #fff;
}
a {
    color: var(--gov-text-dark);
    text-decoration: none;
    transition: color 0.25s ease;
}
a:hover {
    color: var(--gov-primary);
}
.container {
    max-width: 1200px;
}
.section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--gov-text-dark);
    text-align: center;
    margin-bottom: 8px;
}
.section-title span {
    color: var(--gov-primary);
}
.section-subtitle {
    font-size: 14px;
    color: var(--gov-text-light);
    text-align: center;
    margin-bottom: 36px;
}
.section-divider {
    width: 50px;
    height: 3px;
    background: var(--gov-primary);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ============================================================
   顶部通栏
   ============================================================ */
.top-bar {
    background-color: var(--gov-primary, #0057b8);
    color: #fff;
    font-size: 14px;
    padding: 8px 0;
}
.top-bar a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s;
}
.top-bar a:hover {
    color: #fff;
}
.top-bar .hotline i {
    margin-right: 4px;
}

/* ============================================================
   头部主体
   ============================================================ */
.header-main {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.header-main .logo {
    display: flex;
    align-items: center;
}
.header-main .logo img {
    height: 56px;
    width: auto;
    margin-right: 15px;
}
.header-main .logo .site-name {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
}
.header-main .logo .site-name span {
    color: var(--gov-primary, #0057b8);
}
.header-main .search-box {
    max-width: 420px;
    width: 100%;
}
.header-main .search-box .input-group {
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--gov-primary, #0057b8);
}
.header-main .search-box .form-control {
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    box-shadow: none;
}
.header-main .search-box .form-control:focus {
    box-shadow: none;
}
.header-main .search-box .btn-search {
    background-color: var(--gov-primary, #0057b8);
    color: #fff;
    border: none;
    padding: 0 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.header-main .search-box .btn-search:hover {
    background-color: var(--gov-secondary, #4298e8);
}
.header-main .hotline-box {
    text-align: right;
    white-space: nowrap;
}
.header-main .hotline-box .label {
    font-size: 13px;
    color: #999;
}
.header-main .hotline-box .tel {
    font-size: 22px;
    font-weight: 700;
    color: var(--gov-primary, #0057b8);
    letter-spacing: 1px;
}

/* ============================================================
   主导航
   ============================================================ */
.navbar-main {
    background-color: var(--gov-primary, #0057b8);
}
.navbar-main .navbar {
    padding: 0;
}
.navbar-main .navbar-nav .nav-item {
    position: relative;
}
.navbar-main .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9);
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}
.navbar-main .navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.12);
    color: #fff;
}
.navbar-main .navbar-nav .nav-link.active {
    background-color: var(--gov-secondary, #4298e8);
    color: #fff;
}
.navbar-main .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 6px solid #fff;
}
.navbar-main .navbar-toggler {
    border-color: rgba(255,255,255,0.5);
    padding: 8px 12px;
    margin: 6px 0;
}
.navbar-main .navbar-toggler:focus {
    box-shadow: none;
}
.navbar-main .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================================
   头部响应式
   ============================================================ */
@media (max-width: 991.98px) {
    .header-main {
        padding: 12px 0;
    }
    .header-main .logo img {
        height: 40px;
    }
    .header-main .logo .site-name {
        font-size: 20px;
    }
    .header-main .search-box {
        max-width: 100%;
        margin-top: 12px;
    }
    .header-main .hotline-box {
        display: none;
    }
    .navbar-main .navbar-nav .nav-link {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .navbar-main .navbar-nav .nav-link.active::after {
        display: none;
    }
}
@media (max-width: 575.98px) {
    .header-main .logo .site-name {
        font-size: 17px;
    }
}

/* ============================================================
   内页公共 - 面包屑导航（列表/详情/关于等内页共用）
   ============================================================ */
.breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid var(--gov-border);
    padding: 14px 0;
}
.breadcrumb-bar .breadcrumb {
    margin-bottom: 0;
    font-size: 14px;
}
.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    color: var(--gov-text-light);
}
.breadcrumb-bar .breadcrumb-item a {
    color: var(--gov-text-gray);
}
.breadcrumb-bar .breadcrumb-item a:hover {
    color: var(--gov-primary);
}
.breadcrumb-bar .breadcrumb-item.active {
    color: var(--gov-text-light);
}

/* ============================================================
   底部全局
   ============================================================ */
.footer-links,
.footer-main,
.footer-bottom {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

/* ============================================================
   友情链接
   ============================================================ */
.footer-links {
    background: #f5f7fa;
    padding: 18px 0;
    border-top: 1px solid #e8ecf1;
    border-bottom: 1px solid #e8ecf1;
}
.footer-links .links-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    background: #0057b8;
    color: #fff;
    display: inline-block;
    padding: 4px 14px;
    border-radius: 4px;
}
.footer-links .links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}
.footer-links .links-list a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}
.footer-links .links-list a:hover {
    color: #0057b8;
}

/* ============================================================
   底部主内容
   ============================================================ */
.footer-main {
    background: #1e2a3a;
    color: #cdd5e0;
    padding: 44px 0 36px;
}
.footer-main h5 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
    position: relative;
    padding-left: 14px;
}
.footer-main h5::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 16px;
    background: #0057b8;
    border-radius: 2px;
}
.footer-main .footer-desc {
    font-size: 13px;
    line-height: 1.8;
    color: #a0aab8;
    margin-bottom: 0;
}

/* 业务范围列表 */
.footer-main .footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-main .footer-list li {
    margin-bottom: 8px;
}
.footer-main .footer-list li a {
    font-size: 13px;
    color: #a0aab8;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
    padding-left: 12px;
    position: relative;
}
.footer-main .footer-list li a::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #0057b8;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
}
.footer-main .footer-list li a:hover {
    color: #fff;
}

/* 联系方式 */
.footer-main .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-main .footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 13px;
    color: #a0aab8;
    line-height: 1.5;
}
.footer-main .footer-contact li i {
    color: #0057b8;
    margin-right: 8px;
    margin-top: 2px;
    flex-shrink: 0;
}
.footer-main .footer-contact li span {
    flex: 1;
}

/* 微信二维码 */
.footer-main .footer-qrcode {
    text-align: center;
}
.footer-main .footer-qrcode h5 {
    text-align: left;
}
.footer-main .qrcode-wrap {
    display: inline-block;
    background: #fff;
    padding: 6px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.footer-main .qrcode-wrap img {
    width: 110px;
    height: 110px;
    display: block;
}
.footer-main .qrcode-tip {
    font-size: 12px;
    color: #a0aab8;
    margin-top: 8px;
    margin-bottom: 0;
}

/* ============================================================
   版权信息
   ============================================================ */
.footer-bottom {
    background: #16202e;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom .copyright {
    font-size: 13px;
    color: #7a8494;
}
.footer-bottom .icp a {
    font-size: 13px;
    color: #7a8494;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-bottom .icp a:hover {
    color: #fff;
}

/* ============================================================
   底部响应式
   ============================================================ */
@media (max-width: 767.98px) {
    .footer-links .links-label {
        margin-bottom: 10px;
    }
    .footer-links .links-list {
        gap: 4px 14px;
    }
    .footer-main {
        padding: 32px 0 24px;
    }
    .footer-main .footer-qrcode h5 {
        text-align: center;
    }
    .footer-bottom .copyright {
        margin-bottom: 6px !important;
    }
}
