/* /Shared/FriendLink.razor.rz.scp.css */

/* ================================================================
   Index 首页轮播（全局样式，避免 Blazor CSS 隔离失效）
   ================================================================ */
.idx-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.idx-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.idx-carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.06);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 1s;
    pointer-events: none;
}

.idx-carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0s;
    pointer-events: auto;
}

/* 幻灯片内容入场动画 */
.idx-carousel-slide .idx-slide-title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s,
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.idx-carousel-slide .idx-slide-sub {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.45s,
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.45s;
}

.idx-carousel-slide .idx-slide-img {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.55s,
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.55s;
}

.idx-carousel-slide.active .idx-slide-title {
    opacity: 1;
    transform: translateY(0);
}

.idx-carousel-slide.active .idx-slide-sub {
    opacity: 1;
    transform: translateY(0);
}

.idx-carousel-slide.active .idx-slide-img {
    opacity: 1;
    transform: translateX(0);
}

/* 轮播指示器 */
.idx-carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.idx-carousel-dot {
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.idx-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.idx-carousel-dot.active {
    width: 48px;
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 轮播响应式 */
@media (max-width: 991px) {
    .idx-carousel { height: 340px; }
}

@media (max-width: 767px) {
    .idx-carousel { height: 300px; }
}

/* ================================================================
   About 关于页面
   ================================================================ */

/* Hero 区域 */
.about-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5rem 0 6rem;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #1a1a2e 100%);
    z-index: 0;
}

.about-hero-bg::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    border-radius: 50%;
    animation: aboutFloat 20s ease-in-out infinite;
}

.about-hero-bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
    border-radius: 50%;
    animation: aboutFloat 25s ease-in-out infinite reverse;
}

@keyframes aboutFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -40px); }
    66% { transform: translate(-20px, 20px); }
}

.about-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* 头像 */
.about-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.about-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.about-avatar-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.4);
    animation: aboutRingPulse 3s ease-in-out infinite;
}

.about-avatar-ring-2 {
    inset: -16px;
    border-color: rgba(99, 102, 241, 0.2);
    animation-delay: 1.5s;
}

@keyframes aboutRingPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.5; }
}

.about-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.about-hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.about-hero-tags {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.about-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.about-tag:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

.about-tag i {
    font-size: 0.8rem;
    color: #60a5fa;
}

/* Hero 底部波浪 */
.about-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 1;
    line-height: 0;
}

.about-hero-wave svg {
    width: 100%;
    height: 80px;
}

