/* ============================================================
 * 悦互动官网 - 样式文件
 * 文件: css/pages/view_article_newsnr.css
 * 悦多网络版权所有 © YueDuo Network. All Rights Reserved.
 * ============================================================ */

/* view_article_newsnr.html 页面专属样式（自内联 <style> 抽离） */
/* ===== 案例详情页 - 华为云科技运营风 ===== */

/* --- Hero区域：紫色渐变大标题 --- */
.case-hero {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4c1d95 100%);
}
.case-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 80%, rgba(99,102,241,0.25), transparent),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(139,92,246,0.2), transparent);
    pointer-events: none;
}
.case-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}
.case-hero h1 {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.case-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    color: rgba(199, 210, 254, 0.85);
    flex-wrap: wrap;
}
.case-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.case-hero-meta .tag {
    padding: 4px 12px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

/* --- 文章正文 --- */
.case-body {
    padding: 48px 0 80px;
    background: #fff;
}
.case-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

/* 左侧正文 */
.case-main {
    min-width: 0;
}
.case-cover {
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}
.case-cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* 富文本内容 */
.case-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-secondary);
}
.case-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin: 40px 0 16px;
    letter-spacing: -0.01em;
    line-height: 1.4;
}
.case-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 32px 0 14px;
    line-height: 1.4;
}
.case-content p {
    margin-bottom: 16px;
}
.case-content img {
    width: 100%;
    border-radius: var(--radius-lg);
    margin: 24px 0;
    display: block;
    box-shadow: var(--shadow-sm);
}
.case-content ul,
.case-content ol {
    margin: 16px 0;
    padding-left: 24px;
}
.case-content ul li {
    list-style: disc;
    margin-bottom: 8px;
}
.case-content ol li {
    list-style: decimal;
    margin-bottom: 8px;
}
.case-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding: 12px 20px;
    margin: 24px 0;
    background: var(--color-primary-bg);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--color-text);
    font-weight: 500;
}
.case-content strong {
    color: var(--color-text);
    font-weight: 600;
}

/* 信息卡片 */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0;
}
.info-card {
    padding: 20px;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    text-align: center;
}
.info-card-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 6px;
}
.info-card-label {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* 客户评价 */
.client-quote {
    padding: 28px;
    background: linear-gradient(135deg, #F8FAFF 0%, #F0F5FF 100%);
    border: 1px solid #DBEAFE;
    border-radius: var(--radius-xl);
    margin: 32px 0;
}
.client-quote-text {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 16px;
    font-style: italic;
}
.client-quote-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.client-quote-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.client-quote-info strong {
    font-size: 14px;
    color: var(--color-text);
    display: block;
}
.client-quote-info span {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* 使用功能标签 */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}
.feature-tag {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    background: var(--color-primary-bg);
    border: 1px solid var(--color-primary-light);
    border-radius: var(--radius-full);
}

/* 悦多网络版权所有 */

/* 右侧边栏 */
.case-sidebar {
    position: sticky;
    top: 84px;
}
.sidebar-card {
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.sidebar-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-light);
}
.related-case {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 8px;
    margin: 0 -8px;
    border-bottom: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
/* 悦多网络版权所有 */
.related-case:hover {
    background: var(--color-bg);
    transform: translateX(2px);
}
.related-case:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.related-case:first-child {
    padding-top: 0;
}
.related-case:hover .related-case-title {
    color: var(--color-primary);
}
.related-case-thumb {
    width: 96px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(15,23,42,0.08);
}
.related-case-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.related-case:hover .related-case-thumb img {
    transform: scale(1.06);
}
.related-case-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.related-case-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.45;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.related-case-tag {
    font-size: 11px;
    color: var(--color-primary);
    background: var(--color-primary-bg);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    align-self: flex-start;
}
/* 无标签时隐藏空标签块 */
.related-case-tag:empty,
.case-category-tag:empty {
    display: none;
}

/* CTA卡片 */
.sidebar-cta {
    padding: 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #4F46E5 100%);
    border-radius: var(--radius-xl);
    color: #fff;
    text-align: center;
}
.sidebar-cta h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}
.sidebar-cta p {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 16px;
}
.sidebar-cta .btn {
    width: 100%;
    background: #fff;
    color: var(--color-primary);
    font-weight: 600;
    border: none;
}
.sidebar-cta .btn:hover {
    background: var(--color-primary-bg);
    transform: translateY(-1px);
}

/* 分页导航 */
.case-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    margin-top: 40px;
    border-top: 1px solid var(--color-border-light);
    gap: 16px;
}
.case-nav-item {
    flex: 1;
    padding: 16px 20px;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    max-width: 45%;
}
.case-nav-item:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
}
.case-nav-item.next {
    text-align: right;
    margin-left: auto;
}
.case-nav-label {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}
.case-nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 手机端自适应 ===== */
@media (max-width: 768px) {
    .case-hero { padding: 100px 0 48px; }
    .case-hero h1 {
        font-size: 22px;
        margin-bottom: 12px;
        padding: 0 20px;
        line-height: 1.3;
    }
    .case-hero-meta {
        gap: 10px;
        font-size: 12px;
        padding: 0 16px;
    }
    .case-body { padding: 24px 0 40px; }
    .case-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .case-cover {
        border-radius: var(--radius-lg);
        margin-bottom: 24px;
    }
    .case-content {
        font-size: 15px;
        line-height: 1.75;
    }
    .case-content h2 {
        font-size: 20px;
        margin: 32px 0 12px;
    }
    .case-content h3 {
        font-size: 17px;
        margin: 24px 0 10px;
    }
    .case-content img {
        border-radius: var(--radius-md);
        margin: 16px 0;
    }
    .info-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin: 24px 0;
    }
    .info-card {
        padding: 14px 8px;
    }
    .info-card-num {
        font-size: 20px;
    }
    .info-card-label {
        font-size: 11px;
    }
    .client-quote {
        padding: 20px;
        margin: 24px 0;
    }
    .client-quote-text {
        font-size: 14px;
    }
    .case-nav {
        flex-direction: column;
        gap: 10px;
    }
    .case-nav-item {
        max-width: 100%;
        width: 100%;
    }
    .case-nav-item.next {
        text-align: left;
        margin-left: 0;
    }
    .case-sidebar {
        position: static;
    }
    .sidebar-card {
        padding: 16px;
    }
}

/* 悦多网络版权所有 */

/* ===== 易优CMS 模板适配：相关案例改为链接 ===== */
/* 悦多网络版权所有 */
a.related-case { text-decoration: none; color: inherit; }
a.case-nav-item.disabled { opacity: 0.55; pointer-events: none; }
/* 悦多网络版权所有 */

/* 悦多网络版权所有：文章未填TAG标签时隐藏空徽标 */
.case-hero-meta .tag:empty { display: none; }
