/* 供应链协同页面样式 */

/* 供应链服务导航 */
.supply-chain-nav {
    margin-bottom: 30px;
}

.supply-chain-nav ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid #f0f0f0;
}

.supply-chain-nav li {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #666;
}

.supply-chain-nav li i {
    font-size: 24px;
}

.supply-chain-nav li.active {
    color: #4a6bdf;
    border-bottom-color: #4a6bdf;
    font-weight: 500;
}

.supply-chain-nav li:hover:not(.active) {
    color: #4a6bdf;
    background-color: #f8f9fa;
}

/* 选项卡内容区域 */
.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    margin-bottom: 25px;
    color: #333;
}



.btn-primary {
    background-color: #4a6bdf;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #3a56b4;
}

.btn-outline {
    background-color: transparent;
    color: #4a6bdf;
    border: 1px solid #4a6bdf;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: #4a6bdf;
    color: white;
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #e9ecef;
}

/* 筛选区域 */
.filter-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-item {
    flex: 1;
    min-width: 180px;
}

.filter-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.filter-item select,
.filter-item input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-box {
    position: relative;
    flex: 2;
}

.search-box input {
    padding-right: 40px;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    padding: 5px 10px;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

/* 需求供应列表 */
.demand-supply-list {
    margin-bottom: 40px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.header-tabs {
    display: flex;
    gap: 0;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-actions .btn-primary,
.header-actions .btn-outline {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-actions .btn-primary {
    background: linear-gradient(135deg, #4a6bdf 0%, #5a7ae4 100%);
    color: white;
}

.header-actions .btn-primary:hover {
    background: linear-gradient(135deg, #3d5bd0 0%, #4d6dd7 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 107, 223, 0.4);
}

.header-actions .btn-outline {
    background: white;
    color: #4a6bdf;
    border: 2px solid #4a6bdf;
}

.header-actions .btn-outline:hover {
    background: #4a6bdf;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 107, 223, 0.3);
}

.header-tab {
    padding: 10px 25px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.header-tab.active {
    color: #4a6bdf;
    border-bottom-color: #4a6bdf;
}

/* 筛选区域样式 */
.filter-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.filter-form {
    width: 100%;
}

.filter-row {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}

.filter-group.search-group {
    flex: 1;
    min-width: 250px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.filter-group select {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #495057;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.filter-group select:focus {
    outline: none;
    border-color: #4a6bdf;
    box-shadow: 0 0 0 2px rgba(74, 107, 223, 0.1);
}

.search-input {
    display: flex;
    position: relative;
}

.search-input input {
    flex: 1;
    padding: 10px 45px 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-input input:focus {
    outline: none;
    border-color: #4a6bdf;
    box-shadow: 0 0 0 2px rgba(74, 107, 223, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #4a6bdf;
    color: white;
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background: #3d5bd0;
}

.btn-reset {
    padding: 10px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-reset:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.header-tab:hover:not(.active) {
    color: #4a6bdf;
}

/* 卡片列表 */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

/* 需求卡片 */
.demand-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.demand-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.card-type {
    font-size: 13px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 15px;
}

.card-type.material {
    background-color: #e3f2fd;
    color: #1976d2;
}

.card-type.processing {
    background-color: #e8f5e9;
    color: #388e3c;
}

.card-type.design {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.card-urgency {
    font-size: 13px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 15px;
}

.card-urgency.high {
    background-color: #ffebee;
    color: #d32f2f;
}

.card-urgency.medium {
    background-color: #fff8e1;
    color: #ff8f00;
}

.card-urgency.low {
    background-color: #e8f5e9;
    color: #388e3c;
}

/* 状态标签样式 */
.card-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 需求状态 */
.card-status.open {
    background: #e3f2fd;
    color: #1976d2;
}

.card-status.inprocess {
    background: #fff3e0;
    color: #f57c00;
}

.card-status.completed {
    background: #e8f5e8;
    color: #2e7d32;
}

.card-status.cancelled {
    background: #ffebee;
    color: #d32f2f;
}

/* 供应状态 */
.card-status.available {
    background: #e8f5e8;
    color: #2e7d32;
}

.card-status.busy {
    background: #fff3e0;
    color: #f57c00;
}

.card-status.unavailable {
    background: #ffebee;
    color: #d32f2f;
}

/* 发布弹窗样式 */
.publish-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.publish-modal-overlay.show {
    opacity: 1;
}

.publish-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s ease;
}

.publish-modal-overlay.show .publish-modal {
    transform: translateY(0) scale(1);
}

/* 弹窗头部 */
.publish-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.modal-icon.supply {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.modal-title-text h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.modal-title-text p {
    margin: 4px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* 弹窗主体 */
.publish-modal-body {
    padding: 32px;
    max-height: 60vh;
    overflow-y: auto;
}

.publish-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 表单分组 */
.form-section {
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    overflow: hidden;
}

.section-header {
    background: #f8fafc;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e8ecf0;
}

.section-header i {
    color: #667eea;
    font-size: 18px;
}

.section-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

/* 表单网格 */
.form-grid {
    padding: 24px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
    font-size: 14px;
}

.required {
    color: #e53e3e;
}

/* 输入框样式 */
.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* 选择框包装器 */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    appearance: none;
    transition: all 0.2s ease;
}

.select-wrapper select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.select-wrapper i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    pointer-events: none;
}

/* 紧急程度选择器 */
.urgency-selector {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.urgency-selector input[type="radio"] {
    display: none;
}

.urgency-option {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
}

.urgency-option i {
    font-size: 18px;
}

.urgency-option.high {
    color: #e53e3e;
}

.urgency-option.medium {
    color: #dd6b20;
}

.urgency-option.low {
    color: #38a169;
}

.urgency-selector input[type="radio"]:checked + .urgency-option {
    border-color: currentColor;
    background: rgba(102, 126, 234, 0.05);
}

.urgency-selector input[type="radio"]:checked + .urgency-option.high {
    border-color: #e53e3e;
    background: rgba(229, 62, 62, 0.05);
}

.urgency-selector input[type="radio"]:checked + .urgency-option.medium {
    border-color: #dd6b20;
    background: rgba(221, 107, 32, 0.05);
}

.urgency-selector input[type="radio"]:checked + .urgency-option.low {
    border-color: #38a169;
    background: rgba(56, 161, 105, 0.05);
}

/* 弹窗底部 */
.publish-modal-footer {
    padding: 24px 32px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.btn-cancel,
.btn-publish {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    border: none;
}

.btn-cancel {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-cancel:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
}

.btn-publish {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-publish.supply {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
}

.btn-publish:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-publish.supply:hover {
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .publish-modal {
        width: 95%;
        margin: 20px;
    }
    
    .publish-modal-header {
        padding: 20px 24px;
    }
    
    .modal-title-text h2 {
        font-size: 20px;
    }
    
    .publish-modal-body {
        padding: 24px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px 16px;
    }
    
    .urgency-selector {
        flex-direction: column;
    }
    
    .publish-modal-footer {
        padding: 20px 24px;
        flex-direction: column;
    }
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.card-info {
    margin-bottom: 15px;
}

.card-info p {
    margin: 10px 0;
    color: #555;
    line-height: 1.5;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    background-color: #f0f0f0;
    color: #666;
    display: inline-block;
}

.card-footer {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    gap: 15px;
}

.publish-time {
    font-size: 13px;
    color: #6c757d;
    flex: 1;
    font-weight: 500;
}

.card-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.card-footer .btn-outline,
.card-footer .btn-primary {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 100px;
}

.card-footer .btn-outline i,
.card-footer .btn-primary i {
    font-size: 16px;
}

.card-footer .btn-outline {
    background: white;
    color: #4a6bdf;
    border: 2px solid #4a6bdf;
}

.card-footer .btn-outline:hover {
    background: #4a6bdf;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 107, 223, 0.3);
}

.card-footer .btn-primary {
    background: linear-gradient(135deg, #4a6bdf 0%, #5a7ae4 100%);
    color: white;
    border: 2px solid transparent;
}

.card-footer .btn-primary:hover {
    background: linear-gradient(135deg, #3d5bd0 0%, #4d6dd7 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 107, 223, 0.4);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.pagination a, .pagination span {
    color: #333;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover:not(.disabled) {
    background-color: #f0f0f0;
}

.pagination a.active {
    background-color: #4a6bdf;
    color: white;
}

.pagination a.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.pagination .prev, .pagination .next {
    font-weight: bold;
}

/* 供需对应分页样式 */
.demand-supply-list .pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.demand-supply-list .pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.demand-supply-list .page-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.demand-supply-list .btn-page {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 40px;
    justify-content: center;
}

.demand-supply-list .btn-page:hover:not(:disabled):not(.disabled) {
    background: #4a6bdf;
    color: white;
    border-color: #4a6bdf;
    transform: translateY(-1px);
}

.demand-supply-list .btn-page:disabled,
.demand-supply-list .btn-page.disabled {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
    border-color: #e9ecef;
}

.demand-supply-list .btn-page.active {
    background: #4a6bdf;
    color: white;
    border-color: #4a6bdf;
    font-weight: 600;
}

.demand-supply-list .page-ellipsis {
    padding: 8px 4px;
    color: #999;
    font-size: 14px;
}

.demand-supply-list .page-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-align: center;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ddd;
    margin: 20px 0;
}

/* 物流信息区域 */
.logistics-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.logistics-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.overview-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.overview-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.overview-icon i {
    font-size: 24px;
    color: #4a6bdf;
}

.overview-data h3 {
    font-size: 24px;
    margin: 0 0 5px 0;
    color: #333;
}

.overview-data p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.logistics-search {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.logistics-search h3 {
    margin: 0 0 15px 0;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.logistics-companies h3 {
    margin-bottom: 20px;
}

.company-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.company-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.company-card:hover {
    transform: translateY(-5px);
}

.company-card img {
    max-width: 100%;
    height: 50px;
    object-fit: contain;
    margin-bottom: 15px;
}

.company-card h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.company-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* 库存管理区域 */
.inventory-overview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.chart-container, .alert-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.chart-title, .alert-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
}

.chart-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-placeholder img {
    max-width: 100%;
    max-height: 100%;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.alert-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-radius: 8px;
    gap: 15px;
}

.alert-item i {
    font-size: 20px;
}

.alert-item.warning {
    background-color: #fff8e1;
}

.alert-item.warning i {
    color: #ff8f00;
}

.alert-item.danger {
    background-color: #ffebee;
}

.alert-item.danger i {
    color: #d32f2f;
}

.alert-item.success {
    background-color: #e8f5e9;
}

.alert-item.success i {
    color: #388e3c;
}

.alert-content {
    flex: 1;
}

.alert-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.alert-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.alert-time {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.inventory-functions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.function-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.function-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    cursor: pointer;
}

.function-icon {
    width: 60px;
    height: 60px;
    background-color: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.function-icon i {
    font-size: 28px;
    color: #4a6bdf;
}

.function-card h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.function-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* 订单协同区域 */
.order-status-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.status-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    min-width: 120px;
    flex: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.status-number {
    font-size: 32px;
    font-weight: bold;
    color: #4a6bdf;
    margin-bottom: 10px;
}

.status-label {
    font-size: 14px;
    color: #666;
}

.order-process {
    margin-bottom: 30px;
}

.order-process h3 {
    margin-bottom: 20px;
}

.process-flow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 180px;
}

.step-icon {
    width: 40px;
    height: 40px;
    background-color: #4a6bdf;
    color: white;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.step-info h4 {
    margin: 0 0 8px 0;
    color: #333;
}

.step-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.step-arrow {
    font-size: 24px;
    color: #ccc;
    align-self: center;
}

.recent-orders {
    margin-bottom: 40px;
}

.recent-orders h3 {
    margin-bottom: 20px;
}

.order-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
}

.order-table th {
    background-color: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
    color: #333;
}

.order-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.new {
    background-color: #e3f2fd;
    color: #1976d2;
}

.status-badge.inprocess {
    background-color: #fff8e1;
    color: #ff8f00;
}

.status-badge.shipping {
    background-color: #e8f5e9;
    color: #388e3c;
}

.status-badge.exception {
    background-color: #ffebee;
    color: #d32f2f;
}

.btn-sm {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.btn-sm:hover {
    background-color: #e0e0e0;
}

.table-actions {
    display: flex;
    justify-content: center;
}

/* 质量追溯区域 */
.quality-search {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.quality-search h3 {
    margin: 0 0 10px 0;
}

.subtitle {
    color: #666;
    margin-bottom: 20px;
}

.quality-standards {
    margin-bottom: 40px;
}

.quality-standards h3 {
    margin-bottom: 25px;
}

.standard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.standard-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.standard-card:hover {
    transform: translateY(-5px);
}

.standard-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.standard-card h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.standard-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.read-more {
    color: #4a6bdf;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.trace-process h3 {
    margin-bottom: 25px;
}

.process-flow-vertical {
    max-width: 600px;
    margin: 0 auto;
}

.flow-step {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.flow-step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 20px;
    width: 2px;
    height: calc(100% + 10px);
    background-color: #e0e0e0;
    z-index: -1;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #4a6bdf;
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content {
    padding: 5px 0;
}

.step-content h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.step-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .inventory-overview {
        grid-template-columns: 1fr;
    }
    
    .process-flow {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .process-step {
        width: 100%;
        max-width: none;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .supply-chain-nav ul {
        flex-wrap: wrap;
    }
    
    .supply-chain-nav li {
        flex-basis: 33.333%;
    }
    
    .logistics-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-item {
        flex-basis: 100%;
    }
    
    .search-form {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .supply-chain-nav li {
        flex-basis: 50%;
    }
    
    .logistics-overview {
        grid-template-columns: 1fr;
    }
    
    .status-card {
        flex-basis: 100%;
    }
}

/* 优化方案样式 */
.section-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
    text-align: center;
}

/* 优化方案导航 */
.optimization-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.opt-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    color: #666;
    border: 2px solid transparent;
}

.opt-nav-item i {
    font-size: 24px;
}

.opt-nav-item.active {
    color: #4a6bdf;
    background-color: #f8f9ff;
    border-color: #4a6bdf;
}

.opt-nav-item:hover:not(.active) {
    color: #4a6bdf;
    background-color: #f8f9fa;
}

/* 优化内容区域 */
.opt-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.opt-content.active {
    display: block;
    opacity: 1;
}

/* 仓储优化样式 */
#warehouse.active {
    display: block;
    opacity: 1;
}

/* 优化概览统计 */
.optimization-overview {
    margin-bottom: 40px;
}

.optimization-overview h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.stat-card.cost-reduction .stat-icon {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    color: #2e7d32;
}

.stat-card.efficiency-up .stat-icon {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1976d2;
}

.stat-card.accuracy-up .stat-icon {
    background: linear-gradient(135deg, #fff3e0, #ffcc02);
    color: #f57c00;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-info h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 4px;
}

.stat-desc {
    color: #666;
    font-size: 14px;
}

/* 优化前后对比 */
.before-after-comparison {
    margin-bottom: 40px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.before-after-comparison h4 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 20px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}

.comparison-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.comparison-header h5 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.before {
    background: #ffebee;
    color: #c62828;
}

.status-badge.after {
    background: #e8f5e8;
    color: #2e7d32;
}

.comparison-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.metric:last-child {
    border-bottom: none;
}

.metric-label {
    color: #666;
    font-size: 14px;
}

.metric-value {
    font-weight: 600;
    color: #333;
}

.metric-value.improved {
    color: #2e7d32;
}

.comparison-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #4a6bdf;
}

.comparison-arrow i {
    font-size: 24px;
}

/* 路线优化对比 */
.route-optimization {
    margin-bottom: 40px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.route-optimization h4 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 20px;
}

.route-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}

.route-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
}

.route-item.optimized {
    background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
}

.route-item h5 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 16px;
    text-align: center;
}

.route-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.route-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.route-stat .label {
    color: #666;
    font-size: 14px;
}

.route-stat .value {
    font-weight: 600;
    color: #333;
}

.route-stat .value.improved {
    color: #2e7d32;
}

.route-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #4a6bdf;
}

.route-arrow i {
    font-size: 24px;
}

.route-arrow span {
    font-size: 12px;
    font-weight: 500;
}

/* 配送网络优化 */
.delivery-network {
    margin-bottom: 40px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.delivery-network h4 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 20px;
}

.network-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.network-before, .network-after {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
}

.network-after {
    background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
}

.network-before h5, .network-after h5 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 16px;
    text-align: center;
}

.network-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item.improved .stat-value {
    color: #2e7d32;
    font-weight: 600;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.stat-value {
    font-weight: 600;
    color: #333;
}

/* 优化措施 */
.optimization-measures {
    margin-bottom: 40px;
}

.optimization-measures h4 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 20px;
}

.measures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.measure-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.measure-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.measure-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1976d2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px auto;
}

.measure-card h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.measure-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.measure-benefit {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    color: #2e7d32;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* 综合效益展示 */
.comprehensive-benefits {
    background: linear-gradient(135deg, #f8f9ff, #e8f5e8);
    border-radius: 16px;
    padding: 40px;
    margin-top: 40px;
}

.comprehensive-benefits h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.benefits-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-item {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a6bdf, #6c5ce7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.benefit-content h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
}

.benefit-value {
    font-size: 28px;
    font-weight: 700;
    color: #4a6bdf;
    margin-bottom: 4px;
}

.benefit-desc {
    color: #666;
    font-size: 14px;
}

/* 优化方案响应式设计 */
@media (max-width: 768px) {
    .optimization-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .opt-nav-item {
        flex-direction: row;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .overview-stats {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .comparison-arrow {
        transform: rotate(90deg);
    }
    
    .route-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .route-arrow {
        transform: rotate(90deg);
    }
    
    .network-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .measures-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-summary {
        grid-template-columns: 1fr;
    }
}

/* 库存管理模态框样式 */
.inventory-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.inventory-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-content.large {
    max-width: 1400px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 0;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* 供需对应详情弹窗特殊处理 */
.supply-demand-modal .modal-body {
    padding: 20px;
    overflow-y: visible;
    max-height: none;
}

.supply-demand-modal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.supply-demand-modal .detail-container {
    max-height: none;
    overflow: visible;
}

/* 模态框导航 */
.modal-nav {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.modal-nav-item {
    padding: 15px 25px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    color: #666;
    font-weight: 500;
}

.modal-nav-item.active {
    color: #4a6bdf;
    border-bottom-color: #4a6bdf;
    background: white;
}

.modal-nav-item:hover:not(.active) {
    color: #4a6bdf;
    background: #f0f0f0;
}

/* 模态框选项卡内容 */
.modal-tab-content {
    display: none;
    padding: 30px;
}

.modal-tab-content.active {
    display: block;
}

/* 表单样式 */
.inventory-form {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a6bdf;
    box-shadow: 0 0 0 3px rgba(74, 107, 223, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* 表单区块 */
.form-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4a6bdf;
}

.form-section h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 16px;
}

/* 商品列表 */
.product-list {
    margin-bottom: 20px;
}

.product-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.product-item:last-child {
    margin-bottom: 0;
}

/* 按钮样式 */
.btn-add-product {
    background: #4a6bdf;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.btn-add-product:hover {
    background: #3a56b4;
}

.btn-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-remove:hover {
    background: #c82333;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-primary {
    background: #4a6bdf;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background: #3a56b4;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* 列表头部 */
.list-header {
    margin-bottom: 20px;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-bar input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.btn-search {
    background: #4a6bdf;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-search:hover {
    background: #3a56b4;
}

.filter-bar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-bar select,
.filter-bar input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* 数据表格 */
.data-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f8f9fa;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #666;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.btn-page {
    background: #4a6bdf;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-page:hover:not(:disabled) {
    background: #3a56b4;
}

.btn-page:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.page-info {
    color: #666;
    font-size: 14px;
}

/* 库存搜索 */
.stock-search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.stock-search input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* 仓库库存信息 */
.warehouse-stock-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.stock-info-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.stock-info-card h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.stock-list {
    max-height: 200px;
    overflow-y: auto;
}

.no-data {
    color: #999;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

/* 库存分析样式 */
.analysis-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a6bdf, #6c5ce7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.summary-info h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
}

.summary-value {
    font-size: 28px;
    font-weight: 700;
    color: #4a6bdf;
    margin-bottom: 4px;
}

.summary-value.warning {
    color: #dc3545;
}

.summary-desc {
    color: #666;
    font-size: 14px;
}

/* 图表容器 */
.analysis-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.chart-container h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    text-align: center;
}

.chart-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

/* 周转分析 */
.analysis-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.analysis-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.turnover-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 预警管理 */
.warning-settings {
    margin-bottom: 30px;
}

.warning-config {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.config-item label {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.config-item input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.warning-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.warning-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid #ffc107;
}

.warning-item.low-stock {
    border-left-color: #dc3545;
}

.warning-item.overstocked {
    border-left-color: #fd7e14;
}

.warning-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff3cd;
    color: #856404;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.warning-content {
    flex: 1;
}

.warning-content h5 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
}

.warning-content p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
}

.warning-time {
    color: #999;
    font-size: 12px;
}

.btn-small {
    background: #4a6bdf;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.btn-small:hover {
    background: #3a56b4;
}

/* 报表生成 */
.report-config {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.config-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.config-row:last-child {
    margin-bottom: 0;
}

.report-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.report-preview {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.report-header {
    margin-bottom: 20px;
    text-align: center;
}

.report-header h5 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 18px;
}

.report-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.report-table {
    overflow-x: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-tab-content {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .warehouse-stock-info {
        grid-template-columns: 1fr;
    }
    
    .analysis-charts {
        grid-template-columns: 1fr;
    }
    
    .analysis-summary {
        grid-template-columns: 1fr;
    }
    
    .config-row {
        grid-template-columns: 1fr;
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .report-actions {
        flex-direction: column;
    }
}

/* 库存状态样式 */
.low-stock {
    background-color: #ffebee !important;
    color: #c62828 !important;
    font-weight: bold;
}

.high-stock {
    background-color: #e8f5e8 !important;
    color: #2e7d32 !important;
}

.normal-stock {
    background-color: #fff3e0 !important;
    color: #f57c00 !important;
}

/* 状态徽章样式 */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-width: 60px;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.approved {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.completed {
    background: #d4edda;
    color: #155724;
}

.status-badge.processing {
    background: #cce5ff;
    color: #004085;
}

.status-badge.cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* 记录详情样式 */
.record-detail {
    padding: 20px;
}

.detail-section {
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.detail-section h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #4a6bdf;
    padding-bottom: 10px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.detail-item span {
    color: #333;
    font-size: 14px;
    padding: 8px 12px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.detail-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-table table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table th {
    background: #4a6bdf;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.detail-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #666;
}

.detail-table tr:hover {
    background: #f8f9fa;
}

/* 增强的表格样式 */
.data-table .btn-small {
    margin: 0 2px;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.data-table .btn-small:first-child {
    background: #17a2b8;
    color: white;
}

.data-table .btn-small:first-child:hover {
    background: #138496;
}

.data-table .btn-small:nth-child(2) {
    background: #ffc107;
    color: #212529;
}

.data-table .btn-small:nth-child(2):hover {
    background: #e0a800;
}

.data-table .btn-small:last-child {
    background: #dc3545;
    color: white;
}

.data-table .btn-small:last-child:hover {
    background: #c82333;
}

/* 搜索增强 */
.search-bar {
    position: relative;
}

.search-bar input {
    padding-right: 40px;
}

.search-bar .btn-search {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #4a6bdf;
    cursor: pointer;
    padding: 5px;
}

/* 总金额显示 */
.total-amount {
    text-align: right;
    font-size: 18px;
    font-weight: bold;
    color: #4a6bdf;
    margin-top: 15px;
    padding: 10px;
    background: #f8f9ff;
    border-radius: 6px;
    border-left: 4px solid #4a6bdf;
}

/* 表单增强 */
.form-group input[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.form-group input.low-stock {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.form-group input.high-stock {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-item {
    animation: fadeIn 0.3s ease-out;
}

/* 响应式增强 */
@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-table {
        overflow-x: auto;
    }
    
    .data-table .btn-small {
        display: block;
        margin: 2px 0;
        width: 100%;
    }
}

/* 表格操作按钮样式 */
.table-actions {
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.batch-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.batch-actions .btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
}

.batch-actions .btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
}

.batch-actions .btn-secondary i {
    font-size: 16px;
}

/* 图表容器增强 */
.chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.chart-container h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.chart-placeholder {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-placeholder canvas {
    max-width: 100%;
    max-height: 100%;
}

/* 分析页面图表布局 */
.analysis-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .analysis-charts {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        padding: 15px;
    }
    
    .chart-placeholder {
        height: 250px;
    }
    
    .table-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .batch-actions {
        justify-content: center;
    }
}

/* 分页控制器样式 */
.pagination {
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-size-selector label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.page-size-selector select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.page-size-selector select:hover {
    border-color: #4a6bdf;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-page {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 40px;
    justify-content: center;
}

.btn-page:hover:not(:disabled) {
    background: #4a6bdf;
    color: white;
    border-color: #4a6bdf;
}

.btn-page:disabled {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
    border-color: #e9ecef;
}

.btn-page.active {
    background: #4a6bdf;
    color: white;
    border-color: #4a6bdf;
    font-weight: 600;
}

.page-numbers {
    display: flex;
    gap: 4px;
    align-items: center;
}

.page-ellipsis {
    padding: 8px 4px;
    color: #999;
    font-size: 14px;
}

.page-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

/* 分页响应式设计 */
@media (max-width: 768px) {
    .pagination-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .pagination-nav {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .page-size-selector {
        justify-content: center;
    }
    
    .page-info {
        text-align: center;
        font-size: 13px;
    }
    
    .btn-page {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 36px;
    }
}

@media (max-width: 480px) {
    .pagination {
        padding: 10px;
    }
    
    .page-numbers {
        max-width: 200px;
        overflow-x: auto;
        scrollbar-width: thin;
    }
    
    .page-numbers::-webkit-scrollbar {
        height: 4px;
    }
    
    .page-numbers::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }
    
    .page-numbers::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 2px;
    }
}

/* 供需对应详情模态框样式 */
.supply-demand-modal .modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.large-modal {
    width: 90vw !important;
    max-width: 1000px !important;
}

.detail-container {
    padding: 0;
}

.detail-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.detail-title h2 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.detail-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-material {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-processing {
    background: #f3e5f5;
    color: #7b1fa2;
}

.badge-design {
    background: #e8f5e8;
    color: #388e3c;
}

.badge-accessory {
    background: #fff3e0;
    color: #f57c00;
}

.badge-logistics {
    background: #fce4ec;
    color: #c2185b;
}

.badge-urgency-high {
    background: #ffebee;
    color: #d32f2f;
}

.badge-urgency-medium {
    background: #fff8e1;
    color: #f57c00;
}

.badge-urgency-low {
    background: #e8f5e8;
    color: #388e3c;
}

.badge-status-open {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-status-inprocess {
    background: #fff8e1;
    color: #f57c00;
}

.badge-status-completed {
    background: #e8f5e8;
    color: #388e3c;
}

.badge-status-available {
    background: #e8f5e8;
    color: #388e3c;
}

.badge-status-busy {
    background: #fff8e1;
    color: #f57c00;
}

.badge-status-unavailable {
    background: #ffebee;
    color: #d32f2f;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #4a6bdf;
}

.detail-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section h4 i {
    color: #4a6bdf;
    font-size: 18px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.info-item span {
    color: #333;
    font-size: 15px;
}

.description-content p {
    margin: 0;
    line-height: 1.6;
    color: #555;
    font-size: 15px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.spec-item label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.spec-item span {
    color: #333;
    font-size: 14px;
    text-align: right;
    flex: 1;
    margin-left: 10px;
}

.budget-content,
.deadline-content,
.price-content,
.capacity-content {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.budget-amount,
.deadline-date,
.price-amount,
.capacity-info {
    font-size: 18px;
    font-weight: 600;
    color: #4a6bdf;
}

.requirements-content ul,
.advantages-content ul {
    margin: 0;
    padding-left: 20px;
}

.requirements-content li,
.advantages-content li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #555;
}

.certifications-content {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cert-badge {
    padding: 8px 16px;
    background: #4a6bdf;
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.tags-content {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tags-content .tag {
    padding: 6px 12px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.attachments-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.attachment-item i {
    color: #666;
    font-size: 18px;
}

.attachment-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.attachment-size {
    color: #999;
    font-size: 13px;
}

.btn-small {
    padding: 4px 12px;
    font-size: 12px;
    border: 1px solid #4a6bdf;
    background: white;
    color: #4a6bdf;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-small:hover {
    background: #4a6bdf;
    color: white;
}

/* 对接申请表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a6bdf;
    box-shadow: 0 0 0 2px rgba(74, 107, 223, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* 发布表单样式 */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #333;
}

.modal-header h3 i {
    color: #4a6bdf;
}

.modal-footer .btn-primary,
.modal-footer .btn-secondary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    font-weight: 600;
}

.modal-footer .btn-primary i {
    font-size: 16px;
}

/* 对接弹窗特殊样式 */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.modal-footer .btn-secondary,
.modal-footer .btn-primary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.modal-footer .btn-secondary {
    background: #6c757d;
    color: white;
}

.modal-footer .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #4a6bdf 0%, #5a7ae4 100%);
    color: white;
}

.modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #3d5bd0 0%, #4d6dd7 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(74, 107, 223, 0.4);
}

.modal-footer .btn-secondary i,
.modal-footer .btn-primary i {
    font-size: 16px;
}

/* 对接弹窗专用样式 */
.connection-modal {
    max-width: 700px !important;
    width: 90vw !important;
}

.connection-modal .modal-header {
    background: linear-gradient(135deg, #4a6bdf 0%, #5a7ae4 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.connection-modal .header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

/* 自定义头像样式 */
.custom-avatar {
    position: relative;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: avatarFloat 3s ease-in-out infinite;
}

.avatar-face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
}

.avatar-eyes {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 30px;
    height: 8px;
    margin: 18px auto 8px;
}

.eye {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: eyeBlink 4s infinite;
}

.left-eye {
    animation-delay: 0s;
}

.right-eye {
    animation-delay: 0.1s;
}

.avatar-smile {
    width: 20px;
    height: 10px;
    border: 2px solid white;
    border-top: none;
    border-radius: 0 0 20px 20px;
    margin: 0 auto;
    animation: smileGlow 2s ease-in-out infinite alternate;
}

.avatar-handshake {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #4a6bdf;
    border: 2px solid white;
    animation: handshakePulse 2s ease-in-out infinite;
}

/* 动画效果 */
@keyframes avatarFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes eyeBlink {
    0%, 90%, 100% {
        transform: scaleY(1);
    }
    95% {
        transform: scaleY(0.1);
    }
}

@keyframes smileGlow {
    0% {
        border-color: white;
    }
    100% {
        border-color: rgba(255, 255, 255, 0.7);
    }
}

@keyframes handshakePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
    }
}

.connection-modal .header-text {
    text-align: left;
    flex: 1;
}

.connection-modal .header-text h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
    color: white;
}

.connection-modal .header-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    color: white;
    line-height: 1.4;
}

.connection-modal .modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.connection-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.connection-modal .modal-body {
    padding: 30px;
    background: #f8f9fa;
}

.connection-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #4a6bdf;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.section-title i {
    color: #4a6bdf;
    font-size: 18px;
}

.connection-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.connection-form .form-row:last-child {
    margin-bottom: 0;
}

.connection-form .form-group {
    flex: 1;
    margin-bottom: 0;
}

.connection-form .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.connection-form .form-group label i {
    color: #4a6bdf;
    font-size: 16px;
}

.connection-form input,
.connection-form select,
.connection-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.connection-form input:focus,
.connection-form select:focus,
.connection-form textarea:focus {
    outline: none;
    border-color: #4a6bdf;
    box-shadow: 0 0 0 3px rgba(74, 107, 223, 0.1);
    transform: translateY(-1px);
}

.connection-form textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.form-tips {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1976d2;
    margin-bottom: 12px;
    font-size: 14px;
}

.tips-header i {
    font-size: 16px;
}

.form-tips ul {
    margin: 0;
    padding-left: 20px;
    color: #1565c0;
}

.form-tips li {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.4;
}

.form-tips li:last-child {
    margin-bottom: 0;
}

/* 提交按钮区域 */
.submit-action {
    margin-top: 25px;
    text-align: center;
}

.btn-submit-connection {
    width: 100%;
    background: linear-gradient(135deg, #4a6bdf 0%, #5a7ae4 100%);
    border: none;
    border-radius: 16px;
    padding: 20px 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(74, 107, 223, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit-connection::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-submit-connection:hover::before {
    left: 100%;
}

.btn-submit-connection:hover {
    background: linear-gradient(135deg, #3d5bd0 0%, #4d6dd7 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 107, 223, 0.4);
}

.btn-submit-connection:active {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(74, 107, 223, 0.3);
}

.btn-submit-connection .btn-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.btn-submit-connection .btn-text {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btn-submit-connection .btn-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.btn-submit-connection .btn-subtitle {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 400;
}

.btn-submit-connection .btn-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.btn-submit-connection:hover .btn-arrow {
    transform: translateX(5px);
}

/* 提交中状态 */
.btn-submit-connection:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-submit-connection:disabled .btn-icon {
    animation: submitLoading 1s linear infinite;
}

@keyframes submitLoading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .btn-submit-connection {
        padding: 18px 20px;
        border-radius: 12px;
    }
    
    .btn-submit-connection .btn-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .btn-submit-connection .btn-title {
        font-size: 16px;
    }
    
    .btn-submit-connection .btn-subtitle {
        font-size: 12px;
    }
    
    .btn-submit-connection .btn-arrow {
        font-size: 16px;
    }
}

.connection-modal .modal-footer {
    background: white;
    border-top: 2px solid #f0f0f0;
    padding: 25px 30px;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.connection-modal .modal-footer .btn-secondary,
.connection-modal .modal-footer .btn-primary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.connection-modal .modal-footer .btn-secondary {
    background: #6c757d;
    color: white;
}

.connection-modal .modal-footer .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.connection-modal .modal-footer .btn-primary {
    background: linear-gradient(135deg, #4a6bdf 0%, #5a7ae4 100%);
    color: white;
}

.connection-modal .modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #3d5bd0 0%, #4d6dd7 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(74, 107, 223, 0.4);
}

.connection-modal .modal-footer .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .connection-modal {
        width: 95vw !important;
        max-width: none !important;
    }
    
    .connection-modal .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .connection-modal .header-text {
        text-align: center;
    }
    
    .connection-modal .header-text h3 {
        font-size: 20px;
    }
    
    .avatar-circle {
        width: 60px !important;
        height: 60px !important;
    }
    
    .avatar-handshake {
        width: 20px !important;
        height: 20px !important;
        font-size: 10px !important;
        bottom: -6px !important;
        right: -6px !important;
    }
    
    .connection-modal .modal-body {
        padding: 20px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .connection-form .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .connection-modal .modal-footer {
        padding: 20px;
        flex-direction: column;
        gap: 12px;
    }
    
    .connection-modal .modal-footer .btn-secondary,
    .connection-modal .modal-footer .btn-primary {
        width: 100%;
        justify-content: center;
        min-width: auto;
    }
}

/* 验证错误样式 */
.validation-error {
    background: #ffebee;
    border: 1px solid #f44336;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

.validation-error .error-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d32f2f;
    font-weight: 500;
}

.validation-error .error-content i {
    font-size: 18px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 成功弹窗样式 */
.success-modal {
    max-width: 500px !important;
}

.success-modal .modal-header {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    padding: 30px;
    text-align: center;
    border-radius: 12px 12px 0 0;
}

.success-modal .success-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 15px;
    animation: successPulse 0.6s ease;
}

.success-modal .modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

@keyframes successPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-modal .modal-body {
    padding: 30px;
}

.success-content .success-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.submitted-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.submitted-info .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.submitted-info .info-item:last-child {
    border-bottom: none;
}

.submitted-info .info-item label {
    font-weight: 600;
    color: #666;
}

.submitted-info .info-item .highlight {
    background: #4caf50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-family: monospace;
}

.next-steps h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.next-steps h4 i {
    color: #4caf50;
}

.next-steps ol {
    margin: 0;
    padding-left: 20px;
    color: #666;
}

.next-steps li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.success-modal .modal-footer {
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.success-modal .modal-footer .btn-primary {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    min-width: 150px;
}

.success-modal .modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #43a047 0%, #5cb85c 100%);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .large-modal {
        width: 95vw !important;
        margin: 20px auto !important;
    }
    
    .detail-title h2 {
        font-size: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .spec-item span {
        text-align: left;
        margin-left: 0;
    }
    
    .detail-badges {
        justify-content: center;
    }
    
    .certifications-content {
        justify-content: center;
    }
    
    .tags-content {
        justify-content: center;
    }
} 