/*
Theme Name: hmd
Theme URI: https://hjyl.org/wordpress-theme-hmd/
Author: HJYL
Author URI: https://hjyl.org
Description: 一款酷似markdown风格的WordPress主题
Requires at least: 5.3
Tested up to: 6.7
Requires PHP: 5.6
Version: 2.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: hmd
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, block-patterns, sticky-post, threaded-comments, translation-ready, block-styles, blog, portfolio, news
*/
/* =Reset CSS.= */
*{
	margin: 0;
	padding: 0;
}
:root {
	--color-background: #17181a;
	--white-color-background: #F6F7F9;
	--color-text-dark: #d0d3d8;
	--color-text-white: #383838;
	--color-page-background: #1f2022;
	--color-page-background-white: #FFFFFF;
	--color-menu-background: #383838;
	--color-menu-background-white: #eeeeee;
	color-scheme: light dark;
}
@font-face {
  font-family: "hjyl";
  src: url("asset/hjyl.woff2") format("woff2"),
       url("asset/hjyl.woff") format("woff"),
       url("asset/hjyl.ttf") format("truetype"),
       url("asset/hjyl.eot") format("embedded-opentype"),
       url("asset/hjyl.svg") format("svg");
  font-weight: normal;
  font-style: normal;
}
.hjylfont{
	font-size: 100%;
}
html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video{
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
}
body{
	text-align: center;
	font: 400 1.1rem/2.2 "LXGW WenKai Screen", "Microsoft Yahei", "Hiragino Sans GB", arial, Verdana, sans-serif;
	word-wrap: break-word;
	letter-spacing: 1px;
}

/**********手动转换暗黑模式*************/
.dark-scheme,
.light-scheme .hmd_circle {
	background: var(--color-background);
	color: var(--color-text-dark);
}
.dark-scheme a,
.dark-scheme .sub-menu-toggle i{
	color: var(--color-text-dark);
}
.dark-scheme #page{
	background-color: var(--color-page-background);
}
.dark-scheme #hjyl_menu,
.dark-scheme #content-copyright,
.dark-scheme #nav-single,
.dark-scheme .commentlist,
.dark-scheme .commentlist:before,
.dark-scheme #hjyl_menu > ul > li > ul.sub-menu,
.dark-scheme .nav-links{
	background-color: var(--color-menu-background);
}
.dark-scheme .commentlist:before{
	border-top: 1px solid var(--color-menu-background);
	border-right: 1px solid var(--color-menu-background);
}

.light-scheme,
.dark-scheme .hmd_circle {
	background: var(--white-color-background);
	color: var(--color-text-white);
}
.light-scheme a,
.light-scheme .sub-menu-toggle i{
	color: var(--color-text-white);
}
.light-scheme #page{
	background-color: var(--color-page-background-white);
}
.light-scheme #hjyl_menu,
.light-scheme #content-copyright,
.light-scheme #nav-single,
.light-scheme .commentlist,
.light-scheme .commentlist:before,
.light-scheme #hjyl_menu > ul > li > ul.sub-menu,
.light-scheme .nav-links{
	background-color: var(--color-menu-background-white);
}
.light-scheme .commentlist:before{
	border-top: 1px solid var(--color-menu-background-white);
	border-right: 1px solid var(--color-menu-background-white);
}
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary {
	display: block;
}
a{
	text-decoration-thickness: 1px;
	text-underline-offset: 0.4ch;
}
a:hover,
a:focus{
	text-decoration-style: dashed;
}
a:active {
	text-decoration: none;
}
.wp-block-navigation .wp-block-navigation-item a:hover,
.wp-block-navigation .wp-block-navigation-item a:focus {
	text-decoration: underline;
	text-decoration-style: solid;
}
h1{
	font-size: 5rem;
}
h2{
	font-size: 2rem;
}
h3{
	font-size: 1.6rem;
}
h4,
h5,
h6{
	font-size: 1.2rem;
}
h1,
h2,
h3,
h4,
h5,
h6{
	font-weight: 600;
}
.clear,
.commentlist ol > li:after{
	content: "";
	clear: both;
	display: block;
}
.widget_calendar,
#wp-calendar{
	width: 100%;
}
input, textarea{
	outline:none;
}

