/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "LXGW WenKai Screen", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #fafbfc;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

/* 顶部导航栏 */
.top-nav {
    background-color: #fff;
    color: #333;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #ECECEC;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 40px;
    height: 40px;
}

.logo-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.site-info {
    display: flex;
    flex-direction: column;
}

.site-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.site-subtitle {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.top-nav-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.top-nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 4px;
    position: relative;
}

.top-nav-menu a:hover {
    color: #333;
    text-decoration: underline;
}

.top-nav-menu a.active {
    color: #333;
    border-bottom: 2px solid #333;
}

/* 站内搜索 */
.search-header {
    background: #fff;
    border-bottom: 1px solid #ECECEC;
    padding: 15px 0;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* 容器布局 */
.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    gap: 30px;
}

/* 移动端菜单按钮 - PC端隐藏 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: fixed;
    top: 20px;
    left: 20px;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   移动端响应式设计 - 优化版本
   ======================================== */

/* 平板端布局 (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 25px 20px;
        gap: 40px;
    }
    
    .sidebar {
        width: 300px;
    }
    
    .main-content {
        width: calc(100% - 340px);
    }
    
    .article-title {
        font-size: 22px;
    }
    
    .article-excerpt {
        font-size: 15px;
    }
}

/* 移动端布局 (≤768px) */
@media (max-width: 768px) {
    /* 基础重置 */
    * {
        box-sizing: border-box;
    }
    
    body {
        font-size: 16px;
        line-height: 1.6;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        background: #fff;
    }
    
    /* 容器布局 */
    .container {
        display: flex;
        flex-direction: row;
        padding: 0;
        gap: 0;
        max-width: 100%;
        width: 100%;
        margin: 0;
        min-height: 100vh;
        background: #fff;
        position: relative;
    }
    
    /* 移动端主内容区优先显示 */
    .main-content {
        order: 1;
        flex: 1;
        width: 100%;
    }
    
    /* 移动端侧边栏隐藏 */
    .sidebar {
        order: 2;
        display: none;
    }
    
    /* 移动端菜单按钮 */
    .mobile-menu-toggle {
        display: flex !important;
        position: absolute;
        top: 27px;
        left: 15px;
        z-index: 1001;
        width: 30px;
        height: 30px;
        flex-direction: column;
        justify-content: space-around;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        align-items: center;
    }
    
    .mobile-menu-toggle span {
        width: 100%;
        height: 3px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* 移动端侧边栏 - 默认隐藏 */
    .sidebar {
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        overflow-y: auto;
        padding: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        -webkit-overflow-scrolling: touch;
        visibility: hidden;
        opacity: 0;
        display: none; /* 完全隐藏侧边栏 */
    }
    
    .sidebar.active {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
        display: block !important; /* 激活时强制显示 */
    }
    
    .sidebar-content {
        padding: 60px 20px 20px;
    }
    
    /* 移动端品牌标识 */
    .brand-section {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .brand-avatar {
        width: 80px;
        height: 80px;
    }
    
    .brand-text .site-name {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .brand-text .site-subtitle {
        font-size: 16px;
    }
    
    /* 移动端导航菜单 */
    .sidebar-nav {
        margin-bottom: 30px;
    }
    
    .sidebar-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .sidebar-nav a {
        display: block;
        padding: 15px 20px;
        font-size: 18px;
        border-bottom: 1px solid #f0f0f0;
        text-align: center;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar-nav a:hover {
        background: #f8f9fa;
    }
    
    /* 移动端搜索框 */
    .search-section {
        margin-bottom: 30px;
    }
    
    .search-box input {
        height: 50px;
        font-size: 16px;
        padding: 0 50px 0 15px;
    }
    
    .search-icon {
        right: 15px;
    }
    
    /* 移动端欢迎语 */
    .welcome-section {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .welcome-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .welcome-text {
        font-size: 16px;
    }
    
    /* 移动端最近更新 */
    .recent-updates {
        text-align: center;
    }
    
    .recent-updates h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .recent-updates ul {
        list-style: none;
        padding: 0;
    }
    
    .recent-updates li {
        margin-bottom: 10px;
    }
    
    .recent-updates a {
        color: #333;
        text-decoration: none;
        font-size: 16px;
        display: block;
        padding: 8px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .recent-updates a:hover {
        color: #3498db;
    }
    
    /* 移动端主内容区 */
    .main-content {
        width: 100%;
        padding: 0;
        margin: 0;
        background: #fff;
        order: 1;
        flex: 1;
        min-height: 100vh;
        -webkit-overflow-scrolling: touch;
        position: relative;
        z-index: 1;
        display: block; /* 确保主内容区显示 */
    }
    
    /* 移动端顶部菜单 */
    .widgets-container {
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        left: 50px !important;
        margin: 0 0 20px 0 !important;
        padding: 12px 15px !important;
        background: transparent !important;
        border-radius: 0 !important;
        border: none !important;
        display: flex !important;
        gap: 20px !important;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
        align-items: center !important;
        height: 64px !important;
        box-sizing: border-box !important;
        width: auto !important;
        z-index: 10 !important;
    }
    
    .widgets-container .widget {
        flex: none;
        margin-bottom: 0;
    }
    
    .widgets-container .widget h3 a {
        font-size: 20px;
        padding: 12px 20px;
        color: #333;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.3s ease;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        white-space: nowrap;
        line-height: 1.4;
    }
    
    .widgets-container .widget.active h3 a {
        color: #3498db !important;
        background: #e3f2fd;
    }
    
    .widgets-container .widget h3 a:hover {
        color: #3498db;
        background: #f0f8ff;
    }
    
    /* 移动端文章列表 */
    .posts-container {
        margin: 0;
        padding: 90px 15px 0 15px;
        background: #fff;
        width: 100%;
    }
    
    .article-card {
        padding: 20px;
        margin-bottom: 20px;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        transition: none;
        width: 100%;
        box-sizing: border-box;
    }
    
    .article-card:hover {
        box-shadow: none;
    }
    
    .article-card:last-child {
        margin-bottom: 0;
    }
    
    .article-title {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 12px;
        font-weight: 600;
    }
    
    .article-title a {
        color: #333;
        text-decoration: none;
        display: block;
        transition: color 0.3s ease;
    }
    
    .article-title a:hover {
        color: #3498db;
    }
    
    .article-excerpt {
        font-size: 16px;
        line-height: 1.6;
        color: #666;
        margin-bottom: 15px;
        word-wrap: break-word;
    }
    
    .article-meta {
        font-size: 14px;
        color: #999;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        align-items: center;
    }
    
    .article-meta span {
        display: inline-block;
    }
    
    .article-meta a {
        color: #3498db;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .article-meta a:hover {
        color: #2980b9;
        text-decoration: underline;
    }
    
    /* 移动端分页 */
    .pagination {
        display: flex;
        flex-direction: row;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        margin: 30px 15px;
        padding: 20px;
        background: transparent;
        border-radius: 0;
        border: none;
    }
    
    /* 移动端页脚 */
    .site-footer {
        padding: 30px 15px;
        margin-top: 40px;
        font-size: 13px;
        line-height: 1.4;
    }
    
    .footer-content {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .pagination a {
        padding: 12px 16px;
        font-size: 14px;
        min-width: 44px;
        text-align: center;
        border-radius: 0;
        background: transparent;
        color: #333;
        text-decoration: none;
        transition: all 0.3s ease;
        display: inline-block;
        border: none;
        font-weight: 500;
        box-shadow: none;
    }
    
    .pagination a:hover {
        background: #3498db;
        color: #fff;
        border: none;
        transform: translateY(-1px);
        box-shadow: none;
    }
    
    .pagination .current {
        background: #333;
        color: #fff;
        border: none;
        box-shadow: none;
    }
    
    /* 移动端文章和页面 */
    .post, .page, .archive-container, .category-container, .tag-container {
        padding: 20px;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 20px;
        border: none;
        width: 100%;
        box-sizing: border-box;
    }
    
    .post-header .post-title, .page-title, .archive-title, .category-title, .tag-title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 20px;
        font-weight: 600;
        color: #333;
        word-wrap: break-word;
    }
    
    .post-meta, .archive-post-meta, .category-post-meta, .tag-post-meta {
        flex-direction: column;
        gap: 10px;
        font-size: 14px;
        color: #666;
        margin-bottom: 20px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 6px;
    }
    
    /* 移动端文章内容 */
    .post-content {
        font-size: 16px;
        line-height: 1.7;
        color: #333;
    }
    
    .post-content h1, .post-content h2, .post-content h3 {
        font-size: 20px;
        margin: 20px 0 10px 0;
        font-weight: 600;
        word-wrap: break-word;
    }
    
    .post-content h4, .post-content h5, .post-content h6 {
        font-size: 18px;
        margin: 15px 0 8px 0;
        font-weight: 600;
        word-wrap: break-word;
    }
    
    .post-content p {
        margin-bottom: 15px;
        word-wrap: break-word;
    }
    
    .post-content ul, .post-content ol {
        margin-bottom: 15px;
        padding-left: 20px;
    }
    
    .post-content li {
        margin-bottom: 5px;
        word-wrap: break-word;
    }
    
    .post-content blockquote {
        margin: 15px 0;
        padding: 15px;
        background: #f8f9fa;
        border-left: 4px solid #3498db;
        font-style: italic;
        border-radius: 0 6px 6px 0;
    }
    
    .post-content code {
        background: #f1f1f1;
        padding: 2px 4px;
        border-radius: 3px;
        font-size: 14px;
        word-wrap: break-word;
    }
    
    .post-content pre {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 6px;
        overflow-x: auto;
        margin: 15px 0;
        font-size: 14px;
        line-height: 1.5;
    }
    
    .post-content pre code {
        background: none;
        padding: 0;
    }
    
    /* 移动端图片 */
    img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    
    /* 移动端表格 */
    table {
        width: 100%;
        border-collapse: collapse;
        margin: 15px 0;
        font-size: 14px;
    }
    
    th, td {
        padding: 8px 12px;
        text-align: left;
        border-bottom: 1px solid #ddd;
        word-wrap: break-word;
    }
    
    th {
        background: #f8f9fa;
        font-weight: 600;
    }
    
    /* 移动端代码 */
    code {
        background: #f1f1f1;
        padding: 2px 4px;
        border-radius: 3px;
        font-size: 14px;
        font-family: 'JetBrains Mono', monospace;
        word-wrap: break-word;
    }
    
    pre {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 6px;
        overflow-x: auto;
        margin: 15px 0;
        font-size: 14px;
        line-height: 1.5;
        white-space: pre;
        word-wrap: normal;
    }
    
    pre code {
        background: none;
        padding: 0;
    }
    
    /* 移动端链接 */
    a {
        color: #3498db;
        text-decoration: none;
        word-wrap: break-word;
    }
    
    a:hover {
        text-decoration: underline;
    }
    
    /* 移动端按钮 */
    button, .btn {
        padding: 10px 20px;
        border: none;
        border-radius: 6px;
        background: #3498db;
        color: #fff;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
    
    button:hover, .btn:hover {
        background: #2980b9;
    }
    
    /* 移动端输入框 */
    input, textarea, select {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 16px; /* 防止iOS缩放 */
        line-height: 1.5;
        box-sizing: border-box;
    }
    
    input:focus, textarea:focus, select:focus {
        outline: none;
        border-color: #3498db;
        box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
    }
    
    /* 移动端评论系统 */
    .comments-section {
        margin-top: 30px;
        padding: 20px 10px;
        border-top: 1px solid #eee;
    }
    
    .comments-title {
        font-size: 20px;
        margin-bottom: 20px;
        font-weight: 600;
        color: #333;
    }
    
    #waline {
        font-size: 15px !important;
    }
    
    #waline .wl-comment {
        font-size: 15px !important;
        padding: 15px;
        margin-bottom: 15px;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    #waline .wl-comment .wl-content {
        font-size: 15px !important;
        line-height: 1.6 !important;
        color: #333;
    }
    
    #waline .wl-comment .wl-nick {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #333 !important;
    }
    
    #waline .wl-editor {
        font-size: 15px !important;
        background: #fff;
        padding: 15px;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
    }
    
    #waline .wl-editor .wl-input {
        font-size: 15px !important;
        height: 44px;
        border: 1px solid #ddd;
        border-radius: 6px;
    }
    
    #waline .wl-editor .wl-textarea {
        font-size: 15px !important;
        line-height: 1.6 !important;
        border: 1px solid #ddd;
        border-radius: 6px;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 移动端评论框自适应 */
    #waline .wl-editor {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 15px !important;
    }
    
    #waline .wl-editor .wl-field {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #waline .wl-editor .wl-field input,
    #waline .wl-editor .wl-field textarea {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #waline .wl-editor .wl-textarea {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 移动端返回顶部按钮 */
    .back-to-top {
        right: 15px;
        bottom: 15px;
    }
    
    .back-to-top-btn {
        width: 48px;
        height: 48px;
    }
    
    .back-to-top-percent {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    /* 移动端滚动条 */
    ::-webkit-scrollbar {
        width: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    ::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
    
    /* 移动端触摸优化 */
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }
    
    /* 移动端选择文本样式 */
    ::selection {
        background: #3498db;
        color: #fff;
    }
    
    ::-moz-selection {
        background: #3498db;
        color: #fff;
    }
    
    /* 移动端焦点样式 */
    a:focus, button:focus, input:focus, textarea:focus, select:focus {
        outline: 2px solid #3498db;
        outline-offset: 2px;
    }
    
    /* 移动端加载动画 */
    .loading {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 3px solid #f3f3f3;
        border-top: 3px solid #3498db;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    /* 移动端卡片悬停效果 */
    .article-card {
        transition: all 0.3s ease;
    }
    
    .article-card:active {
        transform: scale(0.98);
    }
    
    /* 移动端按钮点击效果 */
    button:active, .btn:active {
        transform: scale(0.95);
    }
    
    /* 移动端链接点击效果 */
    a:active {
        opacity: 0.7;
    }
    
    /* 移动端性能优化 */
    .sidebar, .main-content, .article-card {
        will-change: transform;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    /* 移动端字体渲染优化 */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* 移动端图片优化 */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    /* 移动端动画性能优化 */
    .mobile-menu-toggle span,
    .sidebar,
    .article-card,
    button,
    .btn {
        transition: transform 0.3s ease, opacity 0.3s ease;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    /* 移动端滚动性能优化 */
    .sidebar,
    .main-content {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
    
    /* 移动端防止双击缩放 */
    * {
        touch-action: manipulation;
    }
    
    /* 移动端安全区域适配 */
    .main-content {
        padding-top: max(80px, env(safe-area-inset-top));
        padding-bottom: max(15px, env(safe-area-inset-bottom));
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
    
    .mobile-menu-toggle {
        top: max(20px, env(safe-area-inset-top) + 10px);
        left: max(20px, env(safe-area-inset-left) + 10px);
    }
}

/* 中等手机 (481px-768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .widgets-container {
        left: 50px !important;
        right: 15px !important;
        gap: 18px !important;
        height: 62px !important;
    }
    
    .widgets-container .widget h3 a {
        font-size: 19px !important;
        padding: 10px 18px !important;
        min-height: 38px !important;
    }
    
    .site-footer {
        padding: 25px 15px;
        font-size: 12px;
    }
    
    .footer-content {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 中等手机评论框自适应 */
    #waline .wl-editor {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #waline .wl-editor .wl-field {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #waline .wl-editor .wl-field input,
    #waline .wl-editor .wl-field textarea {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #waline .wl-editor .wl-textarea {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* 小屏手机 (≤480px) */
@media (max-width: 480px) {
    .main-content {
        padding: 0;
    }
    
    .widgets-container {
        left: 45px !important;
        right: 10px !important;
        top: 10px !important;
        padding: 10px 12px !important;
        gap: 16px !important;
        height: 58px !important;
    }
    
    .widgets-container .widget h3 a {
        font-size: 18px !important;
        padding: 10px 16px !important;
        min-height: 36px !important;
    }
    
    .mobile-menu-toggle {
        left: 10px;
        top: 22px;
    }
    
    .posts-container {
        padding: 60px 10px 0 10px;
    }
    
    .site-footer {
        padding: 20px 10px;
        font-size: 11px;
    }
    
    .footer-content {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 小屏手机评论框自适应 */
    #waline .wl-editor {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #waline .wl-editor .wl-field {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #waline .wl-editor .wl-field input,
    #waline .wl-editor .wl-field textarea {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #waline .wl-editor .wl-textarea {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .pagination {
        margin: 30px 10px;
    }
    
    .article-card {
        padding: 15px;
        margin-bottom: 15px;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    
    .article-title {
        font-size: 18px;
    }
    
    .article-excerpt {
        font-size: 15px;
    }
    
    .post, .page, .archive-container, .category-container, .tag-container {
        padding: 15px;
    }
    
    .post-header .post-title, .page-title, .archive-title, .category-title, .tag-title {
        font-size: 20px;
    }
    
    .pagination {
        padding: 15px;
        gap: 6px;
        background: transparent;
        border: none;
        border-radius: 0;
    }
    
    .pagination a {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 36px;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
    
    .widgets-container {
        padding: 10px;
        gap: 10px;
    }
    
    .widgets-container .widget h3 a {
        font-size: 12px;
        padding: 6px 10px;
    }
}


/* 左侧边栏 - PC端样式 */
.sidebar {
    width: 342px;
    flex-shrink: 0;
    background: transparent;
    padding: 30px 25px;
    position: sticky;
    top: 30px;
    height: fit-content;
    margin-right: 0;
    order: 1; /* PC端侧边栏在前 */
}

/* PC端主内容区 */
.main-content {
    width: 800px;
    flex-shrink: 0;
    min-width: 0;
    background: transparent;
    padding: 0 20px;
    overflow: visible;
    margin-top: 0;
    position: relative;
    order: 2; /* PC端主内容在后 */
}

.sidebar-content {
    text-align: left;
}

/* 侧边栏品牌标识区域 */
.brand-section {
    margin-bottom: 40px;
    text-align: center;
    padding-bottom: 0px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.brand-link:hover {
    opacity: 0.8;
}

.brand-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.brand-text {
    text-align: left;
}

.brand-text .site-name {
    margin: 0 0 8px 0;
    font-size: 23px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.brand-text .site-subtitle {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.2;
}

/* 侧边栏导航菜单 */
.sidebar-nav {
    margin-bottom: 40px;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: nowrap;
}

.sidebar-nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 12px;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 1;
    text-align: center;
}

.sidebar-nav a:hover {
    background-color: #f8f9fa;
    color: #333;
}

.sidebar-nav a.active {
    background-color: #f0f0f0;
    color: #333;
    font-weight: 600;
}

/* 搜索模块 */
.search-section {
    margin-bottom: 30px;
}

.search-label {
    color: #333;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;
    height: 36px;
    padding: 0 40px 0 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    background: #f8f9fa;
    color: #333;
    transition: border-color 0.3s ease;
}

.search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-66%);
    color: #bbb;
    pointer-events: none;
    transition: all 0.2s ease;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    width: 18px;
}

.search-box:hover .search-icon {
    color: #888;
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}

.search-box input:focus + .search-icon {
    color: #3498db;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.search-box input:focus {
    outline: none;
    border-color: #333;
    background: #fff;
}

.search-box input::placeholder {
    color: #999;
}

/* 欢迎语区域 */
.welcome-section {
    margin-bottom: 40px;
}

.welcome-title {
    color: #333;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.welcome-text {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

/* 头像样式 */
.avatar {
    margin-bottom: 20px;
}

.avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e9ecef;
    transition: transform 0.3s ease;
}

.avatar-img:hover {
    transform: scale(1.05);
}

/* 网站标题 */
.site-title {
    margin-bottom: 30px;
}

.site-title a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.site-title a:hover {
    color: #3498db;
}

/* 主导航 */
.main-nav ul {
    list-style: none;
    margin-bottom: 30px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.main-nav li {
    margin-bottom: 0;
}

.main-nav a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #555;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
}

.main-nav a:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

/* 搜索框 */
.search-box {
    margin-bottom: 30px;
}

.search-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 10px;
}

.search-box button {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #2980b9;
}

/* 个人名言 */
.quote {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.quote blockquote {
    margin: 0;
    font-style: italic;
    color: #666;
}

/* 最近更新 */
.recent-updates h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    font-weight: 700;
}

.recent-updates ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-updates li {
    margin-bottom: 8px;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.recent-updates a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    line-height: 1.8;
}

.recent-updates a:hover {
    color: #333;
}

.update-date {
    float: right;
    color: #999;
    font-size: 12px;
}

/* 右侧主内容区 */
.main-content {
    width: 800px;
    flex-shrink: 0;
    min-width: 0;
    background: transparent;
    padding: 0 20px;
    overflow: visible;
    margin-top: 0;
    position: relative;
}

.article-card {
    background: transparent;
    padding: 25px 0;
    margin-bottom: 35px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.article-excerpt-container {
    width: 700px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    padding: 10px;
    margin: 10px 0;
    background: #fafafa;
}

.article-excerpt {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin: 0;
    padding: 0;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
}

/* 页面导航菜单 */
.page-nav {
    margin-bottom: 20px;
    background: transparent;
    height: 48px; /* 固定高度 */
    min-height: 48px;
}

.page-nav-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    height: 48px; /* 固定高度 */
    justify-content: flex-start;
}

.page-nav-menu .nav-item {
    margin: 0;
    padding: 0;
    flex: none; /* 不平均分配，根据内容宽度 */
}

.page-nav-menu .nav-item a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    height: 48px; /* 固定高度 */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    white-space: nowrap;
}

.page-nav-menu .nav-item a:hover {
    color: #333;
    background-color: #f8f9fa;
}

.page-nav-menu .nav-item.active a {
    color: #333;
    background-color: #f8f9fa;
    border-bottom-color: #333;
    font-weight: 600;
}

/* 小工具横向布局容器 */
/* 所有页面菜单绝对定位 - 与网站标题对齐 */
.widgets-container {
    display: flex;
    gap: 40px;
    margin-bottom: 15px;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    padding: 0;
    margin: 0;
    padding-left: 0;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.widgets-container .widget {
    flex: none;
    margin-bottom: 0;
    text-align: left;
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    display: inline-block;
    vertical-align: top;
}

.widgets-container .widget h3 {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.widgets-container .widget h3 a {
    text-decoration: none !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    color: #666 !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 1 !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.widgets-container .widget h3 a:hover {
    color: #333 !important;
    background-color: #f8f9fa !important;
}

.widgets-container .widget h3 a.active {
    color: #000 !important;
    font-weight: 700 !important;
    background-color: #e9ecef !important;
    border-bottom: 2px solid #000 !important;
}

.widgets-container .widget.active h3 a,
.widgets-container .widget.active h3 a:visited,
.widgets-container .widget.active h3 a:link {
    color: #000 !important;
    background-color: #e9ecef00 !important;
}

/* 小工具样式 */
.widget {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 20px;
    margin-bottom: 20px;
}

.widget h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

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

.widget a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
}

.widget a:hover {
    color: #3498db;
}

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

.tag-item {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f8f9fa;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background-color: #3498db;
    color: white;
}

/* 归档样式 */
.archive-year {
    font-weight: bold;
    color: #2c3e50;
    margin-top: 15px;
    margin-bottom: 8px;
}

.archive-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.archive-date {
    color: #999;
    font-size: 12px;
}

/* 所有页面文章列表 - 为绝对定位菜单留空间 */
.posts-container {
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 80px 0 0 0;
    width: 100%;
}

.article-card {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
    text-align: left;
    margin-left: 0;
    padding-left: 0;
}

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

.article-title {
    margin: 0 0 10px 0;
    text-align: left;
}

.article-title a {
    text-decoration: none;
    color: #333;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    display: block;
    margin-left: 0;
    padding-left: 0;
}

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

.article-card .article-excerpt {
    color: #444 !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    margin: 0 0 14px 0 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    text-align: left !important;
}


.article-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
    justify-content: flex-start;
    text-align: left;
}

.article-meta .date {
    color: #666;
}

.article-meta .category a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

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

/* 文章页面样式 */
.post {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 40px;
    margin-bottom: 20px;
}

.post-header {
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
}

.post-header .post-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.post-header .post-meta {
    justify-content: center;
}

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

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 30px 0 15px 0;
    color: #2c3e50;
}

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

.post-content code {
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'JetBrainMono', 'Courier New', monospace;
    font-size: 14px;
}

.post-content pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'JetBrainMono', 'Courier New', monospace;
}

.post-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 20px;
    margin: 20px 0;
    color: #666;
    font-style: italic;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
}

/* 文章底部版权信息 */
.post-footer {
    margin-top: 40px;
    text-align: center;
}

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

.copyright p {
    margin-bottom: 5px;
}

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

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

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

.pagination a {
    color: #444;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background-color: #f8f9fa;
}

.page-info {
    color: #666;
    font-size: 14px;
}

/* 无文章提示 */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* 页脚样式 */
.site-footer {
    background: transparent;
    color: #666;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.footer-content a:hover {
    text-decoration: underline;
    color: #666;
}

/* 页面样式 */
.page {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 40px;
    margin-bottom: 20px;
}

.page-header {
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.page-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 15px;
}

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

/* 归档页面样式 */
.archive-container {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0px;
    margin: 80px 0 20px 0;
}

.archive-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.archive-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.archive-description {
    color: #666;
    font-size: 16px;
}

.archive-year-title {
    font-size: 24px;
    color: #2c3e50;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.archive-post-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.archive-post-item:last-child {
    border-bottom: none;
}

.archive-post-title {
    margin-bottom: 8px;
}

.archive-post-title a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 500;
}

.archive-post-title a:hover {
    color: #3498db;
}

.archive-post-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #999;
}

.archive-post-meta a {
    color: #3498db;
    text-decoration: none;
}

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

/* 分类页面样式 */
.category-container {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0px;
    margin: 80px 0 20px 0;
}

.category-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.category-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.category-description {
    color: #666;
    font-size: 16px;
}

.category-post-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.category-post-item:last-child {
    border-bottom: none;
}

.category-post-title {
    margin-bottom: 15px;
}

.category-post-title a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.category-post-title a:hover {
    color: #3498db;
}

.category-post-preview {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.category-post-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #999;
    flex-wrap: wrap;
}

.category-post-meta a {
    color: #3498db;
    text-decoration: none;
}

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

.tag-link {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 6px;
    background-color: #f8f9fa;
    border-radius: 3px;
    font-size: 12px;
}

/* 标签页面样式 */
.tag-container {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0px;
    margin: 80px 0 20px 0;
}

/* 分类列表格式化样式 */
.category-list-format {
    margin-top: 20px;
}

.category-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.category-row:last-child {
    border-bottom: none;
}

.category-name-link {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.category-name-link:hover {
    color: #3498db;
}

.category-count {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* 简化标签云样式 */
.tag-cloud-simple {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    line-height: 1.8;
}

.tag-cloud-item {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tag-cloud-item:hover {
    background-color: #e9ecef;
    color: #333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tag-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.tag-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.tag-description {
    color: #666;
    font-size: 16px;
}

.tag-post-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.tag-post-item:last-child {
    border-bottom: none;
}

.tag-post-title {
    margin-bottom: 15px;
}

.tag-post-title a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.tag-post-title a:hover {
    color: #3498db;
}

/* 归档时间线样式 */
.archive-timeline {
    position: relative;
    margin-top: 20px;
    padding-left: 20px;
}

.archive-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e9ecef;
}

.timeline-year {
    margin: 30px 0 15px 0;
}

.timeline-year-title {
    font-size: 20px;
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
    padding: 0;
}

.timeline-item {
    margin: 8px 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.timeline-date {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
    min-width: 50px;
    font-family: 'JetBrainMono', 'Courier New', monospace;
}

.timeline-title {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease;
    flex: 1;
}

.timeline-title:hover {
    color: #3498db;
}

.tag-post-preview {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.tag-post-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #999;
}

.tag-post-meta a {
    color: #3498db;
    text-decoration: none;
}

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

/* 无结果样式 */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin: 20px 0;
}

/* 搜索功能样式 */
.search-content {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-result-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.search-result-list li:last-child {
    border-bottom: none;
}

.search-result-title {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.search-result-title:hover {
    color: #3498db;
    text-decoration: none;
}

.search-result {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.search-keyword {
    color: #c7254e;
    background-color: #f9f2f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* 搜索模态框样式调整 */
#searchModal .modal-body {
    padding: 30px;
}

#searchModal .form-control {
    margin-top: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
}

#searchModal .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Waline评论系统样式 */
.comments-section {
    margin-top: 40px;
}

.comments-title {
    color: #333;
    font-size: 20px;
    font-weight: 600;
        margin-bottom: 20px;
    padding-bottom: 10px;
}

/* Waline容器 */
#waline {
    margin-top: 20px;
}

/* Waline评论内容文字大小调整 */
#waline {
    font-size: 16px !important;
    line-height: 1.6 !important;
}

#waline .wl-comment {
    font-size: 16px !important;
}

#waline .wl-comment .wl-content {
    font-size: 16px !important;
    line-height: 1.6 !important;
}

#waline .wl-comment .wl-meta {
    font-size: 14px !important;
}

