/* -------------------------------- 

Primary style

-------------------------------- */
*, *::after, *::before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

*::after, *::before {
  content: '';
}

body {
  font-size: 100%;
  font-family: "PT Sans", sans-serif;
  /*color: #f8f7ee;*/
  background-color: #29324e;
}

a {
  color: #f05451;
  text-decoration: none;
}

/* -------------------------------- 

Main components 

-------------------------------- */
header {
  position: relative;
  height: 160px;
  line-height: 180px;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
header h1 {
  font-size: 20px;
  /*font-size: 1.25rem;*/
}
@media only screen and (min-width: 768px) {
  header {
    height: 200px;
    line-height: 225px;
  }
  header h1 {
    font-size: 26px;
    /*font-size: 1.625rem;*/
  }
}

.cd-tabs {
  position: relative;
  width: 100%;
  /*max-width: 960px;*/
  margin: 2em auto;
}
.cd-tabs:after {
  content: "";
  display: table;
  clear: both;
}
.cd-tabs::after {
  /* subtle gradient layer on top right - to indicate it's possible to scroll */
  position: absolute;
  top: 0;
  right: 0;
  height: 60px;
  width: 50px;
  z-index: 1;
  pointer-events: none;
  background: -webkit-linear-gradient( right , #f8f7ee, rgba(248, 247, 238, 0));
  background: linear-gradient(to left, #f8f7ee, rgba(248, 247, 238, 0));
  visibility: visible;
  opacity: 1;
  -webkit-transition: opacity .3s 0s, visibility 0s 0s;
  -moz-transition: opacity .3s 0s, visibility 0s 0s;
  transition: opacity .3s 0s, visibility 0s 0s;
}
.no-cssgradients .cd-tabs::after {
  display: none;
}
.cd-tabs.is-ended::after {
  /* class added in jQuery - remove the gradient layer when it's no longer possible to scroll */
  visibility: hidden;
  opacity: 0;
  -webkit-transition: opacity .3s 0s, visibility 0s .3s;
  -moz-transition: opacity .3s 0s, visibility 0s .3s;
  transition: opacity .3s 0s, visibility 0s .3s;
}
.cd-tabs nav {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #f8f7ee;
  box-shadow: inset 0 -2px 3px rgba(203, 196, 130, 0.06);
}
@media only screen and (min-width: 768px) {
  .cd-tabs::after {
    display: none;
  }
  .cd-tabs nav {
    position: relative;
    top: 0;
    left: 0;
    height: 100%;
    box-shadow: inset -2px 0 3px rgba(203, 196, 130, 0.06);
    z-index: 1;
  }
}
@media only screen and (min-width: 960px) {
  .cd-tabs nav {
    position: relative;
    float: none;
    background: transparent;
    box-shadow: none;
  }
}

.cd-tabs-navigation {
  margin: 0 auto;
  width: 360px;
  background-color: #1CA045;
}
.cd-tabs-navigation:after {
  content: "";
  display: table;
  clear: both;
}
.cd-tabs-navigation li.li-4 {
  float: left;
  width: 25%;
}
.cd-tabs-navigation li.li-2 {
  float: left;
  width: 50%;
}
.cd-tabs-navigation a {
  position: relative;
  display: block;
  height: 60px;
  width: auto;
  text-align: center;
  font-size: 12px;
  /*font-size: 0.75rem;*/
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 700;
  /*color: #999;*/
  color: #FFF;
  padding-top: 34px;
}
.no-touch .cd-tabs-navigation a:hover {
  color: #29324e;
  background-color: rgba(233, 230, 202, 0.3);
}
.cd-tabs-navigation a.selected {
  background-color: #ffffff !important;
  box-shadow: inset 0 2px 0 #0F9E5E;
  color: #29324e;
}
.cd-tabs-navigation a::before {
  /* icons */
  position: absolute;
  top: 12px;
  left: 50%;

  display: inline-block;
  height: 20px;
  width: 20px;
}

@media only screen and (min-width: 768px) {
  .cd-tabs-navigation {
    margin: 0 auto;
    /* move the nav to the left on medium sized devices */
    width: 100%;
    /*float: left;*/
    /*background-color: #f8f8f8;*/
    background-color: #1CA045;
    box-shadow: inset 0 -2px 3px rgba(203, 196, 130, 0.06);

  }
  .cd-tabs-navigation a {
    height: 80px;
    /*line-height: 80px;*/
    width: 80px;
    padding-top: 46px;
    width: auto;
    text-align: center;
  }
  .cd-tabs-navigation a.selected {
    box-shadow: inset 2px 0 0 #0F9E5E;
  }
  .cd-tabs-navigation a::before {
    top: 50%;
  }
}
@media only screen and (min-width: 960px) {
  .cd-tabs-navigation {
    margin: 0 auto;
    /* tabbed on top on big devices */
    width: 100%;
    /*background-color: #f8f8f8;*/
    background-color: #1CA045;
    box-shadow: inset 0 -2px 3px rgba(203, 196, 130, 0.06);
  }
  .cd-tabs-navigation a {
    height: 60px;
    line-height: 60px;
    width: auto;
    text-align: center;
    font-size: 17px;
    /*font-size: 0.875rem;*/
    padding: 0 1.8em 0 1.6em;
  }
  .cd-tabs-navigation a.selected {
    box-shadow: inset 0 2px 0 #0F9E5E;

  }
  .cd-tabs-navigation a::before {
    top: 50%;
    margin-top: -10px;
    margin-left: 0;
    left: 38px;
  }
}

.cd-tabs-content {
  background: #ffffff;
}
.cd-tabs-content li.cd-tabs-li {
  display: none;
  padding: 1.4em;
}
.cd-tabs-content li.cd-tabs-li.selected {
  display: block;
  -webkit-animation: cd-fade-in 0.5s;
  -moz-animation: cd-fade-in 0.5s;
  animation: cd-fade-in 0.5s;
}
.cd-tabs-content li.cd-tabs-li p {
  /*font-size: 14px;*/
  /*!*font-size: 0.875rem;*!*/
  /*line-height: 1.6;*/
  /*color: #8493bf;*/
  /*margin-bottom: 2em;*/
}
@media only screen and (min-width: 768px) {
  .cd-tabs-content {
    /*min-height: 480px;*/
  }
  .cd-tabs-content li.cd-tabs-li {
    padding: 2em 2em 2em 7em;
  }
}
@media only screen and (min-width: 960px) {
  .cd-tabs-content {
    min-height: 0;
  }
  .cd-tabs-content li.cd-tabs-li {
    padding: 3em;
  }
  .cd-tabs-content li.cd-tabs-li p {
    font-size: 16px;
    /*font-size: 1rem;*/
  }
}

/*  特殊   专用详情 */



.gallery {
  margin: 0 auto;
  width: 40%;
  background-color: #1CA045;
}
.gallery:after {
  content: "";
  display: table;
  clear: both;
}
.gallery li.cd-tabs-li {
  float: contour;
  width: 50% !important;
}
.gallery a {
  position: relative;
  display: block;
  height: 60px;
  width: auto;
  text-align: center;
  font-size: 12px;
  /*font-size: 0.75rem;*/
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 700;
  /*color: #999;*/
  color: #FFF;
  padding-top: 34px;
}
.no-touch .gallery a:hover {
  color: #29324e;
  background-color: rgba(233, 230, 202, 0.3);
}
.gallery a.selected {
  background-color: #ffffff !important;
  box-shadow: inset 0 2px 0 #0F9E5E;
  color: #29324e;
}
.gallery a::before {
  /* icons */
  position: absolute;
  top: 12px;
  left: 50%;

  display: inline-block;
  height: 20px;
  width: 20px;
}

@media only screen and (min-width: 768px) {
  .gallery {
    margin: 0 auto;
    /* move the nav to the left on medium sized devices */
    width: 40% !important;
    /*float: left;*/
    /*background-color: #f8f8f8;*/
    background-color: #1CA045;
    box-shadow: inset 0 -2px 3px rgba(203, 196, 130, 0.06);

  }
  .gallery a {
    height: 80px;
    /*line-height: 80px;*/
    width: 100% !important;
    padding-top: 46px;
    width: auto;
    text-align: center;
  }
  .gallery a.selected {
    box-shadow: inset 2px 0 0 #0F9E5E;
  }
  .gallery a::before {
    top: 50%;
  }
}
@media only screen and (min-width: 960px) {
  .gallery {
    margin: 0 auto;
    /* tabbed on top on big devices */
    width: 40%!important;
    /*background-color: #f8f8f8;*/
    background-color: #1CA045;
    box-shadow: inset 0 -2px 3px rgba(203, 196, 130, 0.06);
  }
  .gallery a {
    height: 60px;
    line-height: 60px;
    width: auto;
    text-align: center;
    font-size: 17px;
    /*font-size: 0.875rem;*/
    padding: 0 1.8em 0 1.6em;
  }
  .gallery a.selected {
    box-shadow: inset 0 2px 0 #0F9E5E;

  }
  .gallery a::before {
    top: 50%;
    margin-top: -10px;
    margin-left: 0;
    left: 38px;
  }
}


/* 特殊竣事*/
@-webkit-keyframes cd-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-moz-keyframes cd-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes cd-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
