/* GLEN知识分享 - 自定义样式 */

/* 全局样式重置和基础设置 */
:root {
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --secondary-color: #f472b6;
    --secondary-gradient: linear-gradient(135deg, #f472b6 0%, #fb7185 100%);
    --accent-color: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --text-color: #374151;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --background-light: #f9fafb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 文章阅读相关变量 */
    --reading-font-size: 18px;
    --reading-line-height: 1.8;
    --heading-line-height: 1.3;
    --content-max-width: 800px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-light);
    margin: 0;
    padding: 0;
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: none;
    padding: 1.5rem 0;
    transition: var(--transition);
    margin-bottom: 2rem;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.navbar-brand:hover {
    color: var(--primary-light) !important;
    transform: translateY(-1px);
}

.brand-icon {
    font-size: 1.8rem !important;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    margin: 0 0.5rem;
    padding: 0.6rem 1rem !important;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

/* 搜索框样式 */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: white;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-gradient);
}

/* 主要内容区域 */
.container {
    max-width: 1200px;
    padding-left: 2rem;
    padding-right: 2rem;
}

.main-content {
    padding: 2rem 0;
}

/* 英雄区域重新设计 - 更柔和的配色 */
.hero-section {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.8) 0%, 
        rgba(139, 92, 246, 0.7) 50%, 
        rgba(6, 182, 212, 0.6) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="dots" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="1000" height="1000" fill="url(%23dots)"/></svg>');
    border-radius: var(--border-radius);
    margin: 2rem 0;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, rgba(255,255,255,1), rgba(255,255,255,0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-cta {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    font-size: 1rem;
}

.hero-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

/* 装饰性图标 */
.hero-icon {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8rem;
    opacity: 0.15;
    color: white;
}

/* 区域标题样式 */
.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 4rem;
    margin-top: 4rem;
    text-align: center;
    position: relative;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* 卡片样式重新设计 */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: white;
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.2);
}

.card-img-top {
    border-radius: 0;
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 2.5rem;
}

.card-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-text {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* 标签样式 */
.badge {
    background: var(--accent-gradient);
    color: white;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.75rem;
    text-decoration: none;
    display: inline-block;
    margin: 0.25rem;
    transition: var(--transition);
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

/* 空状态样式 - 更有趣的设计 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
    opacity: 0.7;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.empty-state p {
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* 侧边栏样式 */
.sidebar-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.sidebar-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.2);
}

