/* 变量定义 */
:root {
    --primary-blue: #1a3a6c;
    --secondary-blue: #2d5ba0;
    --accent-red: #e63946;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-color: #333;
    --border-color: #dee2e6;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: none; /* 移除阴影效果 */
    border-bottom: none;
    padding: 15px 0;
    position: relative;
    min-height: 80px;
}

/* 修改品牌标识尺寸 */
.navbar-brand {
    min-width: 150px;
    padding: 0;
}

.navbar-brand img {
    height: 47px !important;
    width: 150px !important;
    max-height: 47px;
}

/* 调整导航链接样式 */
.navbar-nav .nav-link {
    color: #fff; /* 更改文字颜色为白色 */
    font-weight: 500;
    font-size: 0.9rem; /* 缩小字体 */
    padding: 8px 12px; /* 减小内边距 */
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-blue);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: var(--primary-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* 修改导航项水平间距 */
.navbar-nav {
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 25px;
}

/* 修复移动端居中问题 */
@media (max-width: 992px) {
    .navbar-nav .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }
}

/* 添加悬停放大效果 */
.navbar-brand:hover img {
    transform: scale(1.05);
}

/* 修改导航栏居中样式 */
.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* 修正导航链接间距 */
.navbar-nav {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 添加移动端适配 */
@media (max-width: 992px) {
    .navbar-nav .nav-link {
        text-align: center;
        padding: 0.5rem 0;
    }
}

/* 新增一体化布局样式 */
.navbar-section {
    min-height: 80px;
    background-color: rgba(230, 57, 70, 0.1); /* 改为淡紫色半透明背景 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1; /* 降低导航栏层级 */
    transition: background-color 0.3s ease; /* 添加过渡效果 */
}

/* 修正导航栏背景融合效果 */
.navbar {
    background-color: transparent; /* 改为透明背景 */
    backdrop-filter: blur(10px);    /* 添加背景模糊效果 */
}

/* 调整遮罩层样式 */
.purple-overlay {
    background: linear-gradient(to bottom,
               rgba(138, 43, 226, 0.4),
               rgba(138, 43, 226, 0.1));
    z-index: 0;
}

/* 添加导航栏阴影效果 */
.navbar {
    box-shadow: none;
}

/* 强化文字对比度 */
.navbar-nav .nav-link {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
    .navbar-section {
        background-color: white !important;
    }
}

/* 保持原有响应式样式 */
@media (max-width: 992px) {
    .navbar-section {
        min-height: 60px;
        background-color: white !important; /* 移动端保持纯白背景 */
    }
}

/* 新增全屏宽度容器样式 */
.navbar-section .container-fluid {
    width: 100% !important; /* 改为100%避免溢出 */
    max-width: 1200px; /* 添加最大宽度限制 */
    margin: 0 auto; /* 确保水平居中 */
}

/* 修改轮播图样式 */
.carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 修改: 允许按钮溢出 */
    overflow: visible;
    z-index: -1;
}

/* 调整遮罩层层级 */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 55, 121, 0.7), transparent);
    z-index: 1; /* 确保遮罩层在轮播图内容之上，但低于导航按钮 */
}

/* 提升按钮容器层级 */
.carousel-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20; /* 提升层级高于遮罩层 */
    display: flex;
    gap: 8px;
    justify-content: center;
    transition: all 0.3s ease;
}

/* 修改：优化按钮为20px圆形 */
.carousel-controls .carousel-control-prev,
.carousel-controls .carousel-control-next {
    background-color: #fff;
    border: 1.5px solid #d63384;
    box-shadow: 0 0 5px rgba(214, 51, 132, 0.5);
    border-radius: 50%; /* 确保圆形 */
    padding: 0;
    width: 20px; /* 固定宽度20px */
    height: 20px; /* 固定高度20px */
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-controls .carousel-control-prev:hover,
.carousel-controls .carousel-control-next:hover {
    background-color: #d63384;
    border-color: #be377a;
    box-shadow: 0 0 8px rgba(214, 51, 132, 0.8);
}

/* 修改：调整箭头图标大小 */
.carousel-controls .carousel-control-prev-icon,
.carousel-controls .carousel-control-next-icon {
    filter: invert(1);
    opacity: 0.9;
    font-size: 0.5rem; /* 缩小图标尺寸 */
    width: 10px; /* 固定宽度 */
    height: 10px; /* 固定高度 */
    background-size: 10px 10px; /* 调整背景图大小 */
}

/* 导航栏内容容器添加背景遮罩 */

/* 修复移动端导航栏内容显示 */
@media (max-width: 992px) {
    .navbar-section {
        min-height: 60px;
    }

    .carousel-background {
        display: none;
    }

    .navbar .container-fluid {
        background-color: white !important; /* 移动端移除半透明背景 */
    }

    .navbar-nav {
        justify-content: center !important;
        text-align: center !important;
    }

    .navbar-brand {
        margin-right: 1rem !important;
    }
}

/* 保持导航项水平间距 */
.navbar-nav {
    gap: 1.5rem;
}

/* 修正导航栏高度适配 */
.navbar {
    min-height: 80px;
    padding: 15px 0;
}

/* 英雄区域样式 */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1498243691581-b145c3f54a5a?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    opacity: 0.15;
}

