/* ============================================
   行业洞察页样式表 - dongcha.css
   独立样式，不影响其他页面
   ============================================ */

/* === 全局重置与基础 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === 板块1：页面标题 === */
.page-header {
    background: linear-gradient(135deg, rgba(26,42,74,0.85) 0%, rgba(15,26,48,0.88) 50%, rgba(26,42,74,0.85) 100%), url('../images/dcbanner.jpg') center/cover no-repeat;
    position: relative;
    padding-top: 100px; /* 为固定导航栏留出空间 */
 .   min-height: 350px;
    padding-bottom: 80px;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
}

.breadcrumb {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #f5a623;
}

/* === 板块2：分类导航 === */
.filter-section {
    background: #f8f9fc;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-btn {
    padding: 10px 28px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #f5a623;
    color: #f5a623;
}

.filter-btn.active {
    background: #f5a623;
    border-color: #f5a623;
    color: #fff;
}

/* === 板块3：洞察列表 === */
.insights-section {
    padding: 60px 0;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.insight-card {
    background: #f8f9fc;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: #f5a623;
}

.insight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.insight-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(245,166,35,0.95);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 0;
}

/* 白皮书 - 深蓝色 */
.insight-tag.whitepaper,
.insight-tag[data-type="白皮书"] {
    background: rgba(26,42,74,0.95);
}

/* 操作指南 - 绿色 */
.insight-tag.guide,
.insight-tag[data-type="操作指南"] {
    background: rgba(34,166,126,0.95);
}

/* 行业报告 - 紫色 */
.insight-tag.report,
.insight-tag[data-type="行业报告"] {
    background: rgba(155,89,182,0.95);
}

/* 深度分析 - 红色 */
.insight-tag.analysis,
.insight-tag[data-type="深度分析"] {
    background: rgba(231,76,60,0.95);
}

.insight-content {
    padding: 24px;
}

.insight-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #999;
    margin-bottom: 0;
}

.insight-date {
    color: #888;
}

.insight-category {
    padding: 2px 10px;
    background: #e8e8e8;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.insight-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.insight-content h2 a {
    color: inherit;
    transition: color 0.3s;
}

.insight-content h2 a:hover {
    color: #f5a623;
}

.insight-excerpt {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 16px;
}

.insight-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #666;
}

.insight-stats span {
    background: #e8e8e8;
    padding: 4px 10px;
    border-radius: 4px;
}

.insight-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px dashed #ddd;
}

.download-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #f5a623;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}

.download-btn:hover {
    background: #e8941a;
    color: #fff;
}

.insight-views {
    font-size: 13px;
    color: #999;
}

/* === 分页 === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
}

.page-btn,
.page-num {
    padding: 10px 18px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover,
.page-num:hover {
    border-color: #f5a623;
    color: #f5a623;
}

.page-num.active {
    background: #f5a623;
    border-color: #f5a623;
    color: #fff;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    color: #999;
    font-size: 14px;
}

/* === 板块4：订阅区域 === */
.subscribe-section {
    background: linear-gradient(135deg, #1a2a4a 0%, #0f1a30 100%);
    padding: 80px 0;
    color: #fff;
    text-align: center;
}

.subscribe-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.subscribe-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
}

.subscribe-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    outline: none;
    transition: border-color 0.3s;
}

.subscribe-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.5);
}

.subscribe-form input[type="email"]:focus {
    border-color: #f5a623;
}

.btn-subscribe {
    padding: 14px 36px;
    background: #f5a623;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-subscribe:hover {
    background: #e8941a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245,166,35,0.3);
}

/* 注：导航栏、下拉菜单、页脚样式已在common.css中统一管理
   dongcha.css不再重复定义，避免样式冲突
   
   === 行业洞察详情页 === */
.news-detail-section {
    padding: 100px 0 60px;
    background: #fff;
}

.news-detail-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.news-detail-wrap .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
}

.news-detail-wrap .breadcrumb a {
    color: #666;
    transition: color 0.3s;
}

.news-detail-wrap .breadcrumb a:hover {
    color: #f5a623;
}

.news-detail-wrap .breadcrumb span {
    color: #ccc;
}

.news-detail-article {
    background: #fff;
}

.news-detail-article h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1a2a4a;
    line-height: 1.4;
    margin-bottom: 16px;
    text-align: center;
}

.news-detail-meta {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.detail-date {
    font-size: 14px;
    color: #999;
}

.news-detail-image {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
}

.news-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-top: 30px;
}

.news-detail-content p {
    margin-bottom: 16px;
}

/* 支持Ueditor编辑器居中图片 */
.news-detail-content p[style*="text-align: center"] {
    text-align: center !important;
}

.news-detail-content p:not([style*="text-align: left"]):not([style*="text-align: right"]) img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.news-detail-content figure {
    margin: 20px 0;
    text-align: center;
}

.news-detail-content figure img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.news-detail-content figcaption {
    font-size: 14px;
    color: #999;
    margin-top: 10px;
}

.news-detail-back {
    margin-top: 40px;
    text-align: center;
}

.news-detail-back .btn-primary {
    display: inline-block;
    padding: 12px 40px;
    background: #f5a623;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
    text-decoration: none;
}

.news-detail-back .btn-primary:hover {
    background: #e8941a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245,166,35,0.3);
}

/* === 响应式设计 === */
@media (max-width: 992px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .insights-section {
        padding: 40px 0;
    }
    
    .insight-content {
        padding: 20px;
    }
    
    .insight-content h2 {
        font-size: 20px;
    }
    
    .insight-excerpt {
        font-size: 14px;
    }
    
    .insight-stats {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .subscribe-section {
        padding: 60px 0;
    }
    
    .subscribe-content h2 {
        font-size: 26px;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .btn-subscribe {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
    
    .insight-meta {
        flex-direction: column;
        gap: 6px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-btn,
    .page-num {
        padding: 8px 14px;
        font-size: 13px;
    }
}