/* Banner 样式 */
.banner {
    position: relative;
    width: 100%;
    height: 620px;
    overflow: hidden;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1920px;
    margin: auto;
}

.banner-main {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.banner-image.active {
    opacity: 1;
}

.banner-content {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    width: 100%;
    max-width: 800px;
}

.banner-title {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Times New Roman', Times, serif;
}

.banner-subtitle {
    font-size: 1.2rem;
    margin-bottom: 6rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-family: 'Times New Roman', Times, serif;
    letter-spacing: 2px;
}

.banner-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: rgba(255, 255, 255, 0);
    border: 1px solid white;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.banner-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.arrow {
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.banner-button:hover .arrow {
    transform: translateX(5px);
}

.banner-thumbnails {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.thumbnail {
    width: 120px;
    height: 80px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail:hover img {
    transform: scale(1.1);
}

.thumbnail.active {
    border-color: white;
}

/* 响应式设计 - Banner */
@media (max-width: 992px) {
    .banner {
        height: 500px;
    }

    .banner-title {
        font-size: 2.5rem;
    }

    .banner-subtitle {
        font-size: 1rem;
    }

    .banner-thumbnails {
        bottom: 15px;
        right: 15px;
    }

    .thumbnail {
        width: 100px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 400px;
    }

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

    .banner-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .banner-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .banner-thumbnails {
        bottom: 10px;
        right: 10px;
    }

    .thumbnail {
        width: 80px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .banner {
        height: 300px;
    }

    .banner-title {
        font-size: 1.5rem;
    }

    .banner-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .banner-button {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }

    .banner-thumbnails {
        bottom: 5px;
        right: 5px;
        gap: 5px;
    }

    .thumbnail {
        width: 60px;
        height: 40px;
    }
}

/* 新闻区域样式 */
/* 新闻区域样式 - 调整后 */
.news-section {
    padding: 4rem 0;
    background-color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.news-column {
    display: flex;
    flex-direction: column;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.title-container {
    display: flex;
}

.news-title {
    font-size: 2.1rem;
    font-weight: bold;
    color: #DF8E0F;
    margin: 0;
    line-height: 1.2;
    margin-right: 5px;
    padding-bottom: 15px;
}

.diamond {
    color: #ff6600;
    font-size: 1.5rem;
    display: inline-block;
    transform: rotate(45deg);
    margin-left: 10px;
}

.news-subtitle {
    font-size: 1.2rem;
    color: #DF8E0F;
    margin: 0.5rem 0 0 0;
    font-weight: normal;
}

.view-more {
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
    top: 20%;
    font-weight: 600;
}

.view-more:hover {
    color: #ff6600;
}

/* 特色新闻 - 大图 */
.featured-news {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.news-featured {
    height: 250px;
    /* 右侧大图稍小一些 */
}

.featured-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    padding: 2rem 1.5rem 1.5rem;
}

.featured-title {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.4;
}

/* 新闻列表 - 横向排列标题和日期 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.news-item-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.news-item-horizontal:last-child {
    border-bottom: none;
}

.news-item-horizontal:hover {
    color: #ff9800;
}

.news-item-horizontal .news-item-title {
    font-size: 1rem;
    margin: 0;
    flex: 1;
    padding-right: 1rem;
}

.news-item-horizontal .news-item-date {
    font-size: 0.9rem;
    color: #888;
    white-space: nowrap;
}

.news-item-horizontal:hover .news-item-date {
    color: #ff9800;
}

/* 响应式设计 - 新闻区域 */
@media (max-width: 992px) {
    .news-title {
        font-size: 2rem;
    }

    .news-subtitle {
        font-size: 1rem;
    }

    .featured-news {
        height: 350px;
    }

    .news-featured {
        height: 220px;
    }

    .featured-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .news-header {
        flex-direction: column;
        margin-bottom: 0.5rem;
    }

    .view-more {
        margin-top: 0.5rem;
    }

    .featured-news {
        height: 300px;
    }

    .news-featured {
        height: 200px;
    }

    .featured-title {
        font-size: 1.2rem;
    }

    .news-item-horizontal {
        padding: 0.6rem 0;
    }

    .news-item-horizontal .news-item-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .news-section {
        padding: 2rem 0;
    }

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

    .news-subtitle {
        font-size: 0.9rem;
    }

    .featured-news {
        height: 250px;
    }

    .news-featured {
        height: 180px;
    }

    .featured-overlay {
        padding: 1.5rem 1rem 1rem;
    }

    .featured-title {
        font-size: 1.1rem;
    }

    .news-item-horizontal .news-item-title {
        font-size: 0.9rem;
    }

    .news-item-horizontal .news-item-date {
        font-size: 0.8rem;
    }
}

/* 学校概况区域样式 */
.profile-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px);
    background: url('/static/images/profile.png') center center / cover no-repeat;
}

.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    align-items: center;
}

.profile-content {
    max-width: 50%;
    padding: 2rem 0;
    position: relative;
    bottom: 100px;
}

.profile-header {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    box-shadow: 5px 5px 15px rgb(0, 0, 0, 0.05);
    border-bottom: 3px solid #ff0000;
}

.profile-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #DF8E0F;
    line-height: 1.2;
    margin-right: 1.5rem;
    padding-bottom: 15px;
}


.profile-subtitle {
    font-size: 1.4rem;
    color: #DF8E0F;
    /* margin: 0.5rem 0 0 0; */
    font-weight: normal;
}

.profile-description {
    margin-bottom: 2rem;
    color: #333;
}

.profile-description p {
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 3rem;
    font-weight: normal;
}

.profile-button {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background-color: transparent;
    border: 1px solid white;
    color: white;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.profile-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 响应式设计 - 学校概况区域 */
@media (max-width: 992px) {
    .profile-section {
        height: 600px;
    }

    .profile-content {
        max-width: 70%;
        bottom: 0;
    }

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

    .profile-subtitle {
        font-size: 1rem;
    }

    .profile-description p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

@media (max-width: 768px) {
    .profile-section {
        height: auto;
        min-height: 500px;
    }

    .profile-overlay {
        position: relative;
        padding: 3rem 0;
    }

    .profile-content {
        max-width: 90%;
    }

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

    .profile-subtitle {
        font-size: 0.9rem;
    }

    .profile-description p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    .profile-overlay {
        padding: 2rem 0;
    }

    .profile-content {
        max-width: 100%;
    }

    .profile-title {
        font-size: 1.5rem;
    }

    .profile-subtitle {
        font-size: 0.8rem;
    }

    .profile-description p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .profile-button {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* 校长简介区域样式 */
.principal-section {
    padding: 4rem 0;
    background-color: #f5f5f5;
}

.principal-container {
    display: flex;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.principal-info {
    flex: 1.2;
    padding: 3rem;
    padding-right: 10%;
}

.principal-header {
    margin-bottom: 2rem;
}

.principal-title {
    font-size: 4rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    line-height: 1.2;
}


.principal-subtitle {
    font-size: 2rem;
    color: #ff6600;
    margin: 0.5rem 0 8rem 0;
    font-weight: normal;
}

.principal-name {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 1.5rem 0;
}

.principal-description p {
    font-size: 1.2rem;
    line-height: 2;
    color: #666;
    margin-bottom: 0.2rem;
}

.principal-image {
    flex: 1;
    overflow: hidden;
}

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

/* 响应式设计 - 校长简介区域 */
@media (max-width: 992px) {
    .principal-info {
        padding: 2.5rem;
    }

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

    .principal-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .principal-name {
        font-size: 1.5rem;
    }

    .principal-description p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

@media (max-width: 768px) {
    .principal-container {
        flex-direction: column-reverse;
    }

    .principal-info {
        padding: 2rem;
    }

    .principal-image {
        height: 400px;
    }

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

    .principal-subtitle {
        font-size: 0.9rem;
    }

    .principal-name {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .principal-description p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    .principal-section {
        padding: 2rem 0;
    }

    .principal-info {
        padding: 1.5rem;
    }

    .principal-image {
        height: 300px;
    }

    .principal-title {
        font-size: 1.5rem;
    }

    .principal-subtitle {
        font-size: 0.8rem;
    }

    .principal-name {
        font-size: 1.3rem;
    }

    .principal-description p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
}

/* 漂浮广告样式 */
.ad-container {
    position: absolute;
    width: 100%;
    height: 350px;
    margin: 30px 0;
    overflow: hidden;
    /* 防止广告移出容器 */
    top: 80px;
}

/* 漂浮广告样式 */
.floating-ad {
    position: relative;
    /* 改为相对定位 */
    width: 200px;
    height: 100px;
    z-index: 10;
    cursor: pointer;
    /* 移除CSS动画，因为我们将使用JavaScript来控制位置 */
    transition: transform 0.3s;
    left: 0;
    /* 初始位置 */
}

.floating-ad:hover {
    transform: scale(1.1);
}

.floating-ad img {
    width: 100%;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}


.close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
}


/* video */
.video-container {
    max-width: 1600px;
    margin: 40px auto;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}


.school-info {
    position: relative;
    /* flex: 1; */
    width: 50%;
    padding: 30px;
    min-width: 300px;
}


.school-info-content {
    position: relative;
    z-index: 1
}

.school-info .profile-description {
    max-width: 100%;
}


.school-info p,
h2,
h3 {
    color: #333;
}


.video-section {
    /* flex: 1; */
    width: 50%;
    position: relative;
    background: url('/static/images/bg1.png') center center/cover no-repeat;
    display: flex;
    cursor: pointer;
}


.video-section h2 {
    margin-top: 5px;
    color: #ffA500;
    font-size: 1.7rem;
    font-weight: 500;
}


.video-section .background-video {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.video-section .video-content {
    padding: 30px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.play-button {
    background-color: white;
    color: #333;
    border: none;
    font-size: 16px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    width: 50px;
    height: 50px;
    border: 2px solid #333;
    margin-right: 10px;
}

.play-button:hover {
    transform: scale(1.05);
}

.play-icon {
    font-size: 20px;
    position: relative;
    left: 30%;
}

.video-thumbnail {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.video-player {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 640px;
    height: 360px;
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.video-player video {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.close-video {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 999;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .video-player {
        width: 90%;
        height: auto;
        aspect-ratio: 16/9;
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
}

.breadcrumb {
    background-color: #eaeaea;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
}

.breadcrumb a {
    color: #6c757d;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #ff6600;
}

.breadcrumb span {
    margin: 0 10px;
    color: #6c757d;
}

.row-left {
    flex: 1;
    display: flex;
    gap: 15px;
}

.left-item {
    width: 100%;
}

.row-right {
    flex: 1;
}

.prin-container {
    display: flex;
    padding: 20px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
}

.prin-img {
    width: 220px;
    height: auto;
}

.prin-img img {
    width: 100%;
}

.row-section .container {
    padding: 0;
}

.row {
    display: flex;
    gap: 16px;
}

.prin-content {
    flex: 2;
}

.prin-header {
    margin-left: 60px;
    margin-bottom: 30px;
    position: relative;
}

.prin-header h2 {
    color: #0052a4;
}

.prin-header::before {
    content: '';
    position: absolute;
    height: 30px;
    width: 30px;
    background-color: #ff9800;
    left: -40px;
    top: 5px;
}

.prin-detail {
    margin-left: 30px;
}

.prin-detail h2 {
    margin-bottom: 30px;
    color: #333;
}

.prin-detail p {
    font-size: 1.2rem;
    line-height: 2;
    color: #555;
}

.top-news {
    display: flex;
    border-bottom: 1px solid #222;
    margin-bottom: 15px;
}


.news-time {
    position: relative;
    top: -15px;
    margin-right: 10px;
    color: #daa520;
}

.top-time {
    font-size: 3rem;
}

.detail {
    position: relative;
    left: 85%;
    top: 15px;
    color: #daa520;
}

.news-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 1.2rem;
    color: #666;
}