/* 合作商工作台页面样式 */
.cooperation-main {
    padding: 20px;
    background-color: #f5f5f5;
    min-height: calc(100vh - 40px);
}

/* 头部样式 */
.cooperation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cooperation-header h1 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.cooperation-actions {
    display: flex;
    gap: 10px;
}

.cooperation-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.add-btn {
    background-color: #FF9800;
    color: white;
}

.invite-btn {
    background-color: #2196F3;
    color: white;
}

.export-btn {
    background-color: #4CAF50;
    color: white;
}

.cooperation-actions button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 标签页样式 */
.cooperation-tabs {
    display: flex;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tab {
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab:hover {
    color: #FF9800;
    background-color: #f9f9f9;
}

.tab.active {
    color: #FF9800;
    border-bottom-color: #FF9800;
    background-color: #FFF8E1;
}

/* 数据概览卡片 */
.overview-section {
    margin-bottom: 20px;
}

.overview-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.overview-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.overview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.overview-card h3 {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px 0;
}

.card-value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.card-trend {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-trend.up {
    color: #4CAF50;
}

.card-trend.down {
    color: #F44336;
}

/* 图表区域 */
.chart-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h2 {
    font-size: 18px;
    margin: 0;
    color: #333;
}

.time-filter {
    display: flex;
    gap: 10px;
}

.time-btn {
    padding: 6px 12px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

.time-btn:hover {
    background-color: #e0e0e0;
}

.time-btn.active {
    background-color: #FF9800;
    color: white;
}

.chart-container {
    position: relative;
    height: 230px;
}

.chart-inner {
    height: 200px;
    position: relative;
}

.chart-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
    padding-bottom: 30px;
}

.chart-bar-group {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    height: 100%;
    width: 60px;
}

.chart-bar-group .bar-1 {
    width: 20px;
    background-color: #FF9800;
    border-radius: 4px 4px 0 0;
}

.chart-bar-group .bar-2 {
    width: 20px;
    background-color: #2196F3;
    border-radius: 4px 4px 0 0;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 12px;
    color: #888;
}

.chart-legend {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

/* 搜索和筛选区域 */
.search-filter-section {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-box input:focus {
    border-color: #FF9800;
    outline: none;
}

.search-btn {
    padding: 0 15px;
    background-color: #FF9800;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background-color: #F57C00;
}

.filter-options {
    display: flex;
    gap: 15px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-item label {
    font-size: 14px;
    color: #666;
}

.filter-item select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    min-width: 120px;
}

/* 表格样式 */
.cooperation-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cooperation-table table {
    width: 100%;
    border-collapse: collapse;
}

.cooperation-table th {
    background-color: #f5f5f5;
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    position: relative;
}

.cooperation-table th:after {
    content: '↓';
    position: absolute;
    right: 10px;
    opacity: 0.3;
}

.cooperation-table th.sort-asc:after {
    content: '↑';
    opacity: 1;
    color: #FF9800;
}

.cooperation-table th.sort-desc:after {
    content: '↓';
    opacity: 1;
    color: #FF9800;
}

.cooperation-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.cooperation-table tr:hover {
    background-color: #f9f9f9;
}

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

.status-normal, .status-expiring, .status-terminated {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-normal {
    background-color: #E8F5E9;
    color: #4CAF50;
}

.status-expiring {
    background-color: #FFF8E1;
    color: #FFC107;
}

.status-terminated {
    background-color: #FFEBEE;
    color: #F44336;
}

.action-links {
    display: flex;
    gap: 10px;
}

.action-links a {
    color: #2196F3;
    text-decoration: none;
    font-size: 14px;
}

.action-links a:hover {
    text-decoration: underline;
}

/* 分页样式 */
.cooperation-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.cooperation-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

.cooperation-pagination .prev-page,
.cooperation-pagination .next-page {
    width: auto;
    padding: 0 15px;
}

.cooperation-pagination a:hover {
    background-color: #f1f1f1;
}

.cooperation-pagination a.active {
    background-color: #FF9800;
    color: white;
}

.cooperation-pagination .page-info {
    margin-left: 15px;
    font-size: 13px;
    color: #888;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .overview-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cooperation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .filter-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .cooperation-table {
        overflow-x: auto;
    }
    
    .overview-cards {
        grid-template-columns: 1fr;
    }
} 