/* ===== 自适应主样式 ===== */

/* 全局 */
body {
    background: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 文章样式 */
.entry-content h1, .entry-content h2, .entry-content h3 {
    color: #0066CC;
    margin: 25px 0 15px;
}

.entry-content p {
    margin-bottom: 15px;
}

.entry-content img {
    border-radius: 8px;
    margin: 15px 0;
}

/* 桌面端 Grid 卡片基础 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.product-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    border-top: 4px solid #0066CC;
}

/* ===== 响应式断点 ===== */

/* 平板（768-1024px） */
@media (max-width: 1024px) {
    .hero-section {
        padding: 60px 20px !important;
    }
    .hero-section h1 {
        font-size: 32px !important;
    }
    .page-contact .grid-2 {
        grid-template-columns: 1fr !important;
    }
}

/* 手机（≤767px） */
@media (max-width: 767px) {
    /* 导航 */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    .menu-toggle {
        display: flex !important;
    }

    /* 头部 */
    .header-inner {
        padding: 5px 0;
    }
    .site-logo {
        font-size: 18px;
    }
    .phone-icon svg {
        width: 24px;
        height: 24px;
    }
    .header-phone {
        font-size: 13px;
        padding: 5px 12px;
    }

    /* Hero */
    .hero-section h1 {
        font-size: 26px !important;
    }
    .hero-section p {
        font-size: 16px !important;
    }

    /* 套餐卡片 */
    .products-grid {
        grid-template-columns: 1fr !important;
    }
    .product-card {
        padding: 25px !important;
    }

    /* 联系页 */
    .page-contact .grid-2 {
        grid-template-columns: 1fr !important;
    }

    /* 页脚 */
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

/* 小屏手机（≤480px） */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 22px !important;
    }
    .hero-section p {
        font-size: 14px !important;
    }
    .site-logo {
        font-size: 16px;
    }
    .header-phone {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* ===== 顶部快捷通栏 (Top Bar) ===== */
.top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #666;
    padding: 8px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-right a {
    color: #666;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}
.top-bar-right a:hover {
    color: #0066CC;
}

/* ===== 移动端适配（顶栏 + 并排布局） ===== */
@media (max-width: 768px) {
    .top-bar-inner {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    .top-bar-right a {
        margin: 0 8px;
    }
    /* 统一新闻资讯与常见问题并排改上下排列 */
    .grid-2 {
        grid-template-columns: 1fr !important;
    }
}

/* ===== 隐藏面包屑导航（备用方案，防止出现“首页 > 邦尊400电话”） ===== */
.rank-math-breadcrumb, .yoast-breadcrumb, .breadcrumbs, .woocommerce-breadcrumb {
    display: none !important;
}
/* ===== 底部热门城市分站导航 ===== */
.city-links-wrapper {
    background: #fafafa;
    border-top: 1px solid #eee;
    padding: 25px 0;
}
.city-links-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.city-links-header .active-tab {
    color: #0066CC;
    font-weight: 600;
    font-size: 16px;
    position: relative;
}
/* 标题下方的小红线 */
.city-links-header .active-tab::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: #FF6600;
    position: absolute;
    bottom: -12px;
    left: 0;
}
.city-links-header .more-cities {
    color: #999;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}
.city-links-header .more-cities:hover {
    color: #0066CC;
}
.city-lists {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 25px; /* 上下间距12px，左右间距25px */
}
.city-lists a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.city-lists a:hover {
    color: #0066CC;
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
    .city-lists {
        gap: 10px 15px;
    }
    .city-lists a {
        font-size: 13px;
    }
}
/* ===== 底部 Tabs 导航 ===== */
.bottom-tabs-wrapper {
    background: #fafafa;
    border-top: 1px solid #eee;
    padding: 25px 0;
}
.tabs-nav {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tab-title {
    color: #666;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    margin-right: 35px;
    position: relative;
    padding-bottom: 10px;
    transition: color 0.3s;
}
.tab-title:hover {
    color: #0066CC;
}
.tab-title.active {
    color: #0066CC;
    font-weight: 600;
}
/* 标题下方的小红条 */
.tab-title.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: #FF6600;
    position: absolute;
    bottom: -12px;
    left: 0;
}
.more-cities {
    color: #999;
    font-size: 14px;
    text-decoration: none;
    margin-left: auto;
    transition: color 0.3s;
}
.more-cities:hover {
    color: #0066CC;
}
.city-lists {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 25px;
}
.city-lists a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.city-lists a:hover {
    color: #0066CC;
}
/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
    .tabs-nav {
        border-bottom: none;
        gap: 15px;
    }
    .tab-title {
        margin-right: 15px;
        font-size: 15px;
    }
    .more-cities {
        margin-left: 0;
        width: 100%;
        text-align: right;
        margin-top: 5px;
    }
    .city-lists {
        gap: 10px 15px;
    }
    .city-lists a {
        font-size: 13px;
    }
}
/* ===== 终极强制：横幅全屏拉伸 ===== */
.hero-section {
    width: 100vw !important;
    max-width: 100% !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    border-radius: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    display: block !important;
}
/* ===== 右侧悬浮客服面板（邦尊专属白底蓝橙版） ===== */
#floating-sidebar-wrapper {
    position: fixed;
    right: 20px;
    top: 140px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#floating-sidebar {
    width: 220px;
    background: #ffffff; /* ★★★ 纯白底色 ★★★ */
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08); /* 柔和灰阴影 */
    overflow: visible;
    padding-bottom: 15px;
    display: block;
}

/* 顶部：头像 + 关闭按钮 */
.sidebar-header {
    position: relative;
    display: flex;
    justify-content: flex-end;
    padding: 10px 10px 0;
    height: 55px;
}
.sidebar-avatar {
    position: absolute;
    top: -35px; /* 头像继续半突出 */
    left: 50%;
    transform: translateX(-50%);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #ffffff; /* 头像底部白圈 */
    padding: 3px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.sidebar-close {
    background: #f0f2f5;
    color: #666;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 5px;
}
.sidebar-close:hover {
    background: #e0e0e0;
}

/* ★★★ 核心按钮（400选号橙，客服中心蓝） ★★★ */
.sidebar-btns {
    margin-top: 15px; 
    padding: 0 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn-400, .btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    padding: 12px 0;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.3s, transform 0.2s;
}
.btn-400 {
    background: #FF6600; /* 选号按钮用官方橙色 */
}
.btn-400:hover {
    background: #e55b00;
    transform: scale(1.02);
}
.btn-contact {
    background: #0066CC; /* 客服按钮用官方邦尊蓝 */
}
.btn-contact:hover {
    background: #004d99;
    transform: scale(1.02);
}

/* 联系信息区 */
.sidebar-contacts {
    background: #f8faff;
    padding: 10px 15px 15px;
    border-top: 1px solid #f0f4f8;
    border-bottom: 1px solid #f0f4f8;
}
.contact-line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: #555;
    font-size: 13px;
}
.contact-val {
    color: #0066CC; /* 数值统一用官方蓝 */
    font-weight: 500;
}

/* ★★★ 二维码放大区（带白色小三角） ★★★ */
.sidebar-qr-section {
    padding: 10px 15px 0;
    text-align: center;
}
.qr-title {
    color: #0066CC;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.qr-box-wrapper {
    background: #f0f7ff; /* 浅蓝色背景 */
    border-radius: 8px;
    padding: 12px 10px;
    position: relative;
}
/* 顶部连接小三角 */
.qr-box-wrapper::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #f0f7ff;
}
.qr-box {
    display: inline-block;
    background: #fff;
    border-radius: 6px;
    padding: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.qr-box img {
    width: 120px;
    height: 120px;
    display: block;
}
.qr-text {
    color: #0066CC;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

/* 重新展开按钮 */
#floating-open-btn {
    display: none;
    position: fixed;
    right: 20px;
    top: 140px;
    width: 44px;
    height: 44px;
    background: #0066CC; /* 主色蓝 */
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    cursor: pointer;
    z-index: 9998;
    transition: transform 0.3s;
}
#floating-open-btn:hover {
    transform: scale(1.05);
}

