body {
    font-family: 'Microsoft YaHei', sans-serif;
}

/*轮播图*/
#banner .container{
    width: 100%
}
#banner .floating-title{
    position:absolute;
    z-index: 2;
    top: 50%;
    left: 40%;
    color: white;
    /*color: firebrick;*/
    transform: translate(-50%, -50%);
    font-size: 50px;
    /*font-size: 4em;*/
    text-shadow: 6px 6px 6px rgba(0, 0, 0, 1);
    background-color: rgba(0,0,0,0.25);
    padding: 30px;
    /*width: 1000px;*/
}
#banner .col-md-12{
    padding: 0;
}
#banner .carousel-inner{
    text-align: center;
    width: 100%;
    background: linear-gradient(to right, #dcdcdc 0%, #ffffff 48%, #ffffff 52%, #dcdcdc 100%);
}
/*#banner .carousel-inner img{

    width: 100%;
    height: 700px; 
    object-fit: cover; 
}*/
#banner .carousel-inner img{
    opacity: 0.95;               /* optional: 稍微提高清晰度 */
    width: auto !important;      /* 关键：不要强制100% */
    max-width: 100%;             /* 保持响应式 */
    height: 700px;               /* 你的固定高度保留 */
    object-fit: contain;         /* 关键：不裁切，完整展示 */
    display: inline-block;       /* 与 text-align:center 配合水平居中 */
}


#banner .carousel-indicators li{
    cursor: copy;
    border-radius: 3px;
    opacity: 75%;
    margin: 5px;
}

/*read more*/
#text-content {
    overflow: hidden;
    max-height: 110px;
    transition: max-height 0.3s ease;
}

#long-text.expanded #text-content {
    max-height: none;
}

button{
    text-align: center;
    margin: 20px auto;
}

/*box*/
#box {
    padding: 80px 0;
    text-align: center;
    border-bottom:solid silver 1px ;
}

#box .col-md-3 {
    padding: 15px;
}

#box .col-md-3:hover {
    background: #f1f1f1;
    box-shadow: 1px 1px 4px #ccc;
}

#box a {
    color: #212121;
    text-decoration: none;
}

#box img {
    margin: 0 auto;
}

#box h3 {
    font-weight: bold;
}
/*sign-up*/
#sign-up{
    padding: 40px 60px;
    background-color: #00796b;
    text-align: center;
}
#sign-up a{
    width: 160px;
    height: 50px;
    margin: 30px 20px ;
}

/*p-words*/
#p-words{
    padding: 10px 0 20px 0;
    margin-bottom: 50px;
}
#p-words .col-md-12 p{
    font-size: 18px;
}
#p-words span{
    font-size: 18px;
    font-weight: bolder;
    color: orangered;
    margin-right: 5px;
}
#p-words .item p{
    display: inline;
}
#p-words .item div{
    margin-bottom: 10px;
}
#p-words .col-md-12{
    padding: 70px 10px;
}
#p-words h1{
    font-weight: bold;
}
#p-words p{
    font-size: 15px;
    margin: 20px auto;
}
#p-words li{
    font-size: 18px;
}
.announcement, .conference, .seminars{
    margin: 100px auto;
}
.btn-warning{
    font-weight: bolder;
    background-color: darkorange;
    padding: 10px 20px;
}

#p-words #announcements .event{
    padding: 15px 10px;
}
#p-words #announcements .time{
    font-size: 20px;
    font-weight: bolder;
    color: steelblue;
}
#p-words #announcements .title{
    font-size: 16px;
    padding-left: 10px;
    font-weight: bolder;
    height: 80px;
    overflow: hidden;
}

.col-md-3 {
    padding: 0;
}

#p-words .event{
    cursor: pointer;
    width: 90%;
    background-color: #f7f7f7;
    border-radius: 5px;
    padding: 10px 5px 10px 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    transition: transform 0.3s;
}
#p-words .event:hover {
    transform: scale(1.1);
}

#p-words .event img{
    width: 100%
}
#p-words .row h1{
    text-align: center;
    margin: 0 0 50px 0;
}
.row .event{
    text-align: left;
}
.eventCard{
    margin-bottom: 30px;
}
.event .title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-left: 10px;
    /*height: 60px;*/
    /*overflow: hidden;*/
}

.event .time {
    margin-top: 10px;
    margin-left: 10px;
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}
.event .location {
    margin-top: 10px;
    margin-left: 10px;
    font-size: 14px;
    margin-bottom: 10px;
}
.event .speaker {
    margin-top: 10px;
    margin-left: 10px;
    font-size: 14px;
    margin-bottom: 10px;
}
.event a{
    margin-left: 10px;

}

/*cooperator*/
.cooperator{
    text-align: center;
}
.cooperator .section-content{
    text-align: center;
}
.cooperator .section-content{
    text-align: center;
}
.cooperator .section-content p{
    font-size: 16px;
}

.cooperator .col-md-6{
    height: 180px; /* 假设容器高度为 300px */
    position: relative;
    overflow: hidden;
    /*margin: 30px auto;*/
}
.cooperator .col-md-4{
    height: 180px; /* 假设容器高度为 300px */
    position: relative;
    overflow: hidden;
    /*margin: 30px auto;*/
}
.cooperator .col-md-6 img{
    max-width: 50%;
    position: absolute;
    top: 40%;
    left: 45%;
    transform: translate(-50%, -50%);
}
.cooperator .col-md-4 img{
    max-width: 50%;
    position: absolute;
    top: 40%;
    left: 45%;
    transform: translate(-50%, -50%);
}
.cooperator .af-logo{
    max-width: 30%;
}
/*页脚*/
#contact {
    color: #ffffff;
}

