* {
     margin:0;
     padding:0;
     box-sizing:border-box;
}
 body {
     font-family:-apple-system,"Microsoft YaHei","PingFang SC",sans-serif;
     background:#f5f7fa;
     color:#333;
     line-height:1.6;
}
 a {
     color:#2f2f2f;
     text-decoration:none;
}
 a:visited {
     color:#535353;
     text-decoration:none;
}
 a:hover {
     color:#0f7abe;
     text-decoration:none;
}
 a:active {
     text-decoration:none;
}
 .container {
     max-width:1162px;
     margin:0 auto;
     padding:10px 0px;
}
/* 导航 */
 .nav {
     background:#fff;
     border-bottom:1px solid #e8e8e8;
     padding:0 20px;
     position:sticky;
     top:0;
     z-index:100;
     box-shadow:0 1px 4px rgba(0,0,0,0.06);
}
 .nav .container {
     max-width:1162px;
     margin:0 auto;
     display:flex;
     justify-content:space-between;
     align-items:center;
     height:60px;
     padding:0;
}
 .nav .logo {
     display:flex;
     align-items:center;
     text-decoration:none;
}
 .nav .logo img {
     height:50px;
     width:180px;
     object-fit:contain;
}
 .nav .links {
     display:flex;
     align-items:center;
     gap:20px;
}
 .nav .links a {
     text-decoration:none;
     color:#313131;
     font-size:14px;
     line-height:normal;
     transition:color 0.2s;
}
 .nav .links a:hover { color:#4f6ef7; }
/* 搜索框 */
 .search-form {
     display:flex;
     align-items:center;
     gap:0;
}
 .search-input {
     width:140px;
     height:34px;
     padding:0 12px;
     border:1px solid #e8e8e8;
     border-radius:18px 0 0 18px;
     font-size:13px;
     line-height:34px;
     outline:none;
     transition:all 0.2s ease;
     background:#f5f5f5;
     color:#333;
     box-sizing:border-box;
}
 .search-input:focus {
     border-color:#4f6ef7;
     width:180px;
     background:#fff;
     box-shadow:0 0 0 3px rgba(79,110,247,0.1);
}
 .search-btn {
     height:34px;
     padding:0 12px;
     background:#4f6ef7;
     border:1px solid #4f6ef7;
     border-left:none;
     border-radius:0 18px 18px 0;
     cursor:pointer;
     font-size:14px;
     line-height:34px;
     transition:background 0.2s ease;
     display:inline-flex;
     align-items:center;
     justify-content:center;
     color:#fff;
     box-sizing:border-box;
}
 .search-btn:hover {
     background:#3a5be8;
}
/* 汉堡菜单按钮 */
 .nav-toggle {
     display:none;
     background:none;
     border:none;
     padding:8px;
     cursor:pointer;
     flex-direction:column;
     gap:5px;
}
 .nav-toggle span {
     display:block;
     width:24px;
     height:2px;
     background:#333;
     transition:all 0.3s ease;
}
/* 移动端导航 */
 @media (max-width:640px) {
     .nav .container {
         flex-wrap:wrap;
    }
     .nav-toggle {
         display:flex;
    }
     .nav .links {
         display:none;
         width:100%;
         flex-direction:column;
         align-items:flex-start;
         gap:0;
         padding-top:15px;
         margin-top:15px;
         border-top:1px solid #e0e0e0;
    }
     .nav .links.active {
         display:flex;
    }
     .nav .links a,.nav .links form {
         width:100%;
         padding:10px 0;
         margin-left:0;
    }
     .nav .links form {
         border-top:1px solid #f0f0f0;
    }
     .search-form {
         padding:10px 0 !important;
    }
     .search-input {
         flex:1;
         width:auto;
    }
     .search-input:focus {
         width:auto;
    }
}
/* 仪表盘统计 */
 .dashboard-stats {
     display:grid;
     grid-template-columns:repeat(4,1fr);
     gap:14px;
     margin-top:14px;
}
 .dashboard-stats .stat-item {
     background:#fff;
     border-radius:14px;
     padding:18px 20px;
     border:1px solid rgba(0,0,0,0.06);
     box-shadow:0 10px 26px rgba(0,0,0,0.06);
     display:flex;
     align-items:center;
     gap:14px;
     transition:transform 0.18s ease,box-shadow 0.18s ease;
}
 .dashboard-stats .stat-item:hover {
     transform:translateY(-2px);
     box-shadow:0 14px 34px rgba(0,0,0,0.08);
}
 .dashboard-stats .stat-icon {
     width:46px;
     height:46px;
     border-radius:12px;
     background:linear-gradient(135deg,#E75632,#ff8a65);
     display:flex;
     align-items:center;
     justify-content:center;
     flex-shrink:0;
}
 .dashboard-stats .stat-icon i {
     font-size:22px;
     color:#fff;
}
 .dashboard-stats .stat-value {
     font-size:22px;
     font-weight:700;
     color:#333;
     line-height:1.2;
}
 .dashboard-stats .stat-label {
     font-size:13px;
     color:#999;
     margin-top:2px;
}
 @media (max-width:767px) {
     .dashboard-stats {
         grid-template-columns:repeat(2,1fr);
    }
}
/* 首页 */
 .home-grid {
     display:grid;
     grid-template-columns:1fr 1fr;
     gap:14px;
     margin-top:14px;
}
 @media (min-width:1024px) {
     .home-grid {
         grid-template-columns:1fr 1fr;
    }
}
@media (min-width:768px) and (max-width:1023px) {
     .home-grid {
         grid-template-columns:1fr 1fr;
    }
}
@media (max-width:767px) {
     .home-grid {
         grid-template-columns:1fr;
    }
}
.home-grid .column {
     background:#fff;
     border-radius:14px;
     padding:18px 18px;
     border:1px solid rgba(0,0,0,0.06);
     box-shadow:0 10px 26px rgba(0,0,0,0.06);
     transition:transform 0.18s ease,box-shadow 0.18s ease;
}
 .home-grid .column:hover {
     transform:translateY(-2px);
     box-shadow:0 14px 34px rgba(0,0,0,0.08);
}
 .home-card-header {
     display:flex;
     align-items:baseline;
     justify-content:space-between;
     gap:12px;
}
 .home-more {
     font-size:12px;
     color:#8c8b8b;
     white-space:nowrap;
}
 .column h2 {
     font-size:16px;
     margin-bottom:12px;
     padding-bottom:8px;
     border-bottom:2px solid #d83b15;
     color:#E75632;
}
 .article-list {
     list-style:none;
}
 .article-list li {
     padding:8px 0;
     border-bottom:1px solid #f0f0f0;
}
 .article-list li:last-child {
     border-bottom:none;
}
 .article-list li a {
     display:block;
     font-size:14px;
     font-weight:600;
     overflow:hidden;
     display:-webkit-box;
     -webkit-box-orient:vertical;
     -webkit-line-clamp:2;
     line-clamp:2;
     line-height:1.45;
     max-height:calc(1.45em * 2);
}
 .article-list .meta {
     font-size:12px;
     color:#999;
     margin-top:4px;
}
/* 文章列表页 */
 .list-page .list-sortbar {
     display:flex;
     align-items:center;
     justify-content:space-between;
     gap:12px;
     background:rgba(255,255,255,0.9);
     border:1px solid rgba(0,0,0,0.06);
     border-radius:14px;
     padding:10px 12px;
     margin:-6px 0 14px 0;
     box-shadow:0 10px 24px rgba(0,0,0,0.04);
}
 .list-page .sortbar-left {
     flex:0 0 auto;
     display:inline-flex;
     align-items:center;
     gap:6px;
     font-size:12px;
     color:#7a7a7a;
     white-space:nowrap;
}
 .list-page .sortbar-current {
     color:#2f2f2f;
     font-weight:600;
}
 .list-page .sortbar-pills {
     flex:1 1 auto;
     display:flex;
     align-items:center;
     justify-content:flex-end;
     gap:8px;
     min-width:0;
}
 .list-page .sort-pill {
     display:inline-flex;
     align-items:center;
     justify-content:center;
     padding:6px 10px;
     border-radius:999px;
     font-size:12px;
     border:1px solid rgba(0,0,0,0.08);
     background:rgba(245,247,250,0.9);
     color:#3a3a3a;
     transition:background 0.16s ease,border-color 0.16s ease,transform 0.16s ease;
     -webkit-tap-highlight-color:transparent;
}
 .list-page .sort-pill:hover {
     background:#fff;
     border-color:rgba(231,86,50,0.28);
}
 .list-page .sort-pill:active {
     transform:scale(0.98);
}
 .list-page .sort-pill:focus-visible {
     outline:none;
     border-color:rgba(231,86,50,0.6);
     box-shadow:0 0 0 3px rgba(231,86,50,0.16);
}
 .list-page .sort-pill.is-active {
     background:rgba(231,86,50,0.12);
     border-color:rgba(231,86,50,0.45);
     color:#2a5594;
     font-weight:600;
}
 .list-page .article-item {
     background:#fff;
     border-radius:14px;
     padding:14px 16px;
     margin-bottom:12px;
     border:1px solid rgba(0,0,0,0.06);
     box-shadow:0 10px 24px rgba(0,0,0,0.05);
     display:flex;
     justify-content:space-between;
     align-items:center;
     gap:14px;
     transition:transform 0.16s ease,box-shadow 0.16s ease,border-color 0.16s ease;
     -webkit-tap-highlight-color:transparent;
     color:inherit;
}
 .list-page .article-item:hover {
     transform:translateY(-1px);
     box-shadow:0 14px 30px rgba(0,0,0,0.07);
     border-color:rgba(28, 97, 129, 0.28);
}
 .list-page .article-item:active {
     transform:translateY(0);
     box-shadow:0 8px 18px rgba(0,0,0,0.06);
}
 .list-page .article-item:focus-visible {
     outline:none;
     border-color:rgba(30, 94, 136, 0.6);
     box-shadow:0 0 0 3px rgba(231,86,50,0.16),0 14px 30px rgba(0,0,0,0.07);
}
 .list-page .article-item.is-selected {
     border-color:rgba(231,86,50,0.6);
     box-shadow:0 0 0 3px rgba(231,86,50,0.12),0 14px 30px rgba(0,0,0,0.07);
}
 .article-item .article-left {
     min-width:0;
     flex:1 1 auto;
}
 .article-item .article-img {
     flex:0 0 auto;
     width:120px;
     height:80px;
     border-radius:8px;
     overflow:hidden;
     flex-shrink:0;
}
 .article-item .article-img img {
     width:100%;
     height:100%;
     object-fit:cover;
     display:block;
}
 .article-item .title {
     font-size:15px;
     font-weight:600;
     overflow:hidden;
     display:-webkit-box;
     -webkit-box-orient:vertical;
     -webkit-line-clamp:2;
     line-clamp:2;
     line-height:1.45;
     max-height:calc(1.45em * 2);
}
 .article-item .meta {
     margin-top:6px;
     font-size:12px;
     color:#9a9a9a;
     display:flex;
     gap:10px;
     align-items:center;
     min-width:0;
}
 .article-item .meta .time {
     white-space:nowrap;
}
 .article-item .desc {
     margin-top:8px;
     font-size:13px;
     color:#666;
     overflow:hidden;
     display:-webkit-box;
     -webkit-box-orient:vertical;
     -webkit-line-clamp:2;
     line-clamp:2;
     line-height:1.5;
     max-height:calc(1.5em * 2);
}
 .article-item .tags {
     margin-top:10px;
     display:flex;
     flex-wrap:wrap;
     gap:6px;
}
 .article-item .tag-chip {
     display:inline-flex;
     align-items:center;
     padding:4px 8px;
     border-radius:999px;
     font-size:12px;
     line-height:1;
     color:#5a5a5a;
     background:rgba(2, 131, 206, 0.08);
     border:1px solid rgba(14, 87, 146, 0.14);
}
 .article-item .article-right {
     flex:0 0 auto;
     display:flex;
     align-items:center;
     gap:10px;
     color:#6f6f6f;
}
 .article-item .article-right .stat {
     display:inline-flex;
     align-items:center;
     gap:6px;
     padding:6px 10px;
     border-radius:999px;
     border:1px solid rgba(0,0,0,0.06);
     background:rgba(245,247,250,0.8);
     font-size:12px;
     line-height:1;
}
 .article-item .article-right .stat i {
     font-size:14px;
     color:#8b8b8b;
}
 .article-item .article-right .stat .num {
     font-variant-numeric:tabular-nums;
     color:#3d3d3d;
}
 @media (max-width:640px) {
     .list-page .list-sortbar {
         padding:10px 10px;
         border-radius:16px;
         flex-direction:column;
         align-items:stretch;
         gap:10px;
    }
     .list-page .sortbar-left {
         justify-content:space-between;
    }
     .list-page .sortbar-pills {
         justify-content:flex-start;
         overflow-x:auto;
         -webkit-overflow-scrolling:touch;
         padding-bottom:2px;
         scrollbar-width:none;
    }
     .list-page .sortbar-pills::-webkit-scrollbar {
         display:none;
    }
     .list-page .sort-pill {
         flex:0 0 auto;
         padding:7px 12px;
    }
     .list-page .article-item {
         padding:14px 14px;
         border-radius:16px;
         flex-direction:row;
         align-items:center;
         gap:12px;
         margin-bottom:10px;
    }
     .article-item .title {
         font-size:15px;
    }
     .article-item .meta {
         margin-top:6px;
    }
     .article-item .desc {
         margin-top:8px;
         font-size:13px;
    }
     .article-item .tags {
         margin-top:10px;
    }
     .article-item .article-right {
         gap:8px;
    }
     .article-item .article-right .stat {
         padding:6px 8px;
    }
     .article-item .article-img {
         width:100px;
         height:68px;
         border-radius:8px;
    }
}
/* 分页 */
.pagination {
    text-align:center;
    margin-top:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
    list-style:none;
    padding:0;
}
.pagination li {
    display:inline-flex;
}
.pagination a,.pagination span {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:36px;
    height:36px;
    padding:0 8px;
    border-radius:6px;
    font-size:14px;
    color:#333;
    border:2px solid transparent;
    text-decoration:none;
    box-sizing:border-box;
    transition:all 0.2s ease;
}
.pagination a {
    background:#fff;
    border-color:#e0e0e0;
}
.pagination a:hover {
    border-color:#4f6ef7;
    color:#0f7abe;
    text-decoration:none;
}
.pagination .active span,
.pagination .current {
    background:#0f7abe;
    color:#fff;
    font-weight:700;
    border:2px solid #e0e0e0;
}
/* 上一页下一页样式 */
.pagination li:first-child span,
.pagination li:last-child span {
    min-width:50px;
    padding:0 12px;
}
.pagination li:first-child a,
.pagination li:last-child a {
    /* min-width:50px; */
    padding:0 12px;
}
/* 隐藏省略号 */
.pagination .disabled span {
    display:none;
}
 @media (max-width:640px) {
    .pagination {
        gap:6px;
    }
    .pagination a,.pagination span {
        min-width:30px;
        height:30px;
        padding:0 6px;
        font-size:13px;
    }
}
/* 文章详情 */
 .article-detail {
     background:#fff;
     border-radius:8px;
     padding:32px;
     box-shadow:0 1px 4px rgba(0,0,0,0.06);
}
 .article-detail h1 {
     font-size:26px;
     margin-bottom:12px;
}
 .article-detail .meta {
     font-size:13px;
     color:#999;
     margin-bottom:24px;
     padding-bottom:16px;
     border-bottom:1px solid #f0f0f0;
}
 .article-detail .content {
     font-size:16px;
     line-height:1.8;
     word-wrap:break-word;
     width:100%;
     max-width:100%;
     overflow-x:hidden;
     position:relative;
     box-sizing:border-box;
}
 .article-detail .content .katex-display {
     max-width:100%;
     overflow-x:auto;
     overflow-y:hidden;
     -webkit-overflow-scrolling:touch;
     padding:0.35em 0;
}
 .article-detail .content .katex-display > .katex {
     display:inline-block;
     min-width:max-content;
}
 .article-detail .content .katex {
     max-width:100%;
}
/* Markdown 渲染内容样式 */
 .article-detail .content h1,.article-detail .content h2,.article-detail .content h3,.article-detail .content h4,.article-detail .content h5,.article-detail .content h6 {
     margin-top:1.2em;
     margin-bottom:0.6em;
     font-weight:600;
}
 .article-detail .content h1 {
     font-size:1.6em;
}
 .article-detail .content h2 {
     font-size:1.4em;
     padding-bottom:0.3em;
     border-bottom:1px solid #eee;
}
 .article-detail .content h3 {
     font-size:1.2em;
}
 .article-detail .content p {
     margin-bottom:1em;
}
 .article-detail .content ul,.article-detail .content ol {
     padding-left:1.5em;
     margin-bottom:1em;
}
 .article-detail .content li {
     margin-bottom:0.3em;
}
 .article-detail .content blockquote {
     border-left:4px solid #ddd;
     padding:0.5em 1em;
     margin:1em 0;
     color:#666;
     background:#f9f9f9;
}
 .article-detail .content code {
     font-family:Consolas,Monaco,monospace;
     background: #dce2ff;
     padding:2px 6px;
     border-radius:3px;
     font-size:0.9em;
}
 .article-detail .content pre {
     background:#2d2d2d;
     color: #ffd67f;
     padding:16px;
     border-radius:6px;
     overflow-x:auto;
     margin:1em 0;
}
 .article-detail .content pre code {
     background:none;
     padding:0;
     color:inherit;
     font-size:0.9em;
}
 .article-detail .content table {
     border-collapse:collapse;
     width:auto;
     margin:1em 0;
     overflow-x:auto;
     display:block;
     white-space:nowrap;
     max-width:100%;
}
/* 表格包装器样式 */
 .table-wrapper {
     width:100%;
     max-width:100%;
     overflow-x:auto;
     -webkit-overflow-scrolling:touch;
     margin:1em 0;
     position:relative;
     box-sizing:border-box;
     display:block;
}
/* 确保表格可以横向滚动，但不会影响页面 */
 .table-wrapper table {
     width:auto;
     min-width:100%;
     display:block;
     overflow-x:auto;
     white-space:nowrap;
}
/* 在小屏幕上确保容器不会被表格撑宽 */
 @media (max-width:1160px) {
     .container {
         width:100%;
         max-width:100%;
    }
}
.article-detail .content th,.article-detail .content td {
     border: 1px solid #c7c7c7;
     padding:8px 12px;
     text-align:left;
     white-space:nowrap;
     word-wrap:normal;
}
 .article-detail .content th {
     background: #cbddff;
     font-weight:600;
}
 .article-detail .content hr {
     border:none;
     border-top:1px solid #eee;
     margin:1.5em 0;
}
 .article-detail .content img {
     max-width:100%;
     border-radius:4px;
}
 .article-detail .content a {
     color:#007bff;
}
/* 文章标签 */
 .article-tags {
     margin:12px 0 20px;
     display:flex;
     flex-wrap:wrap;
     gap:8px;
}
 .tag-link {
     display:inline-block;
     padding:4px 12px;
     background:#f0f4f8;
     color:#606060;
     border-radius:16px;
     font-size:13px;
     text-decoration:none;
     transition:all 0.2s ease;
}
 .tag-link:hover {
     background:#ec4f29;
     color:#fff;
     text-decoration:none;
}
/* 标签墙 */
 .tags-wall {
     display:flex;
     flex-wrap:wrap;
     gap:12px;
     margin-bottom:24px;
}
 .tag-wall-item {
     display:inline-flex;
     align-items:center;
     gap:8px;
     padding:8px 16px;
     background:#fff;
     border:1px solid #e0e0e0;
     border-radius:20px;
     text-decoration:none;
     transition:all 0.2s ease;
}
 .tag-wall-item:hover {
     background:#E75632;
     border-color:#E75632;
     text-decoration:none;
     transform:translateY(-2px);
     box-shadow:0 4px 12px rgba(45,108,223,0.2);
}
 .tag-wall-item:hover .tag-name,.tag-wall-item:hover .tag-count {
     color:#fff;
}
 .tag-name {
     font-size:14px;
     color:#333;
}
 .tag-count {
     font-size:12px;
     color:#fff;
     background:#6c757d;
     padding:2px 8px;
     border-radius:10px;
     min-width:20px;
     text-align:center;
}
 .tag-count-circle {
     font-size:16px;
     color:#E75632;
}
 .tag-wall-item:hover .tag-count {
     background:rgba(255,255,255,0.3);
}
 .tag-wall-item:hover .tag-count-circle {
     color:#fff;
}
/* 后台管理 */
 .admin-form {
     background:#fff;
     border-radius:8px;
     padding:32px;
     box-shadow:0 1px 4px rgba(0,0,0,0.06);
     margin-bottom:24px;
}
 .admin-form h2 {
     margin-bottom:20px;
     font-size:20px;
}
 .admin-form label {
     display:block;
     font-size:14px;
     font-weight:bold;
     margin-bottom:6px;
     color:#555;
}
 .admin-form input[type="text"],.admin-form input[type="datetime-local"],.admin-form textarea {
     width:100%;
     padding:10px 12px;
     border:1px solid #ddd;
     border-radius:6px;
     font-size:15px;
     margin-bottom:16px;
     font-family:inherit;
}
 .admin-form textarea {
     height:300px;
     resize:vertical;
}
 .admin-form input[type="text"]:focus,.admin-form input[type="datetime-local"]:focus,.admin-form textarea:focus {
     outline:none;
     border-color:#E75632;
     box-shadow:0 0 0 2px rgba(45,108,223,0.15);
}
 .btn {
     display:inline-block;
     padding:10px 24px;
     background:#E75632;
     color:#fff;
     border:none;
     border-radius:6px;
     font-size:15px;
     cursor:pointer;
}
 .btn:hover {
     background:#bc4528;
}
 .btn-danger {
     background:#e74c3c;
}
 .btn-danger:hover {
     background:#c0392b;
}
 .admin-list table {
     width:100%;
     border-collapse:collapse;
     background:#fff;
     border-radius:8px;
     overflow:hidden;
     box-shadow:0 1px 4px rgba(0,0,0,0.06);
}
 .admin-list th,.admin-list td {
     padding:5px 8px;
     text-align:left;
     border-bottom:1px solid #f0f0f0;
}
 .admin-list th {
     background:#f8f9fa;
     font-size:14px;
     color:#666;
     white-space:nowrap;
}
 .admin-list td {
     font-size:12px;
}
 .admin-list .actions {
     white-space:nowrap;
}
 .admin-list .actions a,.admin-list .actions button {
     margin-right:10px;
     font-size:13px;
}
 .msg {
     padding:12px 16px;
     border-radius:6px;
     margin-bottom:20px;
     font-size:14px;
}
 .msg-success {
     background:#d4edda;
     color:#155724;
}
 .msg-error {
     background:#f8d7da;
     color:#721c24;
}
/* 点赞踩功能 */
 .vote-section {
     margin-top:24px;
     padding-top:20px;
     border-top:1px solid #f0f0f0;
}
 .vote-buttons {
     display:flex;
     gap:12px;
     justify-content:center;
}
 .vote-btn {
     display:inline-flex;
     align-items:center;
     gap:6px;
     padding:8px 16px;
     border:1px solid #ddd;
     border-radius:20px;
     background:#fff;
     font-size:14px;
     cursor:pointer;
     transition:all 0.2s ease;
     color:#666;
}
 .vote-btn:hover {
     transform:translateY(-1px);
     box-shadow:0 2px 8px rgba(0,0,0,0.1);
}
 .like-btn:hover {
     background:#e8f5e8;
     border-color:#27ae60;
     color:#27ae60;
}
 .dislike-btn:hover {
     background:#ffe8e8;
     border-color:#e74c3c;
     color:#e74c3c;
}
 .vote-count {
     font-weight:bold;
     min-width:20px;
     text-align:center;
}
 .vote-btn.voted {
     opacity:0.6;
     cursor:not-allowed;
     background:#f8f9fa;
     border-color:#dee2e6;
     color:#6c757d;
}
 .vote-btn.voted:hover {
     transform:none;
     box-shadow:none;
     background:#f8f9fa;
     border-color:#dee2e6;
     color:#6c757d;
}
 .vote-status {
     font-size:11px;
     margin-left:4px;
     color:#6c757d;
}
 .vote-tip {
     text-align:center;
     font-size:12px;
     color:#999;
     margin-top:8px;
}
/* 响应式 */
 @media (max-width:640px) {
     .container {
         padding:15px;
    }
     .home-grid {
         grid-template-columns:1fr;
    }
     .list-page .article-item {
         flex-direction:column;
         align-items:flex-start;
    }
     .article-item .info {
         margin-left:0;
         margin-top:6px;
    }
     .vote-buttons {
         gap:8px;
    }
     .vote-btn {
         padding:6px 12px;
         font-size:13px;
    }
    /* 管理后台表格移动端优化 */
     .admin-list {
         margin:0 -15px;
         padding:0 15px;
         overflow-x:auto;
         -webkit-overflow-scrolling:touch;
    }
     .admin-list table {
         min-width:700px;
    }
     .admin-list th,.admin-list td {
         padding:10px 12px;
         font-size:13px;
    }
     .admin-list .actions a,.admin-list .actions button {
         margin-right:8px;
    }
    /* 批量操作按钮 */
     .admin-list > form > div:first-child {
         flex-wrap:wrap;
    }
     .admin-list .btn {
         padding:8px 14px;
         font-size:13px;
         margin-bottom:8px;
    }
    /* 发布按钮 */
     .container > div:first-of-type .btn {
         padding:10px 18px;
         font-size:14px;
    }
    /* 文章详情 */
     .article-detail {
         padding:20px;
    }
     .article-detail h1 {
         font-size:20px;
    }
    /* 表单 */
     .admin-form {
         padding:20px;
    }
     .admin-form h2 {
         font-size:18px;
    }
}
/* 评论区样式 */
 .comment-section {
     margin-top:32px;
     padding-top:24px;
     border-top:1px solid #f0f0f0;
}
 .comment-section h3 {
     font-size:18px;
     margin-bottom:20px;
     color:#333;
}
 .comment-form-wrapper {
     background:#f8f9fa;
     border-radius:8px;
     padding:20px;
     margin-bottom:24px;
}
 .comment-form-wrapper .form-row {
     display:flex;
     gap:12px;
     margin-bottom:12px;
}
 .comment-input {
     flex:1;
     padding:10px 12px;
     border:1px solid #ddd;
     border-radius:6px;
     font-size:14px;
     font-family:inherit;
}
 .comment-input:focus {
     outline:none;
     border-color:#E75632;
}
 .comment-textarea {
     width:100%;
     padding:10px 12px;
     border:1px solid #ddd;
     border-radius:6px;
     font-size:14px;
     font-family:inherit;
     resize:vertical;
     margin-bottom:12px;
}
 .comment-textarea:focus {
     outline:none;
     border-color:#E75632;
}
 .captcha-row {
     display:flex;
     gap:12px;
     align-items:center;
     margin-bottom:12px;
}
 .captcha-input {
     width:120px;
     flex:none;
}
 .captcha-row img {
     height:40px;
     border-radius:4px;
     cursor:pointer;
     border:1px solid #ddd;
}
 #load-captcha-btn,#submit-btn {
     padding:10px 20px;
     background:#e75632cc;
     color:#fff;
     border:none;
     border-radius:6px;
     font-size:14px;
     cursor:pointer;
}
 #load-captcha-btn:hover,#submit-btn:hover {
     background:#c64e30;
}
 .comment-list {
     margin-top:20px;
}
 .no-comments {
     color:#999;
     text-align:center;
     padding:20px;
}
 .comment-item {
     background:#fff;
     border:1px solid #eee;
     border-radius:8px;
     padding:16px;
     margin-bottom:12px;
}
/* 嵌套回复紧凑样式 */
 .comment-item .comment-item {
     background:transparent;
     border:none;
     border-left:2px solid #e0e0e0;
     border-top:1px solid #f0f0f0;
     border-bottom:1px solid #f0f0f0;
     border-radius:0;
     padding:10px 0 10px 12px;
     margin-bottom:0;
     margin-top:12px;
     margin-left:0 !important;
}
 .comment-item .comment-item.comment-admin {
     background:transparent;
     border-left-color:#f5c6c6;
     border-top-color:#fce4e4;
     border-bottom-color:#fce4e4;
}
 .comment-item .comment-item .comment-avatar {
     width:20px;
     height:20px;
}
 .comment-item .comment-item .comment-nickname {
     font-size:13px;
}
 .comment-item .comment-item .comment-content {
     font-size:13px;
     margin-bottom:4px;
}
 .comment-item .comment-item .comment-time {
     font-size:11px;
}
 .comment-item .comment-item .comment-reply-btn {
     font-size:12px;
}
 .comment-header {
     display:flex;
     justify-content:space-between;
     align-items:center;
     margin-bottom:8px;
}
 .comment-user {
     display:flex;
     align-items:center;
     gap:8px;
}
 .comment-avatar {
     width:28px;
     height:28px;
     flex-shrink:0;
}
 .comment-nickname {
     font-weight:600;
     color:#333;
}
 .comment-nickname.admin-badge {
     background:#e74c3c;
     color:#fff;
     padding:2px 8px;
     border-radius:4px;
     font-size:12px;
}
 .comment-item.comment-admin {
     background:#fff9f9;
     border-color:#f5c6c6;
}
 .comment-time {
     font-size:12px;
     color:#999;
}
 .comment-content {
     font-size:14px;
     line-height:1.6;
     color:#555;
     margin-bottom:8px;
}
 .comment-reply-btn {
     background:none;
     border:none;
     color:#e03a3a;
     font-size:13px;
     cursor:pointer;
     padding:0;
}
 .comment-reply-btn:hover {
     text-decoration:none;
}
 .reply-form-container {
     margin-top:12px;
     padding:12px;
     background:#f8f9fa;
     border-radius:6px;
}
 .reply-form-container .form-row {
     display:flex;
     gap:8px;
     margin-bottom:8px;
}
 .reply-form-container .comment-input {
     padding:8px 10px;
     font-size:13px;
}
 .reply-form-container .comment-textarea {
     padding:8px 10px;
     font-size:13px;
     margin-bottom:8px;
}
 .reply-form-container .captcha-row {
     margin-bottom:8px;
}
 .reply-form-container .captcha-row img {
     height:36px;
}
 .reply-form-container button {
     padding:6px 14px;
     font-size:13px;
     background:#E75632;
     color:#fff;
     border:none;
     border-radius:4px;
     cursor:pointer;
     margin-right:8px;
}
 .reply-form-container button:hover {
     background:#c94b2c;
}
 .reply-form-container button[type="button"] {
     background:#6c757d;
}
 .reply-form-container button[type="button"]:hover {
     background:#5a6268;
}
 @media (max-width:640px) {
     .comment-form-wrapper .form-row {
         flex-direction:column;
         gap:8px;
    }
     .reply-form-container .form-row {
         flex-direction:column;
         gap:6px;
    }
     .captcha-row {
         flex-wrap:wrap;
    }
     .captcha-input {
         width:100%;
    }
}
/* 悬浮按钮 */
 .float-buttons {
     position:fixed;
     right:24px;
     bottom:80px;
     display:flex;
     flex-direction:column;
     gap:10px;
     z-index:1000;
}
 .float-btn {
     width:44px;
     height:44px;
     border-radius:50%;
     background:#fff;
     border:1px solid #e0e0e0;
     box-shadow:0 2px 8px rgba(0,0,0,0.1);
     cursor:pointer;
     display:flex;
     align-items:center;
     justify-content:center;
     transition:all 0.2s ease;
     color:#666;
     position:relative;
}
 .float-btn:hover {
     background:#E75632;
     border-color:#E75632;
     color:#fff;
     transform:translateY(-2px);
     box-shadow:0 4px 12px rgba(45,108,223,0.3);
}
 .float-btn svg {
     width:20px;
     height:20px;
}
/* 评论按钮始终显示 */
 .float-btn-comment {
     opacity:1;
     visibility:visible;
}
/* 评论数量角标 */
 .float-comment-count {
     position:absolute;
     top:-6px;
     right:-6px;
     min-width:18px;
     height:18px;
     padding:0 5px;
     background:#e75632ba;
     color:#fff;
     font-size:11px;
     font-weight:bold;
     border-radius:9px;
     display:flex;
     align-items:center;
     justify-content:center;
     line-height:1;
}
 .float-btn-comment:hover .float-comment-count {
     background:#c0392b;
}
/* 手机查看按钮 */
 .float-btn-phone {
     opacity:1;
     visibility:visible;
}
/* 返回顶部按钮滚动显示 */
 .float-btn-top {
     opacity:0;
     visibility:hidden;
     transition:opacity 0.3s ease,visibility 0.3s ease;
}
 .float-btn-top.visible {
     opacity:1;
     visibility:visible;
}
/* 只有返回顶部的悬浮按钮（其他页面） */
 .float-buttons-simple .float-btn-top {
     opacity:0;
     visibility:hidden;
}
 .float-buttons-simple .float-btn-top.visible {
     opacity:1;
     visibility:visible;
}
/* 二维码遮罩窗口 */
 .qr-modal {
     position:fixed;
     top:0;
     left:0;
     width:100%;
     height:100%;
     background:rgba(0,0,0,0.5);
     display:flex;
     align-items:center;
     justify-content:center;
     z-index:2000;
     opacity:0;
     visibility:hidden;
     transition:opacity 0.3s ease,visibility 0.3s ease;
}
 .qr-modal.active {
     opacity:1;
     visibility:visible;
}
 .qr-modal-content {
     background:#fff;
     border-radius:12px;
     padding:24px;
     text-align:center;
     box-shadow:0 8px 32px rgba(0,0,0,0.2);
     max-width:90%;
     width:320px;
}
 .qr-modal-content h3 {
     margin-bottom:16px;
     color:#333;
     font-size:18px;
}
 .qr-modal-content .qr-code {
     margin:0 auto 16px;
     padding:16px;
     background:#f8f9fa;
     border-radius:8px;
     display:inline-block;
}
 .qr-modal-content .qr-code img {
     max-width:100%;
     height:auto;
     border-radius:4px;
}
 .qr-modal-content p {
     margin-bottom:20px;
     color:#666;
     font-size:14px;
}
 .qr-modal-content .close-btn,.qr-modal-content .save-btn {
     padding:8px 20px;
     background:#E75632;
     color:#fff;
     border:none;
     border-radius:6px;
     cursor:pointer;
     font-size:14px;
     transition:background 0.2s ease;
}
 .qr-modal-content .close-btn:hover,.qr-modal-content .save-btn:hover {
     background:#c0392b;
}
 .qr-modal-content .save-btn {
     background:#28a745;
}
 .qr-modal-content .save-btn:hover {
     background:#218838;
}
 @media (max-width:640px) {
     .float-buttons {
         right:16px;
         bottom:60px;
    }
     .float-btn {
         width:40px;
         height:40px;
    }
     .float-btn svg {
         width:18px;
         height:18px;
    }
     .float-comment-count {
         min-width:16px;
         height:16px;
         font-size:10px;
         top:-4px;
         right:-4px;
    }
     .qr-modal-content {
         padding:20px;
         width:280px;
    }
     .qr-modal-content h3 {
         font-size:16px;
    }
}
/* 版权信息 */
 #zgjljs-footer {
     text-align:center;
     padding:30px 20px;
     margin-top:20px;
     border-top:1px solid #eee;
     background:#fff;
}
 #zgjljs-footer .footer-logo img {
     border:none;
     width:180px;
}
 #zgjljs-footer .footer-copyright {
     margin:6px 0;
     color:#808080;
     font-size:11px;
}
 #zgjljs-footer .footer-links {
     display:flex;
     justify-content:center;
     flex-wrap:wrap;
     gap:5px;
}
 #zgjljs-footer .footer-links a {
     font-size:12px;
     color:#8c8b8b;
}
 #zgjljs-footer .footer-links span {
     font-size:12px;
     color:#8c8b8b;
}
 #zgjljs-footer .footer-beian {
     margin-top:1px;
     display:flex;
     justify-content:center;
     align-items:center;
     flex-wrap:wrap;
     gap:5px;
}
 #zgjljs-footer .footer-beian a {
     font-size:14px;
     color:#8c8b8b;
}
 #zgjljs-footer .footer-beian .beian-police {
     font-size:13px;
}
 #zgjljs-footer .footer-beian img {
     height:13px;
}
/* 上一页/下一页导航 */
 .article-nav {
     display:flex;
     justify-content:space-between;
     gap:16px;
     margin-top:32px;
     padding-top:24px;
     border-top:1px solid #f0f0f0;
}
 .article-nav .nav-item {
     flex:1;
     display:flex;
     flex-direction:column;
     gap:6px;
     padding:16px 20px;
     background:#fff;
     border:1px solid #e0e0e0;
     border-radius:8px;
     transition:all 0.2s ease;
     text-decoration:none;
     color:#333;
}
 .article-nav .nav-item:hover {
     border-color:#1c8eeb;
     transform:translateY(-2px);
     box-shadow:0 4px 12px rgba(231,86,50,0.15);
}
 .article-nav .nav-item.prev {
     border-left:3px solid #1c8eeb;
}
 .article-nav .nav-item.next {
     border-right:3px solid #1c8eeb;
     margin-left:auto;
}
 .article-nav .nav-label {
     font-size:12px;
     color:#999;
     font-weight:600;
}
 .article-nav .nav-title {
     font-size:15px;
     line-height:1.5;
     overflow:hidden;
     display:-webkit-box;
     -webkit-box-orient:vertical;
     -webkit-line-clamp:2;
     line-clamp:2;
     max-height:calc(1.5em * 2);
}
 .article-nav .nav-item:hover .nav-title {
     color:#1c8eeb;
}
 @media (max-width:640px) {
     .article-nav {
         flex-direction:column;
    }
     .article-nav .nav-item {
         width:100%;
         margin:0;
    }
     #zgjljs-footer .footer-beian a {
         font-size:11px;
    }
     #zgjljs-footer .footer-beian .beian-police {
         font-size:11px;
    }
     .article-nav .nav-item.next {
         margin:0;
    }
     .dashboard-stats .stat-value {
         font-size:18px;
         font-weight:700;
         color:#333;
         line-height:1.2;
    }
     .dashboard-stats {
         grid-template-columns:repeat(2,1fr);
    }
     .dashboard-stats .stat-label {
         font-size:9px;
    }
}
 @media (max-width:400px) {
     .dashboard-stats .stat-value {
         font-size:14px;
         font-weight:700;
         color:#333;
         line-height:1.2;
    }
     .dashboard-stats .stat-label {
         font-size:9px;
    }
}
 @media (max-width:360px) {
     .dashboard-stats {
         grid-template-columns:1fr;
    }
}

