/*
Theme Name: Skyue 风格
Theme URI: https://www.skyue.com
Description: 简洁单栏主题，参考拾月博客风格
Version: 1.0
Author: 
License: Apache-2.0
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: Roboto, Helvetica, Tahoma, Arial, "LXGW WenKai Screen", "PingFang SC", "Hiragino Sans GB", "Source Han Sans CN", "WenQuanYi Micro Hei", "Microsoft Yahei", serif;
    background: #fff;
    color: #333;
    line-height: 1.8;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 40px 0 30px;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.site-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.site-name a {
    color: #333;
    text-decoration: none;
}

.site-name a:hover {
    color: #0066cc;
}

.tagline {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Search */
.search-form {
    margin-bottom: 20px;
    display: flex;
    gap: 8px;
}

.search-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.search-form input:focus {
    outline: none;
    border-color: #0066cc;
}

.search-form button {
    padding: 8px 16px;
    background: #0066cc;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
}

.search-form button:hover {
    background: #0052a3;
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-menu a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.current {
    color: #0066cc;
}

/* Main Content */
#main {
    min-height: 300px;
}

/* Intro */
.intro {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px dashed #eee;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.9;
}

.intro a {
    color: #0066cc;
    text-decoration: none;
}

.intro a:hover {
    text-decoration: underline;
}

/* Article */
.article {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.article:last-child {
    border-bottom: none;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.5;
}

.article-title a {
    color: #333;
    text-decoration: none;
}

.article-title a:hover {
    color: #0066cc;
}

.article-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
}

.article-meta span,
.article-meta a {
    padding: 0 10px;
    color: #999;
}

.article-meta span:first-child,
.article-meta a:first-child {
    padding-left: 0;
}

.article-meta span + span,
.article-meta span + a {
    border-left: 1px solid #ddd;
}

.article-meta a {
    color: #0066cc;
    text-decoration: none;
}

.article-meta a:hover {
    text-decoration: underline;
}

.article-content {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.9;
}

.article-content p {
    margin-bottom: 0.8em;
}

.article-content a {
    color: #0066cc;
    text-decoration: none;
}

/* Pagination */
.page-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
    font-size: 0.9rem;
}

.page-nav a,
.page-nav span {
    padding: 6px 12px;
    color: #666;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.page-nav a:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.page-nav .current {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* Sidebar */
#sidebar {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #999;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 6px 0;
    font-size: 0.9rem;
    border-bottom: 1px dashed #f0f0f0;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #555;
    text-decoration: none;
}

.widget ul li a:hover {
    color: #0066cc;
}

.comment-author {
    color: #0066cc;
    font-weight: 500;
}

.recent-comment {
    color: #666;
    font-size: 0.85rem;
    display: block;
    margin-top: 2px;
}

/* Footer */
#footer {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #999;
}

#footer a {
    color: #666;
    text-decoration: none;
}

#footer a:hover {
    color: #0066cc;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-bottom: 12px;
}

.footer-stats {
    margin-bottom: 8px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Post Detail Page */
.post-detail {
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.post-detail .post-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}

.post-detail .post-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 30px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.post-detail .post-meta a {
    color: #0066cc;
    text-decoration: none;
}

.post-detail .post-content {
    font-size: 1rem;
    color: #333;
    line-height: 2;
}

.post-detail .post-content h2 {
    font-size: 1.4rem;
    margin: 2em 0 1em;
    color: #222;
}

.post-detail .post-content h3 {
    font-size: 1.2rem;
    margin: 1.5em 0 0.8em;
    color: #333;
}

.post-detail .post-content p {
    margin-bottom: 1.2em;
}

.post-detail .post-content ul,
.post-detail .post-content ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.post-detail .post-content li {
    margin-bottom: 0.5em;
}

.post-detail .post-content blockquote {
    border-left: 3px solid #0066cc;
    padding-left: 1em;
    margin: 1.5em 0;
    color: #666;
    font-style: italic;
}

.post-detail .post-content pre {
    background: #f8f8f8;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.post-detail .post-content code {
    background: #f8f8f8;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: "SF Mono", Consolas, monospace;
    font-size: 0.9em;
}

.post-detail .post-content pre code {
    padding: 0;
    background: none;
}

/* Code Font */
code, pre, .article-content code {
    font-family: Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
}

.post-tags {
    margin-top: 30px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-tags a {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.post-tags a:hover {
    border-color: #0066cc;
    color: #0066cc;
}

/* Post Navigation */
.post-near {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
    font-size: 0.9rem;
}

.post-near a {
    color: #0066cc;
    text-decoration: none;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Comments */
#comments {
    margin-top: 40px;
}

.comments-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Archive Title */
.archive-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 0 15px;
    }
    
    .header {
        padding: 30px 0 20px;
    }
    
    .site-name {
        font-size: 1.6rem;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
    
    .post-detail .post-title {
        font-size: 1.4rem;
    }
}


/* Read More Link */
.read-more {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Footer Legal */
.footer-legal {
    margin-top: 8px;
}

.footer-legal a {
    color: #999;
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-legal a:hover {
    color: #666;
}
