* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

.clearfix::after {
  display: table;
  clear: both;
  content: "";
}

.hidden {
  display: none;
}

body {
  background-color: #eca34a;
  margin: 0;
  padding: 0;
}

.container {
  word-break: break-all;
  word-wrap: break-word;
  font-family: 'Microsoft Yahei', sans-serif;
  letter-spacing: 0.05em;
  /*padding: 0 8px;*/
  padding: 0;
  width: 100%;
  margin: 0 auto;
  max-width: 800px;
}

.container a,
.container a:link,
.container a:visited {
  color: #903f0b;
  text-decoration: none;
}

.container a:hover {
  color: #992211;
  text-decoration: none;
}

.container a:focus,
.container a:active {
  color: #aa5533;
  text-decoration: none;
  font-weight: bold;
}

.top-toolbar {
  font-size: 16px;
  padding: 12px 6px;
  background-color: #f3ca79;
  background-image: linear-gradient(to left, rgba(255, 255, 255, 10%) 0%, rgba(255, 205, 100, 100%) 100%);
  user-select: none;
}

.top-toolbar > div {
  display: inline;
  float: right;
  height: 48px;
  margin: 5px 8px 5px 8px;
  font-size: 16px;
  color: #852;
  background-color: rgb(255, 239, 199);
  border-radius: 6px;
  border: 1px solid rgb(230, 219, 179);
}

.top-toolbar .simp-trad-switcher-container {
  padding: 12px 12px;
}

.simp-trad-switcher {
  display: inline-block;
  color: #a0420b;
  cursor: pointer;
}

.top-toolbar .font-size-changer {
  padding: 0 8px 0 12px;
  display: flex;
  align-items: center;
  height: 60px;
}

.font-size-changer .label {
  padding: 0;
}

.font-size-list {
  display: flex;
  background-color: rgb(236, 219, 169);
  border-radius: 4px;
}

.font-size-list .font-size-option {
  display: block;
  float: left;
  padding: 0 12px;
  line-height: 42px;
  height: 42px;
  color: #532;
  border-style: solid;
  border-width: 1px;
  border-color: rgb(215, 200, 150);
}

.font-size-list .font-size-option:first-child {
  border-width: 1px 0 1px 1px;
  border-radius: 4px 0 0 4px;
}

.font-size-list .font-size-option:last-child {
  border-width: 1px 1px 1px 0;
  border-radius: 0 4px 4px 0;
}

.font-size-list .font-size-option.font-size-option-selected {
  font-weight: bold;
  color: #fff;
  background-color: rgb(242, 163, 74);
  border-color: rgb(222, 143, 54);
}

.top-nav {
  background-color: rgb(236, 163, 74);
  background-image: linear-gradient(to right,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 235, 150, 0.2) 60%,
    rgba(255, 255, 250, 0.1) 100%);
  position: relative;
}

.top-nav .up-button,
.top-nav a.toolbar-toggler {
  color: #fff;
}

.top-nav .up-button {
  position: absolute;
  left: 12px;
  top: 50%;
  /* background-image: url('../images/icons/arrow-90deg-up.svg'); */
  background-image: url('../images/icons/list-white.svg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  /* the original size is 32px x 32px,
   * here, we scale it down to make it better looking */
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
}

.top-nav .toolbar-toggler {
  position: absolute;
  right: 8px;
  top: 50%;
  background-image: url('../images/icons/gear-white.svg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
}

.top-nav .toolbar-toggler:hover,
.top-nav .toolbar-toggler:active,
.top-nav .toolbar-toggler:focus {
  background-image: url('../images/icons/gear-fill-white.svg');
}


/*
.top-nav .toolbar-toggler.expanded {
  background-image: url('../images/icons/x.svg');
}
*/

.breadcrumb {
  padding: 8px 8px 8px 8px;
  color: #fff;
  /*background-color: #ffe7c3;*/
}

.breadcrumb a {
  display: inline-block;
  font-weight: 500;
  padding: 0.3em 0.5em 0.3em 0.5em;
  margin: 0 0.2em;
  border-radius: 4px;
}

.breadcrumb a,
.breadcrumb a:link,
.breadcrumb a:visited {
  color: #fff;
}

.breadcrumb a:hover {
  color: rgb(50, 30, 10);
  background-color: rgba(255, 239, 195, 0.3);
}

.breadcrumb a:active,
.breadcrumb a:focus {
  color: rgb(30, 10, 0);
  background-color: rgba(255, 239, 195, 0.5);
  font-weight: normal;
}

.article-content {
  line-height: 1.75;
  font-size: 20px;
  padding: 0 1.2em;
  letter-spacing: 0.07em;
  background-color: rgb(252, 239, 220);
}

.article-title {
  font-size: 117%;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.12em;
  padding: 1em 1em;
}

.article-title br {
  display: none;
}

.article-title .article-title-note {
  display: block;
  font-size: 60%;
  font-weight: 300;
  line-height: 2;
  color: #555;
}

.source-url {
  padding:  0.5em 0.5em 1.0em 0.5em;
  text-align: center;
}

.source-url a {
  font-size: 80%;
  display: inline-block;
  margin: auto;
  border-radius: 0.5em;
  letter-spacing: 0.1em;
  height: 3em;
  line-height: 3em;
  padding: 0 1.1em 0 1.3em;
  transition: all 0.1s ease-in;
  user-select: none;
}

.source-url a,
.source-url a:link,
.source-url a:visited {
  color: rgb(255, 250, 235);
  background-color: rgb(236, 163, 74);
  background-image: radial-gradient(circle at 50% 50%,
   rgba(255, 250, 220, 0.1) 0%, 
   rgba(255, 255, 255, 0) 60%, 
   rgba(255, 255, 255, 0) 100%);
  letter-spacing: 0.12em;
  font-weight: normal;
  box-shadow: 5px 5px 10px rgba(100, 100, 100, 0.3);
}

.source-url a:hover {
  color: rgb(255, 255, 255);
  background-color: rgb(230, 126, 0); /* video2or menu-hover color: #E67E00 */
  background-image: radial-gradient(circle at 50% 50%, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0) 60%, 
    rgba(255, 255, 255, 0) 100%);
  box-shadow: 3px 3px 6px rgba(100, 100, 100, 0.3);
}

.source-url a:active,
.source-url a:focus {
  color: rgba(255, 255, 255, 0.99);
  background-color: rgb(200, 80, 50);
  background-image: radial-gradient(circle at 50% 50%, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0) 65%, 
    rgba(255, 255, 255, 0) 100%);
  box-shadow: 5px 5px 6px rgba(100, 100, 100, 0.3);
  transform: translate(0.5px, 0.5px);
}

