* {
    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: #e63d3b;
    text-decoration: none;
}

a:active {
    text-decoration: none;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 10px 20px;
}

/* 导航 */
.nav {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    margin-bottom: 7px;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav .logo {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.nav .links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav .links a {
    font-size: 15px;
    margin-left: 0;
}

/* 搜索框 */
.search-form {
    display: flex;
    align-items: center;
    gap: 0;
}

.search-input {
    width: 140px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 18px 0 0 18px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #E75632;
    width: 180px;
}

.search-btn {
    padding: 6px 12px;
    background: #E75632;
    border: 1px solid #E75632;
    border-left: none;
    border-radius: 0 18px 18px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.search-btn:hover {
    background: #bf5135;
}

/* 汉堡菜单按钮 */
.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);
    }
}

@media (max-width: 400px) {
    .dashboard-stats {
        grid-template-columns: 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: #f14f4f;
    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(231, 86, 50, 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(231, 86, 50, 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 .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(231, 86, 50, 0.08);
    border: 1px solid rgba(231, 86, 50, 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;
    }
}

/* 分页 */
.pagination {
    text-align: center;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 14px;
}

.pagination a {
    background: #fff;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #E75632;
    color: #fff;
    text-decoration: none;
}

.pagination .current {
    background: #E75632;
    color: #fff;
    border: 1px solid #E75632;
}

.pagination .page-ellipsis {
    padding: 8px 12px;
    color: #999;
}

.pagination .page-nav {
    font-weight: 500;
}

.pagination .page-nav.disabled {
    color: #999;
    background: #f5f5f5;
    border: 1px solid #ddd;
    cursor: not-allowed;
}

.pagination .page-input-container {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
}

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

.pagination .page-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.pagination .page-input:focus {
    outline: none;
    border-color: #E75632;
}

.pagination .page-go {
    padding: 6px 12px;
    background: #E75632;
    color: #fff;
    border: 1px solid #E75632;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination .page-go:hover {
    background: #bc4528;
}

@media (max-width: 640px) {
    .pagination {
        gap: 6px;
    }
    
    .pagination .page-input-container {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    .pagination a,
    .pagination span {
        padding: 5px 10px;
        font-size: 13px;
    }
    
    .pagination .page-input {
        width: 50px;
        padding: 5px 6px;
    }
    
    .pagination .page-go {
        padding: 5px 10px;
        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: #f5f5f5; padding: 2px 6px; border-radius: 3px; font-size: 0.9em; }
.article-detail .content pre { background: #2d2d2d; color: #f8f8f2; 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 #ddd; 
    padding: 8px 12px; 
    text-align: left; 
    white-space: nowrap; 
    word-wrap: normal; 
}
.article-detail .content th { 
    background: #f5f5f5; 
    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 {
    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 {
    background: #c0392b;
}

@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: 40px;
    border-top: 1px solid #eee;
    background: #fff;
}

#zgjljs-footer .footer-logo img {
    border: none;
    width: 120px;
}

#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: #E75632;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 86, 50, 0.15);
}

.article-nav .nav-item.prev {
    border-left: 3px solid #E75632;
}

.article-nav .nav-item.next {
    border-right: 3px solid #E75632;
    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;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-nav .nav-item:hover .nav-title {
    color: #E75632;
}

@media (max-width: 640px) {
    .article-nav {
        flex-direction: column;
    }
    
    .article-nav .nav-item {
        width: 100%;
        margin: 0;
    }
    
    .article-nav .nav-item.next {
        margin: 0;
    }
}
