:root {
    --primary-dark: #1a1a2e;
    --primary-light: #16213e;
    --accent-gold: #c8a971;
    --accent-red: #9d3b3b;
    --text-light: #f1f1f1;
    --text-gray: #b1b1b1;
    --card-bg: #222235;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(to bottom, var(--primary-dark), var(--primary-light));
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
header {
    background-color: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.user-welcome {
    color: var(--accent-gold);
    margin-right: 15px;
    font-weight: 500;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-gold);
}

.logo-icon {
    margin-right: 10px;
    font-size: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.auth-buttons {
    display: flex;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
}

.btn-login {
    color: var(--text-light);
    margin-right: 15px;
}

.btn-register {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
}

.btn-register:hover {
    background-color: #d6ba88;
    transform: translateY(-2px);
}

/* 文章头部 */
.article-header {
    padding: 60px 0 30px;
    text-align: center;
}

.article-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--accent-gold);
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    margin: 0 15px;
}

.meta-item i {
    margin-right: 8px;
    color: var(--accent-gold);
}

/* 文章内容 */
.article-content {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
}

.article-content p {
    margin-bottom: 25px;
    text-align: justify;
}

.dialogue {
    background-color: rgba(200, 169, 113, 0.1);
    border-left: 4px solid var(--accent-gold);
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.dialogue p {
    margin-bottom: 15px;
}

.dialogue p:last-child {
    margin-bottom: 0;
}

.english-translation {
    color: var(--text-gray);
    font-style: italic;
    margin-top: 10px;
    padding-left: 20px;
    border-left: 2px solid rgba(200, 169, 113, 0.5);
}

.article-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-red), var(--primary-light));
    border-radius: 10px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
}

/* 文章操作栏 */
.article-actions {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s;
}

.action-btn:hover {
    background-color: rgba(200, 169, 113, 0.2);
    transform: translateY(-2px);
}

.action-btn i {
    margin-right: 8px;
}

/* 作者信息 */
.author-info {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent-gold), #a58c5c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-dark);
    margin-right: 20px;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.author-details h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--accent-gold);
}

.author-details p {
    color: var(--text-gray);
    margin-bottom: 10px;
}

.author-stats {
    display: flex;
    gap: 15px;
}

