/* ========================================
   新闻详情页样式
   ======================================== */

/* ====== 面包屑导航 ====== */
.detail-header {
    padding: 20px 0;
    background: #f9fafb;
    border-bottom: 1px solid var(--border);
}
.breadcrumb-nav {
    font-size: 13px;
    color: var(--text-light);
}
.breadcrumb-nav a {
    color: var(--text-light);
    transition: color 0.3s;
}
.breadcrumb-nav a:hover {
    color: var(--primary);
}
.breadcrumb-nav .sep {
    margin: 0 8px;
    color: #d1d5db;
}
.breadcrumb-nav .current {
    color: var(--text-gray);
}

/* ====== 主容器 ====== */
.detail-container {
    padding: 40px 0 60px;
}
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* ====== 文章主体 ====== */
.article {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 40px;
}

/* 文章头部 */
.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.article-cat {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    margin-bottom: 16px;
}
.article-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 16px;
    line-height: 1.4;
}
.article-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.article-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-light);
}
.article-meta .meta-item svg {
    color: var(--text-light);
}

/* 文章内容 */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}
.article-content p {
    margin: 0 0 20px;
}
.article-content h2,
.article-content h3 {
    margin: 32px 0 16px;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 20px 0;
}
.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    margin: 20px 0;
    background: var(--primary-bg);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* 分享 */
.article-share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.share-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}
.share-buttons {
    display: flex;
    gap: 12px;
}
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    color: var(--text-gray);
    transition: all 0.3s;
}
.share-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* 文章导航 */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.article-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f9fafb;
    border-radius: var(--radius-md);
    transition: all 0.3s;
}
.article-nav .nav-item:hover {
    background: var(--primary-bg);
}
.article-nav .nav-item.next {
    text-align: right;
    justify-content: flex-end;
}
.article-nav .nav-label {
    font-size: 12px;
    color: var(--text-light);
    display: block;
    margin-bottom: 4px;
}
.article-nav .nav-title {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    display: block;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-nav .nav-item:hover .nav-title {
    color: var(--primary);
}

/* ====== 相关推荐 ====== */
.related-section {
    margin-top: 40px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 32px 40px;
}
.related-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 24px;
}
.title-bar {
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}
.related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: var(--radius-md);
    transition: all 0.3s;
}
.related-item:hover {
    background: var(--primary-bg);
    transform: translateX(4px);
}
.related-dot {
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}
.related-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-item:hover .related-name {
    color: var(--primary);
}
.related-date {
    font-size: 13px;
    color: var(--text-light);
    flex-shrink: 0;
}

/* ====== 侧边栏 ====== */
.detail-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sidebar-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-bottom: 1px solid var(--border);
}
.sidebar-title svg {
    color: var(--primary);
}
.sidebar-menu {
    padding: 8px 0;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-gray);
    font-size: 14px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}
.menu-item:hover {
    color: var(--primary);
    background: var(--primary-bg);
}
.menu-item.active {
    color: var(--primary);
    font-weight: 600;
    border-left-color: var(--primary);
    background: var(--primary-bg);
}
.menu-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all 0.3s;
}
.menu-item:hover .menu-dot,
.menu-item.active .menu-dot {
    background: var(--primary);
}

/* 联系咨询卡片 */
.contact-card .contact-header {
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-bottom: 1px solid var(--border);
}
.contact-card .contact-content {
    padding: 20px;
}
.contact-tip {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0 0 16px;
}
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}
.contact-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
.contact-link {
    display: block;
    text-align: center;
    padding: 12px;
    margin-top: 12px;
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    transition: all 0.3s;
}
.contact-link:hover {
    background: var(--primary);
    color: #fff;
}

/* ====== CTA区 ====== */
.detail-cta {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
    margin-top: 40px;
}
.detail-cta .cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1A1A2E 0%, #16213e 100%);
}
.detail-cta .cta-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(200,22,29,0.3) 0%, transparent 60%);
}
.detail-cta .container {
    position: relative;
    z-index: 2;
    text-align: center;
}
.detail-cta .cta-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}
.detail-cta .cta-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin: 0 0 32px;
}
.detail-cta .cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.detail-cta .btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
}
.detail-cta .btn-primary {
    background: var(--primary);
    color: #fff;
}
.detail-cta .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
.detail-cta .btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
}
.detail-cta .btn-outline:hover {
    background: #fff;
    color: var(--text-dark);
}

/* ====== 响应式 ====== */
@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
    .detail-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
@media (max-width: 768px) {
    .article {
        padding: 24px 20px;
    }
    .article-title {
        font-size: 24px;
    }
    .article-nav {
        grid-template-columns: 1fr;
    }
    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }
    .detail-sidebar {
        grid-template-columns: 1fr;
    }
    .related-section {
        padding: 24px 20px;
    }
    .detail-cta .cta-title {
        font-size: 22px;
    }
    .detail-cta .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}