.source-url a .icon {
  display: inline-block;
  width: 1.75em;
  height: 1.75em;
  background-image: url('../images/icons/lotus-white.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transform: translate(-0.3em, 0.5em);
}

.article-body {
  padding-bottom: 20px;
}

.article-title,
.article-body {
  font-family: "SimSun", "STSong", "宋体", "华文宋体", serif;
}

.article-body > p {
  text-indent: 2em;
}

.article-body.par-no-indent > p {
  text-indent: 0;
}

.article-body > p.preface {
  text-indent: 0;
  font-size: 65%;
  padding: 1em 1em;
  background-color: rgb(247, 232, 210);
  margin: 0.5em 0.7em;
  border: solid 1px rgb(227, 212, 190);
  border-radius: 5px;
}

.footer {
  background-color: #f3ddb3;
  line-height: 2;
}

.footer .bottom-nav {
  padding: 1.6em 1em;
  letter-spacing: 0.07em;
}

.footer .bottom-nav .prev-next a {
  display: flex;
  align-items: baseline; /* top-aligned for multiline titles */
  padding: 0.3em 0.3em 0.3em 0.7em;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0);
}

.footer .bottom-nav .prev-next a:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.07);
}

.footer .bottom-nav .prev-next a:active,
.footer .bottom-nav .prev-next a:focus {
  color: rgb(100, 10, 0);
  background-color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.footer .bottom-nav .prev-next .label {
  flex-grow: 0;
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 500;
  color: #654;
}

.footer .bottom-nav .prev-next .title {
  flex-grow: 1;
  font-family: "SimSun", "STSong", "宋体", "华文宋体", serif;
  font-weight: 600;
}

.video-container,
.audio-container {
  margin: 1em 0;
}

.video-container video,
.audio-container audio {
  display: block;
  margin: auto;
  width: 800px;
  max-width: 100%;
}

.audio-container audio::-webkit-media-controls-panel {
  background-color: rgb(255, 245, 230);
}

/* hacks */
.bhff-qna-section-header {
  display: none;
}

.bhff-qna-tag {
  font-weight: bold;
}

.background {
  display: none;
  background: none;
}


.version-selector {
  display: flex;
  justify-content: center;
  user-select: none;
  line-height: 5;
  align-items: center;
  font-size: 80%;
  margin: 1em 0;
}

/*
.version-selector .label {
  font-size: 90%;
  color: rgba(0, 0, 0, 0.7);
}
*/

.version-selector .version {
  margin: 0;
  border-radius: 0.5em;
  padding: 0.8em 0.8em 0.8em 1.3em;
  line-height: 2.5;
  height: 2.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 100%;
  color: #853;
  background-color: rgba(232, 215, 190);
  border: 1px solid rgba(222, 205, 180);
}

.version-selector .version:first-child {
  border-radius: 0.5em 0 0 0.5em;
  border-width: 1px 0 1px 1px;
  padding-right: 0.5em;
}

.version-selector .version:last-child {
  border-radius: 0 0.5em 0.5em 0;
  border-width: 1px 1px 1px 0;
  padding-left: 0.8em;
}

.version-selector .version:hover {
  background-color: rgb(220, 120, 60) !important;
  border-color: rgb(210, 110, 50);
  color: #fff;
}

.version-selector .version:active,
.version-selector .version:focus {
  background-color: rgb(200, 80, 50) !important;
  border-color: rgb(190, 70, 40);
  color: #fff;
  font-weight: normal;
}

.version-selector .version .icon {
  display: block;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.version-selector .version.version-book .icon {
  width: 1.0em;
  height: 1.0em;
  background-image: url('../images/icons/book-brown.svg');
  transform: translate(-0.35em, 0);
}

.version-selector .version.version-tzbk .icon {
  width: 1.5em;
  height: 1.5em;
  background-image: url('../images/icons/lotus-brown.png');
  transform: translate(0.2em, 0);
}

.version-selector .version.version-book:hover .icon,
.version-selector .version.version-book:active .icon,
.version-selector .version.version-book:focus .icon,
.version-selector .version.version-book.version-active .icon {
  background-image: url('../images/icons/book-white.svg');
}

.version-selector .version.version-tzbk:hover .icon,
.version-selector .version.version-tzbk:active .icon,
.version-selector .version.version-tzbk:focus .icon,
.version-selector .version.version-tzbk.version-active .icon {
  background-image: url('../images/icons/lotus-white.png');
}

.version-selector .version.version-active {
  color: #fff;
  background-color: rgb(236, 163, 74);
}




@media (min-width: 801px) {

  body {
    position: relative;
    background: none !important;
  }

  .background {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('../images/background.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }

  .container {
    padding: 10px;
  }

}
