/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft Yahei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

a:hover {
    color: #c81623;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

ul, ol {
    list-style: none;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-top {
    background-color: #f8f8f8;
    border-bottom: 1px solid #eaeaea;
    padding: 8px 0;
    font-size: 12px;
    color: #666;
}

.header-top .contact-info {
    float: right;
}

.header-top .contact-info span {
    margin-left: 20px;
}

.logo-nav {
    padding: 15px 0;
}

.logo {
    float: left;
    font-size: 28px;
    font-weight: bold;
    color: #c81623;
    line-height: 50px;
}

.logo span {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    margin-left: 10px;
}

.nav {
    float: right;
    line-height: 50px;
}

.nav ul li {
    float: left;
    margin-left: 40px;
}

.nav ul li a {
    font-size: 16px;
    font-weight: 500;
    padding: 5px 0;
}

.nav ul li a.active, .nav ul li a:hover {
    color: #c81623;
    border-bottom: 2px solid #c81623;
}

/* 搜索栏 */
.search-bar {
    background: linear-gradient(135deg, #c81623 0%, #e63946 100%);
    padding: 30px 0;
    text-align: center;
}

.search-bar h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: normal;
}

.search-box {
    width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 100px;
    height: 40px;
    background-color: #c81623;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #a0101c;
}

/* 主体内容 */
.main {
    padding: 30px 0;
}

.section-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid #c81623;
}

/* 房源列表 */
.house-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.house-item {
    width: calc(25% - 15px);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.house-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

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

.house-info {
    padding: 15px;
}

.house-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.house-address {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.house-details {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.house-price {
    font-size: 18px;
    color: #c81623;
    font-weight: bold;
}

.house-price span {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

/* 房源详情页 */
.breadcrumb {
    background-color: #fff;
    padding: 15px 0;
    margin-bottom: 20px;
    border-radius: 4px;
}

.breadcrumb a {
    margin: 0 5px;
    color: #666;
}

.breadcrumb a:first-child {
    margin-left: 0;
}

.house-detail {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
}

.house-detail-header {
    margin-bottom: 30px;
}

.house-detail-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: #222;
}

.house-detail-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.house-detail-meta span {
    margin-right: 20px;
}

.house-detail-price {
    font-size: 32px;
    color: #c81623;
    font-weight: bold;
    margin-bottom: 20px;
}

.house-detail-price span {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.house-detail-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.house-detail-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.info-item {
    text-align: center;
}

.info-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.info-value {
    font-size: 18px;
    font-weight: bold;
    color: #222;
}

.house-detail-desc {
    line-height: 1.8;
    font-size: 15px;
    color: #444;
    margin-bottom: 30px;
}

.house-detail-desc p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.contact-box {
    background-color: #fff8f8;
    border: 1px solid #ffd6d6;
    border-radius: 8px;
    padding: 25px;
}

.contact-box h3 {
    font-size: 18px;
    color: #c81623;
    margin-bottom: 15px;
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 10px;
}

.contact-info strong {
    color: #c81623;
    font-size: 20px;
}

/* 侧边栏 */
.sidebar {
    width: 280px;
    float: right;
}

.sidebar-widget {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.hot-house-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.hot-house-list li:last-child {
    border-bottom: none;
}

.hot-house-list a {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-house-price {
    color: #c81623;
    font-weight: bold;
    font-size: 14px;
}

.content-wrap {
    width: calc(100% - 300px);
    float: left;
}

/* 分页 */
.pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.pagination a.active, .pagination a:hover {
    background-color: #c81623;
    color: #fff;
    border-color: #c81623;
}

/* 关于我们页面 */
.about-page {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
}

.about-page h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.about-page p {
    font-size: 15px;
    line-height: 2;
    margin-bottom: 15px;
    text-indent: 2em;
}

/* 页脚 */
.footer {
    background-color: #2b2b2b;
    color: #999;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-col {
    width: 23%;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #999;
    font-size: 13px;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3b3b3b;
    font-size: 12px;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* 响应式适配（基础） */
@media (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .house-item {
        width: calc(33.33% - 13px);
    }
}

@media (max-width: 768px) {
    .nav ul li {
        margin-left: 20px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .house-item {
        width: calc(50% - 10px);
    }
    
    .content-wrap, .sidebar {
        width: 100%;
        float: none;
    }
    
    .sidebar {
        margin-top: 20px;
    }
    
    .house-detail-info {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* 扩展样式 - 面包屑增强 */
.breadcrumb a, .breadcrumb span { color: #666; font-size: 14px; }
.breadcrumb a:hover { color: #c81623; }

/* 通用小标签 */
.tag { display:inline-block; padding:2px 8px; background:#fff3f3; color:#c81623; font-size:12px; border-radius:3px; margin-right:5px;}

/* 打印与移动端适配基础 */
@media(max-width:1220px){
  .container{width:96%;}
  .house-item{width:calc(33% - 12px);}
}
@media(max-width:768px){
  .house-item{width:calc(50% - 10px);}
  .search-box{width:90%;}
}

/* sitemap链接页样式 */
.sitemap-list li { padding:6px 0; border-bottom:1px dashed #eee; }
.sitemap-list li a { color:#333; font-size:14px;}
.sitemap-list li a:hover { color:#c81623;}
