/**
 * H5移动端新房详情页样式
 * 文件用途: 新房详情页样式，参考旧系统设计
 * 存放位置: public/mobile/css/detail.css
 */

/* ========== 图片画廊 ========== */
.gallery-section {
    position: relative;
    width: 100%;
    height: 220px;
    background: #f5f5f5;
    overflow: hidden;
}

.gallery-swiper {
    width: 100%;
    height: 100%;
}

.gallery-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-pagination {
    position: absolute;
    bottom: 10px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

/* ========== 基本信息区 ========== */
.info-section {
    background: #fff;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.info-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.info-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.sale-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #e6f7ff;
    color: #1890ff;
    font-size: 12px;
    border-radius: 3px;
}

.notice-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
    color: #ff6b6b;
    font-size: 13px;
    text-decoration: none;
}

.notice-btn i {
    margin-right: 4px;
}

.info-price-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 12px;
}

.price-label {
    font-size: 14px;
    color: #666;
    margin-right: 4px;
}

.info-price {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b6b;
}

.info-price-unit {
    font-size: 14px;
    color: #666;
    margin-left: 2px;
}

.info-address {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.address-text {
    font-size: 14px;
    color: #666;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a90e2;
    font-size: 20px;
}

/* ========== 售楼处电话 ========== */
.phone-section {
    background: #fff;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.phone-info {
    flex: 1;
}

.phone-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.phone-number {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.phone-desc {
    font-size: 12px;
    color: #999;
}

.phone-btn {
    width: 50px;
    height: 50px;
    background: #ff6b6b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
}

/* ========== 功能按钮 ========== */
.action-section {
    background: #fff;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 15px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
}

.action-btn i {
    margin-right: 6px;
    color: #4a90e2;
}

/* ========== 楼盘参数 ========== */
.params-section {
    background: #fff;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.params-row {
    display: flex;
    margin-bottom: 12px;
}

.params-row:last-child {
    margin-bottom: 0;
}

.params-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.params-value {
    font-size: 14px;
    color: #333;
}

/* ========== 楼盘特色 ========== */
.feature-section {
    background: #fff;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #ff6b6b;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    border-radius: 3px;
}

/* ========== 楼盘介绍 ========== */
.content-section {
    background: #fff;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.content-text {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* ========== 页面底部留白 ========== */
.page-bottom {
    height: 70px;
}

/* ========== 底部操作栏 ========== */
.detail-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid #e9e9e9;
    display: flex;
    align-items: center;
    padding: 0 15px;
    z-index: 100;
}

/* 置业顾问信息 */
.footer-agent-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.footer-agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-agent-text {
    display: flex;
    flex-direction: column;
}

.footer-agent-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.footer-agent-label {
    font-size: 12px;
    color: #999;
}

/* 底部按钮 */
.footer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    height: 40px;
    border-radius: 4px;
    margin-left: 10px;
}

.footer-btn.call-phone {
    width: 90px;
    background: #fff;
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
    flex-direction: row;
    height: 40px;
    border-radius: 20px;
}

.footer-btn.consult-online {
    width: 100px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    height: 40px;
    border-radius: 20px;
}

.footer-btn.consult-online small {
    font-size: 10px;
    opacity: 0.8;
}

.footer-btn i {
    font-size: 16px;
    margin-right: 4px;
}

/* 旧版按钮样式兼容 */
.footer-btn.consult {
    color: #ff9500;
}

.footer-btn.group {
    background: #52c41a;
    color: #fff;
}

.footer-btn.call {
    background: #ff6b6b;
    color: #fff;
}

/* ========== 租房详情页样式 ========== */
.info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.info-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    border-radius: 3px;
}

