/*
Theme Name: XysLink
Description: 基于幸运石网络官网设计的Typecho主题
Version: 1.0
Author: CodeBuddy
*/



/* ========================================
   Typecho 核心样式
   ======================================== */

/* 评论系统样式 */
.typecho-comment {
    margin: 2rem 0;
    padding: 1rem;
    border-left: 3px solid #007bff;
    background-color: #f8f9fa;
}

.typecho-comment .comment-meta {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.typecho-comment .comment-meta .fn {
    font-weight: 600;
    color: #333;
}

.typecho-comment .comment-content {
    line-height: 1.6;
    margin-top: 0.5rem;
}

.typecho-comment .comment-reply {
    margin-top: 0.5rem;
    text-align: right;
}

.typecho-comment .comment-reply a {
    color: #007bff;
    text-decoration: none;
}

.typecho-comment .comment-reply a:hover {
    text-decoration: underline;
}

/* 嵌套评论样式 */
.comment-children {
    margin-left: 2rem;
    margin-top: 1rem;
}

.comment-child {
    border-left: 2px solid #ddd;
    padding-left: 1rem;
}

/* 评论表单样式 */
#comment-form {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

#comment-form .form-group {
    margin-bottom: 1.5rem;
}

#comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

#comment-form input[type="text"],
#comment-form input[type="email"],
#comment-form input[type="url"],
#comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

#comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

#comment-form .submit {
    background-color: #007bff;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

#comment-form .submit:hover {
    background-color: #0056b3;
}

/* ========================================
   分页样式
   ======================================== */

.page-navigator {
    margin: 2rem 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.page-navigator a,
.page-navigator span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.page-navigator a:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-1px);
}

.page-navigator .current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* ========================================
   文章内容样式
   ======================================== */

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #666;
}

.post-content ul,
.post-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.post-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* ========================================
   Logo 样式
   ======================================== */

.header .logo {
    width: 6.25rem;
    height: 2.5rem;
}

.footer .logo {
    margin-bottom: 1.25rem;
    margin-right: auto;
}

.logo {
    width: 10rem;
    height: 3.25rem;
    background-size: contain;
    background-image: url('../image/logo-black.png');
    background-repeat: no-repeat;
    background-position: center;
}

:is(.header, .p-portfolio, .p-news-list, .p-contact) .logo,
:is(.p-team, .p-home) .footer .logo {
    background-image: url('../image/logo-white.png');
}

:is(.p-team, .p-home) .footer {
    border-color: rgba(255, 255, 255, .32);
    border-top-width: 1px;
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 768px) {
    /* 评论系统响应式 */
    .comment-children {
        margin-left: 1rem;
        padding-left: 0.5rem;
    }
    
    #comment-form {
        padding: 1rem;
    }
    
    .typecho-comment {
        margin: 1rem 0;
        padding: 0.75rem;
    }
    
    #comment-form {
        padding: 1rem;
    }
    
    .typecho-comment {
        margin: 1rem 0;
        padding: 0.75rem;
    }
}

