/* CardPro — 三栏布局 · 首页列表与设计稿对齐 */
:root {
    --primary: #4f46e5;
    --bg-page: #f1f5f9;
    --radius: 16px;
    --radius-sm: 12px;
    --font-sans: "DM Sans", "Noto Sans SC", system-ui, -apple-system, sans-serif;
    --card-border: rgba(148, 163, 184, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg-page);
    font-family: var(--font-sans);
    color: var(--text-main, #111827);
    -webkit-font-smoothing: antialiased;
}

#content {
    transition: opacity 0.16s ease;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.34);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top .bi {
    font-size: 1.45rem;
    line-height: 1;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.42);
}

#content.is-loading {
    opacity: 0.9;
}

.skip-to-main {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 10001;
}

.skip-to-main:focus {
    left: 12px;
    top: 12px;
    width: auto;
    height: auto;
    padding: 10px 16px;
    overflow: visible;
    background: var(--card);
    color: var(--primary);
    font-weight: 600;
    border-radius: 10px;
    box-shadow: var(--shadow, 0 4px 20px rgba(15, 23, 42, 0.12));
    outline: 2px solid var(--primary);
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

/* ========== 三栏网格 ========== */
#blog-root {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    width: min(1360px, calc(100vw - 24px)) !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 14px 10px 34px;
}

#blog-root > #blog-sidebar {
    flex: 0 0 220px;
}

#blog-root > #content.blog-main-column,
#blog-root > #content {
    flex: 1 1 auto;
    min-width: 0;
}

#blog-root > #blog-aside.blog-aside {
    flex: 0 0 250px;
}

.blog-main-column {
    min-width: 0;
}

/* 仅隐藏明确标记为重复的侧栏 */
.sidebar-duplicate {
    display: none !important;
}

/*
 * 左侧栏重复：插件常在 #blog-root 下再输出 aside.blog-sidebar（无 id 或重复 id），
 * Grid 会把它们占满第 1、2 列，中间文章区被挤没。只保留主题自带的 #blog-sidebar。
 */
#blog-root > aside.blog-sidebar:not(#blog-sidebar) {
    display: none !important;
}

/* 非法重复 id="blog-sidebar" 时的第二块 */
#blog-sidebar ~ #blog-sidebar {
    display: none !important;
}

/* 主题侧栏之后若还有 aside.blog-sidebar（插件追加在右侧之前） */
#blog-root #blog-sidebar ~ aside.blog-sidebar {
    display: none !important;
}

/* 再兜底：仅保留 #blog-root 下第一个左侧栏 */
#blog-root > aside.blog-sidebar:not(:first-of-type) {
    display: none !important;
}

/* 强制主内容列占据中间网格，防止被插件样式覆盖 */
#blog-root > #content {
    display: block !important;
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    overflow: visible !important;
    align-self: start !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 只让三大区块参与桌面网格，插件注入的其它同级块不参与布局 */
#blog-root > :not(#blog-sidebar):not(#content):not(#blog-aside) {
    display: none !important;
}

/* 若插件把重复左栏塞进主内容区，直接隐藏 */
#content > aside.blog-sidebar,
#content > .blog-sidebar {
    display: none !important;
}

/* 终极兜底：#blog-root 内除了 #blog-sidebar 之外的所有 .blog-sidebar 都隐藏 */
#blog-root .blog-sidebar:not(#blog-sidebar) {
    display: none !important;
}

/* 主内容本体强制占满中间列，防止被旧主题 float/width 规则挤压 */
#content > main,
#main-content {
    display: block !important;
    float: none !important;
    width: 100% !important;
    min-height: 1px;
    max-width: none !important;
    min-width: 0 !important;
}

/* 主列内部模块全部占满，防止出现窄列竖排 */
#content .post-list,
#content .cardpro-home,
#content .featured-section,
#content .feed-toolbar,
#content .article-feed,
#content .long-card {
    width: 100% !important;
    max-width: none !important;
}

/* ========== 左侧栏 ========== */
.blog-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-list {
    min-width: 0;
}

