

/* ========== Post Card ========== */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    
    overflow-anchor: none;
}

/* 卡片基础样式 - 参考typecho handsome的panel风格，保留毛玻璃质感 */
.post-card {
    background: var(--bg-card-solid);
    border-radius: var(--card-radius, var(--radius-lg));
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(40, 30, 20, 0.06), 0 0 0 1px rgba(40, 30, 20, 0.04);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
    position: relative;
}

.post-card-body {
    position: relative;
    z-index: 4;
    padding: 16px 22px 18px;
}

.post-card:hover {
    box-shadow: 0 8px 28px rgba(40, 30, 20, 0.1), 0 0 0 1px rgba(200, 132, 60, 0.12);
    transform: translateY(-3px);
}

/* 全卡可点击覆盖层 - z-index 降到 3，低于内容区 */
.post-card-full-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    text-decoration: none;
}

/* 提升交互元素层级 */
.post-card-body a,
.post-card-b-inner a,
.post-card-meta a,
.post-card-title a,
.post-card-img a,
.post-card-img-small a {
    position: relative;
    z-index: 10;
}

/* ========== 卡片元信息通用样式 ========== */
.post-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    line-height: 1.8;
    min-height: 22px;
}

.post-card-meta a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
    font-weight: 500;
}

.post-card-meta a:hover {
    color: var(--accent);
}

.meta-dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    background: var(--text-light);
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.5;
}

.pull-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-views,
.meta-comments {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.meta-views i,
.meta-comments i {
    font-size: 14px;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.post-card:hover .meta-views i,
.post-card:hover .meta-comments i {
    opacity: 1;
}

.top-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 25px;
    padding: 3px 8px;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 999px;
    color: var(--accent-dark);
    background: rgba(var(--accent-rgb), 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.top-badge i {
    font-size: 12px;
    opacity: 0.84;
}

.post-card-b .top-badge {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

body.dark-mode .top-badge {
    color: #a7dcff;
    border-color: rgba(120, 204, 255, 0.22);
    background: rgba(94, 175, 225, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.post-title .top-badge {
    margin-left: 10px;
    vertical-align: middle;
    transform: translateY(-0.12em);
}
.edit-link {
    color: var(--text-muted);
    font-size: 12px;
    transition: color var(--transition-fast);
}

.edit-link:hover {
    color: var(--accent);
}

/* 卡片标题 - 更贴近typecho handsome的简洁标题风格 */
.post-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.45;
    letter-spacing: 0;
    word-spacing: 0.04em;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-rendering: optimizeLegibility;
}

.post-card-title a {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.post-card-title a:hover {
    color: var(--accent);
}

/* 卡片摘要 */
.post-card-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.85;
    letter-spacing: 0.02em;
    word-spacing: 0.08em;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-rendering: optimizeLegibility;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 卡片底部元信息行 - 参考typecho的post-item-foot */
.post-card-foot {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.post-card-foot .foot-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-card-foot .foot-item i {
    font-size: 14px;
    opacity: 0.65;
}

.post-card-a {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: var(--bg-card-solid);
}

.post-card-img-small {
    width: 220px;
    min-width: 220px;
    padding: 16px;
    box-sizing: border-box;
    background: var(--bg-card-solid);
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card-img-small img {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.post-card-a:hover .post-card-img-small img {
    transform: scale(1.06);
}

.post-card-a .post-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 22px 16px;
    min-width: 0;
    min-height: 150px;
    gap: 8px;
}

.post-card-a .post-card-title {
    font-size: 1.15rem;
    margin-bottom: 2px;
    line-height: 1.45;
}

.post-card-a .post-card-desc {
    -webkit-line-clamp: 2;
    margin-bottom: 2px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* 小图卡片底部：分类与统计数据 */
.post-card-a .post-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.post-card-a .post-card-foot .foot-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
    overflow: hidden;
}

.post-card-a .post-card-foot .foot-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.post-card-a .post-card-foot .foot-dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    background: var(--text-light);
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.5;
}

.post-card-a .post-card-foot .foot-date {
    color: var(--text-muted);
    font-size: 12px;
    flex-shrink: 0;
}

.post-card-a .post-card-foot .foot-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 12px;
    transition: color var(--transition-fast);
    background: none;
    padding: 0;
    border-radius: 0;
}

.post-card-a .post-card-foot .foot-item i {
    font-size: 13px;
    opacity: 0.6;
}

.post-card-a .post-card-foot .foot-item:hover {
    color: var(--accent);
    background: none;
}

.post-card-b {
    min-height: 260px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
    border-radius: var(--card-radius, var(--radius-lg));
}

/* 底部渐变遮罩 */
.post-card-b::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(15, 10, 5, 0.85) 0%,
        rgba(15, 10, 5, 0.45) 35%,
        rgba(15, 10, 5, 0.15) 60%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
    border-radius: var(--card-radius, var(--radius-lg));
    transition: background 0.4s ease;
}

.post-card-b:hover::after {
    background: linear-gradient(
        to top,
        rgba(15, 10, 5, 0.9) 0%,
        rgba(15, 10, 5, 0.55) 35%,
        rgba(15, 10, 5, 0.2) 60%,
        transparent 100%
    );
}

.post-card-b:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(40, 30, 20, 0.18);
}

/* 光泽扫过效果 */
.post-card-b .picture-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.04) 40%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.04) 60%,
        transparent 100%
    );
    z-index: 2;
    pointer-events: none;
    transition: transform 0.6s ease;
    transform: skewX(-12deg);
}

