@font-face {
    font-family: 'PingFangSC';
    src: url('PingFangSC-Medium.ttf') format('truetype');
}

a {
    text-decoration: none; 
    color: inherit;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #f9f9f9;
    overflow-x: hidden;
    font-family: 'PingFangSC', sans-serif;
    background-image: url('image3.png');
    background-size: contain;
    background-position: bottom center;
    background-repeat: no-repeat;
    z-index: -1;        /* 放在内容层之下 */
}


h1 {
    font-size: 46px;
    font-weight: bold;
    text-align: left;
    margin: 10px 0 20px 10%;
    line-height: 1.2;
    color: #333;
    position: relative;
}

h2 {
    font-size: 30px;
    font-weight: bold;
    text-align: left;
    margin: 10px 0 20px 0;
    line-height: 1.2;
    color: #407bff;
    position: relative;
}

.section-title-container {
    width: 100%;
    text-align: left;
    padding-left: 8%;       /* 标题左侧距离 */
    margin: 0 auto;
    padding: 20px 0; 
}
/* 临时*/
h1, h3 {
    display: inline-block;
}

.homepage-image-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    background-size: cover;
    background-position: center bottom;
    width: 100%;
    height:auto;
    z-index: 1;
}

.fill-img {
    position: relative;
    width: 100%;
    object-position: bottom;
    object-fit: cover;
}

/* 叠加层*/
.overlay-images {
    position: relative;
    bottom:0;       /* 使image1234，label1234和homepage底边对齐 */
    left: 0;
    width: 100%;
    z-index: 2;
    display: flex;
    align-items: flex-end;
}

/* 跳转链接覆盖位置 */
.overlay-images a {
    display: block;
    position: absolute;
    bottom: 0;
    width: 100%;
    transition: transform 0.3s ease;
}

.overlay-images img {
    display: block;
    position: absolute;
    bottom: 0;
    transition: transform 0.3s ease; 
    transform-origin: bottom;
}

.image1 {
    left: 0; 
    width: 26.4%;       /* 宽度根据美工原图的比例 */
    height: auto;
    z-index: 3;
}

.image2 {
    left: 26.4%;
    width: 19%;
    height: auto;
}

.image3 {
    right: 26.4%;
    width: 19%;
    height: auto;
}

.image4 {
    right: 0;
    width: 26.4%;
    height: auto;
    z-index: 3;
    transform-origin: bottom right;
}

.overlay-images a:hover > img:not(.label1):not(.label2):not(.label3):not(.label4) {
    transform: scale(1.1);      /* label不随悬停变化大小 */
}

.overlay-images .label1 {
    left: 3%;
    width: 15%;
    opacity: 0;
}

.overlay-images .label2 {
    left: 28%; 
    width: 15%;
    opacity: 0;
}

.overlay-images .label3 {
    right: 28%; 
    width: 15%;
    height: auto;
    opacity: 0;
}

.overlay-images .label4 {
    right: 3%;
    width: 15%;
    height: auto;
    opacity: 0;
}

.overlay-images a:hover .label1,
.overlay-images a:hover .label2,
.overlay-images a:hover .label3,
.overlay-images a:hover .label4 {
    position: absolute;
    bottom: 20%; 
    opacity: 1;
    z-index: 4;
    transition: opacity 0.3s ease;
}

.overlay-images a:hover {
    cursor: url('../img/magic.png') 16 16,auto;     /* 悬停改变鼠标，中心移动到（16px,16px）位置*/
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 10px 20px;
    bottom: 0;
    width: 100%;
    background-color: #eceff5;
    color: #4370e2;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 10;
    min-height: 70px;       /* 最小高度，变形后页脚内容可能超过*/
}

.footer-left,
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
}

.footer-left p,
.footer-right p {
    margin: 0;
    line-height: 1.2;
}

.footer-right .beian {
    display: flex;
    align-items: center;
}

