:root {
    --brand: #1a365d;
    --bs-primary: #1a365d;
    --bs-primary-rgb: 26, 54, 93;
}

body {
    font-family: "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    background: #eef1f6;
}

/* 主按钮 / 描边按钮统一品牌色。
   注意：Bootstrap 5.3 的 .btn-primary / .btn-outline-primary 背景与边框是硬编码 #0d6efd，
   不会读取 --bs-primary，必须在此显式覆盖才能使用站点品牌色 #1a365d。 */
.btn-primary {
    --bs-btn-bg: #1a365d;
    --bs-btn-border-color: #1a365d;
    --bs-btn-hover-bg: #2c5282;
    --bs-btn-hover-border-color: #2c5282;
    --bs-btn-active-bg: #15314f;
    --bs-btn-active-border-color: #15314f;
    --bs-btn-disabled-bg: #1a365d;
    --bs-btn-disabled-border-color: #1a365d;
    --bs-btn-focus-shadow-rgb: 26, 54, 93;
}

.btn-outline-primary {
    --bs-btn-color: #1a365d;
    --bs-btn-border-color: #1a365d;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1a365d;
    --bs-btn-hover-border-color: #1a365d;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #15314f;
    --bs-btn-active-border-color: #15314f;
    --bs-btn-focus-shadow-rgb: 26, 54, 93;
}

/* 卡片容器：宽度与头部/底部 .container 完全对齐，避免上下参差不齐 */
.site-card {
    width: calc(100% - 24px);
    margin: 24px auto 0;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

@media (min-width: 576px) {
    .site-card {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .site-card {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .site-card {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .site-card {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .site-card {
        max-width: 1320px;
    }
}

/* 顶部条：品牌深色底 + 浅色文字 */
.topbar {
    font-size: 13px;
    background: #1a365d;
    color: rgba(255, 255, 255, .82);
}

.topbar a {
    color: #fff;
    text-decoration: none;
}

.topbar .city-pill {
    color: #fff;
    background: rgba(255, 255, 255, .16);
    padding: 2px 10px;
    border-radius: 5px;
}

.topbar .form-select {
    background-color: #fff;
    border: none;
}

/* 导航：白底 + 圆角 Logo + 激活下划线 + CTA */
.navbar {
    background: #fff;
    padding-top: .55rem;
    padding-bottom: .55rem;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
}

.navbar-brand {
    font-size: 1.45rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand .logo-ico {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: linear-gradient(135deg, #1a365d, #2c5282);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.navbar-brand b {
    color: #1a365d;
}
/* 品牌名 + 网址两行文本：垂直居中，总高与 42px 的 Logo 图标对齐 */
.brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; }
.brand-name { font-size: 1.45rem; font-weight: 800; color: #1a365d; }
.brand-url { font-size: .82rem; color: #111111; text-align: right; margin-top: 2px; }

.navbar .nav-link {
    font-weight: 600;
    color: #2d3748;
    padding: .55rem 1rem !important;
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #1a365d;
}

.navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 2px;
    height: 3px;
    border-radius: 2px;
    background: #1a365d;
}

.nav-cta {
    background: linear-gradient(135deg, #1a365d, #2c5282);
    color: #fff;
    font-weight: 600;
    border-radius: 9px;
    padding: .5rem 1.4rem;
    white-space: nowrap;
    animation: ctaPulse 2.4s ease-in-out infinite;
}

/* 导航 CTA 呼吸光晕，引导点击 */
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(43, 108, 176, .45); }
    50%      { box-shadow: 0 0 0 9px rgba(43, 108, 176, 0); }
}

.nav-cta:hover {
    color: #fff;
    animation: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(26, 54, 93, .45);
}

@media (prefers-reduced-motion: reduce) {
    .nav-cta { animation: none; }
}

/* 主视觉 Hero：大气渐变 + 装饰光晕 + 玻璃质感信任条 */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 55%, #2b6cb0 100%);
    padding: 84px 0 72px;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .35;
    pointer-events: none;
}

.hero::before {
    width: 420px;
    height: 420px;
    background: #63b3ed;
    top: -160px;
    right: -120px;
}

.hero::after {
    width: 360px;
    height: 360px;
    background: #1a365d;
    bottom: -180px;
    left: -100px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .25);
    font-size: .9rem;
    letter-spacing: .5px;
}

.hero-title {
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 1px;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    margin: 22px 0 0;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .2);
}

.hero-sub {
    max-width: 660px;
    margin: 18px auto 0;
    font-size: 1.1rem;
    opacity: .92;
    line-height: 1.8;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: .7rem 1.6rem;
    font-weight: 600;
}

.hero-feats {
    margin-top: 46px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-feats .feat {
    flex: 1 1 200px;
    max-width: 280px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    text-align: left;
}

.hero-feats .feat-ico {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.4rem;
    background: rgba(255, 255, 255, .18);
}

.hero-feats .feat-num {
    font-size: 1.55rem;
    font-weight: 700;
    color: #FFC107;
}

.hero-feats .feat-label {
    font-size: .82rem;
    opacity: .85;
}

/* 首页区块卡片：与 Hero 同宽浮动，独立成卡 */
.block-card {
    padding: 2.5rem 2rem;
}

.section-title {
    text-align: center;
    font-weight: 800;
    color: #1a365d;
    position: relative;
    margin-bottom: 2rem;
}

.section-title::after {
    content: "";
    display: block;
    width: 52px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #1a365d, #2c5282);
    margin: 12px auto 0;
}

.service-card {
    border-radius: 14px !important;
    transition: transform .2s, box-shadow .2s;
}

.service-card .ic-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a365d, #2c5282);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(26, 54, 93, .18) !important;
}

.step-card {
    background: #f7f9fc;
    border: 1px solid #eef1f6;
    border-radius: 14px;
    padding: 1.5rem 1rem;
}

.step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #1a365d, #2c5282);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.trust-card {
    background: #f7f9fc;
    border: 1px solid #eef1f6;
    border-radius: 14px;
    padding: 1.75rem 1rem;
}

.trust-card .ic {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    background: rgba(26, 54, 93, .08);
    color: #1a365d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
}

.city-pill {
    font-weight: 600;
}

/* ===== 内页统一风格（与首页视觉语言一致） ===== */
.page-inner {
    padding: 2.5rem 2rem;
}

/* 内页主标题：与首页 .section-title 同款（居中 + 渐变下划线） */
.page-title {
    text-align: center;
    font-weight: 800;
    color: #1a365d;
    position: relative;
    margin-bottom: 1.75rem;
}

.page-title::after {
    content: "";
    display: block;
    width: 52px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #1a365d, #2c5282);
    margin: 14px auto 0;
}

/* 内页小标题：左侧品牌蓝条 */
.sub-title {
    color: #1a365d;
    font-weight: 700;
    position: relative;
    padding-left: 12px;
    margin: 1.75rem 0 1rem;
}

.sub-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, #1a365d, #2c5282);
}

/* 品牌渐变主色块（替代原生 bg-primary 的纯色，更具层次） */
.bg-brand {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%) !important;
    color: #fff;
}