.post-card-b:hover .picture-shimmer {
    transform: skewX(-12deg) translateX(300%);
}

/* 全图卡片内容区 - z-index 4 高于 full-link(3) */
.post-card-b-inner {
    position: relative;
    z-index: 4;
    padding: 48px 24px 24px;
    width: 100%;
    color: #fff;
}

.post-card-b-inner .post-card-meta {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.post-card-b-inner .post-card-meta a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.post-card-b-inner .post-card-meta a:hover {
    color: #fff;
}

.post-card-b-inner .meta-dot {
    background: rgba(255, 255, 255, 0.3);
}

.post-card-b-inner .post-card-title {
    font-size: 1.35rem;
    font-weight: 800;
}

.post-card-b-inner .post-card-title a {
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
    transition: color var(--transition-fast);
}

.post-card-b-inner .post-card-title a:hover {
    color: var(--accent);
}

.post-card-b-inner .post-card-desc {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13.5px;
    -webkit-line-clamp: 2;
}

/* 全图卡片底部元信息 */
.post-card-b-inner .post-card-foot {
    border-top-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
}

.post-card-c {
    border-radius: var(--card-radius, var(--radius-lg));
    background: var(--bg-card-solid);
    position: relative;
    overflow: hidden;
}

.post-card-c .post-card-body {
    padding: 18px 24px;
    position: relative;
    min-height: 100px;
}

.post-card-c .post-card-title {
    font-size: 1.15rem;
}

.post-card-c .post-card-desc {
    -webkit-line-clamp: 2;
}

/* ========== Empty State ========== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    background: var(--bg-card-solid);
    border-radius: var(--card-radius, var(--radius-lg));
    box-shadow: 0 1px 4px rgba(40, 30, 20, 0.06), 0 0 0 1px rgba(40, 30, 20, 0.04);
    position: relative;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.empty-icon {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.25;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.empty-text {
    font-size: 17px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Shiguang article cards */
.post-card {
    border-radius: var(--card-radius, 26px);
    box-shadow: var(--shadow-card);
}

.post-card:not(.post-card-b)::before {
    opacity: .7;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), #e58ae7);
}

.post-card:focus-within {
    border-color: rgba(var(--accent-rgb), .42);
    box-shadow: var(--shadow-lg);
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--accent-rgb), .20);
    box-shadow: var(--shadow-lg);
}

.post-card-a {
    min-height: 224px;
}

.post-card-a .post-card-body {
    padding: 24px 25px 21px;
}

.post-card-img-small {
    margin: 14px 0 14px 14px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(68,81,107,.11);
}

.post-card-title {
    font-size: clamp(20px, 2.2vw, 24px);
    font-weight: 800;
    line-height: 1.36;
    letter-spacing: .015em;
}

.post-card-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.82;
}

.post-card-foot {
    border-top-color: var(--border-light);
}

.post-card-b {
    border: 1px solid rgba(255,255,255,.65);
    border-radius: var(--card-radius, 26px);
    box-shadow: var(--shadow-card);
}

.post-card-b::after {
    background: linear-gradient(180deg, rgba(15,21,31,.03), rgba(15,21,31,.80));
}

.empty-state {
    border-radius: 28px;
}