.footer-right .beian img {
    margin-right: 5px;
    width:10%;      /* 公安图标大小 */
}

.text-content {
    display: flex;
    flex-direction: column;
    padding: 5%;
    justify-content: space-between;
    color: #747474;
    font-size: 28px;
    gap: 20px;
    font-family: 'PingFangSC', sans-serif;      /* 自下载字体 */
}

.content-container {
    display: flex;
    justify-content: space-between; 
    padding: 0 5%;
}

.text-content {
    flex: 1;
    padding-right: 5%; 
}

.text-content p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.title-icon {
    position: relative;
    margin: 0 3px -5px 3px;
    width: 12px;
    height: 12px;
    bottom: 0;
}

.carousel {
    flex: 2;
    position: relative;
    display: flex;
}

.carousel-images {
    position: relative;
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;        /* 超过100%就无影响 */
    height: auto; 
    align-items: center;
    top:5%;
    justify-content: space-between;
}

.carousel-item {
    position: absolute;
    width: 33%;     /* 控制宽度 每个item为整个容器宽度的33% */
    transition: transform 0.5s ease-in-out;
    border-radius: 12px; /* 圆角 */
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}

.arrow {
    position: absolute;
    top: -16%;      /* 距离顶部-16% */
    transform: translateY(0);
    cursor: pointer;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-arrow {
    right: calc(15% + 40px);
}

.right-arrow {
    right: 10%;
}

.section1-image {
    position: relative;
    width: 60%;
    margin-right: 3%;
    margin-left: 5%;
    margin-top: 5%;
    overflow: visible;
}

.section1-image img.content-image {
    width: 100%;
    border-radius: 10px;
}

.section1-image .circle-icon {
    position: absolute;
    top: -80px;     /* 由于这个圆圈图标本身透明区域很多，像素反而更好定位*/
    left:-80px;
    z-index: 10;
}
.content-section {
    display: flex;
    flex-direction: column;
    padding: 20px 5%; 
}

.content-block {
    display: flex;
    align-items: stretch;
    margin-bottom: 30px;
}

.content-text {
    width: 40%;
    color: #555;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content-text h2,
.content-text p {
    margin: 0;
}

.content-text h2 {
    font-size: 28px;
    color: #407bff;
    margin-top: 15%;
    margin-bottom: 10px;
}

.content-text p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: auto;
}

.section1-stats {
    display: flex;
    flex-direction: column;
    gap: 5px; 
}

.section1-stat-item {
    display: flex;
    justify-content: flex-start;  /* 保持所有内容左对齐 */
    gap: 40px; 
}

.section1-stat-number {
    font-weight: bold;
    font-size: 28px;
    color: #407bff;
}

.section1-stat-label {
    font-size: 16px;
    color: #666;
}

.course-image {
    width: 100%;
    height: auto;
    display: block;
}

#section-2 {
    padding: 40px;
    background-color: #f9f9f9;
}

.section2-content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 0 6%;
    gap: 4%;
}