/* 通用 Section */
.about-section {
    padding: 5rem 0;
    background: var(--bg-primary, #fff);
}

.about-section-alt {
    background: var(--bg-secondary, #f8f9fa);
}

body[data-theme="dark"] .about-section-alt {
    background: var(--bg-secondary, #1e1e1e);
}

.about-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

.about-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 0.5rem;
}

.about-section-desc {
    font-size: 1rem;
    color: var(--text-secondary, #6c757d);
}

/* 关于本站 - 三列介绍卡 */
.about-intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-intro-card {
    background: var(--bg-primary, #fff);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.about-intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    border-radius: 0 0 4px 4px;
    opacity: 0;
    transition: all 0.4s ease;
}

.about-intro-card-1::before { background: linear-gradient(90deg, transparent, #3b82f6, transparent); }
.about-intro-card-2::before { background: linear-gradient(90deg, transparent, #10b981, transparent); }
.about-intro-card-3::before { background: linear-gradient(90deg, transparent, #8b5cf6, transparent); }

.about-intro-card:hover::before {
    opacity: 1;
    left: 10%;
    right: 10%;
}

.about-intro-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

body[data-theme="dark"] .about-intro-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .about-intro-card:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.about-intro-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.4s ease;
}

.about-intro-card-1 .about-intro-icon {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #3b82f6;
}

.about-intro-card-2 .about-intro-icon {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #10b981;
}

.about-intro-card-3 .about-intro-icon {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    color: #8b5cf6;
}

body[data-theme="dark"] .about-intro-card-1 .about-intro-icon {
    background: rgba(59, 130, 246, 0.12);
}

body[data-theme="dark"] .about-intro-card-2 .about-intro-icon {
    background: rgba(16, 185, 129, 0.12);
}

body[data-theme="dark"] .about-intro-card-3 .about-intro-icon {
    background: rgba(139, 92, 246, 0.12);
}

.about-intro-card:hover .about-intro-icon {
    transform: scale(1.08);
}

.about-intro-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.about-intro-card p {
    font-size: 0.9rem;
    color: var(--text-secondary, #6c757d);
    line-height: 1.75;
    margin: 0;
}

/* 技术栈网格 */
.about-tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.about-tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1rem;
    background: var(--bg-primary, #fff);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.about-tech-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

body[data-theme="dark"] .about-tech-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .about-tech-item:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.about-tech-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff, #e0e7ff);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.4s ease;
}

body[data-theme="dark"] .about-tech-logo {
    background: rgba(59, 130, 246, 0.12);
}

.about-tech-item:hover .about-tech-logo {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.about-tech-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* 理念区 */
.about-philosophy {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-philosophy-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: var(--bg-primary, #fff);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.about-philosophy-item:hover {
    transform: translateX(6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

body[data-theme="dark"] .about-philosophy-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .about-philosophy-item:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.about-philosophy-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.about-philosophy-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.about-philosophy-body p {
    font-size: 0.9rem;
    color: var(--text-secondary, #6c757d);
    line-height: 1.75;
    margin: 0;
}

/* 站点数据 */
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.about-stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg-primary, #fff);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.about-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

body[data-theme="dark"] .about-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .about-stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.about-stat-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.about-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.about-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary, #6c757d);
    font-weight: 500;
}

/* 联系方式 */
.about-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.about-contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 1.5rem;
    background: var(--bg-primary, #fff);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    text-decoration: none;
    cursor: pointer;
}

a.about-contact-card:hover,
.about-contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

body[data-theme="dark"] .about-contact-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .about-contact-card:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.about-contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #e0e7ff);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.4s ease;
}

body[data-theme="dark"] .about-contact-icon {
    background: rgba(59, 130, 246, 0.12);
}

.about-contact-card:hover .about-contact-icon {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.about-contact-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.about-contact-value {
    font-size: 0.8rem;
    color: var(--text-secondary, #6c757d);
    word-break: break-all;
    text-align: center;
}

/* 响应式 */
@media (max-width: 991px) {
    .about-hero { min-height: 360px; padding: 4rem 0 5rem; }
    .about-hero-title { font-size: 2rem; }
    .about-intro-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .about-tech-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
    .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-section { padding: 3.5rem 0; }
}

@media (max-width: 767px) {
    .about-hero { min-height: 320px; padding: 3rem 0 4.5rem; }
    .about-hero-title { font-size: 1.75rem; }
    .about-hero-sub { font-size: 1rem; }
    .about-avatar { width: 100px; height: 100px; }
    .about-avatar img { width: 100px; height: 100px; }
    .about-tech-grid { grid-template-columns: repeat(2, 1fr); }
    .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-philosophy-item { flex-direction: column; gap: 1rem; padding: 1.5rem; }
    .about-section { padding: 3rem 0; }
    .about-section-title { font-size: 1.6rem; }
    .about-contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .about-hero-title { font-size: 1.5rem; }
    .about-hero-tags { gap: 0.5rem; }
    .about-tag { font-size: 0.78rem; padding: 0.3rem 0.75rem; }
    .about-stats-grid { gap: 0.75rem; }
    .about-stat-card { padding: 1.5rem 0.75rem; }
    .about-stat-num { font-size: 1.6rem; }
    .about-contact-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   Blog 博文页面
   ================================================================ */

/* 根容器 */
.blog-root {
    min-height: 100vh;
    background: var(--bg-primary, #fff);
}

/* Hero 区域 */
.blog-hero {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3rem 0 4rem;
}

.blog-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #1a1a2e 100%);
    z-index: 0;
}

.blog-hero-bg::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    border-radius: 50%;
    animation: blogHeroFloat 20s ease-in-out infinite;
}

.blog-hero-bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
    border-radius: 50%;
    animation: blogHeroFloat 25s ease-in-out infinite reverse;
}

@keyframes blogHeroFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -40px); }
    66% { transform: translate(-20px, 20px); }
}

.blog-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.blog-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.blog-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.blog-hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.blog-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 1;
    line-height: 0;
}

.blog-hero-wave svg {
    width: 100%;
    height: 70px;
}

/* 主布局 */
.blog-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 180px 1fr 250px;
    gap: 24px;
    min-height: 60vh;
}

/* 左侧分类 */
.blog-sidebar-left {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.blog-sidebar-left .cl-card {
    margin-top: 0;
}

.blog-sidebar-left .cl-card-body {
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.blog-sidebar-left .cl-card-body a {
    width: 100%;
    margin: 3px 0;
    color: var(--text-primary, #333);
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-sidebar-left .cl-card-body a::after {
    display: none;
}

.blog-sidebar-left .cl-card-body a:hover,
.blog-sidebar-left .cl-card-body a.active {
    background: var(--accent-bg, #eff6ff);
    color: var(--accent-color, #3b82f6);
    text-decoration: none;
}

/* 统计条 */
.blog-stats-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-primary, #fff);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

body[data-theme="dark"] .blog-stats-strip {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.blog-stats-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary, #6c757d);
    font-size: 0.88rem;
}

.blog-stats-item svg {
    color: var(--accent-color, #3b82f6);
}

.blog-stats-num {
    font-weight: 700;
    color: var(--accent-color, #3b82f6);
    font-size: 1.1rem;
}

.blog-stats-label {
    color: var(--text-muted, #999);
}

.blog-stats-divider {
    width: 1px;
    height: 20px;
    background: var(--border-color, #e2e8f0);
}

/* 文章列表 */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 文章卡片 */
.blog-card {
    display: flex;
    align-items: stretch;
    background: var(--bg-primary, #fff);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    text-decoration: none;
    color: var(--text-primary, #1a1a2e);
    position: relative;
}

.blog-card * {
    color: inherit;
}

.blog-card:hover {
    text-decoration: none;
}

.blog-card::after {
    display: none;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(59, 130, 246, 0.15);
    text-decoration: none;
}

body[data-theme="dark"] .blog-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--text-primary, rgba(255, 255, 255, 0.95));
}

body[data-theme="dark"] .blog-card:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.3);
    text-decoration: none;
}

/* 封面图 */
.blog-card-cover {
    width: 200px;
    min-height: 180px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.blog-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.blog-card:hover .blog-card-cover img {
    transform: scale(1.08);
}

.blog-card-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 60%, rgba(0,0,0,0.04));
    pointer-events: none;
}

body[data-theme="dark"] .blog-card-cover-overlay {
    background: linear-gradient(to right, transparent 60%, rgba(0,0,0,0.2));
}

/* 卡片内容 */
.blog-card-body {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

/* 徽章 */
.blog-card-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.blog-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.blog-badge-top {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.blog-badge-hot {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.blog-badge-rec {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

body[data-theme="dark"] .blog-badge-top {
    background: rgba(59, 130, 246, 0.15);
}

body[data-theme="dark"] .blog-badge-hot {
    background: rgba(239, 68, 68, 0.15);
}

body[data-theme="dark"] .blog-badge-rec {
    background: rgba(16, 185, 129, 0.15);
}

/* 标题 */
.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin: 0 0 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--accent-color, #3b82f6);
}

/* 摘要 */
.blog-card-excerpt {
    font-size: 0.88rem;
    color: var(--text-secondary, #6c757d);
    line-height: 1.7;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 底部 */
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.blog-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--text-muted, #999);
}

.blog-meta-item svg {
    opacity: 0.6;
}

/* 标签 */
.blog-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.blog-tag {
    font-size: 0.72rem;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.06);
    color: var(--accent-color, #3b82f6);
    font-weight: 500;
    transition: all 0.25s ease;
}

body[data-theme="dark"] .blog-tag {
    background: rgba(59, 130, 246, 0.12);
}

.blog-card:hover .blog-tag {
    background: rgba(59, 130, 246, 0.12);
}

/* 阅读箭头 */
.blog-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    flex-shrink: 0;
    color: var(--text-muted, #ccc);
    transition: all 0.3s ease;
}

.blog-card:hover .blog-card-arrow {
    color: var(--accent-color, #3b82f6);
}

.blog-card:hover .blog-card-arrow svg {
    transform: translateX(4px);
}

/* 发布按钮 */
.blog-publish-bar {
    text-align: center;
    margin: 28px 0;
}

.blog-publish-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

.blog-publish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.35);
}

/* 分页 */
.blog-pagination {
    text-align: center;
    padding: 30px 0 40px;
}

/* 空状态 */
.blog-empty {
    text-align: center;
    padding: 80px 0;
}

/* 右侧边栏 */
.blog-sidebar-right {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.blog-sidebar-right .cl-card {
    margin-top: 0;
}

/* 分类侧栏卡片 */
.blog-cat-card {
    background: var(--bg-primary, #fff);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

body[data-theme="dark"] .blog-cat-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.blog-cat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.blog-cat-header svg {
    color: var(--accent-color, #3b82f6);
}

body[data-theme="dark"] .blog-cat-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.blog-cat-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
}

.blog-cat-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--text-primary, #333);
    font-size: 0.85rem;
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
}

.blog-cat-link::after {
    display: none;
}

.blog-cat-link svg {
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.25s ease;
    color: var(--accent-color, #3b82f6);
}

.blog-cat-link:hover,
.blog-cat-link.active {
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-color, #3b82f6);
    text-decoration: none;
}

.blog-cat-link:hover svg,
.blog-cat-link.active svg {
    opacity: 1;
    transform: translateX(0);
}

.blog-cat-link.active {
    font-weight: 600;
}

body[data-theme="dark"] .blog-cat-link:hover,
body[data-theme="dark"] .blog-cat-link.active {
    background: rgba(59, 130, 246, 0.12);
}

/* ================================================================
   Post 博文详情页
   ================================================================ */

/* AI 智能摘要 */
.ai-summary {
    margin: 20px auto 24px;
    padding: 20px 24px 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.12);
    position: relative;
    overflow: hidden;
}
.ai-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #6366f1, #06b6d4);
}
body[data-theme="dark"] .ai-summary {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(99, 102, 241, 0.08));
    border-color: rgba(59, 130, 246, 0.2);
}
.ai-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.ai-summary-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ai-summary-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-color, #2563eb);
    letter-spacing: -0.01em;
}
.ai-summary-body {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text-primary, #374151);
    text-align: justify;
    margin-bottom: 12px;
}
.ai-summary-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3b82f6;
    font-size: 0.88rem;
}
.ai-spin-icon svg {
    animation: aiSpin 1s linear infinite;
}
@keyframes aiSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.ai-summary-error {
    color: #ef4444;
    font-weight: 500;
}
.ai-summary-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted, #9ca3af);
    border-top: 1px solid rgba(59, 130, 246, 0.08);
    padding-top: 10px;
}
body[data-theme="dark"] .ai-summary-footer {
    border-top-color: rgba(59, 130, 246, 0.15);
}

/* 文章徽章 */
.post-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.post-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}
.post-badge-top {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.post-badge-hot {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}
.post-badge-rec {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
body[data-theme="dark"] .post-badge-top {
    background: rgba(239, 68, 68, 0.15);
}
body[data-theme="dark"] .post-badge-hot {
    background: rgba(245, 158, 11, 0.15);
}
body[data-theme="dark"] .post-badge-rec {
    background: rgba(16, 185, 129, 0.15);
}

/* 分类栏 */
.post-cats-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.post-cat-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-muted, #6b7280);
    background: rgba(59, 130, 246, 0.06);
    padding: 4px 10px;
    border-radius: 6px;
}
body[data-theme="dark"] .post-cat-item {
    background: rgba(59, 130, 246, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.post-root {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 24px 40px;
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 24px;
    min-height: 100vh;
}

.post-article-card {
    background: var(--bg-primary, #fff);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

body[data-theme="dark"] .post-article-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

/* 文章头部 */
.post-header {
    padding: 32px 32px 0;
}

.post-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary, #1a1a2e);
    line-height: 1.4;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.post-meta-bar {
    margin-bottom: 12px;
}

.post-meta-bar .counts {
    flex-wrap: wrap;
    gap: 1rem !important;
}

.post-tags-bar {
    margin-bottom: 8px;
}

.post-tags-bar .tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* 文章内容 */
.post-content {
    padding: 24px 32px;
}

.post-content .cl-card {
    box-shadow: none;
    border: none;
    margin-top: 0;
    background: transparent;
}

.post-content .cl-card-body {
    background: transparent;
    padding: 0;
}

/* 分隔线 */
.post-divider {
    margin: 0 32px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(59, 130, 246, 0.15), transparent);
}

/* 评论区 */
.post-comments {
    padding: 24px 32px 32px;
}

/* 发布按钮 */
.post-publish-bar {
    text-align: center;
    padding: 20px 0;
}

/* 侧边栏 */
.post-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.post-sidebar .cl-card {
    margin-top: 0;
}

/* ================================================================
   Post 博文详情页 - 响应式
   ================================================================ */
@media (max-width: 991px) {
    .post-root {
        grid-template-columns: 1fr;
        padding: 80px 16px 40px;
    }

    .post-sidebar {
        position: static;
    }

    .post-header {
        padding: 24px 20px 0;
    }

    .post-title {
        font-size: 1.4rem;
    }

    .post-content {
        padding: 20px;
    }

    .post-divider {
        margin: 0 20px;
    }

    .post-comments {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.2rem;
    }

    .post-header {
        padding: 20px 16px 0;
    }

    .post-content {
        padding: 16px;
    }

    .post-divider {
        margin: 0 16px;
    }

    .post-comments {
        padding: 16px;
    }
}

/* ================================================================
   Timeline 时间线页面
   ================================================================ */

/* Hero 区域 */
.tl-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3rem 0 4rem;
}

.tl-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #1a1a2e 100%);
    z-index: 0;
}

.tl-hero-bg::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent 70%);
    border-radius: 50%;
    animation: tlHeroFloat 20s ease-in-out infinite;
}

.tl-hero-bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
    border-radius: 50%;
    animation: tlHeroFloat 25s ease-in-out infinite reverse;
}

@keyframes tlHeroFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -40px); }
    66% { transform: translate(-20px, 20px); }
}

.tl-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.tl-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
}

.tl-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tl-hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.tl-hero-num {
    color: #06b6d4;
    font-weight: 700;
}

.tl-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 1;
    line-height: 0;
}

.tl-hero-wave svg {
    width: 100%;
    height: 70px;
}

/* 主容器 */
.tl-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

/* 统计条 */
.tl-stats-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--bg-primary, #fff);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 32px;
    flex-wrap: wrap;
}

body[data-theme="dark"] .tl-stats-strip {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.tl-stat-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary, #6c757d);
    font-size: 0.88rem;
}

.tl-stat-chip svg {
    color: var(--accent-color, #2563eb);
    opacity: 0.7;
}

.tl-stat-val {
    font-weight: 700;
    color: var(--accent-color, #2563eb);
    font-size: 1.05rem;
}

.tl-stat-lbl {
    color: var(--text-muted, #999);
}

.tl-stat-divider {
    width: 1px;
    height: 20px;
    background: var(--border-color, #e2e8f0);
}

/* 时间线动画 */
@keyframes tlFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 时间线 */
.tl-timeline {
    position: relative;
    padding-left: 0;
}

.tl-timeline::before {
    content: '';
    position: absolute;
    left: 72px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #3b82f6, #06b6d4, #3b82f6);
    opacity: 0.2;
}

/* 年份标记 */
.tl-year-marker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 16px;
    position: relative;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tl-year-marker.tl-animate {
    animation: tlFadeInUp 0.5s ease forwards;
}

.tl-year-marker:first-child {
    margin-top: 0;
}

.tl-year-dot {
    position: absolute;
    left: 66px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.tl-year-text {
    margin-left: 96px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-color, #2563eb);
    letter-spacing: -0.01em;
    background: var(--bg-primary, #fff);
    padding: 4px 16px 4px 0;
    border-radius: 8px;
}

body[data-theme="dark"] .tl-year-text {
    background: var(--bg-primary, #1e1e1e);
}

/* 时间线行 */
.tl-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tl-row.tl-animate {
    animation: tlFadeInUp 0.6s ease forwards;
}

/* 时间点 */
.tl-dot {
    position: absolute;
    left: 66px;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-primary, #fff);
    border: 3px solid #3b82f6;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.06);
    transition: all 0.3s ease;
}

body[data-theme="dark"] .tl-dot {
    background: #1e1e1e;
}

.tl-row:hover .tl-dot {
    background: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15);
    transform: scale(1.2);
}

/* 日期 */
.tl-date {
    flex-shrink: 0;
    width: 56px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-color, #2563eb);
    background: rgba(37, 99, 235, 0.06);
    border-radius: 6px;
    padding: 4px 6px;
    margin-right: 40px;
    margin-top: 22px;
    line-height: 1.3;
}

body[data-theme="dark"] .tl-date {
    background: rgba(37, 99, 235, 0.12);
}

/* 卡片 */
.tl-card {
    flex: 1;
    display: flex;
    align-items: stretch;
    background: var(--bg-primary, #fff);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    text-decoration: none;
    color: var(--text-primary, #1a1a2e);
    position: relative;
}

.tl-card * {
    color: inherit;
}

.tl-card:hover {
    text-decoration: none;
}

.tl-card::after {
    display: none;
}

body[data-theme="dark"] .tl-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--text-primary, rgba(255, 255, 255, 0.95));
}

.tl-card:hover {
    transform: translateX(4px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.08);
    border-color: rgba(59, 130, 246, 0.15);
}

body[data-theme="dark"] .tl-card:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

.tl-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #3b82f6, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 14px 0 0 14px;
}

.tl-card:hover::before {
    opacity: 1;
}

/* 封面图 */
.tl-card-cover {
    width: 160px;
    min-height: 140px;
    flex-shrink: 0;
    overflow: hidden;
}

.tl-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.tl-card:hover .tl-card-cover img {
    transform: scale(1.08);
}

/* 卡片主体 */
.tl-card-body {
    flex: 1;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

/* 头部 */
.tl-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.tl-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.tl-badge-top {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.tl-badge-hot {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.tl-badge-rec {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

body[data-theme="dark"] .tl-badge-top {
    background: rgba(59, 130, 246, 0.15);
}

body[data-theme="dark"] .tl-badge-hot {
    background: rgba(239, 68, 68, 0.15);
}

body[data-theme="dark"] .tl-badge-rec {
    background: rgba(16, 185, 129, 0.15);
}

.tl-card-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted, #999);
    margin-left: auto;
}

/* 标题 */
.tl-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    line-height: 1.5;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.tl-card:hover .tl-card-title {
    color: var(--accent-color, #2563eb);
}

/* 摘要 */
.tl-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary, #6c757d);
    line-height: 1.7;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 底部 */
.tl-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.tl-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tl-meta-cat,
.tl-meta-views,
.tl-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted, #999);
}

.tl-meta-cat svg,
.tl-meta-views svg,
.tl-meta-author svg {
    opacity: 0.6;
}

/* 标签 */
.tl-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tl-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(37, 99, 235, 0.06);
    color: var(--accent-color, #2563eb);
    font-weight: 500;
    transition: all 0.25s ease;
}

body[data-theme="dark"] .tl-tag {
    background: rgba(37, 99, 235, 0.12);
}

.tl-card:hover .tl-tag {
    background: rgba(37, 99, 235, 0.12);
}

/* 箭头 */
.tl-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    flex-shrink: 0;
    color: var(--text-muted, #ccc);
    transition: all 0.3s ease;
}

.tl-card:hover .tl-card-arrow {
    color: var(--accent-color, #2563eb);
}

.tl-card:hover .tl-card-arrow svg {
    transform: translateX(3px);
}

/* 空状态 */
.tl-empty {
    text-align: center;
    padding: 80px 0;
}

/* 页脚 */
.tl-footer {
    text-align: center;
    padding: 40px 0 20px;
    color: var(--text-muted, #999);
    font-size: 0.85rem;
}

.tl-footer-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, #3b82f6, #06b6d4);
    border-radius: 1px;
    margin: 0 auto 16px;
    opacity: 0.4;
}

/* ================================================================
   Timeline 时间线页面 - 响应式
   ================================================================ */
@media (max-width: 991px) {
    .tl-hero {
        min-height: 240px;
        padding: 2.5rem 0 3.5rem;
    }

    .tl-hero-title {
        font-size: 1.8rem;
    }

    .tl-main {
        padding: 0 16px 40px;
    }

    .tl-card-cover {
        width: 130px;
        min-height: 120px;
    }
}

@media (max-width: 767px) {
    .tl-hero {
        min-height: 200px;
        padding: 2rem 0 3rem;
    }

    .tl-hero-title {
        font-size: 1.5rem;
    }

    .tl-hero-sub {
        font-size: 0.9rem;
    }

    .tl-stats-strip {
        padding: 12px 16px;
        gap: 10px;
    }

    .tl-stat-divider {
        display: none;
    }

    .tl-timeline::before {
        left: 16px;
    }

    .tl-year-dot {
        left: 10px;
        width: 12px;
        height: 12px;
    }

    .tl-year-text {
        margin-left: 32px;
        font-size: 0.95rem;
    }

    .tl-dot {
        left: 10px;
        width: 12px;
        height: 12px;
        top: 20px;
        border-width: 2px;
    }

    .tl-row {
        flex-direction: column;
    }

    .tl-date {
        margin-left: 36px;
        margin-bottom: 6px;
        margin-right: 0;
        margin-top: 0;
        width: auto;
        text-align: left;
    }

    .tl-card {
        margin-left: 0;
        flex-direction: column;
    }

    .tl-card-cover {
        width: 100%;
        min-height: 160px;
        max-height: 180px;
    }

    .tl-card-body {
        padding: 14px 16px;
    }

    .tl-card-title {
        font-size: 0.95rem;
    }

    .tl-card-arrow {
        display: none;
    }

    .tl-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .tl-hero-title {
        font-size: 1.3rem;
    }

    .tl-stat-val {
        font-size: 0.95rem;
    }

    .tl-card-meta {
        gap: 8px;
    }
}

/* ================================================================
   Blog 博文页面 - 响应式
   ================================================================ */
@media (max-width: 991px) {
    .blog-hero {
        min-height: 220px;
        padding: 2.5rem 0 3.5rem;
    }

    .blog-hero-title {
        font-size: 1.8rem;
    }

    .blog-main {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .blog-sidebar-left {
        position: static;
        order: -1;
    }

    .blog-sidebar-left .blog-cat-list {
        flex-direction: row;
        overflow-x: auto;
        padding: 8px;
        gap: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .blog-sidebar-left .blog-cat-link {
        white-space: nowrap;
        padding: 7px 14px;
    }

    .blog-sidebar-right {
        position: static;
    }

    .blog-card-cover {
        width: 160px;
        min-height: 150px;
    }
}

@media (max-width: 767px) {
    .blog-hero {
        min-height: 200px;
        padding: 2rem 0 3rem;
    }

    .blog-hero-title {
        font-size: 1.5rem;
    }

    .blog-hero-sub {
        font-size: 0.9rem;
    }

    .blog-card {
        flex-direction: column;
    }

    .blog-card-cover {
        width: 100%;
        min-height: 180px;
        max-height: 200px;
    }

    .blog-card-body {
        padding: 16px 18px;
    }

    .blog-card-title {
        font-size: 1.05rem;
    }

    .blog-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .blog-card-arrow {
        display: none;
    }

    .blog-stats-strip {
        padding: 12px 16px;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 1.3rem;
    }

    .blog-card-meta {
        gap: 8px;
    }

    .blog-meta-item {
        font-size: 0.72rem;
    }

    .blog-badge {
        font-size: 0.68rem;
        padding: 2px 8px;
    }
}

.tech-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

    /* 友情链接悬停容器效果 */
    .tech-links-container:hover {
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    }

/* 单个友情链接样式 */
.tech-link {
    position: relative;
    padding: 10px 18px;
    color: var(--text-primary);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    overflow: hidden;
}

    /* 链接背景渐变效果 */
    .tech-link::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--gradient-primary);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 0;
    }

/* 链接文字 */
.link-text {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

    /* 链接文字前缀 */
    .link-text::before {
        content: '# ';
        color: var(--primary-color);
        margin-right: 4px;
        transition: color 0.3s ease;
    }

/* 友情链接悬停效果 */
.tech-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.3);
    border-color: var(--primary-color);
}

    /* 友情链接悬停时的渐变背景 */
    .tech-link:hover::before {
        opacity: 1;
    }

    /* 友情链接悬停时的文字颜色 */
    .tech-link:hover .link-text {
        color: #1976d2;
    }

        /* 友情链接悬停时的前缀颜色 */
        .tech-link:hover .link-text::before {
            color: #1976d2;
        }

/* 响应式调整 */
@media (max-width: 768px) {
    /* ================================================================
   Blog 博文页面
   ================================================================ */

/* 根容器 */
.blog-root {
    min-height: 100vh;
    background: var(--bg-primary, #fff);
}

/* Hero 区域 */
.blog-hero {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3rem 0 4rem;
}

.blog-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #1a1a2e 100%);
    z-index: 0;
}

.blog-hero-bg::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    border-radius: 50%;
    animation: blogHeroFloat 20s ease-in-out infinite;
}

.blog-hero-bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
    border-radius: 50%;
    animation: blogHeroFloat 25s ease-in-out infinite reverse;
}

@keyframes blogHeroFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -40px); }
    66% { transform: translate(-20px, 20px); }
}

.blog-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.blog-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.blog-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.blog-hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.blog-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 1;
    line-height: 0;
}

.blog-hero-wave svg {
    width: 100%;
    height: 70px;
}

/* 主布局 */
.blog-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 180px 1fr 250px;
    gap: 24px;
    min-height: 60vh;
}

/* 左侧分类 */
.blog-sidebar-left {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.blog-sidebar-left .cl-card {
    margin-top: 0;
}

.blog-sidebar-left .cl-card-body {
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.blog-sidebar-left .cl-card-body a {
    width: 100%;
    margin: 3px 0;
    color: var(--text-primary, #333);
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-sidebar-left .cl-card-body a::after {
    display: none;
}

.blog-sidebar-left .cl-card-body a:hover,
.blog-sidebar-left .cl-card-body a.active {
    background: var(--accent-bg, #eff6ff);
    color: var(--accent-color, #3b82f6);
    text-decoration: none;
}

/* 统计条 */
.blog-stats-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-primary, #fff);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

body[data-theme="dark"] .blog-stats-strip {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.blog-stats-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary, #6c757d);
    font-size: 0.88rem;
}

.blog-stats-item svg {
    color: var(--accent-color, #3b82f6);
}

.blog-stats-num {
    font-weight: 700;
    color: var(--accent-color, #3b82f6);
    font-size: 1.1rem;
}

.blog-stats-label {
    color: var(--text-muted, #999);
}

.blog-stats-divider {
    width: 1px;
    height: 20px;
    background: var(--border-color, #e2e8f0);
}

/* 文章列表 */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 文章卡片 */
.blog-card {
    display: flex;
    align-items: stretch;
    background: var(--bg-primary, #fff);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    text-decoration: none;
    color: var(--text-primary, #1a1a2e);
    position: relative;
}

.blog-card * {
    color: inherit;
}

.blog-card:hover {
    text-decoration: none;
}

.blog-card::after {
    display: none;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(59, 130, 246, 0.15);
    text-decoration: none;
}

body[data-theme="dark"] .blog-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--text-primary, rgba(255, 255, 255, 0.95));
}

body[data-theme="dark"] .blog-card:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.3);
    text-decoration: none;
}

/* 封面图 */
.blog-card-cover {
    width: 200px;
    min-height: 180px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.blog-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.blog-card:hover .blog-card-cover img {
    transform: scale(1.08);
}

.blog-card-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 60%, rgba(0,0,0,0.04));
    pointer-events: none;
}

body[data-theme="dark"] .blog-card-cover-overlay {
    background: linear-gradient(to right, transparent 60%, rgba(0,0,0,0.2));
}

/* 卡片内容 */
.blog-card-body {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

/* 徽章 */
.blog-card-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.blog-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.blog-badge-top {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.blog-badge-hot {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.blog-badge-rec {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

body[data-theme="dark"] .blog-badge-top {
    background: rgba(59, 130, 246, 0.15);
}

body[data-theme="dark"] .blog-badge-hot {
    background: rgba(239, 68, 68, 0.15);
}

body[data-theme="dark"] .blog-badge-rec {
    background: rgba(16, 185, 129, 0.15);
}

/* 标题 */
.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin: 0 0 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--accent-color, #3b82f6);
}

/* 摘要 */
.blog-card-excerpt {
    font-size: 0.88rem;
    color: var(--text-secondary, #6c757d);
    line-height: 1.7;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 底部 */
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.blog-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--text-muted, #999);
}

.blog-meta-item svg {
    opacity: 0.6;
}

/* 标签 */
.blog-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.blog-tag {
    font-size: 0.72rem;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.06);
    color: var(--accent-color, #3b82f6);
    font-weight: 500;
    transition: all 0.25s ease;
}

body[data-theme="dark"] .blog-tag {
    background: rgba(59, 130, 246, 0.12);
}

.blog-card:hover .blog-tag {
    background: rgba(59, 130, 246, 0.12);
}

/* 阅读箭头 */
.blog-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    flex-shrink: 0;
    color: var(--text-muted, #ccc);
    transition: all 0.3s ease;
}

.blog-card:hover .blog-card-arrow {
    color: var(--accent-color, #3b82f6);
}

.blog-card:hover .blog-card-arrow svg {
    transform: translateX(4px);
}

/* 发布按钮 */
.blog-publish-bar {
    text-align: center;
    margin: 28px 0;
}

.blog-publish-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

.blog-publish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.35);
}

/* 分页 */
.blog-pagination {
    text-align: center;
    padding: 30px 0 40px;
}

/* 空状态 */
.blog-empty {
    text-align: center;
    padding: 80px 0;
}

/* 右侧边栏 */
.blog-sidebar-right {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.blog-sidebar-right .cl-card {
    margin-top: 0;
}

/* 分类侧栏卡片 */
.blog-cat-card {
    background: var(--bg-primary, #fff);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

body[data-theme="dark"] .blog-cat-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.blog-cat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.blog-cat-header svg {
    color: var(--accent-color, #3b82f6);
}

body[data-theme="dark"] .blog-cat-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.blog-cat-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
}

.blog-cat-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--text-primary, #333);
    font-size: 0.85rem;
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
}

.blog-cat-link::after {
    display: none;
}

.blog-cat-link svg {
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.25s ease;
    color: var(--accent-color, #3b82f6);
}

.blog-cat-link:hover,
.blog-cat-link.active {
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-color, #3b82f6);
    text-decoration: none;
}

.blog-cat-link:hover svg,
.blog-cat-link.active svg {
    opacity: 1;
    transform: translateX(0);
}

.blog-cat-link.active {
    font-weight: 600;
}

body[data-theme="dark"] .blog-cat-link:hover,
body[data-theme="dark"] .blog-cat-link.active {
    background: rgba(59, 130, 246, 0.12);
}

/* ================================================================
   Post 博文详情页
   ================================================================ */

/* AI 智能摘要 */
.ai-summary {
    margin: 20px auto 24px;
    padding: 20px 24px 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.12);
    position: relative;
    overflow: hidden;
}
.ai-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #6366f1, #06b6d4);
}
body[data-theme="dark"] .ai-summary {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(99, 102, 241, 0.08));
    border-color: rgba(59, 130, 246, 0.2);
}
.ai-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.ai-summary-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ai-summary-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-color, #2563eb);
    letter-spacing: -0.01em;
}
.ai-summary-body {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text-primary, #374151);
    text-align: justify;
    margin-bottom: 12px;
}
.ai-summary-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3b82f6;
    font-size: 0.88rem;
}
.ai-spin-icon svg {
    animation: aiSpin 1s linear infinite;
}
@keyframes aiSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.ai-summary-error {
    color: #ef4444;
    font-weight: 500;
}
.ai-summary-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted, #9ca3af);
    border-top: 1px solid rgba(59, 130, 246, 0.08);
    padding-top: 10px;
}
body[data-theme="dark"] .ai-summary-footer {
    border-top-color: rgba(59, 130, 246, 0.15);
}

/* 文章徽章 */
.post-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.post-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}
.post-badge-top {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.post-badge-hot {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}
.post-badge-rec {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
body[data-theme="dark"] .post-badge-top {
    background: rgba(239, 68, 68, 0.15);
}
body[data-theme="dark"] .post-badge-hot {
    background: rgba(245, 158, 11, 0.15);
}
body[data-theme="dark"] .post-badge-rec {
    background: rgba(16, 185, 129, 0.15);
}

/* 分类栏 */
.post-cats-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.post-cat-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-muted, #6b7280);
    background: rgba(59, 130, 246, 0.06);
    padding: 4px 10px;
    border-radius: 6px;
}
body[data-theme="dark"] .post-cat-item {
    background: rgba(59, 130, 246, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.post-root {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 24px 40px;
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 24px;
    min-height: 100vh;
}

.post-article-card {
    background: var(--bg-primary, #fff);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

body[data-theme="dark"] .post-article-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

/* 文章头部 */
.post-header {
    padding: 32px 32px 0;
}

.post-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary, #1a1a2e);
    line-height: 1.4;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.post-meta-bar {
    margin-bottom: 12px;
}

.post-meta-bar .counts {
    flex-wrap: wrap;
    gap: 1rem !important;
}

.post-tags-bar {
    margin-bottom: 8px;
}

.post-tags-bar .tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* 文章内容 */
.post-content {
    padding: 24px 32px;
}

.post-content .cl-card {
    box-shadow: none;
    border: none;
    margin-top: 0;
    background: transparent;
}

.post-content .cl-card-body {
    background: transparent;
    padding: 0;
}

/* 分隔线 */
.post-divider {
    margin: 0 32px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(59, 130, 246, 0.15), transparent);
}

/* 评论区 */
.post-comments {
    padding: 24px 32px 32px;
}

/* 发布按钮 */
.post-publish-bar {
    text-align: center;
    padding: 20px 0;
}

/* 侧边栏 */
.post-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.post-sidebar .cl-card {
    margin-top: 0;
}

/* ================================================================
   Post 博文详情页 - 响应式
   ================================================================ */
@media (max-width: 991px) {
    .post-root {
        grid-template-columns: 1fr;
        padding: 80px 16px 40px;
    }

    .post-sidebar {
        position: static;
    }

    .post-header {
        padding: 24px 20px 0;
    }

    .post-title {
        font-size: 1.4rem;
    }

    .post-content {
        padding: 20px;
    }

    .post-divider {
        margin: 0 20px;
    }

    .post-comments {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.2rem;
    }

    .post-header {
        padding: 20px 16px 0;
    }

    .post-content {
        padding: 16px;
    }

    .post-divider {
        margin: 0 16px;
    }

    .post-comments {
        padding: 16px;
    }
}

/* ================================================================
   Timeline 时间线页面
   ================================================================ */

/* Hero 区域 */
.tl-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3rem 0 4rem;
}

.tl-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #1a1a2e 100%);
    z-index: 0;
}

.tl-hero-bg::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent 70%);
    border-radius: 50%;
    animation: tlHeroFloat 20s ease-in-out infinite;
}

.tl-hero-bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
    border-radius: 50%;
    animation: tlHeroFloat 25s ease-in-out infinite reverse;
}

@keyframes tlHeroFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -40px); }
    66% { transform: translate(-20px, 20px); }
}

.tl-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.tl-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
}

.tl-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tl-hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.tl-hero-num {
    color: #06b6d4;
    font-weight: 700;
}

.tl-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 1;
    line-height: 0;
}

.tl-hero-wave svg {
    width: 100%;
    height: 70px;
}

/* 主容器 */
.tl-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

/* 统计条 */
.tl-stats-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--bg-primary, #fff);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 32px;
    flex-wrap: wrap;
}

body[data-theme="dark"] .tl-stats-strip {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.tl-stat-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary, #6c757d);
    font-size: 0.88rem;
}

.tl-stat-chip svg {
    color: var(--accent-color, #2563eb);
    opacity: 0.7;
}

.tl-stat-val {
    font-weight: 700;
    color: var(--accent-color, #2563eb);
    font-size: 1.05rem;
}

.tl-stat-lbl {
    color: var(--text-muted, #999);
}

.tl-stat-divider {
    width: 1px;
    height: 20px;
    background: var(--border-color, #e2e8f0);
}

/* 时间线动画 */
@keyframes tlFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 时间线 */
.tl-timeline {
    position: relative;
    padding-left: 0;
}

.tl-timeline::before {
    content: '';
    position: absolute;
    left: 72px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #3b82f6, #06b6d4, #3b82f6);
    opacity: 0.2;
}

/* 年份标记 */
.tl-year-marker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 16px;
    position: relative;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tl-year-marker.tl-animate {
    animation: tlFadeInUp 0.5s ease forwards;
}

.tl-year-marker:first-child {
    margin-top: 0;
}

.tl-year-dot {
    position: absolute;
    left: 66px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.tl-year-text {
    margin-left: 96px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-color, #2563eb);
    letter-spacing: -0.01em;
    background: var(--bg-primary, #fff);
    padding: 4px 16px 4px 0;
    border-radius: 8px;
}

body[data-theme="dark"] .tl-year-text {
    background: var(--bg-primary, #1e1e1e);
}

/* 时间线行 */
.tl-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tl-row.tl-animate {
    animation: tlFadeInUp 0.6s ease forwards;
}

/* 时间点 */
.tl-dot {
    position: absolute;
    left: 66px;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-primary, #fff);
    border: 3px solid #3b82f6;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.06);
    transition: all 0.3s ease;
}

body[data-theme="dark"] .tl-dot {
    background: #1e1e1e;
}

.tl-row:hover .tl-dot {
    background: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15);
    transform: scale(1.2);
}

/* 日期 */
.tl-date {
    flex-shrink: 0;
    width: 56px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-color, #2563eb);
    background: rgba(37, 99, 235, 0.06);
    border-radius: 6px;
    padding: 4px 6px;
    margin-right: 40px;
    margin-top: 22px;
    line-height: 1.3;
}

body[data-theme="dark"] .tl-date {
    background: rgba(37, 99, 235, 0.12);
}

/* 卡片 */
.tl-card {
    flex: 1;
    display: flex;
    align-items: stretch;
    background: var(--bg-primary, #fff);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    text-decoration: none;
    color: var(--text-primary, #1a1a2e);
    position: relative;
}

.tl-card * {
    color: inherit;
}

.tl-card:hover {
    text-decoration: none;
}

.tl-card::after {
    display: none;
}

body[data-theme="dark"] .tl-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--text-primary, rgba(255, 255, 255, 0.95));
}

.tl-card:hover {
    transform: translateX(4px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.08);
    border-color: rgba(59, 130, 246, 0.15);
}

body[data-theme="dark"] .tl-card:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

.tl-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #3b82f6, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 14px 0 0 14px;
}

.tl-card:hover::before {
    opacity: 1;
}

/* 封面图 */
.tl-card-cover {
    width: 160px;
    min-height: 140px;
    flex-shrink: 0;
    overflow: hidden;
}

.tl-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.tl-card:hover .tl-card-cover img {
    transform: scale(1.08);
}

/* 卡片主体 */
.tl-card-body {
    flex: 1;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

/* 头部 */
.tl-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.tl-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.tl-badge-top {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.tl-badge-hot {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.tl-badge-rec {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

body[data-theme="dark"] .tl-badge-top {
    background: rgba(59, 130, 246, 0.15);
}

body[data-theme="dark"] .tl-badge-hot {
    background: rgba(239, 68, 68, 0.15);
}

body[data-theme="dark"] .tl-badge-rec {
    background: rgba(16, 185, 129, 0.15);
}

.tl-card-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted, #999);
    margin-left: auto;
}

/* 标题 */
.tl-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    line-height: 1.5;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.tl-card:hover .tl-card-title {
    color: var(--accent-color, #2563eb);
}

/* 摘要 */
.tl-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary, #6c757d);
    line-height: 1.7;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 底部 */
.tl-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.tl-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tl-meta-cat,
.tl-meta-views,
.tl-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted, #999);
}

.tl-meta-cat svg,
.tl-meta-views svg,
.tl-meta-author svg {
    opacity: 0.6;
}

/* 标签 */
.tl-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tl-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(37, 99, 235, 0.06);
    color: var(--accent-color, #2563eb);
    font-weight: 500;
    transition: all 0.25s ease;
}

body[data-theme="dark"] .tl-tag {
    background: rgba(37, 99, 235, 0.12);
}

.tl-card:hover .tl-tag {
    background: rgba(37, 99, 235, 0.12);
}

/* 箭头 */
.tl-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    flex-shrink: 0;
    color: var(--text-muted, #ccc);
    transition: all 0.3s ease;
}

.tl-card:hover .tl-card-arrow {
    color: var(--accent-color, #2563eb);
}

.tl-card:hover .tl-card-arrow svg {
    transform: translateX(3px);
}

/* 空状态 */
.tl-empty {
    text-align: center;
    padding: 80px 0;
}

/* 页脚 */
.tl-footer {
    text-align: center;
    padding: 40px 0 20px;
    color: var(--text-muted, #999);
    font-size: 0.85rem;
}

.tl-footer-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, #3b82f6, #06b6d4);
    border-radius: 1px;
    margin: 0 auto 16px;
    opacity: 0.4;
}

/* ================================================================
   Timeline 时间线页面 - 响应式
   ================================================================ */
@media (max-width: 991px) {
    .tl-hero {
        min-height: 240px;
        padding: 2.5rem 0 3.5rem;
    }

    .tl-hero-title {
        font-size: 1.8rem;
    }

    .tl-main {
        padding: 0 16px 40px;
    }

    .tl-card-cover {
        width: 130px;
        min-height: 120px;
    }
}

@media (max-width: 767px) {
    .tl-hero {
        min-height: 200px;
        padding: 2rem 0 3rem;
    }

    .tl-hero-title {
        font-size: 1.5rem;
    }

    .tl-hero-sub {
        font-size: 0.9rem;
    }

    .tl-stats-strip {
        padding: 12px 16px;
        gap: 10px;
    }

    .tl-stat-divider {
        display: none;
    }

    .tl-timeline::before {
        left: 16px;
    }

    .tl-year-dot {
        left: 10px;
        width: 12px;
        height: 12px;
    }

    .tl-year-text {
        margin-left: 32px;
        font-size: 0.95rem;
    }

    .tl-dot {
        left: 10px;
        width: 12px;
        height: 12px;
        top: 20px;
        border-width: 2px;
    }

    .tl-row {
        flex-direction: column;
    }

    .tl-date {
        margin-left: 36px;
        margin-bottom: 6px;
        margin-right: 0;
        margin-top: 0;
        width: auto;
        text-align: left;
    }

    .tl-card {
        margin-left: 0;
        flex-direction: column;
    }

    .tl-card-cover {
        width: 100%;
        min-height: 160px;
        max-height: 180px;
    }

    .tl-card-body {
        padding: 14px 16px;
    }

    .tl-card-title {
        font-size: 0.95rem;
    }

    .tl-card-arrow {
        display: none;
    }

    .tl-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .tl-hero-title {
        font-size: 1.3rem;
    }

    .tl-stat-val {
        font-size: 0.95rem;
    }

    .tl-card-meta {
        gap: 8px;
    }
}

/* ================================================================
   Blog 博文页面 - 响应式
   ================================================================ */
@media (max-width: 991px) {
    .blog-hero {
        min-height: 220px;
        padding: 2.5rem 0 3.5rem;
    }

    .blog-hero-title {
        font-size: 1.8rem;
    }

    .blog-main {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .blog-sidebar-left {
        position: static;
        order: -1;
    }

    .blog-sidebar-left .blog-cat-list {
        flex-direction: row;
        overflow-x: auto;
        padding: 8px;
        gap: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .blog-sidebar-left .blog-cat-link {
        white-space: nowrap;
        padding: 7px 14px;
    }

    .blog-sidebar-right {
        position: static;
    }

    .blog-card-cover {
        width: 160px;
        min-height: 150px;
    }
}

@media (max-width: 767px) {
    .blog-hero {
        min-height: 200px;
        padding: 2rem 0 3rem;
    }

    .blog-hero-title {
        font-size: 1.5rem;
    }

    .blog-hero-sub {
        font-size: 0.9rem;
    }

    .blog-card {
        flex-direction: column;
    }

    .blog-card-cover {
        width: 100%;
        min-height: 180px;
        max-height: 200px;
    }

    .blog-card-body {
        padding: 16px 18px;
    }

    .blog-card-title {
        font-size: 1.05rem;
    }

    .blog-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .blog-card-arrow {
        display: none;
    }

    .blog-stats-strip {
        padding: 12px 16px;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 1.3rem;
    }

    .blog-card-meta {
        gap: 8px;
    }

    .blog-meta-item {
        font-size: 0.72rem;
    }

    .blog-badge {
        font-size: 0.68rem;
        padding: 2px 8px;
    }
}

.tech-links-container {
        padding: 16px;
        gap: 8px;
    }

    .tech-link {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}
/* /Shared/HomeLayout.razor.rz.scp.css */
/* 英雄区增强 */
.hero-section {
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(25, 118, 210, 0.15), transparent 70%);
        animation: float-b-x8uwvq9uf8 20s ease-in-out infinite;
        z-index: -1;
    }

    .hero-section::after {
        content: '';
        position: absolute;
        bottom: -30%;
        right: -20%;
        width: 150%;
        height: 150%;
        background: radial-gradient(circle, rgba(63, 81, 181, 0.1), transparent 70%);
        animation: float-b-x8uwvq9uf8 25s ease-in-out infinite reverse;
        z-index: -1;
    }

/* 浮动动画 */
@keyframes float-b-x8uwvq9uf8 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* 英雄区标题增强 */
.hero-section h2 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    background: var(--gradient-primary);
    /*-webkit-background-clip: text;*/
    -webkit-text-fill-color: transparent;
    /*background-clip: text;*/
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.8s ease-out;
}

.hero-section h5 {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    animation: fadeIn 1s ease-out 0.3s both;
}

/* 卡片网格布局 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 卡片动画延迟 */
.tech-card:nth-child(1) {
    animation-delay: 0.1s;
}

.tech-card:nth-child(2) {
    animation-delay: 0.2s;
}

.tech-card:nth-child(3) {
    animation-delay: 0.3s;
}

.tech-card:nth-child(4) {
    animation-delay: 0.4s;
}

.tech-card:nth-child(5) {
    animation-delay: 0.5s;
}

.tech-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 3rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
/* /Shared/Logo.razor.rz.scp.css */
.logo-overlay {
    position: relative; /* 建立相对定位上下文 */
    display: inline-block; /* 根据内容调整宽度 */
}

    .logo-overlay img {
        display: block; /* 消除图片底部间隙 */
        height: 80px; /* 设置固定高度 */
        width: auto;
    }

.logo-overlay-text {
    position: absolute;
    top: 5px; /* 距离顶部距离，可调整 */
    right: 5px; /* 距离右侧距离，可调整 */
    color: white; /* 文字颜色，根据图片背景调整 */
    font-size: 28px; /* 文字大小，可调整 */
    font-weight: bold; /* 加粗显示更清晰 */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); /* 文字阴影，增强可读性 */
    white-space: nowrap; /* 防止文字换行 */
    padding: 2px 6px; /* 内边距，让文字有呼吸空间 */
    /*     background-color: rgba(0, 0, 0, 0.5); /* 半透明背景，增强可读性 */
    border-radius: 3px; /* 圆角边框 */
}
/* /Shared/SettingBtns.razor.rz.scp.css */
/* 容器设置 */
.floating-btn-container {
    z-index: 1001;
    position: fixed;
    bottom: 7%;
    right: 4%;
    /*display: flex;*/
    /*flex-direction: column;*/
    /*align-items: center;*/
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
}







/* 激活器样式*/
.floating-btn {
    --btn-size: 48px;
    position: absolute;
    left: calc(var(--btn-size) / -2);
    bottom: calc(var(--btn-size) / -2);
    width: var(--btn-size);
    height: var(--btn-size);
    background-color: #007bff;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 24px;
    -webkit-user-select: none;
    user-select: none;
    font-weight: bold;
    opacity: 0.3;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
    transition-property: opacity, box-shadow;

    &:hover {
        opacity: 1;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    & div.far {
        transition-duration: 0.3s;
        transition-timing-function: ease-out;
        transition-property: transform;
    }
}







/* 菜单列表样式 */
.floating-btns {
    position: absolute;
    display: flex;
    gap: 0.8em;
    font-size: 16px;
    opacity: 0;
    pointer-events: none;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
    transition-property: opacity, transform;
    align-items: center;
    justify-items: center;
    /* transform: rotate(-15deg); */
    /* 竖向 */
    &.direction-top,
    &.direction-bottom {
        flex-direction: column;
        left: -50%;
        width: 100%;

        & .btn::after {
            white-space: nowrap;
            right: 3.5em;
            padding: 3px 12px;
        }
    }

    &.direction-top {
        transform: translate(-024px, 036px);
        bottom: calc(50% + 0054px);
        transform-origin: bottom;
    }

    &.direction-bottom {
        transform: translate(024px, -036px);
        top: calc(50% + 0054px);
        transform-origin: top;
    }
    /* 水平 */
    &.direction-left,
    &.direction-right {
        flex-direction: row;
        height: 100%;
        top: 50%;

        & .btn::after {
            writing-mode: vertical-lr;
            white-space: nowrap;
            bottom: 3.5em;
            padding: 12px 3px;
        }
    }

    &.direction-left {
        transform: translate(036px, 024px);
        right: calc(50% + 0054px);
        transform-origin: right;
    }

    &.direction-right {
        transform: translate(-036px, -024px);
        left: calc(50% + 0054px);
        transform-origin: left;
    }
    /* 初始位置稍微偏下 */

    & .btn {
        --btn-size: 2.2em;
        width: var(--btn-size);
        height: var(--btn-size);
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        transition-duration: 0.3s;
        transition-timing-function: ease-out;
        transition-property: transform;
        background-color: white;
        color: inherit;

        &::before {
            content: "\f00c";
            color: #12aa9c;
            /* font-weight: bold; */
            font-family: "Font Awesome 5 Pro";
            position: absolute;
            font-size: 20px;
            opacity: 0;
            pointer-events: none;
            transition-duration: 0.3s;
            transition-timing-function: ease-out;
            transition-property: opacity, transform;
        }


        &.checked {
            transform: scale(1.5);
            z-index: 10;

            &::before {
                opacity: 1;
                transform: scale(1.3);
            }

            & .far {
                opacity: 0;
            }

                & .far::before {
                    display: none;
                }
        }

        &::after {
            content: attr(title);
            background-color: rgba(255, 255, 255, 0.1);
            position: absolute;
            font-size: 0.7em;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            opacity: 0;
            transition-duration: 0.3s;
            transition-timing-function: ease-out;
            transition-property: opacity;
        }

        & div.far {
            transition-duration: 0.8s;
            transition-timing-function: ease-out;
            transition-property: transform, opacity;
        }
        /* 悬停按钮的缩放效果 */
        &:hover {
            transform: scale(1.5);
            z-index: 10;

            &::after {
                opacity: 1;
            }

            & div.far {
                transform: rotate(360deg);
            }
        }
    }
}










/* 展开 */
.floating-btn-container.open {
    & .floating-btns {
        opacity: 1;
        pointer-events: all;
        transform: none;
    }

    & .floating-btn {
        opacity: 1;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

        & div.far {
            /* 主按钮旋转成“X”样式 */
            transform: rotate(45deg);
        }
    }
}


/* 未实装 */
[not-release].btn,
[not-release] > .btn {
    pointer-events: none !important;
    background-color: rgba(99, 99, 99, .5) !important;
    color: grey !important;

    &::after {
        content: attr(title) " - 未实装" !important;
        opacity: 1 !important;
        color: rgba(255, 69, 0, 1) !important;
    }
    /* 解除注释 强制隐藏未实装功能 */
    /* display: none !important; */
}
/* /Shared/SiteFooter.razor.rz.scp.css */
/* 现代化页脚样式 */
.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    padding: 3rem 0 1.5rem;
    color: var(--text-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
}

    /* 页脚顶部的渐变装饰条 */
    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--gradient-primary);
        animation: shimmer 4s infinite alternate;
    }

    /* 页脚中的Logo样式 */
    .footer .logo-text {
        color: var(--text-inverse) !important;
        transition: all 0.3s ease;
    }

        .footer .logo-text:hover {
            color: var(--primary-color) !important;
            transform: scale(1.05);
        }

    /* 页脚描述文字 */
    .footer .desc {
        margin-top: 1rem;
        font-size: 0.95rem;
        line-height: 1.6;
        color: var(--text-secondary);
        max-width: 300px;
        opacity: 0.9;
    }

    /* 页脚标题 */
    .footer h5 {
        color: var(--text-inverse);
        font-weight: 700;
        font-size: 1.15rem;
        margin-bottom: 1.5rem;
        transition: all 0.3s ease;
        position: relative;
        padding-bottom: 0.5rem;
    }

        /* 页脚标题下方的装饰线 */
        .footer h5::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 2px;
            background: var(--primary-color);
            border-radius: 2px;
            transition: width 0.3s ease;
        }

        /* 页脚标题悬停效果 */
        .footer h5:hover {
            color: var(--primary-color);
        }

            /* 页脚标题悬停时的装饰线效果 */
            .footer h5:hover::after {
                width: 60px;
            }

    /* 页脚列表项 */
    .footer ul li {
        margin: 0.75rem 0;
        transition: all 0.3s ease;
    }

        /* 页脚列表项悬停效果 */
        .footer ul li:hover {
            transform: translateX(8px);
        }

        /* 页脚列表项图标 */
        .footer ul li i {
            color: var(--primary-color);
            font-size: 0.85rem;
            margin-right: 0.75rem;
            transition: all 0.3s ease;
            display: inline-block;
        }

        /* 页脚列表项悬停时的图标效果 */
        .footer ul li:hover i {
            transform: translateX(3px) rotate(5deg);
            color: var(--primary-light);
        }

        /* 页脚链接 */
        .footer ul li a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 0.95rem;
            position: relative;
            padding: 0.25rem 0;
        }

            /* 页脚链接下划线效果 */
            .footer ul li a::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 0;
                height: 1px;
                background: var(--primary-color);
                transition: width 0.3s ease;
            }

        /* 页脚链接悬停效果 */
        .footer ul li:hover a {
            color: var(--primary-color);
        }

            /* 页脚链接悬停时的下划线效果 */
            .footer ul li:hover a::after {
                width: 100%;
            }

    /* 二维码容器 */
    .footer .qrcode {
        background: rgba(255, 255, 255, 0.05);
        padding: 1.2rem;
        border-radius: 16px;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(15px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

        /* 二维码容器悬停效果 */
        .footer .qrcode:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 16px 32px rgba(25, 118, 210, 0.3);
            border-color: var(--primary-color);
        }

        /* 二维码图片 */
        .footer .qrcode img {
            border-radius: 10px;
            box-shadow: var(--shadow-lg);
            transition: all 0.3s ease;
            background: white;
            padding: 8px;
        }

        /* 二维码悬停时的图片效果 */
        .footer .qrcode:hover img {
            box-shadow: 0 8px 25px rgba(25, 118, 210, 0.4);
        }

    /* 版权信息 */
    .footer .copyright {
        margin-top: 3rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
        font-size: 0.9rem;
        color: var(--text-secondary);
        position: relative;
        opacity: 0.9;
    }

        /* 版权信息上方的装饰点 */
        .footer .copyright::before {
            content: '';
            position: absolute;
            top: -1px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: var(--gradient-primary);
            border-radius: 3px;
        }

        /* 版权信息链接 */
        .footer .copyright a {
            color: var(--text-secondary);
            text-decoration: none;
            margin: 0 0.75rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            padding: 0.25rem 0;
        }

            /* 版权信息链接下划线效果 */
            .footer .copyright a::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 0;
                height: 1px;
                background: var(--primary-color);
                transition: width 0.3s ease;
            }

            /* 版权信息链接悬停效果 */
            .footer .copyright a:hover {
                color: var(--primary-color);
            }

                /* 版权信息链接悬停时的下划线效果 */
                .footer .copyright a:hover::after {
                    width: 100%;
                }

/* 响应式设计 */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }

        .footer .desc {
            max-width: 100%;
            margin-bottom: 2rem;
        }

        .footer h5 {
            font-size: 1.1rem;
            margin-top: 1.5rem;
        }

        .footer .qrcode {
            margin-top: 1.5rem;
            padding: 1rem;
        }

            .footer .qrcode img {
                width: 150px;
                height: 150px;
            }

        .footer .copyright {
            margin-top: 2rem;
            padding-top: 1.5rem;
            font-size: 0.85rem;
        }
}

@media (max-width: 480px) {
    .footer ul li {
        margin: 0.6rem 0;
    }

        .footer ul li a {
            font-size: 0.9rem;
        }

    .footer .copyright a {
        margin: 0 0.5rem;
    }
}
/* /Shared/SiteHeader.razor.rz.scp.css */

/* ====== 登录弹窗样式 ====== */
.login-layer-override {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    overflow: hidden !important;
}
.login-layer-override .layui-layer-content {
    border-radius: 20px !important;
    overflow: hidden !important;
}
.login-layer-override .layui-layer-close {
    top: 12px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    font-size: 18px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.06) !important;
    transition: all 0.2s ease !important;
}
.login-layer-override .layui-layer-close:hover {
    background: rgba(0, 0, 0, 0.12) !important;
    transform: rotate(90deg) !important;
}

.login-dialog {
    padding: 36px 32px 28px;
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
    min-height: 320px;
}
body[data-theme="dark"] .login-dialog {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}
.login-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 2px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}
body[data-theme="dark"] .login-avatar {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.15));
    border-color: rgba(59, 130, 246, 0.3);
}
.login-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary, #1a1a2e);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.login-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted, #9ca3af);
    margin: 0;
}

.login-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.login-field {
    position: relative;
    display: flex;
    align-items: center;
}
.login-field-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-muted, #9ca3af);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 2;
}
.login-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    border: 2px solid rgba(59, 130, 246, 0.12);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-primary, #1a1a2e);
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.25s ease;
    outline: none;
    box-sizing: border-box;
}
.login-input:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08), 0 4px 12px rgba(59, 130, 246, 0.06);
}
.login-input:focus + .login-field-icon,
.login-field:focus-within .login-field-icon {
    color: #3b82f6;
}
.login-input::placeholder {
    color: var(--text-muted, #b0b8c8);
}
body[data-theme="dark"] .login-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
    color: rgba(255, 255, 255, 0.9);
}
body[data-theme="dark"] .login-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.login-msg {
    text-align: center;
    min-height: 24px;
    line-height: 24px;
    font-size: 0.85rem;
}
.login-error {
    color: #ef4444;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.login-loading {
    color: #3b82f6;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.login-loading svg {
    animation: loginSpin 1s linear infinite;
}
@keyframes loginSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

/* ====== 退出确认弹窗样式 ====== */
.logout-layer-override {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    overflow: hidden !important;
}
.logout-layer-override .layui-layer-content {
    border-radius: 20px !important;
    overflow: hidden !important;
}
.logout-layer-override .layui-layer-close {
    top: 12px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    font-size: 18px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.06) !important;
    transition: all 0.2s ease !important;
}
.logout-layer-override .layui-layer-close:hover {
    background: rgba(0, 0, 0, 0.12) !important;
    transform: rotate(90deg) !important;
}

.logout-dialog {
    padding: 36px 32px 28px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    text-align: center;
}
body[data-theme="dark"] .logout-dialog {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
.logout-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid rgba(245, 158, 11, 0.2);
}
body[data-theme="dark"] .logout-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.15));
    border-color: rgba(245, 158, 11, 0.3);
}
.logout-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary, #1a1a2e);
    margin: 0 0 8px;
}
.logout-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted, #9ca3af);
    margin: 0 0 28px;
}
.logout-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.logout-btn {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logout-btn-cancel {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-secondary, #6c757d);
}
.logout-btn-cancel:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}
body[data-theme="dark"] .logout-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}
body[data-theme="dark"] .logout-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
}
.logout-btn-confirm {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.2);
}
.logout-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}
.logout-btn-confirm:active {
    transform: translateY(0);
}

