@font-face {
  font-family: 'pinyin';
  src: url('/tools/pinyin/font/pinyin.woff') format('woff');
  src: url('/tools/pinyin/font/pinyin.woff2') format('woff2');
  src: url('/tools/pinyin/font/pinyin.TTF') format('truetype');
}

@keyframes show {
  0%   { background-image: url('/tools/pinyin/images/icon-audio--active1.png'); background-size: 100%; }
  50%  { background-image: url('/tools/pinyin/images/icon-audio--active2.png'); background-size: 100%; }
  100% { background-image: url('/tools/pinyin/images/icon-aduio--active.png'); background-size: cover; }
}

html, body, div, a, h1, h2, h3, h4, h5, h6, img, ul, ol, li, p {
 
}

html,
body {
  height: 100%;
  overflow: hidden;
}

/**
 * 容器
 */
.container {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #8D62CD;
}
.links a{color:#fff;}

@media only screen and ( max-width: 540px) {
  .container {
    width: 100%;
  }
}

/**
 * logo
 */
 .logo {
  padding: 8px 15px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo .logo-title {
  width: auto;
  height: 30px;
}

.logo .logo-img {
  width: 60px;
  height: 24px;
}

/**
 * 链接
 */
.links {
  padding: 0 24px 14px;
  display: flex;
  justify-content: space-between;
}

.links a {
  position: relative;
}

.links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 4px;
  background-color: #fff;
  border-radius: 3px;
}

.links img {
  height: 24px;
  margin-bottom: 4px;
}

/**
 * 备案号
 */
.record {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 30px;
  line-height: 30px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  z-index: 10;
}

.record.record-gray {
  color: #333;
}

/**
 * 拼音公用样式
 */
.pinyin-list {
  width: 345px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}

.pinyin-item {
  position: relative;
  width: 80px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'pinyin';
  background-color: #fff;
  box-shadow: 0px 5px 4px 0px #E1E1E1;
  border-radius: 10px;
  margin: 8px 8px 0 0;
}

.pinyin-item--margin {
  margin-right: 0;
}

.pinyin-item--active {
  background-color: #E0CBFF;
}

.pinyin-item--hidden {
  visibility: hidden;
}

.pinyin-item span {
  font-size: 36px;
  font-weight: 500;
  color: #333;
  letter-spacing: -2px;
}

.pinyin-item .pinyin-icon {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 14px;
  height: 14px;
  background: url('/tools/pinyin/images/icon-audio.png') no-repeat center center;
  background-size: cover;
}

.pinyin-item--active .pinyin-icon.play {
  animation: show 0.9s linear infinite;
}

.pinyin-item--active .pinyin-icon {
  background-image: url('/tools/pinyin/images/icon-aduio--active.png');
  background-size: cover;
}

/**
 * 广告样式
 */
.pinyin-ad {
  margin-top: 10px;
  height: 108px;
}

.pinyin-ad a,
.pinyin-ad img {
  display: block;
  width: 100%;

}

/**
 * 音频
 */
.audio {
  position: fixed;
  z-index: -1;
}

/**
 * 首页拼音样式
 */
.home-pinyin {
  position: absolute;
  top: 100px;
  bottom: 32px;
  width: 100%;
  background-color: #EFEFEF;
  border-radius: 9px;
  padding-bottom: 10px;
  overflow: hidden;
} 

.home-pinyin .pinyin-container {
  height: 100%;
  padding-bottom: 120px;
  overflow: auto;
}

.home-pinyin .pinyin-image {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0px -5px 4px 0px #E1E1E1;
  border-radius: 10px;
  overflow: hidden;
}

.home-pinyin .pinyin-image img {
  display: block;
  margin: 0 auto;
  height: 120px;
}

.home-qrcode,
.home-ad {
  width: 345px;
  margin: 10px auto 0;
}

.home-qrcode img,
.home-ad img {
  width: 100%;
}

/**
 * 首页链接样式
 */
/* .home-ads {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 148px;
}

.home-ads .pinyin-ad {
  padding: 0 15px;
} */

/**
 * 声母页、整体认读拼音样式
 */
.shengmu-pinyin,
.zhengti-pinyin {
  position: absolute;
  top: 100px;
  bottom: 0;
  width: 100%;
  background-color: #EFEFEF;
  border-radius: 9px 9px 0 0;
  overflow: hidden;
}

.shengmu-pinyin .pinyin-container,
.zhengti-pinyin .pinyin-container {
  height: calc(100% - 36px);
  overflow: auto;
}

/**
 * 韵母页拼音样式
 */
.yunmu-tabs {
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
}

.yunmu-tab {
  padding: 0 9px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}

.yunmu-tab--active {
  color: #8D62CD;
  background-color: #EFEFEF;
  border-radius: 8px 8px 0px 0px;
}

.yunmu-pinyin {
  position: absolute;
  top: 128px;
  bottom: 0;
  width: 100%;
  background-color: #EFEFEF;
  border-radius: 9px 9px 0 0;
  overflow: hidden;
}

.yunmu-pinyin .pinyin-container {
  height: calc(100% - 36px);
  overflow: auto;
}
