/* ======= 现代化 TinyMCE 内容样式 ======= */
.tinymce-content {
    font-size: 16px;
    line-height: 1.7;
    color: #2c3e50;
    max-width: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.tinymce-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #15588f 50%, #f093fb 100%);
}

/* 标题样式 - 现代化设计 */
.tinymce-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 2rem 0 1.5rem 0;
    line-height: 1.2;
    position: relative;
    padding-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #15588f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tinymce-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #15588f 100%);
    border-radius: 2px;
}

.tinymce-content h2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: #2d3748;
    margin: 2.5rem 0 1.25rem 0;
    line-height: 1.3;
    position: relative;
    padding-left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tinymce-content h2::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #667eea 0%, #15588f 100%);
    border-radius: 50%;
    position: absolute;
    left: 0;
    flex-shrink: 0;
}

.tinymce-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a5568;
    margin: 2rem 0 1rem 0;
    line-height: 1.4;
    position: relative;
    padding-left: 1rem;
}

.tinymce-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #15588f 100%);
    border-radius: 2px;
}

.tinymce-content h4,
.tinymce-content h5,
.tinymce-content h6 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4a5568;
    margin: 1.5rem 0 0.75rem 0;
    line-height: 1.4;
}

/* 段落样式 - 提升可读性 */
.tinymce-content p {
    margin-bottom: 1.5rem;
    color: #4a5568;
    line-height: 1.8;
    font-size: 16px;
    letter-spacing: 0.2px;
}

.tinymce-content p:last-child {
    margin-bottom: 0;
}

/* 现代化列表样式 */
.tinymce-content ul,
.tinymce-content ol {
    margin: 1.5rem 0;
    padding-left: 0;
}

.tinymce-content ul {
    list-style: none;
}

.tinymce-content ul li {
    position: relative;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(102, 126, 234, 0.03);
    border-radius: 8px;
    /*border-left: 3px solid #667eea;*/
    line-height: 1.6;
    transition: all 0.3s ease;
}

.tinymce-content ul li:hover {
    background: rgba(102, 126, 234, 0.08);
    transform: translateX(4px);
}

.tinymce-content ul li::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 1.25rem;
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
}

.tinymce-content ol {
    counter-reset: custom-counter;
}

.tinymce-content ol li {
    counter-increment: custom-counter;
    position: relative;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: rgba(118, 75, 162, 0.03);
    border-radius: 8px;
    /*border-left: 3px solid #15588f;*/
    line-height: 1.6;
    transition: all 0.3s ease;
}

.tinymce-content ol li:hover {
    background: rgba(118, 75, 162, 0.08);
    transform: translateX(4px);
}

.tinymce-content ol li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 1rem;
    top: 0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #15588f 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 现代化引用样式 */
.tinymce-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: none;
    border-radius: 12px;
    position: relative;
    font-style: italic;
    color: #4a5568;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.tinymce-content blockquote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #15588f 100%);
    border-radius: 2px 0 0 2px;
}

.tinymce-content blockquote::after {
    content: '"';
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 2rem;
    color: #667eea;
    opacity: 0.3;
    font-family: serif;
}

/* 现代化代码样式 */
.tinymce-content code {
    background: #f8fafc;
    color: #e53e3e;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    font-weight: 500;
}

.tinymce-content pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    position: relative;
}

.tinymce-content pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #15588f 100%);
    border-radius: 12px 12px 0 0;
}

.tinymce-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border: none;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 现代化表格样式 */
.tinymce-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.tinymce-content table thead {
    background: linear-gradient(135deg, #667eea 0%, #15588f 100%);
}

.tinymce-content table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: white;
    border-bottom: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.tinymce-content table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    color: #4a5568;
    font-size: 0.95rem;
    transition: background 0.3s ease;
}

.tinymce-content table tbody tr:hover {
    background: rgba(102, 126, 234, 0.04);
}

.tinymce-content table tbody tr:last-child td {
    border-bottom: none;
}

/* 现代化图片样式 */
.tinymce-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    /*box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);*/
    margin: 2rem 0;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tinymce-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

/* 现代化链接样式 */
.tinymce-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.tinymce-content a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #15588f 100%);
    transition: width 0.3s ease;
}

.tinymce-content a:hover::after {
    width: 100%;
}

.tinymce-content a:hover {
    color: #5a67d8;
}

/* 强调样式 */
.tinymce-content strong,
.tinymce-content b {
    font-weight: 700;
    color: #2d3748;
}

.tinymce-content em,
.tinymce-content i {
    font-style: italic;
    color: #667eea;
}

/* 现代化水平线 */
.tinymce-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 3rem 0;
    position: relative;
}

.tinymce-content hr::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, #667eea 0%, #15588f 100%);
}

/* 标记文本 */
.tinymce-content mark {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 500;
}

/* 页面整体布局优化 */
.produce-panel {
    background: #f8fafc;
    min-height: 100vh;
    padding: 2rem 0;
}

.produce-panel .right {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 0rem;
    margin-left: 0rem;
}

.title-panel {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 2rem;
}

.title-panel span {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    background: linear-gradient(135deg, #667eea 0%, #15588f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-panel img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
}

/* 推荐产品区域优化 */
.recommend-panel {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

.recommend-panel .title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.recommend-panel .title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #15588f 100%);
    border-radius: 2px;
}

.recommend-panel .list .item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.recommend-panel .list .item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tinymce-content {
        padding: 1.5rem;
        font-size: 15px;
    }

    .tinymce-content h1 {
        font-size: 2rem;
    }

    .tinymce-content h2 {
        font-size: 1.5rem;
    }

    .tinymce-content h3 {
        font-size: 1.25rem;
    }

    .produce-panel .right {
        margin-left: 0;
        margin-top: 1rem;
    }

    .tinymce-content table {
        font-size: 14px;
    }

    .tinymce-content table th,
    .tinymce-content table td {
        padding: 0.75rem;
    }
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
    .tinymce-content {
        background: #1a202c;
        color: #e2e8f0;
    }

    .tinymce-content h1,
    .tinymce-content h2,
    .tinymce-content h3 {
        color: #f7fafc;
    }

    .tinymce-content p {
        color: #cbd5e0;
    }

    .tinymce-content blockquote {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        color: #e2e8f0;
    }

    .tinymce-content table {
        background: #2d3748;
    }

    .tinymce-content table td {
        color: #e2e8f0;
        border-bottom-color: #4a5568;
    }
}