/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #c44569;
    --accent-color: #ffd93d;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --white: #fff;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --radius: 12px;
    --gradient-pink: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-dark: linear-gradient(135deg, #2d3436 0%, #1e272e 100%);
}

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 15px;
}

/* 容器 */
.container {
    width: 1200px;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Banner区域 */
.banner-section {
    width: 100%;
    margin-bottom: 0;
    padding: 0;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    z-index: 10;
    max-width: 70%;
    padding: 20px 40px;
}

.banner-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.banner-content p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

/* 波浪底部 */
.banner-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 15;
}

.banner-wave svg {
    width: 100%;
    height: 100%;
}

/* 头部导航 */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo {
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    max-height: 45px;
    max-width: 150px;
    height: auto;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #666666;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 18px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.main-nav a:hover {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    transform: translateY(-1px);
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 汉堡菜单按钮（移动端） */
.menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 1001;
}

.menu-toggle:hover {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: #fff;
}

.mobile-search-btn {
    display: none;
}

.desktop-search {
    display: flex;
}

.search-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

/* 搜索弹窗 */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    background: #ffffff;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.search-overlay.active .search-modal {
    transform: translateY(0);
}

.search-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close:hover {
    background: #f5f5f5;
    color: #333;
}

.search-modal-content {
    position: relative;
    padding: 20px 0;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-modal-icon {
    position: absolute;
    left: 18px;
    color: #ff6b9d;
    font-size: 22px;
    z-index: 1;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-sizing: border-box;
}

.search-input:focus {
    border-color: #ff6b9d;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.search-tip {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-top: 15px;
}

/* 搜索结果页 */
.search-results-header {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
}

.search-results-header h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.search-results-header h1 i {
    margin-right: 10px;
}

.search-keyword {
    font-size: 15px;
    margin-bottom: 5px;
    opacity: 0.95;
}

.search-keyword .keyword {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.search-count {
    font-size: 14px;
    opacity: 0.9;
}

.search-count strong {
    font-size: 18px;
    font-weight: 600;
    margin: 0 4px;
}

mark {
    background: #fff3cd;
    color: #c44569;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 500;
}

/* 主内容区 */
.main-wrapper {
    padding: 30px 0;
    margin-top: -10px;
}

.content-wrapper {
    display: flex;
    gap: 30px;
}

.content-wrapper.full-width {
    flex-direction: column;
    gap: 0;
}

.content-wrapper.full-width .single-post-wrapper {
    width: 100%;
    max-width: 100%;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* 文章网格 */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 文章卡片 */
.post-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* 图片容器 */
.post-image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: transparent;
}

.post-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image-wrapper img {
    transform: scale(1.05);
}

/* 覆盖层 - 淡色渐变 */
.post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.15));
}

.post-overlay .post-title {
    margin: 0;
}

.post-overlay .post-title a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    display: block;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.post-overlay .post-title a:hover {
    color: #ff6b9d;
}

/* 底部信息栏 */
.post-meta {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #888888;
    font-size: 12px;
    background: transparent;
    min-height: 40px;
}

.post-category-name {
    color: #aaaaaa;
    font-size: 12px;
}

.post-views,
.post-comments {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.post-views i,
.post-comments i {
    margin-right: 4px;
}

/* 文章列表样式 */
.posts-list {
    margin-top: 40px;
}

.section-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b9d;
}

.section-title h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title h2 i {
    color: #ff6b9d;
}

.post-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    padding: 8px;
    box-sizing: border-box;
}

.post-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.post-item-image {
    width: 210px;
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
}

.post-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-item:hover .post-item-image img {
    transform: scale(1.05);
}

