/**
 * 内容页 app-layout 对齐 — 设计图 06/09/11/32/40/47/48/53
 * 作用域：.app-layout-active
 */

/* ── 通用：浅灰底 + 白卡片 ── */
.app-layout-active.search .site-content,
.app-layout-active.archive .site-content,
.app-layout-active.category .site-content,
.app-layout-active.tag .site-content,
.app-layout-active.page .site-content,
.app-layout-active.mika-page-download .site-content {
    background: var(--mika-color-bg, #f5f7f9);
}

.app-layout-active .mika-single-content.wrapper {
    padding-top: 8px;
    padding-bottom: 40px;
}

/* ── Design 11 — 搜索 ── */
.app-layout-active.search .tabs-nav.box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    align-items: center;
    padding: 0 0 16px !important;
    height: auto !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.app-layout-active.search .tabs-nav li {
    position: relative;
    margin: 0;
    padding: 0;
}

.app-layout-active.search .tabs-nav li a {
    display: inline-block;
    padding: 8px 0 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--mika-color-text-muted, #6b7280);
    text-decoration: none;
    background: transparent !important;
}

.app-layout-active.search .tabs-nav li.active a {
    color: var(--mika-color-primary);
    font-weight: 600;
}

.app-layout-active.search .tabs-nav li.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 2px;
    background: var(--mika-color-primary);
}

.app-layout-active.search .tabs-nav .active-bar {
    display: none;
}

.app-layout-active.search .post-list-item .item-in,
.app-layout-active.search .search-user-card,
.app-layout-active.search .circle-list-item .item-in {
    border-radius: var(--mika-radius, 14px);
    border: 1px solid var(--mika-color-border-muted, rgba(0, 0, 0, 0.07));
    background: var(--mika-color-surface, #fff);
    box-shadow: var(--mika-shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.06));
}

.app-layout-active.search .post-list-item .post-type-tag,
/* ── Design 11 — 搜索结果页（税头 / Tab / 四卡 / 分页） ── */
.app-layout-active.search .mika-search-page {
    padding-top: 8px;
    padding-bottom: 48px;
}
.app-layout-active.search .mika-search-header {
    margin: 12px 0 4px;
}
.app-layout-active.search .mika-search-title {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 750;
    color: var(--mika-color-text, #111827);
    letter-spacing: -0.02em;
    line-height: 1.35;
}
.app-layout-active.search .mika-search-title .mika-search-kw {
    font-style: normal;
    color: var(--mika-color-primary);
    font-weight: 750;
}

/* Tabs — 下划线激活，无卡片底 */
.app-layout-active.search .mika-search-tabs {
    margin: 8px 0 18px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.app-layout-active.search .mika-search-tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.app-layout-active.search .mika-search-tabs__item a {
    display: inline-flex;
    align-items: center;
    padding: 12px 0 14px;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    position: relative;
    border: 0;
    background: transparent;
}
.app-layout-active.search .mika-search-tabs__item.is-active a {
    color: var(--mika-color-primary);
    font-weight: 650;
}
.app-layout-active.search .mika-search-tabs__item.is-active a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: var(--mika-color-primary);
}

/* 兼容旧 tabs 结构（若仍残留） */
.app-layout-active.search .mika-search-page > .content-area > .tabs {
    display: none;
}

.app-layout-active.search .search-result-tag,
.app-layout-active.search .search-type-tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: fit-content;
    margin-bottom: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--mika-color-primary) 6%, var(--mika-color-surface, #fff));
    color: var(--mika-color-primary);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.6;
}

/* 文章 / 视频横向卡 */
.app-layout-active.search .mika-search-list,
.app-layout-active.search .post-2 .mika-grid.mika-search-list,
.app-layout-active.search .post-2 > .mika-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.app-layout-active.search .post-2 .post-list-item .item-in,
.app-layout-active.search .mika-search-list .post-list-item .item-in {
    display: grid;
    grid-template-columns: minmax(168px, 240px) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: var(--mika-color-surface, #fff);
    box-shadow: none;
}
.app-layout-active.search .post-2 .post-list-item .post-module-thumb {
    width: 100%;
}
.app-layout-active.search .post-2 .post-list-item .post-thumbnail {
    position: relative;
    aspect-ratio: var(--post-thumb-ratio, 16 / 10);
    height: auto !important;
    padding-top: 0 !important;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
}
.app-layout-active.search .post-2 .post-list-item .post-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.app-layout-active.search .post-2 .post-list-item .mika-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: var(--mika-color-text, #111827);
    font-size: 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    pointer-events: none;
}
.app-layout-active.search .post-2 .post-list-item .mika-video-duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
}
.app-layout-active.search .post-2 .post-info,
.app-layout-active.search .mika-search-list .post-info {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.app-layout-active.search .post-2 .post-info h2,
.app-layout-active.search .mika-search-list .post-info h2 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}
.app-layout-active.search .post-2 .post-info .post-excerpt,
.app-layout-active.search .mika-search-list .post-info .post-excerpt {
    margin: 0 0 12px;
    color: #8a91a1;
    font-size: 13px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.app-layout-active.search .post-2 .post-info-buttom,
.app-layout-active.search .mika-search-list .post-info-buttom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #9aa1af;
    font-size: 12px;
}
.app-layout-active.search .post-2 .post-info-buttom .buttom-left,
.app-layout-active.search .mika-search-list .post-info-buttom .buttom-left {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px 6px;
    min-width: 0;
}
.app-layout-active.search .post-2 .post-info-buttom .buttom-left .post-user,
.app-layout-active.search .mika-search-list .post-info-buttom .buttom-left .post-user {
    display: inline-flex;
    align-items: center;
    flex-grow: 0;
    flex-shrink: 1;
    min-width: 0;
}
.app-layout-active.search .post-2 .post-info-buttom .buttom-left .meta-dot,
.app-layout-active.search .post-2 .post-info-buttom .buttom-left .post-date,
.app-layout-active.search .mika-search-list .post-info-buttom .buttom-left .meta-dot,
.app-layout-active.search .mika-search-list .post-info-buttom .buttom-left .post-date {
    flex-shrink: 0;
    white-space: nowrap;
}
.app-layout-active.search .post-2 .post-info-buttom .meta-dot,
.app-layout-active.search .mika-search-list .post-info-buttom .meta-dot {
    opacity: 0.55;
}
.app-layout-active.search .post-2 .post-info-buttom .buttom-right,
.app-layout-active.search .mika-search-list .post-info-buttom .buttom-right {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.app-layout-active.search .mika-search-section {
    margin-bottom: 28px;
}
/* 结果页分区：覆盖顶栏搜索面板的分隔线规则（同名 class） */
.app-layout-active.search .mika-search-body .mika-search-section + .mika-search-section {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

/* 「全部」分区标题：文章 128 · 查看全部 → */
.app-layout-active.search .mika-search-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}
.app-layout-active.search .mika-search-section__title {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--mika-color-text, #111827);
}
.app-layout-active.search .mika-search-section__title em {
    font-style: normal;
    font-size: 13px;
    font-weight: 600;
    color: var(--mika-color-text-subtle, #9aa1af);
    font-variant-numeric: tabular-nums;
}
.app-layout-active.search .mika-search-section__more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mika-color-text-muted, #6b7280);
    text-decoration: none;
}
.app-layout-active.search .mika-search-section__more:hover {
    color: var(--mika-color-primary);
}

/* 文章 / 视频网格卡片：列数由 --module-columns 控制（5 或 4），窄屏随 post-cards.css 递减 */
.app-layout-active.search .mika-search-grid-row {
    margin: 0;
}

/* 用户卡：一排 3 个，中屏 2 个，手机 1 个 */
.app-layout-active.search .mika-search-users {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.app-layout-active.search .mika-search-users > .mika-search-user-card {
    min-width: 0;
}
.app-layout-active.search .mika-search-user-card__body {
    min-width: 0;
}
@media (max-width: 1200px) {
    .app-layout-active.search .mika-search-users {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .app-layout-active.search .mika-search-users {
        grid-template-columns: minmax(0, 1fr);
    }
}
.app-layout-active.search .mika-search-user-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: var(--mika-color-surface, #fff);
}
.app-layout-active.search .mika-search-user-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.app-layout-active.search .mika-search-user-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.app-layout-active.search .mika-search-user-card__name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.app-layout-active.search .mika-search-user-card__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--mika-color-text, #111827);
    text-decoration: none;
}
.app-layout-active.search .mika-search-user-card__badge {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--mika-color-primary) 12%, transparent);
    color: var(--mika-color-primary);
    font-size: 12px;
    font-weight: 600;
}
.app-layout-active.search .mika-search-user-card__stats {
    margin-top: 4px;
    font-size: 12px;
    color: #9aa1af;
}
.app-layout-active.search .mika-search-user-card__stats .dot {
    margin: 0 4px;
}
.app-layout-active.search .mika-search-user-card__desc {
    margin: 6px 0 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}