/* 手机端隐藏 */
@media (max-width: 768px) {
    #floating-sidebar-wrapper, #floating-open-btn {
        display: none !important;
    }
}
/* ===== 新闻列表页分类标签样式 ===== */
.news-cat-tag {
    display: inline-block;
    background: #eef4ff;
    color: #0066CC;
    padding: 1px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 5px;
    transition: all 0.3s;
}
.news-cat-tag:hover {
    background: #0066CC;
    color: #fff;
}
/* ===== 新闻分类胶囊标签 ===== */
.news-cat-tag {
    display: inline-block;
    background: #eef4ff;     /* 浅蓝色背景 */
    color: #0066CC;          /* 邦尊蓝字 */
    padding: 2px 12px;
    border-radius: 12px;     /* 胶囊圆角 */
    font-size: 12px;
    transition: all 0.3s;
}
.news-cat-tag:hover {
    background: #0066CC;
    color: #fff;             /* 悬停变为蓝底白字 */
}
/* ===== 头部 LOGO 旁的切换城市按钮（轻量级细长版） ===== */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px; /* 间距稍微收紧一点 */
}
.city-switch-link {
    font-size: 11px; /* 字体更小 */
    color: #888;     /* 颜色变灰，不要那么显眼 */
    border: 1px solid #eee; /* 边框也变浅 */
    background: transparent; /* 去掉白色背景 */
    padding: 2px 10px; /* 内边距变小，整体变“瘦” */
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}
.city-switch-link:hover {
    background: #0066CC;
    color: #fff;
    border-color: #0066CC;
}

/* 手机端依然隐藏 */
@media (max-width: 767px) {
    .city-switch-link {
        display: none;
    }
}
/* ===== 修复编辑器内的图片居中样式 ===== */
.aligncenter,
.wp-block-image.aligncenter {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* 针对古腾堡区块编辑器强制居中 */
.wp-block-image {
    text-align: center;
}