/* 目录侧边栏样式 */
.toc-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: #ffffffeb;
    border-right: 1px solid #e0e0e0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.toc-sidebar.active {
    transform: translateX(0);
}

/* 固定目录样式 */
.toc-sidebar.toc-sidebar-pinned {
    transform: translateX(0);
    box-shadow: 2px 0 12px rgba(0,0,0,0.15);
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #f8f9fa;
}

.toc-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.toc-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-pin {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toc-pin:hover {
    background: #e0e0e0;
    color: #666;
}

.toc-pin.pinned {
    color: #E75632;
}

.toc-pin i {
    font-size: 18px;
}

.toc-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toc-close:hover {
    background: #e0e0e0;
    color: #333;
}

.toc-content {
    padding: 20px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 4px;
}

.toc-item:has(.toc-link) {
    position: relative;
    padding-left: 0px;
}

.toc-link {
    display: block;
    padding: 6px 8px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
    line-height: 1.4;
}

.toc-link:hover {
    background: #f0f4f8;
    color: #E75632;
    transform: translateX(4px);
}

.toc-link.active {
    background: #E75632;
    color: #fff;
    font-weight: 500;
    box-shadow: 2px 0 0 #E75632 inset;
}

.toc-level-2 {
    margin-left: 0px;
    font-size: 13px;
}

.toc-level-3 {
    margin-left: 0px;
    font-size: 12px;
}

/* 目录项前面的点 */
.toc-item:has(.toc-link)::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ccc;
    font-size: 10px;
    line-height: 1.6;
    top: 8px;
}

