/* 详情页面样式 */

/* 面包屑导航 */
.breadcrumb {
    padding: 1rem 0;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #2980b9;
}

.breadcrumb i {
    font-size: 0.8rem;
}

/* 详情容器 */
.detail-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-top: 2rem;
}

/* 主要内容区域 */
.detail-main {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* 文章头部 */
.detail-header {
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.category {
    background: #3498db;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.views {
    color: #7f8c8d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #f8f9fa;
    color: #495057;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid #e9ecef;
}

/* 主图 */
.detail-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

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

/* 文章内容 */
.detail-content {
    padding: 2rem;
}

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

.content-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.content-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* 优势网格 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.advantage-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    background: #3498db;
    color: white;
    transform: translateY(-5px);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.advantage-item:hover .advantage-icon {
    background: white;
    color: #3498db;
}

.advantage-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.advantage-item p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

/* 服务列表 */
.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 1.1rem;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list i {
    color: #27ae60;
    font-size: 1rem;
}

/* 适用场景 */
.scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.scenario-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.scenario-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.scenario-item p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* 价格表 */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-plan {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-plan.featured {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: scale(1.05);
}

.pricing-plan.featured::before {
    content: '推荐';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.pricing-plan h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #3498db;
}

.pricing-plan.featured .price {
    color: white;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
}

.pricing-plan ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-plan ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.pricing-plan.featured ul li {
    border-bottom-color: rgba(255,255,255,0.2);
}

.btn-select {
    background: #3498db;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.pricing-plan.featured .btn-select {
    background: white;
    color: #3498db;
}

.btn-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 操作按钮 */
.detail-actions {
    padding: 2rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.detail-actions button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-contact {
    background: #3498db;
    color: white;
}

.btn-contact:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-favorite {
    background: #e74c3c;
    color: white;
}

.btn-favorite:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-share {
    background: #95a5a6;
    color: white;
}

.btn-share:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

/* 侧边栏 */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 发布者卡片 */
.publisher-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.publisher-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.publisher-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.publisher-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.publisher-title {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.publisher-rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.publisher-rating i {
    color: #f39c12;
    font-size: 0.9rem;
}

.publisher-rating span {
    margin-left: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.publisher-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.publisher-contact {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #555;
}

.contact-item i {
    color: #3498db;
    width: 16px;
}

.publisher-actions {
    display: flex;
    gap: 1rem;
}

.btn-message,
.btn-follow {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-message {
    background: #3498db;
    color: white;
}

.btn-message:hover {
    background: #2980b9;
}

.btn-follow {
    background: #f8f9fa;
    color: #2c3e50;
    border: 2px solid #e9ecef;
}

.btn-follow:hover {
    background: #e9ecef;
}

/* 相关服务 */
.related-services {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.related-services h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

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

.related-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.related-content {
    flex: 1;
}

.related-content h4 {
    margin-bottom: 0.5rem;
}

.related-content h4 a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

.related-content h4 a:hover {
    color: #3498db;
}

.related-price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
}

/* 联系卡片 */
.contact-card {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-card p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .detail-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .detail-title {
        font-size: 2rem;
    }
    
    .header-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .detail-content {
        padding: 1.5rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-table {
        grid-template-columns: 1fr;
    }
    
    .pricing-plan.featured {
        transform: none;
    }
    
    .detail-actions {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .publisher-header {
        flex-direction: column;
        text-align: center;
    }
    
    .publisher-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .detail-header {
        padding: 1.5rem;
    }
    
    .detail-title {
        font-size: 1.5rem;
    }
    
    .detail-image {
        height: 250px;
    }
    
    .scenarios {
        grid-template-columns: 1fr;
    }
    
    .publisher-actions {
        flex-direction: column;
    }
}