.hero-badge {
    background-color: var(--accent-red);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 35px;
    max-width: 600px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.stats-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 25px 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 25px;
    transition: all 0.4s ease;
    text-align: center;
}

.stats-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.stats-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
    line-height: 1;
}

.stats-label {
    font-size: 1rem;
    color: var(--dark-gray);
    font-weight: 500;
}

/* 通用部分样式 */
.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--light-gray);
}

.section-title {
    position: relative;
    margin-bottom: 45px;
    font-weight: 700;
    color: var(--primary-blue);
    padding-bottom: 15px;
    font-size: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent-red);
    border-radius: 2px;
}

.btn-primary-custom {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #142a52;
    border-color: #142a52;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 58, 108, 0.3);
    color: white;
}

.btn-outline-custom {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 58, 108, 0.3);
}

/* 学院简介样式 */
.about-hero-title {
    font-size: 45px;
    font-weight: 800;
    color: #1a2c5c;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.about-hero-subtitle {
    font-size: 24px;
    color: #2d5ba0;
    font-weight: 500;
    margin-bottom: 18px;
    letter-spacing: 2px;
}

.about-hero-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 18px;
    line-height: 1.8;
}

.about-hero-more {
    font-size: 18px;
    color: #1a3a6c;
    text-decoration: underline;
    margin-bottom: 24px;
    display: inline-block;
}

/* 新增教师卡片背景图CSS类 */
.faculty-img-t1 {
    background-image: url('../images/t1.png') !important;
}

.faculty-img-t2 {
    background-image: url('../images/t2.png') !important;
}

.faculty-img-t3 {
    background-image: url('../images/t3.png') !important;
}

.faculty-img-t4 {
    background-image: url('../images/t4.png') !important;
}

.faculty-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.faculty-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.faculty-info {
    padding: 15px;
    text-align: center;
}

.faculty-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.faculty-title {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* 添加左右箭头按钮样式 */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1;
    padding: 10px;
}

.carousel-control-prev {
    left: 0;
}

.carousel-control-next {
    right: 0;
}

.faculty-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    margin: 0 3px 8px;
}

.faculty-badge-primary {
    background: rgba(26, 58, 108, 0.1);
    color: var(--primary-blue);
}

.faculty-badge-warning {
    background: rgba(230, 57, 70, 0.1);
    color: var(--accent-red);
}

.honor-highlight {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
}

/* 教学科研样式调整 */
.research-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    padding: 25px;
    transition: all 0.3s ease;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.research-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-blue);
    position: relative;
    padding-bottom: 15px;
}

.research-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-red);
}

.research-item {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}

.research-item-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 0%; /* 新增：允许伸缩 */
    min-width: 0; /* 新增：允许内容截断 */
}

.research-item-date {
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 16px;
    flex-shrink: 0; /* 新增：防止收缩 */
}

/* 左侧大图区域样式 */
.research-image {
    position: relative;
    width: 100%;
    height: 360px; /* 固定高度 */
}

.research-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.research-image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgb(23, 49, 119); /* 蓝色背景 */
    color: white;
    padding: 15px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.research-image-info-date {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.research-image-info-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* 学生工作样式 */
.student-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
}

.student-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.student-card-left {
    position: relative;
}

.student-img {
    height: 435px;
    background-size: cover;
    background-position: center;
}

.student-img-left {
    background-image: url('https://placehold.co/580x435');
}

.student-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background-color: var(--primary-blue);
    color: white;
}

.student-info span {
    font-size: 1rem;
    margin-bottom: 10px;
}

.student-icons {
    display: flex;
    gap: 10px;
}

.student-icons i {
    font-size: 1.2rem;
    cursor: pointer;
}

.student-card-blue {
    background-color: var(--primary-blue);
    color: white;
}

.student-body {
    padding: 20px;
}

.student-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark-gray);
}

.student-text {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.7;
}

.student-date {
    color: #888;
    font-size: 0.9rem;
}

/* 校企合作样式 */
.cooperation-content {
    font-size: 1.05rem;
    margin-bottom: 25px;
    line-height: 1.8;
}

