/* 
   Anzhiyu Premium UI System v2.5 (Absolute Compact)
   极致空间利用：暴力粉碎主题原生边距，实现无缝布局
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&family=Inter:wght@400;500;700&display=swap');

:root {
    --news-primary: hsl(203, 92%, 62%);
    --news-primary-soft: hsl(203, 92%, 96%);
    --news-accent: hsl(0, 100%, 71%);
    --news-bg: hsl(225, 40%, 98%);
    --news-card-bg: hsl(0, 0%, 100%);
    --news-text-main: hsl(240, 6%, 10%);
    --news-text-secondary: hsl(240, 4%, 45%);
    --news-border: hsl(240, 16%, 95%);
    --news-shadow: 0 10px 30px -10px hsla(240, 20%, 30%, 0.1);
    --news-font-title: 'Outfit', sans-serif;
    --news-font-body: 'Inter', -apple-system, sans-serif;
}

html[data-mode="dim"] {
    --news-bg: hsl(210, 30%, 8%);
    --news-card-bg: hsl(210, 25%, 12%);
    --news-text-main: hsl(210, 15%, 90%);
    --news-text-secondary: hsl(210, 10%, 65%);
    --news-border: hsl(210, 15%, 18%);
    --news-shadow: 0 15px 40px -10px hsla(0, 0%, 0%, 0.5);
    --news-primary-soft: hsla(203, 92%, 62%, 0.15);
}

body {
    background-color: var(--news-bg) !important;
    font-family: var(--news-font-body) !important;
    color: var(--news-text-main);
}

/* 🚀 顶部标题区域：避让导航栏 42px，且自身不留底部 padding */
.news_header {
    padding-top: 12px !important;
    /* 避让导航 */
    padding-bottom: 0 !important;
}

/* 🎯 重点打击：彻底摧毁截图所示的 80px 绿色冗余区域 */
.grid-inverse,
.grid-inverse.wrap.content,
.wrap.content,
.main,
#content,
.posts {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* 🖥️ PC端：覆盖主题默认的 5rem padding-top */
.content {
    padding-top: 3rem !important;
}

@media screen and (min-width: 769px) {
    .content {
        padding-top: 3.5rem !important;
    }

    .news_header {
        padding-top: 8px !important;
    }
}

/* 进一步压缩分类栏的垂直占用 */
.news_filter_scroll {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding: 0 0 4px 0 !important;
    margin-bottom: 0 !important;
}

.news_filters {
    display: flex;
    gap: 8px;
    align-items: center;
}

.news_filter_btn {
    padding: 4px 12px;
    background: var(--news-card-bg);
    border: 1px solid var(--news-border);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--news-text-secondary);
}

.news_filter_btn.active {
    background: var(--news-primary) !important;
    color: #fff !important;
}

/* News List Item - 极致紧凑 */
.news_item {
    margin: 0 !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid var(--news-border) !important;
}

.news_wrapper {
    display: flex;
    gap: 16px;
    align-items: center;
}

.news_content {
    flex: 1;
    min-width: 0;
}

.news_category {
    font-weight: 800;
    font-family: var(--news-font-title);
    font-size: 0.65rem;
    color: var(--news-primary);
    background: var(--news-primary-soft);
    padding: 0 4px;
    border-radius: 2px;
    margin-bottom: 3px;
    display: inline-block;
}

.news_title {
    margin: 0 !important;
    line-height: 1.25;
}

.news_title a {
    font-family: var(--news-font-title) !important;
    font-size: 1.25rem !important;
    font-weight: 850 !important;
    color: var(--news-text-main) !important;
    text-decoration: none !important;
}

.news_meta {
    margin-top: 4px;
    font-size: 0.7rem;
    color: var(--news-text-secondary);
}

/* 🎯 缩略图 */
.news_thumbnail_wrap {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.news_thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .news_header {
        padding-top: 15px !important;
    }

    /* 移动端强制消除任何可能的 padding */
    .grid-inverse,
    .wrap.content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .news_title a {
        font-size: 1.1rem !important;
    }

    .news_thumbnail_wrap {
        width: 60px;
        height: 60px;
    }

    .news_item {
        padding: 10px 10px !important;
    }
}