/* =WordPress Reset CSS */
img.size-auto,
img.size-full,
img.size-large,
img.size-medium,
.attachment img,
img[class*="align"],
img[class*="wp-image-"],
img[class*="attachment-"]{
	max-width: 95%; /* When images are too wide for containing element, force them to fit. */
	height: auto; /* Override height to match resized width for correct aspect ratio. */
}
.alignleft,
img.alignleft {
	display: inline;
	float: left;
	margin-right: 24px;
	margin-top: 4px;
}
.alignright,
img.alignright {
	display: inline;
	float: right;
	margin-left: 24px;
	margin-top: 4px;
}
.aligncenter,
img.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
img.alignleft,
img.alignright,
img.aligncenter {
	margin-bottom: 12px;
}
.home .format-status .wp-caption,
.archive .format-status .wp-caption,
.home .format-status .wp-block-image,
.home .format-status .wp-block-image::before,
.home .format-status .wp-block-image::after,
.archive .format-status .wp-block-image,
.home .format-status figure.wp-block-gallery.has-nested-images,
.archive .format-status figure.wp-block-gallery.has-nested-images{
	width: 30%;
}
.wp-block-gallery.has-nested-images figure.wp-block-image img{
	width: auto !important;
}
.wp-caption,
.wp-block-image {
	box-shadow:inset 0px 0px 1px #333436;
	max-width: 100%;
	margin: 10px;
	padding-top: 4px;
	text-align: center;
	position: relative;
}
.wp-caption img,
.wp-block-image img {
	margin: 5px;
}
.wp-caption p.wp-caption-text,
.wp-block-image p.wp-caption-text {
	color: #888;
	font-size: 12px;
	margin: 5px;
}
.gallery {
	margin: 0 auto 18px;
}
#main .gallery .gallery-item {
	float: left;
	margin: 0 10px 0;
	text-align: center;
	width: 24.5%;
}
#main .gallery-columns-2 .gallery-item {
	width: 50%;
}
#main .gallery-columns-4 .gallery-item {
	width: 25%;
}
#main .gallery img {
	border: 2px solid #cfcfcf;
}
#main .gallery-columns-2 .attachment-medium {
	max-width: 92%;
	height: auto;
}
#main .gallery-columns-4 .attachment-thumbnail {
	max-width: 84%;
	height: auto;
}
#main .gallery .gallery-caption {
	color: #888;
	font-size: 12px;
	margin: 0 0 12px;
}
#main .gallery dl {
	margin: 0;
}
#main .gallery img {
	border: 10px solid #f1f1f1;
}
#main .gallery br+br {
	display: none;
}
.attachment img {/* single attachment images should be centered */
	display: block;
	margin: 0 auto;
}
select{
	border: 1px solid;
	padding: 5px 10px;
}
table{
	border: 1px solid #e7e7e7;
	margin: 0 -1px 24px 0;
	text-align: left;
	width: 100%;
}
th, td{
	border: 1px solid #ccc;
	padding: 3px 10px;
	text-align: left;
	vertical-align: top;
}
tr.even td{
	background: #707070;
}
.wp-block-pullquote{
	border: none;
	padding: 0;
	margin-bottom: 0;
}
blockquote,
.wp-block-quote{
	padding: 50px 70px;
	border-radius: 3px;
	border: none;
	box-shadow: 0px 0px 1px #333436 inset;
	margin: 10px 5px;
	position: relative;
}
.wp-caption:before,
.wp-caption:after,
.wp-block-image:before,
.wp-block-image:after,
blockquote:before,
blockquote:after{
	content: "";
    background: transparent;
	width: 70px;
	height: 50px;
	position: absolute;
	z-index: 1;
}
.wp-caption:before,
.wp-block-image:before,
blockquote:before{
    border-top: 2px solid #1c73e0;
    border-left: 2px solid #1c73e0;
	top: 0;
	left: 0;	
}
.wp-caption:after,
.wp-block-image:after,
blockquote:after{
    border-bottom: 2px solid #1c73e0;
    border-right: 2px solid #1c73e0;
	bottom: 0;
	right: 0;	
}
blockquote p{
	text-align: left;
}
code,
.wp-block-code{
	background: #555;
	color: #ddd;
	padding: 5px 10px;
	overflow-x: auto;
	border-radius: 5px;
}
pre.wp-block-code{
	width: auto;
	overflow: auto;
	background: none;
	border: none;
	padding: 0 5px 16px;
	margin: 0 0 20px;
}
cite{
	font-style:normal;
}
.sticky{
	color: inherit;
}
/* Text meant only for screen readers. */
.screen-reader-text,
.comment-form-cookies-consent,
.wp-block-search__label {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}
.screen-reader-text:focus,
.wp-block-search__label:focus {
	background-color: #eee;
	clip: auto !important;
	clip-path: none;
	color: #444;
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 99;
	/* Above WP toolbar. */
}
/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus {
  outline: 0;
}
.wp-block-quote.has-text-align-right{
	border: none;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(2n+1) {
	background: transparent;
}
.wp-block-table.is-style-stripes td, .wp-block-table.is-style-stripes th {
	border-color: inherit;
}

#page{
    width: 1000px;
    margin: 0 auto;
}
#hjyl{
	position: fixed;
	font-size: 14em;
	font-family: "hjyl", "Microsoft Yahei", "Hiragino Sans GB", arial, Verdana, sans-serif;
	color: #1F2022;
	z-index: -100;

}