.cooperation-logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.cooperation-logo {
    background: var(--light-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: var(--primary-blue);
    transition: all 0.3s ease;
    padding: 10px;
}

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

.cooperation-logo:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.05);
}

/* 学院荣誉样式 */
.honor-section {
    background-color: var(--primary-blue);
    color: white;
}

.honor-section .section-title {
    color: white;
}

.certificates-carousel {
    position: relative;
    margin-top: 40px;
    overflow: hidden;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    padding: 10px;
}

.carousel-control.prev {
    left: 0;
}

.carousel-control.next {
    right: 0;
}

.certificates {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.certificate {
    flex: 0 0 147.5px; /* 每张证书宽度为147.5px */
    margin-right: 7.5px; /* 减少右侧间距 */
    scroll-snap-align: start;
}

.certificate img {
    width: 100%;
    height: auto;
}

.certificate .caption {
    background-color: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 16px;
}

.honor-highlight {
    /* 去掉背景颜色 */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
}

/* 页脚样式 */
.footer {
    background: var(--primary-blue);
    color: white;
    padding: 70px 0 0; /* 原padding:70px 0 30px */
}

/* 新增版权信息垂直定位修正 */
.copyright {
    position: absolute;
    bottom: 0; /* 精准贴底 */
    left: 0;
    right: 0;
    z-index: 10;
    margin-top: 0 !important; /* 强制清除可能的外边距 */
}

/* 调整页脚链接样式 */
.footer-title {
    font-size: 16px;
    color: white;
    margin-bottom: 10px;
}

.footer-link {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: white;
}

/* 确保标题和链接在同一行 */
.col-lg-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* 社交图标 */
.footer .bi {
    font-size: 1.5rem;
}

/* 导航链接 */
.footer-links li {
    margin-bottom: 0.5rem;
}

/* 联系方式 */
.contact-info li {
    margin-bottom: 0.5rem;
}

/* 新增：页脚列间距 */
.footer .col-lg-2 {
    margin-bottom: 1.5rem; /* 列间距 */
}

/* 响应式调整 */
@media (max-width: 992px) {
    .footer .col-lg-2 {
        flex-basis: 50%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section {
        padding: 60px 0;
    }

    .about-circle {
        width: 250px;
        height: 250px;
    }

    .about-text {
        font-size: 1.5rem;
    }

    .about-college-name {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .carousel-background {
        display: none;
    }

    .cooperation-logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.3rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .about-circle {
        width: 220px;
        height: 220px;
    }

    .about-text {
        font-size: 1.3rem;
    }

    .about-college-name {
        font-size: 1.8rem;
    }

    .cooperation-logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 修复移动端居中问题 */
@media (max-width: 992px) {
    .navbar-nav {
        justify-content: center !important;
        text-align: center !important;
    }

    .navbar-toggler {
        margin-left: auto !important;
    }
}

/* 强制清除轮播图容器底部间距 */
.carousel-background {
    margin-bottom: -1px; /* 消除可能存在的1px间隙 */
}

/* 调整遮罩层覆盖范围 */
.purple-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(138, 43, 226, 0.7), transparent);
    z-index: 0; /* 提升到轮播图之上，但低于导航栏 */
}

/* 修正导航栏定位 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 2; /* 高于所有元素 */
}

/* 强化容器定位上下文 */
.carousel {
    position: relative;
    overflow: visible;
}

.carousel-item {
    position: relative;
}

/* 调整遮罩层层级 */
.purple-overlay {
    z-index: 1;
}

/* 新增：为导航栏区域添加底部间距 */
.navbar-section {
    margin-bottom: 60px; /* 添加间距 */
}

.about-hero-section {
    margin-top: 60px; /* 添加与上方区块的距离 */
}

/* 添加渐变背景 */
.about-hero-imgbox {
    background: linear-gradient(135deg, #a8e6cf, #d9edf7); /* 绿色到蓝色渐变 */
    position: relative;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-top: 40px; /* 添加或修改：整体下移60px */
}

/* 学院标志（Logo） */
.about-hero-logoimg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 10px;
    z-index: 3; /* 提升层级至最高 */
}

/* 允许 hy.png 右侧溢出展示 */
.about-hero-groupimgbox {
    position: absolute;
    bottom: 0;
    left: 88%; /* 调整左侧位置 */
    transform: translateX(-55%); /* 确保居中 */
    width: 450px; /* 增加宽度以适应溢出 */
    overflow: visible; /* 允许内容溢出 */
    z-index: 2; /* 调整层级以适配 logo-round */
}

.about-hero-groupimg {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    display: block;
    background: #fff;
    border: 4px solid #fff;
}

/* 父容器确保不裁剪子元素 */
.about-hero-imgbox {
    position: relative;
    width: 500px;
    height: 600px;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    overflow: visible; /* 确保子元素可以溢出 */
}

/* 响应式调整 */
@media (max-width: 700px) {
    .about-hero-groupimgbox {
        left: 80%; /* 小屏幕下调整位置 */
        width: 265px; /* 减少宽度以适应屏幕 */
    }
}

.about-hero-content-col {
    padding-left: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #1a2c5c;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.about-hero-subtitle {
    font-size: 1.2rem;
    color: #2d5ba0;
    font-weight: 500;
    margin-bottom: 18px;
    letter-spacing: 2px;
}

.about-hero-text {
    font-size: 1.08rem;
    color: #333;
    margin-bottom: 18px;
    line-height: 1.8;
}

.about-hero-more {
    font-size: 1rem;
    color: #1a3a6c;
    text-decoration: underline;
    margin-bottom: 24px;
    display: inline-block;
}

.about-hero-statsbox {
    width: 575px; /* 设置宽度 */
    height: 200px; /* 设置高度 */
    background: #142c5c; /* 背景颜色 */
    border-radius: 0; /* 去掉圆角 */
    padding: 28px 0;
    color: #fff;
    margin-top: 18px;
    box-shadow: 0 2px 12px rgba(20,44,92,0.08);
}

.about-hero-stats i {
    font-size: 40px; /* 调整图标大小 */
    margin-bottom: 8px;
    display: block;
}

.about-hero-stats div {
    font-size: 1rem; /* 调整文字大小 */
}

.about-hero-numbers {
    margin-top: 50px;
}

.about-hero-number {
    font-size: 2.2rem;
    font-weight: bold;
    color: #142c5c;
}

.about-hero-label {
    font-size: 1rem;
    color: #333;
}

@media (max-width: 1000px) {
    .about-hero-row {
        flex-direction: column;
        align-items: center;
    }
    .about-hero-img-col, .about-hero-content-col {
        max-width: 100%;
        min-width: 0;
        padding-left: 0;
    }
   .about-hero-groupimgbox {
        width: 50%;
        max-width: 50vw;
    }
    .about-hero-bgimg, .about-hero-groupimg {
        width: 100%;
        height: 100%;
    }
    .about-hero-logoimg {
        width: 30px;
        height: 30px;
    }
}

.party-building-section {
    padding: 80px 0;
}

.party-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.party-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.party-card .card-img-top {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.party-card .card-body {
    padding: 20px;
}

.party-card .card-text {
    font-size: 1rem;
    line-height: 1.5;
}

.party-card .card-text span {
    font-weight: 600;
    margin-right: 10px;
}

.party-card .card-text small {
    font-size: 0.9rem;
    color: #666;
}

/* 历史图像样式 */
.history-images {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.history-images .image-block {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.history-images .image-block img,
.history-images .image-block video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.history-images .image-block:hover img,
.history-images .image-block:hover video {
    transform: scale(1.05);
}

.history-images .image-block .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1rem;
    text-align: center;
}

/* 轮播图标题样式增强 */
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2; /* 保持标题在遮罩层之下，轮播内容之上 */
    padding-bottom: 3rem;
}

/* 强化遮罩层样式 */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(38, 68, 119, 0.7), transparent);
    z-index: 3; /* 确保遮罩层始终在轮播内容之上 */
}