.stat {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.stat span {
    color: var(--accent-gold);
    font-weight: bold;
}

/* 相关文章 */
.related-articles {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 160px;
    background: linear-gradient(135deg, var(--accent-red), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--accent-gold);
}

.card-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-gray);
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px 0;
    }

    .nav-links {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li {
        margin: 0 10px 10px;
    }

    .auth-buttons {
        margin-top: 20px;
    }

    .article-title {
        font-size: 2.2rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .article-content {
        padding: 25px;
    }

    .author-info {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .author-stats {
        justify-content: center;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* 导航栏用户头像样式 */
.user-profile-nav {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.user-profile-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 20px;
}

/* 添加点击反馈 */
.user-profile-link:active {
    transform: scale(0.95);
}

.user-profile-link:hover {
    background-color: rgba(200, 169, 113, 0.1);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.user-profile-link:hover .user-name-nav {
    color: var(--text-light);
}

.user-profile-link:hover .user-avatar-nav {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(200, 169, 113, 0.5);
}

.user-avatar-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 8px;
    border: 2px solid var(--accent-gold);
    transition: all 0.3s ease;
}

.nav-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name-nav {
    font-weight: 500;
    color: var(--accent-gold);
    transition: color 0.3s;
}

/* 添加到article.css的底部 */

/* 相关文章链接样式 */
.article-link {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s;
}

.article-link:hover {
    color: var(--text-light);
    text-decoration: underline;
}

/* 无相关文章样式 */
.no-articles {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-gray);
}

.no-articles p {
    font-size: 1.1rem;
}

/* 文章内容中的段落样式 */
.article-content p {
    margin-bottom: 25px;
    text-align: justify;
    line-height: 1.8;
}

/* 确保英文翻译样式适用于动态内容 */
.english-translation {
    color: var(--text-gray);
    font-style: italic;
    margin-top: 10px;
    padding-left: 20px;
    border-left: 2px solid rgba(200, 169, 113, 0.5);
}

/* 点赞按钮激活状态 */
.like-btn.active {
    color: #e74c3c !important;
}

.like-btn.active .fa-heart {
    color: #e74c3c !important;
}

/* 点赞按钮激活状态 */
.like-btn.liked {
    color: #e74c3c !important;
}

.like-btn.liked .fa-heart {
    color: #e74c3c !important;
}

.like-btn.liked:hover {
    background-color: rgba(231, 76, 60, 0.1) !important;
}

/* 点赞图标动画 */
.like-btn .fa-heart {
    transition: all 0.3s ease;
}

.like-btn.liked .fa-heart {
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 卡片元数据样式调整 */
.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-gray);
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 5px;
}

.card-meta span {
    display: flex;
    align-items: center;
}

.card-meta i {
    margin-right: 3px;
    font-size: 0.7rem;
}

/* 投稿通过表样式 */
.approved-articles-table {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    background-color: rgba(200, 169, 113, 0.1);
    color: var(--accent-gold);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* 文档图标样式 */
.doc-icon {
    color: var(--accent-gold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(200, 169, 113, 0.1);
    transition: all 0.3s;
}

.doc-icon:hover {
    background-color: rgba(200, 169, 113, 0.2);
    transform: scale(1.1);
}

.no-doc {
    color: var(--text-gray);
    font-style: italic;
}

/* 编辑按钮样式 */
.btn-edit {
    padding: 5px 10px;
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-edit:hover {
    background-color: #d6ba88;
    transform: translateY(-2px);
}

/* 可点击的标题 */
.edit-title {
    color: var(--accent-gold);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s;
}

.edit-title:hover {
    color: var(--text-light);
    text-decoration: underline;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    color: var(--text-light);
    position: relative;
}

.close-modal {
    color: var(--text-gray);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
}

.close-modal:hover {
    color: var(--accent-gold);
}

/* 编辑器容器 */
.editor-container {
    margin: 20px 0;
    min-height: 300px;
}

/* Quill编辑器自定义样式 */
.ql-toolbar {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px 8px 0 0;
}

.ql-container {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px;
    min-height: 200px;
}

.ql-editor {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

.ql-editor.ql-blank::before {
    color: var(--text-gray);
    font-style: italic;
}

/* 模态框操作按钮 */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.btn-save {
    padding: 10px 20px;
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-save:hover {
    background-color: #d6ba88;
    transform: translateY(-2px);
}

.btn-cancel {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.doc-icon {
    color: var(--accent-gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(200, 169, 113, 0.1);
    transition: all 0.3s;
    position: relative;
    margin: 0 auto;
}

.doc-icon:hover {
    background-color: rgba(200, 169, 113, 0.2);
    transform: scale(1.1);
}

.doc-tooltip {
    visibility: hidden;
    width: 120px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
}

.doc-icon:hover .doc-tooltip {
    visibility: visible;
    opacity: 1;
}

.no-doc {
    color: var(--text-gray);
    font-style: italic;
    text-align: center;
    display: block;
}

/* 文章简介和正文样式 */
.article-intro {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-intro h3 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-gold);
    display: inline-block;
}

.intro-content {
    background-color: rgba(200, 169, 113, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-gold);
}

.article-main-content {
    margin-top: 30px;
}

.article-main-content h3 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-gold);
    display: inline-block;
}

.main-content {
    line-height: 1.8;
}

.main-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.main-content .english-translation {
    color: var(--text-gray);
    font-style: italic;
    margin-top: 10px;
    padding-left: 20px;
    border-left: 2px solid rgba(200, 169, 113, 0.5);
}

.main-content .dialogue {
    background-color: rgba(200, 169, 113, 0.1);
    border-left: 4px solid var(--accent-gold);
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.main-content .dialogue p {
    margin-bottom: 15px;
}

.main-content .dialogue p:last-child {
    margin-bottom: 0;
}

/* 富文本编辑器内容样式 */
.main-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.main-content blockquote {
    border-left: 4px solid var(--accent-gold);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-gray);
}

.main-content ul, .main-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.main-content li {
    margin-bottom: 8px;
}

.main-content code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.main-content pre {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
}

.main-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.main-content table, .main-content th, .main-content td {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-content th, .main-content td {
    padding: 12px;
    text-align: left;
}

.main-content th {
    background-color: rgba(200, 169, 113, 0.1);
    color: var(--accent-gold);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-intro h3, .article-main-content h3 {
        font-size: 1.3rem;
    }

    .intro-content {
        padding: 15px;
    }

    .main-content .dialogue {
        padding: 15px 20px;
        margin: 20px 0;
    }
}

/* 置顶标识 */
.top-indicator {
    display: inline-flex;
    align-items: center;
    background-color: var(--accent-red);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.top-indicator i {
    margin-right: 5px;
}

/* 置顶徽章 */
.top-badge {
    background-color: var(--accent-red);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.no-top {
    color: var(--text-gray);
    font-size: 0.8rem;
}

/* 置顶顺序输入框 */
.top-order-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--text-light);
    padding: 3px 5px;
    text-align: center;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 120px;
}

.btn-toggle-top {
    padding: 5px 10px;
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.btn-toggle-top:hover {
    background-color: #d6ba88;
    transform: translateY(-1px);
}

/* 无文章内容提示 */
.no-article-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background-color: var(--card-bg);
    border-radius: 15px;
    margin-bottom: 40px;
}

.no-article-message {
    text-align: center;
    color: var(--text-gray);
}

.no-article-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--accent-gold);
}

.no-article-message h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

/* 投稿通过表样式调整 */
.admin-table th, .admin-table td {
    padding: 10px;
    font-size: 0.85rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .admin-table {
        min-width: 800px;
    }

    .table-container {
        overflow-x: auto;
    }
}

/* 投稿通过表区域 */
.approved-articles-section {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 筛选栏样式 */
.filters {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-item {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
}

.filter-item label {
    margin-right: 10px;
    color: var(--text-gray);
    font-weight: 500;
    min-width: 80px;
}

.filter-select {
    padding: 10px 15px;
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    flex: 1;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-select:hover {
    border-color: var(--accent-gold);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(200, 169, 113, 0.2);
}

.filter-input {
    padding: 10px 15px;
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    flex: 1;
    transition: all 0.3s;
}

.filter-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(200, 169, 113, 0.2);
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.btn-filter {
    padding: 10px 20px;
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-filter:hover {
    background-color: #d6ba88;
    transform: translateY(-2px);
}

.btn-reset {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-reset:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.pagination-btn.active {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
}

.pagination-btn:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 无数据提示 */
.no-data {
    text-align: center;
    padding: 40px;
    color: var(--text-gray);
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-item {
        min-width: auto;
    }

    .filter-actions {
        margin-left: 0;
        justify-content: center;
    }

    .pagination {
        flex-direction: column;
        align-items: center;
    }

    .pagination-btn {
        margin-bottom: 5px;
    }

    .admin-table {
        min-width: 800px;
    }

    .table-container {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .approved-articles-section {
        padding: 15px;
    }

    .filters {
        padding: 15px;
    }

    .filter-item {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-item label {
        margin-bottom: 5px;
        min-width: auto;
    }
}

.culture-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fallback-icon {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

/* 当有图片时隐藏备用图标 */
.card-image:has(.culture-image[src*="culture"]) .fallback-icon {
    display: none;
}

/* 鼠标悬停效果 */
.article-card:hover .culture-image {
    transform: scale(1.05);
}

/* 图片加载失败时的备用样式 */
.culture-image:before {
    content: "📚";
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-red), var(--primary-light));
    position: absolute;
    top: 0;
    left: 0;
}

.culture-image[src]:not([src=""])::before {
    display: none;
}

/* 响应式设计调整 */
@media (max-width: 768px) {
    .card-image {
        height: 120px;
    }

    .culture-image {
        height: 120px;
    }
}

/* 图片加载动画 */
.culture-image {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 为不同类型的文章添加不同的图片滤镜 */
.article-card[data-article-type="culture"] .culture-image {
    filter: sepia(0.3) brightness(1.1);
}

.article-card[data-article-type="review"] .culture-image {
    filter: saturate(1.2) contrast(1.1);
}

.article-card[data-article-type="recipe"] .culture-image {
    filter: hue-rotate(-10deg) brightness(1.05);
}

/* 收藏按钮样式 */
.collect-btn.collected {
    color: var(--accent-gold) !important;
}

.collect-btn.collected .fa-bookmark {
    color: var(--accent-gold) !important;
}

.collect-btn.collected:hover {
    background-color: rgba(200, 169, 113, 0.1) !important;
}

/* 收藏图标动画 */
.collect-btn .fa-bookmark {
    transition: all 0.3s ease;
}

.collect-btn.collected .fa-bookmark {
    animation: bookmarkBounce 0.6s ease;
}

@keyframes bookmarkBounce {
    0% { transform: scale(1); }
    25% { transform: scale(1.2) rotate(5deg); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1) rotate(-5deg); }
    100% { transform: scale(1); }
}

/* 收藏文章网格布局 */
.collected-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.collected-card {
    position: relative;
    transition: all 0.3s ease;
}

.collected-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.collection-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.btn-remove-collection {
    padding: 8px 15px;
    background-color: rgba(157, 59, 59, 0.3);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-remove-collection:hover {
    background-color: rgba(157, 59, 59, 0.5);
    transform: translateY(-2px);
}

/* 无收藏提示样式 */
.no-collections {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray);
}

.no-collections .hint {
    font-size: 0.9rem;
    margin-top: 10px;
    color: var(--text-gray);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .collected-articles-grid {
        grid-template-columns: 1fr;
    }

    .collected-card {
        margin-bottom: 20px;
    }
}

/* 上架状态徽章 */
.shelf-badge {
    background-color: #4caf50;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.no-shelf {
    color: var(--text-gray);
    font-size: 0.8rem;
}

/* 上架按钮样式 */
.btn-toggle-shelf {
    padding: 5px 10px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
    margin-bottom: 5px;
    width: 100%;
}

.btn-toggle-shelf:hover {
    background-color: #45a049;
    transform: translateY(-1px);
}

/* 下架按钮样式（当文章已上架时） */
.btn-toggle-shelf[data-shelved="true"] {
    background-color: #f44336 !important;
    color: white !important;
    border: 1px solid #f44336 !important;
}

.btn-toggle-shelf[data-shelved="true"]:hover {
    background-color: #da190b !important;
    border-color: #da190b !important;
    transform: translateY(-1px);
}

/* 上架按钮样式（当文章未上架时） */
.btn-toggle-shelf[data-shelved="false"] {
    background-color: #4caf50 !important;
    color: white !important;
    border: 1px solid #4caf50 !important;
}

.btn-toggle-shelf[data-shelved="false"]:hover {
    background-color: #45a049 !important;
    border-color: #45a049 !important;
    transform: translateY(-1px);
}

/* 分享模态框样式 */
.share-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.share-modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.share-modal-title {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin: 0;
}

.close-share-modal {
    color: var(--text-gray);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.close-share-modal:hover {
    color: var(--accent-gold);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.share-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.share-option i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.share-option.wechat i {
    color: #07c160;
}

.share-option.weibo i {
    color: #e6162d;
}

.share-option.qq i {
    color: #12b7f5;
}

.share-option.qzone i {
    color: #febe00;
}

.share-option.douban i {
    color: #2e963d;
}

.share-option.link i {
    color: var(--accent-gold);
}

.share-option span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.share-link-container {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.share-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-link-input {
    flex: 1;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.share-link-input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.copy-link-btn {
    padding: 10px 20px;
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.copy-link-btn:hover {
    background-color: #d6ba88;
    transform: translateY(-1px);
}

.copy-link-btn.copied {
    background-color: #4caf50;
    color: white;
}

.share-modal-footer {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    font-size: 0.8rem;
}

/* 微信二维码容器 */
.wechat-qrcode-container {
    background: linear-gradient(135deg, #07c160, #05a850);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.qrcode-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.qrcode-placeholder {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 0 auto;
    max-width: 240px;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-loading {
    text-align: center;
    color: var(--text-gray);
    padding: 20px;
}

.qrcode-loading i {
    font-size: 3rem;
    color: #07c160;
    margin-bottom: 10px;
}

.qrcode-loading p {
    margin: 0;
    font-size: 0.9rem;
}

.qrcode-loading .fa-exclamation-triangle {
    color: #ff9800;
}

.qrcode-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qrcode-fallback {
    text-align: center;
    color: var(--text-gray);
}

.qrcode-fallback i {
    font-size: 2rem;
    color: #ff9800;
    margin-bottom: 10px;
}

.qrcode-fallback p {
    margin: 10px 0;
    font-size: 0.9rem;
}

.copy-for-wechat {
    padding: 8px 16px;
    background-color: #07c160;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: all 0.3s;
}

.copy-for-wechat:hover {
    background-color: #05a850;
    transform: translateY(-1px);
}

.qrcode-tip {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    margin-top: 10px;
}

/* 小红书按钮样式 */
.share-option.xiaohongshu i {
    color: #ff2442;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

#wechat-qrcode-canvas {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 在 article.css, movie.css, picture.css 中都添加以下样式 */

/* 评论区样式 */
.comments-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-header {
    margin-bottom: 25px;
}

.comments-title {
    color: var(--accent-gold);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-count {
    color: var(--text-gray);
    font-size: 1rem;
}

/* 评论表单 */
.comment-form-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-form {
    flex: 1;
}

.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
    resize: vertical;
    transition: all 0.3s;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(200, 169, 113, 0.2);
}

.comment-actions {
    margin-top: 10px;
    text-align: right;
}

.btn-comment-submit {
    padding: 8px 20px;
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-comment-submit:hover {
    background-color: #d6ba88;
    transform: translateY(-1px);
}

.btn-comment-submit:disabled {
    background-color: var(--text-gray);
    cursor: not-allowed;
    transform: none;
}

/* 登录提示 */
.comment-login-prompt {
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 30px;
}

.comment-login-prompt a {
    color: var(--accent-gold);
    text-decoration: none;
}

.comment-login-prompt a:hover {
    text-decoration: underline;
}

/* 评论列表 */
.comments-list {
    margin-bottom: 20px;
}

.comment-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-main {
    display: flex;
    gap: 15px;
}

.comment-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-username {
    font-weight: 500;
    color: var(--accent-gold);
}

.comment-time {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.comment-text {
    line-height: 1.6;
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-action-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.comment-action-btn:hover {
    color: var(--accent-gold);
}

/* 回复列表 */
.replies-list {
    margin-left: 55px;
    margin-top: 15px;
    padding-left: 15px;
    border-left: 2px solid rgba(200, 169, 113, 0.3);
}

.reply-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.reply-item:last-child {
    border-bottom: none;
}

/* 加载更多 */
.comments-load-more {
    text-align: center;
    margin-top: 20px;
}

.btn-load-more {
    padding: 10px 25px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-load-more:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* 回复模态框 */
.reply-form {
    margin-top: 15px;
}

.reply-form textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.reply-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(200, 169, 113, 0.2);
}

.reply-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-reply-submit {
    padding: 10px 20px;
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-reply-submit:hover {
    background-color: #d6ba88;
    transform: translateY(-1px);
}

.btn-reply-submit:disabled {
    background-color: var(--text-gray);
    cursor: not-allowed;
    transform: none;
}

.btn-reply-cancel {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-reply-cancel:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 回复计数 */
.reply-count {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    margin-left: 5px;
}

/* 消息动画 */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* 空状态 */
.comments-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray);
}

.comments-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    color: var(--accent-gold);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .comment-form-container {
        flex-direction: column;
    }

    .comment-avatar {
        align-self: flex-start;
    }

    .replies-list {
        margin-left: 30px;
    }

    .comment-main {
        flex-direction: column;
    }

    .comment-user-avatar {
        align-self: flex-start;
    }
}