/* ========== 招标发布页 - 国际顶尖B2B视觉优化 ========== */

/* --- 页面主容器 --- */
.tender-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* --- 头部标题栏 --- */
.tender-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef0f2;
}
.tender-page-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}
.tender-btn-new {
    background: #0f4c81;
    border: none;
    padding: 10px 24px;
    font-weight: 500;
    border-radius: 8px;
    color: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(15,76,129,0.15);
}
.tender-btn-new:hover {
    background: #0a3560;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15,76,129,0.25);
    color: #fff;
}

/* --- 筛选栏 --- */
.tender-filter-bar {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
    align-items: center;
}
.tender-filter-bar .form-select {
    width: 150px;
    border-radius: 8px;
    border: 1px solid #dde1e6;
    font-size: 14px;
}
.tender-filter-bar .form-control {
    width: 280px;
    border-radius: 8px;
    border: 1px solid #dde1e6;
    font-size: 14px;
}

/* --- 表格卡片 --- */
.tender-table-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
    overflow: hidden;
    margin-bottom: 28px;
}
.tender-table-card .table {
    margin-bottom: 0;
}
.tender-table-card .table thead {
    background: #f4f6f9;
}
.tender-table-card .table thead th {
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #3a4050;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid #d4af37;
    white-space: nowrap;
}
.tender-table-card .table tbody td {
    padding: 14px 18px;
    font-size: 14px;
    color: #1a1a1a;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: middle;
}
.tender-table-card .table tbody tr:last-child td {
    border-bottom: none;
}
.tender-table-card .table tbody tr:hover td {
    background: #f8faff;
    cursor: pointer;
}

/* --- 状态标签 --- */
.tender-status {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}
.tender-status.draft { background: #eef1f5; color: #5a6377; }
.tender-status.published { background: #e3f2fd; color: #0f4c81; }
.tender-status.closed { background: #fff3e0; color: #e65100; }
.tender-status.awarded { background: #e8f5e9; color: #1b5e20; }

/* --- 操作链接 --- */
.tender-actions a {
    color: #0f4c81;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin-right: 16px;
    transition: all 0.2s ease;
}
.tender-actions a:hover {
    color: #0a3560;
    text-decoration: underline;
}
.tender-actions a.text-danger {
    color: #c0392b;
}
.tender-actions a.text-danger:hover {
    color: #a93226;
}

/* --- 空状态 --- */
.tender-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #8a8f99;
}
.tender-empty-state img {
    width: 80px;
    opacity: 0.6;
    margin-bottom: 12px;
}
.tender-empty-state p {
    font-size: 14px;
    margin: 0;
}

/* --- 新建/编辑弹窗 --- */
.tender-modal .modal-header {
    background: #f7f8fa;
    border-bottom: 2px solid #d4af37;
    padding: 16px 24px;
}
.tender-modal .modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}
.tender-modal .modal-body {
    padding: 24px;
}
.tender-modal .form-section {
    background: #fafbfc;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 20px;
    border: 1px solid #eef0f3;
}
.tender-modal .form-section legend {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef0f3;
    width: 100%;
}
.tender-modal .modal-footer {
    border-top: 1px solid #eef0f3;
    padding: 16px 24px;
}

/* --- 动态表格（采购清单 / 评标规则） --- */
.tender-inline-table {
    width: 100%;
    font-size: 13px;
}
.tender-inline-table th {
    background: #f0f2f5;
    padding: 8px 10px;
    font-weight: 600;
    color: #5a6377;
    font-size: 12px;
}
.tender-inline-table td {
    padding: 6px 8px;
    vertical-align: middle;
}
.tender-inline-table .form-control-sm,
.tender-inline-table .form-select-sm {
    border-radius: 6px;
    border: 1px solid #dde1e6;
    font-size: 13px;
}
.tender-btn-add-row {
    margin-top: 10px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px dashed #c0c7d0;
    background: #fff;
    color: #5a6377;
    padding: 6px 16px;
    transition: all 0.2s;
}
.tender-btn-add-row:hover {
    border-color: #0f4c81;
    color: #0f4c81;
    background: #f0f4fa;
}

/* --- 文件上传 --- */
.tender-file-upload {
    border: 2px dashed #dde1e6;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    background: #fafbfc;
    transition: border-color 0.2s;
}
.tender-file-upload:hover {
    border-color: #0f4c81;
}
.tender-file-preview .badge {
    font-size: 12px;
    padding: 6px 12px;
    margin-right: 6px;
    border-radius: 6px;
    background: #eef1f5;
    color: #3a4050;
}

/* --- 响应式 --- */
@media (max-width: 768px) {
    .tender-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .tender-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .tender-filter-bar .form-select,
    .tender-filter-bar .form-control {
        width: 100%;
    }
    .tender-table-card {
        overflow-x: auto;
    }
}