/* ==================== 面包屑导航 ==================== */
.breadcrumb-section {
    padding: 15px 0;
    background: #f8f9fa;
    font-size: 15px; /* 增大字体 */
}

.breadcrumb-section a {
    color: #666;
    text-decoration: none;
}

.breadcrumb-section a:hover {
    color: #ff3b4b;
}

.breadcrumb-section span {
    color: #999;
}

/* ==================== 顶部广告位 ==================== */
.loupan-banner {
    padding: 15px 0;
    background: #fff;
}

.loupan-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.loupan-banner a {
    display: block;
}

/* ==================== 楼盘头部信息 ==================== */
.loupan-header {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.loupan-header .w {
    display: flex;
    gap: 15px; /* 左右容器间距 */
    align-items: stretch; /* 让左右两侧高度一致 */
}

/* 左侧：图片轮播区 */
.header-gallery {
    flex-shrink: 0;
    width: 650px;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 100%; /* 填充父容器高度 */
    border: 1px solid #e0e0e0; /* 淡淡边框 */
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.status-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 59, 75, 0.9);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

/* 主图下方按钮 */
.gallery-buttons {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.gallery-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.album-btn {
    background: #ff3b4b;
    color: #fff;
}

.album-btn:hover {
    background: #e63540;
    transform: translateY(-2px);
}

.huxing-btn {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    backdrop-filter: blur(10px);
}

.huxing-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
}

/* 缩略图列表 */
.gallery-thumbs-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto; /* 推到底部 */
}

