:root {
  font-family:  Roboto,Noto Sans SC,Microsoft YaHei,Arial,sans-serif;
  --ink: #444;
  --muted: #5f6368;
  --paper: #fafafa;
  --card: #fff;
  --line: #e8eaed;
  --accent: #c45c26;
  --accent-dark: #9a4014;
  --forest: #2f4f3e;
  --danger: #a33b2b;
  --ok: #2f4f3e;
  --orange:#dd4814;
  --shadow: 0 10px 30px rgba(28, 25, 21, 0.06);
}
* {
  box-sizing:  border-box
}
html {
  scroll-behavior:  smooth;
  scroll-padding-top:  82px
}
body {
  min-width:  320px;
  min-height:  100vh;
  margin:  0;
  color:  var(--ink);
  background: var(--paper);;
  font-size:  14px
}
button,
input,
select,
textarea {
  font-family: inherit;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; }

.site-header {
  position:  sticky;
  z-index:  20;
  top:  0;
  height:  60px;
  border-bottom:  1px solid #e8eaed;
  background:  #fffffff7
}

.topbar-inner {
  height:  100%;
  display:  flex;
  align-items:  center;
  gap:  30px;
  padding:  0 30px
}
.brand {
  display:  inline-flex;
  flex:  0 0 auto;
  align-items: center;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  font-weight: 200;
  margin:0 1rem 0 0;
}
.logo-text{color:var(--orange);}
.brand img{margin:0 6px 0 0; width:28px; height:28px;}
.brand .boldy400{font-weight:400;}


.menu-toggle {
  width:  38px;
  height:  38px;
  display:  none;
  flex:  0 0 auto;
  flex-direction:  column;
  align-items:  center;
  justify-content:  center;
  gap:  5px;
  border:  0;
  border-radius:  50%;
  background:  transparent;
  cursor:  pointer
}
.menu-toggle:  hover {
  background:  #f1f3f4
}
.menu-toggle span {
  width:  18px;
  height:  2px;
  border-radius:  2px;
  background:  #5f6368
}

.top-links {
  height:  100%;
  display:  flex;
  align-items:  stretch;
  gap:  27px;
}
.top-link {
  position:  relative;
  display:  flex;
  align-items:  center;
  font-size:  14px;
  color:var(--ink);
  font-weight:600;
}
.top-link:hover{color:var(--orange);}

