: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);
}

/* 图集头部 */
.gallery-header {
    padding: 60px 0 30px;
}

.gallery-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-gold);
    line-height: 1.3;
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.meta-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.meta-item i {
    margin-right: 8px;
    color: var(--accent-gold);
}

/* 图集展示区 */
.gallery-container {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.gallery-viewer {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.gallery-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50, #4a6572);
    color: var(--text-light);
    font-size: 1.2rem;
    position: relative;
}

.slide-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-light);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.slide-content {
    text-align: center;
    max-width: 80%;
}

.slide-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-gold);
}

.slide-content p {
    line-height: 1.6;
}

/* 图集控制栏 */
.gallery-controls {
    display: flex;
    justify-content: center; /* 改为居中显示分页信息 */
    align-items: center;
    margin-bottom: 20px;
}

.control-btn {
    display: none; /* 隐藏控制按钮 */
}

.control-btn:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
}

.gallery-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-dots {
    display: flex;
    margin: 0 15px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: var(--accent-gold);
    transform: scale(1.2);
}

.auto-play-toggle {
    display: none; /* 隐藏自动播放按钮 */
}

.auto-play-toggle i {
    margin-right: 8px;
    color: var(--accent-gold);
}

/* 缩略图导航 */
.gallery-thumbnails {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    gap: 10px;
    scrollbar-width: thin;
    -ms-overflow-style: none;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    background: linear-gradient(135deg, #2c3e50, #4a6572);
    flex-shrink: 0;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all 0.3s;
}

.thumbnail.active {
    border: 3px solid var(--accent-gold);
    transform: scale(1.1);
}

.thumbnail-number {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-light);
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 3px;
}

/* 图集内容 */
.gallery-content {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-description {
    margin-bottom: 25px;
    line-height: 1.8;
}

/* 图集操作栏 */
.gallery-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-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-galleries {
    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);
}

.galleries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-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;
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 160px;
    background: linear-gradient(135deg, #2c3e50, #4a6572);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    position: relative;
}

.card-image i {
    font-size: 2rem;
}

.card-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-light);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.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;
    }

    .gallery-title {
        font-size: 2rem;
    }

    .gallery-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .meta-left {
        margin-bottom: 10px;
    }

    .gallery-viewer {
        height: 350px;
    }

    .gallery-content {
        padding: 20px;
    }

    .author-info {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .author-stats {
        justify-content: center;
    }

    .galleries-grid {
        grid-template-columns: 1fr;
    }
}

/* 触摸设备优化 */
@media (hover: none) {
    .thumbnail {
        width: 70px;
        height: 50px;
    }
}

/* 导航栏用户头像样式 */
.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;
}

/* 图片相关样式 */
.slide-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    text-align: center;
}

.image-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.image-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-images-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

.no-images-message i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    color: var(--accent-gold);
}

.no-images-message h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* 消息动画 */
@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; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .image-info {
        padding: 15px;
    }

    .image-info h3 {
        font-size: 1rem;
    }

    .image-info p {
        font-size: 0.8rem;
    }
}

/* 收藏按钮样式 */
.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;
}

/* 点赞按钮激活状态 */
.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;
}

/* 投稿通过表样式 */
.approved-images-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);
}

.approved-images-table {
    margin-top: 20px;
}

.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);
}

/* 筛选栏样式 */
.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);
}

/* 文档图标样式 */
.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;
}

/* 置顶标识 */
.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;
}

.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);
}

.btn-edit {
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.btn-edit:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* 分页样式 */
.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;
}

/* 可点击的标题 */
.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;
}

/* 响应式设计 */
@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;
    }

    .action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .admin-table {
        min-width: 800px;
    }

    .pagination {
        flex-direction: column;
        align-items: center;
    }

    .pagination-btn {
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .approved-images-section {
        padding: 15px;
    }

    .filters {
        padding: 15px;
    }

    .filter-item {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-item label {
        margin-bottom: 5px;
        min-width: auto;
    }
}

/* 自动播放按钮激活状态 */
.auto-play-toggle.playing {
    color: var(--accent-gold);
}

.auto-play-toggle.playing i {
    color: var(--accent-gold);
}

/* 自动播放按钮悬停效果 */
.auto-play-toggle:hover {
    color: var(--accent-gold);
    cursor: pointer;
}

.auto-play-toggle:hover i {
    color: var(--accent-gold);
}

/* 响应式设计调整 */
@media (max-width: 768px) {
    .gallery-controls {
        flex-direction: column;
        gap: 15px;
    }

    .gallery-pagination {
        order: -1; /* 分页信息放在最前面 */
    }
}

/* 上架状态徽章 */
.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;
}

.btn-toggle-shelf[data-shelved="true"]:hover {
    background-color: #da190b;
}

/* 操作按钮组样式调整 */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 120px;
}

/* 分享模态框样式 */
.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;
}

/* 空状态 */
.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;
    }
}

/* 模态框样式 */
.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);
}