/* 成功案例页面专用样式（基于全站 style.css 变量与组件） */

.page-cases .hero.hero-inner {
    min-height: 70vh;
}

.page-cases .hero.hero-inner .hero-content {
    max-width: 820px;
}

.page-cases section {
    scroll-margin-top: var(--nav-height);
}

/* 工程案例：重点案例布局微调 */
.page-cases #eng-cases .case-highlight {
    align-items: stretch;
}

/* 黄茅海中引桥大图：保证整图显示，灰框与图片贴合 */
.page-cases #eng-cases .case-highlight .case-image img {
    border-radius: 10px;
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
}

/* 通用案例卡片网格 */
.page-cases #eng-cases .case-grid,
.page-cases #edu-cases .case-grid,
.page-cases #media .case-grid,
.page-cases #minister-comment .case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.page-cases #edu-cases .case-grid {
    margin-top: 24px;
}

.page-cases .case-card {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(100, 255, 218, 0.06);
    box-shadow: 0 18px 28px -18px rgba(2, 12, 27, 0.9);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-cases .case-card .case-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.page-cases #media .case-card .case-img {
    height: 180px;
}

/* 工程案例网格：两张卡片的图片高度与显示规则完全一致 */
.page-cases #eng-cases .case-grid .case-card .case-img {
    height: auto;                  /* 框高度跟着图片走 */
    object-fit: contain;           /* 图片不变形，完整显示 */
    display: block;
}

.page-cases #media .case-card h4 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-cases #edu-cases .case-card:nth-child(1) .case-img {
    object-position: center bottom;
}

.page-cases #edu-cases .case-card:nth-child(2) .case-img {
    object-position: center top;
}

.page-cases #minister-comment .case-card {
    padding: 0;
}

.page-cases #minister-comment .case-card .case-img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
}

.page-cases #minister-comment .case-card .case-body {
    padding: 18px 24px 20px;
}

.page-cases #media .case-card:nth-child(2) .case-img {
    object-position: center bottom;
}

.page-cases #media .case-card:nth-child(3) .case-img {
    object-position: center top;
}

.page-cases .case-card .case-body {
    padding: 18px 20px 20px;
}

/* 工程案例网格：左右两张卡片的下半部等高 */
.page-cases #eng-cases .case-grid .case-card .case-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-cases #edu-cases .case-subtitle,
.page-cases #media .case-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.page-cases .case-card h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.page-cases .case-card p {
    font-size: 0.92rem;
}

.page-cases .case-tagline {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--accent);
}

/* 媒体与部长评价区块间距微调 */
.page-cases #minister-comment .section-header,
.page-cases #media .section-header {
    margin-bottom: 40px;
}

/* Hero 背景图适配 */
.page-cases .hero-bg-image {
    opacity: 0.7;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .page-cases .hero.hero-inner {
        min-height: 75vh;
    }

    .page-cases .case-card .case-img {
        height: 220px;
    }
}
