/* ==========================================================================
   首页样式
   ========================================================================== */

/* ---------- 首屏轮播 ---------- */
.hero {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: #111;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
}

.hero-slide.on {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 7s linear;
}

.hero-slide.on img {
    transform: scale(1);
}

.hero-slide .mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .38) 55%, rgba(0, 0, 0, .15) 100%);
}

.hero-slide .txt {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--w);
    transform: translate(-50%, -46%);
}

.hero-slide .txt h2 {
    font-size: 46px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .6);
}

.hero-slide .txt p {
    margin-top: 16px;
    font-size: 17px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, .82);
}

.hero-slide .txt .btn {
    display: inline-block;
    margin-top: 30px;
    padding: 11px 34px;
    font-size: 14px;
    letter-spacing: 2px;
    color: #fff;
    border: 1px solid var(--gold);
    background: rgba(185, 156, 80, .14);
}

.hero-slide .txt .btn:hover {
    background: var(--gold);
    color: #1e1e1e;
}

.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    z-index: 3;
    text-align: center;
}

.hero-dots i {
    display: inline-block;
    width: 34px;
    height: 3px;
    margin: 0 5px;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
    transition: .25s;
}

.hero-dots i.on {
    background: var(--gold);
}

/* ---------- 通知公告滚动条 ---------- */
.notice-bar {
    height: 62px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}

.notice-bar .wrap {
    display: flex;
    align-items: center;
    height: 62px;
}

.notice-bar .tag {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 22px;
    margin-right: 22px;
    border-right: 1px solid var(--line);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.notice-bar .tag::before {
    content: "";
    width: 3px;
    height: 16px;
    background: var(--blue);
}

.notice-roll {
    position: relative;
    flex: 1;
    height: 30px;
    overflow: hidden;
}

.notice-roll ul {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    transition: top .5s ease;
}

.notice-roll li {
    height: 30px;
    line-height: 30px;
    font-size: 14px;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-roll li a:hover {
    color: var(--gold);
}

.notice-roll li span {
    margin-right: 12px;
    color: var(--gold);
    font-size: 13px;
}

/* ---------- 首页区块通用间距 ---------- */
.home-sec {
    padding: 56px 0 0;
}

/* ---------- 新闻 + 公告 双栏 ---------- */
.news-cols {
    display: flex;
    gap: 40px;
}

.news-cols .col-l {
    flex: 1;
    min-width: 0;
}

.news-cols .col-r {
    flex: 0 0 360px;
}

/* 头条 */
.news-top {
    display: flex;
    gap: 24px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px dashed var(--line);
}

.news-top .pic {
    flex: 0 0 380px;
    height: 240px;
    overflow: hidden;
    background: #14181d;
}

.news-top .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.news-top:hover .pic img {
    transform: scale(1.05);
}

.news-top .info h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
}

.news-top:hover .info h3 {
    color: var(--gold);
}

.news-top .info .date {
    display: block;
    margin: 12px 0 14px;
    font-size: 13px;
    color: var(--gold);
}

.news-top .info p {
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--t2);
}

/* 新闻列表（带缩略图） */
.news-list li {
    display: flex
    ;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid #262d34;
}

.news-list li:last-child {
    border-bottom: 0;
}

.news-list .pic {
    flex: 0 0 148px;
    height: 96px;
    overflow: hidden;
    background: #14181d;
}

.news-list .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.news-list li:hover .pic img {
    transform: scale(1.07);
}

.news-list .info {
    flex: 1;
    min-width: 0;
}

.news-list .info h3 {
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--t1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list li:hover .info h3 {
    color: var(--gold);
}

.news-list .info .meta {
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--t3);
}

.news-list .info .meta .tag {
    display: inline-block;
    margin-right: 12px;
    padding: 1px 8px;
    font-size: 11.5px;
    color: var(--gold);
    border: 1px solid var(--gold-soft);
}

/* 公告列表 */
.notice-list {
    background: var(--bg-2);
    padding: 6px 20px 12px;
    border-top: 2px solid var(--gold);
}

.notice-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.notice-list li:last-child {
    border-bottom: 0;
}

.notice-list a {
    display: block;
    font-size: 14px;
    line-height: 1.6;
    color: var(--t1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notice-list li:hover a {
    color: var(--gold);
}

.notice-list .date {
    display: block;
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--t3);
}

/* ---------- 校园风采 ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.gallery-grid a {
    position: relative;
    display: block;
    height: 190px;
    overflow: hidden;
    background: #14181d;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}

.gallery-grid a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent 60%);
    opacity: 0;
    transition: opacity .35s;
}

.gallery-grid a:hover img {
    transform: scale(1.08);
}

.gallery-grid a:hover::after {
    opacity: 1;
}

/* 悬停时浮现的图片说明 */
.gallery-grid em {
    position: absolute;
    right: 0;
    bottom: 12px;
    left: 0;
    z-index: 1;
    font-size: 14px;
    font-style: normal;
    letter-spacing: 1.5px;
    text-align: center;
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .35s, transform .35s;
}

.gallery-grid a:hover em {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 快捷入口 ---------- */
.quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.quick a {
    display: block;
    padding: 24px 10px;
    text-align: center;
    font-size: 15px;
    letter-spacing: 1px;
    color: var(--t1);
    background: var(--bg-4);
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: .25s;
}

.quick a i {
    display: block;
    margin-bottom: 10px;
    font-size: 20px;
    font-style: normal;
    color: var(--gold);
}

.quick a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #1e1e1e;
}

.quick a:hover i {
    color: #1e1e1e;
}
