/* 行业洞察页面样式 */

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #4361ee 0%, #3f37c9 100%);
    color: white;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header .lead {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* 主内容区布局 */
.insights-main {
    background-color: #f8f9fa;
}

.insights-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.insights-layout .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.insights-layout .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

/* 左侧卡片容器 */
.insights-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 卡片链接 - 整体可点击 */
.insight-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.insight-card-link:hover {
    transform: translateX(5px);
}

.insight-card-link:hover .insight-card {
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.2);
}

/* 卡片样式 */
.insight-card {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 200px;
}

.insight-card-image {
    width: 280px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.insight-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insight-card-link:hover .insight-card-image img {
    transform: scale(1.1);
}

.insight-card-content {
    flex: 1;
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.insight-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insight-card-excerpt {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 右侧列表容器 */
.insights-list-wrapper {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.insights-list-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #212529;
    padding-bottom: 10px;
}

/* 列表项链接 */
.insight-list-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.insight-list-item-link:hover {
    transform: translateX(5px);
}

.insight-list-item-link:hover .insight-list-title {
    color: #4361ee;
}

/* 列表项样式 */
.insight-list-item {
    display: flex;
    gap: 15px;
    padding: 16px 0;
    border-bottom: 1px solid #e9ecef;
}

.insight-list-item:last-child {
    border-bottom: none;
}

.insight-list-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dee2e6;
    line-height: 1;
    min-width: 35px;
}

.insight-list-item-link:hover .insight-list-number {
    color: #4361ee;
}

.insight-list-content {
    flex: 1;
}

.insight-list-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.insight-list-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #adb5bd;
}

.insight-date,
.insight-views {
    display: flex;
    align-items: center;
}

.insight-list-meta i {
    font-size: 0.8rem;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .insights-layout {
        gap: 30px;
    }
    
    /* 平板和移动端：左侧占满全屏 */
    .insights-layout .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* 隐藏右侧列表 */
    .insights-layout .col-lg-4 {
        display: none !important;
    }
    
    .insight-card {
        height: auto;
        flex-direction: column;
    }
    
    .insight-card-image {
        width: 100%;
        height: 220px;
    }
    
    .insight-card-content {
        padding: 20px;
    }
    
    .insight-card-title {
        font-size: 1.2rem;
    }
    
    .insight-card-excerpt {
        font-size: 0.95rem;
    }
}

@media (max-width: 767px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header .lead {
        font-size: 1rem;
    }
    
    .insights-main {
        padding: 40px 0;
    }
    
    .insights-cards-wrapper {
        gap: 20px;
    }
    
    .insight-card {
        height: auto;
    }
    
    .insight-card-image {
        height: 200px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.insight-card-link {
    animation: fadeInUp 0.6s ease forwards;
}

.insight-card-link:nth-child(1) { animation-delay: 0.1s; }
.insight-card-link:nth-child(2) { animation-delay: 0.2s; }
.insight-card-link:nth-child(3) { animation-delay: 0.3s; }
.insight-card-link:nth-child(4) { animation-delay: 0.4s; }
.insight-card-link:nth-child(5) { animation-delay: 0.5s; }
.insight-card-link:nth-child(6) { animation-delay: 0.6s; }

.insight-list-item-link {
    animation: fadeInUp 0.5s ease forwards;
}

.insight-list-item-link:nth-child(2) { animation-delay: 0.1s; }
.insight-list-item-link:nth-child(3) { animation-delay: 0.2s; }
.insight-list-item-link:nth-child(4) { animation-delay: 0.3s; }
.insight-list-item-link:nth-child(5) { animation-delay: 0.4s; }
.insight-list-item-link:nth-child(6) { animation-delay: 0.5s; }
.insight-list-item-link:nth-child(7) { animation-delay: 0.6s; }
.insight-list-item-link:nth-child(8) { animation-delay: 0.7s; }

/* 文章详情页样式 */

/* 面包屑导航 */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: white;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* 文章标题 */
.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

/* 文章元信息 */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.meta-item {
    display: flex;
    align-items: center;
}

/* 图片样式 */
.article-featured-image {
    text-align: center;
}

.article-featured-image img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.figure-caption {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 12px !important;
    font-style: italic;
}

figure.figure {
    margin: 30px 0;
}

figure.figure img {
    max-width: 100%;
    height: auto;
}

figure.figure .figure-caption {
    text-align: center;
    padding: 0 20px;
}

/* 文章内容区 */
.article-main {
    background-color: #f8f9fa;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.article-content {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #4361ee;
}

.content-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #212529;
    margin-top: 25px;
    margin-bottom: 15px;
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 1.2rem;
}

.content-section ul {
    margin-bottom: 1.2rem;
    padding-left: 20px;
}

.content-section ul li {
    margin-bottom: 10px;
    line-height: 1.8;
    color: #495057;
}

.content-section ul li strong {
    color: #212529;
    font-weight: 600;
}

/* 引用块 */
.content-section blockquote {
    border-left: 4px solid #4361ee;
    padding: 15px 20px;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 4px;
    font-style: italic;
    color: #6c757d;
}

/* 标签 */
.article-tags {
    padding-top: 20px;
}

.tags-label {
    font-weight: 600;
    color: #212529;
}

.badge {
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

/* 分享 */
.article-share {
    padding-top: 15px;
}

.share-label {
    font-weight: 600;
    color: #212529;
}

.btn-outline-primary {
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

/* 文章导航 */
.article-navigation {
    background: white;
    padding: 30px !important;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.article-navigation .nav-link {
    transition: all 0.3s ease;
    text-decoration: none;
}

.article-navigation .nav-link:hover {
    background-color: #f8f9fa !important;
    transform: translateX(5px);
}

.hover-bg-light:hover {
    background-color: #f8f9fa !important;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-content {
        padding: 30px 20px;
    }
    
    .content-section h2 {
        font-size: 1.6rem;
    }
    
    .content-section h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 767px) {
    .article-header {
        padding: 50px 0 !important;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-content {
        padding: 20px 15px;
    }
    
    .article-navigation .nav-link {
        text-align: center !important;
    }
}

/* 代码块样式（如有需要） */
.content-section pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.content-section code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #e83e8c;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
}

.content-section pre code {
    background: transparent;
    padding: 0;
    color: #212529;
}

/* 表格样式（如有需要） */
.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.content-section table th,
.content-section table td {
    border: 1px solid #dee2e6;
    padding: 12px;
    text-align: left;
}

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

.content-section table tr:nth-child(even) {
    background: #f8f9fa;
}
