/* =========================================================
   邦尊400电话 - 全局主样式表 (恢复原版头部 + 全站优化版)
   ========================================================= */

/* ===== 1. 基础重置与全局排版 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #444;
    line-height: 1.8;
    background: #f9f9f9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol { list-style: none; }
img { max-width: 100%; height: auto; }

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

.container section {
    padding-top: 60px;
    padding-bottom: 60px;
}

h1, h2, h3, h4 {
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.breadcrumbs-nav { display: block !important; }

/* ===== 2. 卡片与按钮通用质感 (保留优化) ===== */
.product-card, .case-card, .number-card, .faq-item, .benefit-card {
    background: #ffffff;
    border: 1px solid #f0f4f8;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important; 
    overflow: hidden;
}

.product-card:hover, .case-card:hover, .number-card:hover, .benefit-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.08) !important;
    border-color: #bfd8f9 !important;
}

/* 渐变按钮 */
.btn-orange, .btn-apply, .nav-phone, .card-btn {
    background: linear-gradient(135deg, #FF8C00 0%, #FF5E00 100%) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.2) !important;
    color: #fff !important;
    transition: all 0.3s ease !important;
    border-radius: 30px;
}
.btn-orange:hover, .btn-apply:hover, .card-btn:hover {
    background: linear-gradient(135deg, #FF5E00 0%, #E64A00 100%) !important;
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4) !important;
    transform: translateY(-2px) !important;
}
.btn-blue, .btn-contact, .btn-400 {
    background: linear-gradient(135deg, #3388FF 0%, #0066CC 100%) !important;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2) !important;
    color: #fff !important;
}
.btn-blue:hover, .btn-contact:hover, .btn-400:hover {
    background: linear-gradient(135deg, #0066CC 0%, #004d99 100%) !important;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* ===== 3. 文章正文阅读体验 ===== */
.entry-content h1, .entry-content h2, .entry-content h3 { color: #0066CC; margin: 30px 0 15px; }
.entry-content p, .city-content-wrap p {
    margin-bottom: 20px !important; line-height: 1.9 !important; color: #333 !important; font-size: 16px !important;
}
.entry-content img, .city-content-wrap img { border-radius: 8px; margin: 15px 0; }
.entry-content h2, .city-content-wrap h2 {
    position: relative; padding-left: 15px !important; border-bottom: none !important; margin-top: 40px !important;
    font-size: 22px !important; color: #0066CC !important; font-weight: 700 !important; text-align: left !important;
}
.entry-content h2::before, .city-content-wrap h2::before {
    content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: #FF6600; border-radius: 2px;
}

/* =========================================================
   ★★★ 4. 恢复的头部导航 (原版经典设计) ★★★
   ========================================================= */

/* 顶部快捷通栏 */
.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;
}

/* 主导航 */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #0066CC;
}
.phone-icon svg {
    width: 32px;
    height: 32px;
    fill: #0066CC;
}
.brand-text {
    color: #333;
}

/* 导航菜单 */
.main-nav ul {
    display: flex;
    gap: 30px;
}
.main-nav ul li a {
    font-weight: 500;
    color: #333;
    transition: color 0.3s;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
    color: #0066CC;
}

/* 热线按钮 */
.header-phone {
    background: #FF6600;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s;
}
.header-phone:hover {
    background: #e65c00;
}

/* 切换城市按钮 */
.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;
}

/* 汉堡按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

/* =========================================================
   ★★★ 5. 底部 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; }
.tab-title:hover, .tab-title.active { color: #0066CC; }
.tab-title.active { 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; margin-left: auto; }
.more-cities:hover { color: #0066CC; }
.city-lists { display: flex; flex-wrap: wrap; gap: 12px 25px; }
.city-lists a { color: #666; font-size: 14px; }
.city-lists a:hover { color: #0066CC; }

/* =========================================================
   ★★★ 6. 悬浮侧边栏 (白底蓝橙版) ★★★
   ========================================================= */
#floating-sidebar-wrapper { position: fixed; right: 20px; top: 140px; z-index: 9999; }
#floating-sidebar { width: 220px; background: #ffffff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.08); padding-bottom: 15px; }
.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); }
.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; margin-top: 5px; }
.sidebar-close:hover { background: #e0e0e0; }
.sidebar-btns { margin-top: 15px; padding: 0 15px 10px; display: flex; flex-direction: column; gap: 10px; }
.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; }
.qr-box img { width: 120px; height: 120px; display: block; }
.qr-text { color: #0066CC; font-size: 12px; margin-top: 6px; }
#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; }

/* =========================================================
   ★★★ 7. 响应式统一断点 ★★★
   ========================================================= */
@media (max-width: 1024px) {
    .main-nav ul { gap: 15px; }
    .page-contact .grid-2 { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
    /* 移动端顶栏 */
    .top-bar-inner { flex-direction: column; gap: 5px; text-align: center; }
    .top-bar-right a { margin: 0 8px; }
    
    /* 移动端头部 */
    .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); z-index: 1000; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 15px; }
    .menu-toggle { display: flex !important; }
    .city-switch-link { display: none; }
    
    .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; }

    /* 其他移动端排版 */
    .container section { padding-top: 40px; padding-bottom: 40px; }
    .grid-2 { grid-template-columns: 1fr !important; }
    .products-grid { grid-template-columns: 1fr !important; }
    .product-card { padding: 25px !important; }
    .hero-section h1 { font-size: 26px !important; }
    .hero-section p { font-size: 16px !important; }
    
    .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; }
    
    #floating-sidebar-wrapper, #floating-open-btn { display: none !important; }
}