.post-card:not(.post-card-b) {
    isolation: isolate;
    border: 1px solid var(--border-light);
}
.post-card:not(.post-card-b)::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: -72px;
    top: -84px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(var(--accent-rgb), .09), rgba(146,122,255,.035) 52%, transparent 72%);
}
.post-card:not(.post-card-b) .post-card-body { position: relative; z-index: 2; }
.post-card-c .post-card-body { padding: 24px 26px 22px; }
.post-card-c .post-card-title { font-size: clamp(20px, 2.2vw, 24px); }
.post-card-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.post-card-foot { flex-wrap: wrap; row-gap: 8px; }
.post-card-foot .foot-item { color: var(--text-muted); }

/* Real category color pills */
.post-card-sort-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 5px 11px;
    border: 1px solid var(--sort-pill-border);
    border-radius: 999px;
    color: var(--sort-pill-color);
    background: var(--sort-pill-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
    max-width: min(180px, 46vw);
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.post-card-sort-pill i {
    font-size: 13px;
    opacity: .84;
}

.post-card-sort-pill a {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit !important;
    font: inherit;
    text-decoration: none;
    position: relative;
    z-index: 10;
}

.post-card-sort-pill:hover {
    filter: saturate(1.08);
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(43, 87, 118, .12), inset 0 1px 0 rgba(255, 255, 255, .78);
}

.post-card-foot > .post-card-sort-pill {
    margin-right: auto;
}

.post-card-sort-pill.sort-color-1 {
    --sort-pill-bg: rgba(226, 245, 255, .94);
    --sort-pill-border: rgba(76, 186, 249, .22);
    --sort-pill-color: #08709a;
}

.post-card-sort-pill.sort-color-2 {
    --sort-pill-bg: rgba(242, 233, 255, .94);
    --sort-pill-border: rgba(168, 86, 223, .20);
    --sort-pill-color: #7040ad;
}

.post-card-sort-pill.sort-color-3 {
    --sort-pill-bg: rgba(228, 248, 238, .94);
    --sort-pill-border: rgba(54, 200, 123, .20);
    --sort-pill-color: #177451;
}

.post-card-sort-pill.sort-color-4 {
    --sort-pill-bg: rgba(255, 234, 240, .94);
    --sort-pill-border: rgba(239, 81, 119, .18);
    --sort-pill-color: #ad3e61;
}

.post-card-sort-pill.sort-color-5 {
    --sort-pill-bg: rgba(255, 241, 221, .94);
    --sort-pill-border: rgba(226, 154, 62, .22);
    --sort-pill-color: #965b10;
}

.post-card-sort-pill.sort-color-6 {
    --sort-pill-bg: rgba(224, 247, 247, .94);
    --sort-pill-border: rgba(42, 176, 183, .20);
    --sort-pill-color: #0b7479;
}

.post-card-b .post-card-sort-pill {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, .13), inset 0 1px 0 rgba(255, 255, 255, .78);
}

body.dark-mode .post-card-sort-pill {
    --sort-pill-bg: rgba(94, 175, 225, .16);
    --sort-pill-border: rgba(120, 204, 255, .22);
    --sort-pill-color: #a7dcff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

body.dark-mode .post-card-sort-pill.sort-color-2 {
    --sort-pill-bg: rgba(168, 108, 224, .16);
    --sort-pill-border: rgba(197, 148, 240, .22);
    --sort-pill-color: #d9b8f7;
}

body.dark-mode .post-card-sort-pill.sort-color-3 {
    --sort-pill-bg: rgba(63, 185, 127, .16);
    --sort-pill-border: rgba(87, 214, 154, .22);
    --sort-pill-color: #9be1bd;
}

body.dark-mode .post-card-sort-pill.sort-color-4 {
    --sort-pill-bg: rgba(224, 87, 126, .16);
    --sort-pill-border: rgba(244, 118, 151, .22);
    --sort-pill-color: #ffb4c8;
}

body.dark-mode .post-card-sort-pill.sort-color-5 {
    --sort-pill-bg: rgba(226, 154, 62, .16);
    --sort-pill-border: rgba(244, 183, 91, .22);
    --sort-pill-color: #ffd093;
}

body.dark-mode .post-card-sort-pill.sort-color-6 {
    --sort-pill-bg: rgba(42, 176, 183, .16);
    --sort-pill-border: rgba(78, 207, 213, .22);
    --sort-pill-color: #9fe1e4;
}

@media (max-width: 768px) {
    .post-card-sort-pill {
        min-height: 25px;
        padding: 4px 8px;
        gap: 4px;
        font-size: 10px;
    }

    .post-card-sort-pill i {
        font-size: 12px;
    }
}
