/* EricSourcing Flat Professional Styles */

/* 供应链专业特色元素 */
.supply-chain-process {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--medium-gray);
}

.process-flow {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.process-flow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--medium-gray);
    transform: translateY(-50%);
}

.process-node {
    position: relative;
    z-index: 2;
    text-align: center;
    background: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--medium-gray);
    transition: var(--transition);
}

.process-node.active {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.05);
    box-shadow: var(--shadow-md);
}

/* 数据面板 */
.data-panel {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--medium-gray);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

/* KPI指标卡片 */
.kpi-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.kpi-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.kpi-trend {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.trend-up {
    background: rgba(39, 174, 96, 0.1);
    color: var(--supply-chain-green);
}

.trend-down {
    background: rgba(231, 76, 60, 0.1);
    color: #E74C3C;
}

/* 资源网格（供应链资源展示） */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--medium-gray);
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.resource-card-header {
    padding: 1.5rem;
    background: var(--light-gray);
    border-bottom: 1px solid var(--medium-gray);
}

.resource-card-body {
    padding: 1.5rem;
}

.resource-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(52, 152, 219, 0.1);
    color: var(--supply-chain-blue);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* 扁平化表单组 */
.form-group-flat {
    margin-bottom: 1.5rem;
}

.form-label-flat {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    color: var(--dark-gray);
    font-size: 0.875rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .process-flow {
        flex-direction: column;
        gap: 2rem;
    }

    .process-flow::before {
        display: none;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .data-panel {
        padding: 1.5rem;
    }
}