/* 全局重置：清除默认内外边距，统一盒模型计算方式 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* 页面主体：全局字体、背景色、文字基础颜色 */
body {
font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
background: #f5f5f5;
color: #222;
}
/* a 标签：取消下划线，继承父级文字颜色 */
a {
text-decoration: none;
color: inherit;
}
/* 顶部吸顶导航栏：默认白色，滚动切换样式，sticky 实现吸顶，z-index 防止被下层遮挡，transition 开启过渡动画 */
.top-sticky-bar {
background: #ffffff;
border-bottom: 1px solid #eee;
height: 42px;
position: sticky;
top: 0;
z-index: 999;
transition: 0.3s;
}
/* 滚动吸顶激活样式：背景改为浅灰色，增加柔和阴影增强层次感 */
.top-sticky-bar.sticky {
background: #f6f6f6;
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
/* 导航内部容器：限制最大宽度，居中，弹性布局垂直居中、左右分布 */
.top-sticky-inner{
max-width:1240px;
margin:0 auto;
display:flex;
align-items:center;
justify-content:space-between;
height:100%;
padding:0 20px;
}
/* 导航左侧链接组：弹性横向排列，间距、字号、文字灰色 */
.top-left {
display: flex;
gap: 16px;
font-size: 12px;
color: #666;
}
/* 左侧链接悬浮：变红 */
.top-left a:hover {
color: #e60012;
}
/* 导航右侧区域：弹性布局，垂直居中，设置间距 */
.top-right {
display: flex;
align-items: center;
gap: 14px;
font-size: 12px;
color: #666;
}
/* 右侧链接悬浮：变红 */
.top-right a:hover {
color: #e60012;
}
/* 顶部发布按钮：红色背景、白色文字、圆角 */
.btn-publish-top {
background: #e60012;
color: #fff !important;
padding: 3px 10px;
border-radius: 4px;
}
/* ========== 搜索横幅区域【原版：首页 + 临汾运城分站，无后缀class】 ========== */
/* 红色横幅外层容器 */
.hero-search-wrap {
background: linear-gradient(90deg,#e60012,#ff2b2b);
padding: 36px 20px;
}
/* 内容限定容器，控制最大宽度、页面居中 */
.hero-inner{
max-width:1240px;
margin:0 auto;
}
/* 横幅标题样式，居中 */
.hero-title {
font-size: 24px;
color: #fff;
font-weight: bold;
margin-bottom: 20px;
text-align: center;
}
/* 搜索行：flex 横向排列，垂直居中，【整行居中】 */
.search-row {
display: flex;
align-items: center;
gap: 10px;
justify-content: center;
}
/* 城市按钮组容器，临汾 + 运城并排 */
.city-btn-group {
display: flex;
gap: 10px;
}
/* 下拉定位父容器，给下拉弹窗做绝对定位基准 */
.city-fold-wrap {
position: relative;
}
/* 城市下拉按钮样式 */
.city-fold-btn {
height: 44px;
padding: 0 18px;
background: #fff;
border-radius: 8px;
display: flex;
align-items: center;
gap: 6px;
font-size: 15px;
font-weight: 500;
color: #333;
cursor: pointer;
white-space: nowrap;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
transition: all 0.2s ease;
}
/* 搜索框整体盒子：输入框 + 搜索按钮组合 */
.search-input-box{
display:flex;
flex:1;
max-width: 560px;
height:42px;
background:#fff;
border-radius:6px;
overflow:hidden;
}
/* 搜索输入框 */
.search-input-box input{
flex:1;
border:none;
outline:none;
padding:0 16px;
font-size:14px;
}
/* 搜索按钮 */
.search-input-box button{
width:90px;
background:#e60012;
color:#fff;
border:none;
font-size:14px;
font-weight:bold;
cursor:pointer;
}
/* 搜索按钮 hover 加深红色 */
.search-input-box button:hover{
background:#c70010;
}
/* 城市按钮 hover 效果 */
.city-fold-btn:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* 城市按钮内选中城市文字：红色突出 */
.city-fold-btn strong {
color: #e60012;
font-weight: bold;
}
/* 下拉弹窗：默认隐藏，绝对定位，白色背景、圆角、阴影、高层级，横向布局 */
.city-dropdown {
display: none;
position: absolute;
top: 54px;
left: 0;
width: 520px;
background: #fff;
border-radius: 12px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
padding: 20px;
text-align: left;
z-index: 998;
border: 1px solid #f0f0f0;
}
/* 弹窗打开类：控制显示 */
.city-dropdown.open {
display: block;
}
/* 弹窗分组标题：小号灰色文字 */
.city-group-title {
font-size: 14px;
color: #999;
margin-bottom: 12px;
font-weight: 500;
}
/* 区县列表：弹性横向排列，自动换行 */
.city-item-list{
display: flex;
flex-wrap: wrap;
gap: 12px;
}
/* 单个区县标签：浅灰底色、圆角、字体居中 */
.city-item{
padding: 7px 14px;
background: #f5f5f5;
border-radius: 6px;
font-size: 14px;
color: #333;
cursor: pointer;
text-align: center;
transition: all 0.2s ease;
}
/* 区县标签悬浮：变红、白字 */
.city-item:hover{
background:#e60012;
color:#fff;
}
/* 搜索按钮 */
.search-btn{
width:90px;
background:#e60012;
color:#fff;
border:none;
font-size:14px;
font-weight:bold;
cursor:pointer;
}
/* 搜索按钮悬浮：加深红色 */
.search-btn:hover{
background:#c70010;
}
/* 主体容器：限制最大宽度，居中，网格布局【主内容 + 侧边栏】，设置间距 */
.container{
max-width:1240px;
margin:20px auto;
padding:0 20px;
display:grid;
grid-template-columns:1fr 300px;
gap:18px;
}
/* 内容卡片：白底、圆角、内边距 */
.main-card{
background:#fff;
border-radius:10px;
padding:18px;
}
/* 卡片内两栏布局：网格等分两列 */
.main-two-col{
display:grid;
grid-template-columns: 1fr 1fr;
gap:20px;
}
/* 栏目标题：字号、下边距、底部分隔线 */
.col-block h3{
font-size:16px;
margin-bottom:12px;
padding-bottom:8px;
border-bottom:1px solid #eee;
}
/* 信息条目：文字大小、上下内边距、文字颜色 */
.info-item{
font-size:14px;
padding:8px 0;
color:#333;
}
/* 侧边栏卡片：白底圆角内边距 */
.side-card{
background:#fff;
border-radius:10px;
padding:18px;
}
/* 侧边栏标题：字号、下边距、底部分隔线 */
.side-card h3{
font-size:16px;
margin-bottom:12px;
padding-bottom:8px;
border-bottom:1px solid #eee;
}
/* ===== 老区县页面主体内容样式（只保留内容卡片，下拉样式全部统一为上面的横排版本） ===== */
.wrap {max-width:1100px;margin:30px auto;padding:0 20px;}
.back-box {margin-bottom:20px;}
.back-box a {color:#2563eb;text-decoration:none;}
.info-list {background:#fff;border-radius:12px;padding:20px;box-shadow:0 2px 10px rgba(0,0,0,0.07);}
.info-item {padding:14px 0;border-bottom:1px solid #eee;}
.info-item:last-child {border-bottom:none;}
.info-item a {color:#333;text-decoration:none;font-size:15px;}
.info-item a:hover {color:#2563eb;}
.empty-tip {text-align:center;padding:30px;color:#999;}
.city-select {margin-bottom:20px;}

/* 便民信息列表表头 + 行布局 */
.info-list .info-header-row {
display:flex;
gap:30px;
padding:10px 12px;
font-weight:bold;
border-bottom:2px solid #eee;
background:#f7f7f7;
border-radius:6px 6px 0 0;
}
.info-list .info-item {
display:flex;
gap:30px;
padding:12px;
border-bottom:1px solid #eee;
align-items:center;
}
.info-col-title {
flex:1;
min-width:240px;
}
.info-col-valid {
width:100px;
font-size:14px;
color:#666;
}
.info-col-time {
width:100px;
font-size:14px;
color:#666;
}
.info-col-action {
width:120px;
}
.info-col-action a {
color:#e53935;
margin-right:12px;
}
.info-col-action a:last-child {
margin-right:0;
}
.empty-tip {
padding:30px 12px;
color:#999;
}

/* ========== 【区县横幅 -detail 独立样式，区县页面专用】 ========== */
.hero-search-wrap-detail {
background: #e60012;
padding: 36px 20px;
}
.hero-inner-detail{
max-width:1240px;
margin:0 auto;
}
.hero-title-detail {
font-size: 24px;
color: #fff;
font-weight: bold;
margin-bottom: 20px;
text-align: center;
}
.search-row-detail {
display: flex;
align-items: center;
gap: 10px;
justify-content: center;
}
.city-fold-wrap-detail {
position: relative;
}
.city-fold-btn-detail {
height: 44px;
padding: 0 18px;
background: #fff;
border-radius: 8px;
display: flex;
align-items: center;
gap: 6px;
font-size: 15px;
font-weight: 500;
color: #333;
cursor: pointer;
white-space: nowrap;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
transition: all 0.2s ease;
}
.city-fold-btn-detail strong {
color: #e60012;
font-weight: bold;
}
.city-fold-btn-detail:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.search-input-box-detail{
display:flex;
flex:1;
max-width: 560px;
height:42px;
background:#fff;
border-radius:6px;
overflow:hidden;
}
.search-input-detail {
flex:1;
border:none;
outline:none;
padding:0 16px;
font-size:14px;
}
.search-btn-detail {
width:90px;
background:#e60012;
color:#fff;
border:none;
font-size:14px;
font-weight:bold;
cursor:pointer;
}
.search-btn-detail:hover {
background:#c70010;
}
.city-dropdown-detail {
display: none;
position: absolute;
top: 54px;
left: 0;
width: 520px;
background: #fff;
border-radius: 12px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
padding: 20px;
text-align: left;
z-index: 998;
border: 1px solid #f0f0f0;
}
.city-dropdown-detail.open {
display: block;
}
.city-group-title-detail {
font-size: 14px;
color: #999;
margin-bottom: 12px;
font-weight: 500;
}
.city-item-list-detail {
display: flex;
flex-wrap: wrap;
gap: 12px;
}
.city-item-detail {
padding: 7px 14px;
background: #f5f5f5;
border-radius: 6px;
font-size: 14px;
color: #333;
cursor: pointer;
text-align: center;
transition: all 0.2s ease;
}
.city-item-detail:hover {
background:#e60012;
color:#fff;
}

/* ========== 移动端适配 ========== */
@media(max-width:768px){
.top-sticky-inner{
height:auto;
flex-wrap:wrap;
padding:8px 16px;
gap:6px;
}
.hero-title{font-size:20px;}
.hero-title-detail{font-size:20px;}
.search-row{flex-wrap:wrap; justify-content:center;}
.search-row-detail{flex-wrap:wrap; justify-content:center;}
.search-input-box{width:100%;max-width:100%;}
.search-input-box-detail{width:100%;max-width:100%;}
.container{grid-template-columns:1fr;}
.main-two-col{grid-template-columns:1fr;}
.city-dropdown {
width: calc(100vw - 40px);
}
.city-dropdown-detail {
width: calc(100vw - 40px);
}
}