/* =====================================================
   Creation Center Page Styles (优化版)
   Apple 风格卡片 + GPU 加速 + 响应式布局
===================================================== */

.dm-creations-center {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}
.dm-page-title {
    text-align: center;
}
/* ---------------------------------------------
   GRID
--------------------------------------------- */
.dm-term-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
}

/* ---------------------------------------------
   CARD
--------------------------------------------- */
.dm-term-card {
    flex: 0 0 calc((100% - 60px) / 3);
    max-width: calc((100% - 60px) / 3);
    display: flex;
    flex-direction: column;
    position: relative;

    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #111;

    box-shadow: 0 4px 14px rgba(0,0,0,0.08);

    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition:
        opacity .6s ease,
        transform .6s ease,
        box-shadow .3s ease;
    will-change: transform, opacity;
}

/* fade-in */
.dm-term-card.dm-fade-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* hover */
.dm-term-card:hover {
    transform: translate3d(0, -6px, 0);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

/* ---------------------------------------------
   THUMB
--------------------------------------------- */
.dm-term-card-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.dm-term-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dm-term-card-thumb-fallback {
    width: 100%;
    height: 100%;
    background: #f2f2f2;
}

/* ---------------------------------------------
   BODY
--------------------------------------------- */
.dm-term-card-body {
    padding: 18px 16px 20px;
}

.dm-term-card-title {
    font-size: 20px;
    margin: 0;
    font-weight: 600;
    line-height: 1.25;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------------------------------------------
   RESPONSIVE
--------------------------------------------- */
@media (max-width: 900px) {
    .dm-term-card {
        flex: 0 0 calc((100% - 30px) / 2);
        max-width: calc((100% - 30px) / 2);
    }
}

@media (max-width: 600px) {
    .dm-term-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .dm-term-grid {
        gap: 20px;
    }
}

/* ---------------------------------------------
   TOUCH DEVICE OPTIMIZATION
--------------------------------------------- */
@media (hover: none) {
    .dm-term-card:hover {
        transform: none;
        box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    }
}
