/* 
 * Sly Theme for Typecho
 * 严格按照样式参考制作，每个功能都有，每个部分一点不能差
 */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color, #f5f7fa);
}

body {
    background: var(--bg-color, #f5f7fa);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color, #333);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 文章标题应用书法字体 */
.article_title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color, #333);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    font-family: 'ZCOOL KuaiLe', 'Long Cang', cursive, '楷体', '华文行书', 'Microsoft YaHei';
    font-weight: 500;
    letter-spacing: 1px;
}

/* 轮播标题也应用书法字体 */
.slide-title a {
    font-family: 'ZCOOL KuaiLe', 'Long Cang', cursive, '楷体', '华文行书', 'Microsoft YaHei';
    font-weight: 500;
    letter-spacing: 1px;
}

/* 侧边栏标题可以稍微点缀 */
.sidebar_title, .mobile-sidebar-title {
    font-family: 'ZCOOL KuaiLe', 'Long Cang', cursive, '楷体', 'Microsoft YaHei';
    font-weight: 500;
}

/* logo 也可以微调 */
.top_logo a, .left_logo a, .mobile-menu-logo a {
    font-family: 'ZCOOL KuaiLe', 'Long Cang', cursive, '楷体', 'Microsoft YaHei';
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-color, #333);
}

/* 菜单项可稍微优化 */
.menu_item span, .bottom-nav-item span, .mobile-menu-item span {
    font-weight: 500;
}

/* 布局容器 */
#page.site.main_wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.main_body {
    display: flex;
    justify-content: center;
    gap: 24px;
}

/* 左侧导航 */
.left_nav {
    width: 280px;
    flex-shrink: 0;
    display: block;
}