.sidebar-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* 统计数字样式增强 */
.stats-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 分页样式 */
.pagination .page-link {
    border: none;
    border-radius: 50px;
    margin: 0 0.25rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 3rem 1.5rem;
        margin: 1rem 0;
    }
    
    .hero-icon {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .brand-icon {
        font-size: 1.6rem !important;
    }
    
    .card-title {
        font-size: 1.4rem;
    }
    
    .sidebar-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .sidebar-card {
        padding: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .brand-icon {
        font-size: 1.4rem !important;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .sidebar-title {
        font-size: 1.1rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动效果 */
.scroll-smooth {
    scroll-behavior: smooth;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 富文本内容样式 */
.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.rich-content h1 { font-size: 2.5rem; }
.rich-content h2 { font-size: 2rem; }
.rich-content h3 { font-size: 1.75rem; }
.rich-content h4 { font-size: 1.5rem; }
.rich-content h5 { font-size: 1.25rem; }
.rich-content h6 { font-size: 1.1rem; }

.rich-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

.rich-content blockquote {
    border-left: 4px solid var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
}

.rich-content code {
    background: rgba(99, 102, 241, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Fira Code', Consolas, monospace;
    font-size: 0.875rem;
}

.rich-content pre {
    background: var(--dark-color);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 2rem 0;
}

.rich-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.rich-content th,
.rich-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.rich-content th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
}

.rich-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.rich-content a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* 文章卡片样式 */
.post-card {
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.post-meta a {
    color: var(--primary-color);
    text-decoration: none;
}

.post-meta a:hover {
    color: var(--accent-color);
}

.card-meta a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.card-meta a:hover {
    color: var(--primary-color);
}

/* 标签云优化 */
.tag-cloud a {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    margin: 0.2rem;
    display: inline-block;
    transition: var(--transition);
}

.tag-cloud a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 动画效果 */
.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -30px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0,-4px,0);
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 间距优化 - 减少拥挤感 */
.row {
    margin-bottom: 3rem;
}

.col-md-8, .col-md-4, .col-lg-8, .col-lg-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* 卡片网格间距 */
.row .col-md-6:not(:last-child) {
    margin-bottom: 2rem;
}

/* 评论区域间距 */
.comment-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.comment-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
}

/* 搜索框间距优化 */
.navbar .form-control {
    margin-right: 1rem;
}

/* 按钮间距 */
.btn + .btn {
    margin-left: 1rem;
}

/* 页脚间距 */
footer {
    margin-top: 5rem;
    padding: 3rem 0;
}

/* 面包屑导航间距 */
.breadcrumb {
    margin-bottom: 2rem;
    padding: 1rem 0;
}

/* 标签间距 */
.badge {
    margin: 0.3rem 0.2rem;
}

/* 侧边栏间距优化 */ 
.sidebar-card {
    padding: 2.5rem;
    margin-bottom: 2.5rem;
}

/* 响应式间距调整 */
@media (max-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .main-content {
        padding: 1.5rem 0;
    }
    
    .section-title {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }
    
    .card-body {
        padding: 2rem;
    }
    
    .navbar {
        padding: 1rem 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    .section-title {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .sidebar-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .comment-form {
        padding: 2rem;
    }
    
    .col-md-8, .col-md-4, .col-lg-8, .col-lg-4 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* 卡片图片占位符优化 */
.card-img-placeholder {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #94a3b8;
    font-size: 3rem;
    transition: var(--transition);
}

.card:hover .card-img-placeholder {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: var(--primary-color);
}

/* 阅读全文按钮优化 */
.btn-read-more {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-read-more:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
    text-decoration: none;
}

.btn-read-more i {
    transition: var(--transition);
}

.btn-read-more:hover i {
    transform: translateX(3px);
}

/* 文章元信息美化 */
.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-right: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.post-meta-item i {
    color: var(--primary-color);
    opacity: 0.8;
}

/* 搜索框和侧边栏优化 */
.search-box {
    position: relative;
}

.search-box .form-control {
    padding-right: 3rem;
    border: 2px solid var(--border-color);
    background: white;
}

.search-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-md);
}

/* 统计卡片优化 */
.stats-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.2);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: block;
}

.stats-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* 快速导航优化 */
.quick-nav {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.quick-nav h5 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}

.quick-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-nav a:last-child {
    border-bottom: none;
}

.quick-nav a:hover {
    color: white;
    padding-left: 0.5rem;
}

/* 微妙的动画效果 */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================================
   新设计系统 - 现代化博客界面
   ================================= */

/* 英雄区域重新设计 */
.hero-section-new {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.9) 0%, 
        rgba(139, 92, 246, 0.8) 50%, 
        rgba(6, 182, 212, 0.9) 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 5rem;
}

.hero-section-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='1' fill='rgba(255,255,255,0.1)'/></svg>") repeat;
    background-size: 50px 50px;
    opacity: 0.3;
}

.hero-content-new {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.hero-title-new {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle-new {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-hero-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: white;
}

.btn-hero-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.hero-graphic {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.floating-elements {
    position: relative;
    width: 300px;
    height: 300px;
}

.float-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.float-1 {
    top: 0;
    left: 50%;
    animation: float 3s ease-in-out infinite;
}

.float-2 {
    top: 50%;
    right: 0;
    animation: float 3s ease-in-out infinite 0.5s;
}

.float-3 {
    bottom: 0;
    left: 50%;
    animation: float 3s ease-in-out infinite 1s;
}

.float-4 {
    top: 50%;
    left: 0;
    animation: float 3s ease-in-out infinite 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* 内容网格布局 */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.main-content-area {
    min-width: 0;
}

.sidebar-area {
    min-width: 0;
}

/* 区域标题新设计 */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title-new {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title-icon {
    font-size: 2rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* 推荐文章网格 */
.featured-section {
    margin-bottom: 5rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.featured-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-card:hover .card-image {
    transform: scale(1.05);
}

.featured-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.placeholder-content {
    position: relative;
    z-index: 2;
}

.placeholder-icon {
    color: rgba(255, 255, 255, 0.8);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.placeholder-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='25' cy='25' r='2' fill='rgba(255,255,255,0.1)'/><circle cx='75' cy='75' r='2' fill='rgba(255,255,255,0.1)'/></svg>") repeat;
    background-size: 100px 100px;
    opacity: 0.3;
}

.card-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.featured-badge {
    background: rgba(255, 193, 7, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    backdrop-filter: blur(10px);
}

.card-content {
    padding: 2rem;
}

.card-title-new {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-title-new a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title-new a:hover {
    color: var(--primary-color);
}

.card-excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-meta-new {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.meta-item i {
    color: var(--primary-color);
    opacity: 0.8;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 最新文章网格 */
.latest-section {
    margin-bottom: 3rem;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card-new {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.post-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.post-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card-new:hover .post-image {
    transform: scale(1.03);
}

.post-image-placeholder {
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.placeholder-bg {
    position: relative;
    z-index: 2;
}

.placeholder-icon-large {
    color: #94a3b8;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.placeholder-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.decoration-line {
    width: 60px;
    height: 3px;
    background: #cbd5e1;
    margin: 0.5rem 0;
    border-radius: 2px;
}

.decoration-line:nth-child(1) { width: 80px; }
.decoration-line:nth-child(2) { width: 60px; }
.decoration-line:nth-child(3) { width: 70px; }

.post-date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 0.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.date-day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-content {
    padding: 1.5rem;
}

.post-title-new {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-title-new a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title-new a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.post-meta-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-left {
    display: flex;
    gap: 1rem;
}

.meta-author, .meta-views {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.meta-author i, .meta-views i {
    color: var(--primary-color);
    opacity: 0.7;
}

.read-more-btn {
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    transform: translateX(3px);
    color: white;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* 查看更多按钮 */
.section-footer {
    text-align: center;
    margin-top: 3rem;
}

.btn-view-more {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-view-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

/* 侧边栏小部件 */
.sidebar-widget {
    background: white;
    border-radius: 15px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.widget-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text-color);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.widget-title i {
    color: var(--primary-color);
    opacity: 0.7;
}

.widget-content {
    padding: 1.5rem;
}

/* 统计小部件 */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.03);
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.05);
}

.stat-item:hover {
    background: rgba(99, 102, 241, 0.06);
    transform: translateY(-1px);
}

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-size: 1.2rem;
    color: white;
}

.posts-icon { background: linear-gradient(135deg, #94a3b8, #64748b); }
.views-icon { background: linear-gradient(135deg, #d8b4fe, #c084fc); }
.categories-icon { background: linear-gradient(135deg, #7dd3fc, #38bdf8); }
.tags-icon { background: linear-gradient(135deg, #86efac, #4ade80); }

.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.3rem;
    opacity: 0.9;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* 分类小部件 */
.category-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-item:hover {
    background: rgba(99, 102, 241, 0.03);
    color: var(--primary-color);
    transform: translateX(3px);
    border-color: rgba(99, 102, 241, 0.08);
}

.category-icon {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-right: 1rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    opacity: 0.8;
}

.category-item:hover .category-icon {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-color);
    transform: scale(1.05);
    opacity: 1;
}

.category-content {
    flex: 1;
}

.category-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.category-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.category-arrow {
    color: var(--text-muted);
    transition: all 0.3s ease;
    opacity: 0.6;
}

.category-item:hover .category-arrow {
    color: var(--primary-color);
    transform: translateX(2px);
    opacity: 1;
}

/* 标签云 */
.tags-cloud-new {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item-new {
    background: rgba(99, 102, 241, 0.06);
    color: var(--primary-color);
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: calc(0.8rem * var(--tag-size));
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.08);
    opacity: 0.9;
}

.tag-item-new:hover {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
    opacity: 1;
}

.tag-count {
    opacity: 0.7;
    font-size: 0.9em;
}

/* 关于小部件 */
.about-content {
    text-align: center;
}

.about-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(6, 182, 212, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
}

.about-text {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.about-social {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.social-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.85;
}

.social-link.github { background: #6b7280; }
.social-link.twitter { background: #60a5fa; }
.social-link.website { background: var(--primary-color); }

.social-link:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

/* 空状态 */
.empty-state-new {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.empty-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--primary-color);
    font-size: 3rem;
}

.empty-state-new h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.empty-state-new p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn-primary-new {
    background: var(--primary-gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    color: white;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar-area {
        order: -1;
    }
    
    .hero-graphic {
        display: none;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title-new {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero-primary, .btn-hero-secondary {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .latest-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-section-new {
        min-height: 500px;
    }
    
    .hero-title-new {
        font-size: 2rem;
    }
    
    .section-title-new {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .card-content, .post-content {
        padding: 1.5rem;
    }
    
    .widget-header, .widget-content {
        padding: 1rem;
    }
}

/* 页面头部 - 文章列表页 */
.page-header-section {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(139, 92, 246, 0.1) 100%);
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.page-header-content {
    text-align: center;
}

.page-title-new {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 文章列表卡片 */
.posts-list-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-list-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 200px;
}

.post-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.post-list-image-container {
    position: relative;
    overflow: hidden;
}

.post-list-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-list-card:hover .post-list-image {
    transform: scale(1.05);
}

.post-list-image-placeholder {
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.placeholder-bg {
    position: relative;
    z-index: 2;
}

.placeholder-icon-list {
    color: #94a3b8;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.placeholder-decoration-list {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.decoration-line-list {
    width: 40px;
    height: 2px;
    background: #cbd5e1;
    margin: 0.3rem 0;
    border-radius: 1px;
}

.decoration-line-list:nth-child(1) { width: 50px; }
.decoration-line-list:nth-child(2) { width: 40px; }
.decoration-line-list:nth-child(3) { width: 45px; }

.post-list-date-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.4rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.post-list-featured-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: rgba(255, 193, 7, 0.9);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    backdrop-filter: blur(10px);
}

.post-list-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-list-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-list-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-list-title a:hover {
    color: var(--primary-color);
}

.post-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-list-excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.post-list-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag-item-list {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-item-list:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.post-list-footer {
    display: flex;
    justify-content: flex-end;
}

.read-more-btn-list {
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.read-more-btn-list:hover {
    transform: translateX(3px);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* 分页导航 */
.pagination-nav {
    margin-top: 3rem;
    text-align: center;
}

.pagination-new {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    list-style: none;
    padding: 0;
}

.page-item-new {
    margin: 0;
}

.page-link-new {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.page-link-new:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.page-link-new.current {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 搜索小部件优化 */
.search-form-new {
    margin: 0;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-new {
    flex: 1;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background: white;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.search-input-new:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-btn-new {
    position: absolute;
    right: 0.3rem;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-btn-new:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.3);
}

/* 统计小部件 - 列表页 */
.stats-grid-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pages-icon { 
    background: linear-gradient(135deg, #667eea, #764ba2); 
}

/* 快速导航小部件 */
.nav-links-new {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link-new {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link-new:hover {
    background: rgba(99, 102, 241, 0.03);
    color: var(--primary-color);
    transform: translateX(3px);
    border-color: rgba(99, 102, 241, 0.08);
}

.nav-link-new.active {
    background: rgba(99, 102, 241, 0.06);
    color: var(--primary-color);
    border-color: rgba(99, 102, 241, 0.1);
}

.nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-right: 0.8rem;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    opacity: 0.8;
}

.nav-link-new:hover .nav-icon,
.nav-link-new.active .nav-icon {
    background: rgba(99, 102, 241, 0.15);
    transform: scale(1.05);
    opacity: 1;
}

.nav-link-new span {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-arrow {
    color: var(--text-muted);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.nav-link-new:hover .nav-arrow,
.nav-link-new.active .nav-arrow {
    color: var(--primary-color);
    transform: translateX(2px);
    opacity: 1;
}

/* 响应式设计 - 文章列表页 */
@media (max-width: 1024px) {
    .post-list-card {
        grid-template-columns: 1fr;
        grid-template-rows: 200px 1fr;
    }
    
    .post-list-image-container {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-title-new {
        font-size: 2rem;
    }
    
    .post-list-card {
        grid-template-rows: 150px 1fr;
    }
    
    .post-list-image-container {
        height: 150px;
    }
    
    .post-list-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pagination-new {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    
    .page-link-new {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .post-list-content {
        padding: 1rem;
    }
    
    .post-list-title {
        font-size: 1.2rem;
    }
    
    .post-list-card {
        grid-template-rows: 120px 1fr;
    }
    
    .post-list-image-container {
        height: 120px;
    }
}

/* 响应式导航栏优化 */
@media (max-width: 1200px) {
    .navbar-nav .nav-link {
        margin: 0 0.3rem;
        padding: 0.5rem 0.8rem !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .brand-icon {
        font-size: 1.6rem !important;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        padding: 0.75rem 1rem !important;
        border-radius: 12px;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .brand-icon {
        font-size: 1.5rem !important;
    }
}

/* 归档页面样式 */
.archives-section {
    margin-bottom: 2rem;
}

.archives-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.archive-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.archive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
}

.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.2);
}

.archive-card:hover::before {
    opacity: 1;
}

.archive-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.archive-date-circle {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-md);
}

.month-number {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.year-text {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
}

.archive-info {
    flex: 1;
}

.archive-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.archive-description {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
}

.highlight-number {
    color: var(--primary-color);
    font-weight: 700;
}

.archive-badge {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(99, 102, 241, 0.1);
    padding: 1rem;
    border-radius: 12px;
    min-width: 60px;
}

.badge-count {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.badge-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.archive-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.preview-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.preview-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
}

.preview-dot.more-dot {
    width: auto;
    height: auto;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    min-width: 40px;
    text-align: center;
}

.archive-actions {
    display: flex;
    gap: 1rem;
}

.view-archive-btn {
    background: var(--primary-gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.view-archive-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

.view-archive-btn i {
    transition: var(--transition);
}

.view-archive-btn:hover i {
    transform: translateX(3px);
}

/* 时间线导航样式 */
.timeline-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
}

.timeline-item:hover {
    background: rgba(99, 102, 241, 0.03);
    color: var(--primary-color);
    text-decoration: none;
    transform: translateX(3px);
}

.timeline-dot {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.6;
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    opacity: 1;
    transform: scale(1.2);
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.timeline-date {
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.timeline-more {
    text-align: center;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

/* 空状态样式增强 */
.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary-new {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-secondary-new:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .archive-card {
        padding: 1.5rem;
    }
    
    .archive-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .archive-date-circle {
        width: 70px;
        height: 70px;
    }
    
    .month-number {
        font-size: 1.3rem;
    }
    
    .archive-title {
        font-size: 1.3rem;
    }
    
    .archive-preview {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .empty-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline-item {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .archives-timeline {
        gap: 1.5rem;
    }
    
    .archive-card {
        padding: 1rem;
    }
    
    .archive-date-circle {
        width: 60px;
        height: 60px;
    }
    
    .month-number {
        font-size: 1.1rem;
    }
    
    .year-text {
        font-size: 0.7rem;
    }
    
    .archive-title {
        font-size: 1.2rem;
    }
    
    .archive-description {
        font-size: 0.9rem;
    }
    
    .view-archive-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* ===============================
   文章详情页面阅读优化样式
   =============================== */

/* 文章详情页面容器 */
.post-detail {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 3rem;
}

/* 文章头部样式 */
.post-header {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
    border-bottom: 1px solid var(--border-color);
}

.post-title {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    line-height: var(--heading-line-height) !important;
    color: var(--dark-color) !important;
    margin-bottom: 2rem !important;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}

.post-meta i {
    color: var(--primary-color);
    opacity: 0.8;
    font-size: 0.9rem;
}

.post-meta a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.post-meta a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* 文章标签样式 */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.post-tags .badge {
    background: var(--primary-gradient);
    color: white;
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
    border: none;
    box-shadow: var(--shadow-sm);
}

.post-tags .badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

/* 特色图片样式 */
.post-image {
    margin-bottom: 2rem;
}

.post-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.post-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* 文章正文核心样式 */
.post-content {
    padding: 3rem;
    max-width: var(--content-max-width);
    margin: 0 auto;
    font-size: var(--reading-font-size);
    line-height: var(--reading-line-height);
    color: var(--text-color);
}

/* 段落样式 */
.post-content p {
    margin-bottom: 2rem;
    line-height: var(--reading-line-height);
    font-size: var(--reading-font-size);
    color: var(--text-color);
    text-align: justify;
    hyphens: auto;
}

.post-content p:last-child {
    margin-bottom: 0;
}

/* 标题样式层次 */
.post-content h1 {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    line-height: var(--heading-line-height) !important;
    color: var(--dark-color) !important;
    margin-top: 4rem !important;
    margin-bottom: 2rem !important;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    letter-spacing: -0.02em;
}

.post-content h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    line-height: var(--heading-line-height) !important;
    color: var(--dark-color) !important;
    margin-top: 3.5rem !important;
    margin-bottom: 1.5rem !important;
    position: relative;
    padding-left: 1.5rem;
}

.post-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.post-content h3 {
    font-size: 1.7rem !important;
    font-weight: 700 !important;
    line-height: var(--heading-line-height) !important;
    color: var(--dark-color) !important;
    margin-top: 3rem !important;
    margin-bottom: 1.2rem !important;
    position: relative;
}

.post-content h3::before {
    content: '▶';
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 0.8em;
}

.post-content h4 {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: var(--dark-color) !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1rem !important;
}

.post-content h5 {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: var(--text-color) !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
}

.post-content h6 {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: var(--text-color) !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 列表样式 */
.post-content ul,
.post-content ol {
    margin: 2rem 0;
    padding-left: 2rem;
    line-height: var(--reading-line-height);
}

.post-content li {
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.post-content ul li {
    list-style: none;
    position: relative;
}

.post-content ul li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 1.2em;
    position: absolute;
    left: -1.5rem;
}

/* 引用块样式 */
.post-content blockquote {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-left: 4px solid var(--primary-color);
    margin: 3rem 0;
    padding: 2rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    font-size: 1.1em;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.post-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-light);
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-family: 'Times New Roman', serif;
    opacity: 0.3;
}

.post-content blockquote p {
    margin-bottom: 0;
    color: var(--text-color);
    font-size: 1.1em;
}

/* 简化的代码样式 */
.post-content code {
    background: #f8f9fa;
    color: #e83e8c;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: Consolas, monospace;
    font-size: 0.9em;
}

.post-content .codehilite,
.post-content pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.post-content .codehilite pre,
.post-content pre {
    background: none;
    color: #212529;
    padding: 1rem;
    margin: 0;
    border: none;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.5;
}

/* 移除代码块装饰元素 */

/* 移除复杂的代码块功能 */

/* 代码块行号样式 */
.line-numbers {
    position: absolute;
    left: 0;
    top: 2.5rem;
    bottom: 0;
    width: 3rem;
    background: rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    font-family: inherit;
    font-size: 0.85em;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    user-select: none;
    overflow: hidden;
}

/* 不同编程语言的主题色 */
.post-content .codehilite[data-language="python"]::after,
.post-content pre[data-language="python"]:not(.codehilite pre)::after {
    background: linear-gradient(135deg, #3776ab, #ffd43b);
    color: white;
}

.post-content .codehilite[data-language="javascript"]::after,
.post-content pre[data-language="javascript"]:not(.codehilite pre)::after {
    background: linear-gradient(135deg, #f7df1e, #323330);
    color: #323330;
}

.post-content .codehilite[data-language="java"]::after,
.post-content pre[data-language="java"]:not(.codehilite pre)::after {
    background: linear-gradient(135deg, #ed8b00, #5382a1);
    color: white;
}

.post-content .codehilite[data-language="php"]::after,
.post-content pre[data-language="php"]:not(.codehilite pre)::after {
    background: linear-gradient(135deg, #777bb4, #4f5b93);
    color: white;
}

.post-content .codehilite[data-language="css"]::after,
.post-content pre[data-language="css"]:not(.codehilite pre)::after {
    background: linear-gradient(135deg, #1572b6, #33a9dc);
    color: white;
}

.post-content .codehilite[data-language="html"]::after,
.post-content pre[data-language="html"]:not(.codehilite pre)::after {
    background: linear-gradient(135deg, #e34f26, #f06529);
    color: white;
}

.post-content .codehilite[data-language="sql"]::after,
.post-content pre[data-language="sql"]:not(.codehilite pre)::after {
    background: linear-gradient(135deg, #336791, #8cc8ff);
    color: white;
}

/* 代码块容器优化 */
.post-content .codehilite,
.post-content pre:not(.codehilite pre) {
    position: relative;
    overflow: hidden;
}

.post-content .codehilite:hover .copy-code-btn,
.post-content pre:not(.codehilite pre):hover .copy-code-btn {
    opacity: 1;
}

.copy-code-btn {
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* 代码块内容选择优化 */
.post-content .codehilite pre::selection,
.post-content .codehilite code::selection,
.post-content pre:not(.codehilite pre) code::selection {
    background: rgba(255, 255, 255, 0.2);
}

.post-content .codehilite pre::-moz-selection,
.post-content .codehilite code::-moz-selection,
.post-content pre:not(.codehilite pre) code::-moz-selection {
    background: rgba(255, 255, 255, 0.2);
}

/* 响应式代码块优化 */
@media (max-width: 768px) {
    .post-content pre {
        padding: 1.5rem;
        font-size: 0.85rem;
    }
    
    .post-content pre::after {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
        top: 0.5rem;
        right: 1rem;
    }
    
    .copy-code-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        top: 0.8rem;
        right: 0.8rem;
    }
    
    .line-numbers {
        width: 2.5rem;
        font-size: 0.75em;
        top: 1.5rem;
    }
    
    .post-content pre code {
        padding-left: 3rem;
    }
}

@media (max-width: 576px) {
    .post-content pre {
        padding: 1rem;
        font-size: 0.8rem;
        margin: 2rem -1rem;
        border-radius: 0;
    }
    
    .line-numbers {
        display: none; /* 在小屏幕上隐藏行号 */
    }
    
    .post-content pre code {
        padding-left: 0;
    }
}

/* 表格样式 */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 3rem 0;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.post-content th,
.post-content td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95em;
}

.post-content th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-content tbody tr:hover {
    background: rgba(99, 102, 241, 0.03);
}

/* 图片样式 */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin: 3rem 0;
    transition: var(--transition);
    cursor: zoom-in;
}

.post-content img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* 链接样式 */
.post-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.post-content a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
}

.post-content a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.post-content a:hover::after {
    width: 100%;
}

/* 分割线样式 */
.post-content hr {
    border: none;
    height: 3px;
    background: var(--primary-gradient);
    margin: 4rem 0;
    border-radius: 2px;
    box-shadow: var(--shadow-sm);
}

/* 文章底部样式 */
.post-footer {
    padding: 2rem 3rem;
    background: rgba(99, 102, 241, 0.02);
    border-top: 1px solid var(--border-color);
}

/* 相关文章样式 */
.related-posts {
    margin-top: 4rem;
}

.related-posts .section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 评论区样式 */
.comments-section {
    margin-top: 4rem;
}

.comments-section .section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.comment:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.2);
}

.comment-content {
    line-height: var(--reading-line-height);
    color: var(--text-color);
}

/* 侧边栏样式 */
.sidebar .card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: var(--transition);
}

.sidebar .card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.sidebar .card-header {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    border: none;
}

.sidebar .card-body {
    padding: 2rem;
}

/* 目录导航样式 */
#toc ul {
    list-style: none;
    padding-left: 0;
}

#toc li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

#toc li::before {
    content: '→';
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-weight: bold;
}

#toc a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: block;
    padding: 0.3rem 0;
}

#toc a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

/* 响应式优化 */
@media (max-width: 1024px) {
    .post-content {
        padding: 2rem;
        font-size: 17px;
    }
    
    .post-header {
        padding: 2rem;
    }
    
    .post-footer {
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --reading-font-size: 16px;
        --reading-line-height: 1.7;
    }
    
    .post-title {
        font-size: 2.2rem !important;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .post-header {
        padding: 1.5rem;
    }
    
    .post-footer {
        padding: 1.5rem;
    }
    
    .post-content h1 {
        font-size: 2rem !important;
    }
    
    .post-content h2 {
        font-size: 1.7rem !important;
    }
    
    .post-content h3 {
        font-size: 1.5rem !important;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .post-title {
        font-size: 1.8rem !important;
    }
    
    .post-content {
        padding: 1rem;
        font-size: 15px;
    }
    
    .post-header {
        padding: 1rem;
    }
    
    .post-footer {
        padding: 1rem;
    }
    
    .post-content pre {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .post-content blockquote {
        padding: 1.5rem;
        margin: 2rem 0;
    }
}

/* 临时隐藏行号，避免白色覆盖框 */
.line-numbers {
    display: none !important;
}

/* 重置代码块的左边距 */
.post-content .codehilite pre code,
.post-content pre:not(.codehilite pre) code {
    padding-left: 0 !important;
} 