.filter { /*页脚背景*/
    width: 100%;
    height: 100%;
    background: rgba(33, 33, 33, 1);
    padding: 90px 0 20px 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

#contact h2 {
    font-weight: bold;
    margin-bottom: 25px;
    margin-top: 0;
}

#contact p {
    line-height: 25px;
    margin-bottom: 20px;
}

#contact .form-control {
    border: none;
    border-radius: 25px;
    height: 30px;
    margin-bottom: 20px;
}

#contact .col-md-2 a {
    color: white;
}

#contact textarea.form-control {
    height: auto;
}

#contact input[type="submit"] {
    background: #40d2b1;
    color: #ffffff;
    font-weight: bold;
    transition: all 0.3s;
}

#contact input[type="submit"]:hover {
    background: rgb(44, 142, 120);
}

#contact .col-md-4 h2 {
    text-align: center;
}

.foot_info{
    padding: 0 0 0 0;
}

.foot_info .info {
    text-align: right;
}

.foot_info .info span {
    line-height: 50px;
    margin-right: 10px;
    color: white;
}

.foot_info span:hover {
    color: rgb(44, 142, 120);
}

.link_icon{
    padding: 0 0 0 0;
}

.link_icon span { /*四个图标*/
    font-size: 30px;
    margin-right: 15px;
    color: gray;
}

.link_icon span:hover {
    color: rgb(44, 142, 120);
}

/*最底部Copyright*/
#footer {
    border-top: 2px solid gray;
    width: 100%;
    height: 50px;
    background: rgba(33, 33, 33, 1);
}

#footer span {
    font-size: 12px;
    color: white;
    text-align: center;
    line-height: 50px;
}

/*消除a标签下划线*/
#contact a, .info a, .link_icon a {
    text-decoration: none;
}



/* ===== Mobile adaptations for banner & content ===== */

/* Base: keep desktop behavior unchanged */
#banner .carousel-inner {
    text-align: center;
    width: 100%;
    background: linear-gradient(to right, #dcdcdc 0%, #ffffff 48%, #ffffff 52%, #dcdcdc 100%);
  }
  #banner .carousel-inner img{
    opacity: .95;
    width: auto !important;
    max-width: 100%;
    height: 700px;            /* desktop height */
    object-fit: contain;      /* no crop */
    display: inline-block;
  }
  
  /* <= 991px (tablets) */
  @media (max-width: 991px){
    /* slightly narrower gray sides and lower banner height */
    #banner .carousel-inner{
      background: linear-gradient(to right, #dcdcdc 0%, #ffffff 49%, #ffffff 51%, #dcdcdc 100%);
    }
    #banner .carousel-inner img{
      height: 480px;          /* tablet height */
    }
  
    /* tighten top nav spacing if needed */
    .navbar { margin-bottom: 10px; }
  }
  
  /* <= 768px (phones, landscape/large phones) */
  @media (max-width: 768px){
    /* reduce gray sides and lower height further */
    #banner .carousel-inner{
      background: linear-gradient(to right, #e6e6e6 0%, #ffffff 49.5%, #ffffff 50.5%, #e6e6e6 100%);
    }
    #banner .carousel-inner img{
      height: 380px;          /* phone height */
    }
  
    /* headings in sections: slightly smaller & tighter */
    .title, h1, h2, h3{
      line-height: 1.25;
      margin-top: 10px;
      margin-bottom: 8px;
    }
  
    /* long text block: improve reading width on phones */
    #long-text{
      padding: 0 14px;
    }
    #long-text p{
      font-size: 15.5px;
      line-height: 1.6;
    }
  }
  
  /* <= 576px (small phones) */
  @media (max-width: 576px){
    /* almost invisible gray sides and compact height */
    #banner .carousel-inner{
      background: linear-gradient(to right, #ededed 0%, #ffffff 49.8%, #ffffff 50.2%, #ededed 100%);
    }
    #banner .carousel-inner img{
      height: 320px;          /* small-phone height */
    }
  
    /* adjust floating title if you enable it */
    #banner .floating-title{
      font-size: 28px;
      padding: 14px;
      left: 50%;
    }
  
    /* lists → better touch spacing */
    #long-text ul{ margin-left: 18px; }
    #long-text li{ margin: 6px 0; }
  }
  
  /* very narrow devices (optional safeguard) */
  @media (max-width: 360px){
    #banner .carousel-inner img{ height: 280px; }
    #long-text p{ font-size: 14.5px; }
  }

/* slogan 与上文拉开距离，并放大、居中 */
.container p.moi-slogan{
    text-align: center;
    font-size: 28px !important;   /* 放大：根据需要调 28~40 */
    margin-top: 48px !important;  /* 这里决定“空几行”的感觉 */
    margin-bottom: 0 !important;
    padding: 0 !important;        /* 覆盖 .container p 的 padding-bottom:30px */
    font-style: italic;           /* 保持斜体，可去掉 */
  }
  
  /* 小屏再微调 */
  @media (max-width: 576px){
    .container p.moi-slogan{
      font-size: 22px !important;
      margin-top: 32px !important;
    }
  }
  
  