/* =========================================================
   V2.41 视觉刷新：清爽商务风（参考商办小程序通行视觉）
   原则：白底 + 蓝色主色 + 清晰层级 + 大圆角卡片 + 柔和阴影
   ========================================================= */

/* ---- 设计 Token 覆盖 ---- */
:root {
    --primary: #1677ff;
    --primary-deep: #0958d9;
    --primary-light: #e8f4ff;
    --success: #52c41a;
    --warning: #faad14;
    --danger: #ff4d4f;
    --purple: #722ed1;
    --text-main: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-page: #f5f7fa;
    --bg-card: #ffffff;
    --border: #eef0f4;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.06);
    --radius: 12px;
    --radius-lg: 16px;
}

body { color: var(--text-main); background: var(--bg-page); }

/* ---- 顶部栏 ---- */
.mini-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    padding: 10px 12px;
    border-radius: 0 0 20px 20px;
}
.mini-header .city {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
    padding: 6px 8px;
    background: rgba(255,255,255,0.12);
    border-radius: 16px;
}
.mini-header .search-box {
    background: #fff;
    border-radius: 24px;
    padding: 5px 5px 5px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    gap: 6px;
}
.mini-header .search-box input { font-size: 14px; color: var(--text-main); }
.mini-header .search-box input::placeholder { color: var(--text-light); }
.mini-header .search-box .search-btn {
    background: var(--primary);
    color: #fff;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    border: none;
}

/* ---- Banner ---- */
.banner-carousel { border-radius: 0 0 20px 20px; }

