/* VAPELINKER global layout — foot.html, left.html, shared inner-page chrome */

:root {
  --layout-ink: #18212b;
  --layout-muted: #64707d;
  --layout-line: #e5e9ed;
  --layout-soft: #f5f8fa;
  --layout-accent: #1671ff;
  --layout-accent-dark: #0d56c7;
  --layout-footer-bg: #17212b;
  --layout-footer-bar: #101820;
  --layout-header-offset: 101px;
}

/* Fixed header clearance — head-t + head-b on desktop */
@media (min-width: 769px) {
  body {
    padding-top: var(--layout-header-offset);
  }
}

/* Breadcrumb bar — override legacy orange */
.crumbs {
  color: var(--layout-muted);
  background: var(--layout-soft);
}

.crumbs a:hover {
  color: var(--layout-accent);
}

/* Footer */
.site-footer {
  color: #fff;
}

.site-footer-main {
  padding: 52px 0 44px;
  background: var(--layout-footer-bg);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
  gap: 36px;
}

.site-footer-brand img {
  display: block;
  max-width: 180px;
  height: auto;
  margin-bottom: 16px;
}

.site-footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.75;
}

.site-footer-col h6 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.site-footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-links li + li {
  margin-top: 10px;
}

.site-footer-links a {
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.2s ease;
}

.site-footer-links a:hover {
  color: #fff;
}

.site-footer-contact p {
  display: flex;
  gap: 6px;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer-contact p:last-child {
  margin-bottom: 0;
}

.site-footer-contact strong {
  flex-shrink: 0;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer-contact a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer-contact a:hover {
  color: #fff;
}

.site-footer-wechat img {
  display: block;
  width: 108px;
  height: 108px;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
}

.site-footer-bar {
  padding: 14px 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  text-align: center;
  background: var(--layout-footer-bar);
}

.site-footer-bar a {
  color: rgba(255, 255, 255, 0.62);
}

.site-footer-bar a:hover {
  color: #fff;
}

.gotop {
  border: 1px solid var(--layout-line);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(24, 33, 43, 0.12);
}

.gotop i {
  color: var(--layout-accent);
}

.mobile-bottom {
  border-top: 1px solid var(--layout-line);
  background: #fff;
}

.mobile-bottom-item a {
  color: var(--layout-ink);
}

.mobile-bottom-item i {
  color: var(--layout-accent);
}

/* Sidebar */
.page-l.site-sidebar {
  float: left;
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  color: var(--layout-ink);
  box-sizing: border-box;
}

.site-sidebar-panel {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid var(--layout-line);
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
}

.site-sidebar-title {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px 18px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  background: var(--layout-footer-bg);
  box-sizing: border-box;
}

.site-sidebar-body {
  width: 100%;
  box-sizing: border-box;
}

.site-sidebar-nav ul,
.site-sidebar-menu {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}

.page-l.site-sidebar .site-sidebar-nav ul li,
.page-l.site-sidebar .site-sidebar-menu li {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.page-l.site-sidebar .site-sidebar-nav li > a,
.page-l.site-sidebar .site-sidebar-menu li > a {
  display: block;
  width: 100%;
  padding: 13px 18px;
  border-bottom: 1px solid var(--layout-line);
  color: var(--layout-ink);
  text-align: left;
  box-sizing: border-box;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-sidebar-nav li:last-child > a,
.site-sidebar-menu li:last-child > a {
  border-bottom: none;
}

.site-sidebar-nav li > a:hover,
.site-sidebar-menu li > a:hover {
  color: var(--layout-accent);
  background: var(--layout-soft);
}

.site-sidebar-nav li.is-active > a,
.site-sidebar-menu li.is-active > a {
  color: var(--layout-accent);
  font-weight: 700;
  background: var(--layout-soft);
  box-shadow: inset 3px 0 0 var(--layout-accent);
  padding-left: 15px;
  padding-right: 18px;
}

.site-sidebar-contact-box {
  padding: 18px;
}

.site-sidebar-contact-box p {
  display: flex;
  gap: 4px;
  margin: 0 0 10px;
  color: var(--layout-muted);
  font-size: 14px;
  line-height: 1.6;
}

.site-sidebar-contact-box p:last-child {
  margin-bottom: 0;
}

.site-sidebar-contact-box strong {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--layout-ink);
}

.site-sidebar-contact-box a {
  color: var(--layout-accent);
}

.site-sidebar-latest {
  padding-bottom: 6px;
}

.site-sidebar-latest .site-sidebar-title:not(:first-child) {
  border-top: 1px solid var(--layout-line);
}

.site-sidebar-latest .site-sidebar-body + .site-sidebar-title {
  border-top: 1px solid var(--layout-line);
}

.site-sidebar-list {
  margin: 0;
  padding: 0 16px;
  list-style: none;
}

.site-sidebar-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--layout-line);
}

.site-sidebar-list li:last-child {
  border-bottom: none;
}

.site-sidebar-list a {
  display: flex;
  gap: 10px;
  text-decoration: none;
}

.site-sidebar-list .img-box {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--layout-soft);
}

.site-sidebar-list .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.site-sidebar-list li:hover img {
  transform: scale(1.06);
}

.site-sidebar-list h4 {
  display: -webkit-box;
  margin: 0 0 5px;
  overflow: hidden;
  color: var(--layout-ink);
  font-size: 14px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.site-sidebar-list li:hover h4 {
  color: var(--layout-accent);
}

.site-sidebar-list .date {
  color: #8a939c;
  font-size: 12px;
}

@media (max-width: 991px) {
  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body {
    padding-top: 0;
  }

  .site-footer-main {
    padding: 36px 0 28px;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer-wechat img {
    width: 96px;
    height: 96px;
  }
}
