/* 博客页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007bff;
    --secondary-color: #6f42c1;
    --text-light: #f0f0f0;
    --text-dim: #8888aa;
    --footer-bg: #f8f9fa;
    --poem-color: rgba(100, 100, 150, 0.7);
    --border-color: #dee2e6;
}

/* 单主题样式 */
body {
    font-family: 'Exo 2', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    color: #333333;
    min-height: 100vh;
    position: relative;
    cursor: default;
}

/* 全局链接样式 */
a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

a:active {
    color: var(--primary-color);
}

/* 页头样式 */
header {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.header-content {

    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.header-logo {
    padding: 1rem  ;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.header-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}

/* 顶部引用样式 */
.top-quote {
    text-align: right;
    margin: 0;
    color: #a9b7c6;
     max-width: 900px;
    font-size: 0.9em;
}



/* 导航栏样式 */
nav {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.2rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
}

nav ul {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    list-style: none;
    gap: 1rem;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1em;
}

nav ul li a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 主容器样式 */
main {

    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

/* 内容区域样式 */
.content {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 侧边栏样式 */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-header {
    background: rgba(255, 255, 255, 0.9);
   
  
    margin: 0;
   
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
}

.logout-icon {
    color: #dc3545;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 4px;
}

.logout-icon:hover {
    color: #c82333;
    background: rgba(220, 53, 69, 0.1);
    transform: scale(1.1);
}

.tags-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 4px;
}

.tags-icon:hover {
    color: var(--secondary-color);
    background: rgba(0, 123, 255, 0.1);
    transform: scale(1.1);
}

.sidebar h3 {

    padding: 0.5rem;
    margin: 0;

}

.user-section,
.tag-cloud {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.user-info {
    margin-bottom: 1rem;
}

.user-info p {
    margin-bottom: 0.5rem;
}

.user-links ul {
    list-style: none;
    padding: 0;
}

.user-links ul li a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;

    padding: 0.5rem 0.5rem;
}

.user-links ul li a:hover {
    text-decoration: underline;
}

.login-section {
    text-align: center;
    padding: 2rem 0;
}

/* 页脚样式 */
footer {
    background: var(--footer-bg);
    padding: 1rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

footer p {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    color: #666;
}

/* 页头 */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #007bff, #6f42c1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.nav-toggle {
    cursor: pointer;
    color: #333333;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-toggle:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.header-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-nav.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-link {
    font-size: 1rem;
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 12px;
    border-radius: 3px;
    background: rgba(240, 240, 240, 0.5);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-link:hover {
    color: #007bff;
    background: rgba(220, 220, 220, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #6f42c1);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.header-time-container {
    min-width: 120px;
    width: 120px;
    text-align: left;
    overflow: hidden;
}

.header-time {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333333;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
    text-align: left;
    white-space: nowrap;
}

/* 主内容区 */
.main-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 80px 20px 70px; /* 考虑页头和页脚的高度 */
}

/* 页脚 */
.page-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    z-index: 100;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: rgba(100, 100, 100, 0.8);
    font-size: 0.85rem;
}

.footer-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-beian {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 文章详情页面样式 */
.post-container {
   
}

.post {
    width: 100%;
}

.post-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    color: #666666;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-meta a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.post-content {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 30px;
}

.post-content p {
    margin-bottom: 15px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333333;
}

.post-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #333333;
}

.post-content ul,
.post-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 15px;
    margin: 20px 0;
    font-style: italic;
    color: #666666;
}

/* 评论区域样式 */
.comments {
    margin-top: 40px;
}

.comments h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333333;
}

.comment {
    background: rgba(245, 245, 245, 0.7);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.comment-author {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333333;
    font-size: 0.9rem;
}

.comment-content {
    margin-bottom: 5px;
    line-height: 1.6;
    color: #333333;
    font-size: 0.9rem;
}

.comment-actions {
    text-align: right;
    font-size: 0.85rem;
}

.comment-actions a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-actions a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 评论表单样式 */
.comment-form {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.comment-form:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.comment-form h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333333;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333333;
}

.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    font-family: 'Exo 2', sans-serif;
}

.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.read-more {
    display: inline-block;
    padding: 2px 4px;
    background: #ffffff;
    color: #333333;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Exo 2', sans-serif;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
}

.read-more:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.read-more:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 关于页面样式 */
.about-content {
    line-height: 1.6;
}

.about-content p {
    margin-bottom: 1.5rem;
    text-indent: 2em;
}

