/* ============================================
 * Typecho Modern Theme - Layui Style
 * 基于demo.html设计风格重构
 * ============================================ */

/* CSS变量定义 */
:root {
    --primary-color: #1E9FFF;
    --primary-hover: #0d8bf2;
    --bg-color: #f8f9fc;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-secondary: #999999;
    --border-color: #eeeeee;
    --shadow-light: 0 3px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition-fast: all 0.3s;
    --border-radius: 8px;
}

/* ============================================
 * 基础重置样式
 * ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
 * 布局容器
 * ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

/* ============================================
 * 左侧分类侧边栏样式
 * ============================================ */
.left-sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    bottom: 0;
    width: 200px;
    background: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    border-right: 1px solid #eeeeee;
    overflow-y: auto;
    z-index: 100;
    transition: all 0.3s;
}

.sidebar-inner {
    padding: 0;
}

.left-sidebar .widget {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 0;
    margin-bottom: 0;
}

.left-sidebar .other-widget .widget-list {
    text-align: center;
}

.left-sidebar .other-widget .widget-list li {
    display: inline-block;
    margin: 0 5px;
}

.left-sidebar .other-widget .widget-list li a {
    padding: 5px 10px;
    border-radius: 4px;
}

.left-sidebar .other-widget .widget-list li:hover {
    padding-left: 5px;
    background-color: #f6f6f6;
}

.left-sidebar .widget-title {
    padding: 15px 20px;
    margin-bottom: 0;
    font-size: 15px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
}

.left-sidebar .widget-title::before {
    display: none;
}

.left-sidebar .layui-nav-tree {
    background-color: #ffffff !important;
    width: 100% !important;
    padding: 10px 0;
}

.left-sidebar .layui-nav-tree .layui-nav-item {
    margin: 2px 10px;
}

.left-sidebar .layui-nav-tree .layui-nav-item a {
    color: #333 !important;
    height: 45px;
    line-height: 45px;
    border-radius: 6px;
    padding: 0 15px;
    transition: all 0.3s;
}

.left-sidebar .layui-nav-tree .layui-nav-item a:hover {
    background-color: #f6f6f6 !important;
    color: var(--primary-color) !important;
}

.left-sidebar .layui-nav-tree .layui-this,
.left-sidebar .layui-nav-tree .layui-this > a {
    background-color: #f1f8ff !important;
    color: var(--primary-color) !important;
}

.left-sidebar .layui-nav-tree .layui-nav-bar {
    display: none !important;
}

.left-sidebar .layui-nav-item a i {
    margin-right: 10px;
    font-size: 16px;
}

.left-sidebar .category-count {
    float: right;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: #999;
    margin-top: 12px;
}

.left-sidebar .layui-this .category-count {
    background: var(--primary-color);
    color: #fff;
}

/* 主内容区域调整 */
#main {
    margin-left: 230px;
    margin-right: 280px;
}

/* 右侧边栏样式 */
.right-sidebar {
    position: absolute;
    right: 0;
    top: 70px;
    width: 260px;
    padding: 20px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.right-sidebar .widget {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.right-sidebar .widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.right-sidebar .widget-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 2px;
}

.right-sidebar .widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.right-sidebar .widget-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: var(--transition-fast);
}

.right-sidebar .widget-list li:last-child {
    border-bottom: none;
}

.right-sidebar .widget-list li:hover {
    padding-left: 5px;
}

.right-sidebar .widget-list li a {
    color: var(--text-color);
    display: block;
}

.right-sidebar .widget-list li a:hover {
    color: var(--primary-color);
}

/* ============================================
 * 页面导航盒子样式
 * ============================================ */
.page-nav-widget .widget-list {
    padding: 5px 0;
}

.page-nav-widget .widget-list li {
    padding: 4px 0;
    border-bottom: none;
}

.page-nav-widget .widget-list li:last-child {
    border-bottom: none;
}

.page-nav-widget .widget-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--text-color);
    transition: var(--transition-fast);
    font-size: 14px;
}

.page-nav-widget .widget-list li a:hover {
    background: rgba(30, 159, 255, 0.08);
    color: var(--primary-color);
    padding-left: 15px;
}

.page-nav-widget .widget-list li a.current {
    background: rgba(30, 159, 255, 0.12);
    color: var(--primary-color);
    font-weight: 500;
}