.thumb-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.thumb-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    flex: 1;
    padding: 5px 0;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 2px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.thumb-item {
    width: 110px;
    height: 82px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumb-item:hover {
    border-color: #ff3b4b;
    transform: translateY(-2px);
}

.thumb-item.active {
    border-color: #ff3b4b;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右侧：楼盘详细信息 */
/* 右侧信息区 */
.header-info {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 100%; /* 填充父容器高度 */
    border: 1px solid #e0e0e0; /* 淡淡边框 */
}

.loupan-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0 0 12px 0;
}

.loupan-alias {
    font-size: 13px;
    color: #999;
    margin: 0 0 20px 0;
}

/* 价格区域 */
.price-section {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-label {
    font-size: 15px;
    color: #666;
}

.price-value {
    font-size: 32px;
    font-weight: bold;
    color: #ff3b4b;
}

.price-unit {
    font-size: 16px;
    color: #ff3b4b;
}

.price-link {
    font-size: 14px;
    color: #ff3b4b;
    text-decoration: none;
    margin-left: 5px;
}

.price-link:hover {
    text-decoration: underline;
}

.price-tbd {
    font-size: 28px;
    font-weight: bold;
    color: #ff3b4b;
}

/* 优惠横幅 */
.promo-banner {
    background: #fff5f0;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-icon {
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff3b4b'%3E%3Cpath d='M20 7h-9L9 5H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zm-8 10h-2v-4h2v4zm0-6h-2V7h2v4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.promo-text {
    flex: 1;
    font-size: 15px;
    color: #ff3b4b;
    font-weight: bold;
}

.promo-btn {
    background: linear-gradient(135deg, #ff8a65, #ff5722);
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 18px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(255, 87, 34, 0.3);
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.4);
}

/* 详细信息列表 */
.info-list {
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.6;
}

.info-label {
    color: #666;
    min-width: 80px;
    flex-shrink: 0;
}

.info-value {
    color: #333;
    flex: 1;
}

.info-link {
    color: #ff3b4b;
    text-decoration: none;
    font-size: 14px;
    margin-left: 5px;
}

.info-link:hover {
    text-decoration: underline;
}

.loupan-details {
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.detail-item .icon {
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

.detail-item .label {
    color: #999;
    margin-right: 5px;
}

/* 电话区域 */
.phone-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.phone-main {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.phone-icon {
    width: 36px;
    height: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff3b4b'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.phone-number {
    font-size: 32px;
    font-weight: bold;
    color: #ff3b4b;
    letter-spacing: 2px;
}

.phone-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-tip {
    font-size: 13px;
    color: #666;
}

.qr-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.2);
}

.qr-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* 查看更多 */
.more-details {
    display: inline-block;
    color: #999;
    font-size: 14px;
    text-decoration: none;
    margin-top: 10px;
    transition: color 0.3s;
}

.more-details:hover {
    color: #ff3b4b;
}

/* 工具按钮 */
.loupan-tools {
    display: flex;
    gap: 12px;
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #f5f5f5;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

.tool-btn:hover {
    background: #ff3b4b;
    color: #fff;
    transform: translateY(-2px);
}

.tool-btn .icon {
    font-size: 16px;
}

.vr-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.vr-btn:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
}

/* ==================== 标签页导航 ==================== */
.tab-navigation {
    background: #fff;
    border-bottom: 2px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.tab-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tab-list li {
    position: relative;
}

.tab-list li a {
    display: block;
    padding: 15px 25px;
    color: #666;
    text-decoration: none;
    font-size: 16px; /* 增大字体 */
    font-weight: 500;
    transition: all 0.3s;
}

.tab-list li a:hover {
    color: #ff3b4b;
}

.tab-list li.active a {
    color: #ff3b4b;
    font-weight: bold;
}

.tab-list li.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff3b4b;
}

/* ==================== 置业顾问板块 ==================== */
.adviser-section {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    min-height: 280px; /* 固定最小高度 */
}

.adviser-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.adviser-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin: 0;
    position: relative;
    padding-left: 15px;
}

.adviser-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #ff3b4b;
    border-radius: 2px;
}

.adviser-controls {
    display: flex;
    gap: 10px;
}

.adviser-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.adviser-arrow:hover {
    background: #ff3b4b;
    color: #fff;
    transform: scale(1.1);
}

.adviser-list-wrapper {
    overflow: hidden;
    position: relative;
    height: 200px; /* 固定内容区域高度 */
}

.adviser-list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px;
    scrollbar-width: none; /* Firefox */
    height: 100%; /* 占满父容器高度 */
    align-items: stretch; /* 让所有卡片等高 */
}

.adviser-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.adviser-card {
    flex-shrink: 0;
    width: 200px; /* 固定卡片宽度 */
    height: 180px; /* 固定卡片高度 */
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.adviser-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: #ff3b4b;
}

.adviser-avatar {
    width: 70px; /* 固定头像尺寸 */
    height: 70px; /* 固定头像尺寸 */
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f0f0f0;
    transition: border-color 0.3s;
    flex-shrink: 0; /* 防止被压缩 */
}

.adviser-card:hover .adviser-avatar {
    border-color: #ff3b4b;
}

.adviser-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持比例填充 */
}

.adviser-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1; /* 占据剩余空间 */
}

.adviser-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
    white-space: nowrap; /* 不换行 */
    overflow: hidden; /* 隐藏溢出 */
    text-overflow: ellipsis; /* 显示省略号 */
}

.adviser-stats {
    font-size: 12px;
    color: #999;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-item {
    color: #ff3b4b;
    font-weight: 500;
}

.adviser-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.2);
    margin-top: auto; /* 推到底部 */
    flex-shrink: 0; /* 防止被压缩 */
}

.adviser-contact-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.btn-icon {
    font-size: 14px;
}

/* ==================== 内容区域 ==================== */
.tab-content {
    padding: 30px 0;
    min-height: 600px;
}

.section-box {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.section-title h3 {
    font-size: 22px; /* 增大标题字体 */
    font-weight: bold;
    color: #333;
    margin: 0;
    position: relative;
    padding-left: 15px;
}

.section-title h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #ff3b4b;
    border-radius: 2px;
}

.section-count {
    font-size: 14px; /* 增大字体 */
    color: #999;
}

/* ==================== 信息表格 ==================== */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px; /* 增大字体 */
    line-height: 1.8; /* 增加行间距 */
}

.info-table th {
    width: 120px;
    background: #f8f9fa;
    color: #666;
    font-weight: normal;
}

.info-table td {
    color: #333;
}

.price-highlight {
    color: #ff3b4b;
    font-weight: bold;
    font-size: 16px;
}

