/* =========================================================
   分类分栏模板（log_list_sort_cols.php）
   与 Daily English Read 清新绿主题一致
   ========================================================= */

.der-sort-cols-page {
    padding-bottom: 40px;
}

.der-sort-page-head {
    margin-bottom: 1.75rem;
}

.der-sort-page-eyebrow {
    color: #167653;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.4rem;
}

.der-sort-page-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.6rem, 2.8vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.4px;
    color: #214536;
}

.der-sort-page-desc {
    margin: 0;
    color: #70847a;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 640px;
}

[data-theme="dark"] .der-sort-page-title {
    color: var(--aColor);
}

[data-theme="dark"] .der-sort-page-desc {
    color: var(--lightColor);
}

/* 多列网格 */
.der-sort-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

@media (max-width: 1100px) {
    .der-sort-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .der-sort-cols {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* 单栏卡片 */
.der-sort-col {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--borderColor);
    border-radius: 14px;
    background: var(--conBgcolor);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.der-sort-col:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(23, 75, 46, 0.1);
}

/* 封面区 */
.der-sort-col-cover {
    position: relative;
    display: block;
    height: 168px;
    background:
        linear-gradient(160deg, rgba(16, 84, 62, 0.72), rgba(8, 40, 30, 0.55)),
        var(--col-bg, linear-gradient(135deg, #167653, #0d4a38)) center / cover no-repeat;
    text-decoration: none !important;
    overflow: hidden;
}

.der-sort-col-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 55%);
    pointer-events: none;
}

.der-sort-col-overlay {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

.der-sort-col-name {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.25;
    color: #fff !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
    overflow-wrap: anywhere;
}

.der-sort-col-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.95;
}

.der-sort-col-heat {
    color: #b8f0d0;
}

/* 文章列表 */
.der-sort-col-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    flex: 1 1 auto;
}

.der-sort-col-list li {
    margin: 0;
    border-bottom: 1px dashed rgba(22, 118, 83, 0.12);
}

.der-sort-col-list li:last-child {
    border-bottom: none;
}

.der-sort-col-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    color: var(--aColor) !important;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
}

.der-sort-col-item:hover {
    background: #f0f7f3;
    color: #167653 !important;
}

[data-theme="dark"] .der-sort-col-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #9ed6b4 !important;
}

.der-sort-col-dot {
    flex: 0 0 auto;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 6px;
    border-color: transparent transparent transparent #70ad8b;
    opacity: 0.85;
}

.der-sort-col-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.der-sort-col-views {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--lightColor);
    white-space: nowrap;
}

.der-sort-col-empty {
    padding: 20px 16px;
    text-align: center;
    color: var(--lightColor);
    font-size: 13px;
}

.der-sort-col-more {
    padding: 10px 16px 14px;
    border-top: 1px solid rgba(22, 118, 83, 0.1);
    text-align: center;
}

.der-sort-col-more a {
    font-size: 13px;
    font-weight: 600;
    color: #167653 !important;
}

.der-sort-col-more a:hover {
    color: #10543e !important;
}

.der-sort-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--lightColor);
}

[data-theme="dark"] .der-sort-col-list li {
    border-bottom-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .der-sort-col-more {
    border-top-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .der-sort-col-more a {
    color: #9ed6b4 !important;
}
