/* ========================================
   影视百科 & 知识文章专用样式
   适用：baike.php, articles/*.php
   ======================================== */

/* 文章容器 */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* 文章头部 */
.article-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #da9d40;
    padding-bottom: 20px;
}

.article-category {
    font-size: 0.8em;
    color: #da9d40;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: inline-block;
}

.article-title {
    font-size: clamp(1.6em, 4vw, 2.2em);
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    font-size: 0.85em;
    color: #999;
    margin-bottom: 20px;
}

/* 文章正文 */
.article-content {
    font-size: 1em;
    line-height: 1.9;
    color: #444;
}

.article-content h2 {
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px;
    padding-left: 12px;
    border-left: 0px solid #da9d40;
}

.article-content h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: #444;
    margin: 25px 0 12px;
}

.article-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin-bottom: 16px;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

/* 提示框 */
.article-content .tip-box {
    background: #f8f9fa;
    border: 1px solid #ccc;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0px;
}

/* 文章底部 */
.article-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e8e8e8;
}

.article-footer .cta-box {
    background: #f8f9fa;
    text-align: center;
    padding: 30px;
    margin-top: 20px;
}

.article-footer .cta-box h4 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #333;
}

/* 文章导航 */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.article-nav a {
    color: #da9d40;
    text-decoration: none;
}

/* 相关文章 */
.related-articles {
    margin-top: 40px;
}

.related-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.related-list a {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.related-list a:hover {
    color: #da9d40;
    padding-left: 10px;
}

/* FAQ 卡片样式（baike.php 用） */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.faq-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #da9d40;
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.faq-question:hover {
    background: #f9f9f9;
}

.faq-question h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.faq-question .fa {
    color: #da9d40;
    font-size: 1.2em;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.faq-answer {
    display: none;
    padding: 0 24px 24px 24px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    line-height: 1.8;
    color: #555;
}

.faq-answer.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 知识文章列表样式（baike.php 用） */
.knowledge-list {
    margin-top: 20px;
    margin-bottom: 30px;
}

.knowledge-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e8e8e8;
}

.knowledge-item:hover {
    padding-left: 8px;
    border-bottom-color: #da9d40;
}

.knowledge-title {
    font-size: 1.05em;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    flex: 1;
}

.knowledge-title:hover {
    color: #da9d40;
}

.knowledge-date {
    font-size: 0.85em;
    color: #999;
    margin: 0 20px;
    white-space: nowrap;
}

.knowledge-link {
    font-size: 0.85em;
    color: #da9d40;
    text-decoration: none;
    white-space: nowrap;
}

.knowledge-link:hover {
    text-decoration: underline;
}

/* 行业术语卡片 */
.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.term-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.term-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    border-color: #da9d40;
}

.term-card h4 {
    font-size: 1.2em;
    font-weight: 600;
    color: #da9d40;
    margin-bottom: 10px;
}

.term-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.9em;
    margin: 0;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .article-container {
        padding: 20px;
    }
    
    .knowledge-item {
        flex-wrap: wrap;
    }
    
    .knowledge-title {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .knowledge-date {
        margin-left: 0;
    }
    
    .terms-grid {
        grid-template-columns: 1fr;
    }
    
    .related-list {
        grid-template-columns: 1fr;
    }
}


/* 置顶标签样式 */
.sticky-tag {
    display: inline-block;
    color: #da9d40;              /* 金色文字 */
    font-size: 1em;
    padding: 2px 8px;
    margin-right: 12px;   
    white-space: nowrap;
}

/* 置顶文章行背景色 */
.knowledge-item.sticky {

    margin-left: -10px;
    padding-left: 7px;
}

/* 标题区域 flex 布局 */
.knowledge-title-wrap {
    display: flex;
    align-items: center;
    flex: 2;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .knowledge-title-wrap {
        width: 100%;
        margin-bottom: 8px;
    }
    .knowledge-item.sticky {
        margin-left: 0;
        padding-left: 10px;
    }
}


/* 文章序号 */
.article-number {
    font-size: 0.9em;
    color: #999;
    margin-right: 12px;
    font-weight: normal;
    min-width: 30px;
}

/* 隐藏文章 */
.knowledge-item-hidden {
    display: none !important;
}

/* 加载更多按钮样式 */
.load-more-btn {
    cursor: pointer;
}