/* 产业研究平台样式 */

/* Banner主题变量 - 深蓝色系 */
body[data-page="news"] {
    --primary-color: #2c5282;
    --gradient-primary: linear-gradient(135deg, #2c5282 0%, #4a90c2 100%);
}

.news-banner {
    --banner-gradient: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #1e4d6b 100%);
    --banner-glow-color: rgba(44, 82, 130, 0.4);
    --banner-btn-primary-bg: linear-gradient(135deg, #4a90c2 0%, #2c5282 100%);
    --banner-btn-primary-shadow: rgba(44, 82, 130, 0.5);
    --banner-btn-primary-shadow-hover: rgba(44, 82, 130, 0.6);
}

/* Banner背景图 */
.news-banner {
    background: 
        linear-gradient(135deg, rgba(30, 58, 95, 0.92) 0%, rgba(44, 82, 130, 0.88) 50%, rgba(30, 77, 107, 0.85) 100%),
        url('/public/images/banner-news.jpeg') center/cover no-repeat;
}

/* 页面主体 */
.research-main {
    background: #f5f7fa;
    padding: 24px 0 48px;
    min-height: calc(100vh - 400px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标签页导航 */
.news-tabs {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.news-tabs .tabs-wrapper {
    display: flex;
    gap: 8px;
    padding: 16px 0;
    overflow-x: auto;
}

.news-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.news-tab:hover {
    background: #f1f5f9;
    color: #2c5282;
}

.news-tab.active {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.3);
}

.news-tab svg {
    flex-shrink: 0;
}

/* 内容区 */
.tab-content {
    display: none;
    padding: 24px;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-left {
    display: flex;
    gap: 12px;
}

.filter-select {
    padding: 8px 32px 8px 12px;
    font-size: 14px;
    color: #333;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.filter-select:focus {
    border-color: #2c5282;
    outline: none;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f5f7fa;
    border-radius: 4px;
    width: 240px;
}

.search-box svg {
    color: #999;
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    border: none;
    background: none;
    font-size: 14px;
    color: #333;
    outline: none;
}

.search-box input::placeholder {
    color: #999;
}

/* 政策列表 */
.policy-list {
    display: flex;
    flex-direction: column;
}

.policy-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background 0.2s;
}

.policy-item:hover {
    background: #f8fafc;
    margin: 0 -24px;
    padding: 20px 24px;
}

.policy-icon {
    width: 48px;
    height: 48px;
    background: #e8f4f8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c5282;
    flex-shrink: 0;
}

.policy-content {
    flex: 1;
    min-width: 0;
}

.policy-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.policy-tag {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 2px;
    font-weight: 500;
}

.policy-tag.city {
    background: #e6f7ff;
    color: #1890ff;
}

.policy-tag.province {
    background: #fff7e6;
    color: #fa8c16;
}

.policy-tag.national {
    background: #f6ffed;
    color: #52c41a;
}

.policy-tag.industry {
    background: #f0f0f0;
    color: #666;
}

.policy-date {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

.policy-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.4;
}

.policy-item:hover .policy-title {
    color: #2c5282;
}

.policy-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.policy-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #ccc;
    flex-shrink: 0;
}

.policy-item:hover .policy-action {
    color: #2c5282;
}

/* 产业图谱 */
.map-intro {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.map-intro h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.map-intro p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.industry-map {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.map-section {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

.map-section .section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e8e8e8;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.title-icon {
    font-size: 16px;
}

.industry-cards {
    padding: 16px;
}

.industry-cards.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.industry-cards.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.industry-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.industry-card:hover {
    border-color: #2c5282;
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.1);
}

.industry-card.main {
    max-width: 400px;
    border-color: #2c5282;
    border-width: 2px;
}

.industry-card.new {
    border-color: #52c41a;
    border-style: dashed;
}

.industry-card .card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.industry-icon {
    font-size: 24px;
}

.industry-card .card-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.industry-card .card-body {
    padding: 16px;
}

.industry-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 12px;
}

.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.industry-tags span {
    font-size: 12px;
    color: #666;
    background: #f5f7fa;
    padding: 4px 8px;
    border-radius: 4px;
}

.industry-stats {
    display: flex;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.industry-stats .stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.industry-stats .value {
    font-size: 18px;
    font-weight: 600;
    color: #2c5282;
}

.industry-stats .label {
    font-size: 12px;
    color: #999;
}

/* 研究报告 */
.report-list {
    display: flex;
    flex-direction: column;
}

.report-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background 0.2s;
}

.report-item:hover {
    background: #f8fafc;
    margin: 0 -24px;
    padding: 20px 24px;
}

.report-cover {
    width: 80px;
    height: 100px;
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.report-content {
    flex: 1;
    min-width: 0;
}

.report-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.report-tag {
    font-size: 12px;
    color: #2c5282;
    background: #e8f4f8;
    padding: 2px 8px;
    border-radius: 2px;
}

.report-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px;
    line-height: 1.4;
}

.report-item:hover .report-title {
    color: #2c5282;
}

.report-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 8px;
}

.report-meta {
    display: flex;
    gap: 16px;
}

.report-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #999;
}

.report-meta .meta-item svg {
    color: #bbb;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #2c5282;
    background: #fff;
    border: 1px solid #2c5282;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-download:hover {
    background: #2c5282;
    color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
    .research-tabs {
        padding: 0 16px;
        overflow-x: auto;
    }
    
    .research-tab {
        padding: 12px 16px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .tab-content {
        padding: 16px;
    }
    
    .filter-bar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .filter-left {
        flex-wrap: wrap;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .search-box {
        width: 100%;
    }
    
    .policy-item {
        gap: 12px;
    }
    
    .policy-icon {
        width: 40px;
        height: 40px;
    }
    
    .policy-action {
        display: none;
    }
    
    .industry-cards.grid-4,
    .industry-cards.grid-2 {
        grid-template-columns: 1fr;
    }
    
    .industry-card.main {
        max-width: 100%;
    }
    
    .report-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .report-cover {
        width: 60px;
        height: 75px;
    }
    
    .btn-download {
        width: 100%;
        justify-content: center;
    }
    .news-tabs .tabs-wrapper{
        scrollbar-width: none;
    }
}