.page-nav-widget .widget-list li a i {
    font-size: 14px;
    color: var(--primary-color);
    opacity: 0.8;
    width: 18px;
    text-align: center;
}

.page-nav-widget .widget-list li a:hover i,
.page-nav-widget .widget-list li a.current i {
    opacity: 1;
}

/* 友链下拉框样式 */
.links-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-color);
    background-color: #fff;
    cursor: pointer;
    transition: var(--transition-fast);
}

.links-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(30, 159, 255, 0.1);
}

.links-select:hover {
    border-color: var(--primary-color);
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
    .left-sidebar {
        left: -200px;
        transition: left 0.3s;
        z-index: 1000;
    }
    
    #main {
        margin-left: 0;
        margin-right: 0;
    }
    
    .right-sidebar {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        max-height: none;
        padding: 20px;
    }
    
    .admin-side-show .left-sidebar {
        left: 0;
    }
    
    .body-shade {
        position: fixed;
        left: 0;
        right: 0;
        top: 70px;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.3);
        z-index: 999;
        display: none;
    }
    
    .admin-side-show .body-shade {
        display: block;
    }
    
    /* 移动端顶部标题调整 */
    #header .container {
        padding-left: 20px;
    }
}

/* ============================================
 * 头部样式 - 现代化美化版
 * ============================================ */
#header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: #f0f0f0;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-color);
    margin: 3px 0;
    border-radius: 2px;
    transition: var(--transition-fast);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.site-name {
    flex: 0 0 auto;
}

#logo {
    color: var(--primary-color) !important;
    font-weight: bold;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-fast);
}

#logo:hover {
    transform: scale(1.02);
}

#logo img {
    max-height: 45px;
    width: auto;
    border-radius: 8px;
}

.description {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 3px;
    opacity: 0.8;
}

/* 导航菜单 - 现代化样式 */
#nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: rgba(255, 255, 255, 0.5);
    padding: 5px 10px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#nav-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--text-color);
    border-radius: 8px;
    transition: var(--transition-fast);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-icon {
    font-size: 15px;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.nav-text {
    position: relative;
    z-index: 1;
}

/* 导航指示器 */
.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #0d8bf2);
    border-radius: 3px 3px 0 0;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

#nav-menu a:hover .nav-indicator,
#nav-menu a.current .nav-indicator {
    width: 60%;
    opacity: 1;
}

#nav-menu a:hover .nav-icon,
#nav-menu a.current .nav-icon {
    opacity: 1;
    transform: translateY(-2px);
}

#nav-menu a:hover,
#nav-menu a.current {
    color: var(--primary-color);
    background: rgba(30, 159, 255, 0.08);
}

/* 搜索框 */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-search {
    flex: 0 0 280px;
}

#search {
    position: relative;
}

#search input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid transparent;
    border-radius: 25px;
    outline: none;
    transition: var(--transition-fast);
    font-size: 14px;
    background: #f5f5f5;
}

#search input:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(30, 159, 255, 0.1);
}

#search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: var(--primary-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

#search button:hover {
    background: var(--primary-hover);
    transform: translateY(-50%) scale(1.05);
}

/* ============================================
 * 主体内容区域
 * ============================================ */
#body {
    padding: 30px 0;
    min-height: calc(100vh - 200px);
}

/* ============================================
 * 文章卡片样式
 * ============================================ */
.post {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 25px;
    margin-bottom: 20px;
    transition: var(--transition-fast);
    border: 1px solid var(--border-color);
}

.post:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.post-title {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-color);
}

.post-title a:hover {
    color: var(--primary-color);
}

/* 文章元信息 */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-secondary);
    font-size: 13px;
}

.post-meta li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.post-meta a {
    color: var(--text-secondary);
}

.post-meta a:hover {
    color: var(--primary-color);
}

/* 文章内容 */
.post-content {
    line-height: 1.8;
    color: #555;
}

.post-content h2 {
    font-size: 20px;
    margin: 25px 0 15px;
    color: var(--text-color);
}

.post-content h3 {
    font-size: 18px;
    margin: 20px 0 12px;
    color: var(--text-color);
}

.post-content p {
    margin-bottom: 15px;
}

.post-content img {
    border-radius: 6px;
    margin: 15px 0;
}

.post-content blockquote {
    margin: 15px 0;
    padding: 15px 20px;
    border-left: 4px solid var(--primary-color);
    background: #f9fcff;
    color: #666;
}

