/* 案例详情页样式 */

body.case-detail-page {
    background: radial-gradient(circle at top left, #f0f4ff 0%, #f7f8fc 40%, #eef1f8 100%);
    padding-top: 80px;
}

.case-detail-main {
    padding: 30px 0 50px;
}

/* 面包屑导航 */
.case-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb-item {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover {
    color: #764ba2;
}

.breadcrumb-separator {
    color: #94a3b8;
}

.breadcrumb-separator i {
    font-size: 12px;
}

.breadcrumb-current {
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.case-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

/* 左侧案例内容 */
.case-detail-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.case-detail-content {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.case-detail-content .layui-card-body {
    padding: 30px;
}

.case-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.case-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    color: #64748b;
}

.case-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.case-meta-item i {
    font-size: 16px;
    color: #667eea;
}

.case-detail-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.case-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.case-detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 30px;
}

.case-detail-body p {
    margin-bottom: 15px;
}

.case-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

/* 案例标签 */
.case-detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.tags-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.case-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.case-tag:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 上一篇/下一篇导航 */
.case-nav {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.case-nav-item {
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-link:hover .nav-label,
.nav-link:hover .nav-title {
    color: #fff;
}

.nav-link:hover .nav-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.nav-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-disabled:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #e2e8f0;
    transform: none;
    box-shadow: none;
}

.case-nav-next .nav-link {
    flex-direction: row-reverse;
    text-align: right;
}

.nav-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 20px;
    transition: all 0.3s ease;
}

.nav-content {
    flex: 1;
    min-width: 0;
}

.nav-label {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.nav-title {
    font-size: 15px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    transition: color 0.3s ease;
}

/* 右侧边栏 */
.case-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-block {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.sidebar-block:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.sidebar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header i {
    font-size: 18px;
    opacity: 0.95;
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.sidebar-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 软件介绍 */
.goods-intro {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.goods-intro-thumb {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.goods-intro-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.goods-intro-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.goods-intro-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.goods-intro-title a:hover {
    color: #667eea;
}

.goods-intro-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.goods-intro-link {
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

/* 相关案例卡片 */
.sidebar-card-item {
    display: flex;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border: 1px solid #e0ebff;
    border-radius: 10px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.sidebar-card-item:hover::before {
    left: 100%;
}

.sidebar-card-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sidebar-card-item:hover .card-item-title {
    color: #fff;
}

.sidebar-card-item:hover .card-item-meta {
    color: rgba(255, 255, 255, 0.9);
}

.card-item-content {
    width: 100%;
    position: relative;
    z-index: 1;
}

.card-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    transition: color 0.3s ease;
}

.card-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    transition: color 0.3s ease;
}

.card-item-meta i {
    font-size: 14px;
}

/* 热门标签 */
.hot-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-tag-item {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    color: #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.hot-tag-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.hot-tag-item:hover::before {
    left: 100%;
}

.hot-tag-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .case-detail-wrapper {
        grid-template-columns: 1fr;
    }

    .case-detail-sidebar {
        order: -1;
    }

    .case-detail-title {
        font-size: 22px;
    }

    .case-detail-content .layui-card-body {
        padding: 20px;
    }

    .case-nav {
        flex-direction: column;
        gap: 15px;
    }

    .case-nav-next .nav-link {
        flex-direction: row;
        text-align: left;
    }

    .nav-link {
        padding: 15px;
    }

    .nav-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .nav-title {
        font-size: 14px;
    }
}

