/**
 * 文章内容样式 - 微信文章风格
 *
 * @package mzc
 */

/* 文章容器 */
.mzc-article {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

/* 文章头部 */
.mzc-article-header {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.mzc-article-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 16px 0;
    word-break: break-word;
}

.mzc-article-meta {
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 16px;
}

.mzc-article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mzc-article-meta i {
    font-size: 14px;
}

/* 文章内容区域 */
.mzc-article-content {
    padding: 30px;
    font-size: 16px;
    line-height: 1.8;
    color: #3f3f3f;
    word-break: break-word;
}

/* 段落样式 */
.mzc-article-content p {
    margin: 0 0 16px 0;
    text-indent: 2em;
}

.mzc-article-content p:first-child {
    text-indent: 0;
}

/* 标题样式 */
.mzc-article-content h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 24px 0 16px 0;
    padding-left: 8px;
    border-left: 4px solid #005ea8;
}

.mzc-article-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 20px 0 14px 0;
    padding-left: 8px;
    border-left: 4px solid #006bbf;
}

.mzc-article-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 18px 0 12px 0;
}

.mzc-article-content h4,
.mzc-article-content h5,
.mzc-article-content h6 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 16px 0 10px 0;
}

/* 引用样式 - 微信风格 */
.mzc-article-content blockquote {
    margin: 16px 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 4px solid #005ea8;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    position: relative;
}

.mzc-article-content blockquote::before {
    content: "「";
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 24px;
    color: #005ea8;
    opacity: 0.3;
}

.mzc-article-content blockquote::after {
    content: "」";
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 24px;
    color: #005ea8;
    opacity: 0.3;
}

.mzc-article-content blockquote p {
    text-indent: 0;
    margin: 0;
}

/* 代码块样式 */
.mzc-article-content pre {
    margin: 16px 0;
    padding: 16px;
    background: #1e1e1e;
    border-radius: 8px;
    overflow-x: auto;
    position: relative;
}

.mzc-article-content pre code {
    display: block;
    font-family: "Consolas", "Monaco", "Menlo", monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #d4d4d4;
    white-space: pre;
}

/* 行内代码 */
.mzc-article-content code {
    font-family: "Consolas", "Monaco", "Menlo", monospace;
    font-size: 14px;
    padding: 2px 6px;
    background: #f4f4f4;
    border-radius: 4px;
    color: #e53935;
}