.cardpro-home {
    padding-bottom: 0.5rem;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--card-border, rgba(148, 163, 184, 0.35));
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.blog-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.header-title {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.header-subtitle {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
    line-height: 1.45;
}

.search-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--card-border, rgba(148, 163, 184, 0.45));
    border-radius: 999px;
    background: var(--card);
    color: var(--text-muted, #6b7280);
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    box-shadow: var(--shadow, 0 2px 8px rgba(15, 23, 42, 0.04));
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form {
    margin: 0;
}

.search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.84rem;
}

.search-input::placeholder {
    color: var(--text-muted, #9ca3af);
}

.search-submit {
    border: none;
    background: transparent;
    color: inherit;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-submit .bi {
    font-size: 1.1rem;
    opacity: 0.8;
}

.search-pill:hover {
    border-color: #c7d2fe;
    color: var(--text-main, #374151);
}

.search-pill .bi { font-size: 1rem; opacity: 0.85; }

.search-kbd {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--bg-body, #f3f4f6);
    border: 1px solid var(--border-color, #e5e7eb);
    font-size: 0.7rem;
    font-family: inherit;
    color: var(--text-muted, #9ca3af);
}

.sidebar-nav {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--card-border, rgba(148, 163, 184, 0.35));
    padding: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-main, #374151);
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-nav-link:hover {
    background: var(--bg-body, #f9fafb);
    color: var(--primary);
    transform: translateX(3px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.14);
}

.sidebar-nav-link.active {
    background: #f3f4f6;
    color: var(--text-main, #111827);
    font-weight: 600;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.theme-toggle {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    background: var(--card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow, 0 2px 8px rgba(15, 23, 42, 0.04));
}

.theme-btn {
    flex: 1;
    max-width: 44px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted, #6b7280);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.theme-btn:hover { color: var(--text-main, #111827); }
.theme-btn.active {
    background: var(--bg-body, #f3f4f6);
    color: var(--primary);
}

.sidebar-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.sidebar-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--card);
    color: var(--text-muted, #6b7280);
    text-decoration: none;
    box-shadow: var(--shadow, 0 2px 8px rgba(15, 23, 42, 0.04));
    border: 1px solid transparent;
    transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-social a:hover {
    color: var(--primary);
    transform: translateY(-2px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.16);
}

/* ========== 精选文章 ========== */
.featured-section { margin-bottom: 8px; }

.featured-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.section-heading {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main, #111827);
}

.featured-preview-link {
    font-size: 0.82rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.featured-preview-link:hover {
    text-decoration: underline;
}

.featured-hint {
    margin: 0 0 14px;
    font-size: 0.78rem;
    color: var(--text-muted, #9ca3af);
}

.featured-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.featured-scroll > * {
    flex-shrink: 0;
}

.featured-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.featured-card {
    position: relative;
    flex: 0 0 min(280px, 85vw);
    height: 168px;
    border-radius: var(--radius);
    border: 1px solid var(--card-border, rgba(148, 163, 184, 0.25));
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.45s ease, filter 0.35s ease;
}

.featured-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 45%, transparent 100%);
    pointer-events: none;
    transition: background 0.28s ease;
}

.featured-info {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
}

.featured-info h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
    transform: translateY(0);
    transition: transform 0.25s ease, text-shadow 0.25s ease;
}

.pin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    box-shadow: 0 6px 14px rgba(239, 68, 68, 0.35);
}

.pin-badge i {
    font-size: 0.72rem;
    line-height: 1;
}

.pin-badge--list {
    margin-left: 8px;
    transform: translateY(-1px);
    vertical-align: middle;
}

.featured-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.36);
    box-shadow: 0 14px 28px -14px rgba(15, 23, 42, 0.45);
}

.featured-card:hover img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.featured-card:hover .featured-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.28) 50%, transparent 100%);
}

.featured-card:hover .featured-info h3 {
    transform: translateY(-1px);
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

/* ========== 工具条（全部分类 + 标签 + 创建日期）========== */
.feed-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin: 20px 0 18px;
}

.feed-toolbar-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.feed-toolbar-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main, #111827);
}

.feed-sort-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.feed-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--text-muted, #6b7280);
    background: var(--card);
    border: 1px solid var(--border-color, #e5e7eb);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.feed-tag:hover {
    color: var(--primary);
    border-color: #c7d2fe;
}

.feed-tag.is-active {
    color: var(--primary);
    font-weight: 600;
    background: rgba(79, 70, 229, 0.08);
    border-color: transparent;
}

.feed-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    text-decoration: none;
    border: 1px solid transparent;
}

.feed-pill--active {
    background: var(--card);
    color: var(--text-main, #111827);
    font-weight: 600;
    box-shadow: var(--shadow, 0 2px 8px rgba(15, 23, 42, 0.06));
}

.feed-pill--muted {
    color: var(--text-muted, #9ca3af);
    cursor: default;
}

/* ========== 文章列表卡片 ========== */
.article-feed { display: flex; flex-direction: column; gap: 14px; }

.long-card {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    min-height: 0;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--card-border, rgba(148, 163, 184, 0.35));
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.24s ease, transform 0.24s ease, border-color 0.24s ease;
}

.long-card:hover {
    border-color: rgba(79, 70, 229, 0.36);
    box-shadow: 0 12px 28px -14px rgba(15, 23, 42, 0.24);
    transform: translateY(-3px);
}

.long-card--text {
    flex-direction: column;
    min-height: auto;
}

.long-card--text .card-body { padding: 22px 24px; }

.card-img {
    position: relative;
    width: 33%;
    min-width: 170px;
    max-width: 290px;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 118px;
    padding: 0;
    overflow: hidden;
}

.card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-mask-image: none;
    mask-image: none;
    border-radius: 26px var(--radius) var(--radius) 26px;
    transform: scale(1);
    transition: transform 0.4s ease, filter 0.3s ease;
}

.card-img::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 34px;
    pointer-events: none;
    background: linear-gradient(to right, var(--card) 0%, rgba(255, 255, 255, 0) 88%);
}

