/* 文章导航 */
.article-nav {
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: #4a90e2;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2c3e50;
    text-decoration: underline;
}

.nav-separator {
    color: #999;
    margin: 0 10px;
}

.nav-current {
    color: #666;
    font-weight: bold;
}

/* 文章容器 */
.article-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* 文章标题 */
.article-header {
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 25px;
}

.article-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 25px;
    line-height: 1.4;
    text-align: center;
    font-family: 'Ma Shan Zheng', cursive;
}

/* 元信息 */
.article-meta-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.meta-item i {
    font-size: 24px;
    color: #4a90e2;
    width: 40px;
    text-align: center;
}

.meta-content {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* 文章内容 */
.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
    padding: 0 10px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: move; /* 可拖拽光标 */
    transition: transform 0.3s ease;
}

.article-content img:hover {
    transform: scale(1.01);
}

.article-content p {
    margin-bottom: 25px;
    text-align: justify;
}

.article-content h2,
.article-content h3 {
    color: #2c3e50;
    margin: 35px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.article-content blockquote {
    border-left: 4px solid #4a90e2;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

/* 文章标签 */
.article-tags {
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.tag-label {
    font-weight: bold;
    color: #666;
    margin-right: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    background: #e3f2fd;
    color: #4a90e2;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #4a90e2;
    color: white;
    transform: translateY(-2px);
}

/* 文章导航按钮 */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.nav-btn {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.nav-btn:hover:not(.disabled) {
    background: #4a90e2;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.nav-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.prev-btn {
    text-align: left;
}

.next-btn {
    text-align: right;
    flex-direction: row-reverse;
}

.nav-text {
    flex: 1;
}

.nav-label {
    display: block;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.nav-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-btn i {
    font-size: 24px;
    width: 40px;
}

/* 评论区域 */
.comments-section {
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.comments-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 评论表单 */
.comment-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

.form-submit {
    margin-top: 15px;
    text-align: right;
}

.submit-btn {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

/* 登录提示 */
.login-prompt {
    background: #fff8e1;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
    border-left: 4px solid #ffc107;
}

.login-prompt a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: bold;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* 评论列表 */
.comments-list {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
}

.comment-item {
    padding: 25px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.comment-item:hover {
    background-color: #f8f9fa;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-author i {
    font-size: 20px;
    color: #4a90e2;
}

.author-name {
    font-weight: bold;
    color: #2c3e50;
}

.comment-time {
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-content {
    color: #444;
    line-height: 1.7;
    padding-left: 30px;
}

/* 无评论 */
.no-comments {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.no-comments i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-container {
        padding: 20px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-meta-info {
        grid-template-columns: 1fr;
    }
    
    .article-navigation {
        grid-template-columns: 1fr;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}