.app-layout-active.search .mika-search-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    height: 36px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--mika-color-primary);
    background: var(--mika-color-surface, #fff);
    color: var(--mika-color-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.app-layout-active.search .mika-search-follow-btn:hover {
    background: color-mix(in srgb, var(--mika-color-primary) 6%, var(--mika-color-surface, #fff));
}
.app-layout-active.search .mika-search-follow-btn.is-active {
    background: color-mix(in srgb, var(--mika-color-primary) 6%, var(--mika-color-surface, #fff));
    color: #9aa1af;
    border-color: #e5e7eb;
}
.app-layout-active.search .mika-search-follow-btn.is-self {
    border-color: #e5e7eb;
    color: #9aa1af;
    cursor: default;
}

/* 帖子 / 活动 / 灵感 / 网址导航：横排列表卡（缩略图可选） */
.app-layout-active.search .mika-search-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.app-layout-active.search .mika-search-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 16px 18px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--mika-radius, 14px);
    background: var(--mika-color-surface, #fff);
}
.app-layout-active.search .mika-search-item.has-thumb {
    grid-template-columns: minmax(0, 1fr) 168px;
}
.app-layout-active.search .mika-search-item__thumb {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
}
.app-layout-active.search .mika-search-item__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.app-layout-active.search .mika-search-item__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: var(--mika-color-text, #111827);
    font-size: 18px;
    pointer-events: none;
}
.app-layout-active.search .mika-search-item__body {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.app-layout-active.search .mika-search-item__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.app-layout-active.search .mika-search-item__title a {
    color: var(--mika-color-text, #111827);
    text-decoration: none;
}
.app-layout-active.search .mika-search-item__title a:hover {
    color: var(--mika-color-primary);
}
.app-layout-active.search .mika-search-item__badge {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
    padding: 0 8px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--mika-color-primary) 10%, transparent);
    color: var(--mika-color-primary);
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    vertical-align: 2px;
}
.app-layout-active.search .mika-search-item__excerpt {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.app-layout-active.search .mika-search-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    color: #9aa1af;
    font-size: 12px;
}
.app-layout-active.search .mika-search-item__meta a {
    color: inherit;
    text-decoration: none;
}
.app-layout-active.search .mika-search-item__meta a:hover {
    color: var(--mika-color-primary);
}
.app-layout-active.search .mika-search-item__author,
.app-layout-active.search .mika-search-item__circle,
.app-layout-active.search .mika-search-item__stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}
.app-layout-active.search .mika-search-item__avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}
.app-layout-active.search .mika-search-item mark.mika-search-hl {
    background: transparent;
    color: var(--mika-color-primary);
}
@media (max-width: 640px) {
    .app-layout-active.search .mika-search-item.has-thumb {
        grid-template-columns: minmax(0, 1fr) 104px;
        gap: 12px;
    }
    .app-layout-active.search .mika-search-item {
        padding: 12px;
    }
}

/* 分页 — 当前页实心红圆 */
.app-layout-active.search .mika-pagenav {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}
.app-layout-active.search .mika-pagenav .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    margin: 0 4px;
    padding: 0 6px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.app-layout-active.search .mika-pagenav .page-numbers.current {
    background: var(--mika-color-primary);
    border-color: var(--mika-color-primary);
    color: #fff;
    border-radius: 50%;
    font-weight: 650;
}
.app-layout-active.search .mika-pagenav .page-numbers.prev,
.app-layout-active.search .mika-pagenav .page-numbers.next {
    border-radius: 50%;
}

@media (max-width: 900px) {
    .app-layout-active.search .post-2 .post-list-item .item-in,
    .app-layout-active.search .mika-search-list .post-list-item .item-in {
        grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }
    .app-layout-active.search .mika-search-user-card {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 12px;
    }
    .app-layout-active.search .mika-search-follow-btn {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .app-layout-active.search .mika-search-tabs__list {
        gap: 4px 16px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .app-layout-active.search .post-2 .post-list-item .item-in,
    .app-layout-active.search .mika-search-list .post-list-item .item-in {
        grid-template-columns: 1fr;
    }
}

/* 搜索页 · 服务端页码链接（用户 Tab）：沿用 .mika-ajax-pager 外观 */
.mika-link-pagenav .btn-prev,
.mika-link-pagenav .btn-next {
    display: inline-block;
    box-sizing: border-box;
    text-decoration: none;
}
.mika-link-pagenav .btn-prev.is-disabled,
.mika-link-pagenav .btn-next.is-disabled {
    opacity: .5;
    cursor: default;
}
.mika-link-pagenav ul.mika-pager li.number > a {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* ── Design 09 / 48 — 分类 & 标签归档 ── */
.app-layout-active .mika-tax-header-custom .tax-hero-custom,
.app-layout-active .mika-tax-header .tax-header-box {
    border-radius: var(--mika-radius, 14px);
    border: 1px solid var(--mika-color-border-muted, rgba(0, 0, 0, 0.07));
    background: var(--mika-color-surface, #fff);
    box-shadow: var(--mika-shadow-sm);
    overflow: hidden;
}

.app-layout-active .mika-tax-header-custom .tax-hero-title,
.app-layout-active .mika-tax-header .tax-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mika-color-text, #111827);
}

.app-layout-active .mika-tax-header-custom .tax-hero-tab,
.app-layout-active .mika-tax-header .tax-tabs a {
    padding: 8px 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--mika-color-text-muted, #6b7280);
    border-radius: 0;
    background: transparent;
}

.app-layout-active .mika-tax-header-custom .tax-hero-tab.is-active,
.app-layout-active .mika-tax-header .tax-tabs a.active {
    color: var(--mika-color-primary);
    font-weight: 600;
    background: transparent;
}

.app-layout-active .mika-tax-header-custom .tax-hero-tab.is-active::after,
.app-layout-active .mika-tax-header .tax-tabs a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--mika-color-primary);
    border-radius: 2px;
}

.app-layout-active.category .post-list-item .item-in,
.app-layout-active.tag .post-list-item .item-in,
.app-layout-active.archive .post-list-item .item-in {
    border-radius: var(--mika-radius, 14px);
    border: 1px solid var(--mika-color-border-muted);
    background: var(--mika-color-surface, #fff);
    box-shadow: var(--mika-shadow-sm);
    overflow: hidden;
}

/*
 * 分类/标签归档 · 网格卡（post-1）：对齐首页 module-posts 竖卡。
 * 普通网格锁 --post-thumb-ratio；瀑布流见下方 is-waterfall 覆盖（按图高）。
 */
.app-layout-active.category .archive-row .post-1 .post-list-item,
.app-layout-active.tag .archive-row .post-1 .post-list-item,
.app-layout-active.archive .archive-row .post-1 .post-list-item,
.app-layout-active.author .archive-row .post-1 .post-list-item{
    min-width: 0;
    display: flex;
}
.app-layout-active.category .archive-row .post-1.is-waterfall .post-list-item,
.app-layout-active.tag .archive-row .post-1.is-waterfall .post-list-item,
.app-layout-active.archive .archive-row .post-1.is-waterfall .post-list-item,
.app-layout-active.author .archive-row .post-1.is-waterfall .post-list-item{
    display: block;
}
.app-layout-active.category .archive-row .post-1 .item-in:not(.is-academy-img-card),
.app-layout-active.tag .archive-row .post-1 .item-in:not(.is-academy-img-card),
.app-layout-active.archive .archive-row .post-1 .item-in:not(.is-academy-img-card),
.app-layout-active.author .archive-row .post-1 .item-in:not(.is-academy-img-card){
    --post-card-radius: var(--mika-radius, 14px);
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    min-height: 0;
    padding: 12px 12px 0;
    overflow: hidden;
    box-shadow: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.app-layout-active.category .archive-row .post-1.is-waterfall .item-in,
.app-layout-active.tag .archive-row .post-1.is-waterfall .item-in,
.app-layout-active.archive .archive-row .post-1.is-waterfall .item-in,
.app-layout-active.author .archive-row .post-1.is-waterfall .item-in{
    flex: none;
}
.app-layout-active.category .archive-row .post-1 .item-in:hover,
.app-layout-active.tag .archive-row .post-1 .item-in:hover,
.app-layout-active.archive .archive-row .post-1 .item-in:hover,
.app-layout-active.author .archive-row .post-1 .item-in:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}
/* 普通网格卡缩略图；漫剧叠图卡走 .post-module-thumb，勿强制 relative+aspect-ratio */
.app-layout-active.category .archive-row .post-1:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail,
.app-layout-active.tag .archive-row .post-1:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail,
.app-layout-active.archive .archive-row .post-1:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail,
.app-layout-active.author .archive-row .post-1:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail{
    position: relative !important;
    width: 100%;
    height: auto !important;
    padding-top: 0 !important;
    aspect-ratio: var(--post-thumb-ratio, 1 / 1);
    overflow: hidden !important;
    border-radius: var(--post-card-radius, 14px);
}
.app-layout-active.category .archive-row .post-1:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail .thumb-link,
.app-layout-active.tag .archive-row .post-1:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail .thumb-link,
.app-layout-active.archive .archive-row .post-1:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail .thumb-link,
.app-layout-active.author .archive-row .post-1:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail .thumb-link{
    position: absolute !important;
    inset: 0 !important;
    display: block;
    width: 100%;
    height: 100%;
}
.app-layout-active.category .archive-row .post-1:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail img,
.app-layout-active.tag .archive-row .post-1:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail img,
.app-layout-active.archive .archive-row .post-1:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail img ,
.app-layout-active.author .archive-row .post-1:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}
/* 分类页漫剧叠图卡：补齐首页样式（home-ai-modules 多绑 body.home，归档页需单独启用） */
.app-layout-active.category .archive-row .post-1 .item-in.is-academy-img-card,
.app-layout-active.tag .archive-row .post-1 .item-in.is-academy-img-card,
.app-layout-active.archive .archive-row .post-1 .item-in.is-academy-img-card,
.app-layout-active.author .archive-row .post-1 .item-in.is-academy-img-card,
.app-layout-active.category .archive-row .post-3 .item-in.is-academy-img-card,
.app-layout-active.tag .archive-row .post-3 .item-in.is-academy-img-card,
.app-layout-active.archive .archive-row .post-3 .item-in.is-academy-img-card,
.app-layout-active.author .archive-row .post-3 .item-in.is-academy-img-card{
    --post-card-radius: var(--mika-radius, 14px);
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 10px !important;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--mika-color-border-muted, rgba(15, 23, 42, .08)) 80%, transparent);
    border-radius: var(--post-card-radius);
    background: var(--mika-color-surface, #fff);
    box-shadow: none;
}
.app-layout-active.category .archive-row .item-in.is-academy-img-card .post-module-thumb,
.app-layout-active.tag .archive-row .item-in.is-academy-img-card .post-module-thumb,
.app-layout-active.archive .archive-row .item-in.is-academy-img-card .post-module-thumb,
.app-layout-active.author .archive-row .item-in.is-academy-img-card .post-module-thumb{
    position: relative;
    width: 100%;
    aspect-ratio: var(--post-thumb-ratio, 3 / 4);
    overflow: hidden !important;
    border-radius: max(0px, calc(var(--post-card-radius, 14px) - 2px)) !important;
    flex: 0 0 auto;
}
.app-layout-active.category .archive-row .item-in.is-academy-img-card .post-thumbnail,
.app-layout-active.tag .archive-row .item-in.is-academy-img-card .post-thumbnail,
.app-layout-active.archive .archive-row .item-in.is-academy-img-card .post-thumbnail,
.app-layout-active.author .archive-row .item-in.is-academy-img-card .post-thumbnail{
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding-top: 0 !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    border-radius: inherit !important;
}
.app-layout-active.category .archive-row .item-in.is-academy-img-card .post-thumbnail .thumb-link,
.app-layout-active.tag .archive-row .item-in.is-academy-img-card .post-thumbnail .thumb-link,
.app-layout-active.archive .archive-row .item-in.is-academy-img-card .post-thumbnail .thumb-link,
.app-layout-active.author .archive-row .item-in.is-academy-img-card .post-thumbnail .thumb-link{
    position: absolute !important;
    inset: 0 !important;
    display: block;
    width: 100%;
    height: 100%;
}
.app-layout-active.category .archive-row .item-in.is-academy-img-card .post-thumbnail img,
.app-layout-active.tag .archive-row .item-in.is-academy-img-card .post-thumbnail img,
.app-layout-active.archive .archive-row .item-in.is-academy-img-card .post-thumbnail img,
.app-layout-active.author .archive-row .item-in.is-academy-img-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit !important;
}
.app-layout-active.category .archive-row .post-1 .post-info,
.app-layout-active.tag .archive-row .post-1 .post-info,
.app-layout-active.archive .archive-row .post-1 .post-info,
.app-layout-active.author .archive-row .post-1 .post-info{
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
    padding: 12px 2px 14px;
}
.app-layout-active.category .archive-row .post-1 .post-info h2,
.app-layout-active.tag .archive-row .post-1 .post-info h2,
.app-layout-active.archive .archive-row .post-1 .post-info h2 ,
.app-layout-active.author .archive-row .post-1 .post-info h2 {
    display: block;
    margin: 0;
    min-width: 0;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-layout-active.category .archive-row .post-1 .post-excerpt,
.app-layout-active.tag .archive-row .post-1 .post-excerpt,
.app-layout-active.archive .archive-row .post-1 .post-excerpt,
.app-layout-active.author .archive-row .post-1 .post-excerpt{
    color: var(--mika-color-text-muted, #8a91a1);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    min-height: 0;
}
.app-layout-active.category .archive-row .post-1 .post-info-buttom,
.app-layout-active.tag .archive-row .post-1 .post-info-buttom,
.app-layout-active.archive .archive-row .post-1 .post-info-buttom,
.app-layout-active.author .archive-row .post-1 .post-info-buttom{
    margin-top: auto;
    flex-wrap: wrap;
    gap: 6px 8px;
    padding-top: 4px;
    font-size: 12px;
    color: var(--mika-color-text-muted, #9aa0ad);
}
.app-layout-active.category .archive-row .post-1 .post-cats,
.app-layout-active.tag .archive-row .post-1 .post-cats,
.app-layout-active.archive .archive-row .post-1 .post-cats,
.app-layout-active.author .archive-row .post-1 .post-cats{
    display: block;
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
    color: var(--mika-color-text-muted, #8a91a1);
}

/*
 * 分类/标签归档 · 网格：CSS Grid；瀑布流：Packery 按卡片真实高度砌排。
 */
/* 普通网格：列数跟后台，随屏宽递减 */
.app-layout-active.category .archive-row #post-list .mika-grid:not(.mika-waterfall),
.app-layout-active.tag .archive-row #post-list .mika-grid:not(.mika-waterfall),
.app-layout-active.archive .archive-row #post-list .mika-grid:not(.mika-waterfall) ,
.app-layout-active.author .archive-row #post-list .mika-grid:not(.mika-waterfall) {
    display: grid !important;
    grid-template-columns: repeat(var(--module-columns, 4), minmax(0, 1fr));
    gap: var(--mika-gap, var(--gap, 16px));
}

/* 归档瀑布流：Packery 真砌排 + 图片自然高度 */
.app-layout-active.category .archive-row .is-waterfall .mika-grid.mika-waterfall,
.app-layout-active.tag .archive-row .is-waterfall .mika-grid.mika-waterfall,
.app-layout-active.archive .archive-row .is-waterfall .mika-grid.mika-waterfall,
.app-layout-active.author .archive-row .is-waterfall .mika-grid.mika-waterfall{
    display: flex !important;
    flex-flow: wrap;
    justify-content: flex-start;
    grid-template-columns: none !important;
    columns: auto !important;
    column-count: auto !important;
    gap: 0 !important;
    margin: 0 calc(var(--mika-gap, var(--gap, 16px)) / -2) !important;
    width: auto !important;
    min-height: 120px;
}
@media (max-width: 768px) {
    .app-layout-active.category .archive-row .is-waterfall .mika-grid.mika-waterfall,
    .app-layout-active.tag .archive-row .is-waterfall .mika-grid.mika-waterfall,
    .app-layout-active.archive .archive-row .is-waterfall .mika-grid.mika-waterfall,
.app-layout-active.author .archive-row .is-waterfall .mika-grid.mika-waterfall{
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
}
.app-layout-active.category .archive-row .is-waterfall .mika-grid.mika-waterfall.is-packery,
.app-layout-active.tag .archive-row .is-waterfall .mika-grid.mika-waterfall.is-packery,
.app-layout-active.archive .archive-row .is-waterfall .mika-grid.mika-waterfall.is-packery,
.app-layout-active.author .archive-row .is-waterfall .mika-grid.mika-waterfall.is-packery{
    display: block !important;
    min-height: 0;
}

/* 瀑布流列宽：基础规则在前，响应式在后才能压过 */
.app-layout-active.category .archive-row .is-waterfall .mika-waterfall > li,
.app-layout-active.tag .archive-row .is-waterfall .mika-waterfall > li,
.app-layout-active.archive .archive-row .is-waterfall .mika-waterfall > li ,
.app-layout-active.author .archive-row .is-waterfall .mika-waterfall > li {
    box-sizing: border-box !important;
    width: calc(100% / var(--module-columns, 4)) !important;
    max-width: calc(100% / var(--module-columns, 4)) !important;
    padding: 0 calc(var(--mika-gap, var(--gap, 16px)) / 2) !important;
    margin: 0 !important;
    min-width: 0;
    float: none;
}
.app-layout-active.category .archive-row .is-waterfall .mika-waterfall .item-in,
.app-layout-active.tag .archive-row .is-waterfall .mika-waterfall .item-in,
.app-layout-active.archive .archive-row .is-waterfall .mika-waterfall .item-in,
.app-layout-active.author .archive-row .is-waterfall .mika-waterfall .item-in{
    margin-bottom: var(--mika-gap, var(--gap, 16px)) !important;
    height: auto !important;
}
.app-layout-active.category .archive-row .is-waterfall .post-thumbnail,
.app-layout-active.tag .archive-row .is-waterfall .post-thumbnail,
.app-layout-active.archive .archive-row .is-waterfall .post-thumbnail,
.app-layout-active.author .archive-row .is-waterfall .post-thumbnail{
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    padding-top: 0 !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    border-radius: var(--post-card-radius, var(--mika-radius, 14px));
}
.app-layout-active.category .archive-row .is-waterfall .post-thumbnail .thumb-link,
.app-layout-active.tag .archive-row .is-waterfall .post-thumbnail .thumb-link,
.app-layout-active.archive .archive-row .is-waterfall .post-thumbnail .thumb-link,
.app-layout-active.author .archive-row .is-waterfall .post-thumbnail .thumb-link{
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
}
.app-layout-active.category .archive-row .is-waterfall .post-thumbnail img,
.app-layout-active.tag .archive-row .is-waterfall .post-thumbnail img,
.app-layout-active.archive .archive-row .is-waterfall .post-thumbnail img,
.app-layout-active.author .archive-row .is-waterfall .post-thumbnail img,
.app-layout-active.category .archive-row .is-waterfall img.waterfall-natural-img,
.app-layout-active.tag .archive-row .is-waterfall img.waterfall-natural-img,
.app-layout-active.archive .archive-row .is-waterfall img.waterfall-natural-img ,
.app-layout-active.author .archive-row .is-waterfall img.waterfall-natural-img {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
}
/* 与首页一致用 block；宽度由上方 li 规则按 --module-columns 控制，禁止 100% 单列 */
.app-layout-active.category .archive-row .is-waterfall .post-list-item,
.app-layout-active.tag .archive-row .is-waterfall .post-list-item,
.app-layout-active.archive .archive-row .is-waterfall .post-list-item,
.app-layout-active.author .archive-row .is-waterfall .post-list-item{
    display: block;
    min-width: 0;
}

/* 中屏最多 3 列（普通网格 + 瀑布流） */
@media (max-width: 1180px) {
    .app-layout-active.category .archive-row #post-list .mika-grid:not(.mika-waterfall),
    .app-layout-active.tag .archive-row #post-list .mika-grid:not(.mika-waterfall),
    .app-layout-active.archive .archive-row #post-list .mika-grid:not(.mika-waterfall) ,
.app-layout-active.author .archive-row #post-list .mika-grid:not(.mika-waterfall) {
        grid-template-columns: repeat(min(3, var(--module-columns, 4)), minmax(0, 1fr));
    }
    .app-layout-active.category .archive-row .is-waterfall .mika-waterfall > li,
    .app-layout-active.tag .archive-row .is-waterfall .mika-waterfall > li,
    .app-layout-active.archive .archive-row .is-waterfall .mika-waterfall > li ,
.app-layout-active.author .archive-row .is-waterfall .mika-waterfall > li {
        width: calc(100% / min(3, var(--module-columns, 4))) !important;
        max-width: calc(100% / min(3, var(--module-columns, 4))) !important;
    }
}
/* 平板最多 2 列（列表 post-2 另有 1 列规则） */
@media (max-width: 900px) {
    .app-layout-active.category .archive-row #post-list:not(.post-2) .mika-grid:not(.mika-waterfall),
    .app-layout-active.tag .archive-row #post-list:not(.post-2) .mika-grid:not(.mika-waterfall),
    .app-layout-active.archive .archive-row #post-list:not(.post-2) .mika-grid:not(.mika-waterfall) ,
.app-layout-active.author .archive-row #post-list:not(.post-2) .mika-grid:not(.mika-waterfall) {
        grid-template-columns: repeat(min(2, var(--module-columns, 4)), minmax(0, 1fr));
    }
    .app-layout-active.category .archive-row .is-waterfall .mika-waterfall > li,
    .app-layout-active.tag .archive-row .is-waterfall .mika-waterfall > li,
    .app-layout-active.archive .archive-row .is-waterfall .mika-waterfall > li ,
.app-layout-active.author .archive-row .is-waterfall .mika-waterfall > li {
        width: calc(100% / min(2, var(--module-columns, 4))) !important;
        max-width: calc(100% / min(2, var(--module-columns, 4))) !important;
    }
}
/* 移动端：网格/图片网格固定 2 列；列表(post-2)强制 1 列 */
@media (max-width: 768px) {
    .app-layout-active.category .archive-row #post-list:not(.post-2) .mika-grid:not(.mika-waterfall),
    .app-layout-active.tag .archive-row #post-list:not(.post-2) .mika-grid:not(.mika-waterfall),
    .app-layout-active.archive .archive-row #post-list:not(.post-2) .mika-grid:not(.mika-waterfall) ,
.app-layout-active.author .archive-row #post-list:not(.post-2) .mika-grid:not(.mika-waterfall) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .app-layout-active.category .archive-row #post-list.post-2 .mika-grid:not(.mika-waterfall),
    .app-layout-active.tag .archive-row #post-list.post-2 .mika-grid:not(.mika-waterfall),
    .app-layout-active.archive .archive-row #post-list.post-2 .mika-grid:not(.mika-waterfall),
.app-layout-active.author .archive-row #post-list.post-2 .mika-grid:not(.mika-waterfall),
    .app-layout-active.category .archive-row #post-list.post-2 ul.mika-grid:not(.mika-waterfall),
    .app-layout-active.tag .archive-row #post-list.post-2 ul.mika-grid:not(.mika-waterfall),
    .app-layout-active.archive .archive-row #post-list.post-2 ul.mika-grid:not(.mika-waterfall) ,
.app-layout-active.author .archive-row #post-list.post-2 ul.mika-grid:not(.mika-waterfall) {
        grid-template-columns: 1fr !important;
    }
    .app-layout-active.category .archive-row .is-waterfall .mika-waterfall > li,
    .app-layout-active.tag .archive-row .is-waterfall .mika-waterfall > li,
    .app-layout-active.archive .archive-row .is-waterfall .mika-waterfall > li ,
.app-layout-active.author .archive-row .is-waterfall .mika-waterfall > li {
        width: 50% !important;
        max-width: 50% !important;
    }
}

/*
 * 分类页「图片网格 / 图片·瀑布流」：对齐首页 is-image-cards，
 * 保证封面比例盒有宽度，避免「有数据但看不见」。
 * 漫剧叠图卡（is-academy-img-card）走上方独立规则，这里一律排除。
 */
.app-layout-active.category .archive-row .post-3 .item-in:not(.is-academy-img-card),
.app-layout-active.category .archive-row .is-image-cards .item-in:not(.is-academy-img-card),
.app-layout-active.category .archive-row .post-3-w .item-in:not(.is-academy-img-card),
.app-layout-active.tag .archive-row .post-3 .item-in:not(.is-academy-img-card),
.app-layout-active.tag .archive-row .is-image-cards .item-in:not(.is-academy-img-card),
.app-layout-active.archive .archive-row .post-3 .item-in:not(.is-academy-img-card),
.app-layout-active.author .archive-row .post-3 .item-in:not(.is-academy-img-card),
.app-layout-active.archive .archive-row .is-image-cards .item-in:not(.is-academy-img-card),
.app-layout-active.author .archive-row .is-image-cards .item-in:not(.is-academy-img-card){
    --post-card-radius: var(--mika-radius, 14px);
    position: relative;
    display: block !important;
    width: 100%;
    padding: 0 !important;
    overflow: hidden;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: var(--post-card-radius);
}
.app-layout-active.category .archive-row .post-3 .item-in:not(.is-academy-img-card) .post-module-thumb,
.app-layout-active.category .archive-row .post-3 .item-in:not(.is-academy-img-card) .post-thumbnail,
.app-layout-active.category .archive-row .is-image-cards .item-in:not(.is-academy-img-card) .post-module-thumb,
.app-layout-active.category .archive-row .is-image-cards .item-in:not(.is-academy-img-card) .post-thumbnail,
.app-layout-active.tag .archive-row .post-3 .item-in:not(.is-academy-img-card) .post-thumbnail,
.app-layout-active.tag .archive-row .is-image-cards .item-in:not(.is-academy-img-card) .post-thumbnail,
.app-layout-active.archive .archive-row .post-3 .item-in:not(.is-academy-img-card) .post-thumbnail,
.app-layout-active.author .archive-row .post-3 .item-in:not(.is-academy-img-card) .post-thumbnail,
.app-layout-active.archive .archive-row .is-image-cards .item-in:not(.is-academy-img-card) .post-thumbnail,
.app-layout-active.author .archive-row .is-image-cards .item-in:not(.is-academy-img-card) .post-thumbnail{
    display: block;
    width: 100%;
    border-radius: inherit;
}
/* 普通图片网格：固定比例盒；瀑布流除外（见下方 is-waterfall 覆盖） */
.app-layout-active.category .archive-row .post-3:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail,
.app-layout-active.category .archive-row .is-image-cards:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail,
.app-layout-active.tag .archive-row .post-3:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail,
.app-layout-active.tag .archive-row .is-image-cards:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail,
.app-layout-active.archive .archive-row .post-3:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail,
.app-layout-active.author .archive-row .post-3:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail,
.app-layout-active.archive .archive-row .is-image-cards:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail,
.app-layout-active.author .archive-row .is-image-cards:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail{
    position: relative !important;
    height: 0 !important;
    overflow: hidden !important;
}
.app-layout-active.category .archive-row .post-3:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail .thumb-link,
.app-layout-active.category .archive-row .is-image-cards:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail .thumb-link,
.app-layout-active.tag .archive-row .post-3:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail .thumb-link,
.app-layout-active.tag .archive-row .is-image-cards:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail .thumb-link,
.app-layout-active.archive .archive-row .post-3:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail .thumb-link,
.app-layout-active.author .archive-row .post-3:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail .thumb-link,
.app-layout-active.archive .archive-row .is-image-cards:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail .thumb-link,
.app-layout-active.author .archive-row .is-image-cards:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail .thumb-link{
    position: absolute !important;
    inset: 0 !important;
    display: block;
    width: 100%;
    height: 100%;
}
.app-layout-active.category .archive-row .post-3:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail img,
.app-layout-active.category .archive-row .is-image-cards:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail img,
.app-layout-active.tag .archive-row .post-3:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail img,
.app-layout-active.tag .archive-row .is-image-cards:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail img,
.app-layout-active.archive .archive-row .post-3:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail img,
.app-layout-active.author .archive-row .post-3:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail img,
.app-layout-active.archive .archive-row .is-image-cards:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail img ,
.app-layout-active.author .archive-row .is-image-cards:not(.is-waterfall) .item-in:not(.is-academy-img-card) .post-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 分类页图片卡悬停：贴底无缝；浅色毛玻璃下文案用深色 */
.app-layout-active.category .archive-row .post-3 .post-info,
.app-layout-active.category .archive-row .is-image-cards .post-info,
.app-layout-active.tag .archive-row .post-3 .post-info,
.app-layout-active.archive .archive-row .post-3 .post-info,
.app-layout-active.author .archive-row .post-3 .post-info{
    bottom: 0 !important;
    border-radius: 0 !important;
    justify-content: flex-start;
}

/* 分类/归档：图片网格参考卡 — 底部浮起毛玻璃信息条 */
.app-layout-active.category .archive-row .is-img-ref-card,
.app-layout-active.tag .archive-row .is-img-ref-card,
.app-layout-active.archive .archive-row .is-img-ref-card,
.app-layout-active.author .archive-row .is-img-ref-card,
.app-layout-active.category .archive-row .post-3 .item-in.is-img-ref-card,
.app-layout-active.tag .archive-row .post-3 .item-in.is-img-ref-card,
.app-layout-active.archive .archive-row .post-3 .item-in.is-img-ref-card,
.app-layout-active.author .archive-row .post-3 .item-in.is-img-ref-card{
    -webkit-mask-image: none !important;
    mask-image: none !important;
    isolation: auto !important;
}
.app-layout-active.category .archive-row .is-img-ref-card .img-card-overlay,
.app-layout-active.tag .archive-row .is-img-ref-card .img-card-overlay,
.app-layout-active.archive .archive-row .is-img-ref-card .img-card-overlay,
.app-layout-active.author .archive-row .is-img-ref-card .img-card-overlay,
.app-layout-active.category .archive-row .post-3 .img-card-overlay,
.app-layout-active.tag .archive-row .post-3 .img-card-overlay,
.app-layout-active.archive .archive-row .post-3 .img-card-overlay,
.app-layout-active.author .archive-row .post-3 .img-card-overlay{
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    padding: 12px;
    box-sizing: border-box;
    pointer-events: none;
    background: none;
    border-radius: inherit;
    overflow: hidden;
}
.app-layout-active.category .archive-row .is-img-ref-card .img-card-overlay::after,
.app-layout-active.tag .archive-row .is-img-ref-card .img-card-overlay::after,
.app-layout-active.archive .archive-row .is-img-ref-card .img-card-overlay::after,
.app-layout-active.author .archive-row .is-img-ref-card .img-card-overlay::after,
.app-layout-active.category .archive-row .post-3 .img-card-overlay::after,
.app-layout-active.tag .archive-row .post-3 .img-card-overlay::after,
.app-layout-active.archive .archive-row .post-3 .img-card-overlay::after,
.app-layout-active.author .archive-row .post-3 .img-card-overlay::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.45) 48%,
        rgba(0, 0, 0, 0.82) 100%
    );
    opacity: 0;
    transition: opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.app-layout-active.category .archive-row .item-in.is-img-ref-card:hover .img-card-overlay::after,
.app-layout-active.tag .archive-row .item-in.is-img-ref-card:hover .img-card-overlay::after,
.app-layout-active.archive .archive-row .item-in.is-img-ref-card:hover .img-card-overlay::after,
.app-layout-active.author .archive-row .item-in.is-img-ref-card:hover .img-card-overlay::after,
.app-layout-active.category .archive-row .item-in.is-img-ref-card:focus-within .img-card-overlay::after,
.app-layout-active.tag .archive-row .item-in.is-img-ref-card:focus-within .img-card-overlay::after,
.app-layout-active.archive .archive-row .item-in.is-img-ref-card:focus-within .img-card-overlay::after,
.app-layout-active.author .archive-row .item-in.is-img-ref-card:focus-within .img-card-overlay::after{
    opacity: 1;
}
/* 仅图片参考卡（post-3 / is-img-ref-card）悬停滑入；网格常显卡见下方 academy 覆盖 */
.app-layout-active.category .archive-row .is-img-ref-card .img-card-top,
.app-layout-active.tag .archive-row .is-img-ref-card .img-card-top,
.app-layout-active.archive .archive-row .is-img-ref-card .img-card-top,
.app-layout-active.author .archive-row .is-img-ref-card .img-card-top,
.app-layout-active.category .archive-row .post-3 .img-card-top,
.app-layout-active.tag .archive-row .post-3 .img-card-top,
.app-layout-active.archive .archive-row .post-3 .img-card-top,
.app-layout-active.author .archive-row .post-3 .img-card-top{
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-height: 28px;
    opacity: 0;
    transform: translate3d(0, calc(-100% - 14px), 0);
    pointer-events: none;
    transition:
        transform 0.48s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}
.app-layout-active.category .archive-row .item-in.is-img-ref-card:hover .img-card-top,
.app-layout-active.tag .archive-row .item-in.is-img-ref-card:hover .img-card-top,
.app-layout-active.archive .archive-row .item-in.is-img-ref-card:hover .img-card-top,
.app-layout-active.author .archive-row .item-in.is-img-ref-card:hover .img-card-top,
.app-layout-active.category .archive-row .item-in.is-img-ref-card:focus-within .img-card-top,
.app-layout-active.tag .archive-row .item-in.is-img-ref-card:focus-within .img-card-top,
.app-layout-active.archive .archive-row .item-in.is-img-ref-card:focus-within .img-card-top,
.app-layout-active.author .archive-row .item-in.is-img-ref-card:focus-within .img-card-top{
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}
.app-layout-active.category .archive-row .img-card-cat,
.app-layout-active.tag .archive-row .img-card-cat,
.app-layout-active.archive .archive-row .img-card-cat,
.app-layout-active.author .archive-row .img-card-cat,
.app-layout-active.category .archive-row .img-card-stat,
.app-layout-active.tag .archive-row .img-card-stat,
.app-layout-active.archive .archive-row .img-card-stat,
.app-layout-active.author .archive-row .img-card-stat{
    background: #5859608f;
    border: none;
    -webkit-backdrop-filter: saturate(2) blur(20px);
    backdrop-filter: saturate(2) blur(20px);
    box-shadow: none;
}
.app-layout-active.category .archive-row .img-card-cat,
.app-layout-active.tag .archive-row .img-card-cat,
.app-layout-active.archive .archive-row .img-card-cat,
.app-layout-active.author .archive-row .img-card-cat{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 72px);
    padding: 6px 12px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: auto;
}
.app-layout-active.category .archive-row .img-card-cat,
.app-layout-active.tag .archive-row .img-card-cat,
.app-layout-active.archive .archive-row .img-card-cat,
.app-layout-active.author .archive-row .img-card-cat,
.app-layout-active.category .archive-row .img-card-cat a,
.app-layout-active.tag .archive-row .img-card-cat a,
.app-layout-active.archive .archive-row .img-card-cat a,
.app-layout-active.author .archive-row .img-card-cat a,
.app-layout-active.category .archive-row .img-card-cat:hover,
.app-layout-active.tag .archive-row .img-card-cat:hover,
.app-layout-active.archive .archive-row .img-card-cat:hover,
.app-layout-active.author .archive-row .img-card-cat:hover,
.app-layout-active.category .archive-row .img-card-cat a:hover,
.app-layout-active.tag .archive-row .img-card-cat a:hover,
.app-layout-active.archive .archive-row .img-card-cat a:hover,
.app-layout-active.author .archive-row .img-card-cat a:hover,
.app-layout-active.category .archive-row .item-in:hover .img-card-cat,
.app-layout-active.tag .archive-row .item-in:hover .img-card-cat,
.app-layout-active.archive .archive-row .item-in:hover .img-card-cat,
.app-layout-active.author .archive-row .item-in:hover .img-card-cat,
.app-layout-active.category .archive-row .item-in:hover .img-card-cat a,
.app-layout-active.tag .archive-row .item-in:hover .img-card-cat a,
.app-layout-active.archive .archive-row .item-in:hover .img-card-cat a ,
.app-layout-active.author .archive-row .item-in:hover .img-card-cat a {
    color: #fff !important;
    text-decoration: none;
}
.app-layout-active.category .archive-row .img-card-stat,
.app-layout-active.tag .archive-row .img-card-stat,
.app-layout-active.archive .archive-row .img-card-stat,
.app-layout-active.author .archive-row .img-card-stat{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    padding: 6px 12px;
    border-radius: 14px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.app-layout-active.category .archive-row .img-card-stat.is-like i,
.app-layout-active.tag .archive-row .img-card-stat.is-like i,
.app-layout-active.archive .archive-row .img-card-stat.is-like i ,
.app-layout-active.author .archive-row .img-card-stat.is-like i {
    color: #ff6b81;
}
.app-layout-active.category .archive-row .is-img-ref-card .img-card-panel,
.app-layout-active.tag .archive-row .is-img-ref-card .img-card-panel,
.app-layout-active.archive .archive-row .is-img-ref-card .img-card-panel,
.app-layout-active.author .archive-row .is-img-ref-card .img-card-panel,
.app-layout-active.category .archive-row .post-3 .img-card-panel,
.app-layout-active.tag .archive-row .post-3 .img-card-panel,
.app-layout-active.archive .archive-row .post-3 .img-card-panel,
.app-layout-active.author .archive-row .post-3 .img-card-panel{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: auto;
    padding: 18px 14px 14px;
    box-sizing: border-box;
    border-radius: 0;
    background: none !important;
    border: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(0, calc(100% + 16px), 0);
    transition:
        transform 0.48s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}
.app-layout-active.category .archive-row .item-in.is-img-ref-card:hover .img-card-panel,
.app-layout-active.tag .archive-row .item-in.is-img-ref-card:hover .img-card-panel,
.app-layout-active.archive .archive-row .item-in.is-img-ref-card:hover .img-card-panel,
.app-layout-active.author .archive-row .item-in.is-img-ref-card:hover .img-card-panel,
.app-layout-active.category .archive-row .item-in.is-img-ref-card:focus-within .img-card-panel,
.app-layout-active.tag .archive-row .item-in.is-img-ref-card:focus-within .img-card-panel,
.app-layout-active.archive .archive-row .item-in.is-img-ref-card:focus-within .img-card-panel,
.app-layout-active.author .archive-row .item-in.is-img-ref-card:focus-within .img-card-panel{
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}
.app-layout-active.category .archive-row .img-card-copy,
.app-layout-active.tag .archive-row .img-card-copy,
.app-layout-active.archive .archive-row .img-card-copy,
.app-layout-active.author .archive-row .img-card-copy{
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.app-layout-active.category .archive-row .img-card-title,
.app-layout-active.tag .archive-row .img-card-title,
.app-layout-active.archive .archive-row .img-card-title,
.app-layout-active.author .archive-row .img-card-title{
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}
.app-layout-active.category .archive-row .img-card-excerpt,
.app-layout-active.tag .archive-row .img-card-excerpt,
.app-layout-active.archive .archive-row .img-card-excerpt,
.app-layout-active.author .archive-row .img-card-excerpt,
.app-layout-active.category .archive-row .img-card-time,
.app-layout-active.tag .archive-row .img-card-time,
.app-layout-active.archive .archive-row .img-card-time,
.app-layout-active.author .archive-row .img-card-time{
    display: block;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-layout-active.category .archive-row .img-card-avatar,
.app-layout-active.tag .archive-row .img-card-avatar,
.app-layout-active.archive .archive-row .img-card-avatar,
.app-layout-active.author .archive-row .img-card-avatar{
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    background: rgba(255, 255, 255, 0.12);
}
.app-layout-active.category .archive-row .img-card-avatar img,
.app-layout-active.tag .archive-row .img-card-avatar img,
.app-layout-active.archive .archive-row .img-card-avatar img ,
.app-layout-active.author .archive-row .img-card-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.app-layout-active.category .archive-row .img-card-title a,
.app-layout-active.tag .archive-row .img-card-title a,
.app-layout-active.archive .archive-row .img-card-title a ,
.app-layout-active.author .archive-row .img-card-title a {
    color: #fff !important;
    text-decoration: none;
    pointer-events: auto;
}
.app-layout-active.category .archive-row .img-card-time,
.app-layout-active.tag .archive-row .img-card-time,
.app-layout-active.archive .archive-row .img-card-time,
.app-layout-active.author .archive-row .img-card-time{
    display: inline-block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    cursor: help;
    pointer-events: auto;
}
.app-layout-active.category .archive-row .img-card-avatar,
.app-layout-active.tag .archive-row .img-card-avatar,
.app-layout-active.archive .archive-row .img-card-avatar,
.app-layout-active.author .archive-row .img-card-avatar{
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.18);
    pointer-events: auto;
}
.app-layout-active.category .archive-row .img-card-avatar img,
.app-layout-active.tag .archive-row .img-card-avatar img,
.app-layout-active.archive .archive-row .img-card-avatar img ,
.app-layout-active.author .archive-row .img-card-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.app-layout-active.category .archive-row .is-img-ref-card .post-info,
.app-layout-active.tag .archive-row .is-img-ref-card .post-info,
.app-layout-active.archive .archive-row .is-img-ref-card .post-info,
.app-layout-active.author .archive-row .is-img-ref-card .post-info{
    display: none !important;
}
.app-layout-active.category .archive-row .post-3 .item-in:hover .post-info h2,
.app-layout-active.category .archive-row .post-3 .item-in:hover .post-info h2 a,
.app-layout-active.category .archive-row .post-3 .item-in:hover .post-info h2 a:hover,
.app-layout-active.category .archive-row .is-image-cards .item-in:hover .post-info h2 a,
.app-layout-active.category .archive-row .is-image-cards .item-in:hover .post-info h2 a:hover {
    color: #fff !important;
}

/*
 * 分类/标签/归档 · 网格常显学院卡（post-1 / is-academy-img-card，非 is-img-ref-card）
 * 对齐首页 module-posts：分类角标常显、图下标题/作者/摘要常显。
 * 勿套用上方图片参考卡的 opacity:0 悬停叠层。
 */
.app-layout-active.category .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-top,
.app-layout-active.tag .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-top,
.app-layout-active.archive .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-top,
.app-layout-active.author .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-top{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    /* 必须高于时间角标，否则下载权限弹层会被挡住 */
    z-index: 6;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 8px;
    box-sizing: border-box;
    pointer-events: none;
    opacity: 1 !important;
    transform: none !important;
}
.app-layout-active.category .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-top:has(.img-card-dl:hover),
.app-layout-active.category .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-top:has(.img-card-dl:focus-within),
.app-layout-active.tag .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-top:has(.img-card-dl:hover),
.app-layout-active.tag .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-top:has(.img-card-dl:focus-within),
.app-layout-active.archive .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-top:has(.img-card-dl:hover),
.app-layout-active.author .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-top:has(.img-card-dl:hover),
.app-layout-active.archive .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-top:has(.img-card-dl:focus-within),
.app-layout-active.author .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-top:has(.img-card-dl:focus-within){
    z-index: 20;
}
.app-layout-active.category .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-dl__pop,
.app-layout-active.tag .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-dl__pop,
.app-layout-active.archive .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-dl__pop,
.app-layout-active.author .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-dl__pop{
    z-index: 22 !important;
}
.app-layout-active.category .archive-row .is-academy-img-card:not(.is-img-ref-card):has(.img-card-dl:hover) .academy-card-date,
.app-layout-active.tag .archive-row .is-academy-img-card:not(.is-img-ref-card):has(.img-card-dl:hover) .academy-card-date,
.app-layout-active.archive .archive-row .is-academy-img-card:not(.is-img-ref-card):has(.img-card-dl:hover) .academy-card-date,
.app-layout-active.author .archive-row .is-academy-img-card:not(.is-img-ref-card):has(.img-card-dl:hover) .academy-card-date,
.app-layout-active.category .archive-row .is-academy-img-card:not(.is-img-ref-card):has(.img-card-dl:focus-within) .academy-card-date,
.app-layout-active.tag .archive-row .is-academy-img-card:not(.is-img-ref-card):has(.img-card-dl:focus-within) .academy-card-date,
.app-layout-active.archive .archive-row .is-academy-img-card:not(.is-img-ref-card):has(.img-card-dl:focus-within) .academy-card-date,
.app-layout-active.author .archive-row .is-academy-img-card:not(.is-img-ref-card):has(.img-card-dl:focus-within) .academy-card-date{
    z-index: 1;
}
.app-layout-active.category .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-date,
.app-layout-active.tag .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-date,
.app-layout-active.archive .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-date,
.app-layout-active.author .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-date,
.app-layout-active.category .archive-row .is-img-ref-card .academy-card-date,
.app-layout-active.tag .archive-row .is-img-ref-card .academy-card-date,
.app-layout-active.archive .archive-row .is-img-ref-card .academy-card-date,
.app-layout-active.author .archive-row .is-img-ref-card .academy-card-date{
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 16px);
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}
.app-layout-active.category .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-date .post-date,
.app-layout-active.tag .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-date .post-date,
.app-layout-active.archive .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-date .post-date,
.app-layout-active.author .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-date .post-date,
.app-layout-active.category .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-date span,
.app-layout-active.tag .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-date span,
.app-layout-active.archive .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-date span,
.app-layout-active.author .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-date span,
.app-layout-active.category .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-date i,
.app-layout-active.tag .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-date i,
.app-layout-active.archive .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-date i,
.app-layout-active.author .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-date i,
.app-layout-active.category .archive-row .is-img-ref-card .academy-card-date .post-date,
.app-layout-active.tag .archive-row .is-img-ref-card .academy-card-date .post-date,
.app-layout-active.archive .archive-row .is-img-ref-card .academy-card-date .post-date,
.app-layout-active.author .archive-row .is-img-ref-card .academy-card-date .post-date,
.app-layout-active.category .archive-row .is-img-ref-card .academy-card-date span,
.app-layout-active.tag .archive-row .is-img-ref-card .academy-card-date span,
.app-layout-active.archive .archive-row .is-img-ref-card .academy-card-date span,
.app-layout-active.author .archive-row .is-img-ref-card .academy-card-date span,
.app-layout-active.category .archive-row .is-img-ref-card .academy-card-date i,
.app-layout-active.tag .archive-row .is-img-ref-card .academy-card-date i,
.app-layout-active.archive .archive-row .is-img-ref-card .academy-card-date i ,
.app-layout-active.author .archive-row .is-img-ref-card .academy-card-date i {
    color: inherit !important;
    font-size: inherit;
    line-height: inherit;
    white-space: nowrap;
}
.app-layout-active.category .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-panel,
.app-layout-active.tag .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-panel,
.app-layout-active.archive .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-panel,
.app-layout-active.author .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-panel{
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 1;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 10px 2px 12px;
    box-sizing: border-box;
    border-radius: 0;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    flex: 0 0 auto;
}
.app-layout-active.category .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-panel-row,
.app-layout-active.tag .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-panel-row,
.app-layout-active.archive .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-panel-row,
.app-layout-active.author .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-panel-row{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-width: 0;
}
.app-layout-active.category .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-avatar,
.app-layout-active.tag .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-avatar,
.app-layout-active.archive .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-avatar,
.app-layout-active.author .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-avatar{
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    background: rgba(127, 127, 127, 0.18);
    pointer-events: auto;
}
.app-layout-active.category .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-avatar img,
.app-layout-active.tag .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-avatar img,
.app-layout-active.archive .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-avatar img,
.app-layout-active.author .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-avatar img,
.app-layout-active.category .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-avatar .avatar-face,
.app-layout-active.tag .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-avatar .avatar-face,
.app-layout-active.archive .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-avatar .avatar-face,
.app-layout-active.author .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-avatar .avatar-face{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.app-layout-active.category .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-copy,
.app-layout-active.tag .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-copy,
.app-layout-active.archive .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-copy,
.app-layout-active.author .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-copy{
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.app-layout-active.category .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-title,
.app-layout-active.tag .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-title,
.app-layout-active.archive .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-title,
.app-layout-active.author .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-title{
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--mika-color-text, inherit);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}
.app-layout-active.category .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-title a,
.app-layout-active.tag .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-title a,
.app-layout-active.archive .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-title a ,
.app-layout-active.author .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-title a {
    color: var(--mika-color-text, inherit) !important;
    text-decoration: none;
    pointer-events: auto;
}
.app-layout-active.category .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-title a:hover,
.app-layout-active.tag .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-title a:hover,
.app-layout-active.archive .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-title a:hover ,
.app-layout-active.author .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-title a:hover {
    opacity: 0.88;
}
.app-layout-active.category .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-excerpt,
.app-layout-active.tag .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-excerpt,
.app-layout-active.archive .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-excerpt,
.app-layout-active.author .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-excerpt,
.app-layout-active.category .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-time,
.app-layout-active.tag .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-time,
.app-layout-active.archive .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-time,
.app-layout-active.author .archive-row .is-academy-img-card:not(.is-img-ref-card) .img-card-time{
    display: block;
    margin: 0;
    max-width: 100%;
    color: var(--mika-color-text-muted, #8a91a1);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-layout-active.category .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-foot,
.app-layout-active.tag .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-foot,
.app-layout-active.archive .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-foot,
.app-layout-active.author .archive-row .is-academy-img-card:not(.is-img-ref-card) .academy-card-foot{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 2px 6px;
    color: var(--mika-color-text-muted, #9aa0ad);
    font-size: 12px;
    line-height: 1.3;
}
.app-layout-active.category .archive-row .is-academy-img-card .post-info,
.app-layout-active.tag .archive-row .is-academy-img-card .post-info,
.app-layout-active.archive .archive-row .is-academy-img-card .post-info,
.app-layout-active.author .archive-row .is-academy-img-card .post-info{
    display: none !important;
}
.app-layout-active.category .archive-row .post-1 .is-academy-img-card,
.app-layout-active.tag .archive-row .post-1 .is-academy-img-card,
.app-layout-active.archive .archive-row .post-1 .is-academy-img-card,
.app-layout-active.author .archive-row .post-1 .is-academy-img-card{
    padding-bottom: 4px;
}

/* 分类筛选：标签换行，不要横向滚动条 */
.app-layout-active .tax-fliter .filters-box ul li {
    align-items: flex-start;
}
.app-layout-active .tax-fliter .filters-box .filter-items,
.app-layout-active .tax-fliter .filter-row-cats .filter-items,
.app-layout-active .tax-fliter .filter-row-tags .filter-items,
.app-layout-active .tax-fliter .filter-row-metas .filter-items {
    flex-wrap: wrap !important;
    overflow: visible !important;
    overflow-x: visible !important;
    min-width: 0;
    scrollbar-width: none;
}
.app-layout-active .tax-fliter .filters-box .filter-items::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* 归档/作者瀑布流学院卡：按图高，勿锁 aspect-ratio（对齐首页 is-waterfall-card） */
.app-layout-active.category .archive-row .is-academy-img-card.is-waterfall-card .post-module-thumb,
.app-layout-active.tag .archive-row .is-academy-img-card.is-waterfall-card .post-module-thumb,
.app-layout-active.archive .archive-row .is-academy-img-card.is-waterfall-card .post-module-thumb,
.app-layout-active.author .archive-row .is-academy-img-card.is-waterfall-card .post-module-thumb,
.app-layout-active.category .archive-row .post-1.is-waterfall .is-academy-img-card .post-module-thumb,
.app-layout-active.tag .archive-row .post-1.is-waterfall .is-academy-img-card .post-module-thumb,
.app-layout-active.archive .archive-row .post-1.is-waterfall .is-academy-img-card .post-module-thumb,
.app-layout-active.author .archive-row .post-1.is-waterfall .is-academy-img-card .post-module-thumb,
.app-layout-active.category .archive-row .post-3.is-waterfall .is-academy-img-card .post-module-thumb,
.app-layout-active.tag .archive-row .post-3.is-waterfall .is-academy-img-card .post-module-thumb,
.app-layout-active.archive .archive-row .post-3.is-waterfall .is-academy-img-card .post-module-thumb,
.app-layout-active.author .archive-row .post-3.is-waterfall .is-academy-img-card .post-module-thumb{
    aspect-ratio: auto !important;
    height: auto !important;
}
.app-layout-active.category .archive-row .is-academy-img-card.is-waterfall-card .post-thumbnail,
.app-layout-active.tag .archive-row .is-academy-img-card.is-waterfall-card .post-thumbnail,
.app-layout-active.archive .archive-row .is-academy-img-card.is-waterfall-card .post-thumbnail,
.app-layout-active.author .archive-row .is-academy-img-card.is-waterfall-card .post-thumbnail,
.app-layout-active.category .archive-row .post-1.is-waterfall .is-academy-img-card .post-thumbnail,
.app-layout-active.tag .archive-row .post-1.is-waterfall .is-academy-img-card .post-thumbnail,
.app-layout-active.archive .archive-row .post-1.is-waterfall .is-academy-img-card .post-thumbnail,
.app-layout-active.author .archive-row .post-1.is-waterfall .is-academy-img-card .post-thumbnail,
.app-layout-active.category .archive-row .post-3.is-waterfall .is-academy-img-card .post-thumbnail,
.app-layout-active.tag .archive-row .post-3.is-waterfall .is-academy-img-card .post-thumbnail,
.app-layout-active.archive .archive-row .post-3.is-waterfall .is-academy-img-card .post-thumbnail,
.app-layout-active.author .archive-row .post-3.is-waterfall .is-academy-img-card .post-thumbnail{
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    padding-top: 0 !important;
    aspect-ratio: auto !important;
}
.app-layout-active.category .archive-row .is-academy-img-card.is-waterfall-card .post-thumbnail .thumb-link,
.app-layout-active.tag .archive-row .is-academy-img-card.is-waterfall-card .post-thumbnail .thumb-link,
.app-layout-active.archive .archive-row .is-academy-img-card.is-waterfall-card .post-thumbnail .thumb-link,
.app-layout-active.author .archive-row .is-academy-img-card.is-waterfall-card .post-thumbnail .thumb-link,
.app-layout-active.category .archive-row .post-1.is-waterfall .is-academy-img-card .post-thumbnail .thumb-link,
.app-layout-active.tag .archive-row .post-1.is-waterfall .is-academy-img-card .post-thumbnail .thumb-link,
.app-layout-active.archive .archive-row .post-1.is-waterfall .is-academy-img-card .post-thumbnail .thumb-link,
.app-layout-active.author .archive-row .post-1.is-waterfall .is-academy-img-card .post-thumbnail .thumb-link,
.app-layout-active.category .archive-row .post-3.is-waterfall .is-academy-img-card .post-thumbnail .thumb-link,
.app-layout-active.tag .archive-row .post-3.is-waterfall .is-academy-img-card .post-thumbnail .thumb-link,
.app-layout-active.archive .archive-row .post-3.is-waterfall .is-academy-img-card .post-thumbnail .thumb-link,
.app-layout-active.author .archive-row .post-3.is-waterfall .is-academy-img-card .post-thumbnail .thumb-link{
    position: static !important;
    inset: auto !important;
    display: block;
    width: 100%;
    height: auto;
}
.app-layout-active.category .archive-row .is-academy-img-card.is-waterfall-card .post-thumbnail img,
.app-layout-active.tag .archive-row .is-academy-img-card.is-waterfall-card .post-thumbnail img,
.app-layout-active.archive .archive-row .is-academy-img-card.is-waterfall-card .post-thumbnail img,
.app-layout-active.author .archive-row .is-academy-img-card.is-waterfall-card .post-thumbnail img,
.app-layout-active.category .archive-row .post-1.is-waterfall .is-academy-img-card .post-thumbnail img,
.app-layout-active.tag .archive-row .post-1.is-waterfall .is-academy-img-card .post-thumbnail img,
.app-layout-active.archive .archive-row .post-1.is-waterfall .is-academy-img-card .post-thumbnail img,
.app-layout-active.author .archive-row .post-1.is-waterfall .is-academy-img-card .post-thumbnail img,
.app-layout-active.category .archive-row .post-3.is-waterfall .is-academy-img-card .post-thumbnail img,
.app-layout-active.tag .archive-row .post-3.is-waterfall .is-academy-img-card .post-thumbnail img,
.app-layout-active.archive .archive-row .post-3.is-waterfall .is-academy-img-card .post-thumbnail img,
.app-layout-active.author .archive-row .post-3.is-waterfall .is-academy-img-card .post-thumbnail img {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    display: block;
}
.app-layout-active.category .archive-row .is-academy-img-card.is-waterfall-card .academy-card-date,
.app-layout-active.tag .archive-row .is-academy-img-card.is-waterfall-card .academy-card-date,
.app-layout-active.archive .archive-row .is-academy-img-card.is-waterfall-card .academy-card-date,
.app-layout-active.author .archive-row .is-academy-img-card.is-waterfall-card .academy-card-date,
.app-layout-active.category .archive-row .post-1.is-waterfall .is-academy-img-card .academy-card-date,
.app-layout-active.tag .archive-row .post-1.is-waterfall .is-academy-img-card .academy-card-date,
.app-layout-active.archive .archive-row .post-1.is-waterfall .is-academy-img-card .academy-card-date,
.app-layout-active.author .archive-row .post-1.is-waterfall .is-academy-img-card .academy-card-date,
.app-layout-active.category .archive-row .post-3.is-waterfall .is-academy-img-card .academy-card-date,
.app-layout-active.tag .archive-row .post-3.is-waterfall .is-academy-img-card .academy-card-date,
.app-layout-active.archive .archive-row .post-3.is-waterfall .is-academy-img-card .academy-card-date,
.app-layout-active.author .archive-row .post-3.is-waterfall .is-academy-img-card .academy-card-date{
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 5;
}

/* 用户主页：复用归档 post-2 横向列表卡（勿另起作者专用卡片） */
#author .st-main #post-list.post-2 .mika-grid:not(.mika-waterfall),
#author .st-main .post-2 .mika-grid:not(.mika-waterfall) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
}
#author .st-main #post-list.post-2 .post-list-item,
#author .st-main .post-2 .post-list-item {
    width: 100% !important;
    max-width: 100% !important;
}
#author .st-main #post-list.post-2 .post-list-item .item-in,
#author .st-main .post-2 .post-list-item .item-in {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    height: 100%;
}
#author .st-main #post-list.post-2 .item-in > .post-module-thumb,
#author .st-main .post-2 .item-in > .post-module-thumb {
    width: 120px;
    max-width: 120px;
    min-width: 120px;
    flex: 0 0 120px;
}
#author .st-main #post-list.post-2 .item-in > .post-info,
#author .st-main .post-2 .item-in > .post-info {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 14px;
    padding-left: 0;
}
#author .st-main #post-list.post-2 .post-thumbnail,
#author .st-main .post-2 .post-thumbnail {
    border-radius: 12px;
    min-height: 88px;
}
#author .st-main #post-list.post-2 .post-info h2,
#author .st-main .post-2 .post-info h2 {
    font-size: 14px;
    font-weight: 650;
    color: var(--mika-color-text, #111827);
    margin-bottom: 4px;
}
#author .st-main #post-list.post-2 .post-info h2.text-ellipsis,
#author .st-main .post-2 .post-info h2.text-ellipsis {
    --line-clamp: 1;
}
#author .st-main #post-list.post-2 .post-excerpt,
#author .st-main .post-2 .post-excerpt {
    color: #8a91a1;
    font-size: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
