:root {
  --forest: #123f30;
  --deep: #0d2f25;
  --leaf: #2f7d5a;
  --sun: #dd8a32;
  --paper: #fffaf1;
  --cream: #f6f1e8;
  --white: #ffffff;
  --mist: #eef5f1;
  --ink: #18251f;
  --muted: #68736d;
  --soft: #8d968f;
  --line: #e1dacd;
  --line-strong: #cfc4b3;
  --shadow: 0 18px 48px rgba(18, 63, 48, 0.08);
  --shadow-soft: 0 10px 26px rgba(18, 63, 48, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.75 "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.82), rgba(255, 255, 255, 0.98) 360px),
    var(--white);
}

a {
  color: var(--forest);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

a:hover {
  color: var(--leaf);
}

img {
  max-width: 100%;
  border: 0;
}

ol,
ul,
dl,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

ol,
ul,
dl {
  list-style: none;
}

.clear {
  clear: both;
}

#divAll {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(225, 218, 205, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.blog-topline {
  width: min(1120px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--forest);
}

.brand-mark img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper);
  box-shadow: 0 8px 18px rgba(18, 63, 48, 0.16);
}

.brand-mark span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-mark strong {
  font-size: 21px;
  font-weight: 900;
}

.brand-mark small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest);
  background: var(--paper);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.site-nav {
  border-top: 1px solid rgba(225, 218, 205, 0.72);
  overflow-x: auto;
  scrollbar-width: none;
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 0 20px;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-color: var(--sun);
  color: var(--deep);
}

.blog-masthead {
  width: min(1120px, calc(100% - 40px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 36px;
  align-items: end;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.blog-masthead-copy {
  min-width: 0;
}

.blog-masthead h1 {
  max-width: 680px;
  color: var(--forest);
  font-size: 52px;
  line-height: 1.08;
  font-weight: 900;
}

.blog-masthead p {
  max-width: 660px;
  margin-top: 18px;
  color: #40524b;
  font-size: 18px;
}

.blog-masthead-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.blog-masthead-links a,
.read-more,
.editor-card a,
.not-found-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--forest);
  border-radius: 8px;
  color: var(--paper);
  background: var(--forest);
  font-size: 14px;
  font-weight: 900;
}

.blog-masthead-links a + a {
  color: var(--forest);
  background: transparent;
}

.blog-masthead-links a:hover,
.read-more:hover,
.editor-card a:hover,
.not-found-actions a:hover {
  color: var(--paper);
  background: var(--leaf);
  border-color: var(--leaf);
}

.masthead-photo {
  margin: 0;
}

.masthead-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.masthead-photo figcaption {
  margin-top: 10px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.5;
}

.page-heading {
  width: min(1120px, calc(100% - 40px));
  margin: 30px auto 0;
  padding: 24px 0 18px;
  border-bottom: 1px solid var(--line);
}

.page-heading h1 {
  color: var(--forest);
  font-size: 34px;
  line-height: 1.2;
  font-weight: 900;
}

.page-heading p {
  max-width: 680px;
  margin-top: 8px;
  color: var(--muted);
}

#divPage {
  width: 100%;
  padding: 28px 20px 0;
}

#divMiddle {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 34px;
  align-items: start;
}

#divMain,
#divSidebar {
  min-width: 0;
}

