/* ==========================================================================
   Modern Clean Blog Stylesheet - 2026 Enhanced Edition
   ========================================================================== */

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #3b82f6 50%, #06b6d4 100%);
    --accent: #06b6d4;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-focus: #4f46e5;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 14px 28px -6px rgba(15, 23, 42, 0.09), 0 6px 12px -4px rgba(15, 23, 42, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 布局容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 - 高级微透明毛玻璃质感 */
.navbar {
    background: var(--nav-bg, rgba(255, 255, 255, 0.94));
    backdrop-filter: var(--nav-blur, blur(12px));
    -webkit-backdrop-filter: var(--nav-blur, blur(12px));
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: var(--nav-position, sticky);
    top: 0;
    z-index: 100;
    box-shadow: var(--nav-shadow, 0 1px 6px rgba(15, 23, 42, 0.04));
    transition: background .25s ease, box-shadow .25s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    height: 64px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 24px;
    box-sizing: border-box;
}

/* 顶部菜单栏 Logo 专属框架：以菜单栏最左侧至第一个菜单项为基准边界，各菜单项位置保持锁定不变 */
.nav-brand-zone {
    display: flex;
    align-items: center;
    flex: 1;
    height: 100%;
    box-sizing: border-box;
    transition: all .25s ease;
    min-width: 0;
}

.nav-brand-zone.logo-align-left {
    justify-content: flex-start;
}

.nav-brand-zone.logo-align-center {
    justify-content: center;
}

.nav-brand-zone.logo-align-right {
    justify-content: flex-end;
    padding-right: 24px;
}

.nav-brand {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
}

.nav-brand-icon {
    font-size: 22px;
    color: #f59e0b;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.4));
}

.nav-brand-logo {
    height: 36px;
    max-width: 160px;
    object-fit: contain;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.06));
}

.nav-brand-text {
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-brand.logo-mode-image .nav-brand-text {
    display: none !important;
}

.nav-brand.logo-mode-text .nav-brand-logo,
.nav-brand.logo-mode-text .nav-brand-icon {
    display: none !important;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0 20px;
    flex: 0 0 auto;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.nav-link {
    display: inline-flex !important;
    align-items: center;
    gap: var(--nav-icon-gap, 6px);
    color: var(--text-muted);
    font-weight: 500;
    font-size: var(--nav-font-size, 15px);
    padding: 8px 4px;
    position: relative;
    text-decoration: none;
    transition: color 0.2s ease, font-size 0.2s ease, gap 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 2px;
    right: 2px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.nav-menu-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-item-icon-img {
    display: inline-block !important;
    vertical-align: middle;
    flex-shrink: 0;
    margin: 0 2px 0 0 !important;
}

.nav-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    flex-shrink: 0;
    line-height: 1;
    margin: 0 2px 0 0 !important;
}

.has-dropdown > .nav-link {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

.nav-dropdown-caret {
    font-size: 11px;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
    margin-left: 2px;
}

.has-dropdown:hover .nav-dropdown-caret {
    transform: rotate(180deg);
    color: var(--primary);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 175px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    padding: 6px 0;
    list-style: none;
    margin: 0;
    display: none;
    z-index: 1000;
    animation: navDropFade 0.2s ease;
}

@keyframes navDropFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.has-dropdown:hover > .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    margin: 0;
    position: relative;
}

.nav-dropdown-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 18px;
    font-size: 14px;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.nav-dropdown-item a:hover {
    background: #f1f5f9;
    color: var(--primary);
    padding-left: 20px;
}

.nav-sub-caret {
    font-size: 10px;
    color: #94a3b8;
    margin-left: 8px;
    transition: transform 0.15s ease, color 0.15s ease;
}

.nav-dropdown-item:hover > a > .nav-sub-caret {
    color: var(--primary);
    transform: translateX(2px);
}

/* 多级子菜单 (2/3/4/5 级折叠向右弹出) */
.nav-sub-dropdown-menu {
    position: absolute;
    top: -4px;
    left: calc(100% - 2px);
    min-width: 175px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    padding: 6px 0;
    list-style: none;
    margin: 0;
    display: none;
    z-index: 1010;
    animation: navSubDropFade 0.18s ease;
}

@keyframes navSubDropFade {
    from { opacity: 0; transform: translateX(-4px); }
    to { opacity: 1; transform: translateX(0); }
}

.has-sub-dropdown:hover > .nav-sub-dropdown-menu {
    display: block;
}

.nav-dropdown-icon {
    font-size: 14px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 右侧：百度网盘 VIP 用户触发区域 */
.nav-user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-user-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 16px;
}

.nav-user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    user-select: none;
    transition: all 0.2s ease;
    outline: none;
}

.nav-user-trigger:hover,
.nav-user-dropdown:hover .nav-user-trigger,
.nav-user-dropdown.is-open .nav-user-trigger {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.nav-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: block;
}

.nav-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 导航栏 VIP / 会员状态 胶囊徽章 (正体无倾斜) */
.nav-vip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    font-style: normal !important;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    line-height: 1.3;
    vertical-align: middle;
    flex-shrink: 0;
    text-decoration: none !important;
    transform: none !important;
}

.nav-user-arrow {
    color: #94a3b8;
    font-size: 10px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    flex-shrink: 0;
}

.nav-user-dropdown:hover .nav-user-arrow,
.nav-user-dropdown.is-open .nav-user-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.nav-header-separator {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 300;
    user-select: none;
    margin: 0 4px;
}

.nav-download-link {
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
    cursor: pointer;
    white-space: nowrap;
}

.nav-download-link:hover {
    color: var(--primary);
    background: #f1f5f9;
}

/* 下拉卡片浮层 (百度网盘会员同款设计) */
.nav-vip-card {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 310px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(15, 12, 28, 0.18), 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    display: none !important;
    z-index: 1000;
    cursor: default;
    overflow: hidden;
}

.nav-user-dropdown:hover .nav-vip-card,
.nav-user-dropdown.is-open .nav-vip-card {
    display: block !important;
    animation: vipCardSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vipCardSlideDown {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-arrow-tip {
    position: absolute;
    top: 0;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #e75a52;
    z-index: 2;
}

.card-header-banner {
    background: radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.26) 0%, transparent 45%),
                linear-gradient(135deg, #e85950 0%, #fa7862 50%, #ff8f76 100%);
    padding: 18px 18px 20px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    position: relative;
}

.card-avatar-wrap {
    flex-shrink: 0;
}

.card-header-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.6);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
    display: block;
    background: #ffffff;
}

.card-header-info {
    flex: 1;
    min-width: 0;
}

.card-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.card-username {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 125px;
    letter-spacing: 0.2px;
}