.post-content pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 15px 0;
}

.post-content code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}

.post-content pre code {
    background: none;
    padding: 0;
}

/* 标签 */
.tags {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: var(--text-secondary);
}

.tags a {
    display: inline-block;
    padding: 3px 10px;
    background: #f0f0f0;
    border-radius: 15px;
    margin: 3px;
    color: #666;
    font-size: 12px;
}

.tags a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ============================================
 * 侧边栏样式
 * ============================================ */
#secondary {
    padding-top: 0;
}

.widget {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 2px;
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: var(--transition-fast);
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list li:hover {
    padding-left: 5px;
}

.widget-list li a {
    color: var(--text-color);
    display: block;
}

.widget-list li a:hover {
    color: var(--primary-color);
}

/* ============================================
 * 评论样式
 * ============================================ */
#comments {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 25px;
    margin-top: 25px;
    border: 1px solid var(--border-color);
}

#comments h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.comment-list,
.comment-list ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list li {
    padding: 20px;
    margin-top: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    background: #fafafa;
    transition: var(--transition-fast);
}

.comment-list li:hover {
    background: #f5f5f5;
}

.comment-list li.comment-level-odd {
    background: #fafafa;
}

.comment-list li.comment-level-even {
    background: #ffffff;
}

.comment-list li.comment-by-author {
    background: #fff9e8;
    border-color: #ffe0b2;
}

.comment-avatar {
    float: left;
    margin-right: 15px;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-body {
    overflow: hidden;
}

.comment-meta {
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.comment-author {
    font-weight: 600;
    color: var(--text-color);
    margin-right: 10px;
}

.comment-content {
    line-height: 1.6;
    color: #555;
}

.comment-reply {
    text-align: right;
    margin-top: 10px;
}

.comment-reply a {
    font-size: 13px;
    color: var(--primary-color);
}

/* 评论表单 */
.respond {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.cancel-comment-reply {
    float: right;
    margin-bottom: 15px;
}

.cancel-comment-reply a {
    font-size: 13px;
    color: var(--text-secondary);
}

#comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

#comment-form .required::after {
    content: " *";
    color: #ff4d4f;
}

#comment-form input[type="text"],
#comment-form input[type="email"],
#comment-form input[type="url"],
#comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: var(--transition-fast);
    background: #fafafa;
}

#comment-form input:focus,
#comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 159, 255, 0.1);
}

#comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

#comment-form .submit {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: 15px;
}

#comment-form .submit:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* ============================================
 * 底部样式
 * ============================================ */
#footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 40px;
}

#footer a {
    color: var(--primary-color);
}

/* ============================================
 * 分页导航
 * ============================================ */
.page-navigator {
    list-style: none;
    margin: 30px 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.page-navigator li {
    display: inline-block;
}

.page-navigator a,
.page-navigator span {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    transition: var(--transition-fast);
    background: #fff;
}

.page-navigator a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0f8ff;
}

