﻿/* 楼盘详情页移动端专用CSS */
/* 版本: v2326 - 完全匹配HTML结构 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 14px;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5 !important;
    padding: 10px;
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
}

/* 主容器 */
.box333 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 15px !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* 楼盘图片 */
.left_logo {
    display: block !important;
    width: 100% !important;
    height: 220px !important;
    margin: 0 auto 20px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

/* “我要参加购房团”弹窗专用优化样式 */
#dialogBox {
    animation: dialogFadeIn 0.3s ease-out !important;
}
#dialogBody::-webkit-scrollbar {
    width: 6px;
}
#dialogBody::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
#dialogBody::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
}
/* 弹窗内表单元素优化（假设表单由iframe加载） */
#dialogBox input[type="text"],
#dialogBox input[type="tel"],
#dialogBox select {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
}
#dialogBox input[type="submit"],
#dialogBox button[type="submit"] {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    border: none;
    padding: 14px 20px;
    width: 100%;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: transform 0.2s;
}
#dialogBox input[type="submit"]:hover {
    transform: translateY(-2px);
}
@keyframes dialogFadeIn {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* 移动端响应式优化 */
@media screen and (max-width: 768px) {
    #dialogBox {
        width: 95% !important;
        max-width: 95% !important;
    }
    #dialogBody {
        padding: 20px 15px !important;
        max-height: 55vh !important;
    }
}
.left_logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* 楼盘标题区域 */
.loupanName {
    position: relative !important;
    margin-bottom: 25px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #f0f0f0 !important;
}

.loupanName h1 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.4 !important;
    padding-right: 80px !important;
}

/* 状态标签 */
.zt_0, .zt_1, .zt_2 {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    display: inline-block !important;
    padding: 6px 15px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: white !important;
    min-width: 70px !important;
    text-align: center !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2) !important;
}

