/* 资讯列表页样式 */
.filter-bar {
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 44px;
    z-index: 100;
}

.filter-scroll {
    display: flex;
    overflow-x: auto;
    padding: 0 15px;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
    display: none;
}

.filter-item {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
}

.filter-item.active {
    background: #ff6600;
    color: #fff;
}

/* 文章列表 */
.article-list {
    padding: 15px;
    background: #f5f5f5;
    min-height: calc(100vh - 150px);
}

.article-item {
    display: flex;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.article-img {
    width: 100px;
    height: 75px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 12px;
}

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

.article-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-title {
    font-size: 15px;
    color: #262626;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    margin-top: 4px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 12px;
    color: #999;
}

.article-type {
    padding: 2px 8px;
    background: #fff2e8;
    color: #ff6600;
    border-radius: 4px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f5f5f5;
}

.page-btn {
    padding: 8px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.page-btn:active {
    background: #f0f0f0;
}

.page-info {
    font-size: 14px;
    color: #666;
}

/* 空状态 */
.empty-tip {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-text {
    font-size: 16px;
    color: #262626;
    margin-bottom: 8px;
}

.empty-desc {
    font-size: 13px;
    color: #999;
}

/* 资讯详情页样式 */
.article-detail {
    background: #fff;
    min-height: calc(100vh - 44px);
}

.article-detail .article-header {
    padding: 20px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.article-detail .article-title {
    font-size: 20px;
    color: #262626;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

.article-detail .article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.article-detail .article-cover {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-detail .article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-detail .article-content {
    padding: 20px 15px;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.article-detail .article-content p {
    margin-bottom: 15px;
}

.article-detail .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 15px 0;
}

.article-detail .article-tags {
    padding: 0 15px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    padding: 4px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}

/* 关联楼盘 */
.related-house {
    margin: 20px 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.related-house .related-title {
    font-size: 15px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 12px;
}

.house-card {
    display: flex;
    text-decoration: none;
    background: #fff;
    border-radius: 6px;
    padding: 12px;
}

.house-card .house-img {
    width: 90px;
    height: 68px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.house-card .house-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.house-card .house-info {
    flex: 1;
    min-width: 0;
}

.house-card .house-name {
    font-size: 15px;
    color: #262626;
    font-weight: 500;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.house-card .house-price {
    font-size: 14px;
    color: #ff6600;
    margin-bottom: 4px;
}

.house-card .house-address {
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 文章导航 */
.article-nav {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.article-nav a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: inherit;
}

.article-nav .nav-prev {
    border-bottom: 1px solid #f0f0f0;
}

.nav-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.nav-title {
    display: block;
    font-size: 14px;
    color: #1890ff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 相关资讯 */
.related-articles {
    padding: 20px 15px;
}

.related-articles .related-title {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid #ff6600;
}

.related-list {
    display: flex;
    flex-direction: column;
}

.related-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item-title {
    flex: 1;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
}

.related-item-date {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

/* 经纪人卡片 */
.broker-card {
    margin: 20px 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.broker-title {
    font-size: 15px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #ff6600;
}

.broker-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.broker-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.broker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.broker-detail {
    flex: 1;
    min-width: 0;
}

.broker-name {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 4px;
}

.broker-role {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.broker-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #ff6600;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
}

.broker-phone:active {
    background: #e55a00;
}

.phone-icon {
    font-size: 14px;
}
