/* 全局变量覆盖：减少卡片之间的间距 */
:root {
    --section-separation: 6px !important;
    --main-top-padding: 0px !important;
}

/* =========================================
   华尔街见闻风格 - 分类导航
   ========================================= */

.main-category-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    background: #ffffff;
    padding: 0;
    margin: 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #f0f0f0;
}

/* 暗色模式 */
[data-scheme="dark"] .main-category-nav {
    background: #1a1a2e;
    border-bottom-color: #333;
}

.main-category-nav .category-list {
    display: flex;
    overflow-x: auto;
    gap: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
    flex-wrap: nowrap;
    padding: 0 12px;
}

.main-category-nav .category-list::-webkit-scrollbar {
    display: none;
}

/* 分类按钮 - 纯文字下划线样式 */
.main-category-nav .category-item {
    display: inline-block;
    padding: 10px 5px;
    border-radius: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: none;
    border: none;
    background: transparent !important;
    position: relative;
}

[data-scheme="dark"] .main-category-nav .category-item {
    color: #ccc;
}

/* 激活状态 - 通过 .active 类控制 */
/* 激活状态 - 通过 .active 类控制 */
.main-category-nav .category-item.active {
    color: #e53935 !important;
    font-weight: 700 !important;
}

.main-category-nav .category-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5px;
    right: 5px;
    height: 2px;
    background: #e53935 !important;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.main-category-nav .category-item.active::after {
    transform: scaleX(0.7);
    /* Shorten the underline */
}

[data-scheme="dark"] .main-category-nav .category-item.active {
    color: #ff6b6b !important;
    font-weight: 700 !important;
}

[data-scheme="dark"] .main-category-nav .category-item.active::after {
    background: #ff6b6b !important;
}

.main-category-nav .category-item:hover {
    color: #e53935;
    filter: none;
    box-shadow: none;
}

[data-scheme="dark"] .main-category-nav .category-item:hover {
    color: #ff6b6b;
}

/* Arrow Indicator */
/* Arrow Indicator */
.main-category-nav {
    position: relative;
    /* Ensure positioning context */
}

/* Arrow Indicator Container */
.category-indicator {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 25px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 1) 100%);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Let clicks pass through if needed, though background covers */
}

/* Arrow Icon */
.category-indicator::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    transform: rotate(-45deg);
    display: block;
    margin-right: 4px;
}

[data-scheme="dark"] .category-indicator {
    background: linear-gradient(to right, rgba(26, 26, 46, 0) 0%, rgba(26, 26, 46, 1) 30%, rgba(26, 26, 46, 1) 100%);
}

[data-scheme="dark"] .category-indicator::after {
    border-color: #666;
}

/* 文章列表过渡效果 */
.article-list {
    transition: opacity 0.2s ease;
}