
body {
    font-family: 'Courier New', 'Microsoft YaHei', 'SimHei', monospace;
    line-height: 1.8;
    margin: 0;
    background-color: #0f0f23;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 65, 0.03) 2px,
            rgba(0, 255, 65, 0.03) 4px
        );
    color: #00ff41;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    letter-spacing: 1px;
    font-size: 12px;
}

header {
    border-bottom: 3px solid #00ff41;
    border-top: 3px solid #00ff41;
    padding: 1rem 0;
    margin-bottom: 2rem;
    background-color: #1a1a2e;
    box-shadow: 
        0 0 10px rgba(0, 255, 65, 0.3),
        inset 0 0 10px rgba(0, 255, 65, 0.1);
}

nav {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.blog-title {
    margin-bottom: 1rem;
    align-self: flex-start;
}

.external-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
    width: 100%;
}

.external-nav a {
    font-size: 0.95rem;
    font-weight: 400;
    padding: 5px 0;
    position: relative;
    text-decoration: none;
    color: #00ff41;
    transition: all 0.3s ease;
}

.external-nav a::before {
    content: "▶ ";
    color: #00ff41;
    font-size: 10px;
    margin-right: 5px;
}

.external-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #00ff41;
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
    transition: width 0.3s ease;
}

.external-nav a:hover {
    color: #ffffff;
    transform: scale(1.05);
}

.external-nav a:hover::after {
    width: 100%;
}

nav a {
    text-decoration: none;
    color: #00ff41;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #ffffff;
    transform: scale(1.05);
}

/* 博客标题样式 - 与导航链接一致 */
.blog-title a {
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.blog-title a h1 {
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.blog-title a:hover h1 {
    color: #00ff41 !important;
    transform: scale(1.05);
}

/* 移除博客标题的三角形符号 */

.blog-title a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #00ff41;
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
    transition: width 0.3s ease;
}

.blog-title a:hover::after {
    width: 100%;
}

h1 {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 2px;
    color: #ffffff;
}

/* 文章页面标题样式 - 与导航链接一致 */
main > h1 {
    position: relative;
    padding: 5px 0;
    margin-bottom: 1rem;
    display: inline-block;
}

/* 移除文章页面标题的三角形符号 */

main > h1::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #00ff41;
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
    transition: width 0.3s ease;
}

main > h1:hover::after {
    width: 100%;
}

main > h1:hover {
    color: #00ff41;
    transform: scale(1.02);
    transition: all 0.3s ease;
    cursor: default;
}

main {
    flex-grow: 1;
    width: 100%;
    max-width: 700px;
    margin: 0 auto 3rem;
    padding: 0 20px;
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: 10px;
    color: #666;
    border-top: 3px solid #00ff41;
    margin-top: 4rem;
    background-color: #1a1a2e;
    box-shadow: 
        0 0 10px rgba(0, 255, 65, 0.3),
        inset 0 0 10px rgba(0, 255, 65, 0.1);
}

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

footer a:hover {
    color: #ffffff;
}

.post-list {
    list-style: none;
    padding: 0;
}

.post-list li {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 2px solid #00ff41;
    background-color: #1a1a2e;
    box-shadow: 
        0 0 10px rgba(0, 255, 65, 0.2),
        inset 0 0 10px rgba(0, 255, 65, 0.05);
    position: relative;
}

/* 移除文章列表项的■符号，因为链接现在有▶符号了 */

.post-list li:last-child {
    border-bottom: 2px solid #00ff41;
}

.post-list a {
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
    margin-left: 8px;
    position: relative;
    padding: 5px 0;
}

/* 移除文章列表的三角形符号 */

.post-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #00ff41;
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
    transition: width 0.3s ease;
}

.post-list a:hover {
    color: #00ff41;
    transform: scale(1.05);
}

.post-list a:hover::after {
    width: 100%;
}

.post-meta {
    color: #666;
    font-size: 10px;
    margin-bottom: 1rem;
    margin-left: 8px;
    display: block;
}

.post-content {
    white-space: pre-wrap;
    line-height: 1.8;
    padding: 1rem;
    background-color: #1a1a2e;
    border: 2px solid #00ff41;
    box-shadow: 
        0 0 10px rgba(0, 255, 65, 0.2),
        inset 0 0 10px rgba(0, 255, 65, 0.05);
    font-size: 12px;
    color: #ffffff;
}

/* Search Box */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

#search-input {
    padding: 10px 15px;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    width: 200px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    outline: none;
}

#search-input:focus {
    border-bottom: 1px solid #ccc;
    background-color: #fff;
    width: 250px;
}

#search-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

#search-button:hover {
    background-color: #f0f0f0;
}

.search-icon {
    font-size: 1.2rem;
}

#search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    list-style: none;
    padding: 0;
    margin: 0;
    display: none; /* Hidden by default */
    z-index: 10;
    border-radius: 4px;
    overflow: hidden;
}

#search-results li {
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s ease;
}

#search-results li:last-child {
    border-bottom: none;
}

#search-results li a {
    text-decoration: none;
    color: #333;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 4px;
}

#search-results li:hover {
    background-color: #f9f9f9;
}

.search-preview {
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.more-results, .no-results {
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    color: #aaa;
    font-style: italic;
    background-color: #fafafa;
}

/* 分页导航样式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    padding: 1rem;
    gap: 10px;
}

.pagination .page-link {
    text-decoration: none;
    color: #00ff41;
    padding: 8px 12px;
    border: 1px solid #00ff41;
    background-color: #1a1a2e;
    transition: all 0.3s ease;
    font-size: 11px;
    letter-spacing: 1px;
}

.pagination .page-link:hover {
    background-color: #00ff41;
    color: #0f0f23;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.pagination .page-link.disabled {
    color: #666;
    border-color: #666;
    cursor: not-allowed;
}

.pagination .page-link.disabled:hover {
    background-color: #1a1a2e;
    color: #666;
    box-shadow: none;
}

.pagination .page-numbers {
    display: flex;
    gap: 5px;
    margin: 0 10px;
}

.pagination .page-number {
    text-decoration: none;
    color: #00ff41;
    padding: 5px 10px;
    border: 1px solid #00ff41;
    background-color: #1a1a2e;
    transition: all 0.3s ease;
    font-size: 11px;
    min-width: 30px;
    text-align: center;
}

.pagination .page-number:hover {
    background-color: #00ff41;
    color: #0f0f23;
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

.pagination .current-page {
    padding: 5px 10px;
    background-color: #00ff41;
    color: #0f0f23;
    border: 1px solid #00ff41;
    font-size: 11px;
    min-width: 30px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.7);
}

/* 文章导航样式 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
    border: 2px solid #00ff41;
    background-color: #1a1a2e;
    box-shadow: 
        0 0 10px rgba(0, 255, 65, 0.2),
        inset 0 0 10px rgba(0, 255, 65, 0.05);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    text-align: center;
}

.post-navigation .nav-previous {
    text-align: left;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    text-decoration: none;
    color: #00ff41;
    font-size: 11px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 10px;
    letter-spacing: 1px;
}

.post-navigation a:hover {
    color: #ffffff;
    transform: scale(1.05);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .external-nav {
        gap: 10px;
    }
    
    .external-nav a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination .page-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        text-align: center;
    }
}

