/* 案例详情页样式 */

/* 案例详情页容器加宽 */
.case-detail-page .container {
    max-width: 1400px;
}

/* 面包屑导航 */
.case-breadcrumb {
    background: #f8f9fa;
    padding: 16px 0;
    border-bottom: 1px solid #e8e8e8;
}

.case-breadcrumb .container {
    font-size: var(--text-sm);
    color: #666;
}

.case-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.case-breadcrumb a:hover {
    color: #2563EB;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb-current {
    color: #333;
}

/* 案例头部 */
.case-detail-header {
    background: linear-gradient(0deg, rgb(248, 249, 250) 0%, rgb(239, 247, 255) 50%, rgb(227, 241, 255) 100%);

    padding: 40px 0 16px;

}

.case-detail-title {
    font-size: var(--text-3xl);
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 20px;
    text-align: center;
}

.case-detail-meta {
    
    gap: 12px;
    text-align: center;
}

.case-meta-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #f0f7ff;
    color: #2563EB;
    font-size: var(--text-sm);
    border-radius: 4px;
    text-align: center;
}

/* 详情页主体布局 */
.case-detail-container {
    background: #f8f9fa;
    padding: 16px 0 32px;
}

.case-detail-layout {
    display: flex;
    gap: 40px;
}

/* 左侧目录导航 */
.case-detail-sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.case-toc {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sidebar-back-btn {
    display: block;
    font-size: var(--text-sm);
    color: #2563EB;
    text-decoration: none;
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 6px;
    background: #f0f7ff;
    border: 1px solid #dbeafe;
    transition: all 0.3s;
}

.sidebar-back-btn:hover {
    background: #2563EB;
    color: #fff;
    border-color: #2563EB;
}

.toc-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toc-link {
    font-size: var(--text-sm);
    color: #666;
    text-decoration: none;
    line-height: 1.6;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.toc-link:hover {
    color: #2563EB;
    background: #f0f7ff;
}

.toc-link.active {
    color: #2563EB;
    background: #f0f7ff;
    border-left-color: #2563EB;
    font-weight: 500;
}

/* 主内容区域 */
.case-detail-content {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 右侧边栏 */
.case-detail-rightbar {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 立即注册卡片 */
.sidebar-card {
    background: linear-gradient(0deg, rgb(255, 255, 255) 0%, rgb(239, 247, 255) 50%, rgb(227, 241, 255) 100%);
    border-radius: 8px;
    padding: 20px;
}

.sidebar-card-title {
    font-size: var(--text-md);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.sidebar-card-desc {
    font-size: var(--text-sm);
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.sidebar-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    color: #2563EB;
    border: 1px solid #2563EB;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all 0.3s;
}

.sidebar-btn:hover {
    background: #2563EB;
    color: #fff;
}

/* 搜索框 */
.sidebar-search {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.sidebar-search-input {
    width: 100%;
    padding: 14px 44px 14px 16px;
    border: none;
    font-size: var(--text-sm);
    color: #333;
    background: transparent;
}

.sidebar-search-input::placeholder {
    color: #999;
}

.sidebar-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-search-btn:hover {
    color: #2563EB;
}

.sidebar-search-btn svg {
    width: 18px;
    height: 18px;
}

/* 功能卡片（产品功能、商旅百科） */
.sidebar-feature-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #5B9BD5 0%, #4A90D9 100%);
    border-radius: 8px;
    padding: 16px 20px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.3);
}

.sidebar-wiki-card {
    background: linear-gradient(135deg, #6B9FD4 0%, #5B8BD4 100%);
}

.sidebar-wiki-card:hover {
    box-shadow: 0 4px 12px rgba(91, 139, 212, 0.3);
}

.feature-card-content {
    flex: 1;
}

.feature-card-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.feature-card-desc {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feature-card-img {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    margin-left: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.feature-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 为您推荐 */
.sidebar-recommend {
    background: linear-gradient(0deg, rgb(255, 255, 255) 0%, rgb(239, 247, 255) 50%, rgb(227, 241, 255) 100%);
    border-radius: 8px;
    padding: 20px;
}

.sidebar-section-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.recommend-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommend-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.recommend-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recommend-list a {
    font-size: var(--text-sm);
    color: #444;
    text-decoration: none;
    line-height: 1.6;
    display: block;
    transition: color 0.3s;
}

.recommend-list a:hover {
    color: #2563EB;
}

/* 热门标签 */
.sidebar-tags {
    background: linear-gradient(0deg, rgb(255, 255, 255) 0%, rgb(239, 247, 255) 50%, rgb(227, 241, 255) 100%);
    border-radius: 8px;
    padding: 20px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    color: #666;
    font-size: var(--text-xs);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-item:hover {
    background: #2563EB;
    color: #fff;
}

/* 扫码关注 */
.sidebar-qrcode {
    background: linear-gradient(0deg, rgb(255, 255, 255) 0%, rgb(239, 247, 255) 50%, rgb(227, 241, 255) 100%);
    border-radius: 8px;
    padding: 20px;
}

.qrcode-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qrcode-img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.qrcode-text {
    flex: 1;
}

.qrcode-text p {
    font-size: var(--text-sm);
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 客户简介 */
.case-intro {
    font-size: var(--text-base);
    line-height: 1.8;
    color: #444;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 4px solid #2563EB;
}

/* 章节样式 */
.case-section {
    margin-bottom: 48px;
}

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

.section-heading {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8e8e8;
}

.section-content {
    font-size: var(--text-base);
    line-height: 1.8;
    color: #444;
}

.section-content p {
    margin-bottom: 16px;
}

/* 富文本内容中的图片限制 */
.section-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

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

/* 案例详情富文本内容 */
.case-rich-content {
    font-size: var(--text-base);
    line-height: 1.8;
    color: #444;
}

.case-rich-content h1 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 40px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8e8e8;
    scroll-margin-top: 100px;
}

.case-rich-content h1:first-child {
    margin-top: 0;
}

.case-rich-content h2 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 32px;
    margin-bottom: 16px;
}

.case-rich-content h3 {
    font-size: var(--text-md);
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 24px;
    margin-bottom: 12px;
}

.case-rich-content p {
    margin-bottom: 16px;
}

.case-rich-content p:last-child {
    margin-bottom: 0;
}

.case-rich-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 16px 0;
}

.case-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: var(--text-sm);
}

.case-rich-content table th,
.case-rich-content table td {
    border: 1px solid #e8e8e8;
    padding: 10px 12px;
    text-align: left;
}

.case-rich-content table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.case-rich-content ul,
.case-rich-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.case-rich-content li {
    margin-bottom: 8px;
}

.case-rich-content a {
    color: #2563EB;
    text-decoration: none;
}

.case-rich-content a:hover {
    text-decoration: underline;
}

/* 图片样式 */
.case-image {
    margin: 32px 0;
    text-align: center;
}

.case-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 关于我们区块 */
.case-about {
    background: #f0f7ff;
    padding: 32px;
    border-radius: 8px;
    margin-top: 40px;
}

.case-about .section-heading {
    border-bottom-color: #2563EB;
    color: #2563EB;
}

/* 上一篇/下一篇导航 */
.case-detail-nav {
    background: #fff;
    padding: 32px 0;
    border-top: 1px solid #e8e8e8;
}

.case-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.case-nav-item {
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #e8e8e8;
}

.case-nav-item:hover {
    background: #f0f7ff;
    border-color: #2563EB;
}

.case-nav-prev {
    text-align: left;
}

.case-nav-next {
    text-align: right;
}

.nav-label {
    font-size: var(--text-sm);
    color: #999;
    margin-bottom: 8px;
}

.nav-title {
    font-size: var(--text-base);
    color: #333;
    font-weight: 500;
    line-height: 1.5;
}

.case-nav-item:hover .nav-title {
    color: #2563EB;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .case-detail-rightbar {
        flex: 0 0 300px;
    }
}

@media (max-width: 1024px) {
    .case-detail-layout {
        flex-direction: column;
    }

    .case-detail-sidebar {
        flex: 0 0 auto;
        position: relative;
        top: 0;
        order: 2;
    }

    .case-detail-rightbar {
        flex: 0 0 auto;
        position: relative;
        top: 0;
        order: 3;
    }

    .case-detail-content {
        order: 1;
    }

    .case-toc {
        padding: 16px;
    }

    .toc-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .toc-link {
        padding: 6px 12px;
        border-left: none;
        background: #f0f0f0;
        border-radius: 4px;
    }

    .toc-link.active {
        border-left: none;
        background: #2563EB;
        color: #fff;
    }

    .case-detail-rightbar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .sidebar-card,
    .sidebar-search,
    .sidebar-feature-card,
    .sidebar-recommend,
    .sidebar-tags,
    .sidebar-qrcode {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .case-detail-title {
        font-size: var(--text-xl);
    }

    .case-detail-content {
        padding: 24px;
    }

    .section-heading {
        font-size: var(--text-md);
    }

    .case-nav-grid {
        grid-template-columns: 1fr;
    }

    .case-nav-next {
        text-align: left;
    }

    .case-intro {
        padding: 16px;
        font-size: var(--text-sm);
    }

    .section-content {
        font-size: var(--text-sm);
    }

    .case-about {
        padding: 20px;
    }

    .case-detail-rightbar {
        grid-template-columns: 1fr;
    }
}
