@charset "UTF-8";
:root {
    --primary: #046E72;
    --primary-light: #e8f5f5;
    --primary-dark: #035a5e;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --border: #e5e5e5;
    --bg: #f5f6f8;
    --white: #fff;
    --radius: 8px;
    --price-orange: #f60;
    --price-red: #e74c3c;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { width: 100%; padding: 0 12px; }

/* Section */
.m-section { background: #fff; margin-bottom: 10px; padding: 16px 12px; }
.m-section-list { padding-top: 0; }
.m-section-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.m-section-title a { font-size: 12px; color: var(--text-muted); font-weight: 400; }

/* Property card */
.m-card { display: flex; gap: 12px; padding: 15px 0; border-bottom: 1px solid #eeeeee; }
.m-card:last-child { border-bottom: none; }
.m-card-img { width: 35%; height: auto; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #f0f0f0; position: relative; }
.m-card-img img { width: 100%; height: 100%; object-fit: cover; }
.m-card-body { width: 62%; flex-shrink: 0; display: flex; flex-direction: column; }
.m-card-body h3 { font-size: 15px; font-weight: 700; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 6px 0; line-height: 1.3; }
.m-card-body h3 a { color: #333; }
.m-card-meta { font-size: 13px; color: #666; display: flex; gap: 8px; margin: 0 0 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin: 2px 0 6px 0; }
.m-card-tags .tag-blue { font-size: 10px; padding: 1px 7px; background: #DCE9F9; color: #4E89C3; border-radius: 3px; }
.m-card-tags .tag-green { font-size: 10px; padding: 1px 7px; background: #DDFECF; color: #53D021; border-radius: 3px; }
.m-card-tags span:not(.tag-blue):not(.tag-green) { font-size: 10px; padding: 1px 6px; background: var(--primary-light); color: var(--primary); border-radius: 3px; }

/* Filter - 小程序样式 */
.m-filter-bar { background: #fff; padding: 10px 15px; }
.m-filter-search { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 0 0 10px; background: #F5F7FA; border-radius: 6px; }
.m-search-input { flex: 1; display: flex; align-items: center; position: relative; }
.m-search-input .fa-search { color: #999; font-size: 14px; margin-right: 8px; }
.m-search-input input { flex: 1; height: 40px; border: none; background: transparent; font-size: 14px; padding-left: 0; }
.m-search-input input::placeholder { color: #999; }
.m-search-clear { position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: none; border: none; color: #999; font-size: 14px; padding: 0; }
.m-search-btn { background: #046E72; color: #fff; height: 40px; line-height: 40px; padding: 0 15px; border-radius: 6px; font-size: 14px; border: none; white-space: nowrap; }

.m-filter-tabs { background: #fff; border-bottom: 1px solid #f2f2f2; padding: 0 10px; }
.m-filter-tabs form { display: flex; height: 41px; line-height: 41px; justify-content: space-around; }
.m-filter-tabs select { flex: 0 1 auto; min-width: 60px; max-width: 100px; height: 41px; line-height: 41px; border: none; background: transparent url('data:image/svg+xml;utf8,<svg fill="%23999" height="12" viewBox="0 0 24 24" width="12" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 8px center; font-size: 14px; color: #333; padding: 0 20px 0 5px; text-align: center; -webkit-appearance: none; appearance: none; cursor: pointer; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.m-filter-tabs select:focus { outline: none; color: #046E72; font-weight: 700; background-image: url('data:image/svg+xml;utf8,<svg fill="%23046E72" height="12" viewBox="0 0 24 24" width="12" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>'); }

/* Pagination */
.m-pagination { display: flex; justify-content: center; gap: 6px; padding: 12px 0; }
.m-pagination a, .m-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; border-radius: 4px; font-size: 13px; border: 1px solid var(--border); }
.m-pagination span.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.m-pagination span.disabled { color: var(--text-muted); background: #f5f5f5; }

/* Detail */

.m-contact-form .f-group { margin-bottom: 10px; display: flex; gap: 8px; }
.m-contact-form input, .m-contact-form select, .m-contact-form textarea { width: 100%; height: 42px; border: 1px solid #eee; border-radius: 8px; padding: 0 12px; font-size: 14px; outline: none; background: #fafafa; }
.m-contact-form input:focus, .m-contact-form select:focus, .m-contact-form textarea:focus { border-color: var(--primary); background: #fff; }
.m-contact-form textarea { height: 80px; padding: 10px 12px; resize: vertical; }
.m-contact-form .gender-sel { width: 80px; flex-shrink: 0; }
.m-contact-form .f-group input[name="name"] { flex: 1; }
.m-contact-form .btn-submit { width: 100%; height: 44px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 4px; }

/* News 正文富文本排版（h5_news_detail .nd-content，内容由后台编辑无法用工具类控制） */
.nd-content { font-size: 14px; line-height: 1.8; }
.nd-content img { max-width: 100%; border-radius: 4px; }
.nd-content table { border-collapse: collapse; width: 100%; margin-bottom: 12px; }
.nd-content table th,
.nd-content table td { border: 1px solid #ddd; padding: 6px 10px; }
.nd-content table th { background: #f5f5f5; font-weight: 600; }
.nd-content table th:first-child,
.nd-content table td:first-child { width: 28.57%; }
.nd-content table th:last-child,
.nd-content table td:last-child { width: 71.43%; }
.nd-content table.contact-table td { width: 50% !important; }
.nd-content h2 { font-size: 16px; }
.nd-content h3 { font-size: 15px; }

/* Empty */
.m-empty { text-align: center; padding: 40px 0; color: var(--text-muted); }
.m-empty p { margin-bottom: 8px; }

/* Consult box */
.m-consult { background: #fff; padding: 16px; text-align: center; margin-top: 10px; }
.m-consult p { margin-bottom: 4px; }
.m-consult .phone-num { font-size: 20px; color: var(--primary); font-weight: 700; }
.m-consult .btn-call { display: block; margin: 10px auto 0; width: 200px; height: 38px; line-height: 38px; background: var(--primary); color: #fff; border-radius: 6px; font-size: 14px; }

/* Breadcrumb */
.m-breadcrumb { font-size: 12px; color: var(--text-muted); padding: 8px 12px; margin-top: 44px; background: #fff; }
.m-breadcrumb a { color: var(--text-light); }

/* ========== Detail Page (对齐小程序 show 页面) ========== */

/* 卡片容器 */
.md-card { background: #fff; margin-top: 10px; padding: 16px; }

/* 标题 */
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 区块标题（对齐小程序 section-title） */
.md-section-title { font-size: 18px; font-weight: 700; color: #222; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.md-title-bar { display: inline-block; width: 3px; height: 15px; background: var(--primary); border-radius: 2px; flex-shrink: 0; }

/* 信息列表（对齐小程序 info-box 键值对布局） */
.md-info-list { border-top: 1px solid #f5f5f5; }
.md-info-row { display: flex; padding: 5px 0; align-items: flex-start; }
.md-info-k { width: 22%; font-size: 14px; color: #999; flex-shrink: 0; line-height: 1.4; }
.md-info-v { width: 28%; font-size: 14px; color: #333; font-weight: 500; line-height: 1.4; word-break: break-all; }
.md-info-v2 { font-size: 14px; color: #333; font-weight: 500; flex: 1; line-height: 1.4; word-break: break-all; }
.md-info-full { display: flex; padding: 5px 0; align-items: flex-start; }
.md-info-full .md-info-k { width: 22%; flex-shrink: 0; }

/* 表单样式 - 图标（电话和日历） */
.f-group-phone, .f-group-date { position: relative; }
.f-group-phone input { padding-right: 36px; }
.f-group-date input { padding-right: 36px; -webkit-appearance: auto; appearance: auto; cursor: pointer; }
.f-group-phone::after {
    content: ''; position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%); width: 20px; height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1.5'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") no-repeat center/contain;
    pointer-events: none;
}
.f-group-date::after {
    content: ''; position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%); width: 20px; height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1.5'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat center/contain;
    pointer-events: none;
}
/* 隐藏浏览器原生日期图标 */
.f-group-date input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0; z-index: 1; cursor: pointer; }