@media screen and (max-width: 950px) {
	#content{
		overflow: hidden;
		margin: 0 10px 20px 10px !important;
	}
	#page{
		width: 100%;
	}
	.index-commentlist {
		padding: 10px !important;
	  }
	#hjylUp {
		margin: 0 !important;
		bottom: -18px !important;
	}
}
@media screen and (max-width: 400px) {
	#sidebar .footer-widgets {
		width: 100% !important;
		float: none !important;
	  }
	.nav-links {
		width: 100% !important;
		margin: 0 !important;
	}
}

/******顶部******/
#header{
	position: relative;
}
h1#logo{
	line-height: 2.4em;
}
h1#logo a{
	font-family: "hjyl", "Microsoft Yahei", "Hiragino Sans GB", arial, Verdana, sans-serif;
	font-weight: bold;
	color: #1c73e0;
	text-decoration: none;
}
#logo a:focus,
#logo a:hover{
	color: #ee7c3d;
}
#hjyl_menu{
	height: 40px;
}
#hjyl_menu ul{
    display: flex;
    width: 100%;
    height: 40px;
    flex-flow: row nowrap;
    justify-content: space-around;
    align-items: center;
}
#hjyl_menu ul li{
	display: flex;
	position: relative;
}
#hjyl_menu > ul > li > ul.sub-menu{
    text-align: center;
    display: none;
	float: left;
	height: auto;
	min-width: 200px;
	position: absolute;
	top: 40px;
	left: 0;
	z-index: 10;
}
#hjyl_menu > ul > li > ul.sub-menu ul.sub-menu{
	height: auto;
	margin-left: 20px;
	float: none;
}
#hjyl_menu ul li a{
	color: #aeb1b5;
	text-decoration: none;
	font-size: 0.9rem;
	padding: 5px;
	text-shadow: 0 1px 0 #1c1f21;
}
#hjyl_menu ul li.current-menu-item > a,
#hjyl_menu ul li.current-menu-parent > a,
#hjyl_menu ul li.current_page_item > a,
#hjyl_menu ul li a:hover,
#hjyl_menu ul li a:focus,
#open-menu i:hover,
#open-menu i:focus{
	color: #7badec;
}
.sub-menu-toggle{
	background: transparent;
	border: none;
}
.sub-menu-toggle:hover{
	cursor: pointer;
}
#darkroll{
	border-radius: 50%;
	position: absolute;
	cursor: pointer;
	left: 50%;
	z-index: 100;
	margin: 15px 0 0 -80px;
}
#darkroll::before{
	content: '';
	display: block;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	transform: translateX(-50%);
	animation: blink 1s infinite;
}
#darkroll::before{
	background-color: #ffffff;
	border: 3px solid #1c73e0;
}
@keyframes blink {
	0% {
	opacity: 1;
	}
	50% {
	opacity: 0.5;
	}
	100% {
	opacity: 1;
	}
}
.search-form #s,
.widget_search .wp-block-search__input{
	background-color: #444;
	color: #a4a4a4;
	width: 180px;
	height: 25px;
	border-radius: 10px;
	border: none;
	box-shadow: inset 1px 1px 3px #3b3b3b;
	padding-left: 20px;
}
.search-form #s:focus{
	border: none;
	outline: none;
}
.wp-block-search, .search-form{
	position: relative;
}
.wp-block-search .wp-block-search__button{
	position: absolute;
	cursor: pointer;
	border: none;
	background: transparent;
	right: 8px;
}
.search-submit{
	color: #a4a4a4;
	border: none;
	background: transparent;
	cursor: pointer;
	position: absolute;
	top: 13px;
	left: 50%;
	margin-left: 50px;
}
.header-footer{
	margin: 40px 0 0 0;
}
.position ul{
	line-height: 1.8em;
}
.position ul li{
	margin-right: 20px;
}
.position ul li{
	display: inline-flex;
	padding: 0 10px;
	position: relative;
}
.position ul li:not(:first-of-type):before{
	display: block;
	content: " / ";
	position: absolute;
	left: -15px;
}

