/* 中标公告详情页面专用样式 */
.winning-detail-page {
    background-color: #f8f9fa;
}

.winning-detail {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
}

/* 中标头部 */
.winning-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.winning-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 20px;
}

/* 关联招标信息 */
.related-bidding {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.related-bidding h3 {
    font-size: 1.1rem;
    color: #0066cc;
    margin-bottom: 10px;
}

.bidding-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bidding-link {
    text-decoration: none;
    color: inherit;
}

.bidding-link:hover {
    text-decoration: none;
    color: inherit;
}

.bidding-title {
    font-weight: 600;
    color: #2c3e50;
}

.bidding-title:hover {
    color: #007bff;
}

.project-number {
    color: #6c757d;
    font-size: 0.9rem;
}

.bidding-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

/* 中标基本信息 */
.winning-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: center;
    gap: 10px;
}

.info-item.highlight {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 10px;
}

.info-label {
    font-weight: 600;
    color: #495057;
    min-width: 80px;
    flex-shrink: 0;
}

.info-value {
    color: #2c3e50;
    flex: 1;
}

.winning-company {
    color: #28a745;
    font-weight: 600;
    font-size: 1.1rem;
}

.winning-amount {
    color: #dc3545;
    font-weight: 700;
    font-size: 1.2rem;
}

/* 公示期限 */
.publicity-period {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.period-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.period-label {
    font-weight: 600;
    color: #856404;
}

.period-dates {
    color: #856404;
    font-weight: 500;
}

.days-left {
    color: #28a745;
    font-weight: 600;
}

.days-left.expired {
    color: #dc3545;
}

/* 中标元信息 */
.winning-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

/* 中标内容区块 */
.winning-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.winning-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;
}

/* 联系方式区块 */
.contact-section {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-label {
    font-weight: 600;
    color: #0066cc;
    min-width: 80px;
}

.contact-value {
    color: #2c3e50;
}

/* 操作按钮 */
.winning-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-download {
    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-download {
    background-color: #28a745;
    color: white;
}

.btn-download:hover {
    background-color: #1e7e34;
}

/* 相关中标公告 */
.related-winnings {
    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: #28a745;
}

.related-meta .amount {
    color: #dc3545;
    font-weight: 600;
}

/* 公示状态组件 */
.status-widget {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.status-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.status-info {
    text-align: center;
}

.status-active,
.status-expired {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.status-text {
    font-weight: 600;
    font-size: 1.1rem;
}

.days-left {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.end-date {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 热门中标 */
.hot-winnings {
    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: #28a745;
    font-weight: 500;
    margin-bottom: 2px;
}

.hot-amount {
    display: block;
    font-size: 0.8rem;
    color: #dc3545;
    font-weight: 600;
    margin-bottom: 2px;
}

.hot-views {
    font-size: 0.8rem;
    color: #6c757d;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .winning-detail {
        padding: 20px;
    }
    
    .winning-title {
        font-size: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .winning-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;
    }
    
    .period-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 576px) {
    .winning-detail {
        padding: 15px;
    }
    
    .winning-title {
        font-size: 1.3rem;
    }
    
    .winning-basic-info {
        padding: 15px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-label {
        min-width: auto;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}