/* 案例列表页专用样式：由 list_case.html 内部样式抽取，未做任何样式改动 */


/* 页面底色：极淡紫白渐变，衬托白色卡片 */
body {
    background:
        radial-gradient(ellipse 62% 38% at 50% -8%, rgba(168, 85, 247, .08), transparent 62%),
        linear-gradient(180deg, #fff 0%, #fcfaff 46%, #f8f4ff 100%);
    background-attachment: fixed;
}

/* 内容容器宽度统一由 layout 的 --content-width 控制 */
body .case-list-page,
body .search-container {
    box-sizing: border-box;
    width: min(var(--content-width), 100%);
    margin-left: auto;
    margin-right: auto;
}

/* ---------- 搜索条 ---------- */
body .search-container {
    position: relative;
    z-index: 2;
    margin-top: -34px;
    margin-bottom: 44px;
    padding: 14px 22px;
    border: 1px solid rgba(196, 181, 253, .38);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(76, 29, 149, .10);
}

body .case-list-page .panel,
body .case-list-page .panel-default {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body .case-list-page .panel-body {
    padding: 0;
}

body .case-search-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0;
}

body .case-filter-select {
    position: relative;
    flex: 0 0 190px;
}

body .case-filter-select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 0;
    height: 0;
    margin-top: -2px;
    border-top: 5px solid #8b93a7;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    pointer-events: none;
}

body .case-filter-select select {
    width: 100%;
    height: 42px;
    padding: 0 36px 0 14px;
    border: 1px solid rgba(196, 181, 253, .45);
    border-radius: 10px;
    outline: 0;
    background: #faf8ff;
    color: #4a5568;
    font-size: 14px;
    line-height: 42px;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color .25s ease, box-shadow .25s ease;
}

body .case-filter-select select:focus {
    border-color: rgba(124, 58, 237, .5);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .1);
}

body .case-search-field {
    position: relative;
    flex: 0 1 420px;
}

body .case-search-field input {
    width: 100%;
    height: 42px;
    padding: 0 46px 0 16px;
    border: 1px solid rgba(196, 181, 253, .45);
    border-radius: 10px;
    outline: 0;
    background: #faf8ff;
    color: #445066;
    font-size: 14px;
    line-height: 42px;
    box-sizing: border-box;
    transition: border-color .25s ease, box-shadow .25s ease;
}

body .case-search-field input::placeholder {
    color: #a5adbd;
}

body .case-search-field input:focus {
    border-color: rgba(124, 58, 237, .5);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .1);
}

body .case-search-field button {
    position: absolute;
    top: 0;
    right: 0;
    width: 46px;
    height: 42px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--theme-color);
    font-size: 16px;
    line-height: 42px;
}

/* ---------- 案例列表 ---------- */
body .case-list-page {
    padding-top: 0;
    padding-bottom: 96px;
}

body .case-list-page .product-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px 24px;
    margin: 0;
}

body .case-list-page .product-list::before,
body .case-list-page .product-list::after {
    content: none;
}

/* 卡片 */
body .case-list-page .case-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(196, 181, 253, .3);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(49, 32, 94, .06);
    transition: border-color .35s ease, box-shadow .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}

/* 悬停：卡片小角度摆动，不做放大、不上移 */
@keyframes case-card-tilt {
    0% {
        transform: rotate(0deg);
    }

    45% {
        transform: rotate(-.6deg);
    }

    100% {
        transform: rotate(.35deg);
    }
}

body .case-list-page .case-card:hover {
    border-color: rgba(124, 58, 237, .32);
    box-shadow: 0 20px 40px rgba(76, 29, 149, .15);
    animation: case-card-tilt .5s cubic-bezier(.22, 1, .36, 1) forwards;
}

body .case-list-page .case-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f5f1ff;
}

body .case-list-page .case-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

body .case-list-page .case-card:hover .case-card__media img {
    transform: none;
}

body .case-list-page .case-card__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(124, 58, 237, .92);
    box-shadow: 0 6px 14px rgba(76, 29, 149, .24);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: .2px;
}

body .case-list-page .case-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 20px 22px 24px;
}

body .case-list-page .case-card__title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -.2px;
}

body .case-list-page .case-card__title a {
    display: -webkit-box;
    overflow: hidden;
    color: #1c2437;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color .25s ease;
}

body .case-list-page .case-card:hover .case-card__title a {
    color: var(--theme-color-strong);
}

body .case-list-page .case-card__desc {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #7c869c;
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1379px) {
    body .case-list-page .product-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    body .search-container {
        margin-top: -24px;
        margin-bottom: 32px;
    }

    body .case-list-page {
        padding-bottom: 64px;
    }

    body .case-list-page .product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 640px) {
    body .case-list-page,
    body .search-container {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    body .search-container {
        margin-top: -18px;
        padding-top: 16px;
        padding-bottom: 16px;
        border-radius: 14px;
    }

    body .case-search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    body .case-filter-select,
    body .case-search-field {
        flex: none;
        width: 100%;
    }

    body .case-list-page {
        padding-top: 0;
        padding-bottom: 52px;
    }

    body .case-list-page .product-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}
