


:root {
    --fangjia-brand:        #2B57A5;  
    --fangjia-hover-bg:     #f0f6ff;  
    --fangjia-rank-border:  #C8D5EF;  
    --fangjia-rank-color:   #1A4A7B;  
    --fangjia-icon-bg:      #f4f6fa;  
    --fangjia-icon-hover:   #e6ebf5;  
}

.mobile-fangjia-page,
.mobile-fangjia-region-page,
.mobile-fangjia-year-page {
    min-height: 100vh;
    background: var(--bg-light);
}


.hidden {
    display: none !important;
}


.page-header-mobile {
    background: #fff;
    padding: 16px;
    text-align: center;
}

.page-title-mobile {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}


.filter-bar-mobile {
    background: #fff;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.filter-row-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}


.filter-row-horizontal-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

.filter-row-horizontal-mobile .btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 12px;
}

.month-picker-wrapper-mobile {
    flex-shrink: 0;
}

.month-picker-wrapper-mobile .btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
}



.month-picker-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.month-picker-year {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.month-picker-nav-btn {
    padding: 6px 12px;
    background: var(--bg-gray-th-2);
    border: 1px solid var(--border-color-dark);
    border-radius: var(--border-radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s;
}

.month-picker-nav-btn:hover {
    background: var(--bg-hover);
}

.month-picker-nav-btn .iconfont {
    font-size: 12px;
}

.month-picker-grid-mobile {
    display: block;
}

#monthPickerGrid.row {
    margin: 0;
}

#monthPickerGrid .col-4 {
    padding: 0 4px;
    margin-bottom: 8px;
}

#monthPickerGrid .btn {
    width: 100%;
    padding: 10px 8px;
    font-size: 14px;
    border-radius: var(--border-radius-md);
}

.region-type-tabs-mobile {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.region-type-tab {
    padding: 6px 16px;
    background: var(--bg-gray-th-2);
    border-radius: var(--border-radius-md);
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s;
}

.region-type-tab.active {
    background: var(--fangjia-brand);
    border-color: var(--fangjia-brand);
    color: #fff;
}


.ranking-table-mobile {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    min-height: 400px;
}

.table-header-mobile {
    background: var(--bg-gray-th-2);
    border-bottom: 1px solid var(--border-color-dark);
}

.table-header-row-mobile {
    display: flex;
}

.table-header-cell-mobile {
    padding: 10px 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    border-right: 1px solid var(--border-color-dark);
}



.table-header-cell-mobile:last-child {
    border-right: none;
}

.unit-label-mobile {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: normal;
    display: block;
    margin-top: 2px;
}

.table-body-mobile {
    
}

.table-row-mobile {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.table-row-mobile:last-child {
    border-bottom: none;
}

.table-row-mobile:nth-child(even) {
    background: var(--bg-gray-th-2);
}

.table-cell-mobile {
    padding: 10px 4px;
    font-size: 12px;
    color: var(--text-dark);
    text-align: center;
    border-right: 1px solid var(--border-color);
    word-break: break-word;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-cell-mobile:last-child {
    border-right: none;
}

.rank-badge-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--border-radius-md);
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-hover);
    color: var(--text-muted);
}

.rank-badge-mobile.rank-top {
    background: var(--fangjia-brand);
    color: #fff;
}


.indicator-value-mobile.price-up {
    color: #BA2A20;
}

.indicator-value-mobile.price-down {
    color: #0A7C4E;
}

.view-full-ranking-mobile {
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    margin: 12px;
}


.fullscreen-modal-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.fullscreen-modal-mobile.open {
    opacity: 1;
}

.fullscreen-modal-content-mobile {
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s;
    overflow: hidden;
}

.fullscreen-modal-mobile.open .fullscreen-modal-content-mobile {
    transform: translateY(0);
}

.fullscreen-modal-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    flex-shrink: 0;
    z-index: 10;
}