/********文章页*********/
#content{
	text-align: left;
	margin: 0 50px 20px 50px;
}
#main article{
	padding: 0 10px;
	margin: 0 0 50px 0;
}
#main article video,
#main article iframe{
	width: calc(100% + 120px);
	max-width: 1000px;
	margin-left: -60px;
}
#main article a[rel="author"]{
	margin-right: 10px;
}
.header-meta{
	margin-bottom: 10px;
}
.header-meta span{
	margin-right: 10px;
}
#content-copyright{
	border-left:10px solid #12629C;
	margin-left:-10px;
  	padding:0 20px;
}
.sticky-title{
	font-size: 1.5rem;
	background-color: #3b3b3b;
	padding: 2px 5px;
	border-radius: 5px;
}
.tags a::before{
	content: "#";
}
.wp-block-calendar table th{
	background: #383838;
}
.entry-content h3,
.entry-content h4{
	color: #1c73e0;
}
.entry-content p{
	margin-bottom: 20px;
}
.index_avatar{
	border-radius: 100%;
}
.index_avatar{
	margin-left: -10px;
}
.hmd_circle{
	border-radius: 100%;
	width: 8px;
	height: 8px;
	display: block;  
}
.hmd_circle_click{
	animation: colorChange 3s infinite; /* 添加颜色变化动画 */
}
/* 为每个圆圈设置不同的动画延迟 */
.hmd_circle_click:nth-child(1) {
    animation-delay: 0s; /* 第一个圆圈立即开始 */
}

.hmd_circle_click:nth-child(2) {
    animation-delay: 0.5s; /* 第二个圆圈延迟 0.5 秒开始 */
}

.hmd_circle_click:nth-child(3) {
    animation-delay: 1s; /* 第三个圆圈延迟 1 秒开始 */
}

@keyframes colorChange {
    0% {
        background-color: red; /* 初始颜色 */
    }
    33% {
        background-color: yellow; /* 中间颜色 */
    }
    66% {
        background-color: green; /* 结束颜色 */
    }
    100% {
        background-color: red; /* 回到初始颜色 */
    }
}
.hmd_circle:not(:first-child){
	margin-left: 5px;
}

/*****文章格式: 状态******/
.status-avatar{
	float: left;
	width:50px;
	height: 50px;
	margin:10px 20px 0 0;
}
.status-avatar img{
	border-radius:70px;
	border:1px solid #DDDDDD;
	padding:3px;
}
.status-avatar img:hover{
	border:1px solid #12629C;
	box-shadow: 0px 0px 3px #12629C inset;
}
.format-status .header-meta{
	text-align: left;
}

/********底部sidebar*********/
#sidebar{
	padding: 10px 20px;
	text-align: left;
}
.widget .wp-block-archives li{
	width: 45%;
	display: inline-block;
}
#sidebar .footer-widgets{
	width: 31%;
	float: left;
}
#sidebar .footer-widgets.column-two{
	margin: 0 20px;
}