.price-tbd {
    color: #ff3b4b;
    font-weight: bold;
}

.phone-link {
    color: #ff3b4b;
    text-decoration: none;
    font-weight: bold;
}

.phone-link:hover {
    text-decoration: underline;
}

/* ==================== 周边配套 ==================== */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.facility-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.facility-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
}

.facility-info h4 {
    font-size: 17px; /* 增大标题字体 */
    font-weight: bold;
    color: #333;
    margin: 0 0 5px 0;
}

.facility-info p {
    font-size: 15px; /* 增大正文字体 */
    color: #666;
    line-height: 1.6; /* 增加行间距 */
    margin: 0;
}

/* ==================== 地图容器 ==================== */
.map-container {
    width: 100%;
    height: 400px;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
}

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
}

/* ==================== 户型网格 ==================== */
.huxing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.huxing-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.huxing-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.huxing-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.huxing-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.huxing-item:hover .huxing-img img {
    transform: scale(1.1);
}

.huxing-info {
    padding: 15px;
}

.huxing-info h4 {
    font-size: 17px; /* 增大标题字体 */
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
}

.huxing-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.huxing-meta span {
    font-size: 14px; /* 增大字体 */
    color: #666;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
}

.huxing-area {
    font-size: 15px; /* 增大字体 */
    color: #ff3b4b;
    font-weight: bold;
    margin-bottom: 5px;
}

.huxing-price {
    font-size: 14px; /* 增大字体 */
    color: #666;
    line-height: 1.6; /* 增加行间距 */
    margin-bottom: 10px;
}

.view-detail-btn {
    display: block;
    text-align: center;
    padding: 8px;
    background: #ff3b4b;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px; /* 增大字体 */
    transition: background 0.3s;
}

.view-detail-btn:hover {
    background: #e63540;
}

/* ==================== 新闻列表 ==================== */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}

.news-date .day {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #ff3b4b;
}

.news-date .month {
    display: block;
    font-size: 14px; /* 增大字体 */
    color: #999;
}

.news-content {
    flex: 1;
}

.news-content h4 {
    font-size: 17px; /* 增大标题字体 */
    font-weight: bold;
    margin: 0 0 8px 0;
}

.news-content h4 a {
    color: #333;
    text-decoration: none;
}

.news-content h4 a:hover {
    color: #ff3b4b;
}

.news-content p {
    font-size: 15px; /* 增大正文字体 */
    color: #666;
    line-height: 1.8; /* 增加行间距 */
    margin: 0 0 10px 0;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 13px; /* 增大字体 */
    color: #999;
}

/* ==================== 相册网格 ==================== */
.album-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.album-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
}

.album-link {
    display: block;
    width: 100%;
    height: 100%;
}

.album-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 15px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
}

.album-item:hover .album-overlay {
    opacity: 1;
}

.album-item:hover .album-link img {
    transform: scale(1.1);
}

.album-overlay p {
    font-size: 13px;
    margin: 0;
}

/* ==================== 评论区 ==================== */
.comment-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.comment-form h4 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-size: 14px;
}

.form-actions {
    margin-top: 15px;
}

.submit-btn {
    padding: 10px 30px;
    background: #ff3b4b;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #e63540;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 50px;
    height: 50px;
    background: #ff3b4b;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.username {
    font-weight: bold;
    color: #333;
}

.comment-time {
    font-size: 12px;
    color: #999;
}

.comment-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.comment-footer {
    margin-top: 10px;
    display: flex;
    gap: 15px;
}

.reply-btn,
.like-btn {
    font-size: 13px;
    color: #999;
    text-decoration: none;
}

.reply-btn:hover,
.like-btn:hover {
    color: #ff3b4b;
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 14px;
}

/* ==================== 右侧悬浮工具栏 ==================== */
.floating-toolbar {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toolbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #666;
    font-size: 12px;
    transition: all 0.3s;
}

.toolbar-item:hover {
    background: #ff3b4b;
    color: #fff;
    transform: translateX(-5px);
}

.toolbar-item .icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.toolbar-item .text {
    font-size: 11px;
}