.about-content h2 {
    margin: 2.5rem 0 1.5rem 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.about-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.about-content li {
    margin-bottom: 0.8rem;
}

.about-content .checkbox,
.about-content .note {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: rgba(248, 249, 250, 0.8);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 4px 4px 0;
}

.about-content .footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    font-style: italic;
}

.about-content .footer p {
    text-indent: 0;
    margin-bottom: 1rem;
}

/* 相关文章样式 */
.related-posts {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.related-posts h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333333;
}

.related-posts ul {
    list-style: none;
    padding: 0;
}

.related-posts li {
    margin-bottom: 5px;
}

.related-posts a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: block;
    padding: 2px 0;
}

.related-posts a:hover {
    color: #0056b3;
    transform: translateX(5px);
}

/* 标签详情页面样式 */
.tag-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.tag-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 20px;
}

.tag-posts {
    margin-top: 20px;
}

/* 首页样式 */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    padding: 20px;
}

.home-main {
    flex: 1;
    min-width: 0;
}

.home-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 文章列表样式 */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post,
.post-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.post:hover,
.post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.post-title,
.post-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.post-title a,
.post-item-title a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover,
.post-item-title a:hover {
    color: #007bff;
}

.post-meta,
.post-item-meta {
    font-size: 0.8rem;
    color: #666666;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.post-meta span,
.post-item-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-excerpt,
.post-item-excerpt {
    line-height: 1.6;
    margin-bottom: 5px;
    color: #333333;
    font-size: 0.9rem;
}

/* 侧边栏样式 */
.sidebar-widget {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
}

/* 标签云样式 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(240, 240, 240, 0.8);
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

/* 链接部分样式 */
.links-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.links-section span {
    display: inline-block;
}

.links-section a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    background: rgba(240, 240, 240, 0.8);
    border-radius: 20px;
    font-size: 0.9rem;
}

.links-section a:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-2px);
}

.links-section i {
    font-size: 0.9rem;
    width: 1rem;
    text-align: center;
}

/* 用户信息样式 */


.user-info h4 {
    margin-bottom: 10px;
    color: #333333;
}

.user-info p {
    margin-bottom: 15px;
    color: #666666;
}

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-actions a {
    display: block;
    padding: 8px 15px;
    background: rgba(240, 240, 240, 0.8);
    border-radius: 5px;
    color: #333333;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.user-actions a:hover {
    background: #007bff;
    color: white;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(240, 240, 240, 0.8);
    border-radius: 5px;
    color: #333333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #007bff;
    color: white;
}

.pagination .active {
    background: #007bff;
    color: white;
}



/* 响应式设计 */
@media (max-width: 1024px) {
    .home-container {
        flex-direction: column;
    }
    
    .home-sidebar {
        width: 100%;
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 0 15px;
        height: 55px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .header-nav {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .header-time-container {
        min-width: 100px;
        width: 100px;
    }
    
    .header-time {
        font-size: 1.1rem;
    }
    
    .main-content {
        padding: 65px 15px 50px;
    }
    
    .page-footer {
        padding: 0 15px;
        height: 35px;
        font-size: 0.8rem;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
    }
    
    .footer-date, .footer-beian {
        width: 100%;
        justify-content: center;
    }
    
    .post-container {
        padding: 15px;
        margin: 0 10px;
    }
    
    .post-title {
        font-size: 1.7rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .post-content {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .comment-form {
        padding: 15px;
    }
    
    .home-container {
        padding: 10px;
        gap: 20px;
    }
    
    .post-item {
        padding: 15px;
    }
    
    .post-item-title {
        font-size: 1.3rem;
    }
    
    .sidebar-widget {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }
    
    .header-nav {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .header-time-container {
        min-width: 90px;
        width: 90px;
    }
    
    .header-time {
        font-size: 1rem;
    }
    
    .post-container {
        padding: 10px;
        margin: 0 5px;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-content {
        font-size: 0.95rem;
    }
    
    .comments h3 {
        font-size: 1.3rem;
    }
    
    .related-posts h3 {
        font-size: 1.1rem;
    }
    
    .tag-title {
        font-size: 1.5rem;
    }
    
    .post-item-title {
        font-size: 1.2rem;
    }
    
    .sidebar-widget h3 {
        font-size: 1.1rem;
    }
    
    /* Hide top-quote on mobile */
    .top-quote {
        display: none;
    }
}

/* 页面加载动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}