/* 博客导航栏背景颜色 */
.bg-tech-nav {
    background: var(--bg-header);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

/* 用户头像圆形框 */
.user-avatar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    background: linear-gradient(135deg, #2196f3, #1976d2) !important;
    color: #fff !important;
    border-radius: 50% !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    box-shadow: 0 2px 10px rgba(25, 118, 210, 0.5) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease !important;
}

    .user-avatar:hover {
        transform: scale(1.08) !important;
    }

/* 移动端导航栏改为 sticky，菜单展开时页面内容自然下移 */
@media screen and (max-width: 991px) {
    .topnav.navbar.fixed-top {
        position: sticky !important;
        top: 0;
        z-index: 1030;
    }
}

/* 滚动时的导航栏样式 */
.scrollednav {
    background: var(--bg-header) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* 导航链接样式 */
.navbar-dark .navbar-nav .nav-link {
    color: var(--text-primary);
    padding: 0.65rem 1.25rem;
    margin: 0 0.25rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-block: -6px;
    transition: color 0.3s ease;
}

    /* 导航链接悬停效果 */
    .navbar-dark .navbar-nav .nav-link:hover {
        color: var(--primary-color);
    }

    /* 导航链接下划线效果 */
    .navbar-dark .navbar-nav .nav-link::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: var(--gradient-primary);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.3s ease;
        border-radius: 4px 4px 0 0;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before {
        transform: scaleX(1);
        transform-origin: left;
    }

/* 活跃导航链接 */
.navbar-dark .navbar-nav .nav-item.active .nav-link {
    color: var(--primary-color);
}

    .navbar-dark .navbar-nav .nav-item.active .nav-link::before {
        transform: scaleX(1);
    }


/* 活动链接样式 */
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Bootstrap兼容样式 */
.navbar-light .navbar-nav .nav-link.active {
    color: rgba(0,0,0,.9) !important;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}


/* ====== 博文编辑器弹窗样式 ====== */
.editor-layer-override {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(59, 130, 246, 0.08) !important;
    overflow: hidden !important;
}
.editor-layer-override .layui-layer-content {
    border-radius: 16px !important;
    overflow: hidden !important;
}
.editor-layer-override .layui-layer-close {
    display: none !important;
}
.editor-layer-override .layui-layer-title {
    display: none !important;
}
