/* ========================================
   法律知识页面专属样式
   ======================================== */

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* 知识分类 */
.knowledge-cats {
    padding: 60px 0;
    background: var(--bg-light);
}

.cats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cat-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.cat-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.cat-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cat-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* 文章列表 */
.articles-section {
    padding: 60px 0;
}

.articles-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.article-category {
    margin-bottom: 50px;
}

.cat-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.article-item {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.article-item:hover {
    box-shadow: var(--shadow-hover);
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-light);
}

.article-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.article-item h3 a {
    color: var(--primary-color);
}

.article-item h3 a:hover {
    color: var(--accent-color);
}

.article-summary {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

.read-more {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 14px;
}

.read-more:hover {
    color: var(--accent-hover);
}

/* FAQ样式 */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
}

.faq-icon {
    font-size: 24px;
    color: var(--accent-color);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 200px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* 侧边栏 */
.articles-sidebar {
    position: sticky;
    top: 150px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.sidebar-widget h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.hot-articles {
    list-style: none;
}

.hot-articles li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.hot-articles li:last-child {
    border-bottom: none;
}

.hot-articles a {
    font-size: 14px;
    color: var(--text-gray);
    display: block;
}

.hot-articles a:hover {
    color: var(--accent-color);
}

.consult-widget p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.consult-widget .form-group {
    margin-bottom: 12px;
}

.contact-info p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

/* 底部CTA */
.cta-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    padding: 80px 0;
    color: #fff;
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ========================================
   响应式适配
   ======================================== */
@media (max-width: 1024px) {
    .cats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .articles-layout {
        grid-template-columns: 1fr;
    }
    
    .articles-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 32px;
    }
    
    .cats-grid {
        grid-template-columns: 1fr;
    }
    
    .cat-card {
        padding: 30px 25px;
    }
    
    .articles-sidebar {
        grid-template-columns: 1fr;
    }
    
    .article-item {
        padding: 25px 20px;
    }
    
    .article-item h3 {
        font-size: 18px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-buttons {
        flex-direction: column;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 26px;
    }
    
    .cat-title {
        font-size: 20px;
    }
    
    .faq-question {
        font-size: 15px;
        padding: 18px 20px;
    }
}
