/* 资讯模板 - news_modern 紫色/粉色渐变风格 */
/* 基于Tailwind CSS优化 */

/* 文章内容样式 */
.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #374151;
    word-wrap: break-word;
}

.article-content * {
    font-size: inherit;
    color: inherit;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-top: 30px;
    margin-bottom: 18px;
    font-weight: 700;
    color: #1f2937;
}

.article-content h1 {
    font-size: 28px;
}

.article-content h2 {
    font-size: 26px;
}

.article-content h3 {
    font-size: 24px;
}

.article-content ul,
.article-content ol {
    padding-left: 30px;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content a {
    color: #8b5cf6;
    text-decoration: underline;
}

.article-content a:hover {
    color: #ec4899;
}

.article-content blockquote {
    border-left: 4px solid #8b5cf6;
    padding: 15px 20px;
    margin: 25px 0;
    background: linear-gradient(135deg, #f3e8ff 0%, #fce7f3 100%);
    border-radius: 8px;
    color: #555;
    font-style: italic;
}

.article-content code {
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: "Courier New", monospace;
    font-size: 16px;
    color: #ec4899;
}

.article-content pre {
    background: #1e1b4b;
    color: #e9d5ff;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 25px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.article-content table th,
.article-content table td {
    border: 1px solid #e5e7eb;
    padding: 12px;
    text-align: left;
}

.article-content table th {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #fff;
    font-weight: 600;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .article-content {
        font-size: 16px;
    }
    
    .article-content h1 {
        font-size: 24px;
    }
    
    .article-content h2 {
        font-size: 22px;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
}

/* 518347 */