/********首页评论模板css*********/
.commentlist{
	margin: 10px 0;
	padding: 10px 0;
	position: relative;
}
#comments-title,
#pings-title{
	font-weight: bold;
}
#pings-title{
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
}
#pings-title:before,
#pings-title:after{
	content: '';
	width: 100%;
	height: 1px;
	background: #e8e8e8;
}
#pings-title span{
	padding: 0 5px;
	width: 200px;
}
.index-commentlist{
	font-size: 0.8em;
	padding: 10px 10px 5px 10px;
}
.dark-scheme .topCommentTag{
	background: var(--color-page-background);	
}
.light-scheme .topCommentTag{
	background: var(--color-page-background-white);
}
.topCommentTag{
	position: absolute;
	right: -40px;
	top: 30px;
	width: 15em;
	height: auto;
	font-size: 0.7rem;
	color: #1c73e0;
	font-weight: bold;
	transform: rotate(40deg);
	text-align: center;
}
.commentlist:before{
	content: "";
	width: 10px;
	height: 10px;
	position: absolute;
	top: -6px;
	left: 20px;
	transform: rotate(-45deg);
}
.commentlist h3,
.commentlist textarea{
	font-size: 14px;
}
.commentlist .hjyl-comment1{
	position: absolute;
	left: 10px;
	top: 20px;
}
.commentlist li{
	position: relative;
}
.commentlist li .comment-body{
	margin-left: 50px;
}
.commentlist li .comment-author .avatar{
	float: left;
	border: 1px solid #7B7B7B;
	box-shadow: 0 0 1px #979595;
	border-radius: 5px;
	margin: 8px 15px 0 0;
}
.commentlist li .comment-author .comment_meta .reply a{
	text-decoration: none;
}
.commentlist li .comment-author .comment_meta .fn a:hover,
.commentlist li .comment-author .comment_meta .reply a:hover{
	color: #968f92;
}
#respond{
	margin: 10px 0 0 0;
}
#respond #comment-author-info p{
	width: 200px;
	display: flex;
	align-items: center;
	background: #707070;
	border: 1px solid #a4a4a4;
	border-radius: 5px;
	padding: 5px 10px;
	line-height: 1.1em;
}
#respond #comment-author-info p input{
	border: none;
	background: transparent;
	color: #ffffff;
}
#respond .comment-form-comment textarea{
	width: 25%;
	height: 20px;
	background: #707070;
	border: 1px solid #1c73e0;
	border-radius: 5px;
	color: #ffffff;
	padding: 5px 10px;
}
input[type="text"]::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
	color: #383838;
}
#respond .form-submit #submit{
	padding: 10px;
	background: #1c73e0;
	border: none;
	border-radius: 10px;
	color: #ffffff;
}
#respond p{
	margin-bottom: 10px;
}
.commentlist li ul.children{
	margin-left: 45px;
}
@media screen and (max-width: 500px) {
.commentlist li ul.children li ul.children{
	margin-left: 0;
}
}
.commentlist li.bypostauthor > .comment > .comment-author > .comment_meta .fn a{
	color: #EE504E;
	font-weight: 600;
}
.single-commentlist .comment{
	margin: 10px;
}
.commentlist .comment_time{
	color: #616261;
	margin: 10px 0;
}
.commentlist .comment-body-footer{
	color: #616261;
}
.floor{
	position: absolute;
	color: #c4c4c4;
	font-size: 20px;
	right: 10px;
}
#comments-nav a,
#comments-nav span,
.page-link a,
.page-link span{
	margin: 0 5px;
	padding: 5px;
}
.page-link .current,
#comments-nav .current{
	color: #a0a0a0;
	font-style: italic;
	font-weight: bold;
}

/********文章底部翻页导航*********/
.nav-links{
	width: calc(100% + 100px);
	max-width: 1000px;
	margin-left: -50px;
	padding: 10px 0;
	text-align: center;
}
.nav-links a,
.nav-links .current{
	display: inline-block;
	width: 50px;
	height: 50px;
	margin-right: 20px;
	line-height: 50px;
	text-align: center;
	font-size: 20px;
	font-weight: 600;
	text-decoration: none;
	color: #777;
	border-radius: 50%;
	transition: 0.3s;
}
.nav-links a:hover{
	color: white;
	background: #777;
}
.nav-links .current {
	color: white;
	background: #17181A;
}
#nav-single{
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	align-items: center;
	margin: 0 0 50px -50px;
	max-width: 1000px;
	width: calc(100% + 100px);
}
#hjylUp{
	font-size: 1.5rem;
	color: #a4a4a4;
	position: fixed;
	left: 50%;
	bottom: 0;
	margin-left: 488px;
	cursor: pointer;
  }
.adsbygoogle iframe{
	margin-left: 0px !important;
}