.card-user-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-role-pill {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.card-privilege-section {
    background: #ffffff;
    padding: 14px 18px 12px 18px;
    border-bottom: 1px solid #f1f5f9;
}

.privilege-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.privilege-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: 0.2px;
}

.btn-renew {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 14px;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
    transition: transform 0.15s, opacity 0.15s;
    cursor: pointer;
}

.btn-renew:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    color: #ffffff;
}

.privilege-icon-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
}

.privilege-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #c58f4a;
    transition: transform 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.privilege-icon-item:hover {
    transform: translateY(-2px);
    color: #d97706;
}

.privilege-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fffbf5;
    border: 1px solid #fde68a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c58f4a;
    transition: all 0.2s ease;
}

.privilege-icon-item:hover .privilege-icon-circle {
    background: #fef3c7;
    border-color: #f59e0b;
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.25);
    color: #b45309;
}

.card-menu-list {
    padding: 8px 10px 12px 10px;
    background: #ffffff;
}

.card-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 14px;
    color: #334155;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}

.card-menu-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

.menu-left-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-menu-title {
    font-weight: 500;
}

.pill-free {
    background: #e0f2fe;
    color: #0284c7;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
}

.card-menu-hint {
    font-size: 12px;
    color: #94a3b8;
}

.pill-admin {
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
}

.card-menu-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 6px 8px;
}

.card-menu-item.logout-item {
    color: #64748b;
}

.card-menu-item.logout-item:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* ==========================================================================
   首页 Spotlight 欢迎大横幅
   ========================================================================== */
.hero-banner {
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
                linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 44px 36px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-badge {
    display: inline-block;
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.25;
}

.hero-subtitle {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 18px;
    line-height: 1.6;
}

.hero-quick-cats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}

.quick-label {
    color: #94a3b8;
    font-weight: 500;
}

.hero-cat-pill {
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.hero-cat-pill:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: #eef2ff;
    transform: translateY(-1px);
}

/* 筛选提示条 */
.filter-notice-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.highlight-query {
    color: var(--primary);
    font-weight: 700;
}

.count-tag {
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 8px;
}

.btn-clear-filter {
    font-size: 13px;
    color: #64748b;
}

.btn-clear-filter:hover {
    color: #ef4444;
}

.filter-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.filter-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* 空状态卡片 */
.empty-state-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 60px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state-card h3 {
    font-size: 18px;
    color: #334155;
    margin-bottom: 8px;
}

.empty-state-card p {
    font-size: 14px;
    color: #94a3b8;
}

/* ==========================================================================
   文章列表项卡片 (现代化高质感)
   ========================================================================== */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.post-card-modern {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.post-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.post-cover-link {
    display: block;
    overflow: hidden;
    height: 220px;
    position: relative;
    background: #f1f5f9;
}

.post-card-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card-modern:hover .post-card-cover-img {
    transform: scale(1.03);
}

.post-card-body {
    padding: 24px;
}

.post-card-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.category-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #e0e7ff;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
    transition: background 0.15s, border-color 0.15s;
    vertical-align: middle;
}

.category-badge-pill a.cat-trail-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color 0.15s, opacity 0.15s;
}

.category-badge-pill a.cat-trail-link:hover {
    color: #312e81;
    text-decoration: underline;
}

.category-badge-pill .cat-trail-sep {
    opacity: 0.45;
    font-size: 11px;
    margin: 0 1px;
    user-select: none;
    color: #6366f1;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-card-heading {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.post-card-heading a {
    color: #0f172a;
    transition: color 0.18s;
}

.post-card-heading a:hover {
    color: var(--primary);
}

.post-card-excerpt {
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.post-bottom-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    min-width: 0;
}

.post-bottom-left .post-card-meta-row {
    margin-bottom: 0;
    gap: 10px;
    font-size: 13px;
}

.post-author-pill {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-pill-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.author-pill-name {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 6px;
    background: #eef2ff;
    transition: all 0.18s ease;
}

.btn-read-more:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateX(2px);
}

/* ==========================================================================
   现代化侧边栏 Widgets
   ========================================================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.widget-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.widget-card:hover {
    box-shadow: var(--shadow-md);
}

.widget-heading {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
}

/* 博主个人名片卡片 */
.widget-author {
    text-align: center;
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 40%);
    border-color: #f3e8ff;
}

.author-card-header {
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 16px;
}

