/*
Theme Name: WeiShuShu Theme
Theme URI: https://example.com
Description: A custom WordPress theme with three-column layout
Author: WeiShuShu
Author URI: https://example.com
Version: 1.0
Text Domain: weishushu
*/

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #e8f4f8; /* 淡蓝色背景 */
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
}

/* 页头样式 */
header {
    background: transparent; /* 完全透明背景 */
    padding: 20px 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.quote-carousel {
    flex: 1;
    text-align: center;
    margin: 0 20px;
}

.day-night-toggle {
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}

.day-night-toggle::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: 0.3s;
}

.day-night-toggle.active::after {
    left: 22px;
}

/* 主内容区域样式 */
.main-content {
    display: flex;
    width: 100%;
    margin-top: 20px;
    gap: 20px;
}

/* 左侧边栏样式 */
.left-sidebar {
    width: 300px;
    max-width: 100%;
    flex-shrink: 0;
}

/* 左侧边栏合并卡片样式 */
.left-sidebar-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-profile {
    margin-bottom: 20px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    margin-right: 15px;
    object-fit: cover;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-details {
    flex: 1;
}

.user-nickname {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.user-greeting {
    display: inline-block;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.site-menu {
    margin-bottom: 20px;
    padding: 0;
}

.site-menu ul {
    list-style: none;
}

.site-menu li {
    margin-bottom: 10px;
}

.site-menu a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    display: block;
    padding: 8px 15px;
    border-radius: 5px;
}

.site-menu a:hover {
    color: #6e8efb;
    background-color: rgba(110, 142, 251, 0.1);
}

/* 当前页面菜单项样式 */
.site-menu li.current-menu-item a,
.site-menu li.current_page_item a {
    background-color: rgba(110, 142, 251, 0.2);
    color: #6e8efb;
    font-weight: 500;
}

.site-stats {
    margin-bottom: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.stat-number {
    font-size: 20px;
    font-weight: bold;
    color: #6e8efb;
}

.search-box {
    margin-top: 20px;
    padding: 0;
}

.search-form {
    display: flex;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
}

.search-button {
    background-color: #6e8efb;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* 中间内容栏样式 */
.content-area {
    flex: 1;
    max-width: 980px;
}

/* 公告栏样式 */
.announcement-bar {
    display: flex;
    align-items: center;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    gap: 10px;
}

.announcement-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-text {
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

/* 响应式公告栏 */
@media (max-width: 768px) {
    .announcement-bar {
        padding: 10px 12px;
    }
    
    .announcement-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .announcement-text {
        font-size: 13px;
    }
}

.post-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.post-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    margin-right: 15px;
}

.post-author-info {
    flex: 1;
}

.post-author {
    font-weight: bold;
    margin-bottom: 5px;
}

.post-date {
    font-size: 14px;
    color: #666;
}

.post-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.post-title a {
    color: #6e8efb;
    text-decoration: none;
}

.post-excerpt {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* 文章图片自适应布局 */
.post-images {
    margin-top: 15px;
    width: 100%;
}

.images-grid {
    display: grid;
    gap: 8px;
    width: 100%;
    overflow: hidden;
}

.grid-image {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 懒加载图片样式 */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in;
    background-color: #f5f5f5;
    position: relative;
}

/* 图片懒加载占位符样式 */
img.lazy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 50%, #f0f0f0 50%, #f0f0f0 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    animation: placeholderAnimation 1s linear infinite;
}

@keyframes placeholderAnimation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 0;
    }
}

.grid-image:hover img {
    transform: scale(1.05);
}

/* 根据图片数量自动调整网格布局 */
/* 单张图片 */
.images-grid:has(.grid-image:nth-child(1):last-child) {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}

.images-grid:has(.grid-image:nth-child(1):last-child) .grid-image {
    aspect-ratio: 16/9;
    max-height: 400px;
}

/* 两张图片 */
.images-grid:has(.grid-image:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    gap: 8px;
}

.images-grid:has(.grid-image:nth-child(2):last-child) .grid-image {
    aspect-ratio: 1/1;
}

/* 三张图片 */
.images-grid:has(.grid-image:nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    gap: 8px;
}

.images-grid:has(.grid-image:nth-child(3):last-child) .grid-image {
    aspect-ratio: 1/1;
}

/* 四张图片 */
.images-grid:has(.grid-image:nth-child(4):last-child) {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
}

.images-grid:has(.grid-image:nth-child(4):last-child) .grid-image {
    aspect-ratio: 1/1;
}

/* 五张图片 */
.images-grid:has(.grid-image:nth-child(5):last-child) {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}

.images-grid:has(.grid-image:nth-child(5):last-child) .grid-image {
    aspect-ratio: 1/1;
}

/* 六张图片 */
.images-grid:has(.grid-image:nth-child(6):last-child) {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}

.images-grid:has(.grid-image:nth-child(6):last-child) .grid-image {
    aspect-ratio: 1/1;
}

/* 七到九张图片 - 3x3网格 */
.images-grid:has(.grid-image:nth-child(n+7)) {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
}

.images-grid:has(.grid-image:nth-child(n+7)) .grid-image {
    aspect-ratio: 1/1;
}

/* 单页文章内容排版样式 */
.post-content {
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.5px;
    color: #333;
}

/* 优化段落样式 */
.post-content p {
    margin-bottom: 20px;
    text-align: justify;
}

/* 优化标题样式 */
.post-content h1, 
.post-content h2, 
.post-content h3, 
.post-content h4, 
.post-content h5, 
.post-content h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.post-content h1 {
    font-size: 28px;
    border-bottom: 2px solid #6e8efb;
    padding-bottom: 10px;
}

.post-content h2 {
    font-size: 24px;
    border-bottom: 1px solid #e1e8ed;
    padding-bottom: 8px;
}

.post-content h3 {
    font-size: 20px;
}

/* 优化图片显示效果 */
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-content img:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 图片懒加载优化 */
.post-content img.lazy {
    opacity: 0;
    background-color: #f8f9fa;
    position: relative;
}

/* 图片加载完成后的动画效果 */
.post-content img.loaded {
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

/* 优化引用块样式 */
.post-content blockquote {
    margin: 20px 0;
    padding: 15px 20px 15px 45px;
    border-left: 4px solid #6e8efb;
    background-color: #f8f9fa;
    font-style: italic;
    position: relative;
}

.post-content blockquote::before {
    content: '"';
    font-size: 48px;
    color: #e1e8ed;
    position: absolute;
    left: 10px;
    top: -10px;
}

/* 优化列表样式 */
.post-content ul, 
.post-content ol {
    margin: 15px 0 15px 20px;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* 优化链接样式 */
.post-content a {
    color: #6e8efb;
    text-decoration: none;
    transition: color 0.2s ease, border-bottom 0.2s ease;
    border-bottom: 1px solid rgba(110, 142, 251, 0.3);
}

.post-content a:hover {
    color: #5a79d9;
    border-bottom-color: #5a79d9;
}

/* 优化代码块样式 */
.post-content pre, 
.post-content code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.post-content code {
    padding: 2px 6px;
    font-size: 0.9em;
}

.post-content pre {
    padding: 15px;
    margin: 20px 0;
    overflow-x: auto;
    border: 1px solid #e1e8ed;
}

.post-content pre code {
    padding: 0;
    background-color: transparent;
}

/* 优化表格样式 */
.post-content table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    border-spacing: 0;
}

.post-content th, 
.post-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e8ed;
}

.post-content th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.post-content tr:hover {
    background-color: #f8f9fa;
}

/* 确保响应式设计 */
@media (max-width: 768px) {
    /* 单张图片 */
    .images-grid:has(.grid-image:nth-child(1):last-child) {
        grid-template-columns: 1fr;
    }
    
    /* 两到四张图片 */
    .images-grid:has(.grid-image:nth-child(n+2)):has(:not(.grid-image:nth-child(n+5))) {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 五到九张图片 */
    .images-grid:has(.grid-image:nth-child(n+5)) {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 右侧边栏样式 */
.right-sidebar {
    width: 300px;
    max-width: 100%;
    flex-shrink: 0;
}

.popular-posts {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.popular-posts h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.popular-post-item {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.popular-post-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post-rank {
    font-size: 24px;
    font-weight: bold;
    color: #6e8efb;
    margin-right: 15px;
    opacity: 0.7;
}

.popular-post-content {
    flex: 1;
}

.popular-post-title {
    font-size: 14px;
    margin-bottom: 5px;
}

.popular-post-title a {
    color: #333;
    text-decoration: none;
}

.popular-post-title a:hover {
    color: #6e8efb;
}

.popular-post-stats {
    font-size: 12px;
    color: #666;
}

/* 友情链接页面样式 */
/* 链接分类标题样式 */
.link-category-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.link-category-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #6e8efb;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-icon {
    color: #6e8efb;
}

.category-count {
    font-size: 14px;
    font-weight: normal;
    color: #6e8efb;
    margin-left: 8px;
}

/* 链接网格布局样式 */
.link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* 单个友情链接卡片样式 */
.link-item {
    transition: transform 0.3s ease;
}

.link-item:hover {
    transform: translateY(-3px);
}

.link-card {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.link-card:hover {
    background-color: #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 头像样式 - 40x40大小 */
.link-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.link-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 链接信息样式 */
.link-info {
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 40px; /* 与头像高度一致 */
}

.link-name {
    font-size: 14px;
    font-weight: bold;
    color: #6e8efb;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-description {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 朋友动态样式 */
.friends-updates {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.friends-updates h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.friends-updates h3::before {
    content: '✨';
    font-size: 16px;
}

.friend-update-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.friend-update-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.friend-update-title {
    margin-bottom: 4px;
}

.friend-update-title a {
    color: #6e8efb;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.friend-update-title a:hover {
    color: #5a79d9;
}

.friend-update-meta {
    font-size: 12px;
    color: #666;
}

.no-links, .no-updates {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* 关于页面样式 */
/* 关于博主部分样式 */
.about-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-content {
    line-height: 1.8;
}

.about-text {
    color: #333;
}

.about-text h2,
.about-text h3,
.about-text h4 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 15px;
}

.about-text h2 {
    font-size: 24px;
    border-bottom: 2px solid #6e8efb;
    padding-bottom: 10px;
}

.about-text h3 {
    font-size: 20px;
    color: #6e8efb;
}

.about-text h4 {
    font-size: 16px;
    color: #333;
}

.about-text p {
    margin-bottom: 15px;
}

.about-text a {
    color: #6e8efb;
    text-decoration: none;
}

.about-text a:hover {
    text-decoration: underline;
}

/* 默认关于信息样式 */
.default-about {
    color: #333;
}

.default-about h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #6e8efb;
}

.default-about h4 {
    font-size: 18px;
    color: #6e8efb;
    margin-top: 20px;
    margin-bottom: 10px;
}

.default-about p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #333;
}

/* 博客大事记样式 */
.blog-milestones {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-milestones h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-milestones h3::before {
    content: '📅';
    font-size: 16px;
}

.milestones-list {
    position: relative;
    padding-left: 20px;
}

.milestones-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #6e8efb;
    opacity: 0.3;
}

.milestone-item {
    position: relative;
    margin-bottom: 15px;
    padding-left: 15px;
}

.milestone-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #6e8efb;
}

.milestone-date {
    font-size: 14px;
    font-weight: bold;
    color: #6e8efb;
    margin-bottom: 3px;
}

.milestone-content {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

/* 页脚样式 */
footer {
    background-color: white;
    padding: 40px 0;
    margin-top: 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .left-sidebar,
    .content-area {
        width: 100%;
        max-width: 100%;
    }
    
    .right-sidebar {
        display: none;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .quote-carousel {
        margin: 0;
    }
}

/* 自定义分页样式 - 蓝色圆圈背景数字按钮 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #6e8efb;
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}

.pagination-numbers:hover {
    background-color: #5a79d9;
    transform: translateY(-2px);
    color: white;
}

.pagination-numbers.current {
    background-color: #4a66c6;
    font-weight: 600;
    transform: scale(1.1);
}

/* 响应式分页调整 */
@media (max-width: 768px) {
    .pagination {
        gap: 6px;
    }
    
    .pagination-numbers {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* 友情链接页面响应式调整 */
@media (max-width: 1200px) {
    .link-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .link-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .link-category-title {
        font-size: 18px;
    }
    
    .link-card {
        padding: 10px;
    }
    
    .link-avatar {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }
    
    .link-info {
        height: 36px;
    }
    
    .link-name {
        font-size: 13px;
    }
    
    .link-description {
        font-size: 11px;
    }
    
    .friends-updates {
        display: none; /* 在移动设备上隐藏朋友动态 */
    }
}

/* 关于页面响应式调整 */
@media (max-width: 768px) {
    .about-section {
        padding: 15px;
    }
    
    .about-text h2 {
        font-size: 20px;
    }
    
    .about-text h3 {
        font-size: 18px;
    }
    
    .about-text h4 {
        font-size: 16px;
    }
    
    .default-about h3 {
        font-size: 20px;
    }
    
    .default-about h4 {
        font-size: 16px;
    }
    
    .blog-milestones {
        padding: 15px;
        display: none; /* 在移动设备上隐藏博客大事记 */
    }
    
    .blog-milestones h3 {
        font-size: 16px;
    }
    
    .milestone-date,
    .milestone-content {
        font-size: 13px;
    }
}

/* 留言页面样式 */
/* 留言板头部样式 */
.liuyan-section {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-top: 20px;
    max-width: 100%; /* 确保不超出父容器宽度 */
}

.liuyan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8f4f8;
}

.liuyan-header-content {
    flex: 1;
}

.liuyan-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.liuyan-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.liuyan-decoration {
    margin-left: 20px;
    opacity: 0.8;
}

/* 留言板介绍样式 */
.liuyan-intro {
    margin-bottom: 30px;
}

.intro-content {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
    border-radius: 10px;
    padding: 20px;
    color: white;
}

.intro-text {
    flex: 1;
    margin-right: 20px;
}

.intro-text h4 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.intro-text p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.intro-image {
    flex-shrink: 0;
}

/* 留言表单样式 */
.liuyan-form {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
}

/* 评论列表区域样式 */
.comment-list-section {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-top: 20px;
}

/* 评论表单区域样式 */
.comment-form-section {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.comment-form-section .comment-form {
    margin-bottom: 0;
}

.comment-form-section .comment-notes {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.comment-form-section .comment-form-author,
.comment-form-section .comment-form-email,
.comment-form-section .comment-form-url,
.comment-form-section .comment-form-comment {
    margin-bottom: 15px;
}

.comment-form-section label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.comment-form-section textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

/* 发表回复标题样式 */
#reply-title, .comment-reply-title {
    font-size: 18px !important;
    margin-bottom: 15px !important;
}

/* 评论表单行内元素容器 */
.comment-form-section .comment-form-fields {
    display: flex;
    align-items: flex-end;
    flex-wrap: nowrap;
    margin-bottom: 15px;
}

/* 评论表单横排输入框样式 */
.comment-form-section .comment-form-author,
.comment-form-section .comment-form-email,
.comment-form-section .comment-form-url {
    flex: 1;
    margin-right: 10px;
    margin-bottom: 0;
}

.comment-form-section .comment-form-url {
    margin-right: 10px;
}

.comment-form-section input[type="text"],
.comment-form-section input[type="email"],
.comment-form-section input[type="url"] {
    width: 100%;
    padding: 10px 15px;
    border: none;
    background-color: #d0e9fd;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

/* 发表评论按钮样式 */
.comment-form-section .form-submit {
    margin-bottom: 0;
}

.comment-form-section input[type="submit"] {
    padding: 10px 20px;
    height: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.comment-form-section input[type="text"]:focus,
.comment-form-section input[type="email"]:focus,
.comment-form-section input[type="url"]:focus {
    outline: none;
    background-color: #b8deff;
    box-shadow: 0 0 0 2px rgba(110, 142, 251, 0.2);
}

.comment-form-section textarea:focus {
    outline: none;
    background-color: #b8deff;
    box-shadow: 0 0 0 2px rgba(110, 142, 251, 0.2);
}

/* 响应式设计：在小屏幕上单列显示 */
@media (max-width: 768px) {
    .comment-form-section .comment-form-fields {
        flex-direction: column;
    }
    
    .comment-form-section .comment-form-author,
    .comment-form-section .comment-form-email,
    .comment-form-section .comment-form-url {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .comment-form-section input[type="submit"] {
        width: 100%;
    }
}

/* 评论内容输入框样式 - 无边框淡蓝色背景 */
.comment-form-section textarea {
    width: 100%;
    padding: 10px 15px;
    border: none;
    background-color: #d0e9fd;
    border-radius: 5px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    transition: background-color 0.3s ease;
}

.comment-form-section input[type="submit"] {
    background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form-section input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110, 142, 251, 0.3);
}

.liuyan-form .comment-form {
    margin-bottom: 20px;
}

.liuyan-form .comment-notes {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.liuyan-form .comment-form-author,
.liuyan-form .comment-form-email,
.liuyan-form .comment-form-url,
.liuyan-form .comment-form-comment {
    margin-bottom: 15px;
}

.liuyan-form label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.liuyan-form input[type="text"],
.liuyan-form input[type="email"],
.liuyan-form input[type="url"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

/* liuyan-form 评论内容输入框样式 - 无边框淡蓝色背景 */
.liuyan-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: none;
    background-color: #d0e9fd;
    border-radius: 5px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    transition: background-color 0.3s ease;
}

.liuyan-form input[type="text"]:focus,
.liuyan-form input[type="email"]:focus,
.liuyan-form input[type="url"]:focus,
.liuyan-form textarea:focus {
    outline: none;
    background-color: #b8deff;
    box-shadow: 0 0 0 2px rgba(110, 142, 251, 0.2);
}

.liuyan-form textarea {
    resize: vertical;
    min-height: 120px;
}

.liuyan-form input[type="submit"] {
    background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.liuyan-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110, 142, 251, 0.3);
}

/* 评论列表样式 */
#comments {
    margin-top: 30px;
}

.comments-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list li {
    margin-bottom: 20px;
    padding: 0;
    border: none;
    list-style: none;
}

.comment-list li:last-child {
    border-bottom: none;
}

/* 嵌套评论样式 - 二级回复缩进 */
.comment-list .children {
    margin-left: 55px; /* 缩进显示，比头像宽度大一些 */
    margin-top: 15px;
    padding-left: 0;
    list-style: none;
}

.comment-list .children li {
    margin-bottom: 15px;
    border-left: 2px solid #e6f7ff; /* 添加左侧边框强调嵌套关系 */
    padding-left: 15px;
}

/* 嵌套评论中的作者回复样式 */
.comment-list .children li.author-reply .comment-content-wrapper {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
}

/* 作者回复特殊样式 */
.comment-list li.author-reply .comment-content-wrapper {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
}

/* 作者徽章样式 */
.author-badge {
    display: inline-block;
    font-size: 11px;
    color: #fff;
    background-color: #1890ff;
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 8px;
    vertical-align: middle;
}

/* 评论容器 - 整体布局 */
.comment-author.vcard {
    display: flex;
    margin-bottom: 15px;
}

/* 评论者头像 - 40*40带圆角 - 不包含在背景框内 */
.comment-author .avatar {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    margin-right: 15px;
    flex-shrink: 0;
    object-fit: cover;
}

/* 评论内容区域 - 淡蓝色背景圆角无框线 */
.comment-content-wrapper {
    flex: 1;
    background-color: #d0e9fd;
    border-radius: 10px;
    padding: 10px 15px;
}

/* 评论者信息行 - 昵称、时间和回复按钮在同一行 */
.comment-header-info {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

/* 评论者昵称 */
.comment-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin: 0;
    margin-right: 15px;
}

.comment-author-name a {
    color: #000;
    text-decoration: none;
}

/* 评论时间区域 */
.comment-meta {
    font-size: 13px;
    color: #333;
    margin-right: 8px; /* 减少与回复按钮的间距 */
}

.comment-meta a {
    color: #333;
    text-decoration: none;
}

.comment-meta a:hover {
    text-decoration: underline;
}

/* 评论内容 */
.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    word-wrap: break-word;
    word-break: break-all;
    margin: 0;
    padding: 0;
}

/* 回复按钮容器 - 紧贴评论时间 */
.reply-inline {
    flex-shrink: 0;
}

/* 回复链接样式 - 参考提交评论按钮样式 */
.comment-reply-link {
    display: inline-block;
    background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
    color: white;
    border: none;
    padding: 0.5px 2px; /* 减小上下内边距，降低按钮高度 */
    border-radius: 5px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 4px;
}

.comment-reply-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(110, 142, 251, 0.3);
    color: white;
    text-decoration: none;
}

/* 读者墙样式 */
.readers-wall {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.readers-wall-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.title-decoration {
    margin-right: 10px;
}

.readers-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    height: auto;
}

.reader-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.15), rgba(167, 119, 227, 0.15));
    border-radius: 8px;
    transition: all 0.3s ease;
}

.reader-item:hover {
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.25), rgba(167, 119, 227, 0.25));
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.reader-avatar {
    margin-right: 10px;
}

.reader-image {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.reader-info {
    flex: 1;
}

.reader-name {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.reader-comments {
    font-size: 12px;
    color: #666;
}

/* 留言页面响应式调整 */
@media (max-width: 1200px) {
    .right-sidebar {
        display: none; /* 在中等屏幕上隐藏右侧边栏 */
    }
}

@media (max-width: 768px) {
    .liuyan-section {
        padding: 15px;
    }
    
    .liuyan-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .liuyan-decoration {
        margin-left: 0;
        margin-top: 15px;
        transform: scale(0.8);
    }
    
    .intro-content {
        flex-direction: column;
        text-align: center;
    }
    
    .intro-text {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .intro-image {
        transform: scale(0.8);
    }
    
    .liuyan-form {
        padding: 15px;
    }
    
    .readers-wall {
        padding: 15px;
        display: none; /* 在移动设备上隐藏读者墙 */
    }
    
    .readers-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .reader-item {
        padding: 8px;
    }
    
    .reader-image {
        width: 35px;
        height: 35px;
    }
    
    .reader-name {
        font-size: 13px;
    }
    
    .reader-comments {
        font-size: 11px;
    }
}