/* 首页：轮播/资讯区局部强化（无独立顶区 hero） */

/* 轮播顶边紧贴导航栏底线：依赖 main 的 header offset，勿再叠加上移或 z-index */
.page-index #intro {
    margin-top: 0;
    padding-top: 0;
    position: relative;
    z-index: 0;
}

.page-index #intro .home-hero-intro-card--nav-flush {
    margin-top: 0;
    position: relative;
    z-index: 0;
}

.page-index #intro .home-hero-intro-card__media {
    border: none;
    outline: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.page-index #intro .home-hero-intro-card--nav-flush,
.page-index #intro .home-hero-intro-stack {
    border: none;
    box-shadow: none;
    outline: none;
}

.page-index #news-carousel-wrap {
    overflow: visible;
    background: transparent;
}

/* 左上角菱形遮罩（90° 正方形旋转 45°）：中心落在轮播左上角，上半被导航栏遮住 */
.page-index .home-carousel-deco {
    position: absolute;
    z-index: 8;
    pointer-events: none;
    overflow: visible;
}

.page-index .home-carousel-deco--diamond-tl {
    top: 0;
    left: 0;
    width: 0;
    height: 0;
}

.page-index .home-carousel-deco__diamond {
    --diamond-size: 2.85rem;
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: var(--diamond-size);
    height: var(--diamond-size);
    background: linear-gradient(145deg, #a9080c 0%, #94070a 52%, #7a0609 100%);
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 2px 10px rgba(80, 0, 2, 0.28);
}

@media (min-width: 768px) {
    .page-index .home-carousel-deco__diamond {
        --diamond-size: 3.25rem;
    }
}

@media (min-width: 1280px) {
    .page-index .home-carousel-deco__diamond {
        --diamond-size: 3.55rem;
    }
}

@media (max-width: 639px) {
    .page-index #intro {
        overflow-x: clip;
    }

    .page-index .home-carousel-deco__diamond {
        --diamond-size: 1.65rem;
    }
}

#news_bottom.home-news-zju-root {
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: transparent;
    backdrop-filter: none;
}

#main-content #members h2.inline-flex {
    font-family: "Source Han Serif SC", "Noto Serif SC", "STSong", "SimSun", serif;
    font-weight: 700;
    color: #0f172a;
}
