/**
 * 怡竹苑 - 主样式表
 * 创建日期：2025年
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #f5f5f5;
}

/* SVG图标通用样式 */
.icon {
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
}

svg.icon {
    overflow: visible;
}

/* ============ 头部样式 ============ */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    vertical-align: middle;
}

.nav {
    display: flex;
    gap: 30px;
    flex: 1;
}

.nav a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
    color: var(--theme-color, #f39);
}

.search-box {
    flex: 1;
    max-width: 300px;
    display: flex;
    gap: 5px;
}

.search-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-box button {
    padding: 8px 15px;
    background-color: var(--theme-color, #f39);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: var(--theme-color-dark, #e03);
}

.user-menu {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.user-menu a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.user-menu a:hover {
    color: var(--theme-color, #f39);
}

/* ============ 轮播图 ============ */
.carousel-section {
    /* background-color: #b79a76; */
    padding: 16px;
    margin: 10px 0;
}

.carousel {
    max-width: 1200px;
    margin: 0 auto;
    height: 280px;
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    left: 24px;
    bottom: 24px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 12px 18px;
    border-radius: 4px;
    max-width: 60%;
}

.carousel-caption h3 {
    margin: 0;
    font-size: 18px;
}

.carousel-caption p {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.4;
}

.carousel-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicators button.active {
    background-color: #fff;
}

/* ============ 主容器 ============ */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ 城市导航 ============ */
.city-nav {
    background-color: #fff;
    border-radius: 4px;
    padding: 20px;
    margin: 10px 0;
}

.city-nav-title {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    margin-bottom: 15px;
}

.hot-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.hot-cities a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f9f9f9;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.hot-cities a:hover {
    background-color: var(--theme-color, #f39);
    color: white;
}

/* ============ 地区分类 ============ */
.region-list {
    /* PC端默认显示，移动端默认隐藏 */
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

/* 移动端默认隐藏 */
@media (max-width: 768px) {
    .region-list {
        display: none;
    }
}

.region-list.show {
    display: flex;
}

/* 省份链接样式（行形式） */
.region-list .province-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f9f9f9;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid #eee;
    white-space: nowrap;
}

.region-list .province-link:hover {
    background-color: var(--theme-color, #f39);
    color: white;
    border-color: var(--theme-color, #f39);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 兼容旧的地区分类样式（如果还有使用） */
.region-item {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 15px;
}

.region-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.region-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.region-cities a {
    display: inline-block;
    padding: 6px 12px;
    background-color: #fff;
    color: #666;
    text-decoration: none;
    border-radius: 3px;
    font-size: 13px;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.region-cities a:hover {
    color: var(--theme-color, #f39);
    border-color: var(--theme-color, #f39);
}

.expand-btn {
    display: block;
    margin: 0 auto;
    padding: 10px 20px;
    border: 1px solid var(--theme-color, #f39);
    color: var(--theme-color, #f39);
    background-color: transparent;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.expand-btn:hover {
    background-color: var(--theme-color, #f39);
    color: white;
}

/* ============ 信息列表 ============ */
.info-section {
    background-color: #fff;
    border-radius: 4px;
    padding: 20px;
    margin: 10px 0;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

/* index.php热门信息列表 - 固定3列 */
.info-section .info-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

.info-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    min-height: 165px;
}

/* index.php响应式布局 */
@media (max-width: 1200px) {
    .info-section .info-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .info-section .info-list {
        grid-template-columns: 1fr;
    }
}

.info-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.info-card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.info-card .cl {
    display: block;
    overflow: hidden;
}

.info-card .info-content {
    float: left;
    width: 63%;
    padding: 0;
    display: block;
    overflow: hidden;
}

.info-title {
    font-size: 16px;
    font-weight: normal;
    color: #333;
    padding: 16px 8px 8px 16px;
    line-height: 25px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-meta {
    color: #999;
    padding: 0 8px 8px 16px;
    font-size: 14px;
    overflow: hidden;
    line-height: 16px;
}

.info-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    float: left;
    margin-right: 8px;
    white-space: nowrap;
}

.info-meta .icon {
    width: 16px;
    height: 16px;
    fill: #999;
    flex-shrink: 0;
    margin-top: 1px;
}

.info-description {
    font-size: 14px;
    color: #666;
    line-height: 21px;
    height: auto;
    max-height: 43px;
    overflow: hidden;
    padding: 0 8px 0 16px;
}

.info-city {
    font-size: 14px;
    color: var(--theme-color, #f39);
    padding: 8px 8px 16px 16px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.info-city .icon {
    width: 16px;
    height: 16px;
    fill: var(--theme-color, #f39);
    flex-shrink: 0;
}

.info-card .info-image {
    float: right;
    width: 99px;
    height: 132px;
    object-fit: cover;
    margin-top: 16px;
    margin-left: 18px;
    margin-right: 0;
    margin-bottom: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
    transition: opacity 0.3s ease-in;
    opacity: 0.7;
}

.info-card .info-image.loaded {
    opacity: 1;
}

/* 懒加载图片样式优化 */
.info-card .info-image.lazy-image {
    background-color: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

.info-card .info-image.lazy-image.loaded {
    background: none;
    animation: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============ 筛选器样式 ============ */
.province-filter,
.city-filter {
    background: #fff;
    padding: 16px;
    margin-bottom: 10px;
    border-radius: 3px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.filter-title {
    font-size: 14px;
    font-weight: bold;
    padding: 4px 0;
    width: 80px;
    height: 24px;
    flex-shrink: 0;
    color: #333;
}

.filter-options {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0;
    padding-left: 10px;
    width: 98%;
    max-width: 1068px;
    overflow: hidden;
}

.filter-options.collapsed {
    display: none !important;
}

.filter-options a {
    color: #444;
    text-decoration: none;
    font-size: 14px;
    padding: 2px 8px;
    border-radius: 3px;
    transition: all 0.3s;
    white-space: nowrap;
    width: 120px;
    height: 27px;
    line-height: 23px;
    display: block;
}

.filter-options a:hover {
    background-color: #f5f5f5;
    color: var(--theme-color, #f39);
}

.filter-options a.active {
    color: var(--theme-color, #f39);
    font-weight: bold;
}

.filter-toggle {
    background: none;
    border: none;
    color: var(--theme-color, #f39);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.3s;
    white-space: nowrap;
    border: 1px solid var(--theme-color, #f39);
}

.filter-toggle:hover {
    background-color: var(--theme-color, #f39);
    color: #fff;
}

/* 城市筛选器特殊样式 */
.city-filter .filter-options {
    grid-template-columns: repeat(6, 1fr);
    max-width: 988px;
}

.city-filter .filter-options a {
    width: 160px;
}

/* ============ 排序标签样式 ============ */
.sort-section {
    background: #fff;
    margin-bottom: 10px;
    border-radius: 4px;
}

.sort-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 50px;
    justify-content: flex-start;
}

.sort-tabs li {
    margin-right: 20px;
}

.sort-tabs li:last-child {
    margin-right: 0;
    margin-left: 0;
}



.sort-tabs a {
    display: block;
    padding: 0 13px;
    line-height: 50px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.sort-tabs a:hover {
    color: var(--theme-color, #f39);
}

.sort-tabs a.active {
    color: var(--theme-color, #f39);
    border-bottom: 2px solid var(--theme-color, #f39);
    font-weight: bold;
}

.sort-mode a {
    color: var(--theme-color, #f39);
}

/* ============ 大图卡片样式 ============ */
.info-card-large {
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
    transition: all 0.3s;
    width: 265px;
    height: 445px;
    margin: 0 auto;
}

.info-card-large:hover {
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.info-card-large a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* 大图模式下的cl容器不使用浮动 */
.info-card-large .cl {
    display: block;
    width: 100%;
    height: 100%;
}

/* 大图模式下隐藏description */
.info-card-large .card-description.small-mode-only {
    display: none;
}

.card-image {
    display: block;
    width: 265px;
    height: 350px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}

.card-image img:hover {
    transform: scale(1.03);
}

.card-content {
    padding: 0;
    height: 95px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    display: block;
    height: 31px;
    /* line-height: 31px; */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 10px 0 0 15px;
    font-size: 14px;
    color: #333;
    font-weight: normal;
}

.card-location {
    display: block;
    height: 20px;
    line-height: 20px;
    padding: 2px 0 0 15px;
    color: var(--theme-color, #f39);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-location .icon {
    width: 1.2em;
    height: 1.2em;
    vertical-align: -0.18em;
    fill: var(--theme-color, #f39);
    margin-right: 3px;
}

.card-meta {
    padding: 0 15px 5px 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.card-meta .icon {
    width: 12px;
    height: 12px;
    fill: #999;
    flex-shrink: 0;
}

.card-description {
    font-size: 14px;
    color: #666;
    padding: 0 15px 8px 15px;
    line-height: 20px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
}

.card-location {
    color: var(--theme-color, #f39);
    padding: 0 15px 15px 15px;
    font-size: 14px;
    display: block;
}

.card-location .icon {
    width: 14px;
    height: 14px;
    fill: var(--theme-color, #f39);
    vertical-align: -2px;
    margin-right: 3px;
}

/* ============ info.php页面大图模式下的信息列表 ============ */
.info-section .info-list.info-list-large:not(.small-mode) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 13px;
    justify-content: flex-start;
}

/* ============ info.php页面小图模式样式 - 复用index.php样式 ============ */
.info-section .info-list.small-mode {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 小图模式卡片完全复用index.php的info-card样式 */
.info-section .info-list.small-mode .info-card-large {
    width: 360px;
    min-height: 165px;
    height: auto;
    margin: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
}

.info-section .info-list.small-mode .info-card-large:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.info-section .info-list.small-mode .info-card-large a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* 小图模式需要cl容器来清除浮动 */
.info-section .info-list.small-mode .info-card-large .cl {
    display: block;
    overflow: hidden;
}

/* 小图模式图片样式 - 右浮动 */
.info-section .info-list.small-mode .card-image {
    float: right;
    width: 99px;
    height: 132px;
    margin-top: 16px;
    margin-left: 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.info-section .info-list.small-mode .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 小图模式内容样式 - 左浮动 */
.info-section .info-list.small-mode .card-content {
    float: left;
    width: 63%;
    padding: 0;
    height: 100%;
}

/* 小图模式标题 */
.info-section .info-list.small-mode .card-title {
    font-size: 16px;
    font-weight: normal;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 小图模式元数据（日期+浏览量） */
.info-section .info-list.small-mode .card-meta {
    color: #999;
    padding: 0 8px 8px 16px;
    font-size: 14px;
    overflow: hidden;
    line-height: 16px;
}

.info-section .info-list.small-mode .card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    float: left;
    margin-right: 8px;
    white-space: nowrap;
}

.info-section .info-list.small-mode .card-meta .icon {
    width: 16px;
    height: 16px;
    fill: #999;
    flex-shrink: 0;
    margin-top: 1px;
}

/* 小图模式显示description */
.info-section .info-list.small-mode .card-description.small-mode-only {
    display: -webkit-box !important;
    font-size: 14px;
    color: #666;
    padding: 0 8px 0 16px;
    line-height: 21px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 43px;
    word-break: break-all;
}

/* 小图模式位置信息（在最底部） */
.info-section .info-list.small-mode .card-location {
    color: var(--theme-color, #f39);
    padding: 8px 8px 16px 16px;
    font-size: 14px;
    line-height: 16px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.info-section .info-list.small-mode .card-location .icon {
    width: 16px;
    height: 16px;
    fill: var(--theme-color, #f39);
    flex-shrink: 0;
    vertical-align: -2px;
}

/* ============ 底部 ============ */
.footer {
    background-color: #fff;
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 20px;
    border-top: 1px solid #eee;
}

/* ============ 返回顶部按钮 ============ */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--theme-color, #f39);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 999;
    transition: all 0.3s;
}

.scroll-to-top:hover {
    background-color: var(--theme-color-dark, #e03);
}

.scroll-to-top.show {
    display: flex;
}

/* ============ 响应式设计 ============ */

/* 平板和小屏幕 */
@media (max-width: 1200px) {
    .info-list {
        justify-content: flex-start;
    }
}

/* 平板竖屏 */
@media (max-width: 900px) {
    .header-container {
        flex-wrap: wrap;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .info-list {
        justify-content: flex-start;
    }
}

/* 手机横屏 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
    }

    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .search-box {
        width: 100%;
        max-width: none;
    }

    .info-card {
        min-height: auto;
    }

    .info-card .cl {
        display: block;
        overflow: hidden; /* 清除浮动，保持左右布局 */
    }

    .info-card .info-content {
        float: left;
        width: 63%;
        padding: 0;
        display: block;
    }

    .info-card .info-image {
        float: right;
        width: 99px;
        height: 132px;
        margin-top: 16px;
        margin-left: 18px;
        margin-right: 0;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    .region-list {
        display: none; /* 移动端默认隐藏 */
    }
    
    .region-list.show {
        display: flex; /* 移动端展开时显示为行形式 */
        flex-wrap: wrap;
    }
    
    .region-list .province-link {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* 大图模式响应式设计 */
@media (max-width: 1200px) {
    .info-section .info-list.info-list-large:not(.small-mode) {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .info-card-large {
        width: 100%;
        max-width: 265px;
        height: auto;
    }
    
    .card-image {
        width: 100%;
        height: 280px;
    }
}

@media (max-width: 900px) {
    .info-section .info-list.info-list-large:not(.small-mode) {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .info-card-large {
        height: auto;
    }
    
    .card-image {
        height: 250px;
    }
    
    .card-content {
        height: 85px;
    }
    
    .sort-tabs {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 0;
    }
    
    .sort-tabs li {
        margin-bottom: 5px;
    }
    
    .filter-options {
        grid-template-columns: repeat(6, 1fr);
        width: 100%;
    }
    
    .filter-options a {
        font-size: 13px;
        width: auto;
    }
    
    .city-filter .filter-options {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .info-section .info-list.info-list-large:not(.small-mode) {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .info-card-large {
        width: 100%;
        height: auto;
    }
    
    .card-image {
        width: 100%;
        height: 180px;
    }
    
    .card-content {
        height: 75px;
        padding: 0;
    }
    
    .card-title {
        font-size: 13px;
        height: 25px;
    }
    
    .card-location {
        font-size: 12px;
        padding: 2px 0 0 10px;
        height: 18px;
        line-height: 18px;
    }
    
    .card-meta {
        font-size: 11px;
        padding: 5px 0 0 10px;
    }
    
    .province-filter,
    .city-filter {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
    
    .filter-title {
        width: auto;
        margin-bottom: 5px;
    }
    
    .filter-options {
        grid-template-columns: repeat(4, 1fr);
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0;
        gap: 5px;
    }
    
    .filter-options a {
        width: auto !important;
        font-size: 12px;
        padding: 4px 6px;
        height: auto;
        line-height: 1.4;
    }
    
    .city-filter .filter-options {
        grid-template-columns: repeat(3, 1fr);
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .city-filter .filter-options a {
        width: auto !important;
    }
    
    .filter-toggle {
        align-self: flex-start;
        margin-top: 5px;
    }
}

/* 手机竖屏 */
@media (max-width: 480px) {
    .info-section .info-list.info-list-large:not(.small-mode) {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-card-large {
        width: 100%;
        max-width: 320px;
        height: auto;
        margin: 0 auto;
    }
    
    .card-image {
        width: 100%;
        height: 420px;
    }
    
    .card-content {
        height: 80px;
        padding: 0;
    }
    
    .card-title {
        font-size: 14px;
        height: 28px;
    }
    
    .card-location {
        font-size: 13px;
        padding: 2px 0 0 15px;
        height: 20px;
        line-height: 20px;
    }
    
    .card-meta {
        font-size: 12px;
        padding: 5px 0 0 15px;
    }
    
    .sort-tabs {
        justify-content: flex-start;
    }
    
    .sort-tabs li:last-child {
        margin-left: 0;
        margin-right: 0;
    }
    
    .province-filter,
    .city-filter {
        padding: 10px;
    }
    
    .filter-options {
        grid-template-columns: repeat(2, 1fr);
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0;
        gap: 5px;
    }
    
    .filter-options a {
        width: auto !important;
        font-size: 12px;
        padding: 4px 6px;
        height: auto;
        line-height: 1.4;
    }
    
    .city-filter .filter-options {
        grid-template-columns: repeat(2, 1fr);
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .city-filter .filter-options a {
        width: auto !important;
    }
    
    .filter-toggle {
        font-size: 12px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 0 10px;
    }

    .city-nav,
    .info-section {
        padding: 15px;
    }

    .carousel {
        height: 180px;
    }

    .info-card {
        min-height: 138px;
    }

    .info-card .cl {
        display: block;
        overflow: hidden;
    }

    .info-card .info-content {
        float: left;
        width: 65%;
        padding: 0;
        display: block;
    }

    .info-card .info-image {
        float: right;
        width: 80px;
        height: 100px;
        margin-top: 10px;
        margin-left: 10px;
        margin-right: 5px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    .info-title {
        padding: 10px 5px 5px 10px;
        font-size: 15px;
    }

    .info-meta {
        padding: 0 5px 5px 10px;
        font-size: 13px;
    }

    .info-description {
        padding: 0 5px 0 10px;
        font-size: 13px;
        max-height: 42px;
    }

    .info-city {
        padding: 5px 5px 10px 10px;
        font-size: 13px;
    }

    .hot-cities a {
        padding: 6px 12px;
        font-size: 13px;
    }

    .region-cities a {
        padding: 5px 10px;
        font-size: 12px;
    }
}