#waline .wl-comment .wl-nick {
    font-size: 16px !important;
    font-weight: 600 !important;
}

#waline .wl-comment .wl-mail {
    font-size: 16px !important;
}

#waline .wl-comment .wl-link {
    font-size: 16px !important;
}

#waline .wl-comment .wl-time {
    font-size: 14px !important;
}

#waline .wl-comment .wl-reply {
    font-size: 14px !important;
}

#waline .wl-comment .wl-actions {
    font-size: 14px !important;
}

#waline .wl-comment .wl-actions button {
    font-size: 14px !important;
}

/* 移动端评论框强制自适应 - 覆盖PC端样式 */
@media (max-width: 768px) {
    #waline .wl-editor {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 15px !important;
    }
    
    #waline .wl-editor .wl-field {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    
    #waline .wl-editor .wl-field input,
    #waline .wl-editor .wl-field textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    
    #waline .wl-editor .wl-textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    
    #waline .wl-editor .wl-input {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    
    /* 强制评论框容器占满宽度 */
    #waline .wl-editor .wl-field[data-field="comment"] {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    #waline .wl-editor .wl-field[data-field="comment"] textarea {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
    
    /* 针对wl-edit类的特殊处理 */
    #waline textarea.wl-edit {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* 评论输入框 */
#waline .wl-editor {
    font-size: 16px !important;
}

