/* ========================================
   单条文章页样式
======================================== */

.single-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ========================================
   文章区域
======================================== */
.single-article {
    margin-bottom: 80px;
}

/* 文章头部 */
.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-title {
    font-size: 32px;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

/* 文章主图 */
.article-image {
    position: relative;
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 图片浮层 */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.overlay-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.overlay-date {
    font-size: 14px;
    color: white;
    font-weight: 500;
}

.overlay-category {
    font-size: 12px;
    color: white;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

/* EXIF 摄影参数 */
.overlay-exif {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.exif-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.exif-item {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 4px;
}

.exif-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
}

/* AI生成描述 */
.overlay-ai-desc {
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    max-width: 90%;
}

.overlay-ai-desc p {
    margin: 0;
}

/* 文章内容 */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 60px;
}

.article-content p {
    margin-bottom: 20px;
}

/* 发布时间 */
.publish-time {
    margin-top: 40px;
    text-align: right;
}

.publish-time time {
    font-size: 13px;
    color: var(--text-tertiary);
    font-style: italic;
}

/* 文章底部导航 */
.article-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.article-nav a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.article-nav a:hover {
    color: var(--text-primary);
}

.nav-prev,
.nav-next {
    flex: 1;
    min-width: 0;
}

.nav-prev {
    align-items: flex-start;
}

.nav-next {
    align-items: flex-end;
    text-align: right;
}

.nav-home {
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}

.nav-label {
    font-size: 12px;
    margin-bottom: 4px;
    opacity: 0.7;
}

.nav-title {
    font-size: 14px;
    font-weight: 500;
}

/* ========================================
   评论区
======================================== */
.comments-section {
    margin-top: 80px;
}

.comments-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* 评论表单 */
.comment-form {
    margin-bottom: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-submit {
    padding: 10px 24px;
    font-size: 14px;
    color: white;
    background: var(--text-primary);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-submit:hover {
    opacity: 0.8;
}

/* 评论列表 */
.comments-list {
    margin-top: 40px;
}

.comment-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

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

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

.comment-author {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.comment-date {
    font-size: 12px;
    color: var(--text-tertiary);
}

.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.comment-content p {
    margin: 0;
}

/* ========================================
   响应式设计
======================================== */
@media (max-width: 768px) {
    .single-main {
        padding: 40px 15px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-content {
        font-size: 15px;
    }

    .article-nav {
        flex-direction: column;
        gap: 16px;
    }

    .nav-prev,
    .nav-next,
    .nav-home {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .comments-title {
        font-size: 20px;
    }
}
