@import "./styles.css";

/* === Global Font Setting === */
body{
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.05rem; /* 可微调 */
    line-height: 1.75rem;
}


:root{
    --h-title-color:#3948d2;
}

.header {
    border-bottom: solid 2px var(--bs-blue);
    z-index: 10000;
}

.bg-bottom {
    background-color: var(--h-title-color);
}

.top-section {
    position: relative;
    padding: 10rem 0;
    background-position: center;
    background-size: cover;
    height: 25rem;
}

.top-section h2 {
    font-weight: 400;
}

.top-section .top-section-content {
    position: relative;
    z-index: 1;
}

.top-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

section header h2{
    font-family: "Kanit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
    color: var(--h-title-color);
    font-size: 2.3rem;
    line-height: 4rem;
}

section .main-body{
    font-size: 1.3rem;
    font-weight: 200;
    line-height: 2.4rem;
}


.bg-gradient-primary-to-secondary-light {
    background: linear-gradient(45deg, #fcfcfc, #ffffff) !important;
}

.bg-gradient-primary-to-secondary-gray {
    background: linear-gradient(45deg, #f0f0f0, #f1f1f1) !important;
}



.on-top {
    position: relative;
    z-index: 10000;
}

.top-bg {
    background-position: center;
    background-size: fill;
    width: 100%;
    height: 100%;
}

.top-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}



#avatar {
    position: relative;
    height: 0;
    top:min(-65px,max(-100px,calc(-1*100vw/12)));
    max-width: 55em;
    margin: 0 1.5rem 0 0;
    float: right;
    z-index: 9000;
}

#avatar img {
    height: max(130px,min(200px,calc(100vw/6)));
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 991px) {
    #avatar {
        margin: 0;
    }
}


/* Fix strong not bold inside Publications section */
#members-md strong {
    font-weight: 700 !important;
}

#home-md strong {
    font-weight: 700 !important;
}

#conferences-md strong {
    font-weight: 700 !important;
}

#workshops-md strong {
    font-weight: 700 !important;
}

#seminars-md strong {
    font-weight: 700 !important;
}

#news-md strong {
    font-weight: 700 !important;
}

.item-with-poster{
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.6rem;
}

.item-with-poster .item-text{
    flex: 1;
}

.item-with-poster .item-poster img{
    width: 150px;              /* 封面宽度，可自己调 */
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,.15);
}

/* 小屏手机时改成上下排，避免太挤 */
@media (max-width: 900px){
    .item-with-poster{
        flex-direction: column;
    }
    .item-with-poster .item-poster img{
        width: 60%;
        max-width: 220px;
    }
}


/* ===== News tags ===== */
.news-tag {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 2px 8px;
  margin-bottom: 4px;
  border-radius: 4px;
}

/* 不同类型 */
.news-tag.paper {
  color: #1f4fd8;          /* 深蓝 */
  background: #e8eeff;
}

.news-tag.conference {
  color: #0f5132;          /* 深绿 */
  background: #e6f4ea;
}

.news-tag.workshop {
  color: #5f370e;          /* 深橙 */
  background: #fff3cd;
}

.news-tag.recruitment {
  color: #842029;          /* 深红 */
  background: #f8d7da;
}

.news-tag.award {
  color: #664d03;          /* 金色 */
  background: #fff3cd;
}

.news-tag.member {
  color: #084298;          /* 靛蓝 */
  background: #cfe2ff;
}