/* 修正导航栏层级冲突 */
.navbar-section {
    position: relative;
    z-index: 4; /* 确保导航栏始终在最上层 */
}

/* 新增轮播图遮罩层样式 */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 55, 121, 0.7), transparent);
    z-index: 1; /* 确保遮罩层在轮播图内容之上，但低于导航按钮 */
}

/* 调整轮播图背景容器以支持遮罩层 */
.carousel-background {
    position: relative;
    overflow: visible;
}

/* 新增：底部导航按钮样式 */
.carousel-controls-bottom {
    position: absolute;
    bottom: 30px; /* 增加底部间距 */
    left: 50%; /* 水平居中 */
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px; /* 增加按钮间距 */
}

.carousel-controls-bottom .carousel-control-prev,
.carousel-controls-bottom .carousel-control-next {
    background-color: #fff;
    border: 1.5px solid var(--primary-blue);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 36px; /* 统一按钮尺寸 */
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-controls-bottom .carousel-control-prev:hover,
.carousel-controls-bottom .carousel-control-next:hover {
    background-color: #fff;
    border-color: #d63384;
    box-shadow: none;
}

/* 新增响应式调整 */
@media (max-width: 768px) {
    .carousel-controls-bottom {
        bottom: 20px;
        gap: 8px;
    }
    
    .carousel-controls-bottom .carousel-control-prev,
    .carousel-controls-bottom .carousel-control-next {
        width: 30px;
        height: 30px;
    }
}
