/* =============================================================
   货小助国际物流 - 前台主题样式（Bootstrap 4 / 深蓝简洁风）
   说明：本样式为精简化重写版，配合 Bootstrap 4 使用，
        统一主色深蓝 #08265c，去冗余装饰，整体简洁大气。
   ============================================================= */

:root {
    --brand: #08265c;          /* 主题主色 */
    --brand-dark: #071f4d;     /* 主色加深（悬停等） */
    --brand-light: #eaf1fb;    /* 主色浅底 */
    --text: #333333;           /* 正文 */
    --text-light: #6b7077;     /* 次要文字 */
    --border: #e5e9f0;         /* 边框 */
    --bg-light: #f7f9fc;       /* 浅背景 */
    --radius: 8px;             /* 常用圆角 */
    --shadow: 0 6px 24px rgba(11, 61, 145, 0.10); /* 柔和阴影 */
}

html { height: 100%; }
body {
    /* min-height 撑满视口而非固定 height：避免 body 成为滚动容器，保证视口/window 正常滚动 */
    min-height: 100%;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text);
    background: #fff;
}
/* 防御手机端横向溢出：允许长文本断行，禁止整页横向滚动 */
html, body { overflow-x: hidden; }
body, p, h1, h2, h3, h4, h5, h6, .section * { overflow-wrap: break-word; word-break: break-word; }
img { max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-dark); text-decoration: none; }

/* ---------------- 按钮 ---------------- */
.btn-brand {
    background: var(--brand);
    color: #fff;
    border: 1px solid var(--brand);
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    transition: all .25s;
}
.btn-brand:hover, .btn-brand:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}
.btn-outline-brand {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
    transition: all .25s;
}
.btn-outline-brand:hover {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
}

/* ---------------- 顶部信息条 ---------------- */
/* 顶部信息条：深蓝背景 + 白色文字 */
.site-topbar {
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid var(--brand-dark);
}
.site-topbar .bi { margin-right: 5px; }
.site-topbar .topbar-item { display: inline-flex; align-items: center; margin-right: 28px; }

/* 滚动时隐藏顶部信息条（仅保留导航栏） */
#header .site-topbar.header-top-hide { display: none !important; }

/* ---------------- 页头（固定在视口顶部） ---------------- */
#header {
    position: fixed;
    width: 100%;
}
/* 页面主内容顶部留白：未滚动时预留顶栏+导航高度 */
body:not(.page-scrolled) .page-body { padding-top: 104px; }
/* 滚动后顶栏收起，仅留导航高度，避免空白 */
body.page-scrolled .page-body { padding-top: 68px; }