.info-base {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

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

.info-base-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.info-base-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 经纪人信息 */
.agent-section {
    background: #fff;
    padding: 15px;
    margin-top: 10px;
}

.agent-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.agent-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.agent-info {
    flex: 1;
}

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

.agent-company {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.agent-stats {
    font-size: 12px;
    color: #999;
}

.agent-actions {
    display: flex;
    gap: 10px;
}

.agent-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #52c41a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
}

.agent-btn i {
    font-size: 20px;
}

/* 小区信息 */
.xiaoqu-section {
    background: #fff;
    padding: 15px;
    margin-top: 10px;
}

.xiaoqu-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    text-decoration: none;
}

.xiaoqu-img {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 15px;
}

.xiaoqu-info {
    flex: 1;
}

.xiaoqu-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.xiaoqu-meta {
    font-size: 13px;
    color: #999;
}

.xiaoqu-arrow {
    width: 8px;
    height: 8px;
    border-top: 2px solid #ccc;
    border-right: 2px solid #ccc;
    transform: rotate(45deg);
}

/* 相似房源/推荐房源 */
.similar-section,
.recommend-section {
    background: #fff;
    padding: 15px;
    margin-top: 10px;
}

.similar-list,
.recommend-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.similar-item,
.recommend-item {
    width: calc(50% - 6px);
    text-decoration: none;
    box-sizing: border-box;
}

.similar-item a,
.recommend-item a {
    text-decoration: none;
    display: block;
}

.similar-img,
.recommend-img {
    width: 100%;
    height: 110px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #f0f0f0;
    position: relative;
}

.similar-img img,
.recommend-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.similar-img img[src=""],
.recommend-img img[src=""] {
    opacity: 0;
}

.similar-title,
.recommend-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    line-height: 1.4;
}

.similar-info,
.recommend-address {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.similar-price,
.recommend-price {
    font-size: 15px;
    color: #ff4757;
    font-weight: 600;
    line-height: 1.4;
}

.price-unit {
    font-size: 12px;
    color: #999;
    font-weight: normal;
    margin-left: 2px;
}

/* 底部操作栏 - 租房版 */
.detail-footer-left {
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 20px;
}

.footer-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.footer-action i {
    width: 24px;
    height: 24px;
    background: #ddd;
    border-radius: 50%;
    margin-bottom: 2px;
}

.footer-action span {
    font-size: 11px;
    color: #666;
}

.detail-footer-right {
    display: flex;
    flex: 1;
    gap: 10px;
    padding-right: 15px;
}

.detail-footer-right .footer-btn {
    flex: 1;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
}

.footer-btn.online {
    background: #ff9500;
}

.footer-btn.phone {
    background: #ff6b6b;
}

/* ========== 小区详情页样式 ========== */

/* 小区头部信息 */
.xiaoqu-header {
    background: #fff;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.xiaoqu-header-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.xiaoqu-header-addr {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.xiaoqu-header-price {
    font-size: 24px;
    color: #ff6b6b;
    font-weight: 600;
}

.xiaoqu-header-price span {
    font-size: 14px;
    color: #999;
    font-weight: normal;
    margin-left: 4px;
}

.xiaoqu-header-alias {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.xiaoqu-header-tags {
    margin-bottom: 10px;
}

.xiaoqu-header-tags .tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f7ff;
    color: #4a90e2;
    font-size: 12px;
    border-radius: 4px;
    margin-right: 8px;
    margin-bottom: 5px;
}

/* 小区基本信息网格 */
.xiaoqu-info-grid {
    background: #fff;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.xiaoqu-info-item {
    display: flex;
    flex-direction: column;
}

.xiaoqu-info-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
}

.xiaoqu-info-value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* 小区特色 */
.feature-section {
    background: #fff;
    padding: 15px;
    margin-top: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.feature-item {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f8ff;
    color: #4a90e2;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #e0f0ff;
}

/* 小区介绍和周边配套 */
.desc-section {
    background: #fff;
    padding: 15px;
    margin-top: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.desc-content {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-top: 10px;
}

.desc-content p {
    margin-bottom: 10px;
}

.desc-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}
