* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --ys1: #666666;
  --ys2: #ffffff;
  --ys3: #ffffff95;
  --ys4: #ebf3fb;
  --ys5: #5e8bf2;
  --n10: 10px;
  --n20: 20px;
  --n50: 50px;
}
body,header .link, a,
header .logo,
.fas {
    color: var(--ys1);
}
.tab-nav i,
 .buttons button a{
	 color: var(--ys2);
 }
.white,
header .sub{
	background-color: var(--ys2);
}
footer,.button-container > span,#staticrypt-logout,
header {
	background-color: var(--ys3);
}
header {
	width:100%;
	position: fixed;
	top: 0;
	z-index: 2999;
	backdrop-filter: blur(10px);
}
body {
  background-color: var(--ys4);
}
.images,.button-container > span,#staticrypt-logout,.post-content,.archive,.page-content,
header .sub {
  border-radius: var(--n10);
}

.pd,
.grid-info {
  padding: 15px;
}

.w80, .footer,.top-desc,
header nav {
    width: 80%;
}
.w80 {
	padding:60px 0;
	margin: 0 auto;
}
.grid,
.introduce{
	gap: var(--n20);
}

.introduce{
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.top {
	width: 100%;
	height: 40vh;
	position: relative;
}

.top-desc {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	font-size: 28px;
	font-weight: 600;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	text-align: center;
	z-index: 10;
	padding: 0 20px;
}
.images {
	max-height: 300px;
	overflow: hidden;
}
.top img,
.images img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.notop main{min-height: calc(100dvh - 70px);}
main{min-height: calc(100dvh - 50px);}

.mt-20 {margin-top: 20px;}

.buttons ,.mx20,
.page-content h2,
.page-content h3,
.page-content h4,
.post-content h2,
.post-content h3,
.post-content h4 {
	margin: 20px 0;
}

.page-content ul,
header .sub-2 .sub-item a {
  padding-left: 30px;
}

button {
    border: none;
    outline: none;
    background-color: var(--ys5);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.page-content img {
	width:100%;
	max-width:600px;
}



.footer,
header nav {
    position: relative;
	display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
	height: 50px;
}

header .logo {
  font-size: 24px;
  font-weight: bold;
}

header .menu {
  display: flex;
  flex-direction: row;
  list-style: none;
  position: relative;
}

header .item {
  position: relative;
  margin-left: 10px;
  border-bottom: none;
}

header .link {
  display: flex;
  align-items: center;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.mr,
header i {
  margin-right: 8px;
}

header .link .fas.fa-chevron-down {
  margin-left: 8px;
  margin-right: 0;
  font-size: 12px;
  transition: transform 0.3s;
}

header .link .fas.fa-chevron-down.rotated {
  transform: rotate(180deg);
}

header .link .fas.fa-chevron-right {
  margin-left: 8px;
  margin-right: 0;
  font-size: 12px;
  transition: transform 0.3s;
}

header .link .fas.fa-chevron-right.rotated {
  transform: rotate(90deg);
}

header .sub {
  position: absolute;
  top: 100%;
  right: 0;
  list-style: none;
  min-width: 250px;
  display: none;
  z-index: 1000;
}

header .sub.active {
  display: block;
}

header .sub-item {
  position: relative;
  width: 100%;
}

header .sub-item a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  transition: background-color 0.3s;
  white-space: nowrap;
}



header .sub-2 {
  position: static;
  box-shadow: none;
  min-width: 100%;
  margin-left: 0;
  top: auto;
  left: auto;
}





header .toggle {
  display: none;
  cursor: pointer;
  color: #fff;
  font-size: 24px;
  z-index: 1002;
}

header .overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  z-index: 1000;
  transition: opacity 0.3s ease-in-out;
}

header .overlay.active {
  display: block;
}

/*网格布局*/

.section-header {
  text-align: center;
  margin: 0px 0 40px 0;
}

.section-header h2 {
  font-size: 2rem;
}



.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

}

.grid-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  background-color: #ffffff;
}

.grid-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.grid-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.grid-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grid-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


@media screen and (max-width: 768px) {
.w80, .info-content,
header nav {
    width: calc(100% - 40px)!important;
}


.introduce {
grid-template-columns: 1fr;
}
.grid{
grid-template-columns: repeat(2, 1fr);
}

  header nav .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  header .logo {
    margin-bottom: 0;
  }

  header .toggle {
    display: block;
  }

  header .menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 220px;
    height: 100vh;
    background-color: var(--ys2);
    flex-direction: column;
    display: flex;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    border-top: none;
    margin-top: 0;
    transition: left 0.3s ease-in-out;
    z-index: 1001;
  }

  header .menu.active {
    left: 0;
  }

  header .item {
    margin-left: 0;
    width: 100%;
  }

  header .link {
    padding: 12px 15px;
  }

  header .sub {
    position: static;
    min-width: 100%;
    box-shadow: none;
  }

  header .sub-item a {
    padding-left: 30px;
  }

  header .sub-2 {
    position: static;
  }

  header .sub-2 .sub-item a {
    padding-left: 45px;
  }
}
nav > div:nth-child(1),
.archive-month,
.archive-post {
    display: flex;
    justify-content: space-between;
	align-items: center;
}

nav > div:nth-child(1) img {
	height:22px;
}
#staticrypt-logout{
    cursor: pointer;
    bottom: 60px;
    position: fixed;
    width: 30px;
    height: 30px;
    right: 10px;
	padding: 3px 10px;
	z-index:9;
}

body.family #staticrypt-logout{
    bottom: 340px;
}