/* ========== 搜索区域居中样式 ========== */
.yzm_main.container {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中（如果需要） */
    padding: 30px 15px;
}

.search-form {
    display: inline-flex; /* 使用 flex 让元素同行排列 */
    align-items: center;
    gap: 12px; /* 控制按钮之间的间距，美观合适 */
    flex-wrap: wrap; /* 小屏幕时换行 */
}

/* 搜索输入框 */
.yzm_search_input {
    width: 320px;
    max-width: 100%;
    height: 44px;
    padding: 0 16px;
    font-size: 15px;
    color: #333;
    border: 2px solid #1a73e8;
    border-radius: 8px 0 0 8px;
    outline: none;
    transition: border-color 0.3s ease;
}

.yzm_search_input:focus {
    border-color: #0d62c9;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

/* 搜索按钮 */
.yzm_search_button {
    height: 44px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    background-color: #1a73e8;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.yzm_search_button:hover {
    background-color: #0d62c9;
}

/* 需求按钮 */
.yzm_release {
    display: inline-block;
    height: 44px;
    line-height: 44px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    background-color: #e91e63;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.yzm_release:hover {
    background-color: #c2185b;
}
/* ========== 响应式：小屏幕适配 ========== */
@media (max-width: 480px) {
    .search-form {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .yzm_search_input,
    .yzm_search_button,
    .yzm_release {
        width: 100%;
        max-width: 320px;
        border-radius: 8px !important;
        margin: 0;
    }

    .yzm_search_input {
        border-radius: 8px;
    }
}








/* 容器整体居中，限制最大宽度 */
.yzm_main.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* 置顶与最新并排容器 */
.top-and-latest-row {
    display: flex;
    gap: 20px; /* 两列之间的间距 */
    justify-content: space-between;
    flex-wrap: wrap; /* 小屏幕时换行 */
    border-bottom: 2px
}

/*置顶区域*/



/* 控制整个信息区的文字大小 */
.yzm_list_info {
    font-size: 14px; /* 基准字体大小，可全局调整 */
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px; /* 各信息项之间的间距 */
    flex-wrap: wrap; /* 小屏幕下自动换行 */
    padding: 8px 0;
}

/* 图标垂直居中 */
.yzm_list_info img {
    vertical-align: middle;
}

/* 时间、价格、电话等字段统一控制 */
.yzm_time {
    font-size: 8px;
    color: #555;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* 特别：电话字段文字加粗，红色，可稍大 */
.yzm_phone[style*="color: red"] {
    font-size: 10px;
    font-weight: bold;
    color: red !important;
}

/* 浏览数区域 */
.yzm_browse {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
}

.yzm_browse img {
    width: 14px;
    height: 14px;
}
/* 每列样式：各占一半，有间距 */
.column {
    flex: 1;
    min-width: 400px; /* 最小宽度，防止太窄 */
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    box-sizing: border-box;
}

/* 减小头像大小 */
.user-avatar {
    width: 60px; /* 调整为合适的宽度 */
    height: 60px; /* 调整为合适的高度 */
}

/* 减小字体大小 */
.ziti {
    font-size: 18px; /* 调整为合适的字体大小 */
}

/* 减小置顶用户昵称字体大小 */
.zitiq {
    font-size: 14px; /* 调整为合适的字体大小 */
}
/* 控制最新用户昵称字体大小 */
.zitiqq {
    font-size: 18px; /* 调整为合适的字体大小 */
}

/* 标题样式 */
.column strong {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    display: block;
    text-align: center;
    font-weight: bold;
}

/* 列表样式统一 */
.yzm_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yzm_list li {
    border-bottom: 1px dashed #eee;
    padding: 12px 0;
}

.yzm_list li:last-child {
    border-bottom: none;
}

/* 响应式：小屏幕下变为上下排列 */
@media (max-width: 768px) {
    .top-and-latest-row {
        flex-direction: column;
        gap: 15px;
    }
    .column {
        min-width: 100%;
    }
}
/* 城市导航整体容器 */
.city-nav-container {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    padding: 20px;
    margin: 2px auto;
    max-width: 941px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 每个省份或分类块 */
.province {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

/* 主城市或顶级分类 */
.province .main-city {
    display: block;
    font-size: 16px;
    color: #d42126;
    font-weight: bold;
    margin-bottom: 10px;
}

/* 子类别项 */
.custom-nav-item {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 5px;
}

/* 链接样式 */
.custom-nav-item a {
    text-decoration: none;
    color: #007bff;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

/* 鼠标悬停效果 */
.custom-nav-item a:hover {
    background-color: #f0f7ff;
    color: #0056b3;
}
.cityre {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #F00;
    margin-bottom: 15px;
}

.cityre::before,
.cityre::after {
    content: "★";
    color: #F00;
    margin: 0 10px;
}
           
/* 新闻卡片整体容器 */
.news-card-box {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    max-width: 941px;
    margin: 2px auto;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
}

/* 头部标题 */
.news-header {
    background: #f8f9fa;
    padding: 1px 8px;
    border-bottom: 1px solid #e0e0e0;
}

.news-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

/* 新闻列表 */
.news-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px; /* 项目间距 */
}

/* 每条新闻 */
.news-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

/* 缩略图 */
.news-thumb {
    flex: 0 0 100px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 内容区 */
.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 标题 */
.news-title {
    margin: 0 0 6px 0;
}

.news-title a {
    font-size: 16px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
}

.news-title a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* 摘要 */
.news-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 元信息：点击量、时间 */
.news-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    gap: 15px;
}

.news-meta .news-views,
.news-meta .news-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 响应式优化（PC端为主，小屏也美观） */
@media (max-width: 768px) {
    .news-card-box {
        margin: 15px;
        border-radius: 8px;
    }
    .news-header,
    .news-list {
        padding: 15px;
    }
    .news-item {
        gap: 12px;
    }
    .news-thumb {
        flex: 0 0 80px;
        height: 60px;
    }
    .news-title a {
        font-size: 15px;
    }
}
/* 页脚整体样式 */

.yzm_footer {
    background-color: #f8f8f8;
    padding: 15px 0;
    font-size: 14px;
    color: #555;
    border-top: 1px solid #eaeaea;
}


.container {
    width: 90%;
    max-width: 1170px;
    margin: 0 auto;
    position: relative;
}

/* Flex 布局：确保同行 + 居中对齐 */
.footer-row {
    display: flex;
    align-items: center;          /* 垂直居中 */
    min-height: 40px;             /* 保证最小高度，防止压缩 */
}

/* 左侧链接：靠左 */
.footer-links {
    flex: 0 0 auto;               /* 不伸缩，只占所需空间 */
    white-space: nowrap;          /* 防止链接换行 */
}

/* 关键：使用绝对定位让中间内容真正居中 */
.footer-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: auto;
    max-width: 60%;              /* 防止文本过长溢出 */
    font-size: 14px;
    color: #555;
    white-space: nowrap;         /* 默认不换行 */
}

/* 友情链接样式 */
.footer-link {
    color: #333;
    text-decoration: none;
    margin-right: 12px;
    font-size: 14px;
}

.footer-link:hover {
    color: #007bff;
    text-decoration: underline;
}

/* 响应式：小屏幕适配 */
@media (max-width: 768px) {
    .footer-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        text-align: center;
    }

    /* 取消绝对定位，改为堆叠布局 */
    .footer-center {
        position: static;
        transform: none;
        left: auto;
        top: auto;
        margin: 0 auto;
        white-space: normal;
        max-width: 100%;
        order: 1; /* 居中内容在上 */
    }

    .footer-links {
        order: 2;
        white-space: normal;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }

    .footer-link {
        margin-right: 8px;
        margin-bottom: 4px;
    }
}
/* ========== 回顶部按钮 ========== */
.scrolltop {
    position: fixed;
    bottom: 30px;
    right: 30px;
}
.scrolltop a {
    display: block;
    background: #1a73e8;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}
.scrolltop a:hover {
    background: #0d62c9;
}

/* ========== 响应式适配 ========== */
@media (max-width: 768px) {
    .container { width: 95%; }
    .yzm_nav_children,
    .yzm_release { flex-direction: column; text-align: center; margin-bottom: 10px; }
    .yzm_search_input, .yzm_search_button { width: 100%; margin-bottom: 5px; }
    .yzm_lately dd, .yzm_link li { flex: 1 1 45%; }
    .yzm_nav_right { flex-wrap: wrap; }
    .yzm_nav_right a, .yzm_sign_in_dropdown {
        margin: 5px 5px;
    }
}
