/* Custom styles: Slate palette, clean hero scrim, equal-height article cards */

/* 1. 去掉首屏及各页封面刺眼的彩虹循环遮罩，改为柔和深蓝灰半透明遮罩 */
.bg-cover:after {
    -webkit-animation: none !important;
    animation: none !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.34) 0%, rgba(15, 23, 42, 0.52) 100%) !important;
}

/* 2. 深蓝灰 Slate 主色调 + 滚动后微透明磨砂导航栏 */
.bg-color {
    background-image: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.text-color {
    color: #334155 !important;
}

header nav.bg-color:not(.nav-transparent) {
    background-image: none;
    background-color: rgba(15, 23, 42, 0.84);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.14);
}

header nav.nav-transparent {
    background-color: transparent !important;
    background-image: none !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
}

.progress-bar {
    background: linear-gradient(to right, #334155 0%, #64748b 100%);
}

.top-scroll .btn-floating {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

article a:hover {
    color: #2563eb;
}

/* 3. 文章列表卡片统一等高对齐（严格限定在 #articles，不影响文章正文页） */
#articles {
    margin-top: 28px;
    margin-bottom: 24px;
}

#articles .article .card {
    height: 400px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#articles .article .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

#articles .article .card-image {
    flex-shrink: 0;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

#articles .article .card-image img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    opacity: 0.85;
    border-radius: 0;
}

#articles .article .card-content.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 16px 12px;
    overflow: hidden;
}

#articles .article .article-content .summary.block-with-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.55em;
    height: 4.65em;
    max-height: 4.65em;
    margin-right: 0;
    padding-right: 0;
    padding-bottom: 0;
    margin-bottom: 8px;
    text-align: left;
}

#articles .article .article-content .summary.block-with-text:before,
#articles .article .article-content .summary.block-with-text:after {
    display: none;
    content: none;
}

#articles .article .card-action.article-tags {
    flex-shrink: 0;
    height: 46px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
}

#articles .article .article-tags .chip {
    margin: 0;
}

#articles .article .article-tags .chip.bg-color {
    background-image: none;
    background-color: #475569;
}

#articles .article .article-tags .chip.bg-color:hover {
    background-color: #1e293b;
}