html.dark-theme #author .st-main #post-list.post-2 .post-info h2,
html.dark-theme #author .st-main .post-2 .post-info h2,
.dark-theme #author .st-main #post-list.post-2 .post-info h2,
.dark-theme #author .st-main .post-2 .post-info h2 {
    color: #ebf4f8;
}
@media (max-width: 900px) {
    #author .st-main #post-list.post-2 .mika-grid:not(.mika-waterfall),
    #author .st-main .post-2 .mika-grid:not(.mika-waterfall) {
        grid-template-columns: 1fr !important;
    }
    #author .st-main #post-list.post-2 .post-list-item .item-in,
    #author .st-main .post-2 .post-list-item .item-in {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 10px;
    }
    #author .st-main #post-list.post-2 .item-in > .post-module-thumb,
    #author .st-main .post-2 .item-in > .post-module-thumb {
        width: 100px;
        max-width: 100px;
        min-width: 100px;
        flex: 0 0 100px;
    }
}

/* 列表样式（post-2）：桌面一排两个；窄屏一排一个（须带 #post-list 才能压过通用 2 列） */
.app-layout-active.category .archive-row #post-list.post-2 .mika-grid:not(.mika-waterfall),
.app-layout-active.tag .archive-row #post-list.post-2 .mika-grid:not(.mika-waterfall),
.app-layout-active.archive .archive-row #post-list.post-2 .mika-grid:not(.mika-waterfall),
.app-layout-active.author .archive-row #post-list.post-2 .mika-grid:not(.mika-waterfall),
.app-layout-active.category .archive-row .post-2 .mika-grid:not(.mika-waterfall),
.app-layout-active.tag .archive-row .post-2 .mika-grid:not(.mika-waterfall),
.app-layout-active.archive .archive-row .post-2 .mika-grid:not(.mika-waterfall),
.app-layout-active.author .archive-row .post-2 .mika-grid:not(.mika-waterfall){
    grid-template-columns: repeat(var(--module-columns, 2), minmax(0, 1fr)) !important;
    gap: 14px !important;
}
.app-layout-active.category .archive-row .post-2 .post-list-item,
.app-layout-active.tag .archive-row .post-2 .post-list-item,
.app-layout-active.archive .archive-row .post-2 .post-list-item,
.app-layout-active.author .archive-row .post-2 .post-list-item{
    width: 100% !important;
    max-width: 100% !important;
}