.list-intro {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.list-intro h2 {
  color: var(--forest);
  font-size: 27px;
  line-height: 1.22;
  font-weight: 900;
}

.list-intro p {
  max-width: 720px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.post {
  position: relative;
  margin: 0 0 20px;
  padding: 26px 0 24px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.post.multi:first-of-type {
  padding-top: 8px;
}

.post-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.post-meta-line span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(47, 125, 90, 0.18);
  border-radius: 999px;
  color: var(--leaf);
  background: var(--mist);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.post-title {
  color: var(--forest);
  font-size: 28px;
  line-height: 1.28;
  font-weight: 900;
}

.post-title a {
  color: inherit;
}

.post-title a:hover {
  color: var(--leaf);
}

.single .post-title,
.page .post-title {
  font-size: 42px;
  line-height: 1.16;
  letter-spacing: 0;
}

.post-body {
  margin-top: 15px;
  color: #2f413a;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.post.multi .post-body {
  max-width: 760px;
  color: #41514c;
}

.post-body p {
  margin: 0 0 17px;
  text-indent: 0;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4 {
  margin: 30px 0 12px;
  color: var(--forest);
  font-weight: 900;
  line-height: 1.25;
}

.post-body h1 {
  font-size: 30px;
}

.post-body h2 {
  font-size: 25px;
}

.post-body h3 {
  font-size: 21px;
}

.post-body h4 {
  font-size: 18px;
}

.post-body ul,
.post-body ol {
  margin: 0 0 20px 24px;
}

.post-body ul {
  list-style: disc;
}

.post-body ol {
  list-style: decimal;
}

.post-body blockquote {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--sun);
  background: var(--paper);
  color: var(--forest);
}

.post-body img {
  display: block;
  height: auto;
  margin: 20px auto;
  border-radius: 8px;
}

.post-body table,
.function table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  background: var(--white);
}

.post-body th,
.post-body td,
.function th,
.function td {
  padding: 10px;
  border: 1px solid var(--line);
  text-indent: 0;
}

.post-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.post-footer .read-more {
  margin-left: auto;
}

.post-tags {
  margin-top: 20px;
  color: var(--muted);
}

.post-tags a {
  color: var(--leaf);
  font-weight: 800;
}

.read-more {
  min-height: 36px;
  padding-inline: 13px;
  font-size: 13px;
}

.blog-sidebar {
  scroll-margin-top: 120px;
}

.sidebar-anchor {
  position: relative;
  top: -120px;
  display: block;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.function,
.sidebar-card {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.editor-card {
  background:
    linear-gradient(180deg, rgba(18, 63, 48, 0.96), rgba(47, 125, 90, 0.92)),
    var(--forest);
  color: var(--paper);
}

.editor-card h3,
.function .function_t {
  color: var(--forest);
  font-size: 17px;
  line-height: 1.28;
  font-weight: 900;
}

.editor-card h3 {
  color: var(--sun);
}

.editor-card p {
  margin-top: 10px;
  color: rgba(255, 250, 241, 0.86);
  font-size: 14px;
}

.editor-card a {
  margin-top: 15px;
  border-color: var(--sun);
  background: var(--sun);
  color: var(--forest);
}

.editor-card strong {
  display: block;
  margin-top: 12px;
  color: var(--paper);
  font-size: 18px;
}

#divContorPanel,
#divFavorites,
#divLinkage {
  display: none;
}

.function .function_t {
  margin-bottom: 10px;
}

.function .function_c {
  color: var(--muted);
  font-size: 14px;
}

.function ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.function li {
  position: relative;
  list-style: none;
  padding-left: 14px;
  color: var(--muted);
  font-size: 14px;
}

.function li::marker {
  content: "";
}

.function li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sun);
}

.function a {
  color: var(--forest);
  font-weight: 800;
}

.function a:hover {
  color: var(--leaf);
}

#divSearchPanel form,
#divSearchPanel .function_c {
  display: flex;
  gap: 8px;
}

#divSearchPanel input[type="text"],
.function input[type="text"],
.function input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

#divSearchPanel input[type="submit"],
.function input[type="submit"],
input.button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--forest);
  border-radius: 8px;
  background: var(--forest);
  color: var(--paper);
  font: 900 13px/1 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

#divTags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#divTags li {
  padding: 0;
}

#divTags li::before {
  content: none;
}

#divTags a {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--leaf);
  font-size: 13px;
  font-weight: 900;
}

.pagebar {
  padding: 18px 0 4px;
  text-align: center;
}

span.page,
span.now-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  margin: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--forest);
  background: var(--paper);
  font-size: 14px;
  font-weight: 900;
}

