/* 详情页面样式 */

/* 主要内容区域 */
.detail-main {
    min-height: calc(100vh - 80px);
    padding-top: 100px;
    background: var(--bg-color);
}

/* 返回导航 */
.back-navigation {
    margin-bottom: 2rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-2px);
}

/* 项目详情容器 */
.project-detail {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 项目头部信息 */
.project-header {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.project-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-image:hover img {
    transform: scale(1.05);
}

.project-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-category {
    background: rgba(74, 144, 226, 0.2);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.project-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid;
}

.status-bidding {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.3);
}

.status-progress {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.3);
}

.status-completed {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border-color: rgba(108, 117, 125, 0.3);
}

.project-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.project-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.summary-item i {
    color: var(--primary-color);
    width: 16px;
}

/* 项目内容 */
.project-content {
    padding: 2rem;
}

.content-section {
    margin-bottom: 2.5rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.content-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.content-text p {
    margin-bottom: 1rem;
}

.content-text ul {
    list-style: none;
    padding: 0;
}

.content-text li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-text li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 发布人信息 */
.publisher-info {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--section-bg);
}

.publisher-info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.publisher-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.publisher-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.publisher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publisher-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.publisher-title {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.publisher-company {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-item i {
    color: var(--primary-color);
    width: 16px;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-btn, .favorite-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-btn {
    background: var(--primary-color);
    color: white;
}

.contact-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.favorite-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.favorite-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 相关项目推荐 */
.related-projects {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-projects h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.related-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 1.25rem;
}

.related-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.related-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.related-link:hover {
    color: var(--primary-hover);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .detail-main {
        padding-top: 80px;
    }
    
    .project-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .project-title {
        font-size: 1.5rem;
    }
    
    .project-summary {
        grid-template-columns: 1fr;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .publisher-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .publisher-info,
    .related-projects {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .back-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .project-header,
    .project-content,
    .publisher-info,
    .related-projects {
        padding: 1rem;
    }
    
    .project-title {
        font-size: 1.25rem;
    }
    
    .contact-actions {
        flex-direction: column;
    }
}