body.deye-case-page {
    background: #fff;
    color: #191f2f;
}

body.deye-case-page *,
body.deye-case-page *::before,
body.deye-case-page *::after {
    box-sizing: border-box;
}

.case-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    background: linear-gradient(120deg, rgba(11, 43, 71, 0.88), rgba(25, 31, 47, 0.48)), url("../img/case/case_banner.png") center/cover no-repeat;
}

.case-hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -45% auto;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.case-hero .ui.container2 {
    position: relative;
    z-index: 1;
    padding: 94px 0 88px;
    max-width: 1200px;
    margin: 0 auto;
}

.case-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.case-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: #191f2f;
}

.case-hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.15;
}

.case-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.78);
    max-width: 600px;
    line-height: 1.6;
    margin: 0;
}

.case-main {
    padding: 50px 0 60px;
}

.case-main .ui.container2 {
    max-width: 1200px;
    margin: 0 auto;
}

.case-screen {
    background: transparent;
    padding: 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 25px;
}

.case-screen-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.case-screen-row:last-child {
    margin-bottom: 0;
}

.case-screen-label {
    flex-shrink: 0;
    width: auto;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0;
    padding-top: 0;
}

.case-screen-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.case-screen-links a {
    display: inline-block;
    padding: 6px 16px;
    font-size: 14px;
    color: #222;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    transition: all 0.2s;
}

.case-screen-links a:hover {
    border-color: #191f2f;
    color: #191f2f;
}

.case-screen-links a.is-active {
    background: #191f2f;
    border-color: #191f2f;
    color: #fff;
}

.case-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.case-item {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    transition: box-shadow 0.3s, transform 0.3s;
}

.case-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.case-item-pic {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
}

.case-item-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.case-item:hover .case-item-pic img {
    transform: scale(1.05);
}

.case-item-intro {
    padding: 20px 0 0;
}

.case-item-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-item:hover .case-item-title {
    color: #191f2f;
}

.case-item-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-item-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #191f2f;
    transition: gap 0.2s;
}

.case-item:hover .case-item-link {
    gap: 10px;
}

.case-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
}

.case-pagination span,
.case-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 15px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.case-pagination span {
    background: #191f2f;
    color: #fff;
    font-weight: 600;
}

.case-pagination a {
    background: #f5f5f5;
    color: #555;
}

.case-pagination a:hover {
    background: #e8e8e8;
    color: #222;
}

@media (max-width: 1200px) {
    .case-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .case-hero h1 {
        font-size: 32px;
    }

    .case-hero p {
        font-size: 15px;
    }

    .case-hero .ui.container2 {
        padding: 60px 0 50px;
    }

    .case-screen {
        padding: 20px;
    }

    .case-screen-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .case-screen-label {
        width: auto;
        padding-top: 0;
        text-align: left;
    }

    .case-screen-links {
        justify-content: flex-start;
    }

    .case-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .case-item-intro {
        padding: 18px 20px 22px;
    }
}
