/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Alert 样式定义 */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.alert-danger {
    background-color: #fdf2f2;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
}

.alert-success {
    background-color: #f0f9f0;
    border-left: 4px solid #2ecc71;
    color: #27ae60;
}

.alert-warning {
    background-color: #fff9e6;
    border-left: 4px solid #f39c12;
    color: #e67e22;
}

.alert-info {
    background-color: #eaf5fd;
    border-left: 4px solid #3498db;
    color: #2980b9;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #34495e; /* 主文字色 */
    line-height: 1.6;
    background-color: #f8f5f0;
}

a {
    color: #6b5741;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #d4a066;
}

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

.btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #6b5741;
    border-radius: 20px;
    background-color: transparent;
    color: #6b5741;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #6b5741;
    color: #fff;
}

.btn-primary {
    background-color: #d4a066;
    border-color: #d4a066;
    color: #fff;
}

.btn-primary:hover {
    background-color: #c08c51;
    border-color: #c08c51;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

.logo p {
    font-size: 16px;
    color: #a08c6b;
    margin: 2px 0 0 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    font-size: 18px;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav a.active, .main-nav a:hover {
    color: #d4a066;
}

.main-nav a.active::after, .main-nav a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #d4a066;
    border-radius: 1px;
}

.main-nav .highlight {
    background-color: #d4a066;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(212, 160, 102, 0.3);
    transition: all 0.3s ease;
}

.main-nav .highlight:hover {
    background-color: #c08c51;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 160, 102, 0.4);
}

.main-nav .highlight::after {
    display: none;
}

.user-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.1);
}

.user-avatar {
    position: relative;
}

.avatar-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 150px;
}

.user-avatar:hover .avatar-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.avatar-dropdown a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.avatar-dropdown a:hover {
    background-color: #f5f0e6;
}

.avatar-dropdown .logout {
    border-top: 1px solid #eee;
    color: #e74c3c;
}