.login-button {
  display:  inline-flex;
  align-items:  center;
  gap:  8px;
  padding:  9px 10px;
  border-radius:  4px;
  color:  #5f6368;
  font-size:  13px
}
.site-search-slot {
  display: flex;
  flex: 1 1 180px;
  max-width: 280px;
  min-width: 0;
  height: 36px;
  margin-left: auto;
}
.site-search {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 36px;
  position: relative;
  background: #fff;
  border-radius: 4px;
  box-shadow: rgba(60, 64, 67, 0.3) 0 1px 2px 0, rgba(60, 64, 67, 0.15) 0 1px 3px 1px;
}
.site-search button {
  position: absolute;
  left: 8px;
  top: 0;
  width: 28px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5f6368;
  cursor: pointer;
}
.site-search svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.site-search input[type=text] {
  width: 100%;
  height: 36px;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #5f6368;
  font-size: 16px;
  line-height: 20px;
  padding: 8px 12px 8px 40px;
  box-shadow: none;
}
.site-search input[type=text]::placeholder { color: #5f6368; opacity: 1; }
.site-search input[type=text]:focus { outline: none; box-shadow: none; }
.search-title { margin: 0 0 16px; font-size: 1.4rem; font-weight: 500; }

.doc-layout {
  width:  100%;
  min-height:  calc(100vh - 122px);
  display:  grid;
  grid-template-columns: 220px 1fr 180px;
  gap: 30px;
  align-items:  start;
  justify-content:  space-between;
  margin:  0 auto;
  padding:  0
}
.side-nav {
  position:  sticky;
  top:  60px;
  height:  calc(100vh - 60px);
  overflow:  auto;
  padding:  0 0 32px 0;
  border-right:  1px solid var(--line);
  scrollbar-width:  thin
}
.nav-item {
  display:  flex;
  align-items:  center;
  min-height:  27px;
  padding:  4px 10px 4px 16px;
  border-radius:  0 16px 16px 0;
  color:  #3c4043;
  font-size:  12px;
  line-height:  1.35
}
.nav-item:  hover,.nav-group-toggle:  hover {
  background:  #f1f3f4;
  text-decoration:  none
}
.nav-group {
  margin:  0;
  border-bottom:  1px solid #dadce0
}
.nav-group-toggle {
  width:  100%;
  min-height:  41px;
  display:  flex;
  align-items:  center;
  justify-content:  space-between;
  gap:  8px;
  padding:  6px 11px 6px 16px;
  border:  0;
  border-radius:  0;
  background:  #fff;
  color:  #3c4043;
  cursor:  pointer;
  font:  inherit;
  font-size:  12px;
  line-height:  1.4;
  text-align:  left
}
.nav-group.expanded>.nav-group-toggle {
  font-weight:  600
}
.nav-chevron {
  width:  7px;
  height:  7px;
  flex:  0 0 7px;
  border-right:  1.5px solid #5f6368;
  border-bottom:  1.5px solid #5f6368;
  transform:  rotate(45deg) translateY(-2px);
  transition:  transform .14s ease
}
.nav-group-toggle[aria-expanded=true] .nav-chevron {
  transform:  rotate(225deg) translate(-1px,-1px)
}
.nav-group-toggle a{color:var(--ink);font-weight: 600;}
.nav-subitems {
  padding:  0 0 8px
}
.side-nav-scroll{background:#fff;}
.nav-subitems[hidden] {
  display:  none
}
.nav-subitems .nav-item {
  padding-left:  28px;
  margin:0 10px 0 0;
}
.nav-item.selected {
  background:#FDEBE3;
  color: var(--orange);
  font-weight:  600
}
.article {
  min-width:  0;
  padding:  20px 0 20px 0;
  line-height:  1.72
}

.toc {
  position:  sticky;
  top:  91px;
  padding-top:  38px
}
.toc-heading {
  margin:  0 0 12px;
  color:  #5f6368;
  font-size:  12px;
  font-weight:  600
}
.toc nav {
  display:  grid;
  gap:  0;
  padding-left:  12px;
  border-left:  1px solid #dadce0
}
.toc nav a {
  display:  block;
  padding:  6px 0;
  color:  #5f6368;
  font-size:  12px;
  line-height:  1.45
}
.toc nav a:  hover {
  color:  var(--blue);
  text-decoration:  none
}

.site-footer {
  min-height:  58px;
  display:  flex;
  align-items:  center;
  justify-content:  space-between;
  padding:  12px 40px 12px 230px;
  border-top:  1px solid var(--line);
  color:  #80868b;
  font-size:  11px
}
.site-footer a {
  color:  #5f6368
}

.breadcrumb { padding: 0 0 15px 0; color: var(--muted); font-size: 0.88rem; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li { display: inline-flex; align-items: center; max-width: 100%; }
.breadcrumb li + li::before { content: "›"; margin: 0 8px; color: #999; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--orange); text-decoration: none; }
.breadcrumb [aria-current="page"] { color: var(--ink); overflow-wrap: anywhere; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  padding-bottom: 64px;
}
.meta { color: var(--muted); font-size: 0.9rem; }
.excerpt { margin: 10px 0 0; }


.flash {
  width: min(1080px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 16px;
  border-radius: 12px;
}
.flash-ok { background: #e7efe8; color: var(--ok); }
.flash-error { background: #f8e6e2; color: var(--danger); }
.errors { color: var(--danger); margin: 0 0 12px; padding-left: 18px; }

.btn, button.btn, input.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 3px;
  padding: 9px 16px;
  background: var(--orange);
  color: white;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; color: white; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #f3ece1; color: var(--ink); }
.btn-danger { background: var(--danger); }
.btn-small { padding: 6px 12px; font-size: 0.9rem; }

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card { width: min(440px, 100%); padding: 32px; }
.auth-card h1 { /*font-family: Georgia, "Noto Serif SC", serif;*/ margin-top: 0; }

label { display: block; font-size: 0.9rem; margin: 12px 0 6px; }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
}
textarea { min-height: 220px; resize: vertical; }
.form-actions { margin-top: 18px; display: flex; gap: 10px; }
.contact-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 0px;
  max-width: none;
}
.contact-form > .errors,
.contact-form > p { width: 100%; flex: 0 0 100%; }
.contact-form .left { width: 40%; flex: 0 0 40%; padding-right: 28px; }
.contact-form .left ul { margin: 0; padding: 0; list-style: none; }
.contact-form .left li { list-style: none; }
.contact-form .left li h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 4px;
}
.contact-form .left li h3 svg { flex: 0 0 auto; }
.contact-form .right { width: 60%; flex: 0 0 60%; min-width: 0; }
.contact-form textarea { min-height: 160px; }
.captcha-row { display: flex; align-items: center; gap: 10px; }
.contact-form .captcha-row input[type=text] { width: 160px; flex: 0 0 160px; }
.captcha-refresh {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  line-height: 0;
  overflow: hidden;
}
.captcha-refresh img { display: block; width: 132px; height: 48px; }
.captcha-hint { margin: 6px 0 0; color: var(--muted); font-size: 0.85rem; }

.article h1 { /*font-family: Georgia, "Noto Serif SC", serif;*/ font-size:1.8em; font-weight: 500; margin-top: 0; }
.article .hero h1 { color:var(--orange); font-style: italic;}
.article h2 { font-weight: 500; margin:15px 0; padding-left:10px; }
.article-body { font-size: 0.9rem; }
.article-body.plain { white-space: pre-wrap; }

.card, .hero {
    padding: 20px;
}
.panel .note{margin-left:20px;margin-right:20px;}
.hero{line-height:150%}
.hero p{margin:0;}
.cards { display: grid; gap: 18px; }
.card, .panel, .auth-card, .admin-card, .hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 8px; padding:0;font-weight: 500; }
.prose p { margin: 0.75em 0; }
.prose p:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose blockquote {
  margin: 1em 0;
  padding-left: 1em;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
.card-cover { display: block; margin: -22px -24px 16px; }
.card-cover img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.article-cover { width: 100%; border-radius: 12px; margin: 16px 0; }
.cover-preview img { max-width: 320px; max-height: 180px; border-radius: 10px; display: block; margin: 8px 0; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
input[type=file] { padding: 8px 0; }
.comment-body { margin: 6px 0 0; }
.tox-tinymce { border-radius: 10px !important; border-color: var(--line) !important; }
.share-bar {
  position: fixed;
  right: 20px;
  bottom: 50px;
  z-index: 40;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  width: auto;
  margin: 0;
}
.share-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #000;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.share-label svg { width: 20px; height: 20px; display: block; }
.share-link {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
}
.share-bar.is-open .share-link { display: inline-flex; }
.share-link svg { width: 18px; height: 18px; display: block; }
.share-facebook { color: #1877F2; }
.share-x { color: #111111; }
.share-pinterest { color: #E60023; }
.share-linkedin { color: #0A66C2; }
.share-reddit { color: #FF4500; }
.share-link:hover { border-color: currentColor; text-decoration: none; }
.comments { margin-top: 28px;padding:20px;background: var(--card);border: 1px solid var(--line); border-radius: 5px; box-shadow: var(--shadow); }
.comments h2{font-size:16px;margin:0 0 3px 0;}
.comment { border-top: 1px solid var(--line); padding: 12px 0; }
.comment-thread { border-top: 1px solid var(--line); padding: 12px 0; }
.comment-thread > .comment { border-top: 0; padding: 0; }
.comment-replies { margin: 10px 0 0 28px; padding-left: 14px; border-left: 2px solid var(--line); }
.comment-reply { border-top: 0; padding: 10px 0 0; }
.reply-toggle { display: inline-block; margin-top: 8px; padding: 0; border: 0; background: transparent; color: var(--orange); font-size: 13px; cursor: pointer; }
.reply-form { margin-top: 10px; }
.reply-form[hidden] { display: none !important; }
.reply-form textarea { min-height: 96px; height: 96px; }
.reply-form .form-actions { margin-top: 10px; }
.reply-form .btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.reply-form .btn-ghost:hover { background: #f3ece1; color: var(--ink); }
@media(max-width:  1200px) {
  .doc-layout {
    grid-template-columns:  210px minmax(0,720px);
    justify-content:  center;
    gap:  32px;
    padding-right:  24px;
    padding-left:  20px
  }
  .toc {
    display:  none
  }
}
@media (max-width: 860px) {
  .article { padding: 20px 0; }
}
@media (max-width: 720px) {
  .comment-replies { margin-left: 14px; padding-left: 10px; }
}


.footer-inner { display: flex; flex-direction: column; gap: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover{color:var(--orange);}

.sitemap-page { padding-bottom: 64px; }
.sitemap-grid {
  margin-top:18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.sitemap-section h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-weight: 500;
  font-size: 1.25rem;
}
.sitemap-section-wide { grid-column: 1 / -1; }
.sitemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.sitemap-posts {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px 20px;
}
.sitemap-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
}
.sitemap-list .meta { color: var(--muted); font-size: 0.9rem; }
.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}
.pagination li {margin: 0;}
.pagination li a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px; 
  text-decoration: none;
  border: 1px solid var(--orange);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-sizing: border-box;
  user-select: none;
}
.pagination li a:hover:not(.disabled):not(.dots) {
  background-color: var(--hover-bg);
  border-color: #d1d5db;
}
.pagination li.active a {
  background-color: var(--orange);
  color: white;
}

.side-nav-toggle {
  position:  fixed;
  z-index:  15;
  bottom:  16px;
  left:  170px;
  width:  40px;
  height:  40px;
  display:  grid;
  place-items:  center;
  padding:  0;
  border:  1px solid #dadce0;
  border-radius:  50%;
  background:  #fff;
  color:  #5f6368;
  cursor:  pointer;
  box-shadow:  0 2px 6px #3c404333;
  transition:  box-shadow .14s ease
}
.side-nav-toggle:  hover {
  background:  #f8f9fa;
  color:  #202124;
  box-shadow:  0 3px 8px #3c404347
}
.side-nav-toggle-icon {
  width:  8px;
  height:  8px;
  border-bottom:  2px solid currentColor;
  border-left:  2px solid currentColor;
  transform:  rotate(45deg);
  transition:  transform .18s ease
}
.side-nav-toggle-label {
  position:  absolute;
  width:  1px;
  height:  1px;
  overflow:  hidden;
  clip:  rect(0,0,0,0);
  white-space:  nowrap
}
.nav-collapsed {
  padding:0 0 0 30px;
  grid-template-columns:  1fr 180px;
  justify-content:  center
}
.nav-collapsed .side-nav {
  display:  none
}
.nav-collapsed>.side-nav-toggle {
  left:  -8px
}
.nav-collapsed>.side-nav-toggle .side-nav-toggle-icon {
  transform:  rotate(225deg)
}


@media(max-width:  760px) {
  .contact-form .left,
  .contact-form .right { width: 100%; flex-basis: 100%; padding-right: 0; }
  .site-header { height: 60px; }
  .top-links, .side-nav-toggle{display:none;}
  .topbar-inner {
    height: 100%;
    flex-wrap: nowrap;
    gap:  8px;
    padding:  0 12px
  }
  .menu-toggle {
    display:  flex
  }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0;
    overflow: hidden;
  }
  .top-links {
    margin-left:  auto;
    gap:  15px
  }
  .top-link {
    font-size:  13px
  }
  .site-search-slot {
    position: relative;
    flex: 0 0 36px;
    width: 36px;
    max-width: 36px;
    z-index: 4;
  }
  .site-search {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    overflow: hidden;
    transition: width .18s ease;
  }
  .site-search.is-open {
    width: var(--search-open, 220px);
    overflow: visible;
  }
  .site-search input[type=text] { font-size: 14px; padding-left: 34px; }
  .login-button { margin-left: 0; flex: 0 0 auto; }
  .doc-layout {
    min-height:  calc(100vh - 114px);
    display:  block;
    padding:  0 24px 45px
  }
  .side-nav {
    position:  fixed;
    z-index:  18;
    top:  60px;
    bottom:  0;
    left:  0;
    width:  min(290px,86vw);
    height:  auto;
    padding:  0 0 30px 0;
    border-right:  1px solid #dadce0;
	background: var(--paper);
    box-shadow:  6px 0 18px #3c40431f;
    transform:  translate(-105%);
    transition:  transform .18s ease
  }
  .side-nav.open {
    transform:  translate(0)
  }
  .article {
    max-width:  720px;
    margin:  0 auto;
  }
  .card, .hero{padding:15px;}
  .hero{line-height:170%}
}
@media(max-width:  480px) {
  .topbar {
    height:  58px
  }
  .topbar-inner {
    gap:  8px;
    padding:  0 12px
  }
  .menu-toggle {
    width:  34px;
    height:  34px
  }
  .top-links {
    gap:  11px
  }
  .top-link {
    font-size:  12px
  }
  .side-nav {
    top:  60px
  }
  .doc-layout {
    padding:  0 18px 35px
  }

  .site-footer {
    gap:  12px;
    padding:  12px 18px;
    font-size:  10px
  }
  .site-footer a {
    white-space:  nowrap;
    font-size:  10px
  }
}
@media(prefers-reduced-motion:  reduce) {
  *,*:  before,*:  after {
    scroll-behavior:  auto!important;
    transition-duration:  .01ms!important
  }
}




@media (max-width: 420px) {
  .pagination {
    justify-content: center;
    gap: 10px;
    padding: 0 10px;
  }
}

@media (max-width: 720px) {
  .sitemap-grid { grid-template-columns: 1fr; }
  .sitemap-section-wide { grid-column: auto; }
  .share-bar { right: 14px; bottom: 44px; }
}