span.now-page {
  background: var(--forest);
  color: var(--paper);
  border-color: var(--forest);
}

#divBottom {
  grid-column: 1 / -1;
  margin-top: 30px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand strong {
  display: block;
  color: var(--forest);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 900;
}

.footer-brand span {
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
  color: var(--forest);
  font-weight: 900;
}

#BlogPowerBy,
#BlogCopyRight,
.footer-contact {
  margin-top: 6px;
  font-size: 13px;
}

ul.msg,
#divCommentPost {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

ul.msghead {
  background: var(--forest);
  color: var(--paper);
}

li.tbname {
  color: inherit;
  font-size: 18px;
  font-weight: 900;
}

li.msgname {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--forest);
  font-weight: 900;
}

li.msgname .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}

li.msgarticle {
  padding: 14px 0 0 0;
  background: transparent;
}

.posttop {
  color: var(--forest);
  font-weight: 900;
}

#divCommentPost form p {
  margin-top: 12px;
}

#divCommentPost label {
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

input.text,
#txaArticle {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

input.text {
  height: 38px;
  padding: 0 10px;
}

#txaArticle {
  min-height: 150px;
  padding: 10px;
}

.postbottom {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.not-found {
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 64px 0;
}

.not-found-inner {
  max-width: 680px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.not-found-inner > span {
  color: var(--sun);
  font-size: 15px;
  font-weight: 900;
}

.not-found h1 {
  margin-top: 8px;
  color: var(--forest);
  font-size: 39px;
  line-height: 1.18;
  font-weight: 900;
}

.not-found p {
  margin-top: 14px;
  color: var(--muted);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.not-found-actions a + a {
  border-color: var(--sun);
  background: var(--sun);
  color: var(--forest);
}

@media (max-width: 1024px) {
  .blog-masthead {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .masthead-photo img {
    aspect-ratio: 16 / 8;
  }

  #divMiddle {
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 26px;
  }
}

@media (max-width: 860px) {
  .site-header {
    position: relative;
  }

  .blog-topline {
    width: min(100% - 28px, 680px);
    min-height: auto;
    padding: 14px 0;
  }

  .site-nav {
    justify-content: flex-start;
    padding-inline: 14px;
  }

  .blog-masthead,
  .page-heading {
    width: min(100% - 28px, 680px);
  }

  .blog-masthead h1 {
    font-size: 40px;
  }

  #divPage {
    padding-inline: 14px;
  }

  #divMiddle {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    scroll-margin-top: 20px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .blog-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .brand-mark img {
    width: 42px;
    height: 42px;
  }

  .brand-mark strong {
    font-size: 19px;
  }

  .brand-mark small {
    font-size: 12px;
  }

  .header-phone {
    width: 100%;
  }

  .site-nav a {
    min-height: 42px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .blog-masthead {
    margin-top: 24px;
    gap: 24px;
    padding-bottom: 24px;
  }

  .blog-masthead h1 {
    font-size: 33px;
  }

  .blog-masthead p {
    font-size: 16px;
  }

  .masthead-photo img {
    aspect-ratio: 4 / 3;
  }

  .page-heading h1,
  .single .post-title,
  .page .post-title {
    font-size: 29px;
  }

  .list-intro h2,
  .post-title {
    font-size: 24px;
  }

  .post {
    padding-block: 22px;
  }

  .post-footer .read-more {
    width: 100%;
    margin-left: 0;
  }

  #divSearchPanel form,
  #divSearchPanel .function_c {
    flex-wrap: wrap;
  }

  #divSearchPanel input[type="submit"],
  .function input[type="submit"] {
    width: 100%;
  }

  .footer-brand,
  .footer-links {
    align-items: flex-start;
  }

  .not-found {
    width: min(100% - 28px, 520px);
    padding: 42px 0;
  }

  .not-found-inner {
    padding: 26px;
  }

  .not-found h1 {
    font-size: 28px;
  }

  .not-found-actions a {
    width: 100%;
  }
}
