/* 淘客通 - 移动端H5样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --orange: #f97316;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 页面容器 */
.page {
    display: none;
    min-height: 100vh;
    background: var(--bg);
    padding-bottom: 20px;
}
.page.active {
    display: block;
}

/* ===== 首页 ===== */
.home-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

/* 城市选择 */
.city-selector { position: relative; }
.city-display {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.city-display .arrow { font-size: 10px; color: var(--text-light); }
.city-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 200;
    min-width: 100px;
    margin-top: 4px;
    overflow: hidden;
}
.city-dropdown.show { display: block; }
.city-option {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}
.city-option:hover, .city-option.active { background: #eff6ff; color: var(--primary); }

/* 搜索框 */
.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    padding: 8px 12px;
    border-radius: 20px;
}
.search-box .icon { font-size: 14px; }
.search-box input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    flex: 1;
    width: 100%;
}

/* 轮播图 */
.carousel-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #ddd;
}
.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
}
.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}
.carousel-slide img, .carousel-slide svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 16px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}
.slide-tag {
    display: inline-block;
    background: var(--orange);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 6px;
}
.slide-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.slide-info { font-size: 13px; opacity: 0.9; margin-bottom: 4px; }
.slide-price { font-size: 15px; font-weight: 700; color: #ffd700; }

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    border: none;
}
.carousel-arrow.prev { left: 8px; }
.carousel-arrow.next { right: 8px; }

.carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}
.carousel-dots .dot.active { background: white; }

/* 快捷导航 */
.quick-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 16px;
    background: white;
}
.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.quick-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.quick-icon.blue { background: #dbeafe; }
.quick-icon.yellow { background: #fef3c7; }
.quick-icon.green { background: #d1fae5; }
.quick-icon.red { background: #fee2e2; }
.quick-item span { font-size: 13px; color: var(--text); }

/* 区块标题 */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: white;
}
.section-title h2 { font-size: 17px; font-weight: 600; }
.section-title .more { font-size: 13px; color: var(--primary); cursor: pointer; }

/* 楼盘卡片 */
.building-list { padding: 0 16px; }
.building-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    border: 1px solid var(--border);
}
.building-img {
    position: relative;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}
.building-img svg { display: block; border-radius: 8px; }
.watermark {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 9px;
    color: rgba(0,0,0,0.3);
}
.building-info { flex: 1; min-width: 0; }
.building-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.building-name h3 { font-size: 15px; font-weight: 600; }
.building-name .tag {
    background: var(--success);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    flex-shrink: 0;
}
.building-area { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.building-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.building-tags span {
    background: var(--bg);
    color: var(--text-light);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.building-price { font-size: 18px; font-weight: 700; color: var(--danger); }
.building-price .unit { font-size: 13px; font-weight: 400; margin-left: 2px; }

/* ===== 通用头部 ===== */
.header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .back {
    width: 36px;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
}
.header .title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}
.header .right { width: 36px; text-align: right; font-size: 18px; color: var(--text-light); }

/* 筛选栏 */
.sub-filter {
    display: flex;
    background: white;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
}
.sub-filter span {
    padding: 12px 16px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.sub-filter span.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }

.filter-bar {
    display: flex;
    background: white;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    gap: 8px;
}
.filter-item {
    flex: 1;
    text-align: center;
    padding: 8px;
    font-size: 14px;
    background: var(--bg);
    border-radius: 6px;
    cursor: pointer;
}

.search-tip {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 14px;
}
.search-tip .highlight { color: var(--primary); font-weight: 600; }

/* ===== 楼盘详情页 ===== */
.detail-page { background: var(--bg); padding-bottom: 70px; }

/* 详情轮播 */
.detail-carousel {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: #ddd;
}
.detail-carousel-track { display: flex; height: 100%; transition: transform 0.4s ease; }
.detail-carousel-slide { min-width: 100%; height: 100%; }
.detail-carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.detail-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    z-index: 10;
    border: none;
}
.detail-carousel-arrow.prev { left: 8px; }
.detail-carousel-arrow.next { right: 8px; }

.detail-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.detail-carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}
.detail-carousel-dots .dot.active { background: white; }

/* 详情区块 */
.detail-section {
    padding: 16px;
    background: white;
    margin-bottom: 10px;
}
.detail-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}
.detail-section-title .more { font-size: 13px; color: var(--text-light); cursor: pointer; }

