.detail-container {
    max-width: 800px;
    margin: 0 auto;
}

.detail-post-cover {
    width: 100%;
    /*height: 300px;*/
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding-bottom: 16px;
}

.detail-post-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 20px;
}

.detail-post-title {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 2px;
    color: #222;
}

.detail-post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.detail-post-content {
    font-size: 1.1rem;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #3498db;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.detail-tags {
    margin-top: 20px;
}

.detail-tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 5px;
    color: #555;
}

/* 新增评论区域样式 start */
/* 评论表单容器 */
/* 表单组 */
.detail-form-group {
    margin-bottom: 20px;
}

/* 表单标签 */
.detail-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

/* 输入框和文本域通用样式 */
.detail-form-input,
.detail-form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.detail-form-input:focus,
.detail-form-textarea:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

/* 文本域特定样式 */
.detail-form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* 提交按钮 */
.detail-submit-button {
    width: 100%;
    padding: 12px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.detail-submit-button:hover {
    background-color: #3367d6;
}

.detail-comments-section {
    margin-top: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.detail-comments-title {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 25px;
    color: #222;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.detail-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

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

.detail-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: bold;
}

.detail-comment-author {
    font-weight: bold;
    color: #333;
}

.detail-comment-date {
    font-size: 0.8rem;
    color: #999;
    margin-left: 10px;
}

.detail-comment-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    padding-left: 55px; /* 与头像对齐 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .detail-comments-section {
        padding: 20px;
    }

    .detail-comment-content {
        padding-left: 0;
        margin-top: 10px;
    }

    .detail-form-input,
    .detail-form-textarea {
        padding: 10px 12px;
    }
}
/* 新增评论区域样式 end */