/* Design 09 — 仅列表布局（post-2）用横向卡；勿绑 item-post-style-1 */
.app-layout-active.category .archive-row .post-2 .post-list-item .item-in,
.app-layout-active.tag .archive-row .post-2 .post-list-item .item-in,
.app-layout-active.archive .archive-row .post-2 .post-list-item .item-in,
.app-layout-active.author .archive-row .post-2 .post-list-item .item-in{
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 12px;
}
.app-layout-active.category .archive-row .post-2 .item-in > .post-module-thumb,
.app-layout-active.tag .archive-row .post-2 .item-in > .post-module-thumb,
.app-layout-active.archive .archive-row .post-2 .item-in > .post-module-thumb ,
.app-layout-active.author .archive-row .post-2 .item-in > .post-module-thumb {
    width: 120px;
    max-width: 120px;
    min-width: 120px;
    flex: 0 0 120px;
}
.app-layout-active.category .archive-row .post-2 .item-in > .post-info,
.app-layout-active.tag .archive-row .post-2 .item-in > .post-info,
.app-layout-active.archive .archive-row .post-2 .item-in > .post-info ,
.app-layout-active.author .archive-row .post-2 .item-in > .post-info {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 14px;
    padding-left: 0;
}

.app-layout-active.category .post-list-item .post-thumbnail,
.app-layout-active.tag .post-list-item .post-thumbnail,
.app-layout-active.archive .post-list-item .post-thumbnail {
    border-radius: var(--mika-radius, 14px);
    overflow: hidden;
}