.author-main-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.author-main-name {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.author-main-motto {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.author-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.author-stat-col {
    display: flex;
    flex-direction: column;
    padding: 8px 4px;
    background: #f8fafc;
    border-radius: 8px;
}

.author-stat-col .stat-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.author-stat-col .stat-lbl {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

/* 现代化搜索输入框 */
.modern-search-form {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 3px 6px 3px 12px;
    transition: all 0.2s ease;
}

.modern-search-form:focus-within {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.modern-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #0f172a;
    padding: 8px 0;
    outline: none;
}

.modern-search-btn {
    background: var(--primary);
    color: #ffffff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s;
}

.modern-search-btn:hover {
    background: var(--primary-hover);
}

/* 分类胶囊列表 */
.category-pills-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-nav-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #334155;
    transition: all 0.18s ease;
}

.category-nav-pill:hover,
.category-nav-pill.active {
    background: #eef2ff;
    color: var(--primary);
    font-weight: 600;
    transform: translateX(3px);
}

.pill-count {
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.category-nav-pill:hover .pill-count,
.category-nav-pill.active .pill-count {
    background: #e0e7ff;
    color: var(--primary);
}

/* 热门文章排行榜 (带金银铜牌) */
.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popular-post-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
}

.popular-post-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rank-badge {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
    background: #f1f5f9;
    color: #64748b;
}

.rank-1 { background: #fef3c7; color: #b45309; }
.rank-2 { background: #e2e8f0; color: #475569; }
.rank-3 { background: #ffedd5; color: #c2410c; }

.popular-post-info {
    flex: 1;
    min-width: 0;
}

.popular-post-title {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.45;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}

.popular-post-row:hover .popular-post-title {
    color: var(--primary);
}

.popular-post-meta {
    font-size: 12px;
    color: #94a3b8;
}

/* ==========================================================================
   文章详情页 (现代技术博客排版规范)
   ========================================================================== */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 6px;
    column-gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}

.breadcrumb-nav a {
    color: #64748b;
}

.breadcrumb-nav a:hover {
    color: var(--primary);
}

.bc-sep {
    color: #cbd5e1;
}

.bc-current {
    color: #0f172a;
    font-weight: 600;
}

.post-detail-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.post-header-modern {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.category-tag-modern {
    display: inline-block;
    background: #eef2ff;
    color: var(--primary);
    border: 1px solid #e0e7ff;
    padding: 3px 12px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 13px;
}

.post-title-modern {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
    margin-bottom: 18px;
    letter-spacing: -0.4px;
}

.post-meta-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.meta-author-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eef2ff;
}

.meta-author-text {
    display: flex;
    flex-direction: column;
}

.meta-author-text .author-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.meta-author-text .publish-date {
    font-size: 12px;
    color: #94a3b8;
}

.meta-stats-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-stat-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
}

.btn-edit-inline {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-edit-inline:hover {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #93c5fd;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

.btn-delete-inline {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    line-height: inherit;
    transition: all 0.2s ease;
}
.btn-delete-inline:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.15);
}

.post-cover-wrap {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.post-cover-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* 正文排版 */
.post-content-typography {
    font-size: 16px;
    line-height: 1.85;
    color: #334155;
    word-break: break-word;
}

.post-content-typography p {
    margin-bottom: 1.5em;
}

.post-content-typography h1,
.post-content-typography h2,
.post-content-typography h3,
.post-content-typography h4 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    line-height: 1.35;
}

.post-content-typography h2 {
    font-size: 24px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

.post-content-typography h3 {
    font-size: 20px;
}

/* 现代化代码块（暗夜黑客终端风格） */
.code-block-wrap {
    background: #1e1e2f;
    border-radius: 10px;
    margin: 1.8em 0;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.code-block-header {
    background: #141420;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-lang {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-copy-code {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border: none;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-code:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.code-block-wrap pre {
    padding: 18px;
    margin: 0;
    overflow-x: auto;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #f8fafc;
}

.code-block-wrap code {
    background: transparent;
    color: inherit;
    padding: 0;
    border: none;
}

.inline-code {
    background: #f1f5f9;
    color: #e11d48;
    font-family: Consolas, Monaco, "Courier New", monospace;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.9em;
    border: 1px solid #e2e8f0;
}

.post-quote {
    border-left: 4px solid var(--primary);
    background: #f8fafc;
    padding: 14px 20px;
    border-radius: 0 8px 8px 0;
    color: #475569;
    font-style: italic;
    margin: 1.6em 0;
}

.post-embedded-image {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin: 1.5em auto;
}

.post-hr {
    border: none;
    height: 1px;
    background: #e2e8f0;
    margin: 2em 0;
}

/* 作者文末签名卡片 */
.author-bio-card {
    margin-top: 48px;
    padding: 24px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-bio-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.author-bio-info {
    flex: 1;
}

.author-bio-name {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.badge-author-tag {
    background: #eef2ff;
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 10px;
}

.author-bio-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   现代化评论与互动模块
   ========================================================================== */
.comments-section-modern {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.comments-section-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.comments-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form-card {
    background: #f8fafc;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    margin-bottom: 32px;
}

.comment-form-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.comment-guest-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.comment-user-logged {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #334155;
    background: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.comment-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user-email-tag {
    font-size: 12px;
    color: #94a3b8;
    margin-left: 6px;
}

.comment-textarea {
    min-height: 90px;
}

.comment-list-modern {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.empty-comments-box {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: var(--radius-md);
}

.comment-card-modern {
    display: flex;
    gap: 16px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    transition: background 0.15s;
}

.comment-card-modern:hover {
    background: #f8fafc;
}

.comment-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.comment-card-main {
    flex: 1;
    min-width: 0;
}

.comment-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-author-name {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
}

.badge-role-admin {
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
}

.badge-role-user {
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
}

.comment-card-time {
    font-size: 12px;
    color: #94a3b8;
}

.comment-card-text {
    font-size: 14px;
    color: #334155;
    line-height: 1.65;
}

/* ==========================================================================
   按钮、表单与基础组件
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
    background: #ffffff;
    color: #334155;
    border-color: #cbd5e1;
}

.btn-secondary:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
}

.btn-danger:hover {
    background: #dc2626;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    font-size: 14px;
    color: #475569;
    font-weight: 500;
    transition: all 0.18s;
}

.page-link:hover:not(.disabled):not(.active) {
    background: #f1f5f9;
    color: var(--primary);
    border-color: #cbd5e1;
}

.page-link.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.page-link.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
    background: #f8fafc;
}

.page-link.dots {
    border: none;
    background: transparent;
}

/* ========================================================
   前台全局居中浮动提示框 (Center Toast Popup - 3秒自动关闭)
   ======================================================== */
.admin-toast-center-container,
.flash-container {
    position: fixed !important;
    top: 45% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 9999999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    pointer-events: none !important;
    max-width: 90vw !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.admin-toast-center-container:empty,
.flash-container:empty {
    display: none !important;
}

.admin-toast-center-container .alert,
.flash-container .alert,
.alert.toast-center-alert {
    pointer-events: auto !important;
    min-width: 320px !important;
    max-width: 580px !important;
    padding: 16px 24px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2), 0 4px 14px rgba(0, 0, 0, 0.08) !important;
    animation: frontToastPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    margin: 0 !important;
}

@keyframes frontToastPopIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.admin-toast-center-container .alert-icon,
.flash-container .alert-icon {
    font-size: 22px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

.admin-toast-center-container .alert-message,
.flash-container .alert-message {
    flex: 1 !important;
    text-align: left !important;
    word-break: break-word !important;
}

.admin-toast-center-container .alert-close,
.flash-container .alert-close {
    background: none !important;
    border: none !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    opacity: 0.65 !important;
    padding: 0 4px !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
    color: inherit !important;
    flex-shrink: 0 !important;
}

.admin-toast-center-container .alert-close:hover,
.flash-container .alert-close:hover {
    opacity: 1 !important;
    transform: scale(1.15) !important;
}

.admin-toast-center-container .alert-success,
.flash-container .alert-success {
    background: #ffffff !important;
    color: #15803d !important;
    border: 2px solid #86efac !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18), 0 4px 14px rgba(34, 197, 94, 0.2) !important;
}

.admin-toast-center-container .alert-error,
.admin-toast-center-container .alert-danger,
.flash-container .alert-error,
.flash-container .alert-danger {
    background: #ffffff !important;
    color: #b91c1c !important;
    border: 2px solid #fca5a5 !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18), 0 4px 14px rgba(239, 68, 68, 0.2) !important;
}

.admin-toast-center-container .alert-warning,
.flash-container .alert-warning {
    background: #ffffff !important;
    color: #b45309 !important;
    border: 2px solid #fde68a !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18), 0 4px 14px rgba(245, 158, 11, 0.2) !important;
}

.admin-toast-center-container .alert-info,
.flash-container .alert-info {
    background: #ffffff !important;
    color: #0369a1 !important;
    border: 2px solid #7dd3fc !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18), 0 4px 14px rgba(14, 165, 233, 0.2) !important;
}

/* 主体内容网格 */
.main-wrapper {
    flex: 1;
    padding: 28px 0 48px;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}

/* 登录/注册卡片 */
.auth-wrapper {
    max-width: 440px;
    margin: 40px auto;
}

.auth-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.auth-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

/* 用户中心通用框架 */
.user-center-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
}

.user-sidebar {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 0;
    height: fit-content;
    box-shadow: var(--shadow-sm);
}

.user-profile-summary {
    text-align: center;
    padding: 10px 20px 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.user-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 3px solid #eef2ff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.user-nav {
    list-style: none;
}

.user-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 24px;
    font-size: 14px;
    color: #475569;
    font-weight: 500;
    transition: all 0.2s;
}

.user-nav-link:hover, .user-nav-link.active {
    background: #eef2ff;
    color: var(--primary);
    border-left: 3px solid var(--primary);
    font-weight: 600;
}

.user-content {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

/* 表格组件 */
.table-responsive {
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.custom-table th, .custom-table td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.custom-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 13px;
}

.custom-table tbody tr:hover {
    background: #f8fafc;
}

/* 页脚 */
.footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
    margin-top: auto;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    .user-center-layout {
        grid-template-columns: 1fr;
    }
    .post-detail-card {
        padding: 24px;
    }
}

/* ========================================================
   wangEditor 富文本编辑器与文章排版扩展样式
   ======================================================== */
.wangeditor-wrap {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.wangeditor-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.wangeditor-toolbar {
    border-bottom: 1px solid var(--border-color) !important;
    background: #f8fafc !important;
}

.wangeditor-container {
    min-height: 400px;
    font-size: 15px;
    color: #1e293b;
    line-height: 1.75;
}

.w-e-full-screen-container {
    z-index: 99999 !important;
}

.post-content-typography img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.2em 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.post-content-typography table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 15px;
}

.post-content-typography table th,
.post-content-typography table td {
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    text-align: left;
}

.post-content-typography table th {
    background: #f8fafc;
    font-weight: 600;
    color: #0f172a;
}

.post-content-typography ul,
.post-content-typography ol {
    padding-left: 26px;
    margin-bottom: 1.2em;
}

.post-content-typography li {
    margin-bottom: 0.35em;
}

.post-content-typography video {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5em 0;
}

/* ========================================================
   在线投稿中心 (Contribute Center) 专属样式
   ======================================================== */
.contribute-spotlight {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contribute-spotlight-content {
    max-width: 650px;
}

.contribute-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contribute-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.contribute-hero-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #cbd5e1;
    margin: 0;
}

.contribute-spotlight-stats {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.contribute-stat-item {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 20px;
    text-align: center;
    min-width: 90px;
}

.contribute-stat-num {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 2px;
}

.contribute-stat-label {
    font-size: 11px;
    color: #94a3b8;
}

.contribute-layout {
    display: block;
    width: 100%;
}

.contribute-main-col {
    width: 100%;
}

.contribute-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.contribute-author-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.contribute-author-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contribute-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e7ff;
}

.contribute-author-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.contribute-agreement-box {
    background: #f8fafc;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin: 20px 0;
}

.contribute-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    line-height: 1.6;
}

.contribute-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.contribute-action-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.contribute-auth-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.auth-card-icon-glow {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.25);
}

.contribute-auth-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.auth-perks-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid #f1f5f9;
}

.auth-perk-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
}

.auth-perk-icon {
    font-size: 24px;
}

.auth-perk-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.auth-perk-desc {
    font-size: 11px;
    color: #64748b;
}

.contribute-rule-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rule-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.rule-badge {
    width: 22px;
    height: 22px;
    background: #eef2ff;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.rule-content strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
    margin-bottom: 2px;
}

.rule-content p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 900px) {
    .contribute-spotlight {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 20px;
    }
    .contribute-spotlight-stats {
        width: 100%;
        justify-content: space-between;
    }
    .contribute-stat-item {
        flex: 1;
        min-width: 0;
    }
    .contribute-layout {
        width: 100%;
    }
    .auth-perks-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nav-container {
        height: auto;
        padding: 12px 0;
        flex-direction: column;
        gap: 12px;
    }
    .nav-brand-zone {
        flex: none;
        width: 100%;
        max-width: 100%;
        justify-content: center !important;
        padding-right: 0 !important;
    }
    .hero-banner {
        padding: 28px 18px;
    }
    .hero-title {
        font-size: 24px;
    }
    .post-title-modern {
        font-size: 22px;
    }
    .comment-guest-row {
        grid-template-columns: 1fr;
    }
    .nav-vip-card {
        left: auto;
        right: -10px;
        width: min(310px, 92vw);
    }
    .card-arrow-tip {
        left: auto;
        right: 28px;
    }
}


/* ==========================================================================
   Author Public Showcase Profile Page (Zibll Style) - 2026 Edition
   ========================================================================== */

.author-showcase-wrap {
    max-width: 1200px;
    margin: 0 auto 36px;
}

/* 顶部英雄卡片 (星空横幅 + 底部暗黑条) */
.author-hero-card {
    background: #18191c;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* 星空横幅背景 */
.author-banner {
    position: relative;
    height: 260px;
    background: radial-gradient(ellipse at 50% 10%, #1e293b 0%, #0b0f19 80%);
    background-image: 
        radial-gradient(1.5px 1.5px at 10% 20%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 25% 45%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 45% 15%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 60% 65%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 75% 25%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 85% 70%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 92% 35%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(ellipse at 50% 100%, rgba(34, 197, 94, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 0%, #111827 0%, #060910 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.author-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.1) 0%, rgba(11, 15, 25, 0.4) 100%);
    pointer-events: none;
}

/* 当用户自定义上传背景图时，彻底移除顶层遮盖遮罩，呈现 100% 原始纯净高清图片 */
.author-banner.has-custom-banner::before {
    display: none !important;
}

/* 顶部右侧数据胶囊 */
.author-banner-stats {
    position: absolute;
    top: 16px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.author-stat-pill {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.author-stat-pill .icon {
    font-size: 13px;
}

/* 横幅中央视觉核心 (绿色几何标志 + 优雅·极致标语) */
.author-banner-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 10px;
}

.author-banner-emblem {
    width: 68px;
    height: 68px;
    filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.45));
    margin-bottom: 10px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.author-banner-emblem:hover {
    transform: scale(1.08) rotate(3deg);
}

.author-banner-slogan {
    font-size: 26px;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 8px;
    text-indent: 8px;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", serif;
}

.author-banner-brand-sub {
    font-size: 13px;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 4px;
    text-indent: 4px;
    opacity: 0.85;
    margin: 0;
}

.author-banner-brand-sub small {
    display: block;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 2px;
    text-indent: 2px;
    opacity: 0.6;
    margin-top: 2px;
}

/* 顶部右下角更多按钮 */
.author-banner-more {
    position: absolute;
    bottom: 14px;
    right: 20px;
    z-index: 5;
}

.btn-author-more {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.btn-author-more:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

/* 底部暗黑条 (与图中一致) */
.author-dark-bar {
    background: #18191c;
    padding: 16px 28px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.author-info-left {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* 悬浮头像框 (正方形大圆角，白色外边框，半跨越横幅) */
.author-avatar-wrap {
    width: 110px;
    height: 110px;
    margin-top: -65px;
    border-radius: 14px;
    background: #ffffff;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.author-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* 详细文字与荣誉标识 */
.author-meta-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 第一行：昵称与等级 */
.author-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-name-text {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    margin: 0;
}

.author-level-pill {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
    letter-spacing: 0.5px;
}

/* 第二行：徽章、官方认证、属地、角色 */
.author-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.badge-medals-tag {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.badge-medals-tag:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
}

.badge-verify-tag {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-location-tag {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
}

.badge-role-tag {
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* 第三行：签名 / 介绍 */
.author-bio-row {
    color: #94a3b8;
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.5;
}

/* 右侧交互操作按钮 (关注 / 私信) */
.author-action-btns {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-author-follow {
    background: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-author-follow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244, 63, 94, 0.45);
}

.btn-author-follow.is-following {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
    color: #cbd5e1;
}

.btn-author-msg {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-author-msg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.45);
}

/* 主体双栏展示区 */
.author-body-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

/* 选项卡导航栏 */
.author-tabs-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.author-tab-btn {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.author-tab-btn:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.author-tab-btn.active {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

/* 右侧边栏卡片 */
.author-side-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.author-side-heading {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.author-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.author-stat-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.author-stat-val {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
}

.author-stat-lbl {
    font-size: 11px;
    color: #64748b;
}

/* 徽章墙网格 */
.author-medals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.author-medal-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 4px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.author-medal-item:hover {
    transform: translateY(-2px);
    border-color: #f59e0b;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.15);
}

.author-medal-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.author-medal-name {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 弹窗样式 (针对傲游等各内核深度GPU硬件加速优化) */
.author-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    will-change: opacity;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.author-modal-box {
    background: #ffffff;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
    position: relative;
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    animation: authorModalFadeIn 0.15s ease-out;
}

@keyframes authorModalFadeIn {
    from { opacity: 0; transform: translate3d(0, 10px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.author-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.author-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.author-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}

/* 响应式适配 */
@media (max-width: 860px) {
    .author-banner {
        height: 220px;
    }
    .author-dark-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px 20px;
    }
    .author-action-btns {
        width: 100%;
        justify-content: flex-end;
    }
    .author-body-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .author-info-left {
        flex-direction: column;
        gap: 12px;
    }
    .author-avatar-wrap {
        width: 80px;
        height: 80px;
        margin-top: -45px;
    }
    .author-banner-slogan {
        font-size: 20px;
        letter-spacing: 4px;
    }
    .author-action-btns {
        width: 100%;
    }
    .btn-author-follow, .btn-author-msg {
        flex: 1;
        justify-content: center;
    }
}

/* ==========================================================================
   文章详情页 - 布局与侧边栏个人信息模块样式 (风格一全宽 / 风格二双列)
   ========================================================================== */

.post-container-wrap {
    transition: max-width 0.3s ease;
    width: 100%;
}

.post-layout-grid {
    display: grid;
    gap: 28px;
    align-items: start;
    width: 100%;
}

/* 栅格比例：8:4 (主栏约67%，侧栏约33%) */
.post-layout-grid.post-ratio-8_4 {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.post-layout-grid.post-ratio-8_4.post-sidebar-left {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

/* 栅格比例：7:5 (主栏约58%，侧栏约42%) */
.post-layout-grid.post-ratio-7_5 {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.post-layout-grid.post-ratio-7_5.post-sidebar-left {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

/* 栅格比例：9:3 (主栏约75%，侧栏约25%) */
.post-layout-grid.post-ratio-9_3 {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
}
.post-layout-grid.post-ratio-9_3.post-sidebar-left {
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
}

/* 侧边栏位于左侧时的子元素顺序 */
.post-layout-grid.post-sidebar-left .post-main-col {
    order: 2;
}
.post-layout-grid.post-sidebar-left .post-sidebar-col {
    order: 1;
}

/* 主文章列 */
.post-main-col {
    min-width: 0;
    width: 100%;
}

/* 侧边栏列 (支持粘性跟随) */
.post-sidebar-col {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: sticky;
    top: 84px;
}

/* 侧边栏模块卡片通用容器 */
.post-sidebar-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    padding: 20px;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-sidebar-card:hover {
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.09);
}

/* 侧边栏卡片头部 */
.post-sb-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}
.post-sb-card-badge {
    font-size: 16px;
    line-height: 1;
}
.post-sb-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.2px;
}
.post-sb-empty {
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    padding: 12px 0;
}

/* 1. 作者个人信息名片模块 (移除关于作者标题栏) */
.post-sidebar-author-card .post-sb-card-header {
    display: none !important;
}
.post-sidebar-author-card .post-sb-card-badge {
    display: none !important;
}

.post-sidebar-author-card .post-author-body {
    text-align: center;
}
.post-author-avatar-wrap {
    width: 76px;
    height: 76px;
    margin: 0 auto 12px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    box-shadow: 0 6px 16px -2px rgba(99, 102, 241, 0.35);
    transition: transform 0.25s ease;
}
.post-author-avatar-wrap:hover {
    transform: scale(1.05) rotate(2deg);
}
.post-author-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    display: block;
}
.post-author-name {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.post-author-name a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s;
}
.post-author-name a:hover {
    color: #4f46e5;
}
.post-author-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    line-height: 1.3;
}
.post-author-tag.tag-admin {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #fcd34d;
}
.post-author-tag.tag-author {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.post-author-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 14px 0;
    word-break: break-word;
}
.post-author-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px 4px;
    margin-bottom: 14px;
    border: 1px solid #f1f5f9;
}
.pa-stat-item {
    text-align: center;
}
.pa-num {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}
.pa-lbl {
    font-size: 11px;
    color: #94a3b8;
}
.post-author-action {
    text-align: center;
}
.btn-author-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 0;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff !important;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px -2px rgba(79, 70, 229, 0.3);
    transition: all 0.2s ease;
}
.btn-author-home:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    box-shadow: 0 6px 16px -2px rgba(79, 70, 229, 0.45);
    transform: translateY(-1px);
}

/* 2. 热门推荐模块 */
.post-sb-popular-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.post-sb-popular-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
    border-bottom: 1px dashed #f1f5f9;
}
.post-sb-popular-item:last-child {
    border-bottom: none;
}
.post-sb-popular-item:hover {
    background: #f8fafc;
    transform: translateX(3px);
}
.post-pop-rank {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    background: #f1f5f9;
    color: #64748b;
    margin-top: 2px;
}
.post-pop-rank.rank-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #ffffff;
}
.post-pop-rank.rank-2 {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #ffffff;
}
.post-pop-rank.rank-3 {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
}
.post-pop-text {
    flex: 1;
    min-width: 0;
}
.post-pop-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.15s;
}
.post-sb-popular-item:hover .post-pop-title {
    color: #4f46e5;
}
.post-pop-views {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 3px;
    display: block;
}

/* 3. 分类目录模块 */
.post-sb-cats-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.post-sb-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #334155;
    font-size: 13px;
    transition: all 0.15s ease;
}
.post-sb-cat-item:hover {
    background: #f1f5f9;
    color: #4f46e5;
}
.post-sb-cat-item.active {
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 600;
}
.post-cat-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.post-cat-count {
    font-size: 11px;
    color: #94a3b8;
    background: #f8fafc;
    border-radius: 10px;
    padding: 2px 7px;
    border: 1px solid #e2e8f0;
}
.post-sb-cat-item.active .post-cat-count {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
}

/* 4. 站点概况模块 */
.post-sb-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
}
.post-sb-stat-box {
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px 4px;
    border: 1px solid #f1f5f9;
}
.psb-num {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}
.psb-lbl {
    font-size: 11px;
    color: #94a3b8;
}

/* 5. 文章扩展详情模块 */
.post-sb-info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}
.post-sb-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #f1f5f9;
}
.post-sb-info-row:last-child {
    border-bottom: none;
}
.post-sb-info-row .lbl {
    color: #64748b;
}
.post-sb-info-row .val {
    color: #1e293b;
    font-weight: 600;
}

/* 响应式断点：<= 992px 时自动优雅降级为单列纵向流 */
@media (max-width: 992px) {
    .post-layout-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    .post-layout-grid.post-sidebar-left .post-main-col {
        order: 1;
    }
    .post-layout-grid.post-sidebar-left .post-sidebar-col {
        order: 2;
    }
    .post-sidebar-col {
        position: static;
        width: 100%;
    }
}

/* ==========================================================================
   文章详情页 - 点赞、反赞、收藏互动操作条样式 (Reaction Action Bar)
   ========================================================================== */

.post-action-bar-wrap {
    margin: 36px 0 28px 0;
    padding: 26px 0 16px 0;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
}

.post-action-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #f8fafc;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05);
    flex-wrap: wrap;
    transition: all 0.25s ease;
}
.post-action-bar:hover {
    box-shadow: 0 8px 24px -3px rgba(15, 23, 42, 0.09);
    border-color: #cbd5e1;
}

.post-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    padding: 9px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.post-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.1);
}
.post-action-btn:active {
    transform: translateY(0) scale(0.97);
}

.post-action-btn .btn-icon {
    font-size: 17px;
    line-height: 1;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.post-action-btn .btn-label {
    font-size: 13.5px;
    letter-spacing: -0.2px;
}
.post-action-btn .btn-count {
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    line-height: 1.2;
    transition: all 0.2s ease;
}

/* 1. 点赞激活态 */
.post-action-btn.btn-like:hover {
    border-color: #fca5a5;
    color: #ef4444;
}
.post-action-btn.btn-like.active {
    background: linear-gradient(135deg, #ef4444, #f87171);
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 6px 20px -2px rgba(239, 68, 68, 0.45);
}
.post-action-btn.btn-like.active .btn-icon {
    transform: scale(1.18);
}
.post-action-btn.btn-like.active .btn-count {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

/* 2. 反赞激活态 */
.post-action-btn.btn-dislike:hover {
    border-color: #94a3b8;
    color: #475569;
}
.post-action-btn.btn-dislike.active {
    background: linear-gradient(135deg, #64748b, #475569);
    border-color: #475569;
    color: #ffffff;
    box-shadow: 0 6px 20px -2px rgba(71, 85, 105, 0.35);
}
.post-action-btn.btn-dislike.active .btn-icon {
    transform: scale(1.15);
}
.post-action-btn.btn-dislike.active .btn-count {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

/* 3. 收藏激活态 */
.post-action-btn.btn-fav:hover {
    border-color: #fde047;
    color: #d97706;
}
.post-action-btn.btn-fav.active {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border-color: #f59e0b;
    color: #ffffff;
    box-shadow: 0 6px 20px -2px rgba(245, 158, 11, 0.45);
}
.post-action-btn.btn-fav.active .btn-icon {
    transform: scale(1.22);
}
.post-action-btn.btn-fav.active .btn-count {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

/* 4. 分享按钮 */
.post-action-btn.btn-share:hover {
    border-color: #a5b4fc;
    color: #4f46e5;
}
.post-action-btn.btn-share.active,
.post-action-btn.btn-share:active {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border-color: #4f46e5;
    color: #ffffff;
    box-shadow: 0 6px 20px -2px rgba(79, 70, 229, 0.4);
}
.post-action-btn.btn-share.active .btn-icon {
    transform: scale(1.18);
}

/* 浮动轻提示 (Toast) */
.post-action-toast {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
}
.post-action-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.post-action-toast.show.success {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
}
.post-action-toast.show.warn {
    background: #ea580c;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.3);
}

@media (max-width: 580px) {
    .post-action-bar {
        width: 100%;
        border-radius: 16px;
        gap: 8px;
        padding: 8px 10px;
    }
    .post-action-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
        font-size: 13px;
    }
    .post-action-btn .btn-label {
        font-size: 12.5px;
    }
    .post-action-btn .btn-count {
        padding: 2px 6px;
        font-size: 11px;
    }
}

/* ==========================================================================
   文章详情页 - 评论自管理 (编辑/删除按钮与修改弹窗)
   ========================================================================== */

.comment-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.comment-actions-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-comment-action {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.18s ease;
    outline: none;
    line-height: 1.3;
}
.btn-comment-action:hover {
    transform: translateY(-1px);
}
.btn-comment-action:active {
    transform: translateY(0);
}

.btn-edit-comment {
    background: #eef2ff;
    color: #4f46e5;
    border-color: #c7d2fe;
}
.btn-edit-comment:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.btn-del-comment {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca;
}
.btn-del-comment:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* 评论快捷编辑弹窗 */
.comment-modal-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.comment-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.comment-modal-box {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.25);
    z-index: 1;
    overflow: hidden;
    animation: commentModalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes commentModalIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.comment-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.btn-modal-close {
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #94a3b8;
    padding: 2px 6px;
    border-radius: 6px;
    transition: color 0.15s;
}
.btn-modal-close:hover {
    color: #0f172a;
}

.comment-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}


/* ==========================================================================
   文章详情页 - 评论卡片操作按钮与时间排版优化 (SVG 矢量胶囊样式)
   ========================================================================== */

.comment-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 12px;
}

.comment-header-meta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    flex-shrink: 0;
}

.comment-card-time {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    user-select: none;
    line-height: 1;
}

.comment-actions-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.comment-delete-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.comment-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    outline: none;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    height: 25px;
    user-select: none;
}
.comment-action-pill svg {
    flex-shrink: 0;
    display: block;
}
.comment-action-pill:hover {
    transform: translateY(-1px);
}
.comment-action-pill:active {
    transform: translateY(0) scale(0.96);
}

/* 按钮微配色 */
.comment-action-pill.pill-edit {
    background: #eef2ff;
    color: #4f46e5;
    border-color: #c7d2fe;
}
.comment-action-pill.pill-edit:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.3);
}

.comment-action-pill.pill-delete {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca;
}
.comment-action-pill.pill-delete:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
}


/* ==========================================================================
   文章评论附图与本地/远程上传相关样式
   ========================================================================== */
.comment-form-actions-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 14px;
}

.btn-comment-attach-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.btn-comment-attach-trigger:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #f5f3ff;
    transform: translateY(-1px);
}
.btn-comment-attach-trigger.active {
    border-color: #6366f1;
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 600;
}
.comment-attach-badge {
    background: #6366f1;
    color: #ffffff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.2;
}

/* 评论图片折叠面板 */
.comment-image-panel {
    margin-top: 12px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    animation: commentImgPanelSlide 0.2s ease;
}
@keyframes commentImgPanelSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.comment-img-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.comment-img-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
}
.comment-tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.comment-tab-pill:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.comment-tab-pill.active {
    background: #eef2ff;
    color: #4f46e5;
    border-color: #c7d2fe;
    font-weight: 600;
}
.comment-panel-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}
.comment-panel-close:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* 本地上传拖拽/点击区域 */
.comment-file-dropzone {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.comment-file-dropzone:hover {
    background: #f1f5f9;
    border-color: #6366f1;
}
.comment-dropzone-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.comment-dropzone-text .drop-main {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}
.comment-dropzone-text .drop-sub {
    font-size: 11.5px;
    color: #94a3b8;
}

/* 远程图片地址输入 */
.comment-remote-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}
.comment-remote-input {
    flex: 1;
    font-size: 13px;
    padding: 7px 12px;
    border-radius: 8px;
}