.zt_0 { background: linear-gradient(135deg, #FF6B6B, #FF8E8E) !important; }
.zt_1 { background: linear-gradient(135deg, #4ECDC4, #6EDBD4) !important; }
.zt_2 { background: linear-gradient(135deg, #FFD93D, #FFE566) !important; color: #333 !important; }

/* 统计数据区域 */
.left_count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 20px !important;
    border-radius: 12px !important;
    margin: 20px 0 !important;
    text-align: center !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25) !important;
}

.left_count strong {
    font-size: 28px !important;
    color: #FFD93D !important;
    margin: 0 5px !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.left_count a {
    display: inline-block !important;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53) !important;
    color: white !important;
    padding: 12px 25px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    margin-top: 15px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4) !important;
    transition: all 0.3s ease !important;
}

.left_count a:active {
    transform: scale(0.96) !important;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3) !important;
}

/* 信息区域 */
.info {
    background: white !important;
    padding: 20px !important;
    border-radius: 12px !important;
    margin: 20px 0 !important;
    border: 1px solid #eaeaea !important;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05) !important;
}

.info > div {
    padding: 14px 0 !important;
    border-bottom: 1px solid #f5f5f5 !important;
    font-size: 15px !important;
    display: flex !important;
    flex-wrap: wrap !important;
}

.info > div:last-child {
    border-bottom: none !important;
}

.info > div::before {
    content: '•' !important;
    color: #667eea !important;
    font-weight: bold !important;
    margin-right: 10px !important;
    font-size: 18px !important;
}

/* 电话号码 */
.tel {
    display: block !important;
    width: 100% !important;
    margin: 10px 0 !important;
}

.tel a {
    color: #FF6B6B !important;
    text-decoration: none !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    padding: 8px 15px !important;
    background: rgba(255, 107, 107, 0.1) !important;
    border-radius: 10px !important;
    display: inline-block !important;
    margin: 5px 0 !important;
}

.tel a span {
    color: #FF6B6B !important;
}

/* 电话提示 */
.tel_ts {
    background: #FFF8E6 !important;
    padding: 15px !important;
    border-radius: 10px !important;
    margin: 15px 0 !important;
    border-left: 5px solid #FFC107 !important;
    font-size: 13px !important;
    color: #5D4037 !important;
    line-height: 1.7 !important;
}

/* 表格优化 */
.table-xiaxu {
    width: 100% !important;
    margin: 20px 0 !important;
    border-collapse: collapse !important;
    border: 1px solid #eaeaea !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05) !important;
}

.table-xiaxu.bottom_5 {
    margin-bottom: 20px !important;
}

.table-xiaxu tr {
    border-bottom: 1px solid #eaeaea !important;
    transition: background-color 0.3s ease !important;
}

.table-xiaxu tr:last-child {
    border-bottom: none !important;
}

.table-xiaxu tr:hover {
    background-color: #f9f9ff !important;
}

.table-xiaxu td {
    padding: 16px 20px !important;
    border-right: 1px solid #eaeaea !important;
    font-size: 14px !important;
}

.table-xiaxu td:last-child {
    border-right: none !important;
}

.table-xiaxu td[width="200"] {
    width: auto !important;
    font-weight: 500 !important;
    color: #444 !important;
}

/* 价格样式 */
.jg {
    color: #FF6B6B !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1) !important;
    display: inline-block !important;
    padding: 5px 10px !important;
    background: rgba(255, 107, 107, 0.1) !important;
    border-radius: 8px !important;
}

/* 小区介绍 */
.js {
    background: #F8F9FF !important;
    padding: 25px !important;
    border-radius: 12px !important;
    margin-top: 25px !important;
    line-height: 1.8 !important;
    font-size: 15px !important;
    color: #444 !important;
    border-left: 5px solid #667eea !important;
}

/* 图片展示区域 */
.news_pic {
    background: white !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin: 25px 0 !important;
    border: 1px solid #eaeaea !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.news_pic h5 {
    font-size: 18px !important;
    color: #333 !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #667eea !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.news_pic h5 strong {
    color: #FF6B6B !important;
}

.news_pic h5 span a {
    font-size: 14px !important;
    color: #667eea !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.news_pic h5 span a::after {
    content: ' →' !important;
}

.news_pic ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
}

.news_pic ul li {
    border-radius: 10px !important;
    overflow: hidden !important;
    border: 1px solid #eaeaea !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

.news_pic ul li:active {
    transform: scale(0.98) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.news_pic ul li a {
    display: block !important;
    text-decoration: none !important;
    color: #333 !important;
}

.news_pic ul li img {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
    display: block !important;
}

/* 底部区域 */
.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: #ecf0f1 !important;
    padding: 30px 20px 25px !important;
    margin-top: 30px !important;
    border-top: 4px solid #667eea !important;
    border-radius: 12px 12px 0 0 !important;
}

.footer-content {
    max-width: 1200px !important;
    margin: 0 auto 25px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
}

.footer-section {
    flex: 1 !important;
    min-width: 200px !important;
}

.footer-section h4 {
    color: #3498db !important;
    font-size: 18px !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid rgba(52, 152, 219, 0.3) !important;
}

.footer-contact p {
    margin: 12px 0 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.footer-contact a {
    color: #1abc9c !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.footer-links {
    list-style: none !important;
    padding: 0 !important;
}

.footer-links li {
    margin-bottom: 12px !important;
}

.footer-links a {
    color: #bdc3c7 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
}

.footer-links a:before {
    content: "›" !important;
    margin-right: 10px !important;
    color: #3498db !important;
    font-size: 18px !important;
    font-weight: bold !important;
}

.footer-links a:active {
    color: #3498db !important;
    transform: translateX(5px) !important;
}

.footer-bottom {
    text-align: center !important;
    padding-top: 25px !important;
    margin-top: 25px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-size: 13px !important;
    color: #95a5a6 !important;
}

/* ========== 移动端响应式设计 ========== */
@media screen and (max-width: 768px) {
    html {
    
        font-size: 13px;
    }
    
    body {
        padding: 8px !important;
    }

    .box333 {
        padding: 12px !important;
        border-radius: 10px !important;
    }
    
    .left_logo {
        height: 180px !important;
        margin-bottom: 15px !important;
    }
    
    .loupanName h1 {
        font-size: 20px !important;
        padding-right: 70px !important;
    }
    
    .zt_0, .zt_1, .zt_2 {
        padding: 5px 12px !important;
        font-size: 12px !important;
        min-width: 60px !important;
    }
    
    .left_count {
        padding: 15px !important;
        margin: 15px 0 !important;
    }
    
    .left_count strong {
        font-size: 22px !important;
    }
    
    .left_count a {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    
    /* 表格移动端优化 */
    .table-xiaxu {
        display: block !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .table-xiaxu tbody {
        display: block !important;
    }
    
    .table-xiaxu tr {
        display: flex !important;
        flex-wrap: wrap !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        margin-bottom: 12px !important;
        padding: 0 !important;
        overflow: hidden !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    }
    
    .table-xiaxu td {
        display: block !important;
        width: 50% !important;
        padding: 14px !important;
        border: none !important;
        border-right: 1px solid #eee !important;
        border-bottom: 1px solid #eee !important;
    }
    
    .table-xiaxu td:nth-child(odd) {
        border-right: 1px solid #eee !important;
    }
    
    .table-xiaxu td:nth-child(even) {
        border-right: none !important;
    }
    
    .table-xiaxu tr:last-child td {
        border-bottom: 1px solid #eee !important;
    }
    
    .jg {
        font-size: 22px !important;
    }
    
    .info > div {
        padding: 12px 0 !important;
        font-size: 14px !important;
    }
    
    .tel a {
        font-size: 20px !important;
        padding: 6px 12px !important;
    }
    
    .news_pic ul {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .news_pic ul li img {
        height: 140px !important;
    }
    
    .footer-content {
        flex-direction: column !important;
        gap: 25px !important;
    }
    
    .footer-section {
        min-width: 100% !important;
    }
}

/* 小屏幕手机优化 */
@media screen and (max-width: 375px) {
    html {
        font-size: 12px;
    }
    
    .left_logo {
        height: 160px !important;
    }
    
    .loupanName h1 {
        font-size: 18px !important;
    }
    
    .table-xiaxu td {
        width: 100% !important;
        border-right: none !important;
    }
    
    .left_count a {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
}

/* 平板优化 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .box333 {
        max-width: 90% !important;
    }
    
    .news_pic ul {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ========== 电脑端优化样式 ========== */
@media screen and (min-width: 1025px) {
    /* 基础调整 */
    body {
        padding: 20px !important;
        background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%) !important;
        min-height: 100vh;
    }
    
    .box333 {
        max-width: 1200px !important;
        margin: 0 auto 40px !important;
        padding: 30px !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
        transition: all 0.3s ease;
    }
    
    .box333:hover {
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15) !important;
    }
    
    /* 顶部区域布局优化 */
    .loupan-top-area {
        display: flex !important;
        gap: 30px !important;
        margin-bottom: 30px !important;
    }
    
    .left_logo {
        flex: 0 0 400px !important;
        height: 300px !important;
        margin: 0 !important;
        border-radius: 12px !important;
    }
    
    .loupanName {
        flex: 1 !important;
        margin-bottom: 0 !important;
        padding-top: 10px !important;
    }
    
    .loupanName h1 {
        font-size: 32px !important;
        padding-right: 100px !important;
        margin-bottom: 15px !important;
    }
    
    .zt_0, .zt_1, .zt_2 {
        top: 10px !important;
        right: 10px !important;
        padding: 8px 20px !important;
        font-size: 15px !important;
        min-width: 80px !important;
    }
    
    /* 统计数据区域优化 */
    .left_count {
        padding: 25px 30px !important;
        margin: 25px 0 !important;
        border-radius: 14px !important;
    }
    
    .left_count strong {
        font-size: 36px !important;
    }
    
    .left_count a {
        padding: 15px 35px !important;
        font-size: 18px !important;
        margin-top: 20px !important;
        transition: all 0.3s ease !important;
    }
    
    .left_count a:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4) !important;
    }
    
    .left_count a:active {
        transform: translateY(-1px) !important;
    }
    
    /* 信息区域网格布局 */
    .info {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0 30px !important;
        padding: 25px 30px !important;
    }
    
    .info > div {
        padding: 16px 0 !important;
        font-size: 16px !important;
    }
    
    /* 电话号码优化 */
    .tel {
        grid-column: span 2 !important;
        text-align: center !important;
        margin: 15px 0 0 !important;
    }
    
    .tel a {
        font-size: 28px !important;
        padding: 12px 25px !important;
        transition: all 0.3s ease !important;
    }
    
    .tel a:hover {
        background: rgba(255, 107, 107, 0.15) !important;
        transform: scale(1.05) !important;
    }
    
    /* 表格优化 */
    .table-xiaxu {
        width: 100% !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid #e0e0e0 !important;
    }
    
    .table-xiaxu tr {
        transition: all 0.3s ease !important;
    }
    
    .table-xiaxu tr:hover {
        background-color: #f5f8ff !important;
        transform: translateY(-1px) !important;
    }
    
    .table-xiaxu td {
        padding: 18px 25px !important;
        font-size: 15px !important;
    }
    
    .table-xiaxu td[width="200"] {
        width: 25% !important;
        font-weight: 600 !important;
        background: #f8f9fa !important;
        color: #444 !important;
    }
    
    /* 价格样式 */
    .jg {
        font-size: 32px !important;
        padding: 8px 15px !important;
        transition: all 0.3s ease !important;
    }
    
    .jg:hover {
        background: rgba(255, 107, 107, 0.15) !important;
        transform: scale(1.05) !important;
    }
    
    /* 小区介绍 */
    .js {
        padding: 30px !important;
        font-size: 16px !important;
        line-height: 1.9 !important;
        border-left-width: 6px !important;
    }
    
    /* 图片展示区域优化 */
    .news_pic {
        padding: 30px !important;
        border-radius: 14px !important;
        margin: 30px 0 !important;
    }
    
    .news_pic h5 {
        font-size: 22px !important;
        margin-bottom: 25px !important;
        padding-bottom: 20px !important;
    }
    
    .news_pic ul {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px !important;
    }
    
    .news_pic ul li {
        border-radius: 12px !important;
        overflow: hidden !important;
        transition: all 0.3s ease !important;
    }
    
    .news_pic ul li:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15) !important;
        border-color: #667eea !important;
    }
    
    .news_pic ul li img {
        height: 180px !important;
        transition: transform 0.5s ease !important;
    }
    
    .news_pic ul li:hover img {
        transform: scale(1.08) !important;
    }
    
    /* 底部区域优化 */
    .site-footer {
        margin-top: 40px !important;
        padding: 40px 30px 30px !important;
        border-radius: 16px 16px 0 0 !important;
    }
    
    .footer-content {
        max-width: 1200px !important;
        margin: 0 auto 35px !important;
        gap: 50px !important;
    }
    
    .footer-section h4 {
        font-size: 20px !important;
        margin-bottom: 25px !important;
    }
    
    .footer-links a {
        transition: all 0.3s ease !important;
    }
    
    .footer-links a:hover {
        color: #3498db !important;
        transform: translateX(8px) !important;
    }
    
    /* 鼠标悬停效果 */
    .info > div, 
    .tel_ts,
    .js,
    .news_pic {
        transition: all 0.3s ease !important;
    }
    
    .info > div:hover,
    .tel_ts:hover,
    .js:hover,
    .news_pic:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1) !important;
    }
}

