/* 分成率页面样式 */

/* 页面标题区域 */
.fcl-page-title {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
}
.fcl-page-title .box{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.title-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.category-code {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px 30px;
    border-radius: 10px;
    font-size: 24px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.title-text h1 {
    font-size: 28px;
    margin: 0 0 5px 0;
}

.title-text p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.category-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1;
}

/* 分成率页面主体 */

.commission-page .box {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.commission-main {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.commission-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 图表区域 */

.chart-section {
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 20px;
    color: #333;
}

.chart-tabs {
    display: flex;
    gap: 8px;
    background: #f5f5f5;
    padding: 5px;
    border-radius: 8px;
}

.chart-tab {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.chart-tab.active,
.chart-tab:hover {
    background: white;
    color: #2196F3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-container {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px 0px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}




/* 表格区域 */


.table-container {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #2196F3 #f0f0f0;
}

.commission-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.commission-table thead {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.commission-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
}

.commission-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.commission-table tbody tr:hover {
    background: #f9f9f9;
}

.commission-table td {
    padding: 15px 12px;
}

.rate-high {
    color: #10b981;
    font-weight: 700;
}

.rate-medium {
    color: #f59e0b;
    font-weight: 700;
}



/* 图表数据同步表格 */
.chart-data-table {
    margin-top: 20px;
    width: 100%;
}
.chart-data-table table {
    border-collapse: collapse;
    width: 100%;
}

.chart-data-table th,
.chart-data-table td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
    font-size: 14px;
    white-space: nowrap;
}

.chart-data-table th {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    font-weight: 600;
}

.chart-data-table tr:hover {
    background: #f9f9f9;
}

.chart-data-table .date {
    color: #666;
    font-weight: 500;
}

.chart-data-table .rate {
    font-weight: 700;
    color: #2196F3;
}



/* 侧边栏 */
.sidebar-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.section-title h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
}

/* 侧边栏分成率卡片 */
.sidebar-rate-card {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    border-radius: 12px;
    padding: 24px;
    color: white;
    box-shadow: 0 4px 16px rgba(26, 115, 232, 0.35);
    position: relative;
    overflow: hidden;
}

.sidebar-rate-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.sidebar-rate-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.rate-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.rate-card-header i {
    font-size: 16px;
}

.rate-card-body {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

.rate-card-value {
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.rate-card-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.rate-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4fc3f7, #ffffff);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.rate-card-time {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 12px;
    opacity: 0.75;
    position: relative;
    z-index: 1;
}

/* 分类列表 */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 10px;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 7px;
    background: #f9f9f9;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.category-link:hover {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    transform: translateX(5px);
}

.cat-code {
    font-weight: 700;
    font-size: 14px;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 6px;
    color: #666;
}

.category-name {
    flex: 1;
    margin: 0 15px;
    font-size: 14px;
}

.category-rate {
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-link:hover .category-rate {
    color: white;
    -webkit-text-fill-color: white;
}

/* 地区分成率区域 */
.region-section {
    margin-bottom: 30px;
}

.view-toggle {
    display: flex;
    gap: 8px;
    background: #f5f5f5;
    padding: 5px;
    border-radius: 8px;
}

.view-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-btn.active,
.view-btn:hover {
    background: white;
    color: #2196F3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 地图模式 */
.region-map-container {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
}


/* 表格模式 */
.region-table-container {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.region-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.region-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.region-card-header {
    padding: 10px 12px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.region-name {
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.region-card-body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.region-data-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}



.rd-value {
    font-size: 16px;
    font-weight: 700;
    color: #ef4444;
}

.rd-value.high {
    color: #10b981;
}

.rd-value.medium {
    color: #f59e0b;
}

.rd-value.low {
    color: #ef4444;
}

.rd-date {
    font-size: 11px;
    color: #999;
}
/* 响应式设计 */
@media (max-width: 960px) {
    .fcl-page-title{
        padding: 20px 0;
    }
    .title-content {
        flex-wrap: wrap;
    }
    .category-code {
        padding: 15px 25px;
        font-size: 20px;
    }
    .title-text h1 {
        font-size: 18px;
    }
    .title-text p{
        font-size: 10px;
    }
    .sidebar-rate-card {
        padding: 18px;
    }
    .rate-card-value {
        font-size: 40px;
    }
    .category-meta {
        gap: 10px;
    }
    .meta-item{
        font-size: 12px;
    }
    .commission-page .box {
        grid-template-columns: 1fr;
    }
    .commission-main{
        padding: 20px;
    }

    #trendChart{
        height: 260px !important;
    }

    .chart-data-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #2196F3 #f0f0f0;
    }
    .chart-data-table table {
        min-width: 500px;
    }
    .view-toggle{
        display: none;
    }
    .region-map-container{
        display: none;
    }
    .region-table-container{
        display: block !important;
        padding: 10px;
    }
    .region-grid{
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .commission-table{
        min-width: 600px;
    }
    


}