.app-layout-active.category .archive-row .post-2 .post-thumbnail,
.app-layout-active.tag .archive-row .post-2 .post-thumbnail,
.app-layout-active.archive .archive-row .post-2 .post-thumbnail,
.app-layout-active.author .archive-row .post-2 .post-thumbnail{
    border-radius: 12px;
    min-height: 88px;
}

.app-layout-active.category .archive-row .post-2 .post-info h2,
.app-layout-active.tag .archive-row .post-2 .post-info h2,
.app-layout-active.archive .archive-row .post-2 .post-info h2 ,
.app-layout-active.author .archive-row .post-2 .post-info h2 {
    font-size: 15px;
    font-weight: 700;
    color: var(--mika-color-text, #111827);
    margin-bottom: 4px;
}

.app-layout-active.category .archive-row .post-2 .post-excerpt,
.app-layout-active.tag .archive-row .post-2 .post-excerpt,
.app-layout-active.archive .archive-row .post-2 .post-excerpt,
.app-layout-active.author .archive-row .post-2 .post-excerpt{
    color: #8a91a1;
    font-size: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-layout-active.category .post-cats-list a,
.app-layout-active.tag .post-cats-list a,
.app-layout-active.archive .post-cats-list a {
    border-radius: var(--mika-radius-button, 12px);
    background: var(--mika-color-surface-muted, #f5f7f9);
    color: var(--mika-color-text-muted);
    font-size: 12px;
}

.app-layout-active.category .pagination .page-numbers.current,
.app-layout-active.tag .pagination .page-numbers.current,
.app-layout-active.archive .pagination .page-numbers.current {
    background: var(--mika-color-primary);
    border-color: var(--mika-color-primary);
    color: #fff;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .app-layout-active.category .archive-row #post-list.post-2 .mika-grid:not(.mika-waterfall),
    .app-layout-active.tag .archive-row #post-list.post-2 .mika-grid:not(.mika-waterfall),
    .app-layout-active.archive .archive-row #post-list.post-2 .mika-grid:not(.mika-waterfall),
.app-layout-active.author .archive-row #post-list.post-2 .mika-grid:not(.mika-waterfall),
    .app-layout-active.category .archive-row #post-list.post-2 ul.mika-grid:not(.mika-waterfall),
    .app-layout-active.tag .archive-row #post-list.post-2 ul.mika-grid:not(.mika-waterfall),
    .app-layout-active.archive .archive-row #post-list.post-2 ul.mika-grid:not(.mika-waterfall) ,
.app-layout-active.author .archive-row #post-list.post-2 ul.mika-grid:not(.mika-waterfall) {
        grid-template-columns: 1fr !important;
    }

    /* 窄屏仍保持左图右文，不要图文上下堆叠 */
    .app-layout-active.category .archive-row #post-list.post-2 .post-list-item .item-in,
    .app-layout-active.tag .archive-row #post-list.post-2 .post-list-item .item-in,
    .app-layout-active.archive .archive-row #post-list.post-2 .post-list-item .item-in,
.app-layout-active.author .archive-row #post-list.post-2 .post-list-item .item-in,
    .app-layout-active.category .archive-row .post-2 .post-list-item .item-in,
    .app-layout-active.tag .archive-row .post-2 .post-list-item .item-in,
    .app-layout-active.archive .archive-row .post-2 .post-list-item .item-in,
.app-layout-active.author .archive-row .post-2 .post-list-item .item-in{
        grid-template-columns: minmax(84px, 100px) minmax(0, 1fr) !important;
        gap: 10px;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .app-layout-active.category .archive-row #post-list.post-2 .mika-grid:not(.mika-waterfall),
    .app-layout-active.tag .archive-row #post-list.post-2 .mika-grid:not(.mika-waterfall),
    .app-layout-active.archive .archive-row #post-list.post-2 .mika-grid:not(.mika-waterfall),
.app-layout-active.author .archive-row #post-list.post-2 .mika-grid:not(.mika-waterfall),
    .app-layout-active.category .archive-row #post-list.post-2 ul.mika-grid:not(.mika-waterfall),
    .app-layout-active.tag .archive-row #post-list.post-2 ul.mika-grid:not(.mika-waterfall),
    .app-layout-active.archive .archive-row #post-list.post-2 ul.mika-grid:not(.mika-waterfall) ,
.app-layout-active.author .archive-row #post-list.post-2 ul.mika-grid:not(.mika-waterfall) {
        grid-template-columns: 1fr !important;
    }

    /* 横向图文仅限列表 post-2；网格/瀑布流不要套这套 */
    .app-layout-active.category .archive-row #post-list.post-2 .post-list-item .item-in,
    .app-layout-active.tag .archive-row #post-list.post-2 .post-list-item .item-in,
    .app-layout-active.archive .archive-row #post-list.post-2 .post-list-item .item-in,
.app-layout-active.author .archive-row #post-list.post-2 .post-list-item .item-in,
    .app-layout-active.category .archive-row .post-2 .post-list-item .item-in,
    .app-layout-active.tag .archive-row .post-2 .post-list-item .item-in,
    .app-layout-active.archive .archive-row .post-2 .post-list-item .item-in,
.app-layout-active.author .archive-row .post-2 .post-list-item .item-in,
    .app-layout-active .post-2 .post-list-item.item-tutorial-card .item-in {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        grid-template-columns: none !important;
        gap: 12px !important;
        column-gap: 12px !important;
        padding: 10px;
    }

    .app-layout-active .post-2 .post-list-item .item-in > .post-module-thumb,
    .app-layout-active .post-2 .post-list-item.item-tutorial-card .item-in > .post-module-thumb,
    .app-layout-active.category .archive-row .post-2 .item-in > .post-module-thumb,
    .app-layout-active.category .archive-row #post-list.post-2 .item-in > .post-module-thumb {
        width: 72px !important;
        max-width: 72px !important;
        min-width: 72px !important;
        flex: 0 0 72px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 12px !important;
        padding: 0 !important;
        box-sizing: border-box;
    }

    /* 与 PC style.css 一致：用 padding-left 撑图文间距，禁止再写成 0 */
    .app-layout-active .post-2 .post-list-item.item-tutorial-card .post-info,
    .app-layout-active.category .archive-row .post-2 .post-info,
    .app-layout-active.tag .archive-row .post-2 .post-info,
    .app-layout-active.archive .archive-row .post-2 .post-info,
.app-layout-active.author .archive-row .post-2 .post-info,
    .app-layout-active.category .archive-row #post-list.post-2 .post-info,
    .app-layout-active.tag .archive-row #post-list.post-2 .post-info,
    .app-layout-active.archive .archive-row #post-list.post-2 .post-info ,
.app-layout-active.author .archive-row #post-list.post-2 .post-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding-left: 12px !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        box-sizing: border-box !important;
    }

    .app-layout-active.category .archive-row .post-2 .post-info h2,
    .app-layout-active.tag .archive-row .post-2 .post-info h2,
    .app-layout-active.archive .archive-row .post-2 .post-info h2,
.app-layout-active.author .archive-row .post-2 .post-info h2,
    .app-layout-active .post-list-item.item-tutorial-card .post-info h2 {
        margin: 0 0 4px !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    .app-layout-active.category .archive-row .post-2 .post-excerpt,
    .app-layout-active.tag .archive-row .post-2 .post-excerpt,
    .app-layout-active.archive .archive-row .post-2 .post-excerpt,
.app-layout-active.author .archive-row .post-2 .post-excerpt,
    .app-layout-active .post-list-item.item-tutorial-card .post-excerpt {
        font-size: 12px !important;
        line-height: 1.4 !important;
        -webkit-line-clamp: 1;
    }

    .app-layout-active .post-list-item.item-tutorial-card .post-info {
        /* 勿写 padding:0，会清掉上面的图文左边距 */
        justify-content: flex-start;
        gap: 0;
    }

    .app-layout-active .post-list-item.item-tutorial-card .post-info > .post-tag-pills {
        margin-top: 6px;
    }

    .app-layout-active .post-list-item.item-tutorial-card .post-info-buttom {
        gap: 4px;
        margin-top: 4px;
    }

    .app-layout-active .post-list-item.item-tutorial-card .buttom-right {
        gap: 10px;
        font-size: 11px;
        line-height: 1.2;
        margin-top: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .app-layout-active .post-list-item.item-tutorial-card .buttom-right i {
        font-size: 12px;
    }

    .app-layout-active .post-list-item.item-tutorial-card .post-tag-pills span {
        padding: 2px 8px;
        font-size: 11px;
    }
}

/* ── Design 53 — 普通页面 ── */
.app-layout-active.page .mika-single-content .single-article,
.app-layout-active.page .page-content.box {
    border-radius: var(--mika-radius, 14px);
    border: 1px solid var(--mika-color-border-muted);
    background: var(--mika-color-surface, #fff);
    box-shadow: var(--mika-shadow-sm);
    padding: 28px 32px;
}

.app-layout-active.page .entry-title,
.app-layout-active.page .page-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mika-color-text);
}

.app-layout-active.page .entry-content {
    color: var(--mika-color-text-muted);
    line-height: 1.75;
}

.app-layout-active.page .entry-content a {
    color: var(--mika-color-primary);
}

/* ── Design 40 — 下载页（跟随 html/body.dark-theme 令牌） ── */
body.mika-page-download,
body.mika-page-download #page,
body.mika-page-download .site-content,
body.mika-page-download .content-wrapper {
    background: var(--mika-color-bg, var(--bg-body-color, #f5f7f9));
    color: var(--mika-color-text, var(--color-text-primary, #1f2937));
    min-height: 100vh;
}

.app-layout-active.mika-page-download .download-page.box,
.app-layout-active .content-wrapper .download-page,
body.mika-page-download .download-page.box,
body.mika-page-download .content-wrapper .download-page {
    max-width: min(calc(var(--wrapper-width, 1200px) + 48px), 100%);
    margin: 24px auto 48px;
    padding: 28px;
    border-radius: var(--mika-radius, 14px);
    border: 1px solid var(--mika-color-border-muted, var(--border-color-muted, #e5e7eb));
    background: var(--mika-color-surface, var(--bg-main-color, #fff));
    box-shadow: var(--mika-shadow-md, 0 8px 32px rgba(15, 23, 42, 0.08));
    color: var(--mika-color-text, var(--color-text-primary, #1f2937));
}

.app-layout-active .download-page h1,
body.mika-page-download .download-page h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--mika-color-text, var(--color-text-primary, #1f2937));
    margin-bottom: 20px;
}

.app-layout-active .download-page .header-logo .site-title,
body.mika-page-download .download-page .header-logo .site-title {
    color: var(--mika-color-text, var(--color-primary, #1f2937));
}

.app-layout-active .download-page .attrs .item,
body.mika-page-download .download-page .attrs .item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--mika-color-border-muted, var(--border-color-muted, #e5e7eb));
    font-size: 14px;
    color: var(--mika-color-text, var(--color-text-primary, #1f2937));
}

.app-layout-active .download-page .attrs .item span:first-of-type,
body.mika-page-download .download-page .attrs .item span:first-of-type {
    color: var(--mika-color-text-muted, var(--color-text-secondary, #6b7280));
}

.app-layout-active .download-page .attr,
body.mika-page-download .download-page .attr {
    color: var(--mika-color-text-muted, var(--color-text-secondary, #6b7280));
}

.app-layout-active .download-page .tabs-nav,
body.mika-page-download .download-page .tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--mika-color-border-muted, var(--border-color-muted, #e5e7eb));
    margin-bottom: 16px;
    padding-bottom: 0;
}

.app-layout-active .download-page .tabs-nav li,
body.mika-page-download .download-page .tabs-nav li {
    position: relative;
    padding: 12px 18px;
    font-size: 14px;
    color: var(--mika-color-text-muted, var(--color-text-secondary, #6b7280));
    cursor: pointer;
}

.app-layout-active .download-page .tabs-nav li.active,
body.mika-page-download .download-page .tabs-nav li.active {
    color: var(--mika-color-primary, var(--color-primary));
    font-weight: 600;
}

/* 去掉 li 静态选中底线，只保留滑动 active-bar */
.app-layout-active .download-page .tabs-nav li.active::after,
body.mika-page-download .download-page .tabs-nav li.active::after {
    content: none;
    display: none;
}

.app-layout-active .download-page .tabs-nav .active-bar,
body.mika-page-download .download-page .tabs-nav .active-bar {
    bottom: -1px;
    height: 3px;
    border-radius: 999px;
    background: var(--mika-color-primary, var(--color-primary));
    box-shadow: 0 0 10px color-mix(in srgb, var(--mika-color-primary, var(--color-primary)) 55%, transparent);
    z-index: 3;
}

html.dark-theme body.mika-page-download .download-page .tabs-nav li.active,
body.dark-theme.mika-page-download .download-page .tabs-nav li.active {
    color: #9ae8f2;
}

html.dark-theme body.mika-page-download .download-page .tabs-nav .active-bar,
body.dark-theme.mika-page-download .download-page .tabs-nav .active-bar {
    height: 3px;
    background: #62d3e5;
    box-shadow: 0 0 12px rgba(98, 211, 229, 0.65);
}

.app-layout-active .download-page .button,
.app-layout-active .download-page .button.no-hover,
body.mika-page-download .download-page .button,
body.mika-page-download .download-page .button.no-hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 24px;
    border: 1px solid color-mix(in srgb, var(--mika-color-primary, var(--color-primary)) 45%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--mika-color-primary, var(--color-primary)) 12%, transparent);
    color: var(--mika-color-primary, var(--color-primary));
    font-size: 15px;
    font-weight: 600;
    box-shadow: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease, filter .15s ease;
}

.app-layout-active .download-page .button:hover,
.app-layout-active .download-page .button.no-hover:hover,
.app-layout-active .download-page .button:focus-visible,
.app-layout-active .download-page .button.no-hover:focus-visible,
body.mika-page-download .download-page .button:hover,
body.mika-page-download .download-page .button.no-hover:hover,
body.mika-page-download .download-page .button:focus-visible,
body.mika-page-download .download-page .button.no-hover:focus-visible {
    background: color-mix(in srgb, var(--mika-color-primary, var(--color-primary)) 20%, transparent);
    border-color: color-mix(in srgb, var(--mika-color-primary, var(--color-primary)) 65%, transparent);
    color: var(--mika-color-primary, var(--color-primary));
    filter: none;
}

/* 提取码 / 解压码：点击复制 */
.app-layout-active .download-page .mika-dl-copy,
body.mika-page-download .download-page .mika-dl-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 4px 12px;
    border: 1px solid color-mix(in srgb, var(--mika-color-primary, var(--color-primary)) 28%, transparent);
    border-radius: var(--mika-radius-chip, 6px);
    background: color-mix(in srgb, var(--mika-color-primary, var(--color-primary)) 12%, transparent) !important;
    color: var(--mika-color-primary, var(--color-primary)) !important;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.app-layout-active .download-page .mika-dl-copy i,
body.mika-page-download .download-page .mika-dl-copy i {
    font-size: 14px;
    opacity: .85;
}
.app-layout-active .download-page .mika-dl-copy:hover,
body.mika-page-download .download-page .mika-dl-copy:hover {
    background: color-mix(in srgb, var(--mika-color-primary, var(--color-primary)) 20%, transparent) !important;
    border-color: color-mix(in srgb, var(--mika-color-primary, var(--color-primary)) 45%, transparent);
}
.app-layout-active .download-page .mika-dl-copy.is-copied,
body.mika-page-download .download-page .mika-dl-copy.is-copied {
    border-color: color-mix(in srgb, #22c55e 50%, transparent);
    color: #16a34a !important;
}

html.dark-theme body.mika-page-download .download-page.box,
html.dark-theme body.mika-page-download .content-wrapper .download-page,
body.dark-theme.mika-page-download .download-page.box {
    background: #ffffff14;
    border-color: #ffffff24;
    box-shadow: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

html.dark-theme body.mika-page-download .download-page .mika-dl-copy,
body.dark-theme.mika-page-download .download-page .mika-dl-copy {
    background: rgba(98, 211, 229, 0.16) !important;
    border-color: rgba(98, 211, 229, 0.55);
    color: #62d3e5 !important;
}
html.dark-theme body.mika-page-download .download-page .mika-dl-copy:hover,
body.dark-theme.mika-page-download .download-page .mika-dl-copy:hover {
    background: rgba(98, 211, 229, 0.28) !important;
}
html.dark-theme body.mika-page-download .download-page .button,
html.dark-theme body.mika-page-download .download-page .button.no-hover,
body.dark-theme.mika-page-download .download-page .button,
body.dark-theme.mika-page-download .download-page .button.no-hover {
    background: rgba(98, 211, 229, 0.16) !important;
    border: 1px solid rgba(98, 211, 229, 0.55) !important;
    color: #b8f0f8 !important;
    -webkit-text-fill-color: #b8f0f8;
    box-shadow: none;
}

html.dark-theme body.mika-page-download .download-page .button:hover,
html.dark-theme body.mika-page-download .download-page .button.no-hover:hover,
html.dark-theme body.mika-page-download .download-page .button:focus-visible,
html.dark-theme body.mika-page-download .download-page .button.no-hover:focus-visible,
body.dark-theme.mika-page-download .download-page .button:hover,
body.dark-theme.mika-page-download .download-page .button.no-hover:hover,
body.dark-theme.mika-page-download .download-page .button:focus-visible,
body.dark-theme.mika-page-download .download-page .button.no-hover:focus-visible {
    background: rgba(98, 211, 229, 0.28) !important;
    border-color: #62d3e5 !important;
    color: #e8fbff !important;
    -webkit-text-fill-color: #e8fbff;
    filter: none;
}

html.dark-theme body.mika-page-download .download-page .button i,
html.dark-theme body.mika-page-download .download-page .button.no-hover i,
body.dark-theme.mika-page-download .download-page .button i,
body.dark-theme.mika-page-download .download-page .button.no-hover i {
    color: inherit;
}

/* ── Design 08 / 48 — 文章归档 & 博客首页 ── */
.app-layout-active.blog .site-content,
.app-layout-active.home .site-content {
    background: var(--mika-color-bg, #f5f7f9);
}

.app-layout-active.blog .post-list-item .item-in,
.app-layout-active.home .post-list-item .item-in {
    border-radius: var(--mika-radius, 14px);
    border: 1px solid var(--mika-color-border-muted);
    background: var(--mika-color-surface, #fff);
    box-shadow: var(--mika-shadow-sm);
    overflow: hidden;
}

.app-layout-active.blog .post-list-item .post-thumbnail,
.app-layout-active.home .post-list-item .post-thumbnail {
    border-radius: var(--mika-radius, 14px) var(--mika-radius, 14px) 0 0;
}

.app-layout-active.home .post-3 .post-list-item .item-in,
.app-layout-active.home .is-image-cards .post-list-item .item-in,
.app-layout-active.home .post-3-w .post-list-item .item-in {
    background: transparent;
    border: none;
    box-shadow: none;
}

.app-layout-active.home .post-3 .post-list-item .post-thumbnail,
.app-layout-active.home .is-image-cards .post-list-item .post-thumbnail {
    border-radius: inherit;
}

.app-layout-active.blog .mika-pagenav .page-numbers.current,
.app-layout-active.home .mika-pagenav .page-numbers.current {
    background: var(--mika-color-primary);
    border-color: var(--mika-color-primary);
    color: #fff;
    border-radius: var(--mika-radius-button, 12px);
}

@media (max-width: 768px) {
    .app-layout-active.page .mika-single-content .single-article,
    .app-layout-active.page .page-content.box {
        padding: 20px 18px;
    }
}

/* ── Design 09 — 教程分类归档 ── */
.app-layout-active .mika-tutorial-archive {
    margin-bottom: 4px;
}

.app-layout-active .tutorial-archive-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 4px 0 14px;
    color: #9aa1af;
    font-size: 13px;
    line-height: 1.4;
}

.app-layout-active .tutorial-archive-breadcrumb a {
    color: #9aa1af;
    text-decoration: none;
}

.app-layout-active .tutorial-archive-breadcrumb a:hover {
    color: var(--mika-color-primary);
}

.app-layout-active .tutorial-archive-breadcrumb i,
.app-layout-active .tutorial-archive-breadcrumb-sep {
    font-size: 12px;
    line-height: 1;
    color: #c4c9d4;
    margin: 0 2px;
}

.app-layout-active .tutorial-archive-breadcrumb span:last-child {
    color: #6b7280;
}

.app-layout-active .tutorial-archive-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 32px 36px;
    border-radius: 16px;
    border: 1px solid #eceef2;
    background: var(--mika-color-surface, #fff);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.app-layout-active .tutorial-archive-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.app-layout-active .tutorial-archive-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 55%, rgba(255, 255, 255, 0.55) 100%);
}

.app-layout-active .tutorial-archive-hero > :not(.tutorial-archive-hero-bg) {
    position: relative;
    z-index: 1;
}

.app-layout-active .tutorial-archive-cover {
    flex: 0 0 148px;
    width: 148px;
    height: 148px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, #fff5f7 0%, color-mix(in srgb, var(--mika-color-primary) 8%, #ffffff) 100%);
    display: block;
}

.app-layout-active .tutorial-archive-cover--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-layout-active .tutorial-archive-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.app-layout-active .tutorial-archive-cover--placeholder .tutorial-archive-cover-icon {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-layout-active .tutorial-archive-cover--placeholder .tutorial-archive-cover-icon .ri-book-open-fill {
    font-size: 56px;
    color: var(--mika-color-primary);
}

.app-layout-active .tutorial-archive-cover--placeholder .tutorial-archive-cover-icon .ri-play-circle-fill {
    position: absolute;
    right: -2px;
    bottom: 2px;
    font-size: 28px;
    color: var(--mika-color-text, #111827);
    background: var(--mika-color-surface, #fff);
    border-radius: 50%;
}

.app-layout-active .tutorial-archive-title {
    margin: 0 0 12px;
    font-size: clamp(28px, 3.2vw, 36px);
    font-weight: 750;
    color: var(--mika-color-text, #111827);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.app-layout-active .tutorial-archive-desc {
    margin: 0 0 12px;
    max-width: 560px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.75;
}

.app-layout-active .tutorial-archive-count {
    color: #9aa1af;
    font-size: 13px;
    font-weight: 500;
}

/* 分类页样式切换：对齐圈子 feed；固定槽位，避免末尾图标挤叠 */
.app-layout-active .tutorial-archive-style-switch {
    display: inline-flex;
    flex: 0 0 auto;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    width: max-content;
    max-width: max-content;
    margin-left: 0;
    padding: 4px;
    border-radius: 10px;
    background: var(--mika-color-bg, #f5f7f9);
    border: 1px solid transparent;
    box-sizing: border-box;
}

.app-layout-active .tutorial-archive-style-btn {
    display: inline-flex;
    flex: 0 0 32px !important;
    flex-shrink: 0 !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: var(--mika-color-text-muted, #8a91a1);
    background: transparent !important;
    text-decoration: none;
    overflow: hidden;
    box-sizing: border-box;
    transition: background .15s ease, color .15s ease;
}

.app-layout-active .tutorial-archive-style-btn i {
    display: block;
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
}

.app-layout-active .tutorial-archive-style-btn:hover {
    color: var(--mika-color-text, #1a1d2e);
    background: color-mix(in srgb, #fff 55%, transparent) !important;
}

.app-layout-active .tutorial-archive-style-btn.is-active {
    color: var(--mika-color-text, #1a1d2e) !important;
    background: var(--mika-color-surface, #fff) !important;
    box-shadow: 0 1px 2px rgba(15, 18, 28, .12);
}

html.dark-theme .app-layout-active .tutorial-archive-style-switch,
.dark-theme.app-layout-active .tutorial-archive-style-switch {
    background: #ffffff14;
    border-color: rgba(255, 255, 255, 0.08);
}

html.dark-theme .app-layout-active .tutorial-archive-style-btn,
.dark-theme.app-layout-active .tutorial-archive-style-btn {
    color: rgba(235, 244, 248, 0.55);
}

html.dark-theme .app-layout-active .tutorial-archive-style-btn:hover,
.dark-theme.app-layout-active .tutorial-archive-style-btn:hover {
    color: #ebf4f8;
    background: #ffffff14 !important;
}

html.dark-theme .app-layout-active .tutorial-archive-style-btn.is-active,
.dark-theme.app-layout-active .tutorial-archive-style-btn.is-active {
    color: #ebf4f8 !important;
    background: #ffffff24 !important;
    box-shadow: none;
}

html.dark-theme .app-layout-active .tutorial-archive-breadcrumb,
html.dark-theme .app-layout-active .tutorial-archive-breadcrumb a,
html.dark-theme .app-layout-active .tutorial-archive-count,
.dark-theme.app-layout-active .tutorial-archive-breadcrumb,
.dark-theme.app-layout-active .tutorial-archive-breadcrumb a,
.dark-theme.app-layout-active .tutorial-archive-count {
    color: #a1a1aa;
}
html.dark-theme .app-layout-active .tutorial-archive-breadcrumb span:last-child,
.dark-theme.app-layout-active .tutorial-archive-breadcrumb span:last-child {
    color: #e4e4e7;
}
html.dark-theme .app-layout-active .tutorial-archive-breadcrumb i,
html.dark-theme .app-layout-active .tutorial-archive-breadcrumb-sep,
.dark-theme.app-layout-active .tutorial-archive-breadcrumb i,
.dark-theme.app-layout-active .tutorial-archive-breadcrumb-sep {
    color: #ffffff24;
}
html.dark-theme .app-layout-active .tutorial-archive-hero,
.dark-theme.app-layout-active .tutorial-archive-hero {
    background: #ffffff14;
    border-color: #ffffff24;
    box-shadow: none;
}
html.dark-theme .app-layout-active .tutorial-archive-hero-bg::after,
.dark-theme.app-layout-active .tutorial-archive-hero-bg::after {
    background: linear-gradient(90deg, rgba(15, 18, 24, 0.88) 0%, rgba(15, 18, 24, 0.72) 55%, rgba(15, 18, 24, 0.48) 100%);
}
html.dark-theme .app-layout-active .tutorial-archive-cover,
.dark-theme.app-layout-active .tutorial-archive-cover {
    background: #ffffff14;
}
html.dark-theme .app-layout-active .tutorial-archive-cover--placeholder .tutorial-archive-cover-icon .ri-play-circle-fill,
.dark-theme.app-layout-active .tutorial-archive-cover--placeholder .tutorial-archive-cover-icon .ri-play-circle-fill {
    color: #0f172a;
    background: #fff;
}
html.dark-theme .app-layout-active .tutorial-archive-title,
.dark-theme.app-layout-active .tutorial-archive-title {
    color: #f4f4f5;
}
html.dark-theme .app-layout-active .tutorial-archive-desc,
.dark-theme.app-layout-active .tutorial-archive-desc {
    color: #a1a1aa;
}

/* 暗色：分类/筛选选中与排序 Tab、首页 Tab 一致 */
html.dark-theme .app-layout-active .tax-fliter .filter-row-cats .filter-items a.current,
html.dark-theme .app-layout-active .tax-fliter .filter-row-tags .filter-items a.current,
html.dark-theme .app-layout-active .tax-fliter .filter-row-metas .filter-items a.current,
html.dark-theme .app-layout-active .tax-fliter .filter-row-cats .filter-items a.current:hover,
html.dark-theme .app-layout-active .tax-fliter .filter-row-tags .filter-items a.current:hover,
html.dark-theme .app-layout-active .tax-fliter .filter-row-metas .filter-items a.current:hover,
.dark-theme.app-layout-active .tax-fliter .filter-row-cats .filter-items a.current,
.dark-theme.app-layout-active .tax-fliter .filter-row-tags .filter-items a.current,
.dark-theme.app-layout-active .tax-fliter .filter-row-metas .filter-items a.current,
.dark-theme.app-layout-active .tax-fliter .filter-row-cats .filter-items a.current:hover,
.dark-theme.app-layout-active .tax-fliter .filter-row-tags .filter-items a.current:hover,
.dark-theme.app-layout-active .tax-fliter .filter-row-metas .filter-items a.current:hover,
body.dark-theme .tax-fliter .filter-row-cats .filter-items a.current,
body.dark-theme .tax-fliter .filter-row-tags .filter-items a.current,
body.dark-theme .tax-fliter .filter-row-metas .filter-items a.current {
    color: #ebf4f8 !important;
    background: #ffffff2e !important;
    background-color: #ffffff2e !important;
    font-weight: 600;
    box-shadow: none !important;
}

/* 课程发现壳内分类行：与「分类」文字链一致，去掉 pill 底 */
html.dark-theme .app-layout-active .mika-video-course .video-course-scheme-filters .filter-items a,
html.dark-theme .app-layout-active .mika-video-course .video-course-scheme-filters .filter-items a:hover,
html.dark-theme .app-layout-active .mika-video-course .video-course-scheme-filters .filter-items a.current,
html.dark-theme .app-layout-active .mika-video-course .video-course-scheme-filters .filter-items a.current:hover,
.dark-theme.app-layout-active .mika-video-course .video-course-scheme-filters .filter-items a,
.dark-theme.app-layout-active .mika-video-course .video-course-scheme-filters .filter-items a:hover,
.dark-theme.app-layout-active .mika-video-course .video-course-scheme-filters .filter-items a.current,
.dark-theme.app-layout-active .mika-video-course .video-course-scheme-filters .filter-items a.current:hover {
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
html.dark-theme .app-layout-active .mika-video-course .video-course-scheme-filters .filter-items a.current,
html.dark-theme .app-layout-active .mika-video-course .video-course-scheme-filters .filter-items a.current:hover,
.dark-theme.app-layout-active .mika-video-course .video-course-scheme-filters .filter-items a.current,
.dark-theme.app-layout-active .mika-video-course .video-course-scheme-filters .filter-items a.current:hover {
    color: #fff !important;
    font-weight: 600;
}

.app-layout-active .tutorial-archive-row {
    margin-top: 8px;
}

.app-layout-active .tutorial-archive-row .mika-grid {
    gap: 14px;
}
/* 横向列表卡：仅 post-2。网格(post-1)/瀑布流勿强制 row + 固定封面宽 */
.app-layout-active .post-2 .post-list-item.item-tutorial-card .item-in {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    padding: 12px;
    border-radius: var(--mika-radius, 14px);
    border: 1px solid #eceef2;
    background: var(--mika-color-surface, #fff);
    box-shadow: none;
}
.app-layout-active .post-2 .item-tutorial-card .item-in > .post-module-thumb,
.app-layout-active .post-2 .post-list-item.item-tutorial-card .item-in > .post-module-thumb {
    width: 120px !important;
    max-width: 120px !important;
    min-width: 120px !important;
    flex: 0 0 120px !important;
    margin: 0 !important;
}
/* 桌面列表图文间距：信息区左边距（仅 post-2） */
.app-layout-active .post-2 .post-list-item.item-tutorial-card .post-info,
.app-layout-active.category .archive-row .post-2 .post-info,
.app-layout-active.tag .archive-row .post-2 .post-info,
.app-layout-active.archive .archive-row .post-2 .post-info,
.app-layout-active.author .archive-row .post-2 .post-info{
    margin-left: 14px;
    padding-left: 0;
    box-sizing: border-box;
}
.app-layout-active .post-2 .post-list-item.item-tutorial-card .post-thumbnail {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: var(--post-thumb-ratio, 16 / 9) !important;
    height: auto !important;
    padding-top: 0 !important;
    min-height: 0;
}

.app-layout-active .post-2 .post-list-item.item-tutorial-card .post-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-layout-active .post-2 .post-list-item.item-tutorial-card .post-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 只改上下；左边距由桌面 margin-left / 移动端 padding-left 负责，这里不要写 padding 简写 */
    padding-top: 4px;
    padding-bottom: 4px;
    padding-right: 0;
    min-width: 0;
}.app-layout-active .post-list-item.item-tutorial-card .post-info h2 {
    margin: 0 0 8px;
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.35;
    color: var(--mika-color-text, #111827);
}

.app-layout-active .post-list-item.item-tutorial-card .post-info h2 a {
    color: inherit;
    text-decoration: none;
}

.app-layout-active .post-list-item.item-tutorial-card .post-excerpt {
    margin: 0;
    color: #8a91a1;
    font-size: 13px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 教程卡底部：标签一行（可拖拽）+ 元信息一行 */
.app-layout-active .post-list-item.item-tutorial-card .post-info > .post-tag-pills {
    margin-top: 12px;
}

.app-layout-active .post-list-item.item-tutorial-card .post-info-buttom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 10px;
}

.app-layout-active .post-list-item.item-tutorial-card .buttom-left {
    display: none;
}

.app-layout-active .post-list-item.item-tutorial-card .post-tag-pills,
.app-layout-active .post-list-item.item-tutorial-card .post-tag-pills.is-drag-scroll {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-x;
}

.app-layout-active .post-list-item.item-tutorial-card .post-tag-pills::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.app-layout-active .post-list-item.item-tutorial-card .post-tag-pills.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.app-layout-active .post-list-item.item-tutorial-card .post-tag-pills span {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--mika-color-bg, #f5f7f9);
    color: #6b7280;
    font-size: 12px;
    line-height: 1.2;
}

.app-layout-active .post-list-item.item-tutorial-card .buttom-right {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-shrink: 0;
    width: 100%;
    margin-left: 0;
    color: #9aa1af;
    font-size: 13px;
}

.app-layout-active .post-list-item.item-tutorial-card .buttom-right .post-date,
.app-layout-active .post-list-item.item-tutorial-card .buttom-right .post-views,
.app-layout-active .post-list-item.item-tutorial-card .buttom-right .post-like {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #9aa1af;
}

.app-layout-active .post-list-item.item-tutorial-card .buttom-right i {
    font-size: 14px;
}

/* Design 09 分页 */
.app-layout-active.mika-tutorial-archive-page .mika-pagenav {
    margin-top: 8px;
}

.app-layout-active.mika-tutorial-archive-page .mika-ajax-pager .ajax-pagination {
    gap: 0;
}

.app-layout-active.mika-tutorial-archive-page .mika-ajax-pager .btn-prev:disabled {
    display: none;
}

.app-layout-active.mika-tutorial-archive-page .mika-ajax-pager .btn-prev,
.app-layout-active.mika-tutorial-archive-page .mika-ajax-pager .btn-next,
.app-layout-active.mika-tutorial-archive-page .mika-ajax-pager ul.mika-pager li.number {
    margin: 0 4px;
    box-sizing: border-box;
    min-width: 36px;
    height: 36px;
    line-height: 34px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: var(--mika-color-surface, #fff);
    color: #4b5563;
    font-size: 14px;
    text-align: center;
}
/* 上一页/下一页固定为正方形，页码可略宽 */
.app-layout-active.mika-tutorial-archive-page .mika-ajax-pager .btn-prev,
.app-layout-active.mika-tutorial-archive-page .mika-ajax-pager .btn-next {
    width: 36px;
    max-width: 36px;
    padding: 0;
}
.app-layout-active.mika-tutorial-archive-page .mika-ajax-pager ul.mika-pager li.number {
    padding: 0 4px;
}

.app-layout-active.mika-tutorial-archive-page .mika-ajax-pager ul.mika-pager li.number.active {
    background: var(--mika-color-primary);
    border-color: var(--mika-color-primary);
    color: #fff !important;
}

@media (max-width: 900px) {
    .app-layout-active .post-2 .post-list-item.item-tutorial-card .item-in {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        column-gap: 12px !important;
        padding: 10px;
    }
    .app-layout-active .post-2 .post-list-item.item-tutorial-card .item-in > .post-module-thumb {
        width: 88px !important;
        max-width: 88px !important;
        min-width: 88px !important;
        flex: 0 0 88px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 12px !important;
    }
    .app-layout-active .post-2 .post-list-item.item-tutorial-card .post-info {
        margin-left: 0 !important;
        padding-left: 12px !important;
    }
}

@media (max-width: 720px) {
    /* 头部：左图 + 右文（标题/描述/篇数换行），图片不单独占一行 */
    .app-layout-active .tutorial-archive-hero {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        padding: 14px 16px;
        gap: 14px;
    }
    .app-layout-active .tutorial-archive-cover {
        flex: 0 0 88px;
        width: 88px;
        height: 88px;
        border-radius: 14px;
    }
    .app-layout-active .tutorial-archive-meta {
        flex: 1 1 auto;
        min-width: 0;
    }
    .app-layout-active .tutorial-archive-title {
        margin: 0 0 6px;
        font-size: 20px;
        line-height: 1.25;
    }
    .app-layout-active .tutorial-archive-desc {
        margin: 0 0 6px;
        font-size: 12px;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .app-layout-active .tutorial-archive-count {
        margin: 0;
        font-size: 12px;
    }
    .app-layout-active .post-2 .post-list-item.item-tutorial-card .item-in {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        column-gap: 12px !important;
        padding: 10px;
    }
    .app-layout-active .post-2 .post-list-item.item-tutorial-card .item-in > .post-module-thumb {
        width: 72px !important;
        max-width: 72px !important;
        min-width: 72px !important;
        flex: 0 0 72px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 12px !important;
    }
    .app-layout-active .post-2 .post-list-item.item-tutorial-card .post-info {
        margin-left: 0 !important;
        padding-left: 12px !important;
    }
    .app-layout-active .post-2 .post-list-item.item-tutorial-card .post-info h2 {
        margin: 0 0 4px !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
    }
    .app-layout-active .post-list-item.item-tutorial-card .post-info > .post-tag-pills {
        margin-top: 6px;
    }
    .app-layout-active .post-list-item.item-tutorial-card .post-info-buttom {
        gap: 4px;
        margin-top: 4px;
    }
    .app-layout-active .post-list-item.item-tutorial-card .buttom-right {
        justify-content: flex-start;
        gap: 10px;
        font-size: 11px;
        margin-top: 0;
        padding: 0;
    }
}

html.dark-theme .app-layout-active .post-list-item.item-tutorial-card .item-in,
html.dark-theme .app-layout-active .post-2 .post-list-item.item-tutorial-card .item-in,
html.dark-theme .app-layout-active.category .post-list-item .item-in,
.dark-theme.app-layout-active .post-list-item.item-tutorial-card .item-in,
.dark-theme.app-layout-active.category .post-list-item .item-in {
    background: #ffffff14;
    border-color: #ffffff24;
    box-shadow: none;
}
html.dark-theme .app-layout-active .post-list-item.item-tutorial-card .post-info h2,
html.dark-theme .app-layout-active .post-list-item.item-tutorial-card .post-info h2 a,
.dark-theme.app-layout-active .post-list-item.item-tutorial-card .post-info h2,
.dark-theme.app-layout-active .post-list-item.item-tutorial-card .post-info h2 a {
    color: #f4f4f5;
}
html.dark-theme .app-layout-active .post-list-item.item-tutorial-card .post-info h2 a:hover,
.dark-theme.app-layout-active .post-list-item.item-tutorial-card .post-info h2 a:hover {
    color: #fff;
}
html.dark-theme .app-layout-active .post-list-item.item-tutorial-card .post-excerpt,
html.dark-theme .app-layout-active.category .post-list-item .post-excerpt,
.dark-theme.app-layout-active .post-list-item.item-tutorial-card .post-excerpt,
.dark-theme.app-layout-active.category .post-list-item .post-excerpt {
    color: #a1a1aa;
}
html.dark-theme .app-layout-active .post-list-item.item-tutorial-card .post-tag-pills span,
html.dark-theme .app-layout-active.category .post-cats-list a,
.dark-theme.app-layout-active .post-list-item.item-tutorial-card .post-tag-pills span,
.dark-theme.app-layout-active.category .post-cats-list a {
    background: #ffffff14;
    color: #ebf4f8b3;
    border: 1px solid #ffffff24;
}
html.dark-theme .app-layout-active .post-list-item.item-tutorial-card .buttom-right,
html.dark-theme .app-layout-active .post-list-item.item-tutorial-card .buttom-right .post-date,
html.dark-theme .app-layout-active .post-list-item.item-tutorial-card .buttom-right .post-views,
html.dark-theme .app-layout-active .post-list-item.item-tutorial-card .buttom-right .post-like,
.dark-theme.app-layout-active .post-list-item.item-tutorial-card .buttom-right,
.dark-theme.app-layout-active .post-list-item.item-tutorial-card .buttom-right .post-date,
.dark-theme.app-layout-active .post-list-item.item-tutorial-card .buttom-right .post-views,
.dark-theme.app-layout-active .post-list-item.item-tutorial-card .buttom-right .post-like {
    color: #a1a1aa;
}
html.dark-theme .app-layout-active.mika-tutorial-archive-page .mika-ajax-pager .btn-prev,
html.dark-theme .app-layout-active.mika-tutorial-archive-page .mika-ajax-pager .btn-next,
html.dark-theme .app-layout-active.mika-tutorial-archive-page .mika-ajax-pager ul.mika-pager li.number,
.dark-theme.app-layout-active.mika-tutorial-archive-page .mika-ajax-pager .btn-prev,
.dark-theme.app-layout-active.mika-tutorial-archive-page .mika-ajax-pager .btn-next,
.dark-theme.app-layout-active.mika-tutorial-archive-page .mika-ajax-pager ul.mika-pager li.number {
    background: #ffffff14;
    border-color: #ffffff24;
    color: #e4e4e7;
}

/* 分类归档：右侧小工具顶部与左侧列表顶对齐 */
.app-layout-active.category .mika-single-content.single-sidebar-show,
.app-layout-active.mika-tutorial-archive-page .mika-single-content.single-sidebar-show {
    align-items: flex-start;
    padding-top: 0;
}
.app-layout-active.category .mika-single-content.single-sidebar-show > .content-area,
.app-layout-active.mika-tutorial-archive-page .mika-single-content.single-sidebar-show > .content-area {
    margin-top: 0;
    padding-top: 0;
}
.app-layout-active.category .mika-single-content.single-sidebar-show > .widget-area,
.app-layout-active.mika-tutorial-archive-page .mika-single-content.single-sidebar-show > .widget-area {
    align-self: flex-start;
    margin-top: 0 !important;
    padding-top: 0 !important;
    /* 父级已有 gap，去掉额外左边距 */
    margin-left: 0;
}
.app-layout-active.category .mika-single-content.single-sidebar-show > .widget-area > .widget:first-child,
.app-layout-active.mika-tutorial-archive-page .mika-single-content.single-sidebar-show > .widget-area > .widget:first-child {
    margin-top: 0 !important;
}
/* 去掉外层 widget-box 内边距，避免卡片整体下沉与列表错位 */
.app-layout-active.category .mika-single-content.single-sidebar-show > .widget-area > .widget,
.app-layout-active.mika-tutorial-archive-page .mika-single-content.single-sidebar-show > .widget-area > .widget {
    background: transparent;
    box-shadow: none;
}
.app-layout-active.category .mika-single-content.single-sidebar-show > .widget-area .widget-box,
.app-layout-active.mika-tutorial-archive-page .mika-single-content.single-sidebar-show > .widget-area .widget-box {
    padding: 0 !important;
}
.app-layout-active.category .mika-single-content.single-sidebar-show > .content-area > .archive-row:first-child,
.app-layout-active.mika-tutorial-archive-page .mika-single-content.single-sidebar-show > .content-area > .archive-row:first-child {
    margin-top: 0;
}
/* 头图与列表区间距：保证两侧同一起点 */
.app-layout-active.category .mika-tax-header.mika-tutorial-archive,
.app-layout-active.mika-tutorial-archive-page .mika-tax-header.mika-tutorial-archive {
    margin-bottom: 16px;
}
html.dark-theme .app-layout-active.mika-tutorial-archive-page .mika-ajax-pager ul.mika-pager li.number.active,
.dark-theme.app-layout-active.mika-tutorial-archive-page .mika-ajax-pager ul.mika-pager li.number.active {
    background: #fff;
    border-color: #fff;
    color: #0f172a !important;
}

/* ── Design 48 — 标签归档 ── */
.app-layout-active.mika-tag-archive-page .mika-tag-archive-shell.mika-single-content.wrapper,
.app-layout-active.tag.mika-tag-archive-page .content-wrapper > .mika-single-content.wrapper.mika-tag-archive-shell {
    max-width: 1120px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 20px;
    padding-bottom: 40px;
}

.app-layout-active.mika-tag-archive-page .mika-tag-archive-primary {
    width: 100%;
    max-width: 100%;
}

.mika-tag-archive {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Hero */
.mika-tag-hero {
    position: relative;
    border-radius: var(--mika-radius, 14px);
    background: var(--mika-color-surface, #fff);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    min-height: 168px;
}

.mika-tag-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 42%);
    align-items: stretch;
    min-height: 168px;
}

.mika-tag-hero__meta {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 28px 32px;
}

.mika-tag-hero__title {
    margin: 0;
    font-size: 0;
    line-height: 1;
}

.mika-tag-hero__pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mika-color-text, #111827);
    background: var(--mika-color-surface, #fff);
    border: 1.5px solid #e5e7eb;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mika-tag-hero__count {
    margin: 0;
    font-size: 14px;
    color: #8a91a1;
    font-weight: 500;
}

.mika-tag-hero__followers {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
}

.mika-tag-hero__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    max-width: 36em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mika-tag-hero__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.mika-tag-follow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    height: 40px;
    padding: 0 20px;
    border: none;
    border-radius: 10px;
    background: var(--mika-color-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

.mika-tag-follow:hover {
    background: color-mix(in srgb, var(--mika-color-primary) 85%, #000);
}

.mika-tag-follow.is-followed {
    background: #f3f4f6;
    color: #4b5563;
}

.mika-tag-follow.is-followed:hover {
    background: #e5e7eb;
}

.mika-tag-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: var(--mika-color-surface, #fff);
    color: #6b7280;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.mika-tag-favorite:hover {
    border-color: var(--mika-color-primary);
    color: var(--mika-color-primary);
}

.mika-tag-favorite.is-favorited {
    border-color: var(--mika-color-primary);
    color: var(--mika-color-primary);
    background: color-mix(in srgb, var(--mika-color-primary) 8%, var(--mika-color-surface, #fff));
}

.mika-tag-favorite i {
    font-size: 18px;
    line-height: 1;
}

.mika-tag-hero__banner {
    position: relative;
    min-height: 168px;
    background-image: var(--tag-banner);
    background-size: cover;
    background-position: center right;
}

.mika-tag-hero__banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.85) 18%, rgba(255,255,255,.2) 48%, transparent 70%);
    pointer-events: none;
}

.mika-tag-hero:not(.has-banner) .mika-tag-hero__inner {
    grid-template-columns: 1fr;
}

/* Related tags */
.mika-tag-related {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 4px 2px;
}

.mika-tag-related__label {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--mika-color-text, #111827);
}

.mika-tag-related__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
    min-width: 0;
}

.mika-tag-related__list a {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.mika-tag-related__list a:hover {
    background: #ffe5ea;
    color: var(--mika-color-primary);
}

.mika-tag-related__more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
}

.mika-tag-related__more:hover {
    color: var(--mika-color-primary);
}

/* Body: feed + hot tags */
.mika-tag-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
    align-items: start;
}

.mika-tag-feed-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    padding: 0 2px;
}

.mika-tag-feed-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--mika-color-text, #111827);
}

.mika-tag-sort {
    display: flex;
    align-items: center;
    gap: 18px;
}

.mika-tag-sort a {
    font-size: 14px;
    font-weight: 500;
    color: #8a91a1;
    text-decoration: none;
    transition: color .15s ease;
}

.mika-tag-sort a:hover {
    color: var(--mika-color-text, #111827);
}

.mika-tag-sort a.is-active {
    color: var(--mika-color-primary);
    font-weight: 600;
}

/* 强制单列：默认 .mika-grid 是 5 列，ajax 返回模式无内联列数样式 */
.mika-tag-archive .tag-archive-row #post-list ul.mika-grid,
.mika-tag-archive #post-list > ul.mika-grid,
.app-layout-active.mika-tag-archive-page .mika-tag-archive .mika-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px;
}

.mika-tag-archive .tag-archive-row .post-list-item {
    margin-bottom: 0;
    width: 100%;
    min-width: 0;
}

.mika-tag-archive .tag-archive-row .post-list-item .item-in,
.mika-tag-archive .post-2 .post-list-item.item-tag-card .item-in,
.mika-tag-archive .post-2 .post-list-item .item-in {
    display: grid !important;
    grid-template-columns: minmax(168px, 220px) minmax(0, 1fr) !important;
    gap: 18px;
    align-items: stretch;
    padding: 14px 16px !important;
    height: auto !important;
    border-radius: var(--mika-radius, 14px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--mika-color-surface, #fff);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.mika-tag-archive .post-2 .item-in > .post-module-thumb,
.mika-tag-archive .tag-archive-row .post-module-thumb {
    width: 100% !important;
    max-width: none !important;
    flex-shrink: 0;
}

.mika-tag-archive .tag-archive-row .post-thumbnail,
.mika-tag-archive .post-2 .item-tag-card .post-thumbnail {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 120px;
    height: auto !important;
    aspect-ratio: var(--post-thumb-ratio, 16 / 9);
    padding-top: 0 !important;
}

.mika-tag-archive .tag-archive-row .post-thumbnail img,
.mika-tag-archive .post-2 .item-tag-card .post-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mika-tag-archive .tag-archive-row .post-info,
.mika-tag-archive .post-2 .item-tag-card .post-info {
    padding: 2px 0 0 !important;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mika-tag-archive .tag-archive-row .post-info h2,
.mika-tag-archive .post-2 .item-tag-card .post-info h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--mika-color-text, #111827);
    margin: 0 0 2px;
    line-height: 1.35;
}

.mika-tag-archive .tag-archive-row .post-info h2 a {
    color: inherit;
    text-decoration: none;
}

.mika-tag-archive .tag-archive-row .post-excerpt,
.mika-tag-archive .post-2 .item-tag-card .post-excerpt {
    color: #8a91a1;
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mika-tag-archive .tag-archive-row .post-info-buttom,
.mika-tag-archive .post-2 .item-tag-card .post-info-buttom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
}

.mika-tag-archive .tag-archive-row .post-info-buttom .buttom-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    min-width: 0;
}

.mika-tag-archive .tag-archive-row .post-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #4b5563;
    font-size: 13px;
}

.mika-tag-archive .tag-archive-row .post-user .user-avatar,
.mika-tag-archive .tag-archive-row .post-user .avatar-face {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.mika-tag-archive .tag-archive-row .post-cats-list a,
.mika-tag-archive .tag-archive-row .post-cats-list span {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 12px;
    text-decoration: none;
}

.mika-tag-archive .tag-archive-row .post-date {
    color: #9ca3af;
    font-size: 12px;
}

.mika-tag-archive .tag-archive-row .post-info-buttom .buttom-right {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #9ca3af;
    font-size: 12px;
    flex-shrink: 0;
}

.mika-tag-archive .tag-archive-row .buttom-right > span {
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mika-tag-archive .tag-archive-row .post-bookmark {
    color: #c4c9d4;
    font-size: 15px;
}

/* Hot tags aside */
.mika-tag-aside {
    position: sticky;
    top: 80px;
}

.mika-tag-hot {
    background: var(--mika-color-surface, #fff);
    border-radius: var(--mika-radius, 14px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    padding: 18px 16px 16px;
}

.mika-tag-hot__title {
    margin: 0 0 14px;
    padding: 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--mika-color-text, #111827);
}

.mika-tag-hot__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mika-tag-hot__item a {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    text-decoration: none;
    border-radius: 8px;
    transition: background .15s ease;
}

.mika-tag-hot__item a:hover {
    background: #f9fafb;
}

.mika-tag-hot__rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    background: #f3f4f6;
}

.mika-tag-hot__item.is-top-1 .mika-tag-hot__rank {
    background: var(--mika-color-primary);
    color: #fff;
}

.mika-tag-hot__item.is-top-2 .mika-tag-hot__rank {
    background: #ff7a1a;
    color: #fff;
}

.mika-tag-hot__item.is-top-3 .mika-tag-hot__rank {
    background: #ffb020;
    color: #fff;
}

.mika-tag-hot__name {
    font-size: 14px;
    font-weight: 500;
    color: var(--mika-color-text, #111827);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mika-tag-hot__count {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
}

.mika-tag-hot__more {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid var(--mika-color-primary);
    color: var(--mika-color-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: var(--mika-color-surface, #fff);
    transition: background .15s ease, color .15s ease;
}

.mika-tag-hot__more:hover {
    background: var(--mika-color-primary);
    color: #fff;
}

@media (max-width: 980px) {
    .mika-tag-body {
        grid-template-columns: 1fr;
    }
    .mika-tag-aside {
        position: static;
        /* 作品列表在前，热门排行在后，避免抢首屏 */
        order: 2;
    }
    .mika-tag-hero__inner {
        grid-template-columns: 1fr;
    }
    .mika-tag-hero__banner {
        display: none;
    }
}

@media (max-width: 720px) {
    .mika-tag-hero__meta {
        padding: 20px;
    }
    .mika-tag-hero__pill {
        font-size: 18px;
        padding: 8px 14px;
    }
    .mika-tag-feed-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .mika-tag-archive .tag-archive-row .post-list-item .item-in,
    .mika-tag-archive .post-2 .post-list-item.item-tag-card .item-in,
    .mika-tag-archive .post-2 .post-list-item .item-in {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
 * 列表卡图文间距（仅 #post-list.post-2 / .post-2）
 * 切勿匹配网格 post-1 / 瀑布流，否则会把竖卡压成横向细条
 * ========================================================= */
body.app-layout-active.category .archive-row #post-list.post-2 .post-list-item .item-in,
body.app-layout-active.tag .archive-row #post-list.post-2 .post-list-item .item-in,
body.app-layout-active.archive .archive-row #post-list.post-2 .post-list-item .item-in,
.app-layout-active.author .archive-row #post-list.post-2 .post-list-item .item-in,
body.app-layout-active.mika-tutorial-archive-page #post-list.post-2 .post-list-item .item-in,
body.app-layout-active #post-list.post-2 .post-list-item .item-in,
body.app-layout-active .post-2 .post-list-item.item-tutorial-card .item-in {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
}

body.app-layout-active.category .archive-row #post-list.post-2 .item-in > .post-module-thumb,
body.app-layout-active.tag .archive-row #post-list.post-2 .item-in > .post-module-thumb,
body.app-layout-active.archive .archive-row #post-list.post-2 .item-in > .post-module-thumb,
.app-layout-active.author .archive-row #post-list.post-2 .item-in > .post-module-thumb,
body.app-layout-active.mika-tutorial-archive-page #post-list.post-2 .item-in > .post-module-thumb,
body.app-layout-active #post-list.post-2 .item-in > .post-module-thumb,
body.app-layout-active .post-2 .post-list-item.item-tutorial-card .item-in > .post-module-thumb {
    flex: 0 0 auto !important;
}

body.app-layout-active.category .archive-row #post-list.post-2 .item-in > .post-info,
body.app-layout-active.tag .archive-row #post-list.post-2 .item-in > .post-info,
body.app-layout-active.archive .archive-row #post-list.post-2 .item-in > .post-info,
.app-layout-active.author .archive-row #post-list.post-2 .item-in > .post-info,
body.app-layout-active.mika-tutorial-archive-page #post-list.post-2 .item-in > .post-info,
body.app-layout-active #post-list.post-2 .item-in > .post-info,
body.app-layout-active .post-2 .post-list-item.item-tutorial-card .item-in > .post-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin-left: 12px !important;
    padding-left: 0 !important;
}

@media screen and (max-width: 768px) {
    body.app-layout-active.category .archive-row #post-list.post-2 .post-list-item .item-in,
    body.app-layout-active.tag .archive-row #post-list.post-2 .post-list-item .item-in,
    body.app-layout-active.archive .archive-row #post-list.post-2 .post-list-item .item-in,
.app-layout-active.author .archive-row #post-list.post-2 .post-list-item .item-in,
    body.app-layout-active.mika-tutorial-archive-page #post-list.post-2 .post-list-item .item-in,
    body.app-layout-active #post-list.post-2 .post-list-item .item-in,
    body.app-layout-active .post-2 .post-list-item.item-tutorial-card .item-in {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        column-gap: 0 !important;
    }

    body.app-layout-active.category .archive-row #post-list.post-2 .item-in > .post-module-thumb,
    body.app-layout-active.tag .archive-row #post-list.post-2 .item-in > .post-module-thumb,
    body.app-layout-active.archive .archive-row #post-list.post-2 .item-in > .post-module-thumb,
.app-layout-active.author .archive-row #post-list.post-2 .item-in > .post-module-thumb,
    body.app-layout-active.mika-tutorial-archive-page #post-list.post-2 .item-in > .post-module-thumb,
    body.app-layout-active #post-list.post-2 .item-in > .post-module-thumb,
    body.app-layout-active .post-2 .post-list-item.item-tutorial-card .item-in > .post-module-thumb {
        width: 72px !important;
        max-width: 72px !important;
        min-width: 72px !important;
        flex: 0 0 72px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 12px !important;
    }

    body.app-layout-active.category .archive-row #post-list.post-2 .item-in > .post-info,
    body.app-layout-active.tag .archive-row #post-list.post-2 .item-in > .post-info,
    body.app-layout-active.archive .archive-row #post-list.post-2 .item-in > .post-info,
.app-layout-active.author .archive-row #post-list.post-2 .item-in > .post-info,
    body.app-layout-active.mika-tutorial-archive-page #post-list.post-2 .item-in > .post-info,
    body.app-layout-active #post-list.post-2 .item-in > .post-info,
    body.app-layout-active .post-2 .post-list-item.item-tutorial-card .item-in > .post-info {
        margin: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-right: 0 !important;
        padding-left: 12px !important;
    }
}

/* ── 分类控制条 mika-cat-bar：子分类 chips / 筛选方案 / 搜索 · 视图 · 排序 合并为一张卡片 ── */
.mika-cat-bar {
    --cat-bar-line: #eceef2;
    --cat-bar-bg: var(--mika-color-surface, #fff);
    --cat-bar-muted: #8b93a7;
    --cat-bar-ink: var(--mika-color-text, #1a1d2e);
    --cat-bar-soft: #f4f5f8;
    --cat-bar-accent: var(--mika-color-primary, #7b61ff);
    margin: 20px 0 16px;
    border: 1px solid var(--cat-bar-line);
    border-radius: 14px;
    background: var(--cat-bar-bg);
    box-sizing: border-box;
}
.mika-cat-bar__rows {
    padding: 12px 16px;
    border-bottom: 1px solid var(--cat-bar-line);
}
.mika-cat-bar__row,
.mika-cat-bar__scheme > li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 4px 0;
    list-style: none;
}
.mika-cat-bar__scheme {
    margin: 0;
    padding: 0;
    list-style: none;
}
.mika-cat-bar__label,
.mika-cat-bar__scheme .filter-name {
    flex: 0 0 auto;
    min-width: 40px;
    padding: 0;
    border: 0 !important;
    color: var(--cat-bar-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 30px;
    white-space: nowrap;
}
.mika-cat-bar__chips,
.mika-cat-bar__scheme .filter-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}
.mika-cat-bar__scroll {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
}
.mika-cat-bar__more {
    display: none;
    position: absolute;
    top: 50%;
    right: 0;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--cat-bar-soft);
    color: var(--cat-bar-muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: opacity .2s ease, color .15s ease;
    animation: mika-cat-more-nudge 1.6s ease-in-out 3;
}
.mika-cat-bar__more:hover {
    color: var(--cat-bar-ink);
}
@keyframes mika-cat-more-nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
    .mika-cat-bar__more { animation: none; }
}
.mika-cat-chip,
.mika-cat-bar__scheme .filter-items a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--cat-bar-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: none;
    transition: color .15s ease, background-color .15s ease;
}
.mika-cat-chip:hover,
.mika-cat-bar__scheme .filter-items a:hover {
    color: var(--cat-bar-ink);
    background: var(--cat-bar-soft);
}
/* 唯一强调：当前项用主色浅底 + 主色字 */
.mika-cat-chip.is-active,
.mika-cat-bar__scheme .filter-items a.current {
    color: var(--cat-bar-accent) !important;
    background: color-mix(in srgb, var(--cat-bar-accent) 12%, transparent) !important;
    font-weight: 600;
}
.mika-cat-chip__count {
    color: inherit;
    font-size: 11px;
    font-weight: 500;
    opacity: .55;
}

.mika-cat-bar__tools {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 16px;
}
.mika-cat-bar.is-tools-only .mika-cat-bar__tools {
    padding-left: 12px;
}
.mika-cat-bar__spacer {
    flex: 1 1 auto;
}
.mika-cat-bar__end {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex: 0 0 auto;
}

.mika-cat-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 260px;
    max-width: 360px;
    min-width: 160px;
    height: 36px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--cat-bar-soft);
    box-sizing: border-box;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.mika-cat-search > i {
    flex: 0 0 auto;
    color: var(--cat-bar-muted);
    font-size: 16px;
    line-height: 1;
}
.mika-cat-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--cat-bar-ink);
    font-size: 13px;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}
.mika-cat-search input[type="search"]::placeholder {
    color: var(--cat-bar-muted);
}
.mika-cat-search input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}
.mika-cat-search:focus-within,
.mika-cat-search.has-value {
    border-color: color-mix(in srgb, var(--cat-bar-accent) 45%, transparent);
    background: var(--cat-bar-bg);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat-bar-accent) 12%, transparent);
}
.mika-cat-search:focus-within > i {
    color: var(--cat-bar-accent);
}
.mika-cat-search__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: var(--cat-bar-muted);
    background: var(--cat-bar-soft);
    font-size: 14px;
    text-decoration: none;
}
.mika-cat-search__clear:hover {
    color: var(--cat-bar-ink);
}

.mika-cat-views {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 10px;
    background: var(--cat-bar-soft);
}
.mika-cat-views__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--cat-bar-muted);
    font-size: 16px;
    text-decoration: none;
    transition: color .15s ease, background-color .15s ease;
}
.mika-cat-views__btn:hover {
    color: var(--cat-bar-ink);
}
.mika-cat-views__btn.is-active {
    color: var(--cat-bar-accent);
    background: var(--cat-bar-bg);
    box-shadow: 0 1px 2px rgba(15, 18, 28, .12);
}

.mika-cat-sort {
    position: relative;
    z-index: 30;
}
.mika-cat-sort__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 10px 0 12px;
    border-radius: 10px;
    background: var(--cat-bar-soft);
    color: var(--cat-bar-ink);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.mika-cat-sort__btn::-webkit-details-marker {
    display: none;
}
.mika-cat-sort__btn::marker {
    content: '';
}
.mika-cat-sort__icon {
    color: var(--cat-bar-accent);
    font-size: 15px;
}
.mika-cat-sort__caret {
    color: var(--cat-bar-muted);
    font-size: 16px;
    transition: transform .15s ease;
}
.mika-cat-sort[open] .mika-cat-sort__caret {
    transform: rotate(180deg);
}
.mika-cat-sort__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    display: flex;
    flex-direction: column;
    min-width: 156px;
    padding: 6px;
    border: 1px solid var(--cat-bar-line);
    border-radius: 12px;
    background: var(--cat-bar-bg);
    box-shadow: 0 12px 28px rgba(15, 18, 28, .14);
    box-sizing: border-box;
}
.mika-cat-sort__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--cat-bar-muted);
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
}
.mika-cat-sort__option:hover {
    color: var(--cat-bar-ink);
    background: var(--cat-bar-soft);
}
.mika-cat-sort__option.is-active {
    color: var(--cat-bar-accent);
    font-weight: 600;
}

.mika-cat-bar__hint {
    margin: 0;
    padding: 0 16px 12px;
    color: var(--cat-bar-muted);
    font-size: 12px;
}
.mika-cat-bar__hint strong {
    color: var(--cat-bar-accent);
    font-weight: 600;
}

/* 暗色 */
html.dark-theme .mika-cat-bar,
.dark-theme .mika-cat-bar {
    --cat-bar-line: #ffffff1a;
    --cat-bar-bg: #ffffff0d;
    --cat-bar-muted: #a1a1aa;
    --cat-bar-ink: #ebf4f8;
    --cat-bar-soft: #ffffff12;
}
html.dark-theme .mika-cat-sort__menu,
.dark-theme .mika-cat-sort__menu {
    background: #3f3f3fc4;
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    border-color: #ffffff24;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
}
html.dark-theme .mika-cat-views__btn.is-active,
.dark-theme .mika-cat-views__btn.is-active {
    background: #ffffff1f;
    box-shadow: none;
}
html.dark-theme .mika-cat-search:focus-within,
html.dark-theme .mika-cat-search.has-value,
.dark-theme .mika-cat-search:focus-within,
.dark-theme .mika-cat-search.has-value {
    background: #ffffff0a;
}

/* 移动端：chips 横向滑动，工具行换行 */
@media (max-width: 720px) {
    .mika-cat-bar {
        margin: 14px 0 12px;
        border-radius: 12px;
    }
    .mika-cat-bar__rows {
        padding: 10px 12px;
    }
    .mika-cat-bar__chips,
    .mika-cat-bar__scheme .filter-items {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .mika-cat-bar__chips::-webkit-scrollbar,
    .mika-cat-bar__scheme .filter-items::-webkit-scrollbar {
        display: none;
    }
    /* 子分类可横向滑动提示：边缘渐隐 + 右侧箭头 */
    .mika-cat-bar__scroll.is-scrollable .mika-cat-bar__chips {
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
        mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
    }
    .mika-cat-bar__scroll.is-scrollable.is-scrolled .mika-cat-bar__chips {
        -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 48px), transparent);
        mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 48px), transparent);
    }
    .mika-cat-bar__scroll.is-scrollable.is-scroll-end .mika-cat-bar__chips {
        -webkit-mask-image: linear-gradient(to right, transparent, #000 28px);
        mask-image: linear-gradient(to right, transparent, #000 28px);
    }
    .mika-cat-bar__scroll.is-scrollable .mika-cat-bar__more {
        display: inline-flex;
    }
    .mika-cat-bar__scroll.is-scroll-end .mika-cat-bar__more {
        opacity: 0;
        pointer-events: none;
    }
    .mika-cat-bar__tools {
        flex-wrap: wrap;
        padding: 10px 12px;
    }
    .mika-cat-search {
        flex: 1 1 100%;
        max-width: none;
    }
    .mika-cat-bar__spacer {
        display: none;
    }
    .mika-cat-bar__end {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }
}
