@font-face {
  font-family: "BarbaraHand";
  src: url("../fonts/barbarahand-webfont.woff2") format("woff2"),
       url("../fonts/barbarahand-webfont.woff") format("woff");
}

:root {
  --blog-green: #16856b;
  --blog-green-dark: #116b57;
  --blog-bg: #f2f6f4;
  --blog-card: rgba(255, 255, 255, .94);
  --blog-text: #555;
   --blog-time: #000;
  --blog-muted: #fffefe;
  --blog-border: #e8eeeb;
}

html, body {
  min-height: 100%;
  margin: 0;
  color: var(--blog-text);
  background: var(--blog-bg) url("../images/bg.jpg");
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  cursor: url("../images/Normal.cur"), auto;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
body > .z-header,
body > .z-footer { flex: none; }

a { transition: color .2s ease; cursor: url("../images/Normal.cur"), pointer; }
a:hover { color: var(--blog-green); }

.bili-header-banner { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #e3e5e7; }
.bili-animated-banner { position: absolute; inset: 0; overflow: hidden; }
.bili-banner-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.bili-banner-layer img,
.bili-banner-layer video {
  display: block;
  width: auto;
  height: auto;
  transform-origin: center center;
  will-change: transform, opacity, filter;
}

.z-header { position: relative; height: 60px; overflow: visible; background-color: var(--blog-green) !important; box-shadow: 0 4px 18px rgba(20, 86, 68, .18); }
.z-header--banner { height: min(max(9.375vw, 120px), 220px); overflow: hidden; background-color: transparent !important; box-shadow: none; }
.z-header--banner:before { display: none; }
.z-header-inner { position: relative; z-index: 2; max-width: 1200px; height: 60px; margin: 0 auto; }
.z-logo { position: absolute; z-index: 2; left: 15px; height: 60px; line-height: 60px; }
.z-logo a { color: #fff; font-family: "BarbaraHand", cursive; font-size: 43px; }
.z-nav { position: absolute; right: 10px; top: 0; background-color: transparent !important; }
.z-nav .layui-nav-item { margin: 0 7px; }
.z-nav .layui-nav-item a { padding: 0 14px; }
.z-header--banner .z-logo a,
.z-header--banner .z-nav .layui-nav-item a,
.z-header--banner .z-icon { text-shadow: 0 2px 8px rgba(0, 0, 0, .38); }
.z-header--banner .z-nav .layui-this:after { background-color: rgba(255,255,255,.86); }
.z-icon { position: absolute; display: none; right: 18px; color: #fff; font-size: 28px; line-height: 60px; cursor: pointer; }

.z-content { margin-top: 22px; }
.z-carousel { overflow: hidden; border-radius: 5px; box-shadow: 0 8px 24px rgba(28, 75, 62, .12); }
.z-carousel [carousel-item] > div { position: relative; }
.z-carousel-link { display: block; width: 100%; height: 100%; color: #fff; }
.z-carousel img { width: 100%; height: 100%; object-fit: cover; }
.z-carousel-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 38px 28px 22px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.68));
  pointer-events: none;
}
.z-carousel-copy h2 { margin-bottom: 8px; font-size: 24px; }

.z-main {
  position: relative;
  margin-bottom: 20px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(229, 237, 233, .9);
  border-radius: 5px;
  background: var(--blog-card);
  box-shadow: 0 7px 22px rgba(28, 75, 62, .07);
}
.z-main h3 { margin: 4px 0 12px; padding-bottom: 11px; border-bottom: 1px solid var(--blog-border); font-size: 18px; }
.z-main h3 a { color: #263a34; }
.z-main .z-time { position: absolute; right: 22px; top: 24px; color: var(--blog-muted); font-size: 12px; font-style: italic; }
.z-time-inline { color: var(--blog-time); font-size: 12px; font-style: italic; }
.z-list img { width: 100%; height: 135px; object-fit: cover; border-radius: 4px; }
.z-text {
  height: 94px;
  overflow: hidden;
  color: #747f7b;
  line-height: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.z-stat { margin-top: 12px; color: var(--blog-muted); font-size: 12px; }
.z-stat > div { white-space: nowrap; }
.z-stat i { margin-right: 4px; }
.z-stat a { color: var(--blog-green); }
.zmod-top {
  position: absolute;
  left: -20px;
  top: 9px;
  width: 78px;
  height: 22px;
  color: #fff;
  background: #ff5722;
  line-height: 22px;
  text-align: center;
  transform: rotate(-45deg);
  font-size: 12px;
}

/* 首页文章卡片：参考 F:\phpstudy\WWW\个人博客\index.html */
.main {
  position: relative;
  padding: 10px 15px;
  overflow: hidden;
  background: #fff;
}
.main.list { margin-bottom: 0; }
.main .subject {
  margin-bottom: 5px;
  padding-bottom: 5px;
  border-bottom: 1px solid #eae6e6;
  font-size: 16px;
}
.main .subject a {
  display: -webkit-box;
  margin-left: 25px;
  overflow: hidden;
  color: #111;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
}
.main .subject a span {
  display: inline-block;
  color: #2ea7e0;
  font-size: 16px;
  font-weight: 400;
  vertical-align: bottom;
}
.main .subject em {
  position: absolute !important;
  right: 25px;
  top: 10px;
  color: #999;
  font-size: 12px;
  font-style: italic;
}
.main .content {
  width: 100%;
  color: #999;
}
.main .content .list-img img {
  width: 100%;
  height: 122px;
  max-height: 400px;
  object-fit: cover;
  background: #f6f6f6;
}
.main .mod-angle {
  position: absolute;
  left: 5px;
  top: 50px;
  z-index: 1;
  height: 24px;
  padding: 0 10px;
  color: #fff;
  background-color: #f63756;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
}
.main .mod-angle:after {
  content: " ";
  position: absolute;
  left: 0;
  top: 24px;
  width: 0;
  height: 0;
  border-top: 6px solid #cd213d;
  border-left: 10px solid transparent;
}
.main .mod-top {
  position: absolute;
  left: -18px;
  top: 9px;
  width: 74px;
  height: 20px;
  color: #fff;
  background-color: #ff5722;
  line-height: 20px;
  text-align: center;
  transform: rotate(-45deg);
}
.main .content .list-text {
  display: -webkit-box;
  width: 100%;
  height: 105px;
  margin-bottom: 10px;
  overflow: hidden;
  color: #999;
  line-height: 21px;
  text-overflow: ellipsis;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
}
.main .content .list-stat {
  width: 100%;
  height: 20px;
  overflow: hidden;
  color: #999;
  font-size: 12px;
  line-height: 18px;
}
.main .content .list-stat i {
  margin-right: 3px;
  font-size: 13px;
}
.main .content .list-stat em { font-size: 12px; }
.main .content .list-stat div { text-align: left; }
.main .content .list-stat div.Label { text-align: left; }
.main .content .list-stat div.Label a { color: #999; }
.main .content .list-stat div.Label a:hover { color: #000; }
.main .content .list-stat div.alink { text-align: right; }
.main:hover {
  box-shadow: 0 10px 50px rgba(51, 51, 51, .25);
}
.z-article-card {
  min-height: 184px;
  margin-bottom: 10px;
  padding: 12px 10px 14px;
  border: 1px solid #edf1ef;
  border-radius: 0;
  background: rgba(255,255,255,.86);
  box-shadow: none;
}
.z-article-card .z-card-head {
  position: relative;
  min-height: 26px;
  padding: 0 160px 6px 28px;
}
.z-article-card h3 {
  margin: 0;
  padding: 0;
  border-bottom: 0;
  font-size: 18px;
  font-weight: normal;
  line-height: 26px;
}
.z-article-card h3 a { color: #111; }
.z-article-card h3 span { color: #1e9fff; }
.z-article-card .z-time {
  position: absolute;
  right: 12px;
  top: 2px;
  color: #999;
  font-size: 12px;
  font-style: italic;
}
.z-article-card .z-card-body { margin-top: 2px; }
.z-article-card .z-list {
  position: relative;
  padding-left: 0 !important;
}
.z-article-card .z-list a {
  position: relative;
  display: block;
}
.z-article-card .z-list img {
  width: 100%;
  height: 122px;
  border-radius: 0;
  object-fit: cover;
}
.z-article-card .z-text {
  height: 82px;
  margin-top: -2px;
  color: #888;
  font-size: 14px;
  line-height: 24px;
  -webkit-line-clamp: 3;
}
.z-article-card .z-stat {
  position: relative;
  min-height: 28px;
  margin-top: 8px;
  padding-right: 86px;
  color: #999;
  font-size: 14px;
  line-height: 28px;
}
.z-article-card .z-stat span {
  display: inline-block;
  margin-right: 26px;
  white-space: nowrap;
}
.z-article-card .z-stat i {
  margin-right: 4px;
  color: #999;
  font-size: 16px;
}
.z-article-card .z-stat a { color: #999; }
.z-readmore {
  position: absolute;
  right: 0;
  top: 2px;
  padding: 0 8px;
  color: #fff !important;
  background: #009688;
  line-height: 22px;
}
.zmod-top {
  z-index: 2;
  left: -18px;
  top: 10px;
  width: 70px;
  height: 20px;
  background: #ff5722;
  line-height: 20px;
}
.zmod-hot,
.z-article-card .mod-angle {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  height: 24px;
  padding: 0 10px;
  color: #fff;
  background-color: #f63756;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
}
.zmod-hot:after,
.z-article-card .mod-angle:after {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 0;
  height: 0;
  border-top: 6px solid #cd213d;
  border-left: 10px solid transparent;
}

.z-sidebar .layui-card {
  margin-bottom: 20px;
  border-radius: 5px;
  background: var(--blog-card);
  box-shadow: 0 7px 22px rgba(28, 75, 62, .07);
}
.z-sidebar .layui-card-header { border-color: var(--blog-border); font-weight: bold; }
.z-about img { float: left; width: 84px; height: 84px; margin-right: 12px; border-radius: 5px; object-fit: cover; }
.z-about p { min-height: 84px; color: #707a76; line-height: 22px; }
.z-about b { color: var(--blog-green); font-family: "BarbaraHand", cursive; font-size: 29px; }
.z-side-list { margin: 0; padding: 0; list-style: none; }
.z-side-list li { padding: 10px 0; border-bottom: 1px dashed #e5ebe8; }
.z-side-list li:last-child { border-bottom: 0; }
.z-side-list span { float: right; color: var(--blog-muted); }
.z-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.z-title .layui-badge { float: left; margin: 1px 9px 0 0; }
.z-tags a { display: inline-block; margin: 0 6px 8px 0; padding: 5px 9px; color: var(--blog-green-dark); border-radius: 3px; background: #e9f5f1; }

.z-pagination { padding: 4px 0 24px; text-align: center; }

/* 文章详情页：参考 newblog/info.html */
.infosbox {
  float: right;
  width: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, .8);
}
.newsview { padding: 0 30px; }
.intitle {
  height: 40px;
  border-bottom: #000 2px solid;
  font-size: 14px;
  line-height: 40px;
}
.intitle a { font-weight: normal; }
.news_title {
  margin: 0;
  padding: 20px 0;
  color: #333;
  font-size: 24px;
  font-weight: normal;
  line-height: 34px;
}
.bloginfo {
  width: 100%;
  overflow: hidden;
  color: #333;
}
.bloginfo ul {
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.bloginfo li {
  float: left;
  margin-right: 20px;
  line-height: 24px;
}
.bloginfo a { color: #333; }
.tags {
  margin: 10px 0;
  overflow: hidden;
}
.tags a {
  display: inline-block;
  margin: 0 5px 0 0;
  padding: 3px 8px;
  color: #fff;
  background: #F4650E;
  border-radius: 0;
}
.tags a:hover { color: #fff; background: #e2523a; }
.news_about {
  margin: 20px auto 15px;
  padding: 10px;
  color: #888;
  border: 1px solid #F3F3F3;
  background: #F6F6F6;
  line-height: 23px;
}
.news_about strong {
  padding-right: 8px;
  color: #38485A;
  font-size: 13px;
  font-weight: 400 !important;
}
.news_con {
  color: #333;
  font-size: 14px;
  line-height: 24px;
  word-wrap: break-word;
}
.news_con .layui-code-view {
  box-sizing: border-box;
  margin: 12px 0;
  border: 1px solid #0C0C0C;
  border-radius: 2px;
}
.news_con .layui-code-view .layui-code-ol {
  box-sizing: border-box;
  border-right: 12px solid #0C0C0C;
  border-bottom: 12px solid #0C0C0C;
}
.news_con p {
  padding-top: 6px;
  padding-bottom: 4px;
  overflow: hidden;
  word-wrap: break-word;
}
.infosbox img {
  width: 100%;
  max-width: 100%;
  height: auto;
}
.share { padding: 20px; }
.diggit {
  width: 160px;
  margin: auto;
  color: #fff;
  background: #E2523A;
  border-radius: 3px;
  box-shadow: 1px 2px 6px 0 rgba(0, 0, 0, .2);
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}
.diggit a { color: #fff; }
#diggnum { margin: 5px; }
.nextinfo {
  width: 100%;
  margin: 20px 0;
  overflow: hidden;
  line-height: 24px;
}
.nextinfo p {
  margin: 0;
  padding: 4px 10px;
  border-radius: 5px;
}
.nextinfo a:hover {
  color: #000;
  text-decoration: underline;
}
.news_pl {
  width: 100%;
  margin: 10px 0;
  overflow: hidden;
}
.news_pl h2 {
  margin: 0;
  padding-left: 10px;
  color: #000;
  border-bottom: #000 2px solid;
  font-size: 14px;
  line-height: 40px;
}
.blog-about-page {
  max-width: 920px;
  margin: 26px auto 0;
}
.blog-about-page .layui-card {
  border-radius: 5px;
  background: var(--blog-card);
  box-shadow: 0 7px 22px rgba(28, 75, 62, .07);
}
.blog-about-hero .layui-card-body {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 30px;
}
.blog-about-avatar {
  width: 118px;
  height: 118px;
  border-radius: 5px;
  object-fit: cover;
}
.blog-about-intro { min-width: 0; }
.blog-about-kicker {
  margin: 0 0 5px;
  color: var(--blog-green);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0;
}
.blog-about-intro h1 {
  margin: 0 0 10px;
  color: #263a34;
  font-size: 28px;
  font-weight: normal;
}
.blog-about-intro p,
.blog-about-card p {
  color: #66736f;
  line-height: 1.9;
}
.blog-about-text { white-space: pre-line; }
.blog-about-card { margin-top: 20px; }
.blog-about-card .layui-card-header {
  border-color: var(--blog-border);
  color: #263a34;
  font-weight: bold;
}
.blog-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 20px;
}
.blog-about-list,
.blog-about-articles {
  margin: 0;
  padding: 0;
  list-style: none;
}
.blog-about-list li,
.blog-about-articles li {
  padding: 11px 0;
  border-bottom: 1px dashed #e5ebe8;
}
.blog-about-list li:last-child,
.blog-about-articles li:last-child { border-bottom: 0; }
.blog-about-list span {
  display: block;
  margin-bottom: 4px;
  color: var(--blog-green-dark);
  font-weight: bold;
}
.blog-about-list em {
  color: #78837f;
  font-style: normal;
  line-height: 1.7;
}
.blog-about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.blog-about-stats div {
  padding: 22px 12px;
  border: 1px solid #e4efeb;
  border-radius: 5px;
  background: #f8fbfa;
  text-align: center;
}
.blog-about-stats strong {
  display: block;
  color: var(--blog-green);
  font-size: 26px;
  line-height: 1.1;
}
.blog-about-stats span {
  display: block;
  margin-top: 6px;
  color: #7c8985;
}
.blog-about-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.blog-about-note {
  padding: 16px;
  border: 1px solid #e4efeb;
  border-radius: 5px;
  background: #f8fbfa;
}
.blog-about-note span {
  display: block;
  margin-bottom: 6px;
  color: var(--blog-green-dark);
  font-weight: bold;
}
.blog-about-note p {
  margin: 0;
  color: #78837f;
  line-height: 1.8;
}
.blog-about-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.blog-about-contact a,
.blog-about-contact span {
  display: block;
  padding: 13px 12px;
  border: 1px solid #e4efeb;
  border-radius: 5px;
  background: #f8fbfa;
  color: #34423e;
  text-align: center;
}
.blog-about-articles li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.blog-about-articles a {
  overflow: hidden;
  color: #34423e;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.blog-about-articles span {
  flex: none;
  color: var(--blog-muted);
}
.z-footer {
  width: 100%;
  padding: 24px 0;
  clear: both;
  color: #8d9994;
  text-align: center;
  text-shadow: #fff 1px 0 2px, #fff 0 1px 2px;
}

@media screen and (max-width: 992px) {
  .z-header { position: sticky; top: 0; z-index: 100; }
  .z-nav { right: 60px; }
  .z-nav .layui-nav-item { margin: 0; }
}

@media screen and (max-width: 768px) {
  .z-header--banner {
    height: 60px;
    overflow: visible;
    background-color: var(--blog-green) !important;
    box-shadow: 0 4px 18px rgba(20, 86, 68, .18);
  }
  .z-header--banner .bili-header-banner { display: none; }
  .z-header--banner .z-logo a,
  .z-header--banner .z-nav .layui-nav-item a,
  .z-header--banner .z-icon { text-shadow: none; }
  .z-header--banner .z-nav .layui-this:after { background-color: #5fb878; }
  .z-logo { left: 16px; }
  .z-icon { display: block; }
  .z-nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    padding: 8px 0;
    background: var(--blog-green-dark) !important;
  }
  .z-nav.layui-show { display: block !important; }
  .z-nav .layui-nav-item { display: block; width: 100%; }
  .z-nav .layui-nav-item a { text-align: center; }
  .z-content { margin-top: 12px; }
  .z-carousel-copy h2 { font-size: 19px; }
  .z-main { padding: 16px; }
  .z-main .z-time { position: static; display: block; margin-bottom: 12px; }
  .z-list { margin-bottom: 12px; }
  .blog-about-page { margin-top: 12px; }
  .blog-about-hero .layui-card-body {
    display: block;
    padding: 22px;
    text-align: center;
  }
  .blog-about-avatar { margin-bottom: 14px; }
  .blog-about-grid { grid-template-columns: 1fr; }
  .blog-about-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .blog-about-stats div { padding: 16px 6px; }
  .blog-about-notes,
  .blog-about-contact { grid-template-columns: 1fr; }
  .blog-about-articles li { display: block; }
  .blog-about-articles span {
    display: block;
    margin-top: 5px;
  }
}