@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; }
}
/* 针对城市分站正文的排版优化 */
.city-content-wrap h2 { font-size: 24px; color: #0f2b5b; margin: 30px 0 15px; padding-bottom: 10px; border-bottom: 2px solid #f0f4f8; font-weight: 700; }
.city-content-wrap h3 { font-size: 18px; color: #0066CC; font-weight: 600; margin-top: 25px; margin-bottom: 10px; }
.city-content-wrap p { margin-bottom: 18px; line-height: 1.9; color: #444; font-size: 16px; }
/* =========================================================
   正文排版终极美化版（让文章自动具备高级层级感）
   ========================================================= */
.entry-content, .single-news-content, .city-content-wrap {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
    word-break: break-word;
}

/* 段落间距 */
.entry-content p, .single-news-content p, .city-content-wrap p {
    margin-bottom: 20px !important;
}

/* ★★★ 重点：H2 二级标题大美化 ★★★ */
.entry-content h2, .single-news-content h2, .city-content-wrap h2 {
    position: relative;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #0f2b5b !important;
    margin-top: 40px !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    padding-left: 15px !important;
    border-bottom: 1px solid #f0f4f8 !important; /* 底部浅灰分割线 */
    line-height: 1.4;
}

/* H2 左侧的橙色粗竖条 */
.entry-content h2::before, .single-news-content h2::before, .city-content-wrap h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 16px;
    width: 4px;
    background: #FF6600;
    border-radius: 2px;
}

/* H3 三级标题美化 */
.entry-content h3, .single-news-content h3, .city-content-wrap h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
    line-height: 1.5;
}

/* 列表排版 */
.entry-content ul, .single-news-content ul, .city-content-wrap ul {
    padding-left: 20px;
    margin-bottom: 20px;
    list-style-type: disc;
}
.entry-content li, .single-news-content li, .city-content-wrap li {
    margin-bottom: 10px;
}

/* 图片居中与圆角 */
.entry-content img, .single-news-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 25px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 引用/提示框样式 */
.entry-content blockquote, .single-news-content blockquote {
    background: #f8fbff;
    border-left: 4px solid #0066CC;
    padding: 15px 20px;
    margin: 25px 0;
    color: #555;
    border-radius: 0 8px 8px 0;
}