.fullscreen-modal-header-mobile h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.modal-actions-mobile {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.fullscreen-modal-body-mobile {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}


body.modal-open {
    overflow: hidden !important;
}


.fullscreen-modal-body-mobile .ranking-table-wrapper {
    margin-bottom: 0;
}

.fullscreen-modal-body-mobile .ranking-table {
    margin-bottom: 0;
}

.fullscreen-modal-body-mobile .hidden {
    display: block !important;
}


.region-header-card-mobile {
    background: #fff;
    padding: 16px 16px 0;
}

.region-header-content-mobile {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
}

.region-thumbnail-mobile {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.region-thumbnail-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.region-info-mobile {
    flex: 1;
    min-width: 0;
}

.region-title-row-mobile {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.region-title-mobile {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.region-actions-mobile {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.region-actions-mobile .btn {
    line-height: 1;
    font-size: 13px;
    padding: 4px 6px;
}

.region-actions-mobile .btn .iconfont {
    font-size: 15px;
}

.region-meta-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
}

.meta-item-mobile {
    font-size: 12px;
    color: var(--text-muted);
}


.region-rank-link-mobile {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 11px;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--fangjia-rank-border);
    color: var(--fangjia-rank-color);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.region-rank-link-mobile:active {
    opacity: 0.75;
}


.price-indicators-mobile {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
}

.section-title-mobile {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 14px 0;
}

.indicators-grid-mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.indicator-card-mobile {
    padding: 14px 12px;
    background: var(--bg-gray-th-2);
    border-radius: 8px;
}

.indicator-label-mobile {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.4;
}

.indicator-value-mobile {
    font-size: 20px;
    font-weight: 700;
    color: var(--fangjia-brand);
    margin-bottom: 6px;
    line-height: 1.2;
}

.indicator-value-mobile.price-highlight {
    color: #333333;
}

.unit-mobile {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: normal;
    margin-left: 2px;
}

.indicator-change-mobile {
    font-size: 12px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.indicator-change-mobile .iconfont {
    font-size: 10px;
}

.indicator-change-mobile .change-label {
    color: var(--text-muted);
}

.indicator-change-mobile .price-up {
    color: #BA2A20;
    font-weight: 600;
}

.indicator-change-mobile .price-down {
    color: #0A7C4E;
    font-weight: 600;
}

.indicator-note-mobile {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

.indicator-meta-mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.indicator-meta-mobile .meta-item-mobile {
    font-size: 13px;
    color: var(--text-muted);
}

.other-indicators-mobile {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.other-indicators-title-mobile {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 12px 0;
    font-weight: 500;
}


.chart-section-mobile {
    background: #fff;
}

.chart-controls-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.chart-controls-row-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.chart-type-btns-mobile {
    display: flex;
    gap: 0;
    align-items: center;
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.chart-type-btn {
    flex: 0 0 auto;
    min-width: 50px;
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-color-dark);
    border-radius: 0;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    transition: all 0.2s;
}

.chart-type-btn:last-child {
    border-right: none;
}

.chart-type-btn:hover {
    background: rgba(43, 87, 165, 0.08);
    color: var(--fangjia-brand);
}

.chart-type-btn.active {
    background: var(--fangjia-brand);
    color: #fff;
    border-radius: var(--border-radius-md);
}

.chart-action-btns-mobile {
    display: flex;
    gap: 6px;
    align-items: center;
}

.chart-save-btn {
    padding: 5px 10px;
    background: #fff;
    border: 1px solid var(--fangjia-brand);
    border-radius: var(--border-radius-sm);
    color: var(--fangjia-brand);
    font-size: 12px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all 0.2s;
}

.chart-save-btn:hover {
    background: var(--fangjia-brand);
    color: #fff;
}

.chart-save-btn .iconfont {
    font-size: 11px;
}

.chart-selector-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-gray-th-2);
    border-radius: var(--border-radius-sm);
}

.chart-selector-mobile label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.chart-selector-mobile .form-select {
    flex: 1;
    font-size: 12px;
    padding: 4px 8px;
    border-color: var(--border-color-dark);
    background-color: #fff; 
}

.chart-wrapper-mobile {
    position: relative;
    width: 100%;
    height: 240px;
}

.chart-wrapper-mobile canvas {
    max-width: 100%;
    height: 100% !important;
}

.chart-range-controls-mobile {
    padding: 0 10px 16px;
}

.range-label-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.range-value-mobile {
    color: var(--fangjia-brand);
    font-weight: 600;
}


.section-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 10px;
}

.section-header-mobile .section-title-mobile {
    margin-bottom: 0;
    flex-shrink: 0;
}

.section-header-data-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background-color: #ffffff;
}

.section-title-data-mobile {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
}

.data-actions-mobile {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.data-actions-mobile .btn {
    padding: 5px 10px;
    font-size: 12px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.data-actions-mobile .btn .iconfont {
    font-size: 12px;
}

.data-table-mobile {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.more-years-mobile {
    margin-top: 8px;
    padding: 12px 10px 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.year-link-mobile {
    display: inline-block;
    padding: 3px 10px;
    background: transparent;
    border: 1px solid var(--fangjia-rank-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    font-family: var(--font-ui);
    font-feature-settings: "tnum" on, "lnum" on;
    transition: color 0.15s, border-color 0.15s;
}

.year-link-mobile:active,
.year-link-mobile:hover {
    color: var(--fangjia-rank-color);
    border-color: var(--fangjia-rank-border);
}


.expand-all-years-mobile {
    text-align: center;
    padding: 16px 0 4px;
}
.expand-all-years-btn-mobile {
    background: none;
    border: none;
    color: #86909c;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 6px 20px;
    display: inline-block;
}
.expand-all-years-btn-mobile:hover,
.expand-all-years-btn-mobile:active {
    color: var(--fangjia-brand, #1a4fbe);
}






#housePriceRankingForecastResultModal .table {
    table-layout: fixed;
    width: 100%;
}

#housePriceRankingForecastResultModal .table td,
#housePriceRankingForecastResultModal .table th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px 4px;
    font-size: 12px;
}


.empty-state-mobile {
    text-align: center;
    padding: 48px 20px;
    background: #fff;
    border-radius: 8px;
    margin: 12px 16px;
}

.empty-icon-mobile {
    font-size: 56px;
    color: var(--border-color-dark);
    margin-bottom: 16px;
}

.empty-text-mobile {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}


.sub-region-ranking-mobile {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}


.ranking-table-wrapper {
    background: #fff;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.ranking-table {
    width: 100%;
    min-width: 500px;
    font-size: 12px;
    border-collapse: collapse;
    margin-bottom: 0;
}

.ranking-table thead {
    background: var(--bg-gray-th-2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.ranking-table thead th {
    padding: 10px 4px;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color-dark);
    font-size: 12px;
}

.ranking-table tbody td {
    padding: 10px 4px;
    text-align: center;
    vertical-align: middle;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.ranking-table tbody tr:nth-of-type(odd) {
    background: var(--bg-gray-th-2);
}

.ranking-table tbody tr:hover {
    background: var(--fangjia-hover-bg);
}

.ranking-table tbody tr:last-child td {
    border-bottom: none;
}


.ranking-table thead th:nth-child(1),
.ranking-table tbody td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 5;
    min-width: 40px;
    width: 40px;
}

.ranking-table thead th:nth-child(2),
.ranking-table tbody td:nth-child(2) {
    position: sticky;
    left: 40px;
    z-index: 5;
    min-width: 60px;
    max-width: 90px;
    box-shadow: 2px 0 4px -2px rgba(0, 0, 0, 0.08);
}


.ranking-table thead th:nth-child(1),
.ranking-table thead th:nth-child(2) {
    z-index: 11;
    background: var(--bg-gray-th-2);
}


.ranking-table tbody tr:nth-of-type(odd) td:nth-child(1),
.ranking-table tbody tr:nth-of-type(odd) td:nth-child(2) {
    background: var(--bg-gray-th-2);
}
.ranking-table tbody tr:nth-of-type(even) td:nth-child(1),
.ranking-table tbody tr:nth-of-type(even) td:nth-child(2) {
    background: #fff;
}
.ranking-table tbody tr:hover td:nth-child(1),
.ranking-table tbody tr:hover td:nth-child(2) {
    background: var(--fangjia-hover-bg);
}


.ranking-table .rank-number {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}


.ranking-table tbody tr:nth-child(1) .rank-number,
.ranking-table tbody tr:nth-child(2) .rank-number,
.ranking-table tbody tr:nth-child(3) .rank-number {
    color: var(--fangjia-brand);
    font-weight: 600;
}


.ranking-table .city-link-mobile {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

.ranking-table .city-link-mobile:hover {
    color: var(--fangjia-brand);
}


.ranking-table .price-highlight {
    color: #333333;
    font-weight: 500;
}


.ranking-table .price-up {
    color: #BA2A20;
}

.ranking-table .price-down {
    color: #0A7C4E;
}



.house-price-data-table-wrapper {
    max-height: 500px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--border-radius-md);
}

.house-price-data-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
    margin-bottom: 0;
}

.house-price-data-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-gray-th-2);
}

.house-price-data-table thead th {
    padding: 10px 5px;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color-dark);
    min-width: 80px;
}

.house-price-data-table thead th:first-child {
    min-width: 80px;
    padding: 10px 8px;
}

.house-price-data-table thead th small {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    font-weight: normal;
    margin-top: 2px;
}

.house-price-data-table tbody td {
    padding: 8px;
    text-align: center;
    vertical-align: middle;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.house-price-data-table tbody td:first-child {
    white-space: nowrap;
}

.house-price-data-table tbody tr:nth-of-type(odd) {
    background: var(--bg-gray-th-2);
}

.house-price-data-table tbody tr:hover {
    background: var(--fangjia-hover-bg);
}


@media (max-width: 375px) {
    .region-title-mobile {
        font-size: 15px;
    }
    
    .region-thumbnail-mobile {
        width: 60px;
        height: 60px;
    }
    
    .chart-controls-row-mobile {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .chart-type-btn {
        min-width: 44px;
        font-size: 11px;
        padding: 5px 8px;
    }
    
    .chart-save-btn {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .chart-action-btns-mobile {
        gap: 4px;
    }
    
    .indicator-value-mobile {
        font-size: 18px;
    }
    
    .section-header-mobile {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .data-actions-mobile {
        width: 100%;
        justify-content: flex-start;
    }
    
    .data-actions-mobile .btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 320px) {
    .indicators-grid-mobile {
        grid-template-columns: 1fr;
    }
    
    .region-actions-mobile .btn {
        width: 28px;
        height: 28px;
    }
    
    .region-actions-mobile .btn .iconfont {
        font-size: 14px;
    }
    
    .chart-type-btns-mobile {
        flex-wrap: wrap;
    }
}


.housing-ranking-table-mobile {
    width: 100%;
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.housing-ranking-table-mobile a{
    color: var(--color-link);
}

.housing-ranking-table-mobile table {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
}

.housing-ranking-table-mobile thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-gray-th-2);
}

.housing-ranking-table-mobile th {
    background: var(--bg-gray-th-2);
    padding: 10px 8px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color-dark);
    font-size: 13px;
    text-align: center;
}

.housing-ranking-table-mobile td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    text-align: center;
}

.housing-ranking-table-mobile tbody tr:nth-of-type(odd) {
    background: var(--bg-gray-th-2);
}

.housing-ranking-table-mobile tbody tr:hover {
    background: var(--fangjia-hover-bg);
}

.housing-ranking-table-mobile .text-danger {
    color: #BA2A20 !important;
    font-weight: 600;
}

.housing-ranking-table-mobile .text-success {
    color: #0A7C4E !important;
}

.housing-ranking-table-mobile a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

.housing-ranking-table-mobile a:hover {
    color: var(--fangjia-brand);
}




.table-scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}



.drawer-form-label {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: var(--text-dark);
}


.drawer-form-tip {
    font-size: 12px;
    font-weight: normal;
    color: var(--text-muted);
}


.input-narrow {
    width: 60px;
}


.drawer-unit {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}
.drawer-form-label--mb8 { margin-bottom: 8px; }


.price-up       { color: #BA2A20; }
.price-down     { color: #0A7C4E; }
.price-highlight{ color: #333333; }


.data-table-section-mobile {
    background: #fff;
    padding: 16px 0;
}
.data-table-section-mobile .data-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
    margin-bottom: 4px;
}
.data-table-section-mobile .data-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}
.data-table-section-mobile .table-note {
    font-size: 12px;
    color: var(--text-light);
    padding: 4px 10px 8px;
}


.chart-type-links-region {
    padding-left: 4px;
    margin-bottom: 0;
}


.chart-data-ops-btn {
    margin-left: auto;
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    padding: 4px 12px 8px;
    margin-bottom: -1px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-ui);
    flex-shrink: 0;
}

.chart-data-ops-btn .iconfont {
    font-size: 13px;
    margin-right: 3px;
    vertical-align: middle;
}


.range-label-mobile-slider {
    padding: 0 10px;
}



.drawer-group-title {
    font-size: 13px;
    color: var(--text-muted);
    margin: 16px 0 8px;
    font-weight: 500;
}
.drawer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.drawer-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 8px 0;
    color: var(--text-dark);
    font-size: 12px;
    cursor: pointer;
}
.drawer-grid-item:active .drawer-icon-box { background: var(--fangjia-icon-hover); }
.drawer-icon-box {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--fangjia-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.drawer-icon-box .iconfont {
    font-size: 22px;
    color: var(--fangjia-brand);
}
.drawer-list { display: flex; flex-direction: column; }
.drawer-list-item {
    display: block;
    width: 100%;
    padding: 14px 16px;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
}
.drawer-list-item.active { color: var(--fangjia-brand); font-weight: 600; }
.drawer-list-item:last-child { border-bottom: none; }


.pro-quote-panel-wrapper {
    background: #fff;
}
.pro-quote-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 10px;

}
.pro-quote-item {
    padding: 12px 12px 12px 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}




.pro-quote-item:nth-child(odd) {
    border-right: 1px solid var(--border-color);
}
.pro-quote-item:nth-child(even) {
    border-right: none;
}
.pro-quote-item {
    border-bottom: 1px solid var(--border-color);
}
.pro-quote-item:last-child,
.pro-quote-item:nth-child(odd):nth-last-child(2) {
    border-bottom: none;
}

.pro-quote-item:nth-child(odd):last-child {
    border-right: none;
}
.pro-quote-label {
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pro-quote-value-group {
    display: flex;
    align-items: baseline;
    gap: 3px;
    flex-wrap: wrap;
}
.pro-quote-value {
    font-size: 22px;
    font-weight: 600;
    font-family: var(--font-ui);
    font-feature-settings: "tnum" on, "lnum" on;
    line-height: 1.2;
    color: var(--text-dark);
}
.pro-quote-value.price-up   { color: #BA2A20; }
.pro-quote-value.price-down { color: #0A7C4E; }
.pro-quote-unit {
    font-size: 11px;
    color: var(--text-gray);
    flex-shrink: 0;
}
.pro-quote-change {
    font-size: 12px;
    font-weight: 500;
    margin-top: 10px;
    color: var(--text-muted);
}

.pro-quote-extreme-date {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
}
.pro-quote-remark {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-light);
    padding: 8px 14px;
    line-height: 1.6;
    background: #f9f9f9;
    border-radius: 4px;
}


.pro-quote-panel-wrapper > .pro-quote-remark {
    margin: 0 10px;
}
.pro-quote-remark-gap {
    display: inline-block;
    width: 1.5em;
}



.pro-quote-note {
    font-size: 12px;
    color: var(--text-dark);
    margin-top: 8px;
    line-height: 1.4;
    overflow: hidden;
}


.region-header-bar-mobile {
    display: flex;
    flex-direction: column;
}
.region-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.region-title-left {
    display: flex;
    align-items: end;
    justify-content: start;
    gap: 6px;
    min-width: 0;
}
.region-followers-mobile {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    padding-bottom: 2px;
}
.region-badges-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: center;
    margin-top: 8px;
    padding-bottom: 10px;
}


.fangjia-ops-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 6px 8px;
    line-height: 1;
    background: transparent;
    border: 1px solid var(--fangjia-rank-border);
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    color: var(--fangjia-rank-color);
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: opacity 0.15s;
}
.fangjia-ops-btn:active { opacity: 0.7; }
.fangjia-ops-btn .iconfont { font-size: 11px; }




.region-back-link-mobile {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: var(--text-muted);
    border: 1px solid var(--border-color-dark);
    border-radius: var(--border-radius-sm);
    padding: 3px 8px;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s;
}

.region-back-link-mobile:hover,
.region-back-link-mobile:active {
    color: var(--fangjia-brand);
    border-color: var(--fangjia-brand);
}


.fangjia-picker-btn {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    background: #fff;
    border: 1px solid var(--border-color-dark);
    border-radius: var(--border-radius-md);
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, color 0.15s;
}

.fangjia-picker-btn:hover {
    border-color: var(--fangjia-brand);
    color: var(--fangjia-brand);
}


.fangjia-forecast-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    background: transparent;
    border: 1px solid var(--fangjia-brand);
    border-radius: var(--border-radius-md);
    color: var(--fangjia-brand);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.fangjia-forecast-link:hover {
    background: var(--fangjia-brand);
    color: #fff;
}


.region-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid var(--border-color-dark);
    border-radius: var(--border-radius-md);
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    padding: 0;
    flex-shrink: 0;
}

.region-icon-btn:hover {
    border-color: var(--fangjia-brand);
    color: var(--fangjia-brand);
}



.ranking-forecast-alert {
    display: none;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 12px;
    background: var(--bg-gray-light);
    font-size: 13px;
    color: var(--primary-color);
}

.ranking-forecast-alert.show,
.ranking-forecast-alert:not(.d-none) {
    display: flex !important;
}

.ranking-forecast-alert-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
