﻿@import 'common.css';

@media screen and (width: 320px) {
  html {
    font-size: 24px;
  }
}
@media screen and (width: 320px) {
  html {
    font-size: 24px;
  }
}

/* @media screen and (width: 360px) {
  html {
    font-size: 16px;
  }
}

@media screen and (width: 400px) {
  html {
    font-size: 18px;
  }
} */

/* @media screen and (width: 440px) {
  html {
    font-size: 20px;
  }
}

@media screen and (width: 480px) {
  html {
    font-size: 22px;
  }
} */

@media screen and (width: 640px) {
  html {
    font-size: 26px;
  }
}

@media screen and (width: 992px) {
  html {
    font-size: 24px;
  }
}

html,
body {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  /* width: 100vw; */
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
  /* overflow-x: hidden; */
  line-height: 1.5;
  font-family: -apple-system-font, BlinkMacSystemFont, "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei",
    Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

section,
div,
span,
ul,
li,
ol,
p,
button,
input,
a {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

ul {
  padding: 0;
  margin: 0;
}

li {
  list-style-type: none;
}

p {
  margin: 0;
}

a, a:hover, a:focus {
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  -webkit-user-select: none;
  -moz-user-focus: none;
  -moz-user-select: none;
  color: #333;
  cursor: pointer;
}
a:hover {
  color: #79B941;
}
.nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.nav-group {
  position: relative;
  -webkit-transition: all .5s;
  -o-transition: all .5s;
  transition: all .5s;
  z-index: 1000;
}
.nav-group > .input-group {
  position: absolute;
  bottom: calc(100% + .8rem + 12px);
  right: 0;
  width: 240px;
}
.nav-group > .input-group > input {
  border: solid 1px #79B941;
}
.toggle-nav {
  display: none;
  padding: .2rem;
  margin-left: auto;
  background: rgb(247, 247, 247);
  border-radius: .2rem;
}
.toggle-nav > span {
  display: block;
  width: 1rem;
  width: 20px;
  height: 2px;
  margin: 4px;
  background: #79B941;
}
.nav-group-bg {
  display: none;
}

#banner-swiper {
  width: 100%;
  /* height: calc(100vw * 0.25);
  max-height: 320px; */
}
.banner .swiper-pagination .swiper-pagination-bullet {
  width: 16px;
  height: 2px;
  border-radius: 0;
  background: rgba(255, 255, 255, 1);
}
.banner .swiper-pagination .swiper-pagination-bullet-active {
  opacity: .6;
}

header .top {
  padding: .8rem 15px;
  background: #fff;
}
header img {
  /*width: 2.78rem;*/
  height: 7rem;
  margin-right: .5rem;
}
header .title {
  font-size: .8rem;
  color: #71121a;
}

.nav {
  background: #79B941;
  border: 0;
}
.nav-tabs>li {
  margin-bottom: 0;
}
.nav .nav-link {
  margin: 0;
  color: #fff;
}
.nav>li>a {
    position: relative;
    display: block;
    padding: 20px 10px;
    font-size: 16px;
}
.nav .nav-link:hover, .nav .nav-link:focus, .nav>li.open .nav-link, .nav>li.open .nav-link:hover, .nav>li.open .nav-link:focus {
  border: 1px solid transparent;
  border-radius: 0;
  background: #650808;
}
.nav .dropdown-menu {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(149, 0, 0, .6);
}
.nav .dropdown-menu .dropdown-item {
  padding: 12px 15px;
  color: #fff;
}
.nav .dropdown-menu .dropdown-item:hover {
  background: rgba(149, 0, 0, 0.8);
}
.input-group input {
  border: 1px solid #79B941;
  border-radius: 0;
}
.input-group .btn {
  border-radius: 0;
  background: #79B941;
  color: #fff;
  outline: none !important;
}
.item-header .title {
  padding: .3rem .5rem;
  border-left: .3rem solid rgb(94, 151, 43);
  font-size: .6rem;
}
.item-header .more {
  font-size: .5rem;
  color: #666;
}

.footer {
  position: relative;
  background: #79B941;
  color: #fff;
  font-size: .55rem;
}
.footer>.pro {
  position: relative;
  padding: .8rem 180px 0 7.6rem;
}
.footer>.pro.address .f-wrap {
  width: 100%;
}
.footer>.pro.address .f-wrap span {
  display: block;
}
.footer>.pro>.item {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  min-width: 119px;
  padding-left: .7rem;
  /*padding-right: .7rem;*/
  margin-bottom: .3rem;
  border-right: 1px solid #fff;
  font-size: 0;
}
.footer>.pro>.item>a {
  display: block;
  font-size: .55rem;
  color: #fff;
}
.footer>.pro>.item:last-of-type {
  border: 0;
}
.footer>.pro>.item:nth-of-type(3) {
  width: 127px;
}
.footer>.pro>.item:nth-of-type(5) {
  width: 158.5px;
}
.footer>.pro>.title {
  position: absolute;
  top: .88rem;
  left: 15px;
  width: 3.5rem;
  border-right: 1px solid #fff;
  font-size: .6rem;
  line-height: 1;
}
.footer>.pro>.sub-title {
  position: absolute;
  top: .8rem;
  left: calc(4.5rem + 15px);
}
.footer .qrcode {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 140px;
  height: 140px;
  padding: 4px;
  background: #fff;
}
.footer .qrcode .img {
  width: 100%;
}
.footer .address {
  padding-top: .65rem;
  padding-left: calc(15px + 4.5rem);
  padding-bottom: 1rem;
  line-height: 2;
}

.img {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  overflow: hidden;
}
.img img {
  width: 100%;
}

@media screen and (width: 992px) {
  header .top {
    padding: .6rem 15px;
    background: #fff;
  }
  header img {
   /* width: 2rem; */
    height: 3rem;
    margin-right: .5rem;
  }
  header .title {
    font-size: .6rem;
    color: #71121a;
  }
  header {
    padding-top: 3.2rem;
  }
  header .top {
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 10;
    box-shadow: 0 1px 3px 1px rgba(54, 54, 54, 0.1);
  }
  .container {
    padding: 0;
  }
  .science,.academician {
    padding: 0 15px;
  }
  .nav-group-bg {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.3);
  }
  .nav {
    display: block;
    background: #79B941;
  }
  .nav-group {
    /* display: none; */
    position: fixed;
    top: 0;
    left: 100%;
    width: 300px;
    width: 70vw;
    min-width: 50vw;
    padding-top: 68px;
    background: #79B941;
    overflow-y: scroll;
  }
  .nav-group > .input-group {
    position: absolute;
    top: 16px;
    right: 16px;
    width: calc(100% - 32px);
  }
  .toggle-nav {
    display: block;
  }
  .nav.nav-tabs > li {
    float: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }
  .nav.nav-tabs > li > a {
    padding: .8rem 16px;
    font-size: .6rem;
    color: #fff;
  }
  .nav.nav-tabs > li > a:hover,.nav.nav-tabs > li > a:focus {
    border: 1px solid transparent;
    background: transparent;
  }
  .nav.nav-tabs > li.open > a,.nav.nav-tabs > li.open > a:hover,.nav.nav-tabs > li.open > a:focus {
    border: 1px solid transparent;
    background: transparent;
  }
  .nav.nav-tabs > li > .dropdown-menu {
    position: relative;
    padding-bottom: .5rem;
    float: none;
    font-size: .56rem;
    background: transparent;
    border-radius: 0;
    border: none;
    -webkit-box-shadow: none;
            box-shadow: none;
  }
  .nav.nav-tabs > li > .dropdown-menu a {
    padding: .5rem 1rem;
    color: #fff;
  }
  .nav.nav-tabs > li > .dropdown-menu a:hover,.nav.nav-tabs > li > .dropdown-menu a:focus {
    background: transparent;
  }
  .nav.nav-tabs > li > .nav-link:before {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    width: .3rem;
    height: .3rem;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    margin-top: -.15rem;
    -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
            transform: rotate(45deg);
    -webkit-transition: -webkit-transform .2s;
    transition: -webkit-transform .2s;
    -o-transition: transform .2s;
    transition: transform .2s;
    transition: transform .2s, -webkit-transform .2s;
  }
  .nav.nav-tabs > li.open > .nav-link:before {
    -webkit-transform: rotate(135deg);
        -ms-transform: rotate(135deg);
            transform: rotate(135deg);
  }
  .dropdown-backdrop {
    display: none;
  }

  .row {
    margin: 0;
    width: 100%;
  }

  .ellipsis-three {
    -webkit-line-clamp: 2;
  }

  .footer>.pro {
    position: relative;
    padding: 2.3rem 0 0 5.2em;
  }
  .footer>.pro>.item {
    width: 152px !important;
    padding-right: 0 !important;
    margin-bottom: .4rem;
  }
  .footer>.pro>.item:nth-of-type(2n) {
    border-right: none !important;
  }
  .footer>.pro:nth-of-type(2) {
    padding-top: .8rem;
  }
  .footer>.pro>.title {
    width: 5rem;
    border: 0;
  }
  .footer>.pro>.sub-title {
    top: 2.3rem;
    left: 15px;
  }
  .footer>.pro:nth-of-type(2)>.sub-title {
    top: .8rem;
  }
  .footer .address {
    padding: 2.3rem 6.25rem .8rem 15px;
    line-height: 1.8;
  }
  .footer .qrcode {
    top: auto;
    bottom: 1rem;
    right: 15px;
    width: 5rem;
    height: 5rem;
  }
}