/* 页面容器 */
/* 覆盖 college-list.css 中的全局样式（产业地图没有侧边栏） */
body {
    padding-left: 0 !important;
}

.main-content {
    padding: 0 !important;
    min-height: auto !important;
}

.map-page-container {
    padding: 20px;
    background: var(--bg-primary);
    min-height: calc(100vh - 180px);
}

/* 电脑端：主内容区域宽度为屏幕宽度的80% */
@media (min-width: 1200px) {
    .map-page-container {
        width: 80%;
        margin: 0 auto;
    }
    
}

/* 主卡片容器 */
.main-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* 卡片头部 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: white;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title-icon {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

.header-tabs {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 16px;
}

.header-tabs .filter-tabs {
    display: flex;
    gap: 4px;
    background: #f5f7fa;
    padding: 4px;
    border-radius: 8px;
}

.header-tabs .filter-tab {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    color: #606266;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-tabs .filter-tab.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.realtime-badge {
    padding: 4px 12px;
    background: #f5f7fa;
    border-radius: 20px;
    font-size: 12px;
    color: #909399;
    display: flex;
    align-items: center;
    gap: 6px;
}

.realtime-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #67c23a;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}


/* 内容区域 */
.card-content {
    display: flex;
    min-height: 600px;
}

/* 左侧地图区域 */
.map-section {
    width: 70%;
    padding: 16px;
    border-right: 1px solid #f0f0f0;
    position: relative;
}

#chinaMap {
    width: 100%;
    height: 560px;
}

/* 右侧排名区域 */
.ranking-section {
    width: 30%;
    height: 560px;
    min-width: 300px;
    padding: 16px 18px;
    background: #fafbfc;
    overflow-y: hidden;
}

/* .ranking-title 已移除 */

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.ranking-item:hover {
    background: #f0f4ff;
    border-color: #d4dff7;
    transform: translateX(3px);
}

.ranking-number {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.ranking-item:nth-child(1) .ranking-number {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: white;
}

.ranking-item:nth-child(2) .ranking-number {
    background: linear-gradient(135deg, #c0c4cc 0%, #909399 100%);
    color: white;
}

.ranking-item:nth-child(3) .ranking-number {
    background: linear-gradient(135deg, #e6a23c 0%, #d4873a 100%);
    color: white;
}

.ranking-item:nth-child(n+4) .ranking-number {
    background: #f5f7fa;
    color: #909399;
}

.ranking-city-info {
    flex: 1;
    min-width: 0;
}

.ranking-city-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 排名进度条（已移除） */
.ranking-progress-bar {
    display: none;
}

.ranking-progress-fill {
    display: none;
}

.ranking-value {
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
    flex-shrink: 0;
    min-width: 52px;
    text-align: right;
}

.ranking-unit {
    font-size: 11px;
    color: #909399;
    font-weight: 400;
}

/* 筛选标签页 */
.filter-tabs {
    display: flex;
    gap: 4px;
    background: #f5f7fa;
    padding: 4px;
    border-radius: 8px;
}

.filter-tab {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    color: #606266;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    font-weight: 600;
}

/* 加载状态 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #f5f7fa;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    font-size: 13px;
    color: #606266;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #e6f7ff;
    border-color: #91d5ff;
    color: #1890ff;
}