.toc-item:has(.toc-link) .toc-item:has(.toc-link)::before {
    content: "▪";
    font-size: 8px;
    top: 7px;
    left: 0;
}

.toc-item:has(.toc-link) .toc-item:has(.toc-link) .toc-item:has(.toc-link)::before {
    content: "▫";
    font-size: 6px;
    top: 6px;
    left: 0;
}

/* 目录滚动条样式 */
.toc-sidebar::-webkit-scrollbar {
    width: 6px;
}

.toc-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.toc-sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.toc-sidebar::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .toc-sidebar {
        width: 240px;
    }
    
    .article-detail {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .toc-sidebar {
        width: 200px;
    }
    
    .toc-header {
        padding: 15px;
    }
    
    .toc-content {
        padding: 15px 15px 15px 20px;
    }
    
    .toc-link {
        padding: 5px 10px;
        font-size: 13px;
    }
    
    .toc-level-2 {
        margin-left: 15px;
    }
    
    .toc-level-3 {
        margin-left: 0px;
    }
}

/* 文章内容区域调整 */
.container {
    position: relative;
}

.article-detail {
    transition: margin-left 0.3s ease;
}

@media (min-width: 769px) {
    .article-detail {
        margin-left: 0;
    }
}

/* ==================== 头部样式保护 ==================== */
/* 防止FastAdmin等全局样式污染导航 */
.nav .links a {
    color: #313131 !important;
    text-decoration: none !important;
    line-height: normal !important;
}
.nav .links a:hover {
    color: #4f6ef7 !important;
}

