/* --- 顶部阅读专用 Header --- */
.reading-header {
    background: #fff; height: 60px; padding: 0 40px; display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100;
}
.brand { font-size: 18px; font-weight: bold; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.brand span { font-size: 14px; color: #9ca3af; font-weight: normal; border-left: 1px solid #e5e7eb; padding-left: 10px; margin-left: 2px; }
.btn-back { font-size: 14px; color: #6b7280; text-decoration: none; display: flex; align-items: center; gap: 4px; transition: 0.2s; }
.btn-back:hover { color: var(--primary); }

/* --- 阅读主体区 --- */
.reading-body { padding: 40px 20px; min-height: calc(100vh - 120px); }

/* 纸张容器 (核心) */
.doc-paper {
    max-width: 1200px; margin: 0 auto; background: #fff; border-radius: 8px;
    padding: 60px 80px; /* 大留白，营造呼吸感 */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
}

/* 头部信息 */
.doc-header { border-bottom: 1px solid #f3f4f6; padding-bottom: 30px; margin-bottom: 40px; position: relative; }
.doc-title { font-size: 32px; color: #111827; margin-bottom: 16px; line-height: 1.4; }
.doc-meta { display: flex; gap: 20px; font-size: 13px; color: #9ca3af; align-items: center; }
.meta-item { display: flex; align-items: center; gap: 4px; }
.meta-item.tag { background: #fee2e2; color: #ef4444; padding: 2px 8px; border-radius: 4px; font-weight: bold; font-size: 12px; }

.btn-print {
    position: absolute; right: 0; top: 0; background: none; border: 1px solid #e5e7eb; width: 36px; height: 36px;
    border-radius: 4px; color: #6b7280; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.btn-print:hover { background: #f3f4f6; color: var(--text-main); }

/* 正文排版 (重点) */
.doc-content { font-size: 16px; line-height: 1.8; color: #374151; }

/* 段落间距 */
.doc-content p { margin-bottom: 24px; text-align: justify; }
.doc-content img { max-width: 100%; max-height: 100%; }
/* 导语样式 */
.lead { font-size: 18px; color: #1f2937; font-weight: 500; }

/* 标题样式 */
.doc-content h3 {
    font-size: 20px; font-weight: bold; color: #111827; margin-top: 40px; margin-bottom: 20px;
    border-left: 4px solid var(--primary); padding-left: 12px;
}

/* 警告框 */
.alert-box {
    background: #fffbeb; border: 1px solid #fcd34d; border-radius: 6px; padding: 16px;
    display: flex; gap: 12px; margin-bottom: 24px; color: #92400e; font-size: 14px;
}
.alert-box i { font-size: 20px; color: #f59e0b; flex-shrink: 0; }

/* 高亮块 */
.highlight-block { background: #f3f4f6; padding: 20px; border-radius: 6px; margin-bottom: 24px; font-style: italic; color: #4b5563; }

/* 列表样式 */
.styled-list { list-style: none; margin-bottom: 24px; }
.styled-list li { margin-bottom: 12px; padding-left: 20px; position: relative; }
.styled-list li::before {
    content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px;
    background: var(--primary); border-radius: 50%;
}

/* 链接 */
.link-email { color: var(--primary); text-decoration: underline; }

/* --- 评论区样式 --- */
.comment-divider { border: 0; border-top: 1px solid #f3f4f6; margin: 40px 0; }

.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.comment-header h3 { font-size: 18px; font-weight: bold; margin: 0; }
.sort-opts { font-size: 13px; color: #9ca3af; display: flex; gap: 16px; }
.sort-opts span { cursor: pointer; }
.sort-opts span.active { color: var(--text-main); font-weight: bold; }

/* 发表框 */
.comment-publish { display: flex; gap: 16px; margin-bottom: 40px; }
.my-avatar { width: 40px; height: 40px; border-radius: 50%; }
.input-area { flex: 1; }
.input-area textarea {
    width: 100%; height: 80px; padding: 12px; border: 1px solid #e5e7eb; border-radius: 8px;
    resize: none; outline: none; font-size: 14px; background: #f9fafb; transition: 0.2s;
}
.input-area textarea:focus { background: #fff; border-color: var(--primary); }

.pub-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.limit { font-size: 12px; color: #9ca3af; }
.btn-pub {
    background: var(--primary); color: #fff; border: none; padding: 6px 16px; border-radius: 20px;
    font-size: 13px; cursor: pointer; font-weight: bold;
}
.btn-pub:hover { background: #0d9488; }

/* 评论列表 */
.comment-item { display: flex; gap: 16px; margin-bottom: 24px; border-bottom: 1px solid #EEE; }
.comment-item:last-child { border-bottom: none; }

.c-avatar img { width: 40px; height: 40px; border-radius: 50%; }

.c-content { flex: 1; }
.user-info { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.name { font-size: 14px; font-weight: bold; color: #374151; }
.badge-lv { background: #f3f4f6; color: #9ca3af; font-size: 10px; padding: 1px 4px; border-radius: 4px; }

.text { font-size: 14px; color: #4b5563; line-height: 1.6; margin-bottom: 8px; }

.c-meta { display: flex; gap: 16px; font-size: 12px; color: #9ca3af; align-items: center; }
.action { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.action:hover { color: var(--primary); }

/* 官方回复 (重点) */
.official-reply {
    margin-top: 12px; background: #f0fdfa; border-radius: 8px; padding: 12px 16px;
    border-left: 3px solid var(--primary); font-size: 13px;
}
.reply-header { color: var(--primary); font-weight: bold; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.reply-text { color: #374151; line-height: 1.5; }

/* 加载更多 */
.load-more { text-align: center; margin-top: 20px; }
.load-more button {
    background: #fff; border: 1px solid #e5e7eb; padding: 8px 24px; border-radius: 20px;
    color: #6b7280; cursor: pointer; font-size: 13px; transition: 0.2s;
}
.load-more button:hover { border-color: var(--primary); color: var(--primary); }

/* 底部功能 */
.doc-footer { margin-top: 60px; border-top: 1px solid #f3f4f6; padding-top: 30px; }
.helpful-box { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 40px; }
.btn-thumb {
    padding: 8px 16px; border: 1px solid #e5e7eb; background: #fff; border-radius: 20px;
    color: #6b7280; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: 0.2s;
}
.btn-thumb:hover { border-color: var(--primary); color: var(--primary); }

.nav-links { display: flex; justify-content: space-between; font-size: 14px; }
.nav-links a { color: var(--text-main); text-decoration: none; max-width: 45%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-links a:hover { color: var(--primary); }

/* 响应式 */
@media (max-width: 800px) {
    .doc-paper { padding: 30px 20px; }
    .doc-title { font-size: 24px; }
}