/* 技术文章列表页 — 统一设计语言，全部使用 rem */

.tech-desk {
    --tech-accent: var(--primary, #2563eb);
    --tech-ink: var(--text-strong, #0f172a);
    --tech-muted: var(--text-muted, #64748b);
    --tech-line: var(--page-divider, #e2e8f0);
    --tech-bg-soft: var(--panel-head-bg, #f8fafc);
}

.tech-brief {
    background: var(--hover-bg, #f8fafc);
    border: 0.0625rem solid var(--tech-line);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.tech-brief h4 {
    margin: 0 0 0.3rem;
    color: var(--tech-ink);
    font-size: 0.95rem;
    font-weight: 700;
}

.tech-brief h4 i {
    color: var(--tech-accent);
}

.tech-brief p {
    margin: 0;
    color: var(--tech-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.tech-brief .btn {
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999rem;
}

.tech-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 0.0625rem solid var(--tech-line);
}

.tech-filter-item {
    color: var(--text-main, #475569);
    text-decoration: none;
    border: 0.0625rem solid transparent;
    border-radius: 999rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tech-filter-item:hover,
.tech-filter-item.active {
    color: var(--tech-accent);
    background: transparent;
    border: 0.0625rem solid var(--primary-light, #bfdbfe);
}

.featured-panel {
    margin-bottom: 1.75rem;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 0.875rem;
}

.panel-heading h3 {
    margin: 0;
    color: var(--tech-ink);
    font-size: 0.95rem;
    font-weight: 700;
}

.panel-heading span {
    color: var(--tech-muted);
    font-size: 0.8rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.featured-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    color: inherit;
    text-decoration: none;
    border: 0.0625rem solid var(--tech-line);
    border-radius: 0.75rem;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
    border-color: var(--primary-light, #bfdbfe);
    background: var(--hover-bg, #f8fafc);
    box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.05);
}

.featured-category {
    display: inline-flex;
    align-self: flex-start;
    color: var(--tech-accent);
    font-size: 0.75rem;
    font-weight: 600;
    background: transparent;
    border: 0.0625rem solid var(--primary-light, #bfdbfe);
    padding: 0.15rem 0.55rem;
    border-radius: 999rem;
    margin-bottom: 0.55rem;
}

.featured-card h4 {
    margin: 0 0 0.45rem;
    color: var(--tech-ink);
    font-size: 0.95rem;
    line-height: 1.45;
    font-weight: 600;
}

.featured-card p {
    flex: 1;
    margin: 0 0 0.75rem;
    color: var(--tech-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card time {
    color: var(--text-soft, #94a3b8);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.tech-list {
    background: #fff;
    border: 0.0625rem solid var(--tech-line);
    border-radius: 0.75rem;
    overflow: hidden;
}

.tech-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: baseline;
    padding: 0.875rem 1rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 0.0625rem solid var(--tech-line);
    transition: background 0.15s ease;
}

.tech-list-item:last-child {
    border-bottom: none;
}

.tech-list-item:hover {
    background: var(--hover-bg, #f8fafc);
}

.tech-row-top {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.tech-category {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--tech-accent);
    font-size: 0.75rem;
    font-weight: 600;
    background: transparent;
    border: 0.0625rem solid var(--primary-light, #bfdbfe);
    padding: 0.12rem 0.55rem;
    border-radius: 999rem;
}

.tech-title {
    color: var(--tech-ink);
    font-size: 0.95rem;
    line-height: 1.55;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.tech-list-item:hover .tech-title {
    color: var(--tech-accent);
}

.tech-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    color: var(--text-soft, #94a3b8);
    font-size: 0.8rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.empty-state {
    padding: 3rem 1rem;
    color: var(--tech-muted);
    text-align: center;
    border: 0.0625rem dashed var(--tech-line);
    border-radius: 0.75rem;
    background: #fff;
}

@media (max-width: 61.9988rem) {
    .tech-brief {
        flex-direction: column;
    }

    .tech-brief .btn {
        align-self: flex-start;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 47.9988rem) {
    .tech-filter {
        gap: 0.375rem;
        padding-bottom: 0.85rem;
    }

    .tech-filter-item {
        padding: 0.35rem 0.7rem;
        font-size: 0.82rem;
    }

    .tech-list-item {
        gap: 0.6rem;
    }

    .tech-title {
        white-space: normal;
    }

    .tech-meta {
        font-size: 0.75rem;
    }
}
