/* DIY 装机成品展示 卡片列表样式（theme 模式：仅装饰内容区，保留主题 header/footer） */

.apt_builds-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    box-sizing: border-box;
}

.apt_builds-title {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    text-align: center;
}

.apt_builds-intro {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
    max-width: 760px;
    margin: 0 auto 28px;
}

.apt_builds-grid {
    display: grid;
    grid-template-columns: repeat(var(--apt-cols, 3), 1fr);
    gap: 18px;
}

.apt_builds-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.apt_builds-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--theme-color);
}

.apt_builds-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--bg-secondary);
    overflow: hidden;
}

.apt_builds-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.apt_builds-card:hover .apt_builds-thumb img {
    transform: scale(1.05);
}

.apt_builds-thumb-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    color: var(--text-tertiary);
    background: var(--bg-hover);
}

.apt_builds-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px 16px;
}

.apt_builds-cat {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-link);
    background: var(--bg-hover);
    padding: 2px 10px;
    border-radius: 9999px;
}

.apt_builds-card-title {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.apt_builds-excerpt {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.apt_builds-date {
    color: var(--text-tertiary);
    font-size: 12px;
    margin-top: auto;
}

.apt_builds-empty {
    color: var(--text-secondary);
    text-align: center;
    padding: 40px 0;
}

.apt_builds-more {
    text-align: center;
    margin-top: 28px;
}

.apt_builds-more-btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 9999px;
    background: var(--theme-color);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: filter .15s ease;
}

.apt_builds-more-btn:hover {
    filter: brightness(0.94);
}

/* 响应式：窄屏自动降列（覆盖 --apt-cols） */
@media (max-width: 900px) {
    .apt_builds-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .apt_builds-grid { grid-template-columns: 1fr; }
}