/* ---- 快捷入口 ---- */
.quick-entries {
    background: #fff;
    border-radius: var(--radius);
    margin: 12px 12px 0;
    padding: 16px 10px;
    box-shadow: var(--shadow);
    gap: 6px;
}
.quick-entry { gap: 8px; }
.quick-entry .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 22px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
/* 柔和色块 */
.quick-entry .icon.find     { background: #e8f4ff; color: #1677ff; }
.quick-entry .icon.publish  { background: #e6ffed; color: #52c41a; }
.quick-entry .icon.entrust  { background: #f3e8ff; color: #9333ea; }
.quick-entry .icon.news     { background: #fff7e6; color: #fa8c16; }
.quick-entry .icon.jobs     { background: #ffe4e6; color: #f43f5e; }
.quick-entry .icon.sv       { background: #e6fffb; color: #08979c; }
.quick-entry .label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

/* ---- 标题栏 ---- */
.section-title {
    font-size: 17px;
    font-weight: 700;
    padding: 16px 12px 10px;
    color: var(--text-main);
}
.section-title .more { color: var(--text-light); font-weight: 400; font-size: 13px; }

/* ---- 房源卡片（横向） ---- */
.property-card {
    border-radius: var(--radius);
    padding: 12px;
    gap: 12px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    background: #fff;
}
.property-card .thumb {
    width: 110px;
    height: 110px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0f7ff, #dbeafe);
    font-size: 40px;
}
.property-card .info .name { font-size: 16px; font-weight: 700; }
.property-card .info .meta { font-size: 12px; color: var(--text-secondary); gap: 8px; }
.property-card .info .tags .tag {
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-size: 11px;
    padding: 2px 7px;
}
.property-card .info .price {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
}
.property-card .info .price .unit { color: var(--text-light); font-weight: 400; }

/* ---- 双列房源卡片 ---- */
.unit-card { border-radius: var(--radius); box-shadow: var(--shadow); }
.unit-thumb {
    height: 130px;
    background: linear-gradient(135deg, #f0f7ff, #dbeafe);
    font-size: 44px;
}
.unit-name { font-size: 15px; font-weight: 700; }
.unit-sub { font-size: 12px; color: var(--text-secondary); }
.unit-tags .tag { background: var(--primary-light); color: var(--primary); }
.unit-price { color: var(--primary); font-size: 17px; font-weight: 700; }
.unit-price span { color: var(--text-light); font-weight: 400; }

/* ---- 底部 TabBar ---- */
.tab-bar {
    height: 58px;
    background: #fff;
    box-shadow: 0 -1px 6px rgba(0,0,0,0.04);
    border-top: 1px solid var(--border);
}
.tab-bar .tab-item { padding: 6px 16px; gap: 2px; }
.tab-bar .tab-item .icon { font-size: 22px; color: var(--text-light); transition: none; }
.tab-bar .tab-item .label { font-size: 11px; color: var(--text-light); }
.tab-bar .tab-item.active .label { color: var(--primary); font-weight: 600; }
.tab-bar .tab-item.active .icon { color: var(--primary); transform: none; }

/* ---- 个人中心 ---- */
.profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    padding: 0;
    border-radius: 0 0 24px 24px;
    text-align: left;
    color: #fff;
}
.profile-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 16px 36px;
}
.profile-header .profile-info { flex: 1; min-width: 0; }
.profile-header .profile-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.profile-header .name {
    font-size: 20px;
    font-weight: 700;
}
.profile-header .role-badge {
    display: inline-block;
    font-size: 11px;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 10px;
    padding: 1px 8px;
}
.profile-header .profile-phone {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    margin-top: 6px;
}
.profile-header .profile-company {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: 3px;
}
.profile-header .avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    font-size: 26px;
    margin: 0;
    flex-shrink: 0;
}

/* 统计卡重叠区域 */
.profile-stats-card {
    background: #fff;
    border-radius: var(--radius);
    margin: -24px 12px 12px;
    padding: 14px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}
.profile-stats-card .stat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0;
}
.profile-stats-card .stat-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 6px;
    box-shadow: none;
    text-align: center;
}
.profile-stats-card .stat-card .stat-value {
    font-size: 20px;
    color: var(--primary);
    font-weight: 700;
}
.profile-stats-card .stat-card .stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 菜单分组 */
.profile-menu {
    background: #fff;
    border-radius: var(--radius);
    margin: 0 12px 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.profile-menu .menu-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.profile-menu .menu-item:last-child { border-bottom: none; }
.profile-menu .menu-item .icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
}
.profile-menu .menu-item .text { font-size: 15px; color: var(--text-main); font-weight: 500; }
.profile-menu .menu-item .arrow { color: var(--text-light); }

.profile-logout { padding: 0 12px 20px; }
.profile-logout .btn {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ---- 通用卡片 ---- */
.card {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #fff;
}

/* ---- 详情页价格 ---- */
.detail-price-main .num { color: var(--primary); }

/* ---- 全局价格色（兜底） ---- */
.price { color: var(--primary); font-weight: 700; }

/* ---- V2.42 资讯页二级 Tab ---- */
.news-subtabs {
    display: flex;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.news-subtab {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 14px;
    color: var(--text-secondary);
    position: relative;
    cursor: pointer;
    transition: color 0.2s;
}
.news-subtab.active {
    color: var(--primary);
    font-weight: 600;
}
.news-subtab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.news-subtab-dot {
    position: absolute;
    top: 12px;
    right: calc(50% - 28px);
    width: 6px;
    height: 6px;
    background: #ff4d4f;
    border-radius: 50%;
}
.news-list { padding: 10px; }
.news-list .news-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 10px;
    padding: 14px;
}

/* ==================== V2.43 企服 Tab（原增值服务） ==================== */
.sv-banner {
    margin: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1677ff, #0958d9);
    color: #fff;
    padding: 18px 16px;
    box-shadow: 0 4px 12px rgba(22, 119, 255, .2);
}
.sv-banner-title { font-size: 18px; font-weight: 700; }
.sv-banner-sub { font-size: 12px; opacity: .85; margin-top: 4px; }
.sv-cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 10px;
}
.sv-cat-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #f0f2f5;
    box-shadow: 0 2px 8px rgba(31, 45, 61, .06);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.sv-cat-card:active { transform: scale(.98); }
.sv-cat-icon { font-size: 28px; }
.sv-cat-name { font-weight: 600; font-size: 14px; margin-top: 6px; color: var(--text, #333); }
.sv-cat-desc { font-size: 11px; color: #999; margin-top: 2px; line-height: 1.5; }
.sv-cat-more { font-size: 11px; color: var(--primary, #1677ff); margin-top: 6px; }
.sv-subtabs {
    display: flex;
    background: #fff;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 10px;
    border: 1px solid #f0f2f5;
}
.sv-subtab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
}
.sv-subtab.active { background: var(--primary, #1677ff); color: #fff; font-weight: 600; }
.sv-quote-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid #f0f2f5;
}
.sv-quote-info { flex: 1; min-width: 0; }
.sv-quote-name { font-weight: 600; font-size: 13px; color: #333; }
.sv-quote-spec { font-size: 11px; color: #999; margin-top: 2px; line-height: 1.5; }
.sv-quote-price { text-align: right; flex-shrink: 0; }
.sv-quote-amount { color: var(--primary, #1677ff); font-weight: 700; font-size: 15px; }
.sv-quote-points { font-size: 10px; color: #fa8c16; margin-top: 2px; }
.sv-provider-card {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid #f0f2f5;
}
.sv-provider-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f0f5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.sv-tag {
    display: inline-block;
    background: #f0f5ff;
    color: var(--primary, #1677ff);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 8px;
    margin-right: 6px;
}
.sv-consult-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    margin-top: 12px;
    border: 1px solid #f0f2f5;
}
.mini-header .back { margin-right: 8px; font-size: 14px; cursor: pointer; opacity: .92; }