/* ---------------- 主导航 ---------------- */
/* 主导航：白色背景 + 品牌色文字 */
.main-nav { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.main-nav .navbar-brand img { height: auto; width: auto; max-width: 100%; max-height: 60px; border-radius: 6px; }
/* 品牌区：logo + 网站名称水平居中排列；负左边距让 logo 更靠左 */
.main-nav .brand-box { display: inline-flex; align-items: center; margin-left: -12px; }
.main-nav .brand-name {
    color: var(--brand); font-size: 22px; font-weight: 700;
    margin-left: 10px; line-height: 1.2; white-space: nowrap;
}
.main-nav .navbar-nav .nav-link {
    color: var(--brand);
    font-weight: 500;
    padding: 16px 18px;
    font-size: 15px;
}
.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-item.active > .nav-link { color: var(--brand-dark); }
.main-nav .dropdown-menu {
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 8px 0;
    min-width: 180px;
}
.main-nav .dropdown-menu .dropdown-item { padding: 8px 18px; font-size: 14px; color: #444; }
.main-nav .dropdown-menu .dropdown-item:hover { background: var(--brand-light); color: var(--brand); }
.main-nav .nav-phone { color: var(--brand); font-weight: 600; font-size: 15px; }
.main-nav .nav-phone .bi { margin-right: 5px; }

/* 二级菜单：鼠标悬浮时自动展开（桌面端） */
@media (min-width: 992px) {
    .main-nav .navbar-nav .dropdown { position: relative; }
    .main-nav .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* 导航栏"登录客户端"按钮：与导航项保持间距，白底导航上使用品牌色描边、悬停反蓝 */
.main-nav .nav-login-btn { margin-left: 20px; padding: 5px 16px; font-size: 13px; color: var(--brand); border-color: var(--brand); }
.main-nav .nav-login-btn:hover,
.main-nav .nav-login-btn:focus { background: var(--brand); border-color: var(--brand); color: #fff; }
/* 移动端（导航折叠后）：图标按钮常驻、与汉堡按钮并排，仅显示纯图标 */
@media (max-width: 991.98px) {
    .main-nav .nav-login-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        margin-right: 8px;
        padding: 4px;
        font-size: 20px;
        line-height: 1;
        background: transparent;
        border: none;
        color: var(--brand);
    }
}
/* 手机端汉堡菜单图标：去掉边框、缩小并与登录图标对齐，颜色改为品牌蓝 */
.main-nav .navbar-toggler {
    border: none;
    padding: 4px;
}
.main-nav .navbar-toggler .navbar-toggler-icon {
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%2308265c' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ---------------- 通用区块 ---------------- */
.section { padding: 72px 0; }
.section.bg-light { background: var(--bg-light); }

.section-title { margin-bottom: 44px; }
.section-title .eyebrow {
    display: inline-block;
    color: var(--brand);
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 6px;
}
.section-title h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 8px;
}
.section-title .sub { color: var(--text-light); max-width: 640px; margin: 0 auto; }

.single_title {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 18px;
}

/* ---------------- 子页面标题条 banner_area ---------------- */
.banner_area {
    background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 100%);
    padding: 34px 0;
    margin-bottom: 46px;
}
.banner_area h3 { color: #fff; font-size: 24px; font-weight: 700; margin: 0; }
/* 兼容除首页外的内页顶部间距 */
.page-body { }

/* ---------------- 首页轮播 (Bootstrap carousel) ---------------- */
.hero-carousel .carousel-item { height: 520px; background-size: cover; background-position: center; }
.hero-carousel .carousel-item .hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(8,38,92,.78) 0%, rgba(8,38,92,.35) 60%, rgba(8,38,92,.1) 100%);
}
.hero-carousel .carousel-item .hero-caption {
    position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
    z-index: 2;
}
.hero-carousel .hero-title {
    color: #fff; font-size: 42px; font-weight: 800; line-height: 1.3; margin-bottom: 14px;
}
.hero-carousel .hero-sub {
    color: rgba(255,255,255,.85); font-size: 18px; max-width: 640px; margin-bottom: 26px;
}
.hero-carousel .carousel-indicators li { width: 26px; height: 4px; border-radius: 2px; }

/* 轮播左右箭头按钮（清晰可见、可点击，垂直居中） */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 46px; height: 46px; top: 50%; transform: translateY(-50%);
    border-radius: 50%; background: rgba(255,255,255,.18);
    opacity: .9;
    z-index: 20; /* 置于遮罩/文字之上，确保鼠标可真实命中点击 */
}
.hero-carousel .carousel-control-prev { left: 18px; }
.hero-carousel .carousel-control-next { right: 18px; }
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon { width: 24px; height: 24px; }

/* ---------------- 首页·服务特色 feature ---------------- */
.feature-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 26px;
    text-align: center;
    height: 100%;
    transition: all .3s;
}
.feature-item:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.feature-item .feature-icon {
    width: 64px; height: 64px; line-height: 64px;
    margin: 0 auto 18px;
    border-radius: 14px;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 30px;
    display: flex; align-items: center; justify-content: center;
}
.feature-item h4 { font-size: 18px; font-weight: 600; color: var(--brand-dark); margin-bottom: 8px; }
.feature-item p { font-size: 14px; color: var(--text-light); margin: 0; }

