/* 关于树莓集团样式 */
.about-company {
    margin-bottom: 60px;
}


.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.company-building {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 核心业务样式 */
.core-business {
    margin-bottom: 60px;
}

.business-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    background: #f8f9fa;
    padding: 40px 20px;
    border-radius: 8px;
}

.business-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    max-width: 200px;
}

.business-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: white;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.business-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 集团概况样式 */
.company-overview {
    margin-bottom: 60px;
}

.overview-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    min-width: 150px;
    flex: 1;
    max-width: 200px;
}

.stat-item h3 {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 14px;
    color: #666;
}

/* 图片展示样式 */
.image-gallery {
    margin-bottom: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* channel-banner 样式 */
.channel-banner {
    height: 550px;
    position: relative;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    margin: 0;
    padding: 0;
}

.channel-banner .banner-info {
    position: absolute;
    top: 50%;
    left: 10%;
    margin-top: -50px;
    z-index: 3;
    text-align: left;
}

.channel-banner .banner-info h3 {
    font-size: 50px;
    font-weight: bold;
    position: relative;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.channel-banner .banner-info p {
    font-size: 24px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* nav-x 横向栏目样式 */
.nav-x {
    background: #fff;
    width: 100%;
    position: relative;
    border-bottom: 1px solid #eee;
}

.nav-x .container {
    padding: 0;
}

.nav-x ul {
    font-size: 0;
    -webkit-text-size-adjust: none;
    text-align: center;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
    list-style: none;
    width: 100%;
}

.nav-x li {
    display: inline-block;
    flex: 1;
    width: 100%;
    max-width: none;
}

.nav-x li i {
    margin: 0px auto 5px auto;
    font-size: 24px;
    display: block;
}

.nav-x li a {
    font-size: 16px;
    padding: 0 10px;
    height: 70px;
    line-height: 70px;
    color: #000;
    text-align: center;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: none;
}

.nav-x li a:hover {
    color: #7f181d;
    background: none;
}

.nav-x li a.active {
    color: #7f181d;
    background: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .business-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .overview-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item {
        max-width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* nav-x 响应式设计 */
    .nav-x ul {
        flex-direction: column;
    }
    
    .nav-x li {
        max-width: 100%;
    }
    
    .nav-x li a {
        height: 50px;
        line-height: 50px;
        font-size: 14px;
        border-bottom: 1px solid #eee;
    }
    
    .nav-x li:last-child a {
        border-bottom: none;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .business-circle {
        width: 80px;
        height: 80px;
        font-size: 14px;
    }
}

/* 党支部简介模块样式 */
.party-branch-section {
    margin-bottom: 80px;
}

.section-subtitle {
    font-size: 12px;
    color: #999;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.party-nav-link {
    color: #666;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.party-nav-link:hover {
    color: #333;
}

.party-nav-link.active {
    color: #000;
    border-bottom-color: #000;
    font-weight: 500;
}

.text-gray-700 {
    color: #7f181d;
    line-height: 1.8;
    font-size: 24px;
}

.text-gray-800 {
    color: #555;
    line-height: 2.6;
    font-size: 20px;
}

/* 党支部图片区域 */
.party-images-section {
    display: none;
}

.party-images-section.active {
    display: block;
}

.party-section-header {
    margin-bottom: 15px;
}

.party-section-title {
    text-align: left;
}

.party-section-subtitle {
    display: block;
    font-size: 11px;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.party-section-name {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

/* 党支部图片网格 */
.party-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}

.party-images-grid img {
    padding: 30px;
    background-color: white;
}

.party-image-item {
    overflow: hidden;
    border-radius: 4px;
    background: #f0f0f0;
    position: relative;
}

.party-image-top-left {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 4/3;
}

.party-image-top-right {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: 4/3;
}

.party-image-bottom-center {
    grid-column: 1 / 3;
    grid-row: 2;
    aspect-ratio: 4/3;
    width: 50%;
    justify-self: center;
}

.party-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.party-image-item:hover img {
    transform: scale(1.05);
}

/* 内容切换 */
.party-content-item {
    display: none;
}

.party-content-item.active {
    display: block;
}

/* 标题模块切换 */
.party-title-section {
    display: none;
}

.party-title-section.active {
    display: block;
}

.party-image-item:hover img {
    transform: scale(1.05);
}

/* 数影先锋模块样式 */
.shadow-pioneers-section {
    margin-bottom: 80px;
}

.shadow-pioneers-section .bg-danger {
    background-color: #dc3545 !important;
}

/* 党建动态模块样式 */
.party-updates-section {
    margin-bottom: 80px;
}

/* 党建动态标题模块切换 */
.party-updates-title-section {
    display: none;
}

.party-updates-title-section.active {
    display: block;
}

/* 党建动态轮播图样式 */
.party-carousel-wrapper {
    margin-bottom: 40px;
}

.party-carousel-container {
    position: relative;
    overflow: hidden;
}

.party-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.party-carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    margin-right: 20px;
    box-sizing: border-box;
}

.party-carousel-slide:last-child {
    margin-right: 0;
}

.party-carousel-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.party-carousel-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.party-carousel-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.party-carousel-content {
    padding: 15px;
}

.party-carousel-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.party-carousel-tag {
    font-size: 12px;
    color: #666;
}

.party-carousel-date {
    font-size: 12px;
    color: #999;
}

.party-carousel-title {
    font-size: 14px;
    font-weight: normal;
    color: #333;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.party-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.party-carousel-btn:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.party-carousel-prev {
    left: 10px;
}

.party-carousel-next {
    right: 10px;
}

/* 党建动态新闻列表样式 */
.party-news-list {
    margin-bottom: 30px;
    display: none;
}

.party-news-list.active {
    display: block;
}

.party-news-item {
    transition: background-color 0.3s ease;
    padding: 10px;
    margin-left: -10px;
    margin-right: -10px;
}

.party-news-item:hover {
    background-color: #f9f9f9;
}

.party-news-date {
    min-width: 100px;
    font-size: 13px;
    color: #999;
}

.party-read-btn {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 2px;
    white-space: nowrap;
}

.party-news-title {
    font-size: 15px;
    font-weight: normal;
    color: #333;
    line-height: 1.5;
}

.party-news-title a:hover {
    color: #dc3545;
}

.party-news-excerpt {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    margin-top: 5px;
}

.party-news-arrow {
    font-size: 24px;
    font-weight: 300;
    min-width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.party-news-item:hover .party-news-arrow {
    transform: translateX(5px);
    color: #dc3545;
}

/* 查看更多按钮样式 */
.party-more-btn {
    padding: 10px 40px;
    border: 1px solid #333;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-block;
}

.party-more-btn:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

/* 分页样式 */
.party-pagination {
    margin-top: 30px;
}

.party-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.party-page-btn:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #000;
}

.party-page-btn.active {
    background: #333;
    border-color: #333;
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
    }
    
    .party-images-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .party-image-top-left,
    .party-image-top-right,
    .party-image-bottom-center {
        grid-column: 1;
    }
    
    .party-image-top-left {
        grid-row: 1;
    }
    
    .party-image-top-right {
        grid-row: 2;
    }
    
    .party-image-bottom-center {
        grid-row: 3;
        width: 100%;
        justify-self: stretch;
    }
    
    .party-carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .party-news-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .party-news-date {
        min-width: auto;
    }
    
    .party-news-content {
        width: 100%;
    }
    
    .party-news-arrow {
        align-self: flex-end;
    }
}

@media (max-width: 576px) {
    .party-carousel-image {
        height: 150px;
    }
    
    .party-carousel-title {
        font-size: 13px;
    }
    
    .party-news-title {
        font-size: 14px;
    }
}