.page-navigator .current a {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ============================================
 * 归档标题
 * ============================================ */
.archive-title {
    font-size: 24px;
    color: var(--text-secondary);
    margin: 20px 0 30px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
}

/* ============================================
 * 上下篇导航
 * ============================================ */
.post-near {
    list-style: none;
    margin: 30px 0;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.post-near li {
    flex: 1;
    min-width: 200px;
}

.post-near li:first-child {
    text-align: left;
}

.post-near li:last-child {
    text-align: right;
}

.post-near a {
    color: var(--text-color);
    font-weight: 500;
}

.post-near a:hover {
    color: var(--primary-color);
}

/* ============================================
 * 保护文章样式
 * ============================================ */
.protected {
    text-align: center;
    padding: 40px;
}

.protected .text {
    max-width: 300px;
    margin: 0 auto 15px;
}

/* ============================================
 * 响应式设计
 * ============================================ */
@media (max-width: 1200px) {
    .header-inner {
        padding: 0 20px;
    }
    
    #nav-menu {
        gap: 4px;
        padding: 4px 8px;
    }
    
    #nav-menu a {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .site-search {
        flex: 0 0 240px;
    }
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .header-left {
        flex: 1;
        justify-content: space-between;
    }
    
    #nav-menu {
        order: 4;
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        background: transparent;
        border: none;
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.3s ease;
    }
    
    #nav-menu.active {
        max-height: 500px;
        padding: 15px 0;
    }
    
    #nav-menu a {
        width: 100%;
        padding: 12px 20px;
        margin-bottom: 5px;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    #nav-menu a:hover,
    #nav-menu a.current {
        background: rgba(30, 159, 255, 0.1);
    }
    
    .header-right {
        order: 3;
        flex: 1;
        justify-content: flex-end;
    }
    
    .site-search {
        flex: 0 0 100%;
        max-width: 300px;
    }
    
    .body-shade {
        position: fixed;
        left: 0;
        right: 0;
        top: 70px;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 999;
        display: none;
        backdrop-filter: blur(3px);
    }
    
    .body-shade.active {
        display: block;
    }
    
    /* 移动端侧边栏遮罩 */
    @media screen and (max-width: 992px) {
        .left-sidebar {
            top: 70px;
        }
        
        .right-sidebar {
            top: 70px;
        }
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 12px 15px;
    }
    
    .site-name {
        max-width: calc(100% - 50px);
    }
    
    #logo {
        font-size: 18px;
    }
    
    #logo img {
        max-height: 35px;
    }
    
    .site-search {
        max-width: 100%;
    }
    
    #search input {
        padding: 10px 40px 10px 15px;
        font-size: 13px;
    }
    
    body {
        font-size: 14px;
    }

    .post {
        padding: 20px 15px;
    }

    .post-title {
        font-size: 20px;
    }

    .post-meta {
        flex-direction: column;
        gap: 8px;
    }

    .post-near {
        flex-direction: column;
        text-align: center !important;
    }

    .widget {
        padding: 15px;
    }

    #comments {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 10px 12px;
    }
    
    .site-name {
        max-width: calc(100% - 45px);
    }
    
    #logo {
        font-size: 16px;
    }
    
    #logo img {
        max-height: 30px;
    }
    
    .description {
        display: none;
    }
    
    #nav-menu a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .nav-icon {
        font-size: 14px;
    }
    
    .container {
        padding: 0 10px;
    }

    .post {
        padding: 15px 12px;
    }

    .post-title {
        font-size: 18px;
    }

    .page-navigator a,
    .page-navigator span {
        padding: 6px 12px;
    }
}

/* ============================================
 * 工具类
 * ============================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================
 * 返回顶部按钮
 * ============================================ */
#back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 44px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-fast);
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(30, 159, 255, 0.3);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 159, 255, 0.4);
}

#back-to-top i {
    font-size: 20px;
}

/* ============================================
 * 底部增强样式
 * ============================================ */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-info p,
.footer-powered p {
    margin: 5px 0;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* ============================================
 * 网格系统增强
 * ============================================ */
.col-mb-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}

.col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 15px;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

.col-offset-1 {
    margin-left: 8.333333%;
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

@media (max-width: 992px) {
    .col-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-offset-1 {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .col-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ============================================
 * Ajax加载样式
 * ============================================ */

/* 加载更多按钮 */
.ajax-load-more-btn {
    text-align: center;
    padding: 25px 20px;
    cursor: pointer;
    color: #666;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
    margin: 20px 0;
    font-size: 14px;
}

.ajax-load-more-btn:hover {
    color: var(--primary-color);
    background: #f8fbff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.ajax-load-more-btn i {
    margin-right: 8px;
    font-size: 18px;
}

/* 加载指示器 */
.ajax-loading-indicator {
    text-align: center;
    padding: 25px 20px;
    margin: 20px 0;
}

/* 默认加载动画样式 */
.ajax-loader-default {
    display: inline-flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

.ajax-loader-default .ajax-loader-bar {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: ajax-loader-bounce 1.4s ease-in-out infinite both;
}

.ajax-loader-default .ajax-loader-bar:nth-child(1) {
    animation-delay: -0.32s;
}

.ajax-loader-default .ajax-loader-bar:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes ajax-loader-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 旋转动画样式 */
.fa-spinner {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Ajax加载文章动画 */
#ajax-post-list .post {
    animation: ajax-post-fade-in 0.5s ease-out;
}

@keyframes ajax-post-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 加载状态样式 */
.ajax-load-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.ajax-load-more-btn.loading i {
    animation: fa-spin 1s infinite linear;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ajax-load-more-btn {
        padding: 20px 15px;
        font-size: 13px;
    }
    
    .ajax-loading-indicator {
        padding: 20px 15px;
    }
}
