/* 文章页面样式 */
.article-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
}

/* 文章内容 */
.article-content {
    background: var(--bg-darker);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    overflow: visible;
    color: var(--text-color);
    padding: 20px;
}

.article-header {
    padding: 25px 30px;
    border-bottom: none;
    margin-top: 0;
}

.article-header h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.article-header h1 i {
    margin-right: 10px;
    font-size: 1.8rem;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.26, 1.55);
}

.article-header h1:hover i {
    transform: rotate(12deg) scale(1.2);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-color);
}

.article-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.article-banner {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
}

/* 文章内容样式 */
.article-content section {
    padding: 25px 30px;
    border-bottom: none;
}

.article-content section:last-of-type {
    border-bottom: none;
}

.article-content h2 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.article-content h2 i {
    margin-right: 10px;
    font-size: 1.4rem;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.26, 1.55);
}

.article-content h2:hover i {
    transform: rotate(12deg) scale(1.2);
}

.article-content h3 {
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

.article-content h3 i {
    margin-right: 8px;
    font-size: 1.1rem;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.26, 1.55);
}

.article-content h3:hover i {
    transform: rotate(12deg) scale(1.2);
}

.article-content h4 {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.article-content p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--text-color);
}

.article-content ul, .article-content ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-color);
    padding-left: 5px;
}

.article-content ul li::marker {
    color: var(--primary-color);
}

.article-content ol li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

/* 代码块样式 */
.code-block {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 6px;
    font-family: monospace;
    color: var(--text-color);
    overflow-x: auto;
    margin-bottom: 20px;
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.6;
    border: 1px dashed var(--primary-color);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

/* 提示框样式 */
.tips-box {
    background: var(--secondary-color);
    border-radius: 0 12px 12px 0;
    padding: 20px 25px;
    margin: 25px 0;
    border-left: 6px solid var(--primary-color);
    box-shadow: -3px 3px 12px rgba(0,0,0,0.15);
    position: relative;
    line-height: 1.7;
}

.tips-box h4 {
    display: flex;
    align-items: center;
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.tips-box i {
    margin-right: 10px;
    color: var(--accent-color);
}

.tips-box p br {
    content: "";
    display: block;
    margin-bottom: 0.5em;
}

.tips-box p {
    margin-bottom: 0;
    color: var(--text-color);
}

/* 提示词样例样式 */
.example-prompt {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px dashed var(--primary-color);
    font-family: monospace;
    color: var(--text-color);
    overflow-x: auto;
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.6;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

.example-prompt h4 {
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1rem;
}

.example-prompt p {
    margin-bottom: 0;
    color: var(--text-color);
    font-family: monospace;
    white-space: pre-wrap;
    line-height: 1.5;
}

/* 案例分析样式 */
.example-case {
    margin-bottom: 30px;
}

.example-images {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.image-before, .image-after {
    flex: 1;
    text-align: center;
}

.image-before img, .image-after img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.image-before p, .image-after p {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-color);
}

.example-details h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

/* FAQ样式 */
.faq-item {
    margin-bottom: 20px;
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.faq-item p {
    margin-bottom: 0;
    color: var(--text-color);
}

/* 文章结论样式 */
.article-conclusion {
    padding: 25px 30px;
    border-top: none;
}

.article-conclusion h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* 文章CTA样式 */
.article-cta {
    padding: 25px 30px;
    text-align: center;
    border-top: none;
}

.article-cta h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--text-color);
}

.article-cta .btn {
    padding: 12px 25px;
    font-size: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.article-cta .btn:hover {
    background-color: var(--primary-dark);
}

.article-cta .btn i {
    margin-right: 8px;
}

/* 文章标签样式 */
.article-tags {
    padding: 25px 30px;
    border-top: none;
    margin-bottom: 0;
}

.tag {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 6px 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
}

.tag i {
    margin-right: 5px;
    font-size: 0.75rem;
}

/* 文章分享样式 */
.article-share {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
}

.article-share h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.share-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: var(--btn-hover);
}

/* 相关文章样式 */
.article-related {
    padding: 30px;
    border-top: 1px solid var(--border-color);
}

.article-related h3 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.related-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-article {
    text-decoration: none;
    background-color: var(--bg-darker);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.related-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.related-article img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-article h4 {
    padding: 15px;
    font-size: 1rem;
    color: var(--primary-color);
    margin: 0;
}

/* 评论区样式 */
.article-comments {
    padding: 30px;
    border-top: 1px solid var(--border-color);
}

.article-comments h3 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.comments-placeholder {
    color: var(--text-color);
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .article-container {
        padding: 15px;
    }
    .article-content {
        padding: 15px;
    }
    .article-header,
    .article-content section,
    .article-conclusion,
    .article-cta,
    .article-tags {
        padding: 20px;
    }
    .article-sidebar {
        display: none;
    }
    .example-images {
        flex-direction: column;
    }
    .related-articles {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .article-header h1 {
        font-size: 1.8rem;
    }
    .article-header h1 i {
        font-size: 1.6rem;
    }
    .article-content section {
        padding: 15px;
    }
    .article-content h2 {
        font-size: 1.4rem;
    }
    .article-content h2 i {
        font-size: 1.2rem;
    }
    .article-content h3 {
        font-size: 1.2rem;
    }
    .article-content h3 i {
        font-size: 1rem;
    }
    .share-buttons {
        flex-wrap: wrap;
    }
    .article-cta .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .article-banner,
    .example-case .image-after img {
        padding: 5px;
        width: calc(100% - 10px);
    }
    .tips-box, .code-block, .example-prompt {
        padding: 15px;
    }
} 