/*公共变量*/
:root {
  --primary-color: red;    /* 主色 */
}

/* 分页容器：使用flex实现横向排列并居中 */
.pagination {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center;     /* 垂直居中 */
    list-style: none;        /* 移除默认的项目符号 */
    padding: 0;
    margin: 20px 0;
}

/* 每个分页项 */
.pagination li {
    margin: 0 3px; /* 每个页码之间的间距 */
}

.pagination li a, .pagination li span {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    margin: 0 2px;
    background: #fff;
    color: #333;
    text-decoration: none;
}
.pagination li.active span {
    background: var(--primary-color);
    color: #fff;
    border-color:var(--primary-color);
}

/* 分页项中的链接或文字 */
.pagination li a,
.pagination li span {
    display: block;          /* 便于设置内边距和尺寸 */
    padding: 6px 12px;
    color: var(--primary-color);
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

/* 鼠标悬停效果 */
.pagination li a:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* 当前页 (active) 的高亮样式 */
.pagination li.active span {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 上一页/下一页 的禁用状态 (可选) */
.pagination li.disabled span {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}






 /* 容器：固定在右侧中间 */
    .ycfix {
        position: fixed;
        right: 15px;          /* 距右侧距离，可调 */
        top: 65%;
        transform: translateY(-50%);
        z-index: 999;
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;            /* 按钮间距 */
    }

    /* 所有按钮统一尺寸、圆形 */
    .yctb {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        background: #fff;      /* 咨询按钮默认白色背景，可自行覆盖 */
    }

    /* 咨询按钮内的图片（若需要） */
    .yctb img {
        border-radius: 50%;
        object-fit: cover;
    }

    /* 返回顶部按钮：蓝色背景，白色箭头 */
    .backtop-btn {
        background-color: var(--primary-color);   /* 蓝色，可替换为 #1e90ff, #0d6efd 等 */
        color: #fff;
        font-size: 28px;
        font-weight: bold;
        border: none;
    }
    .backtop-btn:hover {
        background-color: var(--primary-color);   /* 悬停加深 */
        transform: scale(1.05);
    }

    /* 箭头符号居中 */
    .arrow-up {
        line-height: 1;
        display: block;
        margin-top: -2px;   /* 微调视觉居中（因字符本身有偏移） */
    }
    
    
    
    
    
    
    /* 城市切换样式 */
    .city-picker-wrapper {
    position: fixed;
    right: 15px;
    z-index: 14;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.city-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    line-height: 32px;
    transition: all 0.25s;
    flex-shrink: 0;
    box-shadow: -2px 2px 12px rgba(0,0,0,.18);
    position: relative;
}
.city-toggle-btn:hover { background: var(--primary-color); }
.city-toggle-btn .city-btn-text {
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
}
.city-panel {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    min-width: 160px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,0,0,.12);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform-origin: 100% 50%;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
}
.city-panel.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
}
.city-list-wrap {
    flex: 1;
    overflow-y: auto;
    max-height: 390px;
}
.city-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}
.city-list::-webkit-scrollbar { width: 4px; }
.city-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
.city-list-wrap::-webkit-scrollbar { width: 4px; }
.city-list-wrap::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
.city-group-label {
    padding: 2px 10px;
    font-size: 10px;
    color: #999;
    font-weight: bold;
    background: #f9f9f9;
    line-height: 1.5;
}
.city-list li a {
    display: block;
    padding: 5px 10px;
    font-size: 11px;
    color: #555;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.city-list li a:hover {
    background: #f5f5f5;
    color: #1a1a2e;
}
.city-index-bar {
    width: 22px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4px 0;
    border-left: 1px solid #eee;
    background: #fafafa;
}
.city-index-bar span {
    font-size: 12px;
    color: #888;
    cursor: pointer;
    padding: 1px 0;
    line-height: 1.3;
    user-select: none;
}
.city-index-bar span:hover {
    color: #1a1a2e;
    font-weight: bold;
}
@media (max-width:1000px) {
    .city-toggle-btn { width: 70px; height: 70px; line-height: 42px; }
    .city-toggle-btn .city-btn-text { font-size: 13px; right:15px}
}
@media (max-width:640px) {
    .city-toggle-btn { width: 50px; height: 50px; line-height: 24px; }
    .city-toggle-btn .city-btn-text { font-size: 12px; right:2.5%}
}

/* 移动端（≤640px）改为居中 */
@media (max-width: 640px) {
    .action-group {
        justify-content: center;
    }
}

/* 移动端：将导航改为fixed并控制隐藏 */
@media (max-width: 768px) {
  /* 选择原导航，用更具体的类或id */
  nav.bg-white.nav-shadow.sticky.top-0 {
    position: fixed !important; /* 覆盖sticky */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.35s ease;
    transform: translateY(0);
  }
  nav.bg-white.nav-shadow.sticky.top-0.hidden-nav {
    transform: translateY(-100%);
  }
}