/* 详情页面专用样式 */

/* 页面标题区域 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb .separator {
    margin: 0 10px;
    opacity: 0.7;
}

.breadcrumb .current {
    opacity: 0.8;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* 详情内容区域 */
.detail-content {
    padding: 40px 0;
    background: #f8f9fa;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

/* 左侧主要内容 */
.detail-main {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* 解决方案标题和基本信息 */
.solution-header {
    display: flex;
    gap: 30px;
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
}

.solution-image {
    position: relative;
    width: 300px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solution-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b6b;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.solution-info {
    flex: 1;
}

.solution-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.3;
}

.solution-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6c757d;
}

.meta-item i {
    color: #667eea;
}

.solution-price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.price-label {
    color: #6c757d;
    font-weight: 500;
}

.price-value {
    color: #667eea;
    font-weight: 600;
    font-size: 1.3rem;
}

/* 解决方案描述 */
.solution-description {
    padding: 30px;
}

.solution-description h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    margin-top: 30px;
}

.solution-description h3:first-child {
    margin-top: 0;
}

.solution-description p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* 功能特性网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.feature-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    background: white;
}

.feature-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
}

.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

/* 技术栈标签 */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tech-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.timeline-marker {
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #e9ecef;
}

.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.timeline-content p {
    color: #6c757d;
    margin: 0;
    font-size: 14px;
}

/* 右侧发布人信息 */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 发布人信息卡片 */
.publisher-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 25px;
    border: 1px solid #e9ecef;
}

.publisher-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.publisher-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.online-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: #51cf66;
    border: 2px solid white;
    border-radius: 50%;
}

.publisher-info {
    flex: 1;
}

.publisher-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.publisher-title {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 8px;
}

.publisher-rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.publisher-rating i {
    color: #ffd700;
    font-size: 14px;
}

.publisher-rating span {
    margin-left: 5px;
    font-size: 14px;
    color: #6c757d;
}

/* 发布人统计 */
.publisher-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
}

/* 联系方式 */
.contact-section {
    margin-bottom: 25px;
}

.contact-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.contact-item i {
    color: #667eea;
    width: 16px;
    text-align: center;
}

.contact-label {
    color: #6c757d;
    min-width: 70px;
}

.contact-value {
    color: #2d3748;
    font-weight: 500;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-contact,
.btn-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
}

.btn-phone {
    background: transparent;
    color: #667eea;
    border: 1px solid #667eea;
}

.btn-phone:hover {
    background: #667eea;
    color: white;
}

/* 相关推荐 */
.related-solutions {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 25px;
    border: 1px solid #e9ecef;
}

.related-solutions h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f1f3f4;
}

.related-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.related-item img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.related-info {
    flex: 1;
}

.related-info h5 {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 5px;
    line-height: 1.3;
}

.related-price {
    font-size: 12px;
    color: #667eea;
    font-weight: 500;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .detail-sidebar {
        order: -1;
    }
    
    .publisher-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 140px 0 60px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .solution-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .solution-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .solution-title {
        font-size: 1.6rem;
    }
    
    .solution-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .publisher-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .related-list {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 120px 0 40px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .detail-content {
        padding: 20px 0;
    }
    
    .solution-header,
    .solution-description,
    .publisher-card {
        padding: 20px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-item {
        padding-left: 20px;
    }
    
    .timeline-marker {
        left: -27px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .contact-label {
        min-width: auto;
    }
}