/* ==========================================================================
   经济管理学院网站 - 首页专用样式
   布局参考: 经典高校院系网站 (banner+两栏+滚动画廊)
   ========================================================================== */

/* ==========================================================================
   1. 顶部 Banner 区
   ========================================================================== */
.home-banner {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    margin-top: 0;
}

.home-banner .banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-banner .banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 112, 192, 0.65) 0%, rgba(44, 160, 208, 0.5) 100%);
    z-index: 1;
}

.home-banner .banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.home-banner .banner-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 6px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 12px;
}

.home-banner .banner-content .banner-subtitle {
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    opacity: 0.95;
}

.home-banner .banner-content .banner-en {
    font-size: 0.85rem;
    letter-spacing: 2px;
    opacity: 0.7;
    text-transform: uppercase;
}

/* 首页导航覆盖在banner上 */
body.home-page .site-header {
    background: rgba(0, 112, 192, 0.3);
    box-shadow: none;
}

body.home-page .site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

body.home-page .site-header .logo,
body.home-page .site-header .nav-menu > li > a {
    color: #fff;
    font-weight: 600;
}

body.home-page .site-header .nav-menu > li > a.active {
    font-weight: 700;
}

body.home-page .site-header .nav-menu > li > a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

body.home-page .site-header .logo-img {
    content: url("../images/logo-white.png");
    mix-blend-mode: normal;
    filter: none;
}

body.home-page .site-header.scrolled .logo-img {
    content: url("../images/logo.png");
    mix-blend-mode: multiply;
    filter: contrast(1.05);
}

body.home-page .site-header .logo-icon {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.home-page .site-header .logo-text small {
    color: rgba(255, 255, 255, 0.7);
}

body.home-page .site-header.scrolled .logo,
body.home-page .site-header.scrolled .nav-menu > li > a {
    color: var(--text-body);
}

body.home-page .site-header.scrolled .logo-icon {
    background: var(--primary-gradient);
    border: none;
}

body.home-page .site-header.scrolled .logo-text small {
    color: var(--text-muted);
}

body.home-page .site-header .nav-menu > li > a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

body.home-page .site-header.scrolled .nav-menu > li > a:hover {
    background: var(--primary-lighter);
    color: var(--primary);
}

body.home-page .site-header .nav-menu > li > a.active {
    color: #fff;
}

body.home-page .site-header.scrolled .nav-menu > li > a.active {
    color: var(--primary);
}

body.home-page .menu-toggle span {
    background: #fff;
}

body.home-page .site-header.scrolled .menu-toggle span {
    background: var(--primary);
}

/* ==========================================================================
   2. 主体两栏布局
   ========================================================================== */
.home-main {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 40px 20px;
}

.home-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: start;
}

/* --- 左栏：学院简介 --- */
.home-intro {
    background: #fff;
    padding: 30px 35px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.home-intro .intro-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-lighter);
}

.home-intro .intro-header h2 {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
}
.home-intro .intro-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, rgba(0, 112, 192, 0.2) 100%);
    border-radius: 2px;
}



.home-intro .intro-header .more-link {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.home-intro .intro-header .more-link:hover {
    color: var(--primary-dark);
}

.home-intro .intro-body p {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 2;
    margin-bottom: 16px;
    text-align: justify;
    text-indent: 2em;
}

.home-intro .intro-body .highlight {
    color: var(--primary);
    font-weight: 600;
}

.home-intro .intro-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.home-intro .stat-item {
    text-align: center;
    padding: 16px 8px;
    background: var(--primary-lighter);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.home-intro .stat-item:hover {
    background: var(--primary);
}

.home-intro .stat-item:hover .num,
.home-intro .stat-item:hover .label {
    color: #fff;
}

.home-intro .stat-item .num {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    transition: var(--transition);
}

.home-intro .stat-item .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    transition: var(--transition);
}

/* --- 右栏：新闻动态 --- */
.home-news {
    background: #fff;
    padding: 30px 35px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.home-news .news-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-lighter);
}


.home-news .news-header h2 {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
}
.home-news .news-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, rgba(0, 112, 192, 0.2) 100%);
    border-radius: 2px;
}



.home-news .news-header .more-link {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.home-news .news-header .more-link:hover {
    color: var(--primary-dark);
}

.news-list {
    list-style: none;
}

.news-list li {
    padding: 0;
    border-bottom: 1px dashed var(--border-color);
    transition: var(--transition);
}

.news-list li.news-featured {
    padding: 0 0 16px;
    border-bottom: 1px dashed var(--border-color);
    margin-bottom: 8px;
}

.news-list li.news-featured img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.news-list li.news-featured .news-featured-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.news-list li.news-featured .news-featured-title:hover {
    color: var(--primary);
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list li:hover .news-title {
    color: var(--primary);
}

.news-list .news-link {
    display: flex;
    align-items: center;
    padding: 12px 0;
    text-decoration: none;
    color: inherit;
}

.news-list li.news-featured .news-link {
    display: block;
    padding: 0;
}

.news-list .news-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-light);
    flex-shrink: 0;
    margin-right: 12px;
}

.news-list .news-title {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
}

.news-list .news-date {
    display: none;
}

/* ==========================================================================
   3. 专业快捷入口
   ========================================================================== */
.home-majors {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px 50px;
}

.home-majors .section-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}


.home-majors .section-bar h2 {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
}
.home-majors .section-bar h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, rgba(0, 112, 192, 0.2) 100%);
    border-radius: 2px;
}



.home-majors .section-bar .more-link {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.home-majors .section-bar .more-link:hover {
    color: var(--primary-dark);
}

.home-majors-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.home-major-item {
    text-align: center;
    padding: 20px 10px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.home-major-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.home-major-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 10px;
    border: 2px solid var(--primary-lighter);
    transition: var(--transition);
}

.home-major-item:hover img {
    border-color: var(--primary);
}

.home-major-item h4 {
    font-size: 0.82rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* ==========================================================================
   4. 底部滚动图片画廊
   ========================================================================== */
.home-gallery {
    background: var(--bg-light);
    padding: 40px 0;
    overflow: hidden;
}

.home-gallery .gallery-header {
    max-width: var(--container-width);
    margin: 0 auto 24px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}


.home-gallery .gallery-header h2 {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 700;
}

.gallery-marquee {
    overflow: hidden;
    position: relative;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-marquee::before,
.gallery-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.gallery-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-light), transparent);
}

.gallery-marquee::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-light), transparent);
}

.gallery-track {
    display: flex;
    gap: 16px;
    animation: marqueeScroll 60s linear infinite;
    width: max-content;
}

.gallery-track:hover {
    animation-play-state: paused;
}

.gallery-item {
    flex-shrink: 0;
    width: 240px;
    height: 160px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item .gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: #fff;
    font-size: 0.8rem;
    text-align: center;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   5. 响应式
   ========================================================================== */
@media (max-width: 1024px) {
    .home-majors-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .home-banner {
        height: 300px;
    }

    .home-banner .banner-content h1 {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }

    .home-banner .banner-content .banner-subtitle {
        font-size: 0.95rem;
    }

    .home-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .home-intro,
    .home-news {
        padding: 24px 20px;
    }

    .home-intro .intro-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-majors-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-item {
        width: 180px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .home-banner {
        height: 240px;
    }

    .home-banner .banner-content h1 {
        font-size: 1.4rem;
    }

    .home-majors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-intro .intro-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