/* ---------------- 首页·主要服务 main_service ---------------- */
.service-media { display: flex; margin-bottom: 30px; }
.service-media .service-icon {
    flex: 0 0 54px; width: 54px; height: 54px; line-height: 54px;
    border-radius: 12px; background: var(--brand-light); color: var(--brand);
    display: flex; align-items: center; justify-content: center; font-size: 26px;
    margin-right: 18px;
}
.service-media h4 { font-size: 18px; font-weight: 600; color: var(--brand-dark); margin-bottom: 6px; }
.service-media p { color: var(--text-light); font-size: 14px; margin: 0; }
.service-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* ---------------- 首页·图文 about ---------------- */
.about-text p { color: var(--text-light); }
.about-text .lead { font-size: 18px; color: #444; margin-bottom: 14px; }
.about-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* ---------------- 首页·最新动态/博客 blog ---------------- */
.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .3s;
    height: 100%;
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.blog-card .blog-thumb { position: relative; overflow: hidden; }
.blog-card .blog-thumb img { width: 100%; height: 210px; object-fit: cover; display: block; }
.blog-card .blog-body { padding: 22px 20px 26px; }
.blog-card .blog-meta { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.blog-card .blog-meta i { color: var(--brand); margin-right: 4px; }
.blog-card h4 { font-size: 17px; font-weight: 600; line-height: 1.4; margin-bottom: 10px; }
.blog-card h4 a { color: var(--brand-dark); }
.blog-card h4 a:hover { color: var(--brand); }
.blog-card p { font-size: 14px; color: var(--text-light); margin: 0; }

/* ---------------- 首页·CTA 询价条 ---------------- */
.cta-bar {
    background: linear-gradient(120deg, var(--brand-dark), var(--brand));
    color: #fff;
    padding: 34px 0;
}
.cta-bar h4 { font-size: 24px; font-weight: 700; margin: 0; }
.cta-bar .btn-outline-brand { margin-left: 20px; }

/* ---------------- 首页·客户评价 testimonials（三列卡片） ---------------- */
.testimonial-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px 26px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    text-align: center;
    transition: all .3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(8,38,92,.10); }
.testimonial-card .t-quote { position: absolute; top: 20px; right: 22px; font-size: 52px; line-height: 1; color: var(--brand-light); }
.testimonial-card .t-stars { color: #f6b01e; font-size: 15px; letter-spacing: 4px; margin-bottom: 16px; }
.testimonial-card .t-text { font-size: 14px; color: var(--text); line-height: 1.9; flex: 1; margin-bottom: 20px; }
.testimonial-card .t-footer { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testimonial-card .t-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--brand-light); }
.testimonial-card .t-author { text-align: left; }
.testimonial-card .t-author h4 { margin: 0; font-size: 16px; font-weight: 600; color: var(--brand-dark); }
.testimonial-card .t-author span { font-size: 12px; color: var(--text-light); }

/* ---------------- 首页·常见问题 faq（两列卡片） ---------------- */
.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow .3s, border-color .3s;
}
.faq-item.active { border-color: var(--brand); box-shadow: var(--shadow); }
.faq-item .faq-q {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 20px; cursor: pointer; user-select: none;
}
.faq-item .faq-icon {
    flex: none; width: 32px; height: 32px; border-radius: 50%;
    background: var(--brand-light); color: var(--brand);
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.faq-item .faq-title { font-size: 15px; font-weight: 600; color: var(--text); }
.faq-item .faq-a-inner {
    padding: 0 20px 18px 64px;
    color: var(--text-light); font-size: 14px; line-height: 1.9;
}

/* ---------------- 首页·合作伙伴 partners ---------------- */
.client-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex; align-items: center; justify-content: center;
    height: 100%;
    background: #fff;
}
.client-item img { max-height: 46px; opacity: .85; }

/* ---------------- 关于页·团队 team ---------------- */
.team-item { text-align: center; }
.team-item .team-photo {
    width: 100%; height: 260px; object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    display: block;
}
.team-item .team-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; transition: all .3s;
}
.team-item .team-card:hover { box-shadow: var(--shadow); }
.team-item .team-body { padding: 16px 12px; }
.team-item h5 { font-weight: 600; color: var(--brand-dark); margin-bottom: 2px; }
.team-item .team-pos { color: var(--text-light); font-size: 14px; margin: 0; }