/* ========== 大屏幕优化 (1440px以上) ========== */
@media screen and (min-width: 1440px) {
    .box333 {
        max-width: 1400px !important;
        padding: 40px !important;
    }
    
    .left_logo {
        flex: 0 0 500px !important;
        height: 350px !important;
    }
    
    .loupanName h1 {
        font-size: 36px !important;
    }
    
    .info {
        grid-template-columns: repeat(3, 1fr) !important;
        padding: 30px 40px !important;
    }
    
    .tel {
        grid-column: span 3 !important;
    }
    
    .news_pic ul {
        grid-template-columns: repeat(5, 1fr) !important;
    }
    
    .news_pic ul li img {
        height: 200px !important;
    }
}

/* ========== 超宽屏优化 ========== */
@media screen and (min-width: 1920px) {
    body {
        padding: 40px !important;
    }
    
    .box333 {
        max-width: 1600px !important;
    }
    
    .left_logo {
        flex: 0 0 600px !important;
        height: 400px !important;
    }
    
    .loupanName h1 {
        font-size: 40px !important;
    }
    
    .info {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .tel {
        grid-column: span 4 !important;
    }
}

/* ========== 打印样式 ========== */
@media print {
    body {
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .box333 {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        padding: 20px !important;
        margin: 0 !important;
    }
    
    .left_count a,
    .news_pic ul li:hover {
        box-shadow: none !important;
    }
    
    .site-footer {
        display: none !important;
    }
}

