/* WP AI Article Generator Frontend Styles */

/* 基础样式 */
.wpaig-widget {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wpaig-widget h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2em;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
}

/* AI生成标识 */
.ai-generated-badge {
    display: none !important; /* 隐藏AI标识 */
    /*
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 10px 0;
    */
}

.ai-generated-badge::before {
    display: none; /* 隐藏图标 */
    /*
    content: "🤖 ";
    margin-right: 3px;
    */
}

/* 文章元信息 */
.wpaig-meta {
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.wpaig-meta .meta-item {
    display: inline-block;
    margin-right: 20px;
    font-size: 14px;
    color: #666;
}

.wpaig-meta .meta-item strong {
    color: #333;
}

.wpaig-meta .meta-item .icon {
    margin-right: 5px;
}

/* 关键词标签 */
.wpaig-keywords {
    margin: 15px 0;
}

.wpaig-keywords .keyword-tag {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin: 0 5px 5px 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wpaig-keywords .keyword-tag:hover {
    background: #0073aa;
    color: white;
    text-decoration: none;
}

/* 相关文章推荐 */
.wpaig-related-posts {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.wpaig-related-posts h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.wpaig-related-post {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.wpaig-related-post:last-child {
    border-bottom: none;
}

.wpaig-related-post .post-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    margin-right: 15px;
    object-fit: cover;
}

.wpaig-related-post .post-info {
    flex: 1;
}

.wpaig-related-post .post-title {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.wpaig-related-post .post-title:hover {
    color: #0073aa;
}

.wpaig-related-post .post-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* AI生成状态指示器 */
.ai-status-indicator {
    display: inline-flex;
    align-items: center;
    background: #e8f5e8;
    color: #2e7d2e;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin: 10px 0;
}

.ai-status-indicator.generating {
    background: #fff3cd;
    color: #856404;
}

.ai-status-indicator.error {
    background: #f8d7da;
    color: #721c24;
}

.ai-status-indicator .icon {
    margin-right: 6px;
    font-size: 14px;
}

/* 内容质量评分 */
.content-quality-score {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quality-label {
    font-weight: 600;
    color: #333;
}

.quality-score {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
}

.quality-score.excellent {
    color: #28a745;
}

.quality-score.good {
    color: #17a2b8;
}

.quality-score.average {
    color: #ffc107;
}

.quality-score.poor {
    color: #dc3545;
}

/* 进度条样式 */
.wpaig-progress {
    background: #e9ecef;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin: 10px 0;
}

.wpaig-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #005a87);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* 加载动画 */
.wpaig-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #666;
}

.wpaig-loading .spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wpaig-widget {
        padding: 15px;
        margin: 15px 0;
    }
    
    .wpaig-meta .meta-item {
        display: block;
        margin-bottom: 8px;
    }
    
    .wpaig-related-post {
        flex-direction: column;
        text-align: center;
    }
    
    .wpaig-related-post .post-thumbnail {
        margin: 0 0 10px 0;
    }
    
    .content-quality-score {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .wpaig-widget {
        background: #2c2c2c;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .wpaig-widget h3 {
        color: #e0e0e0;
    }
    
    .wpaig-meta {
        background: #353535;
        color: #ccc;
    }
    
    .wpaig-meta .meta-item strong {
        color: #e0e0e0;
    }
    
    .wpaig-keywords .keyword-tag {
        background: #444;
        color: #ccc;
    }
    
    .wpaig-keywords .keyword-tag:hover {
        background: #0073aa;
        color: white;
    }
    
    .wpaig-related-posts {
        background: #353535;
    }
    
    .wpaig-related-post .post-title {
        color: #e0e0e0;
    }
    
    .wpaig-related-post .post-excerpt {
        color: #aaa;
    }
    
    .content-quality-score {
        background: #2c2c2c;
        border-color: #444;
    }
    
    .quality-label {
        color: #e0e0e0;
    }
}

/* 打印样式 */
@media print {
    .wpaig-widget,
    .ai-generated-badge,
    .wpaig-related-posts {
        display: none;
    }
    
    .wpaig-meta {
        background: transparent;
        border-left: 2px solid #000;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .wpaig-widget {
        border: 2px solid #000;
    }
    
    .ai-generated-badge {
        background: #000;
        color: #fff;
        border: 1px solid #fff;
    }
    
    .wpaig-keywords .keyword-tag {
        border: 1px solid #000;
    }
    
    .wpaig-keywords .keyword-tag:hover {
        background: #000;
        color: #fff;
    }
}

/* 动画类 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 工具提示样式 */
.wpaig-tooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted #666;
}

.wpaig-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

.wpaig-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.wpaig-tooltip:hover::after,
.wpaig-tooltip:hover::before {
    opacity: 1;
}

/* 通知样式 */
.wpaig-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 300px;
    animation: slideInRight 0.3s ease;
}

.wpaig-notification.success {
    border-left: 4px solid #28a745;
}

.wpaig-notification.error {
    border-left: 4px solid #dc3545;
}

.wpaig-notification.warning {
    border-left: 4px solid #ffc107;
}

.wpaig-notification .close {
    position: absolute;
    top: 8px;
    right: 12px;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    line-height: 1;
}

.wpaig-notification .close:hover {
    color: #333;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* 表单增强样式 */
.wpaig-form-group {
    margin-bottom: 20px;
}

.wpaig-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.wpaig-form-group input,
.wpaig-form-group textarea,
.wpaig-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.wpaig-form-group input:focus,
.wpaig-form-group textarea:focus,
.wpaig-form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.wpaig-form-group .help-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* AI生成文章内容格式化优化 */
.post-content.ai-generated,
.entry-content.ai-generated,
.content.ai-generated,
.ai-generated-content {
    line-height: 1.7;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 标题间距优化 */
.post-content.ai-generated h2,
.entry-content.ai-generated h2,
.content.ai-generated h2,
.ai-generated-content h2 {
    margin-top: 2.5em;
    margin-bottom: 1em;
    line-height: 1.3;
    color: #2c3e50;
    font-weight: 600;
    padding-bottom: 0.3em;
    border-bottom: 2px solid #eee;
}

.post-content.ai-generated h3,
.entry-content.ai-generated h3,
.content.ai-generated h3,
.ai-generated-content h3 {
    margin-top: 2em;
    margin-bottom: 0.8em;
    line-height: 1.4;
    color: #34495e;
    font-weight: 600;
}

.post-content.ai-generated h4,
.entry-content.ai-generated h4,
.content.ai-generated h4,
.ai-generated-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.6em;
    line-height: 1.4;
    color: #34495e;
    font-weight: 500;
}

.post-content.ai-generated h5,
.entry-content.ai-generated h5,
.content.ai-generated h5,
.ai-generated-content h5 {
    margin-top: 1.3em;
    margin-bottom: 0.5em;
    line-height: 1.4;
    color: #34495e;
    font-weight: 500;
    font-size: 1.1em;
}

.post-content.ai-generated h6,
.entry-content.ai-generated h6,
.content.ai-generated h6,
.ai-generated-content h6 {
    margin-top: 1.2em;
    margin-bottom: 0.4em;
    line-height: 1.4;
    color: #34495e;
    font-weight: 500;
    font-size: 1em;
}

/* 段落间距和可读性优化 */
.post-content.ai-generated p,
.entry-content.ai-generated p,
.content.ai-generated p,
.ai-generated-content p {
    margin-bottom: 1.6em;
    line-height: 1.7;
    text-align: justify;
    word-spacing: 0.1em;
    font-size: 16px;
}

/* 第一段特殊样式 */
.post-content.ai-generated h2:first-child + p,
.entry-content.ai-generated h2:first-child + p,
.content.ai-generated h2:first-child + p,
.ai-generated-content h2:first-child + p {
    font-size: 1.1em;
    font-weight: 400;
    color: #555;
    margin-bottom: 2em;
}

/* 强调文本样式 */
.post-content.ai-generated strong,
.entry-content.ai-generated strong,
.content.ai-generated strong,
.ai-generated-content strong {
    font-weight: 600;
    color: #2c3e50;
}

.post-content.ai-generated em,
.entry-content.ai-generated em,
.content.ai-generated em,
.ai-generated-content em {
    font-style: italic;
    color: #34495e;
}

/* 下划线和删除线样式 */
.post-content.ai-generated u,
.entry-content.ai-generated u,
.content.ai-generated u,
.ai-generated-content u {
    text-decoration: underline;
    text-decoration-color: #3498db;
}

.post-content.ai-generated s,
.entry-content.ai-generated s,
.content.ai-generated s,
.ai-generated-content s {
    text-decoration: line-through;
    color: #95a5a6;
}

/* 小字体和特殊文本 */
.post-content.ai-generated small,
.entry-content.ai-generated small,
.content.ai-generated small,
.ai-generated-content small {
    font-size: 0.875em;
    color: #7f8c8d;
}

.post-content.ai-generated mark,
.entry-content.ai-generated mark,
.content.ai-generated mark,
.ai-generated-content mark {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    color: #856404;
}

/* 上标和下标 */
.post-content.ai-generated sup,
.entry-content.ai-generated sup,
.content.ai-generated sup,
.ai-generated-content sup {
    font-size: 0.75em;
    vertical-align: super;
    line-height: 0;
}

.post-content.ai-generated sub,
.entry-content.ai-generated sub,
.content.ai-generated sub,
.ai-generated-content sub {
    font-size: 0.75em;
    vertical-align: sub;
    line-height: 0;
}

/* 列表样式优化 */
.post-content.ai-generated ul,
.entry-content.ai-generated ul,
.content.ai-generated ul,
.ai-generated-content ul {
    margin: 1.5em 0;
    padding-left: 2em;
    list-style-type: disc;
}

.post-content.ai-generated ol,
.entry-content.ai-generated ol,
.content.ai-generated ol,
.ai-generated-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
    list-style-type: decimal;
}

.post-content.ai-generated li,
.entry-content.ai-generated li,
.content.ai-generated li,
.ai-generated-content li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.post-content.ai-generated li p,
.entry-content.ai-generated li p,
.content.ai-generated li p,
.ai-generated-content li p {
    margin-bottom: 0.5em;
}

/* 定义列表样式 */
.post-content.ai-generated dl,
.entry-content.ai-generated dl,
.content.ai-generated dl,
.ai-generated-content dl {
    margin: 1.5em 0;
}

.post-content.ai-generated dt,
.entry-content.ai-generated dt,
.content.ai-generated dt,
.ai-generated-content dt {
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 0.3em;
    color: #2c3e50;
}

.post-content.ai-generated dd,
.entry-content.ai-generated dd,
.content.ai-generated dd,
.ai-generated-content dd {
    margin-left: 1.5em;
    margin-bottom: 0.8em;
    line-height: 1.6;
}

/* 引用样式 */
.post-content.ai-generated blockquote,
.entry-content.ai-generated blockquote,
.content.ai-generated blockquote,
.ai-generated-content blockquote {
    margin: 2em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #3498db;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
    position: relative;
}

.post-content.ai-generated blockquote::before,
.entry-content.ai-generated blockquote::before,
.content.ai-generated blockquote::before,
.ai-generated-content blockquote::before {
    content: "\201C";
    font-size: 3em;
    color: #3498db;
    position: absolute;
    top: -10px;
    left: 10px;
    line-height: 1;
}

.post-content.ai-generated q,
.entry-content.ai-generated q,
.content.ai-generated q,
.ai-generated-content q {
    font-style: italic;
    color: #666;
}

.post-content.ai-generated q::before,
.entry-content.ai-generated q::before,
.content.ai-generated q::before,
.ai-generated-content q::before {
    content: "\201C";
}

.post-content.ai-generated q::after,
.entry-content.ai-generated q::after,
.content.ai-generated q::after,
.ai-generated-content q::after {
    content: "\201D";
}

/* 代码样式 */
.post-content.ai-generated code,
.entry-content.ai-generated code,
.content.ai-generated code,
.ai-generated-content code {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: Monaco, Consolas, "Lucida Console", monospace;
    font-size: 0.9em;
    padding: 2px 4px;
    color: #c7254e;
}

.post-content.ai-generated pre,
.entry-content.ai-generated pre,
.content.ai-generated pre,
.ai-generated-content pre {
    background: #f8f8f8;
    border: 1px solid #e1e1e8;
    border-radius: 4px;
    font-family: Monaco, Consolas, "Lucida Console", monospace;
    font-size: 0.9em;
    line-height: 1.45;
    margin: 1.5em 0;
    overflow: auto;
    padding: 1em;
    white-space: pre;
}

.post-content.ai-generated pre code,
.entry-content.ai-generated pre code,
.content.ai-generated pre code,
.ai-generated-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
}

/* 表格样式 */
.post-content.ai-generated table,
.entry-content.ai-generated table,
.content.ai-generated table,
.ai-generated-content table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    margin: 2em 0;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
}