.left-side-box {
    background-color: #ffffff;
    border-radius: 34px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 48%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.right-side-box {
    background-color: #ffffff;
    border-radius: 34px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 48%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.avatar-and-description {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    flex-grow: 1;
    flex-wrap: wrap;
}

.avatars {
    flex: 1; /* 头像组占据一半宽度 */
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.section2-description {
    flex: 1;        /* 文本占据一半宽度 */
    font-size: 16px;
    color: #555;
}

.section2-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.section2-stat-item {
    width: 33.33%; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-left: 20px;
    border-left: 1px solid #ddd;
}

.section2-stat-item:first-child {
    border-left: none;
}

.section2-stat-number {
    font-size: 24px;
    color: #407bff;
    font-weight: bold;
}

.section2-stat-label {
    margin-top: 5px;
    font-size: 14px;
    color: #555;
}

.event-image {
    width: 100%; 
    display: block;
}
.event-description {
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
    font-size: 16px;
    color: #555;
    flex-grow: 1;       /* 让描述内容填满剩余空间 */
}


.date {
    font-size: 14px;
    color: #999;
    text-align: right;
    margin-top: 10px;
}

.second-carousel {
    width: 100%;        /* 让轮播图容器等于满页面宽度 */
    margin-left: 10%;       /* 但留出左侧间距 */
    position: relative;
    padding-top: 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.second-carousel .carousel456-item {
    width: 34%; 
    transition: transform 0.5s ease-in-out;
    flex-shrink: 0;
    margin-right: 3%;
    box-sizing: border-box;
}

.second-carousel .carousel456-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.second-carousel .arrow {
    position: absolute;
    top: 8%; 
    right: 2%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.second-carousel .left-arrow {
    right: calc(23% + 40px);
}

.second-carousel .right-arrow {
    right: 20%;
}

.scrolling-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}

.scrolling-carousel {
    display: flex;
    justify-content: flex-start;
    position: relative;
    margin-bottom: 20px;
}

.scrolling-carousel-item {
    min-width: 25%;
    margin: 0 10px;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    background-color: #407bff;      /* 默认背景色蓝 */
    color: white;
}

.scrolling-carousel-item:nth-child(even) {
    background-color: #e0e4ea;      /* 修改单数背景色灰*/
    color: #333;        /* 实际上两行背景色相同，与设计原型不符，但轮播后看不出来*/
}

.carousel-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-item-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.carousel-item-header p {
    margin: 0;
    font-weight: bold;
    font-size: 16px;
}

.carousel-item-review p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.scrolling-carousel-item:nth-child(even) .carousel-item-review p {
    color: #666;
}

#section-5 {
    padding: 0 40px 20px;
    background-color: #f9f9f9;
}

.timeline-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    position: relative;
}

.timeline-content.left {
    display: flex;
    flex-direction: column;
    width: 45%;
    align-items: flex-end; /* 确保内容右对齐 */
    padding-right: 20px;
}

.timeline-content.right {
    display: flex;
    flex-direction: column;
    width: 45%;
    align-items: flex-start;
    padding-left: 20px;
}

.timeline-line {
    width: 2%;      /* 分隔线的宽度 */
    background-size: contain;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.timeline-line img {
    width: 100%;
    height: 100%;       /* 高度与容器相同 */
    object-fit: cover;      /* 保持图片比例 */
}

.timeline-item-content {
    background-color: transparent;
    padding: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: none;
    width: 100%;
    align-items: inherit;
}

.timeline-item-content h2 {
    font-size: 24px;
    margin: 0 0 4px;
    color: #333;
    align-self: inherit;
}

.timeline-item-content p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    align-self: inherit;
}

.timeline-item-content img {
    width: 80%;
    border-radius: 8px;
    object-fit: cover;
    align-self: inherit;
}

.timeline-item-content.first {
    margin-top: 10%;
}

.timeline-item-content.third {
    margin-top:24%
}

.timeline-item-content.second {
    margin-top: 46%;        /*三组图文位置，调整屏幕比例后可能位移*/
}

#section-6 {
    position: relative;
    width: 100vw;
    padding: 20px 20px;
    text-align: center;
    background-image: url('../img/bg3.png');        /* 设置背景图片 */
    background-position: bottom center;
    background-size: cover;         /* 背景覆盖整个容器 */
    background-repeat: no-repeat;
    margin-left: calc(50% - 50vw);      /* 确保容器内容居中且背景全屏 */
}


#section-6 h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

#section-6 p {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
}

.qr-code-container {
    display: inline-block;
    padding: 5px;
    background-color: white;
    border: 4px solid #407bff;      /* 蓝色描边 */
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);        /* 阴影 */
}

.qr-code-container img {
    width: 200px;
    height: 200px;
    border-radius: 12px; 
    
}
