/* 订单货源页面样式 */

/* 主容器 */
.main-content {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.order-source-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

/* 左侧面板 */
.left-panel {
    width: 260px;
    flex-shrink: 0;
}

/* 发布按钮 */
.publish-btn {
    width: 100%;
    padding: 16px 24px;
    background: #951D1D;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(149, 29, 29, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
}

.publish-btn:hover {
    background: #7A1717;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(149, 29, 29, 0.4);
}

.publish-icon {
    font-size: 20px;
}

/* 煤种筛选 */
.coal-filter {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.coal-type-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coal-type-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.coal-type-item:hover {
    background: #f8f9fa;
}

.coal-type-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.coal-type-item span {
    font-size: 14px;
    color: #495057;
}

.coal-type-item input[type="checkbox"]:checked + span {
    color: #951D1D;
    font-weight: 600;
}

/* 右侧主面板 */
.main-panel {
    flex: 1;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 标签切换 */
.tab-switch {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.tab-btn {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-btn:hover {
    color: #951D1D;
    background: rgba(149, 29, 29, 0.05);
}

.tab-btn.active {
    color: #951D1D;
    background: #ffffff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #951D1D;
}

/* 信息列表 */
.info-list {
    padding: 25px;
    min-height: 500px;
}

.info-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
    border-left: 4px solid #951D1D;
}

.info-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dee2e6;
}

.info-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #951D1D;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: #212529;
}

.info-time {
    font-size: 13px;
    color: #6c757d;
}

.info-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.info-field {
    display: flex;
    gap: 8px;
}

.field-label {
    font-size: 14px;
    color: #6c757d;
    min-width: 80px;
}

.field-value {
    font-size: 14px;
    color: #212529;
    font-weight: 500;
}

.field-value.highlight {
    color: #951D1D;
    font-weight: 600;
    font-size: 16px;
}

.info-full {
    grid-column: 1 / -1;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #868e96;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-text {
    font-size: 16px;
    color: #adb5bd;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f9fa;
    border-radius: 50%;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #e9ecef;
    color: #212529;
}

.modal-body {
    padding: 25px;
}

/* 表单样式 */
.publish-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.required {
    color: #dc3545;
}

.form-input,
.form-select,
.form-textarea {
    padding: 10px 14px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    color: #495057;
    transition: all 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #951D1D;
    box-shadow: 0 0 0 3px rgba(149, 29, 29, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.radio-group,
.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.radio-item input[type="radio"],
.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-item span,
.checkbox-item span {
    font-size: 14px;
    color: #495057;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-cancel,
.btn-submit {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel {
    background: #f8f9fa;
    color: #6c757d;
}

.btn-cancel:hover {
    background: #e9ecef;
}

.btn-submit {
    background: #951D1D;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(149, 29, 29, 0.3);
}

.btn-submit:hover {
    background: #7A1717;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(149, 29, 29, 0.4);
}

/* 广告位区域 */
.ad-section {
    background: #f8f9fa;
    padding: 40px 0;
    margin-top: 40px;
}

.ad-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ad-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.ad-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ad-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 响应式设计 - PC端中屏 (891px-1200px) */
@media (min-width: 891px) and (max-width: 1200px) {
    .order-source-container {
        flex-direction: column;
    }
    
    .left-panel {
        width: 100%;
    }
    
    .coal-type-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* 删除 @media (max-width: 768px) - 移动端样式在 mobile.css */
