/*
Theme Name: Thursday
Theme URI: 
Author: 
Author URI: 
Description: 双栏布局的简洁WordPress主题
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thursday

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* 加载条样式 */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #3498db;
    z-index: 9999;
    transition: width 0.3s ease;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* 页头样式 */
header {
    background: none;
    padding: 0;
    border-bottom: none;
    margin-bottom: 30px;
}

.header-content {
    text-align: center;
}

.header-content h1 {
    font-size: 0;
    margin: 0;
    color: transparent;
}

/* 侧边栏样式 */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.author-info {
    padding: 30px 0;
    margin-bottom: 30px;
    text-align: center;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
    border: none;
}

.author-name {
    text-align: center;
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.author-bio {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* 导航菜单样式 */
.nav-menu {
    padding: 0;
    text-align: center;
}

.nav-menu h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 10px;
    text-align: center;
}

.nav-menu a {
    color: #34495e;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 8px 0;
    text-align: center;
}

.nav-menu a:hover {
    color: #3498db;
}

/* 当前页面菜单项样式 */
.nav-menu .current-menu-item a {
    font-size: 18px;
    font-weight: bold;
    color: #3498db;
}

/* 主内容区域样式 */
.main-content {
    flex: 1;
    min-width: 0;
}

/* 文章列表样式 */
.post-list {
    padding: 0;
}

.post-item {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-thumbnail {
    width: 210px;
    height: 155px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover;
}

.post-item .post-thumbnail {
    width: 210px;
    height: 155px;
    float: left;
    margin-right: 20px;
    border-radius: 8px;
    object-fit: cover;
}

/* 确保通过代码提取的图片也有相同样式 */
.post-item img.post-thumbnail {
    width: 210px;
    height: 155px;
    float: left;
    margin-right: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.post-content {
    flex: 1;
    min-width: 0;
}

.post-title {
    font-size: 18px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #3498db;
}

.post-excerpt {
    color: #7f8c8d;
    margin-bottom: 8px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: calc(1.8em * 3);
}

.post-meta {
    color: #95a5a6;
    font-size: 14px;
}

.post-item.no-thumbnail {
    display: block;
}

/* 文章详情页样式 */
.single-post {
    margin-bottom: 30px;
}

.single-post .post-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #2c3e50;
    text-align: center;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.single-post .post-meta {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.single-post .post-content {
    margin-bottom: 30px;
    font-size: 16px;
    color: #34495e;
    letter-spacing: 0.01em;
}

.single-post .post-content p {
    margin-bottom: 22px;
    line-height: 1.85;
    text-align: justify;
    text-indent: 2em;
    hyphens: auto;
}

.single-post .post-content img {
    max-width: 60%;
    height: auto;
    margin: 25px auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.single-post .post-content img:hover {
    transform: scale(1.01);
}

/* 添加图片标题样式 */
.single-post .post-content figcaption {
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 10px;
    font-style: italic;
}

/* 优化文章内链接样式 */
.single-post .post-content a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.single-post .post-content a:hover {
    color: #2980b9;
    border-bottom-color: #2980b9;
}

/* 优化列表样式 */
.single-post .post-content ul,
.single-post .post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.single-post .post-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* 优化引用样式 */
.single-post .post-content blockquote {
    margin: 25px 0;
    padding: 20px 25px;
    border-left: 4px solid #3498db;
    background-color: #f8f9fa;
    font-style: italic;
    color: #555;
}

/* 优化代码块样式 */
.single-post .post-content pre,
.single-post .post-content code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background-color: #f6f8fa;
    border-radius: 4px;
}

.single-post .post-content code {
    padding: 2px 5px;
    font-size: 0.9em;
}

.single-post .post-content pre {
    padding: 15px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #eaeaea;
}

/* 单页模板样式 */
.page-template {
    margin-bottom: 30px;
}

.page-template h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #2c3e50;
    text-align: center;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.page-template p {
    margin-bottom: 22px;
    line-height: 1.85;
    text-align: justify;
    text-indent: 2em;
    hyphens: auto;
    font-size: 16px;
    color: #34495e;
    letter-spacing: 0.01em;
}

/* 单页内图片样式 */
.page-template img {
    max-width: 60%;
    height: auto;
    margin: 25px auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-template img:hover {
    transform: scale(1.01);
}

/* 单页内链接样式 */
.page-template a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.page-template a:hover {
    color: #2980b9;
    border-bottom-color: #2980b9;
}

/* 单页内列表样式 */
.page-template ul,
.page-template ol {
    margin: 20px 0;
    padding-left: 30px;
}

.page-template li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* 单页内引用样式 */
.page-template blockquote {
    margin: 25px 0;
    padding: 20px 25px;
    border-left: 4px solid #3498db;
    background-color: #f8f9fa;
    font-style: italic;
    color: #555;
  }

/* 文章导航样式 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 25px 0;
    margin-top: 30px;
    border-top: 1px solid #eee;
}

.post-navigation a {
    color: #34495e;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.post-navigation a:hover {
    color: #3498db;
}

.prev-post {
    text-align: left;
}

.next-post {
    text-align: right;
}

/* 评论区域样式 */
.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

/* 确保只有一级评论显示分隔线，嵌套评论不显示 */
.comment-list .children .comment-item {
    border-bottom: none;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

/* 确保一级评论及其所有回复都在同一个分隔线区域内 */
.comment-list > li.comment-item {
    /* 保留一级评论的分隔线 */
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 30px;
    padding-bottom: 30px;
}

/* 确保嵌套评论区域不会添加额外的分隔线 */
.comment-list .children {
    margin-top: 15px;
    margin-left: 55px;
    border-top: none;
}

/* 确保嵌套评论项不会显示任何分隔线 */
.comment-list .children li {
    border-bottom: none;
    box-shadow: none;
}

.comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-body {
    display: flex;
    flex-direction: column;
}

.comment-author {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
}

.comment-author .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.comment-meta {
    flex: 1;
}

.comment-author-name {
    display: inline;
    font-weight: 600;
    color: inherit;
    font-size: 16px;
    text-decoration: none;
}

.comment-time {
    display: inline;
    font-size: 14px;
    color: #95a5a6;
    margin-left: 10px;
}

.comment-author-name a {
    text-decoration: none;
    color: inherit;
}

.comment-content {
    margin-left: 55px;
    line-height: 1.8;
    color: #34495e;
    font-size: 16px;
}

.comment-content p {
    margin-bottom: 10px;
    text-indent: 0;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-reply {
    display: inline;
    margin-left: 10px;
}

.comment-reply a {
    display: inline-block;
    text-decoration: none;
    font-size: 16px;
    color: #95a5a6;
    transition: color 0.3s ease;
    padding: 0 5px;
}

.comment-reply a:hover {
    color: #3498db;
}

.comment-author {
    padding: 0;
}

.comment-pending {
    opacity: 0.8;
}

.comment-awaiting-moderation {
    color: #e67e22;
    font-style: italic;
    margin-bottom: 10px;
    margin-left: 55px;
}

/* 评论分页 */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-navigation a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-navigation a:hover {
    color: #2980b9;
}

/* 评论表单样式 */
.comment-reply-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.comment-form {
    margin-top: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 16px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-form-submit {
    text-align: center;
    margin-top: 30px;
}

.comment-form-submit input[type="submit"] {
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form-submit input[type="submit"]:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.comment-form-submit input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.2);
}

.comment-notes {
    margin-bottom: 20px;
    font-size: 14px;
    color: #7f8c8d;
    font-style: italic;
}

.required {
    color: #e74c3c;
}

/* 嵌套评论样式 */
.comment-list .children {
    list-style: none;
    padding-left: 40px;
    margin-top: 20px;
}

.comment-list .children .comment-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .comment-author {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-author .avatar {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .comment-content,
    .comment-reply,
    .comment-awaiting-moderation {
        margin-left: 0;
    }
    
    .comment-list .children {
        padding-left: 20px;
    }
}

/* 取消回复链接样式 */
.cancel-comment-reply {
    display: inline-block;
    margin-left: 15px;
    font-size: 14px;
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cancel-comment-reply:hover {
    color: #34495e;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    color: #7f8c8d;
    font-size: 14px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        margin-bottom: 30px;
        position: static;
        top: auto;
    }
    
    .author-info {
        text-align: center;
    }
    
    .post-item {
        flex-direction: column;
    }
    
    /* 在小屏幕设备上，缩略图自适应宽度 */
    .post-item .post-thumbnail,
    .post-item img.post-thumbnail,
    .post-thumbnail {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 20px;
    }
}