/* 招标公告详情页面专用样式 */
.bidding-detail-page {
    background-color: #f8f9fa;
}

.bidding-detail {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
}

/* 招标头部 */
.bidding-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.bidding-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 20px;
}

/* 基本信息网格 */
.bidding-basic-info {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-label {
    font-weight: 600;
    color: #495057;
    min-width: 80px;
    flex-shrink: 0;
}

.info-value {
    color: #2c3e50;
    flex: 1;
}

.info-value.deadline {
    color: #dc3545;
    font-weight: 600;
}

/* 招标元信息 */
.bidding-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

/* 招标内容区块 */
.bidding-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.bidding-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
}

.section-content {
    line-height: 1.7;
    color: #495057;
}

/* 更正公告区块 */
.correction-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 20px;
}

.correction-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.correction-item {
    padding: 10px;
    background: white;
    border-radius: 4px;
    border-left: 4px solid #fd7e14;
}

.correction-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.correction-link:hover {
    text-decoration: none;
    color: inherit;
}

.correction-type {
    background: #fd7e14;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.correction-title {
    flex: 1;
    font-weight: 500;
}

.correction-date {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 操作按钮 */
.bidding-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-share,
.btn-print,
.btn-reminder {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-share {
    background-color: #007bff;
    color: white;
}

.btn-share:hover {
    background-color: #0056b3;
}

.btn-print {
    background-color: #6c757d;
    color: white;
}

.btn-print:hover {
    background-color: #545b62;
}

.btn-reminder {
    background-color: #28a745;
    color: white;
}

.btn-reminder:hover {
    background-color: #1e7e34;
}

/* 相关招标公告 */
.related-biddings {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-item {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-link:hover {
    text-decoration: none;
    color: inherit;
}

.related-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-title:hover {
    color: #007bff;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
    flex-wrap: wrap;
    gap: 10px;
}

.related-meta .company {
    font-weight: 500;
    color: #495057;
}

/* 倒计时组件 */
.countdown-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.countdown-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.countdown-container {
    text-align: center;
}

.countdown {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    padding: 8px;
    border-radius: 4px;
    min-width: 50px;
}

.countdown-label {
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0.9;
}

.countdown-note {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* 热门招标 */
.hot-biddings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-item {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 12px;
}

.hot-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hot-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hot-link:hover {
    text-decoration: none;
    color: inherit;
}

.hot-title {
    display: block;
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.4;
    margin-bottom: 4px;
}

.hot-title:hover {
    color: #007bff;
}

.hot-company {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 2px;
}

.hot-views {
    font-size: 0.8rem;
    color: #6c757d;
}

/* 附件列表样式 */
.attachments-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attachment-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.attachment-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.15);
    transform: translateY(-1px);
}

.attachment-icon {
    margin-right: 16px;
    min-width: 40px;
    text-align: center;
}

.attachment-info {
    flex: 1;
    min-width: 0;
}

.attachment-link {
    text-decoration: none;
    color: #495057;
    display: block;
    margin-bottom: 4px;
}

.attachment-name {
    font-weight: 600;
    font-size: 14px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-link:hover .attachment-name {
    color: #007bff;
}

.attachment-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.attachment-meta .badge {
    font-size: 11px;
    padding: 4px 8px;
}

.upload-time {
    font-size: 12px;
}

.attachment-actions {
    display: flex;
    gap: 4px;
}

/* 附件上传区域样式 */
.attachment-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.attachment-upload-area:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.attachment-upload-area.dragover {
    border-color: #007bff;
    background: #e7f3ff;
}

/* 现有附件样式 */
.existing-attachments .list-group-item {
    border: 1px solid #e9ecef;
    margin-bottom: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.existing-attachments .list-group-item:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.remove-attachment {
    font-size: 12px;
}

/* 附件预览样式 */
#attachmentPreview .alert {
    margin-bottom: 8px;
    padding: 8px 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .attachment-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .attachment-icon {
        margin-right: 0;
        margin-bottom: 12px;
    }

    .attachment-info {
        width: 100%;
        margin-bottom: 12px;
    }

    .attachment-actions {
        align-self: flex-end;
    }

    .attachment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .bidding-detail {
        padding: 20px;
    }
    
    .bidding-title {
        font-size: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .bidding-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .related-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .countdown {
        gap: 5px;
    }
    
    .countdown-value {
        font-size: 1.2rem;
        min-width: 40px;
    }
}

@media (max-width: 576px) {
    .bidding-detail {
        padding: 15px;
    }
    
    .bidding-title {
        font-size: 1.3rem;
    }
    
    .bidding-basic-info {
        padding: 15px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-label {
        min-width: auto;
    }
}