.post-content.ai-generated table table,
.entry-content.ai-generated table table,
.content.ai-generated table table,
.ai-generated-content table table {
    display: table;
    white-space: normal;
}

.post-content.ai-generated th,
.entry-content.ai-generated th,
.content.ai-generated th,
.ai-generated-content th {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
}

.post-content.ai-generated td,
.entry-content.ai-generated td,
.content.ai-generated td,
.ai-generated-content td {
    border: 1px solid #dee2e6;
    padding: 12px 15px;
    text-align: left;
}

.post-content.ai-generated tbody tr:nth-child(odd),
.entry-content.ai-generated tbody tr:nth-child(odd),
.content.ai-generated tbody tr:nth-child(odd),
.ai-generated-content tbody tr:nth-child(odd) {
    background: #f8f9fa;
}

.post-content.ai-generated caption,
.entry-content.ai-generated caption,
.content.ai-generated caption,
.ai-generated-content caption {
    padding: 12px;
    font-weight: 600;
    text-align: left;
    caption-side: top;
    color: #6c757d;
}

/* 水平线样式 */
.post-content.ai-generated hr,
.entry-content.ai-generated hr,
.content.ai-generated hr,
.ai-generated-content hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #bdc3c7, transparent);
    margin: 2em 0;
}

/* 键盘输入和变量样式 */
.post-content.ai-generated kbd,
.entry-content.ai-generated kbd,
.content.ai-generated kbd,
.ai-generated-content kbd {
    background: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.2), 0 0 0 2px #fff inset;
    color: #333;
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    line-height: 1.4;
    margin: 0 .1em;
    padding: .1em .6em;
    text-shadow: 0 1px 0 #fff;
}