#waline .wl-editor .wl-input {
    font-size: 16px !important;
}

#waline .wl-editor .wl-input[type="email"] {
    font-size: 16px !important;
}

#waline .wl-editor .wl-input[type="url"] {
    font-size: 16px !important;
}

#waline .wl-editor .wl-input[type="text"] {
    font-size: 16px !important;
}

#waline .wl-editor .wl-textarea {
    font-size: 16px !important;
    line-height: 1.6 !important;
}

#waline .wl-editor .wl-preview {
    font-size: 16px !important;
    line-height: 1.6 !important;
}

/* 评论列表 */
#waline .wl-comments {
    font-size: 16px !important;
}

#waline .wl-comments .wl-comment {
    font-size: 16px !important;
}

/* 分页 */
#waline .wl-pagination {
    font-size: 16px !important;
}

#waline .wl-pagination button {
    font-size: 16px !important;
}

/* 统计信息 */
#waline .wl-card {
    font-size: 16px !important;
}

#waline .wl-card .wl-card-info {
    font-size: 16px !important;
}

/* 评论表单标签 */
#waline .wl-editor label {
    font-size: 16px !important;
}

#waline .wl-editor .wl-label {
    font-size: 16px !important;
}

/* 评论表单字段组 */
#waline .wl-editor .wl-field {
    font-size: 16px !important;
}

#waline .wl-editor .wl-field input {
    font-size: 16px !important;
}

#waline .wl-editor .wl-field textarea {
    font-size: 16px !important;
}

/* 社交链接样式 */
.social-section {
    margin-bottom: 30px;
}

.social-section h3 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.social-links {
    display: flex;
        flex-direction: column;
    gap: 8px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-links a:hover {
    background-color: #f8f9fa;
    color: #3498db;
    text-decoration: none;
}

.social-links a i {
    width: 16px;
    height: 16px;
    display: inline-block;
}

/* 友链样式 */
.links-section {
    margin-bottom: 30px;
}

.links-section h3 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

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

.links-list li {
    margin-bottom: 8px;
}

.links-list a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    display: block;
    transition: color 0.3s ease;
}

.links-list a:hover {
    color: #3498db;
    text-decoration: none;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
}

.back-to-top-btn {
    width: 50px;
    height: 50px;
    background: #ffffff00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.back-to-top-btn:hover {
    background: #ffffff00;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.back-to-top-btn:active {
    transform: translateY(0);
}

.back-to-top-percent {
    text-align: center;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}