.post-item-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.post-item-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.post-item-header .category-tag {
    background: linear-gradient(135deg, #ff6b9d, #ff85c0);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}

.post-item-title {
    margin: 0;
    flex: 1;
}

.post-item-title a {
    color: #333333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-item-title a:hover {
    color: #ff6b9d;
}

.post-item-excerpt {
    color: #666666;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-item-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #999999;
    font-size: 13px;
    margin-top: auto;
}

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

.post-item-meta i {
    font-size: 14px;
}

/* 侧边栏 */
.sidebar {
    width: 320px;
    flex-shrink: 0;
}

.widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

/* 日历样式 */
.calendar {
    text-align: center;
}

.calendar-header {
    margin-bottom: 15px;
}

.calendar-month {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.calendar-weekdays span {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    padding: 5px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-days .empty {
    visibility: hidden;
}

.calendar-days .day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 13px;
    color: #333;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 auto;
}

.calendar-days .day:hover:not(.today) {
    background: #f0f0f0;
}

.calendar-days .day.today {
    background: linear-gradient(135deg, #ff6b9d, #ff85c0);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.4);
}

/* 社交媒体链接 */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #666666 !important;
    border-radius: 50% !important;
    color: #cccccc !important;
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.social-link:hover {
    background: linear-gradient(135deg, #ff6b9d, #ff85c0);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.social-link::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.social-link:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -35px;
}

.widget-title {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.widget-title h3 {
    font-size: 18px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title h3 i {
    color: var(--primary-color);
}

/* 关于组件 */
.about-content {
    text-align: center;
}

.about-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.about-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 分类列表 */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 15px;
    background: var(--bg-color);
    border-radius: 8px;
    transition: all 0.3s;
}

.category-list a:hover {
    background: var(--gradient-pink);
    color: var(--white);
}

.category-list .count {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

/* 热门文章列表 */
.widget .hot-posts-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.widget .hot-posts-list li {
    display: flex !important;
    align-items: center !important;
    padding: 12px 0 !important;
    border-bottom: 1px dashed #e9ecef !important;
    transition: all 0.3s ease !important;
    list-style: none !important;
    margin: 0 !important;
    background: none !important;
}

.widget .hot-posts-list li:last-child {
    border-bottom: none !important;
}

.widget .hot-posts-list li:hover {
    padding-left: 5px !important;
}

.widget .hot-posts-list .post-date {
    display: flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    min-width: 70px !important;
    padding: 8px 10px !important;
    background: #f0f0f0 !important;
    border-radius: 4px !important;
    margin-right: 15px !important;
    flex-shrink: 0 !important;
}

.widget .hot-posts-list .date-day {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #666 !important;
    line-height: 1 !important;
}

.widget .hot-posts-list .date-month {
    font-size: 12px !important;
    color: #999 !important;
    margin-left: 2px !important;
}

.widget .hot-posts-list .post-title {
    flex: 1 !important;
    text-decoration: none !important;
    color: #333 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    transition: color 0.3s !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.widget .hot-posts-list .post-title:hover {
    color: #ff6b9d !important;
}

/* 标签云 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 6px 15px;
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--gradient-purple);
    color: var(--white);
}

/* 最新评论 */
.recent-comments {
    list-style: none;
}

.recent-comments li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-comments li:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-info {
    flex: 1;
    min-width: 0;
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.comment-text {
    color: var(--text-light);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 文章操作按钮 */
.post-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.action-btn {
    flex: 1;
    max-width: 200px;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.like-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
}

.like-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

.like-btn.liked {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

.donate-btn {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #ffffff;
}

.donate-btn:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.dislike-btn {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
    color: #ffffff;
}

.dislike-btn:hover {
    background: linear-gradient(135deg, #95a5a6 0%, #bdc3c7 100%);
}

.dislike-btn.disliked {
    background: linear-gradient(135deg, #95a5a6 0%, #bdc3c7 100%);
}

@media (max-width: 768px) {
    .post-actions {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    
    .action-btn {
        max-width: 100%;
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .action-btn i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .post-actions {
        margin: 20px 0;
        padding: 12px;
    }
    
    .action-btn {
        padding: 12px 15px;
        font-size: 13px;
        gap: 8px;
    }
    
    .action-btn i {
        font-size: 14px;
    }
}

/* 打赏弹窗 */
.donate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donate-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.donate-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.donate-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s;
}

.donate-modal-close:hover {
    background: #e74c3c;
    color: #ffffff;
}

.donate-modal-content h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
}

.donate-modal-content h3 i {
    color: #ff6b9d;
    margin-right: 10px;
}

.donate-image-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.donate-image-container img {
    max-width: 100%;
    max-height: 280px;
    border-radius: 8px;
}

.donate-modal-content p {
    color: #666;
    font-size: 14px;
}

@media (max-width: 480px) {
    .donate-modal-content {
        padding: 20px;
        width: 85%;
    }
    
    .donate-image-container {
        padding: 15px;
    }
    
    .donate-modal-content h3 {
        font-size: 18px;
    }
}

/* 文章详情页 */
.single-post-wrapper {
    flex: 1;
    min-width: 0;
}

.single-post {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.post-header {
    margin-bottom: 30px;
    text-align: center;
}

.post-header .category-tag {
    margin-bottom: 15px;
}

.single-post .post-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.single-post .post-meta {
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
}

.meta-item i {
    color: var(--primary-color);
}

/* 精选/画廊样式 */
.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-color);
    color: var(--text-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 20px;
}

.gallery-banner {
    background: var(--gradient-purple);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 600;
}

/* 自定义字段 */
.custom-fields-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.custom-field-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.custom-field-item:last-child {
    border-bottom: none;
}

.field-label {
    font-weight: 600;
    color: var(--secondary-color);
    min-width: 120px;
}

.field-value {
    color: var(--text-color);
}

/* 文章内容 */
.post-content-body {
    line-height: 2;
    font-size: 16px;
}

/* ============================================
   响应式设计 - 自适应不同屏幕尺寸
   ============================================ */

/* 超大屏幕 (大于1400px) */
@media (min-width: 1400px) {
    .container {
        width: 1320px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 大屏幕笔记本 (1200px - 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
    .container {
        width: 1140px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 笔记本电脑/平板横屏 (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .container {
        width: 960px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-container {
        height: 350px;
    }
}

/* 平板竖屏 (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .container {
        width: 720px;
    }
    
    .banner-container {
        height: 300px;
    }
    
    .banner-content h2 {
        font-size: 32px !important;
    }
    
    .banner-content p {
        font-size: 16px !important;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .post-image-wrapper {
        height: 160px;
    }
    
    .sidebar {
        width: 280px;
    }
    
    .sidebar-widget {
        padding: 15px;
    }
}

/* 手机横屏/大屏手机 (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .container {
        width: 540px;
    }
    
    .banner-container {
        height: 250px;
    }
    
    .banner-content {
        max-width: 85%;
        padding: 15px 25px;
    }
    
    .banner-content h2 {
        font-size: 26px !important;
    }
    
    .banner-content p {
        font-size: 14px !important;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .post-image-wrapper {
        height: 140px;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .main-content {
        width: 100%;
    }
    
    .sidebar {
        width: 100%;
    }
    
    /* 导航栏调整（不折叠，保持一行显示） */
    .main-nav ul {
        gap: 2px;
    }
    
    .main-nav a {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* 手机竖屏 (小于576px) */
@media (max-width: 575px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    /* 顶部导航 */
    .header {
        padding: 10px 0;
    }
    
    /* 导航栏折叠 */
    .menu-toggle {
        display: flex;
    }
    
    .mobile-search-btn {
        display: flex;
    }
    
    .desktop-search {
        display: none;
    }
    
    .header-content {
        justify-content: space-between;
        position: relative;
    }
    
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .logo-img {
        max-height: 35px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .main-nav {
        position: fixed;
        top: 55px;
        left: 0;
        width: 100%;
        height: calc(100vh - 55px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 15px;
        gap: 8px;
        width: 100%;
    }
    
    .main-nav li {
        width: 100%;
    }
    
    .main-nav a {
        width: 100%;
        padding: 12px 15px;
        font-size: 15px;
        border-radius: 8px;
        justify-content: flex-start;
    }
    
    /* Banner */
    .banner-container {
        height: 200px;
    }
    
    .banner-content {
        max-width: 90%;
        padding: 10px 20px;
        top: 30%;
    }
    
    .banner-content h2 {
        font-size: 22px !important;
        margin-bottom: 8px !important;
    }
    
    .banner-content p {
        font-size: 13px !important;
    }
    
    .banner-wave {
        height: 40px;
    }
    
    /* 主内容区 */
    .main-wrapper {
        padding: 20px 0;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .main-content,
    .sidebar {
        width: 100%;
    }
    
    /* 文章网格 */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .post-image {
        height: 180px;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .post-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .post-excerpt {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    
    .post-meta {
        font-size: 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    /* 侧边栏 */
    .sidebar {
        margin-top: 30px;
    }
    
    .sidebar-widget {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .widget-title {
        font-size: 16px;
        padding-bottom: 10px;
    }
    
    /* 搜索弹窗 */
    .search-modal {
        padding: 15px;
    }
    
    .search-modal-content {
        width: 95%;
        max-width: 500px;
        padding: 20px;
    }
    
    .search-modal-content h2 {
        font-size: 20px;
    }
    
    /* 文章详情页 */
    .post-detail {
        padding: 20px 15px;
    }
    
    .post-detail-header {
        padding: 20px 15px;
    }
    
    .post-detail-title {
        font-size: 24px;
    }
    
    .post-detail-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    /* 页面导航 */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .page-link {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    /* 底部 */
    .footer {
        padding: 30px 15px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-links,
    .footer-social {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-links a,
    .footer-social a {
        margin: 3px 8px;
    }
}

/* 评论开关按钮样式 */
.toggle-button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    background: #ffffff;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.toggle-btn:hover {
    border-color: #ff6b9d;
    color: #ff6b9d;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #ff6b9d, #ff85c0);
    border-color: #ff6b9d;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.toggle-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5);
}

.toggle-btn i {
    font-size: 14px;
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 移除hover效果 */
    .post-card:hover {
        transform: none;
    }
    
    /* 增大触摸目标 */
    .nav-link,
    .btn,
    .page-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 触摸友好间距 */
    .post-meta span,
    .post-meta a {
        padding: 4px 8px;
    }
}

/* 横屏手机 */
@media (max-height: 500px) and (orientation: landscape) {
    .banner-container {
        height: 180px;
    }
    
    .banner-content {
        top: 50%;
    }
    
    .banner-content h2 {
        font-size: 20px !important;
    }
    
    .banner-content p {
        display: none;
    }
}

/* 优雅图片展示效果 */
.elegant-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
    background: linear-gradient(#ffffff, #ffffff) padding-box,
                linear-gradient(135deg, rgba(255, 107, 157, 0.3), rgba(196, 69, 105, 0.2)) border-box;
}

.elegant-image-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(255, 107, 157, 0.25);
    border-color: rgba(255, 107, 157, 0.5);
}

.elegant-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.elegant-image-wrapper:hover .elegant-image {
    transform: scale(1.05);
}

.elegant-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(255, 107, 157, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.elegant-image-wrapper:hover .elegant-image-overlay {
    opacity: 1;
}

.elegant-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(to top, rgba(45, 52, 54, 0.95), transparent);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.elegant-image-wrapper:hover .elegant-image-caption {
    transform: translateY(0);
}

.elegant-image-caption h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.elegant-image-caption p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 0;
}

/* 图片装饰边框效果 */
.image-frame {
    position: relative;
    padding: 8px;
    background: var(--gradient-dark);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-radius: 16px;
    border: 1px solid rgba(255, 107, 157, 0.3);
    pointer-events: none;
}

.image-frame img {
    display: block;
    width: 100%;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.image-frame:hover img {
    filter: brightness(1.05);
}

/* 粉色光晕效果 */
.glow-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.glow-image-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.glow-image-container:hover::before {
    opacity: 1;
}

.glow-image-container img {
    width: 100%;
    display: block;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.glow-image-container:hover img {
    transform: scale(1.02);
}

.post-content-body p {
    margin-bottom: 20px;
}

.post-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.post-content-body h2,
.post-content-body h3,
.post-content-body h4 {
    margin: 30px 0 15px;
    color: var(--text-color);
}

.post-content-body code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.post-content-body pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

/* 文章底部 */
.post-footer {
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post-tags i {
    color: var(--primary-color);
}

.post-tags .tag {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-pink);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
}

.back-home:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(255,107,157,0.4);
}

/* 分类头部 */
.category-header {
    background: var(--white);
    padding: 25px 30px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.category-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.category-description {
    color: var(--text-light);
}

/* 评论区域 */
.comments-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 30px;
    box-shadow: var(--shadow);
}

.comments-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.comments-title i {
    color: var(--primary-color);
}

.comments-list {
    margin-bottom: 30px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 10px;
    margin-bottom: 15px;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    color: var(--primary-color);
}

.comment-date {
    color: var(--text-light);
    font-size: 13px;
}

.comment-content {
    color: var(--text-color);
    line-height: 1.8;
}

/* 评论表单 */
.comment-form-wrapper {
    background: var(--bg-color);
    padding: 25px;
    border-radius: 10px;
}

.comment-form-wrapper h4 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form-wrapper h4 i {
    color: var(--primary-color);
}

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

.form-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 15px;
    font-family: inherit;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    background: var(--gradient-pink);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,157,0.4);
}

/* 相关文章 */
.related-posts-list {
    list-style: none;
}

.related-posts-list li {
    margin-bottom: 12px;
}

.related-posts-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--bg-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.related-posts-list a:hover {
    background: var(--gradient-pink);
    color: var(--white);
}

.related-title {
    color: inherit;
    font-weight: 500;
}

.related-date {
    font-size: 12px;
    opacity: 0.7;
}

/* 文章目录 */
.toc-content {
    font-size: 14px;
    color: var(--text-light);
}

/* 无文章 */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.no-posts p {
    font-size: 18px;
    color: var(--text-light);
}

.no-posts i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

/* 底部 */
.site-footer {
    background: #2d3436;
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}

.footer-section h3 i {
    color: var(--primary-color);
}

.footer-section p {
    color: #b2bec3;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #b2bec3;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-section li i {
    margin-right: 8px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--gradient-pink);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: #636e72;
    margin-bottom: 8px;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

/* 响应式 */
@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .main-nav ul {
        gap: 15px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .single-post .post-title {
        font-size: 24px;
    }
    
    .comment-form .form-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .main-nav {
        order: 3;
        width: 100%;
    }

    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* 三列网格布局 */
.posts-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.post-card-grid {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.post-card-grid:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-card-grid .post-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-card-grid .post-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card-grid:hover .post-image-wrapper img {
    transform: scale(1.05);
}

.post-card-grid .recommend-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b9d, #ff85c0);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.post-card-grid .post-card-content {
    padding: 15px;
}

.post-card-grid .post-category-tag {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b9d, #ff85c0);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
}

.post-card-grid .post-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-card-grid .post-card-title a {
    color: #333333;
    text-decoration: none;
}

.post-card-grid .post-card-title a:hover {
    color: #ff6b9d;
}

.post-card-grid .post-card-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #999999;
}

.post-card-grid .post-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 992px) {
    .posts-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .posts-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* 瀑布流全屏样式 */
.content-wrapper.masonry-full {
    display: block;
    max-width: 100%;
    padding: 0;
}

.content-wrapper.masonry-full .category-header {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.masonry-grid {
    column-count: 4;
    column-gap: 12px;
    padding: 0 20px 20px;
    max-width: 100%;
}

.masonry-box {
    break-inside: avoid;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.masonry-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.masonry-image-wrap {
    position: relative;
    width: 100%;
}

.masonry-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.masonry-box:hover .masonry-image-wrap img {
    transform: scale(1.05);
}

.masonry-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

.masonry-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.masonry-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.masonry-cat {
    background: linear-gradient(135deg, #ff6b9d, #ff85c0);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.masonry-views,
.masonry-comments {
    display: flex;
    align-items: center;
    gap: 3px;
}

@media (max-width: 1200px) {
    .masonry-grid {
        column-count: 3;
    }
}

@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* 文章导航样式 */
.post-nav-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}

.nav-box {
    flex: 1;
    width: calc(50% - 10px);
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-box:hover {
    border-color: #ff6b9d;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.15);
    transform: translateY(-2px);
}

.nav-box a {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: #333333;
}

.nav-prev {
    justify-content: flex-start;
}

.nav-prev .nav-content {
    align-items: flex-start;
}

.nav-next {
    justify-content: flex-end;
}

.nav-next .nav-content {
    align-items: flex-end;
    text-align: right;
}

.nav-next .nav-title {
    text-align: right;
}

.nav-prev .nav-arrow {
    margin-right: 15px;
    font-size: 18px;
    color: #ff6b9d;
}

.nav-next .nav-arrow {
    margin-left: 15px;
    font-size: 18px;
    color: #ff6b9d;
}

.nav-content {
    display: flex;
    flex-direction: column;
}

.nav-label {
    font-size: 12px;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.nav-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #333333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-disabled .nav-title {
    color: #999999;
}

.nav-disabled .nav-arrow {
    color: #cccccc;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 15px;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, #ff6b9d, #ff85c0);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

.pagination .page-link.active {
    background: linear-gradient(135deg, #ff6b9d, #ff85c0);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

.pagination .page-link.prev,
.pagination .page-link.next {
    border-radius: 20px;
    min-width: auto;
    padding: 0 16px;
}

.pagination .page-link.prev:hover,
.pagination .page-link.next:hover {
    transform: translateY(-2px);
}

.pagination .page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .page-link.disabled:hover {
    background: #f5f5f5;
    color: #666666;
    transform: none;
    box-shadow: none;
}