/* 楼盘信息 */
.detail-building-info h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.detail-building-info h3 { font-size: 15px; color: var(--text-light); font-weight: 400; margin-bottom: 10px; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.detail-tag {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
}
.detail-tag.selling { background: #fee2e2; color: #dc2626; }
.detail-tag.selling-point { background: #dbeafe; color: #2563eb; }

.detail-price-row {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.detail-price-item { display: flex; flex-direction: column; gap: 4px; }
.detail-price-item .val { font-size: 18px; font-weight: 700; color: var(--danger); }
.detail-price-item .label { font-size: 12px; color: var(--text-light); }

.detail-sales-progress {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
}
.detail-sales-progress .on-sale { color: var(--success); }
.detail-sales-progress .pending { color: var(--text-light); }

.detail-vip-offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}
.detail-vip-offer-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.detail-address-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
    font-size: 14px;
}
.detail-address-row .addr-text { color: var(--text); }
.detail-address-row .send-btn { color: var(--primary); cursor: pointer; font-size: 13px; }

.detail-action-btns { display: flex; gap: 12px; }
.detail-action-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.detail-action-btn.detail-btn-price { background: #dbeafe; color: var(--primary); }
.detail-action-btn.detail-btn-special { background: #fee2e2; color: var(--danger); }

/* 电话拨打 */
.detail-phone-section { padding: 0 16px; background: transparent; }
.detail-phone-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid var(--border);
}
.detail-phone-number { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.detail-phone-note { font-size: 12px; color: var(--text-light); }
.detail-phone-icon { font-size: 32px; }

/* 户型鉴赏 */
.detail-house-type-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.detail-house-type-nav button {
    padding: 6px 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: white;
    font-size: 13px;
    cursor: pointer;
}
.detail-house-type-nav button.active { background: var(--primary); color: white; border-color: var(--primary); }

.detail-house-type-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.detail-house-type-scroll::-webkit-scrollbar { display: none; }
.detail-house-type-card {
    min-width: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
    cursor: pointer;
}
.detail-house-type-card img { width: 100%; height: 140px; object-fit: cover; display: block; }
.detail-house-type-info { padding: 10px; }
.detail-house-type-info h4 { font-size: 14px; margin-bottom: 4px; }
.detail-house-type-info p { font-size: 12px; color: var(--text-light); }

.detail-house-type-btns { display: flex; gap: 12px; margin-top: 12px; }
.detail-house-type-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
}
.detail-house-type-btn.detail-btn-low-price { background: #dbeafe; color: var(--primary); }
.detail-house-type-btn.detail-btn-interpret { background: #fef3c7; color: #92400e; }

/* 购房交流群 */
.detail-group-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.detail-group-avatars { display: flex; }
.detail-group-avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -8px;
    object-fit: cover;
}
.detail-group-avatars img:first-child { margin-left: 0; }
.detail-group-info h4 { font-size: 14px; }
.detail-group-info p { font-size: 12px; color: var(--text-light); }

.detail-qa-scroll {
    background: var(--bg);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
}
.detail-qa-item { font-size: 13px; }
.detail-qa-item .user { color: var(--primary); font-weight: 600; margin-right: 8px; }
.detail-qa-item .text { color: var(--text-light); }

/* 置业顾问 */
.detail-advisor-list { display: flex; flex-direction: column; gap: 12px; }
.detail-advisor-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: 12px;
}
.detail-advisor-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.detail-advisor-info { flex: 1; }
.detail-advisor-info h4 { font-size: 15px; margin-bottom: 2px; }
.detail-advisor-info .position { font-size: 12px; color: var(--text-light); }
.detail-advisor-info .status { font-size: 12px; color: var(--success); }
.detail-advisor-info .rating { font-size: 12px; color: var(--warning); }
.detail-advisor-call {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 七屏：楼盘讲解 */
.v7-container { position: relative; border-radius: 12px; overflow: hidden; height: 200px; margin-bottom: 12px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.v7-container img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* 左侧白色卡片 */
.v7-card {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 55%;
    z-index: 2;
}
.v7-tag {
    display: inline-block;
    background: #5dd685;
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px 10px 0 0;
    margin-left: 8px;
}
.v7-card-inner {
    background: rgba(255,255,255,0.92);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.v7-card-inner h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}
.v7-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}
.v7-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ddd;
}
.v7-dots span.active { background: #333; }
.v7-play-btn {
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(120,120,120,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
.v7-play-icon {
    width: 0;
    height: 0;
    border-left: 14px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 4px;
}
.v7-card-inner p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* 右侧时间轴 */
.v7-timeline {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.v7-tl-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.v7-tl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
}
.v7-tl-dot.active { background: #5dd685; }
.v7-tl-time {
    font-size: 11px;
    color: rgba(255,255,255,0.85);
}
.v7-tl-label {
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.4);
    padding: 2px 6px;
    border-radius: 8px;
}

.detail-video-form { display: flex; gap: 8px; }
.detail-video-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}
.detail-video-form button {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

/* 楼盘详情表格 */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-item { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; }
.detail-item .label { font-size: 12px; color: var(--text-light); }
.detail-item .value { font-size: 14px; color: var(--text); }
.detail-hidden { display: none; }

/* 楼盘动态 */
.detail-news-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.detail-news-item:last-child { border-bottom: none; }
.detail-news-item .q { font-size: 14px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.detail-news-item .q .badge { background: var(--danger); color: white; padding: 2px 6px; border-radius: 4px; font-size: 11px; }
.detail-news-item .a { font-size: 13px; color: var(--text-light); margin-bottom: 4px; }
.detail-news-item .time { font-size: 12px; color: #999; }
.detail-news-hidden { display: none; }

/* 周边配套 */
.detail-around-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.detail-around-item:last-child { border-bottom: none; }
.detail-around-item h4 { font-size: 15px; margin-bottom: 8px; }
.detail-around-item p { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.detail-around-hidden { display: none; }

/* 看房预约 */
.detail-booking-section { background: white; }
.detail-booking-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.booking-tag { display: inline-block; padding: 4px 12px; background: rgba(59,130,246,0.1); color: var(--primary); border-radius: 16px; font-size: 12px; }
.detail-booking-car { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.detail-booking-form { display: flex; flex-direction: column; gap: 10px; }
.detail-booking-form input {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}
.detail-booking-form button {
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

/* 免责声明 */
.detail-disclaimer { font-size: 12px; color: var(--text-light); line-height: 1.8; }

/* 底部固定栏 */
.detail-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    background: white;
    border-top: 1px solid var(--border);
    z-index: 100;
}
.detail-bottom-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.detail-bottom-btn.detail-btn-consult { background: var(--bg); color: var(--text); }
.detail-bottom-btn.detail-btn-call-bottom { background: var(--primary); color: white; }

/* 弹窗 */
.detail-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
}
.detail-modal-overlay.show { display: flex; }
.detail-modal-content {
    background: white;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    position: relative;
}
.detail-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-modal-title { font-size: 18px; font-weight: 600; text-align: center; margin-bottom: 20px; }
.detail-form-group { margin-bottom: 16px; }
.detail-form-group label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--text-light); }
.detail-form-group input, .detail-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}
.detail-form-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

/* ===== 热搜榜 ===== */
.rank-banner {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.rank-banner h2 { font-size: 24px; margin-bottom: 8px; }
.rank-banner p { font-size: 12px; opacity: 0.8; letter-spacing: 4px; }

.rank-list { padding: 16px; }
.rank-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    border: 1px solid var(--border);
}
.rank-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.rank-num.red { background: #fee2e2; color: #dc2626; }
.rank-num.orange { background: #ffedd5; color: #ea580c; }
.rank-num.yellow { background: #fef3c7; color: #a16207; }
.rank-num.gray { background: var(--bg); color: var(--text-light); }

.rank-img { flex-shrink: 0; }
.rank-img svg { border-radius: 6px; }
.rank-info { flex: 1; min-width: 0; }
.rank-info .name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.rank-info .area { font-size: 13px; color: var(--text-light); margin-bottom: 6px; }

/* ===== 房产资讯 ===== */
.news-search { padding: 12px 16px; background: white; border-bottom: 1px solid var(--border); }

.hot-news {
    padding: 16px;
    background: white;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.hot-news h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.hot-news .meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-light); }
.hot-news .meta .tag { color: var(--primary); }

.news-tabs {
    display: flex;
    background: white;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
}
.news-tabs span {
    padding: 12px 0;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.news-tabs span.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }

.news-list { padding: 0 16px; }
.news-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.news-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.news-content { flex: 1; }
.news-content h4 { font-size: 14px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.news-content .meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-light); }

.news-detail { padding: 20px; background: white; min-height: 100vh; }
.news-detail h1 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.news-detail .meta { display: flex; gap: 12px; font-size: 13px; color: var(--text-light); margin-bottom: 20px; }
.news-detail .content { font-size: 15px; line-height: 1.8; }
.news-detail .content p { margin-bottom: 16px; }

/* ===== 帮我找房 ===== */
.find-banner {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 22px;
    font-weight: 700;
}
.find-form { padding: 20px 16px; }
.form-group { margin-bottom: 24px; }
.form-label { font-size: 16px; font-weight: 600; margin-bottom: 12px; }

.slider-container { padding: 10px 0; }
.slider-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.slider-track {
    position: relative;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    cursor: pointer;
}
.slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    width: 0%;
}
.slider-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    cursor: grab;
    z-index: 2;
}
.slider-thumb .tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}
.slider-hint { font-size: 12px; color: var(--text-light); margin-top: 8px; text-align: center; }

.area-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.area-item {
    padding: 10px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.area-item.active { background: var(--primary); color: white; border-color: var(--primary); }

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

/* ===== 筛选面板 ===== */
.filter-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
}
.filter-panel.show { display: block; }
.filter-panel-content {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    background: white;
    padding: 16px;
    max-height: 50vh;
    overflow-y: auto;
}
.filter-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-top: 1px solid var(--border);
}
.filter-actions button { flex: 1; padding: 12px; border-radius: 8px; border: none; font-size: 14px; cursor: pointer; }
.btn-reset { background: var(--bg); color: var(--text); }
.btn-confirm { background: var(--primary); color: white; }

/* ===== Toast ===== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 24px;
    background: rgba(0,0,0,0.8);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.toast.show { opacity: 1; }

/* ===== 浮动按钮 ===== */
.float-btns {
    position: fixed;
    right: 16px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99;
}
.float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    border: none;
}
.float-btn.primary { background: var(--primary); color: white; }
.float-btn.success { background: var(--success); color: white; }

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

/* ===== 响应式 ===== */
@media (max-width: 375px) {
    .quick-nav { gap: 8px; padding: 12px; }
    .quick-icon { width: 44px; height: 44px; font-size: 20px; }
}