/* 保护搜索框input */
.search-input {
    border: 1px solid #e8e8e8 !important;
    background: #f5f5f5 !important;
    outline: none !important;
    font-size: 13px !important;
    width: 140px !important;
    height: 34px !important;
    padding: 0 12px !important;
    color: #333 !important;
    line-height: 34px !important;
    border-radius: 18px 0 0 18px !important;
    box-shadow: none !important;
    float: none !important;
    margin: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    box-sizing: border-box !important;
}
.search-input:focus {
    border-color: #0f7abe !important;
    width: 180px !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(79,110,247,0.1) !important;
}
.search-form {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
}
.search-btn {
    height: 34px !important;
    padding: 0 12px !important;
    background: #0f7abe !important;
    border: 1px solid #0f7abe !important;
    border-left: none !important;
    border-radius: 0 18px 18px 0 !important;
    cursor: pointer !important;
    font-size: 14px !important;
    line-height: 34px !important;
    transition: background 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    box-sizing: border-box !important;
}
.search-btn:hover { background: #0f7abe !important; }
@media (max-width: 768px) {
    .search-input { flex: 1 !important; width: auto !important; min-width: 0 !important; }
    .search-input:focus { width: auto !important; }
}
.search-btn:hover { background: #0f7abe !important; }
@media (max-width: 768px) {
    .search-input { flex: 1 !important; width: auto !important; min-width: 0 !important; }
    .search-input:focus { width: auto !important; }
}
