/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f7fa;
    min-height: 100vh;
}

/* 头部样式 */
.header {
    background: #184D6F;
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header h1 img {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

.header p {
    margin: 0.3rem 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-right span {
    color: white;
    font-size: 0.95rem;
}

/* 主内容区域 */
.main-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

/* 表格容器 */
.table-container {
    padding: 1.5rem;
}

/* DataTables 样式 */
table.dataTable thead th {
    background-color: #1e3a5f;
    color: white;
    border: none;
    font-weight: 500;
    padding: 12px 16px;
}

table.dataTable tbody tr {
    transition: background-color 0.2s ease;
}

table.dataTable tbody tr:hover {
    background-color: #f0f4f8;
}

table.dataTable tbody td {
    padding: 12px 16px;
    border-color: #e2e8f0;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

/* 搜索框样式 */
.search-box {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus {
    border-color: #2d5a87;
    box-shadow: 0 0 0 3px rgba(45, 90, 135, 0.1);
}

/* 状态标签 */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.tender {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.status-badge.awarded {
    background-color: #dcfce7;
    color: #16a34a;
}

.status-badge.progress {
    background-color: #fef3c7;
    color: #d97706;
}

/* 统计卡片 */
.stat-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    color: white;
}

.stat-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-card .stat-label {
    opacity: 0.9;
    font-size: 0.875rem;
}

/* 自定义下拉框样式 */
.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
    background-color: white;
}

.custom-select:hover {
    border-color: #9ca3af;
    background-color: #f9fafb;
}

.custom-select:focus {
    outline: none;
    border-color: #2d5a87;
    box-shadow: 0 0 0 3px rgba(45, 90, 135, 0.1);
}

.custom-select option {
    padding: 8px 12px;
    background-color: white;
    color: #374151;
}

.custom-select option:hover {
    background-color: #f3f4f6;
}