.post-content.ai-generated var,
.entry-content.ai-generated var,
.content.ai-generated var,
.ai-generated-content var {
    font-style: italic;
    color: #e74c3c;
}

.post-content.ai-generated samp,
.entry-content.ai-generated samp,
.content.ai-generated samp,
.ai-generated-content samp {
    font-family: Monaco, Consolas, "Lucida Console", monospace;
    background: #f0f0f0;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 地址和缩写样式 */
.post-content.ai-generated address,
.entry-content.ai-generated address,
.content.ai-generated address,
.ai-generated-content address {
    font-style: italic;
    margin: 1em 0;
    color: #666;
}

.post-content.ai-generated abbr,
.entry-content.ai-generated abbr,
.content.ai-generated abbr,
.ai-generated-content abbr {
    border-bottom: 1px dotted #999;
    cursor: help;
}

/* 移动端响应式优化 */
@media (max-width: 768px) {
    .post-content.ai-generated,
    .entry-content.ai-generated,
    .content.ai-generated,
    .ai-generated-content {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .post-content.ai-generated h2,
    .entry-content.ai-generated h2,
    .content.ai-generated h2,
    .ai-generated-content h2 {
        font-size: 1.4em;
        margin-top: 2em;
    }
    
    .post-content.ai-generated h3,
    .entry-content.ai-generated h3,
    .content.ai-generated h3,
    .ai-generated-content h3 {
        font-size: 1.2em;
        margin-top: 1.5em;
    }
    
    .post-content.ai-generated p,
    .entry-content.ai-generated p,
    .content.ai-generated p,
    .ai-generated-content p {
        margin-bottom: 1.3em;
        text-align: left; /* 移动端左对齐更好阅读 */
    }
    
    .post-content.ai-generated table,
    .entry-content.ai-generated table,
    .content.ai-generated table,
    .ai-generated-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .post-content.ai-generated th,
    .entry-content.ai-generated th,
    .content.ai-generated th,
    .ai-generated-content th,
    .post-content.ai-generated td,
    .entry-content.ai-generated td,
    .content.ai-generated td,
    .ai-generated-content td {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .post-content.ai-generated blockquote,
    .entry-content.ai-generated blockquote,
    .content.ai-generated blockquote,
    .ai-generated-content blockquote {
        margin: 1.5em 0;
        padding: 0.8em 1em;
    }
    
    .post-content.ai-generated pre,
    .entry-content.ai-generated pre,
    .content.ai-generated pre,
    .ai-generated-content pre {
        padding: 0.8em;
        font-size: 0.85em;
        overflow-x: auto;
    }
}

/* 自动标记AI生成的文章 */
body.single-post [data-wpaig-generated="true"] {
    position: relative;
}

body.single-post [data-wpaig-generated="true"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: -10px;
    width: 3px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* 提升整体阅读体验 */
.post-content.ai-generated,
.entry-content.ai-generated,
.content.ai-generated,
.ai-generated-content {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 确保内容在所有主题中都有良好的显示效果 */
.ai-generated-content {
    line-height: 1.7 !important;
}

.ai-generated-content h2 {
    margin-top: 2.5em !important;
    margin-bottom: 1em !important;
}

.ai-generated-content h3 {
    margin-top: 2em !important;
    margin-bottom: 0.8em !important;
}

.ai-generated-content p {
    margin-bottom: 1.6em !important;
}

/* 打印样式优化 */
@media print {
    .post-content.ai-generated,
    .entry-content.ai-generated,
    .content.ai-generated,
    .ai-generated-content {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    .post-content.ai-generated h2,
    .entry-content.ai-generated h2,
    .content.ai-generated h2,
    .ai-generated-content h2 {
        page-break-after: avoid;
        margin-top: 1.5em;
    }
} 