/* 主要内容样式 */
main {
    padding: 20px 0;
    min-height: calc(100vh - 200px);
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-feature {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.article-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.article-feature.alternate {
    flex-direction: row-reverse;
}

.article-image {
    overflow: hidden;
    position: relative;
    width: 50%;
    height: 350px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-feature:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 40px;
    width: 50%;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.author-name {
    font-size: 14px;
    color: #6b5741;
}

.publish-date {
    font-size: 12px;
    color: #a08c6b;
}

.article-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-excerpt {
    font-size: 15px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.article-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: #f5f0e6;
    color: #8c6e46;
    font-size: 12px;
    border-radius: 15px;
}

.article-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.like-btn, .comment-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #a08c6b;
    cursor: pointer;
    transition: color 0.3s ease;
}

.like-btn:hover, .comment-btn:hover {
    color: #d4a066;
}

.read-more {
    margin-left: auto;
    padding: 5px 15px;
    background-color: #6b5741;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: #d4a066;
    color: #fff;
    transform: translateY(-1px);
}

.load-more {
    text-align: center;
}

.load-more .btn {
    padding: 10px 30px;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 导航栏响应式 */
    .navbar .container {
        flex-direction: column;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        gap: 15px;
    }
    
    .user-actions {
        margin-top: 15px;
    }
    
    /* 作品展示响应式 */
    .article-feature {
        flex-direction: column !important;
    }
    
    .article-image {
        width: 100% !important;
        height: 200px;
    }
    
    .article-content {
        width: 100% !important;
        padding: 20px;
    }
    
    .articles-list {
        gap: 30px;
    }
    
    /* 页脚响应式 */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        margin: 20px 0;
    }
}

/* 页脚样式 */
footer {
    background-color: #6b5741;
    color: #e6d9c5;
    padding: 20px 0 10px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.footer-logo-image {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-logo h2 {
    font-size: 24px;
    color: #fff;
    margin: 0;
}

.footer-logo p {
    font-size: 14px;
    color: #d4c8b5;
}

.footer-links {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.footer-links a {
    color: #e6d9c5;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #d4a066;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #d4a066;
    transform: translateY(-3px);
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #c8b8a0;
}

/* 发现页样式 */
.tags-container {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 10px 0;
}

.tags-wrapper .tag {
    padding: 6px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tags-wrapper .tag:hover, .tags-wrapper .tag.active {
    background-color: #d4a066;
    color: #fff;
}

/* 筛选侧边栏和作品列表布局 */
.discover-layout {
    display: flex;
    gap: 30px;
}

.filter-sidebar {
    flex-shrink: 0;
    width: 120px;
    background-color: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-sidebar h3 {
    margin-bottom: 20px;
    color: #6b5741;
}

.sort-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sort-option {
    padding: 10px;
    background-color: #f8f5f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.sort-option:hover, .sort-option.active {
    background-color: #d4a066;
    color: #fff;
}

.discover-articles {
    flex: 1;
}

/* 作品网格布局 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* 作品卡片样式优化 */
.article-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.article-card .article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.article-card .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-card .article-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.article-card .article-title {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card .article-excerpt {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

/* 页面标题样式 */
.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-title-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.page-title-container h2 {
    font-size: 32px;
    color: #6b5741;
    margin: 0;
}

/* 记录页样式 */
.editor-container {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

/* 全局标签和草稿箱容器 */
.tags-drafts-container.global {
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    margin-bottom: 20px;
}

/* 标签和草稿箱容器 */
.tags-drafts-container {
    display: flex;
    gap: 20px;
}

/* 作品标签区域 */
.article-tags-container {
    flex: 7;
    overflow-x: auto;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 草稿箱 */
.draft-box {
    flex: 3;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* 草稿列表 */
.draft-list {
    padding: 0 15px 15px 15px;
    min-height: 140px; /* 确保足够容纳两篇草稿而不需要滚动 */
}

/* 草稿项 */
.draft-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.draft-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #d4a066;
    color: #fff;
    border-radius: 10px 10px 0 0;
    font-weight: bold;
    gap: 8px;
}

.draft-header i {
    font-size: 18px;
}

.draft-count {
    margin-left: auto;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 14px;
    min-width: 24px;
    text-align: center;
}

.draft-list {
    flex: 1;
    padding: 10px;
    min-height: 140px; /* 确保足够容纳两篇草稿而不需要滚动 */
    max-height: none; /* 移除最大高度限制 */
}

/* 无草稿提示样式 */
.no-drafts {
    text-align: center;
    color: #a08c6b;
    font-size: 14px;
    padding: 20px 0;
}

.draft-item {
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.draft-item:hover {
    background-color: #f8f5f0;
    border-color: #d4a066;
    transform: translateX(5px);
}

.draft-item .draft-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.draft-item .draft-meta {
    font-size: 12px;
    color: #a08c6b;
    display: flex;
    justify-content: space-between;
}

.draft-item .delete-draft {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.draft-item:hover .delete-draft {
    opacity: 1;
}

.draft-item .delete-draft:hover {
    background-color: #e74c3c;
    color: #fff;
}

.no-drafts {
    text-align: center;
    padding: 40px 20px;
    color: #a08c6b;
}

.no-drafts p {
    font-size: 14px;
}

.editor-content-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.editor-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 作品标签容器样式 */
.article-tags-container {
    background-color: #f8f5f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.article-tags-container .tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tags-container .tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: #fff;
    color: #8c6e46;
    font-size: 13px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0d4c0;
}

.article-tags-container .tag:hover {
    background-color: #d4a066;
    color: #fff;
    border-color: #d4a066;
}

.article-tags-container .tag.active {
    background-color: #d4a066;
    color: #fff;
    border-color: #d4a066;
}

.editor-tools {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* 富文本编辑器工具栏样式 */
.rich-text-toolbar {
    display: flex;
    gap: 5px;
    align-items: center;
    background-color: #faf7f2;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0d4c0;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.toolbar-btn:hover {
    background-color: #d4a066;
    color: #fff;
    border-color: #d4a066;
}

.toolbar-btn i {
    margin-right: 0;
}

.toolbar-divider {
    width: 1px;
    height: 20px;
    background-color: #ddd;
    margin: 0 5px;
}

.inspiration-btn, .soundscape-btn, .focus-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #e0d4c0;
    border-radius: 20px;
    background-color: #f8f5f0;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b5741; /* 确保按钮文本可见 */
}

.inspiration-btn:hover, .soundscape-btn:hover, .focus-btn:hover {
    background-color: #e0d4c0;
    transform: translateY(-1px);
}

.editor-layout {
    display: flex;
    flex: 1;
    width: 100%;
    height: 100%;
}

.editor-input-wrapper.expanded {
    width: 100%;
    height: 100%;
}

.editor-input {
    width: 100%;
    min-height: 600px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    height: 100%;
}

.editor-input {
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    resize: none;
    outline: none;
}

.editor-input:focus {
    border-color: #d4a066;
}

.editor-preview {
    background-color: #faf7f2;
}

.editor-sidebar {
    width: 250px;
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    min-height: 500px;
}

.editor-sidebar h3 {
    margin-bottom: 15px;
    color: #6b5741;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.sidebar-section input[type="file"],
.sidebar-section select {
    width: 100%;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 14px;
}

.editor-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* 我的小筑样式 */
.user-profile {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 10;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.profile-header {
    margin-bottom: 20px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 4px solid #f8f5f0;
}

.profile-name {
    font-size: 24px;
    color: #6b5741;
    margin-bottom: 10px;
}

.profile-bio {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #d4a066;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #8c6e46;
}

.profile-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.profile-tab {
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.profile-tab:hover, .profile-tab.active {
    background-color: #f8f5f0;
    color: #d4a066;
}

/* 登录/注册页面样式 */
.auth-container {
    max-width: 500px;
    margin: 50px auto;
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 28px;
    color: #6b5741;
    margin-bottom: 10px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.form-group input {
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #d4a066;
}

.form-actions {
    text-align: center;
    margin-top: 10px;
}

.form-actions .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

/* 作品详情页样式 */
.article-detail {
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.article-header {
    margin-bottom: 30px;
}

.detail-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.detail-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-content {
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.detail-content img:hover {
    transform: scale(1.02);
}

.detail-actions {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.detail-actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.comments-section h3 {
    font-size: 24px;
    color: #6b5741;
    margin-bottom: 20px;
}

.comment-form {
    margin-bottom: 30px;
}

.comment-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 15px;
}

.comment-submit {
    float: right;
}

.comments-list {
    margin-top: 30px;
}

.comment-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-author-name {
    font-weight: 500;
    color: #6b5741;
}

.comment-date {
    font-size: 12px;
    color: #a08c6b;
}

.comment-content {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

/* 灯箱效果 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #d4a066;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    color: #d4a066;
}

/* 沉浸音境播放器 */
.soundscape-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    z-index: 1500;
    width: 300px;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.soundscape-player.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.player-header h4 {
    color: #6b5741;
    font-size: 16px;
}

.player-close {
    cursor: pointer;
    color: #a08c6b;
    transition: color 0.3s ease;
}

.player-close:hover {
    color: #6b5741;
}

.sound-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sound-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sound-item:hover {
    background-color: #f8f5f0;
}

.sound-item.active {
    background-color: #f5f0e6;
    color: #d4a066;
}

.sound-icon {
    width: 30px;
    height: 30px;
    background-color: #f5f0e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8c6e46;
}

.sound-name {
    font-size: 14px;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.player-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f5f0e6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-btn:hover {
    background-color: #d4a066;
    color: #fff;
}

/* 专注模式 */
.focus-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.98); /* 改为黑灰色背景 */
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.focus-mode.active {
    opacity: 1;
    visibility: visible;
}

/* 沉浸式编辑体验：隐藏顶部和底部内容 */
.focus-mode.active ~ header,
.focus-mode.active ~ footer {
    visibility: hidden;
}

/* 确保编辑区域有白色背景 */
.focus-mode.active {
    background-color: rgba(30, 30, 30, 0.98); /* 深灰色背景 */
}

/* 确保编辑器容器及其所有子元素有白色背景 */
.focus-mode.active .editor-container {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1300 !important;
    background-color: #fff !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    max-width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    visibility: visible !important;
    padding: 20px !important;
}

/* 确保编辑器内所有元素背景色为白色 */
.focus-mode.active .editor-container,
.focus-mode.active .article-tags-container,
.focus-mode.active .editor-tools,
.focus-mode.active .rich-text-toolbar,
.focus-mode.active .editor-content-wrapper,
.focus-mode.active .editor-main,
.focus-mode.active .editor-input-wrapper,
.focus-mode.active .editor-input,
.focus-mode.active .editor-sidebar,
.focus-mode.active .editor-actions,
.focus-mode.active .article-title-input,
.focus-mode.active .toolbar-btn,
.focus-mode.active .btn,
.focus-mode.active .tag,
.focus-mode.active select,
.focus-mode.active input[type="text"],
.focus-mode.active input[type="file"] {
    background-color: #fff !important;
    color: #333 !important;
    border-color: #ddd !important;
}

/* 确保编辑区内所有元素可见 */
.focus-mode.active .editor-container * {
    visibility: visible !important;
}

/* 确保专注模式控制按钮可见 */
.focus-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.focus-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1300;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.focus-controls.active {
    opacity: 1;
    visibility: visible;
}

/* 专注模式下的按钮样式 */
.focus-controls .focus-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.focus-controls .focus-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .editor-content-wrapper {
        flex-direction: column;
    }
    
    .editor-layout {
        grid-template-columns: 1fr;
    }
    
    .editor-sidebar {
        width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .main-nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .filter-sidebar {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
        position: static;
    }
    
    .article-detail {
        padding: 20px;
    }
    
    .detail-title {
        font-size: 24px;
    }
    
    .lightbox-prev, .lightbox-next {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .main-nav ul {
        gap: 10px;
    }
    
    .main-nav a {
        font-size: 14px;
    }
    
    .featured-articles h2 {
        font-size: 28px;
    }
    
    .article-content {
        padding: 15px;
    }
    
    .auth-container {
        padding: 25px;
    }
    
    .profile-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .profile-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* 微动效和动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeIn 0.5s ease-out;
}

.article-card:nth-child(2) {
    animation-delay: 0.1s;
}

.article-card:nth-child(3) {
    animation-delay: 0.2s;
}

.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #d4a066;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 提示框样式 */
.tooltip {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #6b5741;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}