@import url(animation.css);

/**
 * 针对手机端（小屏幕）的设置
 */
@import url(mobile.css) (max-width:600px);

/**
 * 针对PC端的设置
 */
@import url(pc.css) (min-width:600px);

@font-face {
	font-family: 'consolas-2';
	/*src: url(/font/consola.ttf) format("truetype"); */
	src: url(/font/clacon2.woff2) format("truetype");
}
@font-face {
	font-family: "source sans 3";
	src: local(""),
	     url(/font/source-sans-3-regular.woff2)
	     format("woff2");
	font-weight: 400;
	font-style:normal;
	font-display: swap;
}

a { text-decoration: none; color:#0075d8; }
a:hover { text-decoration:underline;}



:root {
	/* sometimes body is too short,
     * and you can see the black */
	background: /*url(/img/bg.svg)*/ white;
	font-family: "source sans 3";
	--max-width: 980px;
}

body {
	margin:0;
}

header {
	/* 背景图片可以设置多张 */
	background-image: linear-gradient(0deg, #e2e2e2, transparent 30%),
			linear-gradient(0deg, transparent 50%, #ffffff11 50%),
			linear-gradient(90deg, transparent 50%, #ffffff11 50%),
			url(/img/flower.jpg);
    background-position: center 15%;
	/* 按顺序指定每张背景图的尺寸 */
	background-size: 100%,50px 50px,50px 50px,100%;
	overflow: hidden;
    height: 120px;
}

.shadow { box-shadow:1px 1px 3px #00000059; }

.page-wrapper {
	max-width: var(--max-width);
	margin: 0 auto;
}


/* background: window;
 * `window' is not a constant color;
 * It differs from browsers;
 * In Firefox(SUSE), it's value is "#e8e8e7";
 */

nav {
	/* 线性渐变 */
	background:linear-gradient(180deg, white, #ffffffb0 30px);
	backdrop-filter: blur(3px);
	box-shadow:0 0 3px #00000054;
	text-shadow:0 0 1px #00000073;
	font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 10001;
}

/**
 * 一个页面只有一个 main 
 */
main {
	margin: 1em;
}
.nav-menu {
	max-width:var(--max-width);
	display:flex;
	padding: 5px 1em;
	list-style:none;
	margin:0 auto;
	overflow-x: auto;
	line-height: 30px;
}
.nav-menu:first-child {
	margin-top:0;
}
.nav-menu > li {
	margin: 0 0.5em;
	white-space: nowrap;
}

/* 标题必须顶格写 */
/* no text-shadow */
main > h1 { font-size:40px; text-align:center; color:darkcyan; }
/* apple */
main > h1 > i {
	font-style:normal;
	background:linear-gradient(90deg,#2ca2b4,#5598de 24%,#7f87ff 45%,#f65aad 76%,#ec3d43);
	color: transparent;
	-webkit-background-clip: text;
	background-clip: text;
}

.my-avatar {
	display: block;
	border-radius: 50%;
	/*animation: walkman 30s infinite linear; /* 线性、均匀地旋转 */
	animation: 1s tick-ready 2s forwards,
		2s tick-tick 4s infinite;
	border:10px solid #000000a0;
    width: 64px;
    margin: 18px auto;
}

.black-board {
	font-family: consolas-2,consolas;
	color: #e7e7e7;
	background: black;
	padding: 1em;
	overflow: auto;
	line-height: 1;
	border-radius:3px;
}
.blue-board {
	font-family: consolas;
	color: #e7e7e7;
	background: #001a41; /* darkblue */
	padding: 1em;
	overflow: auto;
	line-height: 1;
	border-radius:3px;
}

.group { margin:1em 0; }


footer {
	font-size: 13px;
	padding: 1em;
	text-align: right;
    background: #eeeeee88;
    border-top: 1px solid #eee;
    color: #999;
}
footer a {
	white-space: nowrap;
    color: #999;
}
.beian-ico {
    height: 1.4em;
    vertical-align: middle;
}


/* button */
button.btn {
    background: #008b8b;
    color: white;
    cursor: pointer;
    border: none;
    border-radius: 2px;
    padding: 0.3em 0.8em;
    /* transition: background-color 500ms; */
}
button.btn:hover {
    background-color: #006363;
}
button.btn:focus {
    outline: 2px solid #a14f4f52;
}
button.btn:active {
    background-color: #034b4b;
    transition: none;
}