/* ---------------- 关于页·双列文本 target/service ---------------- */
.text-col h4 { color: var(--brand-dark); font-weight: 700; margin-bottom: 12px; }
.text-col p { color: var(--text-light); }

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,.8); }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }
.site-footer .footer-logo { height: 40px; margin-bottom: 14px; }
.site-footer .widget { margin-bottom: 28px; }
.site-footer .widget-sub { color: #fff; font-weight: 600; font-size: 15px; margin: 0 0 10px; }
.site-footer .widget-title {
    color: #fff; font-size: 17px; font-weight: 700;
    margin-bottom: 16px; padding-bottom: 10px;
    position: relative;
}
.site-footer .widget-title::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 30px; height: 3px; border-radius: 2px; background: #fff;
}
.site-footer .footer-links li { margin-bottom: 9px; font-size: 14px; }
.site-footer .footer-links li .bi { font-size: 10px; margin-right: 6px; }
.site-footer .widget p { font-size: 14px; }
.site-footer .footer-contact li { display: flex; align-items: flex-start; margin-bottom: 12px; font-size: 14px; }
.site-footer .footer-contact .bi { color: #fff; font-size: 16px; margin-right: 10px; margin-top: 3px; }
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 18px 0;
    font-size: 13px;
    text-align: center;
    color: rgba(255,255,255,.6);
}

/* ---------------- 联系我们页 ---------------- */
.contact-info-item {
    display: flex; align-items: center; margin-bottom: 22px;
}
.contact-info-item .contact-icon {
    flex: 0 0 46px; width: 46px; height: 46px; line-height: 46px;
    border-radius: 50%; background: var(--brand-light); color: var(--brand);
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    margin-right: 16px;
}
.contact-info-item p { margin: 0; color: #555; }
.contact-info-item a { color: #555; font-size: 15px; }

/* ---------------- 文章内容 ---------------- */
.article-main { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding: 36px; }
.article-main .article-title { font-size: 26px; font-weight:700; color: var(--brand-dark); margin-bottom:6px; }
.article_content { line-height: 1.9; color: #444; font-size: 15px; }
.article_content img { max-width: 100%; border-radius: 6px; }
.article_content h1,.article_content h2,.article_content h3 { margin: 20px 0 12px; }
.article_content table { width:100%; }
.article_content pre,.article_content code { background:#f6f8fa; border-radius:4px; }

/* ---------------- 返回顶部按钮（固定右下角，不随页面滚动） ---------------- */
.back-top {
    position: fixed; right: 22px; bottom: 26px;
    width: 46px; height: 46px; border-radius: 50%;
    border: none; background: var(--brand); color: #fff; font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(8,38,92,.25); cursor: pointer;
    z-index: 1040;
}
.back-top:hover { background: var(--brand-dark); }

/* ---------------- 响应式微调 ---------------- */
@media (max-width: 767.98px) {
    /* 手机端顶栏本就隐藏，页面顶部留白保持不变 */
    body:not(.page-scrolled) .page-body,
    body.page-scrolled .page-body { padding-top: 60px; }
    .main-nav .navbar-brand img { height: auto; max-height: 40px; }
    .main-nav .brand-name { font-size: 16px; margin-left: 8px; }
    .section { padding: 50px 0; }
    .banner_area { margin-bottom: 30px; }
    .hero-carousel .carousel-item { height: auto; min-height: 340px; background-position: center; }
    .hero-carousel .hero-caption { position: static; transform: none; padding: 44px 0; text-align: center; }
    .hero-carousel .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next { display: none; } /* 手机端隐藏左右箭头，避免遮挡内容 */
    .hero-carousel .hero-title { font-size: 26px; }
    .hero-carousel .hero-sub { font-size: 15px; }
    .section-title h2 { font-size: 24px; }
    .single_title { font-size: 20px; }
    .site-footer .footer-bottom { text-align: center; }
    /* 内页顶部标题条：手机端压缩留白与字号 */
    .banner_area { padding: 22px 0; margin-bottom: 24px; }
    .banner_area h3 { font-size: 20px; }
    /* 文章富文本：允许宽表格/代码内部横向滚动，避免撑破窄屏 */
    .article_content { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    /* 联系页：长邮箱/电话自动换行，防溢出 */
    .contact-info-item a { overflow-wrap: anywhere; }
}