/* 全局字体与背景 */
body {
    font-family: "Sathu", STHeiti, SimSun, Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
}

/* Navbar */
.navbar {
    margin-bottom: 2em;
    border-radius: 0;
}

/* Jumbotron */
.jumbotron {
    margin-bottom: 0;
    background: url('../imgs/lab.jpeg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 2em 0;
}
.jumbotron .container {
    display: flex;
    flex-direction: column; /* 改为竖直排列 */
    align-items: center;    /* 水平居中 */
    text-align: center;     /* 文本居中 */
}

.jumbotron .header-text h1,
.jumbotron .header-text p {
    margin: 0.2em 0;        /* 控制上下间距 */
}


.logo img {
    max-width: 120px;
    height: auto;
    transition: transform 0.3s;
}
.logo:hover img {
    transform: translateY(-5px);
}

/* 面板 */
.my_intro {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 0;
}

/* 新闻与小组 */
.group-box, .pub-box {
    background: #fff;
    padding: 1em;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
    margin-bottom: 1em;
}
.pub-box {
    max-height: 800px;
    overflow: hidden;
    text-align: justify;
}

/* 段落样式 */
.my_p1, .my_p2, .my_p3 {
    color: #555;
}

/* Footer */
footer {
    padding: 1em 0;
    background-color: #222;
    color: #aaa;
}

/* 链接效果 */
a.read-more {
    display: inline-block;
    margin-top: 0.5em;
    color: #00B3FE;
    text-decoration: none;
}
a.read-more:hover {
    text-decoration: underline;
}

/* 默认：显示 logo */
.logo {
    display: block;
}
/* 响应式调整 */
@media (max-width: 768px) {
    .jumbotron .container {
        flex-direction: column;
        text-align: center;
    }
    .header-text h1 { font-size: 1.8em; }
    .header-text p { font-size: 1em; }
    .logo {
        display: none;
    }
}