/* 全局样式 */
:root {
    --primary-color: #165DFF;
    --secondary-color: #F5F7FA;
    --text-color: #333;
    --light-gray: #E5E9F0;
    --white: #FFFFFF;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* Guide Detail Page Styles */
.guide-detail h1 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.guide-detail h2 {
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--light-color);
    padding-bottom: 0.5rem;
}

.guide-detail ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.guide-detail li {
    margin-bottom: 0.5rem;
}

.guide-detail p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.guide-detail strong {
    color: var(--primary-color);
}

.back-link {
    margin-bottom: 2rem;
}

.related-guides {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-color);
}

.related-guides h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.hidden {
    display: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--secondary-color);
}
ul{
    padding-left: 0px;
}

/* 导航栏样式 */
.header {
    margin-bottom: 1rem;
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

/* 导航栏紧凑状态样式 */
.header.navbar-compact {
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand .text-primary {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* 轮播图样式 */
.hero-carousel {
    /* margin-bottom: 2rem; */
    margin-top: -1rem;
}

.carousel-item img {
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.carousel-caption h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.carousel-caption .btn {
    margin-top: 1rem;
}

/* 通用部分样式 */
section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* 分类导航样式 */
.category-nav {
    background-color: var(--white);
    border-radius: var(--border-radius);
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.category-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-btn,
.guide-category-btn {
    background-color: var(--secondary-color);
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.category-btn:hover,
.guide-category-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.category-btn.active,
.guide-category-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 新闻卡片样式 */
.news-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card .card-body {
    padding: 1.5rem;
}

.news-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-card .card-text {
    color: #666;
    margin-bottom: 1rem;
}

.news-card .card-meta {
    font-size: 0.85rem;
    color: #999;
}

/* 技能卡片样式 */
.skill-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.skill-card .skill-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.skill-card .skill-tag {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 0.5rem;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: var(--white);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: var(--white);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* 职业列表页样式 */
.filter-section {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-tab {
    background-color: var(--secondary-color);
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination {
    justify-content: center;
    margin-top: 2rem;
}

/* 侧边栏样式 */
.sidebar {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.sidebar h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* 图表容器样式 - 防止图表无限变高 */
#salary-trend-chart {
    max-height: 500px;
    height: 300px;
    width: 100%;
    display: block;
}

.sidebar:has(#salary-trend-chart) {
    padding-bottom: 15px;
    overflow: hidden;
}

/* 文章详情页样式 */
.article-detail {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.article-header {
    margin-bottom: 2rem;
    text-align: center;
}

.article-header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
    justify-content: center;
}

.article-cover {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-content {
    line-height: 1.8;
    font-size: 1rem;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
}

.article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.article-content h4 {
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #333;
}

.article-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.article-content ul,
.article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.article-content li {
    margin-bottom: 0.7rem;
}

.article-content ol li {
    font-weight: 500;
}

/* Timeline 时间线样式 */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 4px;
    background-color: var(--light-gray);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--light-gray);
}

.timeline-content {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

.timeline-content h4 {
    margin-top: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.timeline-content p {
    margin-bottom: 0;
    color: #555;
}

.article-actions {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
}

.article-actions button {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0e4bb3;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border: 1px solid var(--light-gray);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--light-gray);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-item img {
        height: 300px;
    }
    
    .carousel-caption h3 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .category-nav .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .carousel-caption {
        padding: 0.5rem;
    }
    
    .carousel-caption h3 {
        font-size: 1.2rem;
    }
    
    .footer .col-md-4 {
        margin-bottom: 1.5rem;
    }
}