.left_nav_inner {
    background: var(--card-bg, #ffffff);
    border-radius: var(--border-radius, 16px);
    padding: 30px 24px;
    box-shadow: var(--shadow, 0 4px 20px rgba(0, 0, 0, 0.04));
    position: sticky;
    top: 20px;
}

.top_logo {
    padding: 0 0 30px 0;
    text-align: center;
}

.top_logo img {
    height: 38px;
    width: auto;
}

.top_logo.close_bar {
    display: none;
}

.left_menu_box {
    margin-bottom: 30px;
}

.menu_item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 12px;
    color: var(--text-color, #333);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    background: transparent;
}

.menu_item:hover {
    background: rgba(22, 225, 134, 0.1);
    color: var(--primary-color, #16e186);
}

.menu_item i {
    margin-right: 10px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.menu_item.active {
    background: var(--primary-color, #16e186);
    color: white;
}

/* 侧边栏 */
.sidebar {
    margin-top: 30px;
}

.sidebar_section {
    background: rgba(0,0,0,0.02);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.03);
}

.sidebar_title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #555;
    display: flex;
    align-items: center;
}

.sidebar_title i {
    margin-right: 8px;
    font-size: 16px;
}

/* 右侧内容 */
.right_content {
    flex: 1;
    min-width: 0;
    background: transparent;
    border-radius: var(--border-radius, 16px);
    overflow: hidden;
}

/* 顶部栏 */
.top_bar {
    background: var(--card-bg, #ffffff);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--border-radius, 16px);
    margin-bottom: 20px;
    box-shadow: var(--shadow, 0 4px 20px rgba(0, 0, 0, 0.04));
}

.left_logo {
    display: block;
}

.left_logo img {
    height: 32px;
    width: auto;
    display: block;
}

.top_right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top_tool {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.top_tool:hover {
    background: rgba(0,0,0,0.05);
}

.top_tool i {
    font-size: 18px;
    color: #555;
}

.mobile-menu-toggle {
    display: none;
}

/* 底部悬浮导航栏 */
.bottom-navbar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg, #ffffff);
    backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.96);
    border-radius: 60px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 10px 28px;
    z-index: 1000;
    width: auto;
    min-width: 420px;
    border: 1px solid rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #888;
    transition: all 0.3s ease;
    padding: 4px 22px;
    border-radius: 50px;
    font-size: 11px;
    gap: 4px;
    background: transparent;
}

.bottom-nav-item i {
    font-size: 22px;
    transition: all 0.3s ease;
}

.bottom-nav-item span {
    font-size: 11px;
    font-weight: 500;
}

.bottom-nav-item.active {
    color: var(--primary-color, #16e186);
    background: transparent;
}

.bottom-nav-item.active i {
    transform: translateY(-2px);
}

/* 移动端侧边栏 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: var(--card-bg, #ffffff);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 10000;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.mobile-menu-sidebar.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(0,0,0,0.05);
    color: var(--primary-color, #16e186);
}

.mobile-menu-logo img {
    height: 32px;
}

.mobile-menu-content {
    padding: 10px 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 12px;
    color: var(--text-color, #333);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    background: transparent;
}

.mobile-menu-item:hover, .mobile-menu-item.active {
    background: rgba(22, 225, 134, 0.1);
    color: var(--primary-color, #16e186);
}

.mobile-menu-item i {
    margin-right: 10px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.mobile-menu-divider {
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

.mobile-sidebar-title {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 15px 0;
    color: #555;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.mobile-sidebar-title i {
    margin-right: 8px;
    font-size: 16px;
}

.mobile-stats {
    background: rgba(0,0,0,0.02);
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0 20px 0;
}

.mobile-stats-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
}

.mobile-stats-item:last-child {
    border-bottom: none;
}

.mobile-menu-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #888;
    text-align: center;
}

/* 轮播海报 */
.swiper-container {
    margin: 0 0 20px 0;
    border-radius: var(--border-radius, 16px);
    overflow: hidden;
    box-shadow: var(--shadow, 0 4px 20px rgba(0, 0, 0, 0.04));
    position: relative;
    background: var(--card-bg, #ffffff);
}

.swiper {
    width: 100%;
    height: 280px;
    border-radius: var(--border-radius, 16px);
}

.swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--border-radius, 16px);
    overflow: hidden;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px 25px 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
    z-index: 2;
}

.slide-tag {
    display: inline-block;
    background: var(--primary-color, #16e186);
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    font-weight: 500;
}

.slide-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.slide-title a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.slide-title a:hover {
    opacity: 0.85;
}

.slide-desc {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slide-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    opacity: 0.8;
}

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

.swiper-pagination-bullet {
    background: rgba(255,255,255,0.5);
    opacity: 1;
    width: 8px;
    height: 8px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color, #16e186);
    width: 20px;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0,0,0,0.3);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color, #16e186);
    transform: scale(1.05);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

/* 文章列表 */
.article_list {
    padding: 0;
}

.article_item {
    background: var(--card-bg, #ffffff);
    border-radius: var(--border-radius, 16px);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow, 0 4px 20px rgba(0, 0, 0, 0.04));
    transition: all 0.3s ease;
}

.article_item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.article_header {
    margin-bottom: 8px;
}

.article_title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color, #333);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    font-family: 'ZCOOL KuaiLe', 'Long Cang', cursive, '楷体', '华文行书', 'Microsoft YaHei';
    font-weight: 500;
    letter-spacing: 1px;
}

.article_title:hover {
    color: var(--primary-color, #16e186);
}

.article_meta_new {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 14px;
    margin-top: 6px;
    margin-bottom: 0;
}

.article_meta_new span {
    color: #888;
}

.article_excerpt {
    margin-top: 12px;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* 文章内容区域 */
.post-container {
    background: var(--card-bg, #ffffff);
    border-radius: var(--border-radius, 16px);
    padding: 40px;
    box-shadow: var(--shadow, 0 4px 20px rgba(0, 0, 0, 0.04));
    margin-bottom: 20px;
}

.post-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.post-title {
    font-family: 'ZCOOL KuaiLe', 'Long Cang', cursive, '楷体', '华文行书', 'Microsoft YaHei';
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color, #333);
    margin-bottom: 16px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: 24px;
    color: #888;
    font-size: 14px;
    flex-wrap: wrap;
}

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

.post-featured-image {
    margin-bottom: 30px;
    border-radius: var(--border-radius, 16px);
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}

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

.post-content h2 {
    font-size: 26px;
    margin: 1.5em 0 0.8em;
    font-weight: 600;
    font-family: 'ZCOOL KuaiLe', 'Long Cang', cursive, '楷体', 'Microsoft YaHei';
}

.post-content h3 {
    font-size: 22px;
    margin: 1.2em 0 0.6em;
    font-weight: 600;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color, #16e186);
    padding-left: 20px;
    margin: 1.5em 0;
    color: #666;
    font-style: italic;
}

.post-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1em 0;
}

.post-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.post-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.post-tag {
    background: rgba(0,0,0,0.05);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tag:hover {
    background: var(--primary-color, #16e186);
    color: white;
}

.post-share {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--primary-color, #16e186);
    color: white;
}

/* 评论区域 */
.comments-area {
    background: var(--card-bg, #ffffff);
    border-radius: var(--border-radius, 16px);
    padding: 30px;
    margin-top: 20px;
    box-shadow: var(--shadow, 0 4px 20px rgba(0, 0, 0, 0.04));
}

.comments-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    font-family: 'ZCOOL KuaiLe', 'Long Cang', cursive, '楷体', 'Microsoft YaHei';
}

.comment-list {
    list-style: none;
}

.comment {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e0e0e0;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 5px;
}

.comment-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.comment-reply {
    margin-top: 8px;
    font-size: 12px;
    color: var(--primary-color, #16e186);
    text-decoration: none;
}

/* 页脚 */
.site_footer {
    background: var(--card-bg, #ffffff);
    padding: 40px 20px;
    text-align: center;
    border-radius: var(--border-radius, 16px);
    margin-top: 20px;
    box-shadow: var(--shadow, 0 4px 20px rgba(0, 0, 0, 0.04));
}

.footer_content {
    max-width: 600px;
    margin: 0 auto;
}

.footer_title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #555;
}

.footer_desc {
    color: #777;
    margin-bottom: 20px;
    line-height: 1.6;
}

.social_links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social_link {
    color: #555;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social_link:hover {
    color: var(--primary-color, #16e186);
}

.copyright {
    color: #888;
    font-size: 14px;
}

.copyright a {
    color: var(--primary-color, #16e186);
    text-decoration: none;
}

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

/* 分页 */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination-wrap {
    display: inline-flex;
    gap: 8px;
}

.pagination-wrap span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--card-bg, #ffffff);
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-wrap span.current {
    background: var(--primary-color, #16e186);
    color: white;
}

.pagination-wrap span:hover:not(.current) {
    background: rgba(0,0,0,0.05);
}

/* 相邻文章导航 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.post-navigation .prev,
.post-navigation .next {
    padding: 12px 20px;
    background: var(--card-bg, #ffffff);
    border-radius: var(--border-radius, 16px);
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
}

.post-navigation .prev:hover,
.post-navigation .next:hover {
    background: var(--primary-color, #16e186);
    color: white;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    #page.site.main_wrap {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .left_nav {
        width: 260px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .left_nav {
        display: none;
    }
    
    .right_content {
        width: 100%;
    }
    
    #page.site.main_wrap {
        margin-top: 10px;
        padding: 0 15px;
    }
    
    .main_body {
        gap: 0;
    }
    
    .top_bar {
        padding: 12px 20px;
        margin-bottom: 15px;
    }
    
    .left_logo img {
        height: 28px;
    }
    
    .swiper-container {
        margin: 0 0 15px 0;
    }
    
    .swiper {
        height: 200px;
    }
    
    .slide-content {
        padding: 20px 18px 18px 18px;
    }
    
    .slide-title {
        font-size: 16px;
    }
    
    .slide-desc {
        display: none;
    }
    
    .slide-meta {
        font-size: 11px;
        gap: 12px;
    }
    
    .article_list {
        padding: 0;
    }
    
    .article_item {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 14px;
    }
    
    .article_title {
        font-size: 18px;
    }
    
    .site_footer {
        margin-top: 15px;
        border-radius: 14px;
        margin-bottom: 0;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
    
    .bottom-navbar {
        display: flex;
        min-width: 340px;
        padding: 8px 20px;
        bottom: 20px;
    }
    
    .bottom-nav-item {
        padding: 4px 16px;
    }
    
    .bottom-nav-item i {
        font-size: 20px;
    }
    
    .right_content, .main_body {
        padding-bottom: 85px;
    }
    
    .post-container {
        padding: 20px;
    }
    
    .post-title {
        font-size: 24px;
    }
    
    .post-meta {
        gap: 15px;
        font-size: 12px;
    }
    
    .post-content {
        font-size: 15px;
    }
    
    .post-content h2 {
        font-size: 22px;
    }
    
    .post-content h3 {
        font-size: 18px;
    }
    
    .comments-area {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .swiper {
        height: 180px;
    }
    
    .slide-title {
        font-size: 14px;
    }
    
    .slide-tag {
        font-size: 10px;
        padding: 2px 10px;
    }
    
    .article_item {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .article_title {
        font-size: 16px;
    }
    
    .article_meta_new {
        font-size: 12px;
        gap: 12px;
    }
    
    .bottom-navbar {
        min-width: 300px;
        padding: 6px 14px;
    }
    
    .bottom-nav-item {
        padding: 4px 10px;
    }
    
    .bottom-nav-item i {
        font-size: 18px;
    }
    
    .bottom-nav-item span {
        font-size: 10px;
    }
    
    .mobile-menu-sidebar {
        width: 280px;
    }
    
    .post-container {
        padding: 16px;
    }
    
    .post-title {
        font-size: 20px;
    }
    
    .comment {
        gap: 10px;
    }
    
    .comment-avatar {
        width: 36px;
        height: 36px;
    }
}

/* 固定定位 */
.uk-sticky-fixed {
    position: fixed;
    top: 20px;
    z-index: 1000;
}

.player_box {
    display: none;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* 评论表单 */
.respond {
    margin-top: 30px;
    padding: 20px;
    background: var(--card-bg, #ffffff);
    border-radius: var(--border-radius, 16px);
    box-shadow: var(--shadow, 0 4px 20px rgba(0, 0, 0, 0.04));
}

.comment-form-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.comment-form-fields input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.comment-form-fields input:focus {
    outline: none;
    border-color: var(--primary-color, #16e186);
    box-shadow: 0 0 0 3px rgba(22, 225, 134, 0.1);
}

#textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    min-height: 120px;
    resize: vertical;
    transition: all 0.3s ease;
}

#textarea:focus {
    outline: none;
    border-color: var(--primary-color, #16e186);
    box-shadow: 0 0 0 3px rgba(22, 225, 134, 0.1);
}

.submit {
    background: var(--primary-color, #16e186);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit:hover {
    background: #14d17a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 225, 134, 0.3);
}

.comment-closed {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

/* 深色模式优化 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --card-bg: #2d2d2d;
        --text-color: #f0f0f0;
    }
    
    body {
        color-scheme: dark;
    }
    
    .sidebar_section,
    .mobile-stats {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .article_meta_new span,
    .post-meta span,
    .copyright,
    .social_link {
        color: #aaa;
    }
    
    .comment-form-fields input,
    #textarea {
        background: #3a3a3a;
        border-color: #444;
        color: #f0f0f0;
    }
    
    .comment-form-fields input::placeholder,
    #textarea::placeholder {
        color: #888;
    }
}

/* 自定义CSS */
<?php if ($this->options->CSS): ?>
<?php echo $this->options->CSS; ?>
<?php endif; ?>



/* ========== 修复缺失样式 ========== */

/* 淡入动画 */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 文章容器样式 */
.post-container {
    background: var(--card-bg, #ffffff);
    border-radius: var(--border-radius, 16px);
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow, 0 4px 20px rgba(0, 0, 0, 0.04));
}

.post-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.post-title {
    font-size: 28px;
    margin-bottom: 12px;
    font-family: 'ZCOOL KuaiLe', 'Long Cang', cursive;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #888;
}

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

.post-featured-image {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
}

.post-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.post-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(22, 225, 134, 0.1);
    color: var(--primary-color, #16e186);
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
}

.post-share {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    color: #555;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--primary-color, #16e186);
    color: white;
}

/* 文章导航 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.post-navigation .prev,
.post-navigation .next {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-color, #333);
    font-size: 14px;
}

/* 评论区域 */
.comments-area {
    background: var(--card-bg, #ffffff);
    border-radius: var(--border-radius, 16px);
    padding: 30px;
    box-shadow: var(--shadow, 0 4px 20px rgba(0, 0, 0, 0.04));
}

.comments-title {
    margin-bottom: 24px;
    font-size: 20px;
}

.comment-list {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
}

.comment {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comment-body {
    padding-left: 20px;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 4px;
}

.comment-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.comment-text {
    margin-bottom: 8px;
}

.comment-reply {
    font-size: 12px;
    color: var(--primary-color, #16e186);
    text-decoration: none;
}

/* 响应式修复 */
@media (max-width: 768px) {
    .post-container {
        padding: 20px;
    }
    
    .post-title {
        font-size: 22px;
    }
    
    .comments-area {
        padding: 20px;
    }
}

/* 淡入动画 */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 淡入动画 */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
