/* ========================================
   成功案例 / 行业资讯 模块样式 - 青岛振捷科技
   ======================================== */

/* ---------- 筛选条（成功案例） ---------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}

.filter-btn {
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: var(--transition);
}

.filter-btn:hover {
    color: var(--primary);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.filter-btn.active {
    color: var(--white);
    background: var(--gradient);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 114, 255, 0.35);
}

/* ---------- 案例卡片网格 ---------- */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.case-card.hide {
    display: none;
}

/* 案例封面：渐变底 + 网格蒙版 + 装饰圆环 */
.case-cover {
    position: relative;
    height: 176px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--gradient);
}

.case-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse 90% 90% at 30% 20%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at 30% 20%, black 30%, transparent 100%);
}

.case-cover::after {
    content: '';
    position: absolute;
    right: -42px;
    bottom: -58px;
    width: 170px;
    height: 170px;
    border: 26px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

/* 封面主题色变体 */
.case-cover.theme-a { background: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%); }
.case-cover.theme-b { background: linear-gradient(135deg, #22D3EE 0%, #0E7490 100%); }
.case-cover.theme-c { background: linear-gradient(135deg, #818CF8 0%, #4F46E5 100%); }
.case-cover.theme-d { background: linear-gradient(135deg, #38BDF8 0%, #2563EB 100%); }
.case-cover.theme-e { background: linear-gradient(135deg, #2DD4BF 0%, #0D9488 100%); }
.case-cover.theme-f { background: linear-gradient(135deg, #6366F1 0%, #3730A3 100%); }

/* 封面内容元素 */
.case-cover-tag {
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 2;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.case-cover-badge {
    position: absolute;
    right: 14px;
    bottom: 6px;
    z-index: 2;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
}

.case-cover .case-cover-meta {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 2;
    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.75);
}

/* 如放置真实项目截图，直接插入 <img class="case-cover-img"> 即可盖住装饰 */
.case-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 3;
}

/* 案例正文 */
.case-body {
    padding: 24px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.case-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.5;
}

.case-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 18px;
    flex-grow: 0;
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 14px 0;
    border-top: 1px dashed var(--border);
    border-bottom: 1px dashed var(--border);
    margin-bottom: 18px;
}

.case-metric {
    text-align: center;
}

.case-metric b {
    display: block;
    font-size: 18px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.4;
}

.case-metric span {
    display: block;
    font-size: 11px;
    color: var(--text-lighter);
    white-space: nowrap;
}

.case-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}

.case-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.case-tech-tag {
    padding: 3px 10px;
    font-size: 12px;
    color: var(--text-light);
    background: var(--bg-light);
    border-radius: 50px;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.case-link:hover {
    color: var(--primary-dark);
    transform: translateX(2px);
}

/* ---------- 行业资讯列表 ---------- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
}

.news-item {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
}

.news-item:hover {
    background: var(--white);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.news-item.open {
    background: var(--white);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.news-head {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 22px 26px;
}

.news-date {
    flex-shrink: 0;
    width: 74px;
    text-align: center;
    padding-right: 22px;
    border-right: 1px dashed var(--border);
}

.news-day {
    display: block;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-ym {
    display: block;
    font-size: 12px;
    color: var(--text-lighter);
    margin-top: 2px;
}

.news-main {
    flex: 1;
    min-width: 0;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.news-tag {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(0, 114, 255, 0.08);
    border-radius: 50px;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 6px;
    transition: var(--transition);
}

.news-item:hover .news-title {
    color: var(--primary);
}

.news-summary {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-arrow {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-lighter);
    transition: var(--transition);
    margin-top: 4px;
}

.news-item:hover .news-arrow,
.news-item.open .news-arrow {
    background: var(--gradient);
    border-color: transparent;
    color: var(--white);
    transform: rotate(180deg);
}

.news-arrow svg {
    width: 16px;
    height: 16px;
}

/* 资讯展开全文 */
.news-full {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-item.open .news-full {
    max-height: 600px;
}

.news-full-inner {
    padding: 0 26px 24px;
    margin-left: 96px;
    border-top: 1px dashed var(--border);
}

.news-full-inner p {
    padding-top: 18px;
    font-size: 14px;
    color: var(--text);
    line-height: 2;
    margin-bottom: 12px;
}

.news-full-inner p:last-child {
    margin-bottom: 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .filter-bar {
        gap: 8px;
    }

    .filter-btn {
        padding: 7px 16px;
        font-size: 13px;
    }

    .news-head {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }

    .news-date {
        display: flex;
        align-items: baseline;
        gap: 8px;
        width: auto;
        text-align: left;
        padding-right: 0;
        border-right: none;
    }

    .news-full-inner {
        margin-left: 0;
        padding: 0 20px 20px;
    }

    .news-arrow {
        display: none;
    }
}

@media (max-width: 560px) {
    .case-grid {
        grid-template-columns: 1fr;
    }

    .case-body {
        padding: 20px;
    }

    .case-metrics {
        gap: 4px;
    }
}

/* ========================================
   列表分页 / 独立详情页 扩展样式 - 青岛振捷科技
   （2026 增补）
   ======================================== */

/* ---------- 列表项整卡链接化 ---------- */
a.news-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.news-item:hover .news-arrow,
a.news-item.open .news-arrow {
    transform: translateX(4px);
}

.news-date-text {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-lighter);
    white-space: nowrap;
}

a.case-cover {
    display: block;
    text-decoration: none;
}

.case-title-link {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.case-title-link:hover {
    color: var(--primary);
}

.case-foot .case-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ---------- 分页组件 ---------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 44px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 14px;
    font-size: 14px;
    color: var(--text-light);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.pagination a:hover {
    color: var(--primary);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.pagination .page-num-current,
.pagination .page-num-current:hover {
    color: var(--white);
    background: var(--gradient);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 114, 255, 0.3);
    transform: none;
    cursor: default;
}

.pagination .page-pre,
.pagination .page-next,
.pagination .page-index,
.pagination .page-last {
    font-weight: 600;
}

.pagination .disabled {
    opacity: 0.45;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

/* 紧凑版页头（详情正文页使用） */
.detail-hero-sm {
    min-height: 0;
    padding: 150px 0 42px;
}

/* ---------- 文章 / 案例 详情页 ---------- */
.post-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
    margin-bottom: 20px;
}

.post-meta .news-tag {
    margin: 0;
}

.post-date,
.post-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-lighter);
}

.post-date svg,
.post-author svg {
    width: 15px;
    height: 15px;
}

.post-title {
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 800;
    color: var(--text);
    line-height: 1.5;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.post-lead {
    font-size: 16px;
    color: var(--text-light);
    line-height: 2;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px 0 20px;
    border-left: 3px solid var(--primary-light);
    text-align: left;
}

.post-body {
    font-size: 16px;
    color: var(--text);
    line-height: 2.1;
}

.post-body h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    margin: 44px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--primary);
}

.post-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    margin: 32px 0 12px;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body strong {
    color: var(--text);
}

.post-body ul,
.post-body ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.post-body li {
    margin-bottom: 8px;
}

.post-body blockquote {
    margin: 28px 0;
    padding: 18px 24px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    color: var(--text-light);
    font-style: italic;
}

.post-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 8px 0 24px;
}

.post-body a {
    color: var(--primary);
}

.post-footer {
    margin-top: 52px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.post-tags-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
}

.post-pager {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.post-pager a {
    text-decoration: none;
}

.post-prev,
.post-next {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.post-prev {
    align-items: flex-start;
    text-align: left;
}

.post-next {
    align-items: flex-end;
    text-align: right;
}

.post-prev .pager-label,
.post-next .pager-label {
    font-size: 12px;
    color: var(--text-lighter);
    letter-spacing: 1px;
}

.post-prev .pager-title,
.post-next .pager-title {
    display: block;
    max-width: 260px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition);
}

.post-prev:hover .pager-title,
.post-next:hover .pager-title {
    color: var(--primary);
}

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50px;
    white-space: nowrap;
    transition: var(--transition);
}

.post-back:hover {
    color: var(--primary);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

/* ---------- 案例详情页 ---------- */
.case-post-hero {
    position: relative;
    height: 380px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gradient);
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-post-hero .case-cover-tag {
    left: 28px;
    top: 28px;
}

.case-post-hero .case-cover-badge {
    font-size: 96px;
    right: 32px;
    bottom: 16px;
    color: rgba(255, 255, 255, 0.85);
}

.case-post-hero .case-cover-meta {
    left: 28px;
    bottom: 22px;
    font-size: 14px;
    letter-spacing: 3px;
}

.case-overview {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
    padding: 30px 32px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.case-overview-desc p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 2;
}

.case-overview-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-left: 32px;
    border-left: 1px dashed var(--border);
}

.case-overview-metrics .case-metric {
    text-align: center;
}

.case-overview-metrics .case-metric b {
    font-size: 22px;
}

/* 案例信息行 */
.case-info-list {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.case-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.case-info-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 10px;
    color: var(--white);
}

.case-info-icon svg {
    width: 20px;
    height: 20px;
}

.case-info-item .info-label {
    display: block;
    font-size: 12px;
    color: var(--text-lighter);
    margin-bottom: 2px;
}

.case-info-item .info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

/* ---------- 详情分页与正文响应式 ---------- */
@media (max-width: 768px) {
    .post-body {
        font-size: 15px;
    }

    .post-lead {
        font-size: 15px;
        padding: 0 16px;
    }

    .post-pager {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .post-back {
        justify-self: center;
        order: -1;
        margin-bottom: 8px;
    }

    .post-prev,
    .post-next {
        align-items: center;
        text-align: center;
    }

    .post-prev .pager-title,
    .post-next .pager-title {
        max-width: 100%;
    }

    .case-post-hero {
        height: 260px;
    }

    .case-overview {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }

    .case-overview-metrics {
        padding-left: 0;
        border-left: none;
        border-top: 1px dashed var(--border);
        padding-top: 20px;
    }

    .case-info-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .pagination {
        gap: 6px;
    }

    .pagination a {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        font-size: 13px;
    }

    .case-post-hero .case-cover-badge {
        font-size: 64px;
    }

    .case-overview-metrics {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 6px;
    }
}