/* 图片选定后即时预览卡片 */
.comment-preview-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.preview-img-box {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    background: #000;
}
.preview-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.btn-remove-preview {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    border: none;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-remove-preview:hover {
    background: #ef4444;
}
.preview-detail-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}
.preview-detail-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.preview-detail-hint {
    font-size: 11.5px;
    color: #10b981;
}

/* 评论卡片内部附图展示 */
.comment-attached-image-wrap {
    margin-top: 10px;
}
.comment-attached-link {
    position: relative;
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    max-width: 240px;
    max-height: 180px;
    background: #f8fafc;
    transition: transform 0.2s, box-shadow 0.2s;
    vertical-align: top;
}
.comment-attached-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.comment-attached-thumb {
    display: block;
    max-width: 100%;
    max-height: 180px;
    object-fit: cover;
}
.comment-img-zoom-tag {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(2px);
    color: #ffffff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateY(3px);
    transition: all 0.2s ease;
    pointer-events: none;
}
.comment-attached-link:hover .comment-img-zoom-tag {
    opacity: 1;
    transform: translateY(0);
}

/* 评论大图查看灯箱 */
.comment-lightbox-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.comment-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
}
.comment-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: lightboxPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes lightboxPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
.comment-lightbox-content img {
    max-width: 90vw;
    max-height: 82vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    background: #000;
}
.lightbox-toolbar {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-lightbox-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-lightbox-close:hover {
    background: rgba(239, 68, 68, 0.9);
}


/* ==========================================================================
   评论多级嵌套回复与楼中楼深度展示样式 (支持 2~8 级)
   ========================================================================== */
.comment-item-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-nested-children-wrap {
    margin-left: 28px;
    padding-left: 14px;
    border-left: 2px solid #e2e8f0;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    transition: border-color 0.2s ease;
}
.comment-nested-children-wrap:hover {
    border-left-color: #6366f1;
}

/* 各深度嵌套竖轨微配色 */
.comment-nested-children-wrap.level-wrap-1 { border-left-color: #e0e7ff; }
.comment-nested-children-wrap.level-wrap-2 { border-left-color: #c7d2fe; }
.comment-nested-children-wrap.level-wrap-3 { border-left-color: #ddd6fe; }
.comment-nested-children-wrap.level-wrap-4 { border-left-color: #fbcfe8; }
.comment-nested-children-wrap.level-wrap-5 { border-left-color: #fde68a; }
.comment-nested-children-wrap.level-wrap-6 { border-left-color: #a7f3d0; }
.comment-nested-children-wrap.level-wrap-7 { border-left-color: #bae6fd; }

/* 回复操作按钮 */
.comment-action-pill.pill-reply {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}
.comment-action-pill.pill-reply:hover {
    background: #16a34a;
    color: #ffffff;
    border-color: #16a34a;
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.3);
}

/* 回复指示器与被回复者标签 */
.comment-reply-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    margin-left: 4px;
}
.comment-reply-indicator .reply-text {
    color: #94a3b8;
    font-size: 11.5px;
}
.comment-reply-indicator .reply-user {
    color: #4f46e5;
    font-weight: 600;
    background: #eef2ff;
    padding: 1px 7px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 12px;
}

/* 层级标记 */
.comment-level-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 500;
}

/* 动态内嵌回复框挂载区与样式 */
.comment-reply-box-mount {
    width: 100%;
}

.inline-reply-box {
    margin-top: 14px;
    margin-bottom: 8px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    animation: replyBoxSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes replyBoxSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.inline-reply-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e2e8f0;
}
.inline-reply-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
}
.inline-reply-icon {
    font-size: 15px;
}
.btn-cancel-reply {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}
.btn-cancel-reply:hover {
    background: #fef2f2;
}

@media (max-width: 640px) {
    .comment-nested-children-wrap {
        margin-left: 10px;
        padding-left: 8px;
        border-left-width: 2px;
        gap: 8px;
    }
    .inline-reply-box {
        padding: 12px 14px;
    }
}


/* ==========================================================================
   全局现代化居中提示/确认框组件 (带3秒自动倒计时关闭)
   ========================================================================== */

/* 遮罩背景 (屏幕正中居中 + 毛玻璃效果) */
.app-global-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}
.app-global-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 弹窗卡片本体 */
.app-global-modal-box {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    border-radius: 22px;
    box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.9);
    overflow: hidden;
    transform: scale(0.88) translateY(16px);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.24s ease;
    text-align: center;
    padding: 28px 24px 20px;
    box-sizing: border-box;
    user-select: none;
}
.app-global-modal-overlay.active .app-global-modal-box {
    transform: scale(1) translateY(0);
}

/* 顶部圆形图标徽章 */
.app-modal-icon-badge {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.app-global-modal-overlay.active .app-modal-icon-badge {
    transform: scale(1);
    animation: iconBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes iconBounce {
    0% { transform: scale(0.6); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* 危险/删除模式 */
.app-modal-icon-badge.danger {
    background: #fef2f2;
    border: 4px solid #fee2e2;
    color: #ef4444;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.18);
}
/* 警告模式 */
.app-modal-icon-badge.warning {
    background: #fffbeb;
    border: 4px solid #fef3c7;
    color: #f59e0b;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.18);
}
/* 信息/通知模式 */
.app-modal-icon-badge.info {
    background: #eef2ff;
    border: 4px solid #e0e7ff;
    color: #6366f1;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.18);
}
/* 成功模式 */
.app-modal-icon-badge.success {
    background: #f0fdf4;
    border: 4px solid #dcfce7;
    color: #16a34a;
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.18);
}

/* 弹窗标题 */
.app-modal-title {
    font-size: 17.5px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

/* 弹窗内容文字 */
.app-modal-message {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 16px 0;
    padding: 0 8px;
    word-break: break-word;
}

/* 3秒倒计时进度条 */
.app-modal-timer-track {
    width: 100%;
    height: 4px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}
.app-modal-timer-bar {
    height: 100%;
    width: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transition: width 10s linear;
}
.app-modal-timer-bar.danger {
    background: linear-gradient(90deg, #f87171, #ef4444);
}
.app-modal-timer-bar.warning {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}
.app-modal-timer-bar.success {
    background: linear-gradient(90deg, #34d399, #10b981);
}

/* 按钮组 */
.app-modal-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* 取消按钮 (带3秒倒计时) */
.btn-app-modal-cancel {
    flex: 1;
    padding: 9px 18px;
    border-radius: 22px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #64748b;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-app-modal-cancel:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
}

/* 确定按钮 */
.btn-app-modal-confirm {
    flex: 1;
    padding: 9px 22px;
    border-radius: 22px;
    border: none;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-app-modal-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
}
.btn-app-modal-confirm:active {
    transform: translateY(0);
}

/* 危险删除确定按钮 */
.btn-app-modal-confirm.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}
.btn-app-modal-confirm.danger:hover {
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45);
}

/* ========================================================
 * 全局文章标签展示与视觉风格系统
 * ======================================================== */
.post-detail-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1.4;
    white-space: nowrap;
}

/* 风格 1：柔和彩色胶囊 (pill) */
.post-detail-tag-item.tag-style-pill {
    background-color: color-mix(in srgb, var(--tag-base-color, #6366f1) 12%, transparent);
    color: var(--tag-base-color, #6366f1);
    border: 1px solid color-mix(in srgb, var(--tag-base-color, #6366f1) 28%, transparent);
}
.post-detail-tag-item.tag-style-pill:hover {
    background-color: var(--tag-base-color, #6366f1);
    color: #ffffff !important;
    border-color: var(--tag-base-color, #6366f1);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--tag-base-color, #6366f1) 35%, transparent);
}

/* 风格 2：极简描边轻薄风 (outline) */
.post-detail-tag-item.tag-style-outline {
    background: transparent;
    color: var(--tag-base-color, #6366f1);
    border: 1px solid var(--tag-base-color, #6366f1);
}
.post-detail-tag-item.tag-style-outline:hover {
    background-color: var(--tag-base-color, #6366f1);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px color-mix(in srgb, var(--tag-base-color, #6366f1) 30%, transparent);
}

/* 风格 3：渐变沉浸微立体 (gradient) */
.post-detail-tag-item.tag-style-gradient {
    background: linear-gradient(135deg, var(--tag-base-color, #6366f1), color-mix(in srgb, var(--tag-base-color, #6366f1) 75%, #000));
    color: #ffffff !important;
    border: none;
    box-shadow: 0 2px 6px color-mix(in srgb, var(--tag-base-color, #6366f1) 35%, transparent);
}
.post-detail-tag-item.tag-style-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px color-mix(in srgb, var(--tag-base-color, #6366f1) 50%, transparent);
}


/* ===== 创作者投稿页面高级美化与宽松感排版 ===== */

/* ===== 创作者投稿页面：模块化卡片独立框框排版 ===== */
.contribute-card,
.contribute-form-container {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.contribute-box-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 28px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.contribute-box-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.contribute-author-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: #ffffff !important;
}

.contribute-box-card .creation-type-selector-wrap {
    margin-bottom: 0 !important;
}

.contribute-action-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}


.contribute-author-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 18px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.contribute-author-btn:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
    transform: translateY(-1px);
}

.custom-file-btn:hover {
    background: #f1f5f9 !important;
    border-color: #6366f1 !important;
    color: #4338ca !important;
}

#tagsInputContainer:focus-within,
.form-control:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12) !important;
    outline: none !important;
}

.wangeditor-wrap:focus-within {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08) !important;
}

.preset-tag-chip:hover {
    background: #eef2ff !important;
    border-color: #c7d2fe !important;
    color: #4338ca !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.15);
}

@media (max-width: 768px) {
    .contribute-card,
    .contribute-form-container {
        padding: 0 !important;
    }
    .contribute-box-card,
    .contribute-author-box,
    .contribute-action-box {
        padding: 18px 16px !important;
        margin-bottom: 16px !important;
        border-radius: 12px;
    }
    .contribute-two-col-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .contribute-author-bar {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 14px;
        padding: 16px !important;
    }
    .contribute-author-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 分类多级路径分割展示 (一个分类一个独立胶囊框) */
.category-trail-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}

.category-trail-group .cat-trail-sep {
    display: none !important;
}

.category-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #e0e7ff;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none !important;
    transition: all 0.15s ease;
    vertical-align: middle;
}

.category-badge-pill:hover {
    background: #e0e7ff;
    color: #4338ca;
    border-color: #c7d2fe;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.15);
}
