/* 行业资讯站自定义样式 */

/* 全局 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* 导航栏 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-size: 1.4rem;
}

/* 文章卡片 */
.article-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e9ecef;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

/* 文章详情 */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

.article-content h2, .article-content h3, .article-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content blockquote {
    border-left: 4px solid #0d6efd;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    background: #f8f9fa;
    border-radius: 0 4px 4px 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.article-content table th,
.article-content table td {
    border: 1px solid #dee2e6;
    padding: 0.5rem;
}

.article-content table th {
    background: #f8f9fa;
    font-weight: 600;
}

.article-content pre {
    background: #282c34;
    color: #abb2bf;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
}

.article-content code {
    background: #f1f3f5;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.article-content pre code {
    background: transparent;
    padding: 0;
}

/* 侧边栏卡片 */
.card-header {
    font-weight: 600;
    font-size: 0.95rem;
}

/* 轮播图 */
.carousel-item {
    min-height: 320px;
}

.carousel-caption {
    bottom: 20%;
}

/* 搜索高亮 */
mark {
    background-color: #fff3cd;
    padding: 0.1rem 0.2rem;
}

/* 分页 */
.pagination .page-link {
    border-radius: 4px;
    margin: 0 2px;
}

/* 标签云 */
.badge {
    font-weight: normal;
}

/* 响应式 */
@media (max-width: 768px) {
    .carousel-item {
        min-height: 200px;
    }
    
    .article-card .card-img-top {
        height: 150px !important;
    }
    
    .article-detail h1 {
        font-size: 1.5rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
}

/* 页脚 */
footer a:hover {
    color: #fff !important;
}

/* 面包屑 */
.breadcrumb {
    background: transparent;
    padding: 0;
}

/* 后台统计卡片 */
.stat-card .card-body {
    padding: 1rem;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 链接过渡 */
a {
    transition: color 0.2s;
}
