/* 基础样式 */
/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} */

/* body {
    font-family: "Microsoft YaHei", sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f5f5f5;
    min-width: 1200px;
    overflow-x: auto;
} */

.container {
    width: 900px;
    margin: 0 auto;
    display: inline-block;
    /* padding: 20px; */
}

/* 头部样式 */
.house-type-header {
    text-align: center;
    margin-bottom: 30px;
}

.house-type-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

/* 筛选按钮样式 */
.house-type-filter {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-bottom: 30px;
}

.filter-btn {
    /* padding: 8px 25px; 
    border: 1px solid #ddd;*/
    border-radius: 20px;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* 添加括号内数字的样式 */
.filter-btn::after {
    content: attr(data-count); 
    margin-left: 4px;
    font-size: 12px;
    color: #999;
}

.filter-btn:hover {
    border-color: #66AC2B;
    color: #66AC2B;
}

.filter-btn.active {
    /* background: #e4393c;
    color: white;
    border-color: #e4393c; */
    color: #66AC2B;
}

/* 激活状态下括号内的数字颜色 */
.filter-btn.active::after {
    color: #66AC2B;
}

/* 户型列表样式 */
.house-type-list {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-width: 900px;
}

.house-type-item {
    width: 100%;
    height: 200px;
    background: #fff;
    position: relative;
    display: flex;
    border-bottom: 1px solid #f5f5f5;
}

.house-type-item:hover {
    background: #fafafa;
}

.house-type-item:last-child {
    border-bottom: none;
}

/* 户型标签 */
.house-type-item::before {
    content: attr(data-type);
    position: absolute;
    left: 0;
    top: 15px;
    background: rgb(0,0,0,0.6);
    color: #fcbf6e;
    padding: 3px 10px;
    font-size: 12px;
    z-index: 1;
}

/* 户型图片样式 */
.house-type-image {
    width: 180px;
    min-width: 180px;
    height: 180px;
    background: #fff;
    padding: 10px;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.house-type-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.house-type-image:hover img {
    transform: scale(1.05);
}

/* 户型信息样式 */
.house-type-info {
    flex: 1;
    padding: 20px;
    display: flex;
    position: relative;
    border-left: 1px solid #f5f5f5;
    min-width: 700px;
}

.house-type-left {
    width: 380px;
    padding-right: 20px;
}

.house-type-name {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.house-type-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
    width: 100%;
}

.meta-item {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.meta-item .label {
    color: #999;
    font-size: 14px;
    margin-bottom: 5px;
}

.meta-item .value {
    color: #e4393c;
    font-size: 20px;
    font-weight: bold;
}

.house-type-link {
    margin-top: 30px;
}

/* 查看户型图链接 */
.view-plan {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

/* .view-plan::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
} */

.view-plan:hover {
    color: #e4393c;
}

.view-plan:hover::after {
    transform: translateX(3px);
} 

/* 右侧区域样式 */
.house-type-right {
    width: 240px;
    min-width: 240px;
    /* padding: 20px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 面积显示优化 */
.house-type-area {
    position: absolute;
    right: 280px;
    top: 49%;
    transform: translateY(-50%);
    margin-right: 10px;
    /* width: 120px; */
    text-align: center;
    padding: 0 20px;
    border-right: 2px solid #e4dbdb;
}

.house-type-area .label {
    font-size: 14px;
    color: #999;
    /* margin-bottom: 5px; */
}

.house-type-area .number {
    font-size: 24px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
}

/* 按钮区域优化 */
.house-type-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.view-detail-btn, .contact-btn {
    padding: 6px 15px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 25px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    background: #d32f2f;
}

.view-detail-btn {
    background: #d32f2f;
    color: #ffffff;
    border: 1px solid #d32f2f;
}

.contact-btn {
    background: #d32f2f;
    color: #fff;
    position: relative;
    border: none;
}

/* .view-detail-btn:hover {
    background: #fff5f5;
} */

/* .contact-btn:hover {
    background: #d61f22;
} */

/* 按钮图标 */
/* .view-detail-btn::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../images/calculator.png') no-repeat center/contain;
    margin-right: 5px;
} */

/* .contact-btn::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../images/wechat.png') no-repeat center/contain;
    margin-right: 5px;
} */

/* 二维码样式 */
.qrcode {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    width: 160px;
    height: 160px;
    background: #fff;
    padding: 10px;
    border: 1px solid #eee;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 100;
    border-radius: 4px;
    /* margin-bottom: 10px; */
}

.qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 二维码标题 */
/* .qrcode::after {
    content: '扫码添加置业顾问';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #666;
    background: #fff;
    padding: 8px 0;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 4px 4px;
} */

/* 三角形指示器 */
/* .qrcode::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #fff;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    z-index: 2;
} */

/* 添加显示动画 */
.contact-btn:hover .qrcode {
    display: block;
    animation: fadeInUp 0.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* 图片放大弹窗样式 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999999;
}

.image-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    /* max-width: 90%;
    max-height: 90vh; */
}

.modal-content img {
    /* max-width: 100%;
    max-height: 90vh;
    object-fit: contain; */
    width: 600px;
    height: 600px;
}

.close-modal {
    position: absolute;
    /* top: -40px; */
    right: 0;
    width: 40px;
    height: 40px;
    color: rgb(94 62 62);
    font-size: 50px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.close-modal:hover {
    color: #e4393c;
}

/* 图片hover效果 */
.house-type-image::after {
    content: '点击查看大图';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.house-type-image:hover::after {
    opacity: 1;
}

/* 添加动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 算价弹窗样式 */
.calculator-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999999;
    animation: fadeIn 0.3s ease;
}

.calculator-content {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    width: 690px;
    position: relative;
    animation: slideUp 0.3s ease;
}

.calculator-content .calculator-sqsj {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
    color: #666;
    font-weight: normal;
    border-bottom: 1px solid #d32f2f;
}

.calculator-content .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    line-height: 0px;
    text-align: center;
    font-size: 40px;
    color: #999;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

.calculator-content .close-modal:hover {
    color: #666;
}

.house-info {
    /* background: #f8f8f8; 
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;*/
    margin: 20px 0 0 0;
    width: 370px;
    /* height: 291px; */
    float: left;
}

.house-info p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
    /* display: flex;
    justify-content: space-between; */
}
.house-info img{
    overflow: hidden;
    width: 330px;
    height: 180px;
    padding: 10px;
    border: 1px solid #ddd;
}
.house-info .house-info_p i.house-info_hx{
    font-size: 22px;
    margin-right: 5px;
    font-style: normal;
    color: #d32f2f;
}
.house-info em{
    margin: 0 5px 0 0;
    color: #333;
    font-size: 16px;
}


.house-info p span:last-child {
    color: #333;
    font-weight: 500;
}
.form_right{
    float: left;
    position: relative;
    top: 8%;
}
.form_right span{
    font-size: 14px;
    color: #666666;
    font-weight: bold;
}
.calculator-form{
    margin-top: 15px;
}
.calculator-form .form-group {
    margin-bottom: 10px;
}

/* .calculator-form .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
} */

.calculator-form input {
    /* width: 100%; */
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.calculator-form input:focus {
    border-color: #e4393c;
    outline: none;
    box-shadow: 0 0 0 2px rgba(228, 57, 60, 0.1);
}

.calculator-form input::placeholder {
    color: #999;
}

.calculator-form .submit-btn {
    /* width: 100%; */
    padding: 12px;
    background: #e4393c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    /* margin-top: 10px; */
}

.calculator-form .submit-btn:hover {
    background: #d61f22;
}

/* 弹窗动画 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移除响应式样式 */
@media screen and (max-width: 1200px) {
    /* 删除所有媒体查询 */
}

@media screen and (max-width: 1000px) {
    /* 删除所有媒体查询 */
}