/* 表格样式 */
.mzc-article-content table {
    width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mzc-article-content th {
    background: linear-gradient(135deg, #005ea8 0%, #006bbf 100%);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.mzc-article-content td {
    padding: 12px 16px;
    border-bottom: 1px solid #e8e8e8;
}

.mzc-article-content tr:last-child td {
    border-bottom: none;
}

.mzc-article-content tr:nth-child(even) {
    background: #fafafa;
}

.mzc-article-content tr:hover {
    background: #f0f5ff;
}

/* 列表样式 */
.mzc-article-content ul,
.mzc-article-content ol {
    margin: 16px 0;
    padding-left: 28px;
}

.mzc-article-content li {
    margin: 2px 0;
    line-height: 1.8;
}

.mzc-article-content ol {
    list-style-type: decimal;
}

/* 链接样式 */
.mzc-article-content a {
    color: #005ea8;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.mzc-article-content a:hover {
    color: #0072bc;
    border-bottom-color: #005ea8;
}

/* 图片样式 */
.mzc-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 分隔线 */
.mzc-article-content hr {
    margin: 24px 0;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
}

/* 强调文字 */
.mzc-article-content strong,
.mzc-article-content b {
    font-weight: 600;
    color: #1a1a1a;
}

.mzc-article-content em,
.mzc-article-content i {
    color: #666;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .mzc-article-header {
        padding: 10px;
    }

    .mzc-article-title {
        font-size: 20px;
    }

    .mzc-article-content {
        padding: 20px;
        font-size: 15px;
    }

    .mzc-article-content h1 {
        font-size: 18px;
    }

    .mzc-article-content h2 {
        font-size: 17px;
    }

    .mzc-article-content h3 {
        font-size: 16px;
    }

    .mzc-article-content table {
        font-size: 13px;
    }

    .mzc-article-content th,
    .mzc-article-content td {
        padding: 10px 8px;
    }
}

/* 代码高亮主题 */
.mzc-article-content .keyword { color: #569cd6; }
.mzc-article-content .string { color: #ce9178; }
.mzc-article-content .comment { color: #6a9955; }
.mzc-article-content .function { color: #dcdcaa; }
.mzc-article-content .variable { color: #9cdcfe; }
.mzc-article-content .number { color: #b5cea8; }
.mzc-article-content .operator { color: #d4d4d4; }
.mzc-article-content .class { color: #4ec9b0; }
/* 评论区域 */
.mzc-comments {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 20px;
}

/* 评论头部 */
.mzc-comments-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.mzc-comments-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mzc-comments-title i {
    color: #005ea8;
}

/* 评论列表 */
.mzc-comment-list {
    padding: 16px 24px;
}

/* 单个评论项 */
.mzc-comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px dashed #f0f0f0;
    transition: background 0.3s;
}

.mzc-comment-item:last-child {
    border-bottom: none;
}

.mzc-comment-item:hover {
  /**  background: #fafafa;  **/
}

/* 头像 */
.mzc-comment-avatar {
    flex-shrink: 0;
}

.mzc-comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    transition: all 0.3s;
}

.mzc-comment-item:hover .mzc-comment-avatar img {
    border-color: #005ea8;
    transform: scale(1.05);
}

/* 评论主体 */
.mzc-comment-body {
    flex: 1;
    min-width: 0;
}

/* 评论头部信息 */
.mzc-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mzc-comment-author {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.mzc-comment-date {
    font-size: 12px;
    color: #999;
}

/* 评论内容 */
.mzc-comment-content {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
    word-break: break-word;
}

/* 操作栏 */
.mzc-comment-actions {
    display: flex;
    gap: 20px;
}

.mzc-comment-like,
.mzc-comment-reply {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
}

.mzc-comment-like:hover,
.mzc-comment-reply:hover {
    color: #005ea8;
}

.mzc-comment-like .liked {
    color: #e53935;
}

/* 评论表单 */
.mzc-comment-form {
    padding: 20px 24px;
    border-top: 1px solid #f0f0f0;
/**  background: #fafafa;  **/
}

.mzc-form-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

.mzc-form-logged {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.mzc-form-logged a {
    color: #005ea8;
    text-decoration: none;
    margin: 0 8px;
}

.mzc-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.mzc-form-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: #fff;
}

.mzc-form-input:focus {
    outline: none;
    border-color: #005ea8;
    box-shadow: 0 0 0 3px rgba(0, 94, 168, 0.1);
}

.mzc-form-input::placeholder {
    color: #999;
}

.mzc-form-textarea {
    margin-bottom: 16px;
}

.mzc-form-textarea textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    transition: all 0.3s;
    background: #fff;
}

.mzc-form-textarea textarea:focus {
    outline: none;
    border-color: #005ea8;
    box-shadow: 0 0 0 3px rgba(0, 94, 168, 0.1);
}

.mzc-form-textarea textarea::placeholder {
    color: #999;
}

.mzc-form-submit {
    display: flex;
    justify-content: flex-end;
}

.mzc-submit-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #005ea8 0%, #006bbf 100%);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.mzc-submit-btn:hover {
    background: linear-gradient(135deg, #004a85 0%, #005ea8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 94, 168, 0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .mzc-comments-header {
        padding: 16px 16px;
    }

    .mzc-comment-list {
        padding: 12px 16px;
    }

    .mzc-comment-item {
        padding: 12px 0;
    }

    .mzc-comment-avatar img {
        width: 40px;
        height: 40px;
    }

    .mzc-comment-author {
        font-size: 14px;
    }

    .mzc-comment-content {
        font-size: 14px;
    }

    .mzc-comment-form {
        padding: 16px;
    }

    .mzc-form-row {
        flex-direction: column;
    }

    .mzc-submit-btn {
        width: 100%;
    }
}