/* business.css */
main {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

 /* 页面横幅 */
.page-banner {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;   
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.page-banner:hover img {
    transform: scale(1.02);
}

.page-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 1;
    max-width: 800px;
    width: 90%;
}

.banner-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);   
}

.banner-content p {
    font-size: 1.4rem;    
    opacity: 0.95;    
}

/* 全局样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;   
}

.business {
    display: flex;
    gap: 30px;
    padding: 20px 0;
}

/* 左侧业务导航样式 */
.business-nav {
    flex: 0 0 250px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.business-nav h3 {
    color: #004a8d;
    border-bottom: 2px solid #EA3200;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    margin: 8px 0;
}

.nav-list a {
    display: block;
    padding: 12px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-list a:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.nav-list a.active {
    background: #004a8d;
    color: white;
}

/**右侧内容样式**/
.business-content {
    flex: 1;
}


.section-title {
    font-size: 2rem;
    color: #004a8d;
    border-left: 4px solid #EA3200;
    padding-left: 1rem;
    margin: 2rem 0;
}

/* 杂志列表 */
.magazine-list {
    display: grid;
    gap: 2rem;
}

.magazine-item {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.magazine-info h3 {   
    color: #333;    
}
.magazine-info p {   
    color: #666;
    line-height: 1.8;
    text-align: justify;
    hyphens: auto;
}



.magazine-item img {
    width: 200px;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s;
}
.magazine-item img:hover {
    transform: translateY(-5px);
}

/* 榜单样式 */
.brand-ranking {
    display: flex;
    gap: 3rem;
    align-items: center;
    background: #fff;
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.brand-ranking img {
    width: 400px;
    height: auto;
    border-radius: 4px;
}

.ranking-list {
    list-style: none;
    padding: 0;
}

.ranking-list li {
    padding: 0.5rem 0;
    color: #666;
}

/* 产业研究 */
/* 上方图片 */
.research-title {
    text-align: center;
    margin-bottom: 30px;
}

.research-title img {
    max-width: 800px;
    width: 100%;
    height: auto;
}

/* 图文排列 */
.research-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.research-info h3 {
    grid-column: 1 / -1;
    font-size: 1.5em;
    color: #444;
    margin-bottom: 20px;
}

/* 文字内容 */
.research-info p {
    grid-column: 1;
    margin: 0 0 15px;
    line-height: 1.6;
    color: #666;
}

/* 右侧图片 */
.research-info img {
    grid-column: 2;
    grid-row: 2 / span 5;
    /* 根据实际段落数调整 */
    width: 100%;
    height: auto;
    object-fit: contain;
    align-self: start;
}


/* 政府课题 */
/* 公共样式 */
.government-projects {
    padding: 30px 0;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* PC默认三列 */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 项目单元 */
.project-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project-item img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s;
}
.project-item img:hover {
    transform: translateY(-5px);
}

.project-item p {
    margin: 0;
    font-size: 16px;
    color: #333;
    line-height: 1.4;
}

/* 媒体能力 */
/* 整体内容容器 */
.capability-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* 文字内容区域 */
.capability-info h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* 项目列表样式 */
.capability-list {
    margin: 0 0 40px;
    padding-left: 20px;
}

.capability-list li {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666;
    text-align: justify;
    hyphens: auto;
}

/* 图片容器布局 */
.media-img {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* PC端5列 */
    gap: 20px;
    margin-top: 30px;
}

/* 图片响应式处理 */
.media-img img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.media-img img:hover {
    transform: translateY(-5px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-banner {
        height: 200px;
    }

    .banner-content h1 {
        font-size: 2.5rem;
    }

    .banner-content p {
        font-size: 1.2rem;
    }

    .business {
        flex-direction: column;
    }

    .business-nav {
        flex: none;
    }

    .magazine-item,
    .brand-ranking,
    .industry-research,
    .capability-content {
        flex-direction: column;
    }

    .magazine-item img {
        width: 100%;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }

    /* 产业研究 */
    .research-info {
        grid-template-columns: 1fr;
    }

    .research-info img {
        grid-column: 1;
        grid-row: auto;
        margin-top: 20px;
    }

    /* 政府课题 */
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
        /* 手机端两列 */
        gap: 20px;
        padding: 0 15px;
    }

    /* 媒体输出能力 */
    .media-img {
        grid-template-columns: repeat(2, 1fr);
        /* 移动端2列 */
        gap: 15px;
    }
    
}