/* 滚动条 */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background-color: rgba(73, 177, 245, 0.2);
	border-radius: 2em;
}

::-webkit-scrollbar-thumb {
	background-color: #49b1f5;
	background-image: -webkit-linear-gradient(45deg,
			rgba(255, 255, 255, 0.4) 25%,
			transparent 25%,
			transparent 50%,
			rgba(255, 255, 255, 0.4) 50%,
			rgba(255, 255, 255, 0.4) 75%,
			transparent 75%,
			transparent);
	border-radius: 2em;
}

::-webkit-scrollbar-corner {
	background-color: transparent;
}

::-moz-selection {
	color: #fff;
	background-color: #49b1f5;
}

/* 页脚透明 */

#footer {
	background: rgba(255, 255, 255, .15);
	color: #000;
	border-top-right-radius: 20px;
	border-top-left-radius: 20px;
	backdrop-filter: saturate(100%) blur(5px)
}

#footer::before {
	background: rgba(255, 255, 255, .15)
}

#footer #footer-wrap {
	color: var(--font-color)
}

#footer #footer-wrap a {
	color: var(--font-color)
}

/*哔哩哔哩视频适配*/
.aspect-ratio {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 75%;
	margin: 3% auto;
	text-align: center;
}

.aspect-ratio iframe {
	position: absolute;
	width: 786px;
	height: 589px;
	left: 0;
	top: 0;
}

/* 自定义标题样式 */
#article-container h1,
#article-container h2,
#article-container h3,
#article-container h4,
#article-container h5,
#article-container h6 {
  position: relative;
  border-left: 4px solid #49b1f5;
  transition: all 0.3s ease-out;
  padding: 0;
}

#article-container h1:before,
#article-container h2:before,
#article-container h3:before,
#article-container h4:before,
#article-container h5:before,
#article-container h6:before {
  content: none !important;
}

#article-container h1:hover,
#article-container h2:hover,
#article-container h3:hover,
#article-container h4:hover,
#article-container h5:hover,
#article-container h6:hover {
  padding-left: 0.1rem;
}

#article-container h1 {
  font-size: 2em;
  color: #1e90ff;
}

#article-container h2 {
  font-size: 1.6em;
  color: #2c8ae6;
}

#article-container h3 {
  font-size: 1.4em;
  color: #3a84cc;
}

#article-container h4 {
  font-size: 1.2em;
  color: #487eb3;
}

#article-container h5 {
  font-size: 1.1em;
  color: #56789a;
}

#article-container h6 {
  font-size: 1em;
  color: #647280;
}


/* 文章语音播放功能样式 */
.article-speech-container {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.article-speech-button {
  background-color: #49b1f5;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 15px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.3s;
}

.article-speech-button:hover {
  background-color: #3a84cc;
}

.article-speech-button i {
  margin-right: 5px;
}

.article-speech-controls {
  margin-top: 10px;
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  padding: 8px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.speech-control-button {
  background-color: #49b1f5;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.speech-control-button:hover {
  background-color: #3a84cc;
}

.speech-rate-control {
  display: flex;
  align-items: center;
}

.speech-rate-control span {
  margin-right: 5px;
  font-size: 14px;
}

.speech-rate-control select {
  padding: 4px;
  border-radius: 4px;
  border: 1px solid #ddd;
}