.back-to-top {
    margin-top: 10px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    .header-gallery {
        width: 400px;
    }
    
    .gallery-main {
        height: 300px;
    }
    
    .thumb-item {
        width: 90px;
        height: 68px;
    }
    
    .huxing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .album-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .loupan-header .w {
        flex-direction: column;
    }
    
    .header-gallery {
        width: 100%;
    }
    
    .gallery-main {
        height: 250px;
    }
    
    .thumb-item {
        width: 70px;
        height: 52px;
    }
    
    .header-info {
        padding-top: 0;
    }
    
    .loupan-title {
        font-size: 24px;
    }
    
    .price-value {
        font-size: 28px;
    }
    
    .loupan-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .loupan-tools {
        flex-wrap: wrap;
    }
    
    .tool-btn {
        flex: 1;
        min-width: calc(50% - 6px);
        justify-content: center;
    }
    
    .huxing-grid {
        grid-template-columns: 1fr;
    }
    
    .album-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .facilities-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-toolbar {
        display: none;
    }
}

/* ==================== 详细信息内容样式 ==================== */
.detail-content {
    font-size: 16px; /* 增大字体 */
    line-height: 1.8; /* 增加行间距 */
    color: #333;
    white-space: pre-wrap; /* 保留换行和空格 */
    word-wrap: break-word; /* 长单词自动换行 */
}

.detail-content p {
    margin-bottom: 15px;
    text-indent: 2em; /* 首行缩进 */
}

/* ==================== 楼盘特色列表样式 ==================== */
.features-list {
    font-size: 16px; /* 增大字体 */
    line-height: 1.8; /* 增加行间距 */
    color: #333;
    white-space: pre-wrap; /* 保留换行和空格 */
    word-wrap: break-word;
}

.features-list p {
    margin-bottom: 10px;
}

/* ==================== 空状态样式 ==================== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

/* ==================== 点评问房样式 ==================== */
.comment-section {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
}

/* 点评统计 */
.comment-stats {
    display: flex;
    gap: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin-bottom: 30px;
    color: #fff;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
}

.stat-value.rating {
    font-size: 32px;
}

/* 发表评论表单 */
.comment-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.comment-form h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.comment-form .form-group {
    margin-bottom: 15px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.comment-form label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.comment-form select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.comment-form select:focus {
    outline: none;
    border-color: #667eea;
}

.form-actions {
    margin-top: 15px;
}

.submit-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 点评列表 - 时间轴风格 */
.timeline-wrapper {
    position: relative;
    padding-left: 30px;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* 时间轴圆点 */
.timeline-dot {
    position: absolute;
    left: -26px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 5px rgba(102, 126, 234, 0.2);
}

/* 时间轴内容区 */
.timeline-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    border-color: #e0e4f0;
    transform: translateX(5px);
}

/* 时间显示 */
.comment-header {
    margin-bottom: 15px;
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 13px;
    border-radius: 15px;
    font-weight: 500;
}

/* 用户信息区域 */
.comment-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.user-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.username {
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

/* 评分区域 */
.comment-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.star {
    font-size: 14px;
    color: #ddd;
}

.star.active {
    color: #ffa500;
}

.rating-text {
    font-size: 13px;
    color: #ffa500;
    font-weight: 500;
    margin-left: 2px;
}

/* 点评主体内容 */
.comment-body {
    margin-top: 12px;
}

.comment-content {
    margin: 0;
}

.comment-content p {
    margin: 0;
    line-height: 1.8;
    color: #333;
    font-size: 15px;
}

/* 点评图片 */
.comment-images {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.comment-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid #f0f0f0;
}

.comment-img:hover {
    transform: scale(1.05);
    border-color: #667eea;
}

/* 元信息 */
.comment-meta {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed #e8e8e8;
}

.meta-item {
    font-size: 12px;
    color: #999;
    font-family: 'Courier New', monospace;
}

/* 响应式 */
@media (max-width: 768px) {
    .comment-section {
        padding: 20px;
    }
    
    .comment-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .comment-item {
        flex-direction: column;
    }
    
    .comment-avatar {
        width: 40px;
        height: 40px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .comment-time {
        margin-left: 0;
    }
}