.long-card:not(.long-card--text) .card-body {
    position: relative;
}

.long-card:not(.long-card--text) .card-body::after {
    content: "";
    position: absolute;
    right: -1px;
    top: 0;
    bottom: 0;
    width: 46px;
    pointer-events: none;
    background: linear-gradient(to right, var(--card) 0%, rgba(255, 255, 255, 0) 100%);
}

.long-card:hover .card-img img {
    transform: scale(1.07);
    filter: saturate(1.06) contrast(1.02);
}

.long-card:hover .card-title {
    color: var(--primary);
}

.card-body {
    flex: 1;
    min-width: 0;
    padding: 12px 4px 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
}

.long-card:not(.long-card--text) .card-body {
    padding-right: 2px;
}

.card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.35;
    color: var(--text-main, #111827);
}

.card-excerpt {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted, #6b7280);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 2px;
    font-size: 0.8rem;
    color: var(--text-muted, #9ca3af);
}

.card-meta-dates {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.card-meta-dates time {
    font-size: 0.8rem;
    color: var(--text-muted, #9ca3af);
}

.card-meta-updated {
    color: var(--text-muted, #9ca3af);
    opacity: 0.95;
}

.card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-meta-sort { color: var(--primary); font-weight: 600; }

.card-meta-wc {
    font-size: 0.8rem;
    color: var(--text-muted, #9ca3af);
}

/* ========== 分页 ========== */
.pagenavi-wrap,
#pagenavi {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 16px;
    padding: 0;
    list-style: none;
}

#pagenavi a,
#pagenavi span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--card);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-muted, #6b7280);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
    transition: background 0.15s, color 0.15s;
}

#pagenavi a:hover {
    background: var(--primary);
    color: #fff;
}

#pagenavi span.current,
#pagenavi .current {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

.site-footer {
    text-align: center;
    padding: 36px 0 8px;
    margin-top: 28px;
    color: var(--text-muted, #9ca3af);
    font-size: 0.88rem;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

/* ========== 右侧小工具 ========== */
#blog-aside.blog-aside {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.widget-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--card-border, rgba(148, 163, 184, 0.35));
    padding: 18px 18px 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.widget-title {
    margin: 0 0 14px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main, #111827);
}

.widget-stat-list,
.widget-tech-list {
    list-style: none !important;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}

.widget-card .widget-stat-list,
.widget-card .widget-tech-list {
    list-style: none !important;
}

.widget-stat-list li,
.widget-tech-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color, #e5e7eb);
}

.widget-stat-list li:last-child,
.widget-tech-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-label,
.widget-k {
    color: var(--text-muted, #9ca3af);
}

.widget-value,
.widget-v {
    font-weight: 600;
    color: var(--text-main, #374151);
    text-align: right;
}

.widget-banner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    text-decoration: none;
    color: var(--text-main, #312e81);
    box-shadow: var(--shadow, 0 4px 20px rgba(79, 70, 229, 0.12));
    transition: transform 0.2s;
}

.widget-banner:hover {
    transform: translateY(-2px);
}

.widget-banner-title {
    font-weight: 700;
    font-size: 1rem;
}

.widget-banner-desc {
    font-size: 0.82rem;
    opacity: 0.85;
}

.widget-card--ad {
    padding: 16px;
}

.widget-ad-body {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.widget-ad-body:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.widget-ad-body img,
.widget-ad-body iframe {
    max-width: 100%;
    height: auto;
    border: 0;
    border-radius: 10px;
    display: block;
}

.widget-ad-placeholder {
    padding: 14px;
    border-radius: 10px;
    border: 1px dashed var(--border-color, #e5e7eb);
    color: var(--text-muted, #9ca3af);
    font-size: 0.85rem;
    text-align: center;
}

.widget-card--native > *:first-child {
    margin-top: 0;
}

.widget-card--native > *:last-child {
    margin-bottom: 0;
}

.widget-card--native {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.widget-card--native ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.widget-card--native li + li {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--border-color, #e5e7eb);
}

.native-widget-block + .native-widget-block {
    margin-top: 0;
}

.native-widget-content {
    font-size: 0.86rem;
    color: var(--text-main, #374151);
    line-height: 1.6;
}

.widget-card--native .native-widget-block {
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--card-border, rgba(148, 163, 184, 0.35));
    border-radius: 14px;
    padding: 12px 12px 11px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.widget-card--native .native-widget-block:hover {
    transform: translateY(-1px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.widget-card--native .native-widget-block .widget-title {
    margin: 0 0 9px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main, #111827);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.widget-card--native .native-widget-block .widget-title::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.native-widget-content ul,
.native-widget-content ol {
    margin: 0;
    padding-left: 18px;
}

.native-widget-content li {
    line-height: 1.6;
}

.native-widget-content li + li {
    margin-top: 5px;
}

.native-widget-content a {
    color: var(--text-main, #1f2937);
    text-decoration: none;
    border-bottom: 1px dashed rgba(79, 70, 229, 0.25);
    transition: color 0.18s ease, border-color 0.18s ease;
}

.native-widget-content a:hover {
    color: var(--primary);
    border-bottom-color: rgba(79, 70, 229, 0.7);
}

.native-widget-content table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.82rem;
}

.native-widget-content table td,
.native-widget-content table th {
    padding: 6px 4px;
    text-align: center;
}

.native-widget-content table tr + tr td,
.native-widget-content table tr + tr th {
    border-top: 1px dashed var(--border-color, #e5e7eb);
}

.widget-card--native .widget-tag-fallback a {
    border-bottom: 0;
}

.widget-card--native .widget-sort-fallback,
.widget-card--native .widget-newcom-fallback,
.widget-card--native .widget-newlog-fallback,
.widget-card--native .widget-twit-fallback {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget-profile-fallback img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-bottom: 8px;
    border: 2px solid rgba(79, 70, 229, 0.24);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.18);
}

.widget-profile-fallback p {
    margin: 4px 0;
}

.widget-profile-fallback {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.widget-profile-fallback .widget-profile-name {
    margin: 2px 0 4px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.25;
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 48%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.native-widget-block--blogger .native-widget-content,
.native-widget-block--profile .native-widget-content {
    text-align: left;
    display: block;
}

.native-widget-block--blogger .native-widget-content > a:first-child,
.native-widget-block--profile .native-widget-content > a:first-child,
.native-widget-block--blogger .native-widget-content > b:first-child,
.native-widget-block--profile .native-widget-content > b:first-child,
.native-widget-block--blogger .native-widget-content strong:first-child,
.native-widget-block--profile .native-widget-content strong:first-child {
    display: inline-block;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #4f46e5 !important;
}

@supports (-webkit-background-clip: text) {
    .native-widget-block--blogger .native-widget-content > a:first-child,
    .native-widget-block--profile .native-widget-content > a:first-child,
    .native-widget-block--blogger .native-widget-content > b:first-child,
    .native-widget-block--profile .native-widget-content > b:first-child,
    .native-widget-block--blogger .native-widget-content strong:first-child,
    .native-widget-block--profile .native-widget-content strong:first-child {
        background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 48%, #06b6d4 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent !important;
    }
}

.native-widget-block--blogger .native-widget-content img,
.native-widget-block--profile .native-widget-content img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(79, 70, 229, 0.24);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.18);
    display: block;
    margin: 0 0 8px;
}

.native-widget-block--blogger .native-widget-content > *:not(img),
.native-widget-block--profile .native-widget-content > *:not(img) {
    display: block;
    width: 100%;
}

.native-widget-block--blogger .native-widget-content p,
.native-widget-block--profile .native-widget-content p {
    margin: 4px 0 0;
    word-break: break-word;
}

.widget-profile-fallback .widget-profile-meta {
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
}

.widget-profile-fallback .widget-profile-desc {
    font-size: 0.83rem;
    color: var(--text-muted, #6b7280);
    line-height: 1.55;
    margin-top: 2px;
    max-width: 100%;
    word-break: break-word;
}

.widget-calendar-fallback a {
    color: var(--primary);
    text-decoration: none;
}

.widget-tag-fallback a {
    display: inline-block;
    margin: 4px 6px 0 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.82rem;
}

.widget-tag-fallback a:hover {
    background: var(--primary);
    color: #fff;
}

.widget-twit-fallback {
    margin: 0;
    padding-left: 18px;
}

.widget-twit-fallback li + li {
    margin-top: 8px;
}

/* ========== 内页通栏（文章 / 页面 / 归档 / 标签 / 微语 / 404）与纸鹿站对齐 ========== */
.cardpro-inner {
    background: var(--card);
    border: 1px solid var(--card-border, rgba(148, 163, 184, 0.35));
    border-radius: var(--radius, 16px);
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cardpro-inner--narrow {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cardpro-page-head {
    margin-bottom: 1.75rem;
    text-align: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.cardpro-page-title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main, #111827);
}

.cardpro-page-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted, #6b7280);
}

.article-detail-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.article-detail-title {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--text-main, #111827);
}

.article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted, #6b7280);
}

.article-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.article-meta-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.article-meta-link:hover {
    text-decoration: underline;
}

.article-content,
#emlog-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-main, #374151);
    word-break: break-word;
}

.article-content > *:first-child,
#emlog-content > *:first-child {
    margin-top: 0;
}

.article-content p,
#emlog-content p {
    margin: 1em 0;
}

.article-content h2,
#emlog-content h2,
.article-content h3,
#emlog-content h3 {
    margin: 1.75em 0 0.65em;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main, #111827);
}

.article-content h2,
#emlog-content h2 {
    font-size: 1.35rem;
}

.article-content h3,
#emlog-content h3 {
    font-size: 1.15rem;
}

.article-content img,
#emlog-content img,
.article-content video,
#emlog-content video {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.article-content pre,
#emlog-content pre,
.article-content code,
#emlog-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
}

.article-content pre,
#emlog-content pre {
    padding: 1rem 1.15rem;
    border-radius: 10px;
    overflow-x: auto;
    background: var(--bg-body, #f3f4f6);
    border: 1px solid var(--border-color, #e5e7eb);
}

.article-content blockquote,
#emlog-content blockquote {
    margin: 1.25em 0;
    padding: 0.5em 0 0.5em 1rem;
    border-left: 4px solid var(--primary);
    color: var(--text-muted, #6b7280);
    background: rgba(79, 70, 229, 0.04);
    border-radius: 0 8px 8px 0;
}

.article-content a,
#emlog-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover,
#emlog-content a:hover {
    opacity: 0.9;
}

.article-footer-tags {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.article-footer-tags .tag-item {
    display: inline-flex;
    align-items: center;
    margin: 0 8px 8px 0;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}

.article-footer-tags .tag-item:hover {
    background: rgba(79, 70, 229, 0.18);
    transform: translateY(-1px);
}

.article-copyright-card {
    margin-top: 1rem;
    padding: 14px 16px 12px;
    border-radius: 14px;
    border: 1px solid rgba(79, 70, 229, 0.22);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(6, 182, 212, 0.07) 100%);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.08);
    color: var(--text-muted, #6b7280);
    font-size: 0.86rem;
    line-height: 1.65;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.article-copyright-main {
    flex: 1 1 auto;
    min-width: 0;
}

.article-copyright-card::after {
    content: "";
    position: absolute;
    right: -24px;
    top: -24px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.22) 0%, rgba(79, 70, 229, 0) 72%);
    pointer-events: none;
}

.article-copyright-title {
    margin: 0 0 10px;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-main, #111827);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-copyright-title::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.16);
}

.article-copyright-card p {
    margin: 4px 0;
}

.article-copyright-link {
    display: inline-flex;
    max-width: 100%;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(79, 70, 229, 0.25);
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    transition: all 0.18s ease;
}

.article-copyright-link:hover {
    border-color: rgba(79, 70, 229, 0.42);
    background: rgba(79, 70, 229, 0.14);
    transform: translateY(-1px);
}

.article-share-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-share-actions--icon {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-top: 0;
    margin-left: auto;
    align-self: flex-end;
    z-index: 2;
    flex-shrink: 0;
}

.article-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(79, 70, 229, 0.22);
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}

.article-share-btn--icon {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.article-share-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(79, 70, 229, 0.45);
    background: rgba(79, 70, 229, 0.1);
}

.article-share-btn--icon i {
    line-height: 1;
}

.article-share-btn--icon.is-copied {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.copy-toast-tip {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -120%);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    background: rgba(17, 24, 39, 0.9);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.24);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 10002;
    transition: opacity 0.16s ease, transform 0.16s ease;
    white-space: nowrap;
}

.copy-toast-tip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -140%);
}

@media (max-width: 768px) {
    .article-copyright-card {
        display: block;
    }
    .article-share-actions--icon {
        position: static;
        flex-direction: row;
        justify-content: flex-start;
        margin-top: 10px;
        margin-left: 0;
    }
}

.neighbor-nav {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-top: 2rem;
}

.neighbor-link {
    flex: 1;
    min-width: 0;
    padding: 16px 18px;
    background: var(--bg-body, #f9fafb);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color, #e5e7eb);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.neighbor-link:hover {
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.neighbor-link--next {
    text-align: right;
}

.neighbor-label {
    font-size: 0.75rem;
    opacity: 0.65;
    margin-bottom: 6px;
}

.neighbor-title {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comments-section {
    margin-top: 0;
}

.comment-place {
    margin-top: 0;
}

.comment-form-title {
    margin: 0 0 1.25rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main, #111827);
}

.comment-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.comment-input,
.comment-textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color, #e5e7eb);
    background: var(--bg-body, #f9fafb);
    color: var(--text-main, #111827);
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.comment-input:hover,
.comment-textarea:hover {
    border-color: rgba(79, 70, 229, 0.28);
}

.comment-input:focus,
.comment-textarea:focus {
    outline: none;
    border-color: rgba(79, 70, 229, 0.58);
    background: var(--card);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.16);
}

.comment-input--half {
    flex: 1;
    min-width: 140px;
}

.comment-textarea {
    min-height: 120px;
    resize: vertical;
    margin-bottom: 15px;
}

.comment-reply-target {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(79, 70, 229, 0.12);
}

.comment-emoji-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: -2px 0 12px;
}

.comment-emoji-btn {
    border: 1px solid var(--border-color, #e5e7eb);
    background: var(--card);
    border-radius: 10px;
    padding: 4px 8px;
    line-height: 1;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.comment-emoji-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(79, 70, 229, 0.45);
}

.comment-form-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-comment-submit {
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.24);
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-comment-submit:hover {
    opacity: 0.96;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.34);
}

.link-cancel-reply {
    color: #ef4444;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.link-cancel-reply:hover {
    color: #dc2626;
    text-decoration: underline;
}

.comment-list {
    margin-top: 2.5rem;
}

.comment-list-title {
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color, #e5e7eb);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main, #111827);
}

.comment-item {
    padding: 12px 14px 10px !important;
    background: rgba(15, 23, 42, 0.02);
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--card-border, rgba(148, 163, 184, 0.35));
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    min-height: 0;
    height: auto;
    display: block !important;
}

.comment-item.comment-card--expanded {
    padding: 14px 16px 12px !important;
}

.comment-item:hover {
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

html.dark .comment-item {
    background: rgba(255, 255, 255, 0.03);
}

.comment-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    gap: 12px;
    flex-wrap: wrap;
}

.comment-item-author {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main, #111827);
}

.comment-author-link {
    color: inherit;
    text-decoration: none;
}

.comment-author-link:hover {
    color: var(--primary);
}

.comment-item-date {
    font-size: 0.85rem;
    color: var(--text-muted, #6b7280);
}

.comment-item-body {
    line-height: 1.65;
    color: var(--text-main, #374151);
    white-space: normal !important;
    word-break: break-word;
    margin: 0 !important;
}

.comment-item-body > * {
    margin-top: 0 !important;
    margin-bottom: 0.35rem !important;
}

.comment-item-body p:empty {
    display: none;
}

.comment-item-body > :last-child {
    margin-bottom: 0 !important;
}

.comment-item-actions {
    text-align: right;
    margin-top: 6px !important;
    display: block !important;
}

.btn-comment-reply {
    display: inline-block;
    font-size: 0.85rem;
    padding: 6px 15px;
    border-radius: 20px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-comment-reply:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(79, 70, 229, 0.28);
}

.btn-comment-reply--sm {
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 500;
}

.comment-child {
    margin-left: 12px;
    margin-top: 8px !important;
    padding: 8px 10px !important;
    background: var(--card);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow, 0 2px 8px rgba(15, 23, 42, 0.05));
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    min-height: 0;
    height: auto;
    display: block !important;
}

.comment-child.comment-card--expanded {
    padding: 10px 12px !important;
}

.comment-child:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.sidebar-nav-link:focus-visible,
.sidebar-social a:focus-visible,
.btn-comment-submit:focus-visible,
.btn-comment-reply:focus-visible,
.comment-emoji-btn:focus-visible,
.link-cancel-reply:focus-visible,
a.widget-ad-body:focus-visible {
    outline: 2px solid rgba(79, 70, 229, 0.55);
    outline-offset: 2px;
}

.reveal-item {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.36s ease, transform 0.36s ease;
    will-change: opacity, transform;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 640px) {
    .comment-child {
        margin-left: 20px;
    }
}

.single-page .cardpro-page-head {
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
}

.single-page-title {
    margin: 0;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.02em;
    color: var(--text-main, #111827);
}

.archive-list {
    padding: 0;
    max-width: 640px;
    margin: 0 auto;
}

.archive-row-title {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.archive-row {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--border-color, #e5e7eb);
}

.archive-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.archive-row a {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.archive-row a:hover {
    opacity: 0.88;
}

.archive-count {
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(79, 70, 229, 0.1);
    padding: 4px 12px;
    border-radius: 999px;
    color: var(--primary);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 8px 0 16px;
}

.tags-cloud a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.15s, background 0.15s;
    border: 1px solid transparent;
}

.tags-cloud a:hover {
    background: rgba(79, 70, 229, 0.16);
    transform: translateY(-2px);
}

.tags-cloud .tag-count {
    font-size: 0.8em;
    opacity: 0.75;
    margin-left: 4px;
}

.twits-line {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--border-color, #e5e7eb);
    margin-left: 8px;
}

.twit-item {
    position: relative;
    margin-bottom: 24px;
}

.twit-dot {
    position: absolute;
    left: -26px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--card);
    box-sizing: content-box;
}

.twit-card {
    background: var(--bg-body, #f9fafb);
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid var(--card-border, rgba(148, 163, 184, 0.35));
}

.twit-head {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.twit-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.twit-name {
    font-weight: 600;
    color: var(--text-main, #111827);
}

.twit-time {
    font-size: 0.82rem;
    color: var(--text-muted, #6b7280);
    margin-left: auto;
}

.twit-body {
    line-height: 1.7;
    color: var(--text-main, #374151);
}

.cardpro-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.cardpro-pagination .pagenavi-wrap,
.cardpro-pagination #pagenavi {
    margin: 0;
}

.cardpro-error {
    text-align: center;
    padding: 2rem 1rem 3rem;
}

.cardpro-error-code {
    font-size: clamp(3.5rem, 12vw, 5rem);
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    line-height: 1;
    letter-spacing: -0.04em;
}

.cardpro-error-msg {
    font-size: 1.05rem;
    color: var(--text-muted, #6b7280);
    margin: 1.25rem 0 2rem;
    line-height: 1.6;
}

.btn-cardpro-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff !important;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s, transform 0.15s;
}

.btn-cardpro-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* ========== 响应式 ========== */
@media (max-width: 1280px) {
    #blog-root {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: auto !important;
        max-width: 100% !important;
        gap: 16px !important;
        padding: 16px 12px 28px !important;
    }
    #blog-root > #blog-sidebar {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
    }
    #blog-root > #content.blog-main-column {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
    }
    #blog-root > #blog-aside.blog-aside {
        grid-column: 1 / -1;
        grid-row: 3;
        position: static;
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 18px;
    }
    #blog-root > #content,
    #content > main,
    #main-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .blog-sidebar {
        position: static;
    }
    .long-card {
        flex-direction: column !important;
        min-height: auto;
    }
    .card-img {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        max-height: 240px !important;
        padding: 0 !important;
    }
    .card-img::before {
        display: none !important;
    }
    .card-img img {
        -webkit-mask-image: none !important;
        mask-image: none !important;
        border-radius: 0 !important;
    }
    .card-body {
        padding: 16px 16px 18px !important;
    }
}

@media (max-width: 768px) {
    #blog-root {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: auto !important;
        max-width: 100% !important;
        padding: 12px 10px 22px !important;
        gap: 12px !important;
    }
    #blog-root > #blog-sidebar,
    #blog-root > #content.blog-main-column {
        grid-column: 1 / -1 !important;
        grid-row: auto;
    }
    /* 移动端聚焦文章内容：隐藏右侧小组件区 */
    #blog-root > #blog-aside.blog-aside {
        display: none !important;
    }
    #blog-root > #content,
    #content > main,
    #main-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    #blog-root > #content.blog-main-column {
        grid-row: 2 !important;
    }
    .blog-sidebar {
        position: static;
    }
    .article-feed {
        gap: 10px;
    }
    .card-img {
        width: 100%;
        min-width: 0;
        max-width: none;
        max-height: 176px;
        padding: 0;
    }
    .long-card {
        flex-direction: column;
        min-height: auto;
    }
    .long-card .card-img img {
        -webkit-mask-image: none !important;
        mask-image: none !important;
        border-radius: 0 !important;
    }
    .card-body {
        padding: 12px 12px 14px;
    }
    .card-title {
        font-size: 1rem;
    }
    .card-excerpt {
        font-size: 0.86rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}