/* 信息面板卡：白底圆角 + 柔和阴影 + 可选渐变头 */
.brand-card {
    border: 1px solid #eef1f6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(26, 54, 93, .08);
    overflow: hidden;
}

.brand-card .card-head {
    background: linear-gradient(135deg, #1a365d, #2c5282);
    color: #fff;
    padding: .9rem 1.25rem;
    font-weight: 700;
}

.brand-card .card-body {
    padding: 1.25rem;
}

/* 图标方块（呼应首页 ic-wrap 渐变方块） */
.ico-square {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    flex: 0 0 56px;
    background: linear-gradient(135deg, #1a365d, #2c5282);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* 品牌徽标 */
.badge-brand {
    background: rgba(26, 54, 93, .08);
    color: #1a365d;
    font-weight: 600;
}

/* 品牌提示框（替代 alert-primary / alert-info 的扁平蓝） */
.alert-brand {
    background: rgba(26, 54, 93, .06);
    border: 1px solid rgba(26, 54, 93, .14);
    color: #2d3748;
    border-radius: 12px;
}

.alert-brand .alert-link {
    color: #2b6cb0;
    font-weight: 600;
}

.alert-brand .bi {
    color: #2b6cb0;
}

/* 资讯列表卡：悬停上浮（与首页 service-card 同款手感） */
.post-card {
    border-radius: 14px !important;
    transition: transform .2s, box-shadow .2s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(26, 54, 93, .14) !important;
}

.post-card .card-title a {
    color: #1a365d;
}

.post-card .card-title a:hover {
    color: #2b6cb0;
}

/* 联系信息列表 */
.info-list .list-group-item {
    border-color: #eef1f6;
    padding: .75rem 0;
}

/* 页脚：品牌渐变 + 精致排版（与头部/主视觉风格统一） */
footer {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: rgba(255, 255, 255, .8);
    margin-top: 40px;
}

footer h6 {
    color: #fff;
    font-weight: 700;
    letter-spacing: .5px;
    position: relative;
    padding-left: 12px;
    margin-bottom: 1rem;
}

footer h6::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    border-radius: 2px;
    background: #63b3ed;
}

footer a {
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    transition: color .2s;
}

footer a:hover {
    color: #fff;
}

footer .f-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

footer .f-ico {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

footer .f-links a {
    display: inline-block;
    margin: 0 10px 8px 0;
}

footer hr {
    border-color: rgba(255, 255, 255, .15);
}

footer .copyright {
    color: rgba(255, 255, 255, .6);
}

/* 顶部自动定位按钮（点击清除已选城市/区县并重新按 IP 定位） */
.locate-btn {
    cursor: pointer;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 6px;
    padding: .15rem .6rem;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: background .2s, border-color .2s, transform .2s;
}

.locate-btn:hover {
    background: rgba(255,255,255,.22);
    border-color: #fff;
    transform: translateY(-1px);
}

.locate-btn .bi {
    font-size: .95rem;
}

/* ===== 移动端适配（≤767px）：重排顶部条、收紧间距、CTA 占满 ===== */
@media (max-width: 767.98px) {
    /* 顶部条：上下堆叠，城市切换器占满整行，下拉自动均分宽度 */
    .topbar .container {
        flex-direction: column;
        align-items: stretch;
        gap: .5rem;
    }
    .topbar .container > div:last-child {
        width: 100%;
    }
    .topbar label.me-1 {
        display: none;
    }
    .topbar .locate-btn {
        flex: 0 0 auto;
    }
    .topbar .form-select {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }

    /* 导航品牌字号略缩，避免与汉堡按钮拥挤 */
    .brand-name,
    .navbar-brand {
        font-size: 1.2rem;
    }

    /* 折叠菜单内的「淘宝担保下单」按钮占满整行并居中 */
    .navbar-collapse .nav-cta {
        width: 100%;
        margin: .5rem 0 0 !important;
        text-align: center;
    }

    /* 卡片容器在手机上更贴近屏幕边缘，内容更宽 */
    .site-card {
        width: calc(100% - 16px);
        margin-top: 14px;
    }

    /* Hero 内边距收紧、三大卖点整行竖排 */
    .hero {
        padding: 56px 0 48px;
    }
    .hero-feats .feat {
        flex-basis: 100%;
        max-width: 100%;
    }

    /* 内页 / 区块卡片左右内边距收窄，提升小屏可读性 */
    .block-card,
    .page-inner {
        padding: 1.75rem 1rem;
    }

    footer .f-links a {
        margin: 0 8px 8px 0;
    }
}

/* ===== 超小屏（≤575px）：主操作按钮占满整行 ===== */
@media (max-width: 575.98px) {
    .hero-actions .btn,
    .text-center .btn-lg {
        width: 100%;
    }
    .block-card,
    .page-inner {
        padding: 1.5rem .85rem;
    }
}

/* ===== 全国分站导航地图 ===== */
.map-prov {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(26, 54, 93, .08);
}

.map-prov > .card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: .9rem 1.25rem;
    font-size: 1.05rem;
}

.map-prov .prov-count {
    margin-left: auto;
    font-size: .8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, .18);
    padding: 2px 10px;
    border-radius: 20px;
}

.map-city {
    border: 1px solid #eef1f6 !important;
    border-radius: 12px !important;
    padding: .85rem 1rem !important;
    background: #fff;
    height: 100%;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

.map-city:hover {
    box-shadow: 0 10px 24px rgba(26, 54, 93, .12);
    border-color: rgba(26, 54, 93, .25) !important;
    transform: translateY(-2px);
}

.map-city .city-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #1a365d;
}

.map-city .city-name .bi {
    color: #2b6cb0;
}

.map-city .dist-tags {
    margin-top: .55rem;
    line-height: 1.9;
}

.map-city-divider {
    margin: .6rem 0 .2rem;
    border: 0;
    border-top: 1px solid #cdd6e4;
}

.map-city .dist-tag {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 2px 10px;
    font-size: .82rem;
    color: #2d3748;
    background: #f1f5fb;
    border: 1px solid #e6ecf5;
    border-radius: 20px;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}

.map-city .dist-tag:hover {
    background: #1a365d;
    color: #fff;
    border-color: #1a365d;
}