/* ============================================================
   Blog Template - based on hotshop class system
   Blog-style CSS override, original structure preserved
   ============================================================ */

/* ===== Reset & Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #2c3e50;
  background: #f6f8fa;
  -webkit-font-smoothing: antialiased;
}
a { color: #1a56db; text-decoration: none; transition: color .2s; }
a:hover { color: #1e429f; }
img { max-width: 100%; height: auto; border: 0; display: block; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: #1a202c; font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }

/* ===== Container ===== */
.nb-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.nb-section { padding: 40px 0; }

.nb-section-head {
  text-align: center;
  margin-bottom: 30px;
}
.nb-section-head-left { text-align: left; margin-bottom: 20px; }
.nb-section-head-left h1 { font-size: 28px; }
.nb-section-head-left h1::after { display: none; }
.nb-section-head h2 {
  font-size: 28px;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}
.nb-section-head h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #1a56db;
  border-radius: 2px;
}
.nb-section-head p {
  color: #718096;
  margin-top: 16px;
  font-size: 15px;
}

/* ===== Announcement Bar ===== */
.nb-announce {
  background: #1a56db;
  color: #fff;
  padding: 8px 0;
  text-align: center;
  font-size: 13px;
}
.nb-announce a { color: #fff; text-decoration: underline; }

/* ===== Header ===== */
.nb-header {
  background: #fff;
  border-bottom: 1px solid #edf2f7;
  position: relative !important;
  z-index: 100;
}
.nb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.nb-logo img { max-height: 40px; }

.nb-burger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: #2d3748;
  cursor: pointer;
  padding: 0 12px;
  z-index: 101;
  line-height: 1;
}
.nb-burger i {
  font-size: 22px;
  color: #2d3748;
  line-height: 1;
}

.nb-search { flex: 1; max-width: 500px; }
.nb-search-box form {
  display: flex;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .2s;
}
.nb-search-box form:focus-within { border-color: #1a56db; }
.nb-search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 16px;
  font-size: 14px;
  background: #f7fafc;
}
.nb-search-box button {
  background: #1a56db;
  color: #fff;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  font-size: 16px;
  transition: background .2s;
}
.nb-search-box button:hover { background: #1e429f; }

.hs-mobile-search-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #2d3748;
  padding: 8px;
}

.nb-header-actions { display: flex; align-items: center; gap: 12px; }
.nb-minicart { position: relative; display: none; }

/* ===== Category Navigation Bar (auto-wrap) ===== */
.hs-cat-bar {
  background: #fff;
  border-bottom: 1px solid #edf2f7;
}
.hs-cat-bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: stretch;
}
.hs-burger-cat {
  display: none;
  background: #1a56db;
  color: #fff;
  border: none;
  padding: 0 18px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  align-items: center;
}
.nb-nav { flex: 1; }
.nb-nav > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.nb-nav > ul > li {
  position: relative;
}
.nb-nav > ul > li > a {
  display: block;
  padding: 14px 16px;
  color: #2d3748;
  font-weight: 500;
  font-size: 14px;
  transition: color .2s;
  white-space: nowrap;
}
.nb-nav > ul > li > a:hover,
.nb-nav > ul > li > a.active {
  color: #1a56db;
  background: #f0f4ff;
}
.nb-nav ul li .sub_menu,
.nb-nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  z-index: 150;
}
.nb-nav ul li:hover > .sub_menu,
.nb-nav ul li:hover > ul { display: block; }
.nb-nav ul li .sub_menu a,
.nb-nav ul li ul li a {
  display: block;
  padding: 8px 16px;
  color: #4a5568;
  font-size: 13px;
  transition: all .2s;
  white-space: normal;
}
.nb-nav ul li .sub_menu a:hover,
.nb-nav ul li ul li a:hover {
  color: #1a56db;
  background: #f0f4ff;
  padding-left: 20px;
}

/* ===== Mobile Drawer ===== */
.nb-drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.5);
  z-index: 999;
}
.nb-drawer-overlay.active,
.nb-drawer-overlay.open { display: block; }

.nb-drawer-wrap.offcanvas_menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: #fff;
  z-index: 1000;
  overflow-y: auto;
  transition: left .3s ease;
  box-shadow: 2px 0 20px rgba(0,0,0,.1);
}
.nb-drawer-wrap.offcanvas_menu.active,
.nb-drawer-wrap.offcanvas_menu.open { left: 0; }

.nb-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #edf2f7;
  background: #f7fafc;
  position: sticky;
  top: 0;
  z-index: 10;
}
.nb-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #4a5568;
  font-size: 24px;
  padding: 4px 8px;
}
.language_currency {
  padding: 12px 20px;
  border-bottom: 1px solid #edf2f7;
}
.language_currency ul { display: flex; flex-direction: column; gap: 4px; }
.language_currency li a {
  display: block;
  padding: 10px 12px;
  color: #4a5568;
  font-size: 14px;
  border-radius: 6px;
  transition: background .2s;
}
.language_currency li a:hover { background: #f0f4ff; color: #1a56db; }

/* 抽屉菜单 */
.nb-drawer-menu { padding: 8px 0; }
.nb-drawer-menu > li {
  border-bottom: 1px solid #f7fafc;
}
.nb-drawer-menu > li > a {
  display: block;
  padding: 14px 20px;
  color: #2d3748;
  font-weight: 500;
  font-size: 15px;
}
.nb-drawer-menu > li > a:hover {
  background: #f0f4ff;
  color: #1a56db;
}
/* 抽屉子菜单 */
.drawer-submenu {
  display: none;
  padding-left: 0;
  background: #fafbfc;
}
.nb-drawer-menu li.drawer-has-sub > a {
  position: relative;
  padding-right: 36px;
}
.nb-drawer-menu li.drawer-has-sub > a::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 300;
  color: #a0aec0;
  transition: transform .2s;
}
.nb-drawer-menu li.drawer-sub-open > a::after {
  content: '−';
}
.drawer-submenu li a {
  display: block;
  padding: 12px 20px 12px 36px;
  color: #4a5568;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}
.drawer-submenu li a:hover {
  background: #f0f4ff;
  color: #1a56db;
}

/* ===== Product Grid (Articles) ===== */
.nb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.nb-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  border: 1px solid #e8ecef;
}
.nb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}
.nb-card-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f4ff;
  position: relative;
}
.nb-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.nb-card:hover .nb-card-thumb img { transform: scale(1.05); }
.nb-card-body { padding: 18px 20px 22px; }
.nb-card-title {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
}
.nb-card-title a {
  color: #1a202c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nb-card-title a:hover { color: #1a56db; }
.nb-card-price { display: none; }
.nb-card-readmore {
  display: inline-block;
  margin-top: 8px;
  color: #1a56db;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s;
}
.nb-card-readmore:hover {
  color: #1e429f;
  transform: translateX(4px);
}

.nb-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #1a56db;
  color: #fff;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 2;
}
.plists { position: relative; }

/* ===== List Layout (left content, right sidebar) ===== */
.hs-list-layout {
  display: flex;
  gap: 30px;
  padding: 30px 0;
}
.hs-list-main {
  flex: 1;
  min-width: 0;
}
.hs-list-sidebar {
  width: 280px;
  flex-shrink: 0;
}
.hs-list-layout-reverse { flex-direction: row-reverse; }

.hs-sidebar-cats {
  background: #fff;
  border: 1px solid #e8ecef;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}
.side-title {
  font-size: 16px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1a56db;
  font-family: inherit;
  font-weight: 600;
}

/* 分类网格（多列自适应） */
.side-cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.side-cat-grid a,
.side-cat-grid > a,
.side-cat-grid ul li a,
.side-cat-grid > ul > li > a,
.hs-sidebar-cats > a,
.hs-sidebar-cats > div > a {
  display: inline-block;
  padding: 6px 14px;
  background: #f7fafc;
  color: #4a5568;
  border-radius: 6px;
  font-size: 13px;
  transition: all .2s;
  border: 1px solid #e2e8f0;
}
.side-cat-grid a:hover,
.side-cat-grid > a:hover,
.side-cat-grid ul li a:hover,
.hs-sidebar-cats > a:hover,
.hs-sidebar-cats > div > a:hover {
  background: #1a56db;
  color: #fff;
  border-color: #1a56db;
}
/* 兼容 ul/li 结构的分类 */
.side-cat-grid ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.side-cat-grid ul li { display: inline; }

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sidebar-tags a,
#prohref a {
  display: inline-block;
  padding: 5px 12px;
  background: #f0f4ff;
  color: #1a56db;
  border-radius: 20px;
  font-size: 13px;
  transition: all .2s;
}
.sidebar-tags a:hover,
#prohref a:hover {
  background: #1a56db;
  color: #fff;
}
.sidebar-keywords a {
  background: #fff5f5;
  color: #e53e3e;
}
.sidebar-keywords a:hover {
  background: #e53e3e;
  color: #fff;
}

.hs-sidebar-ad {
  margin-bottom: 16px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8ecef;
}
.side-contact { font-size: 14px; color: #4a5568; line-height: 1.7; }
.side-contact p { margin-bottom: 8px; }
.side-contact a { color: #1a56db; }

/* 返回按钮 */
.sidebar-back {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hs-back-link-sidebar {
  display: block;
  padding: 12px 16px;
  background: #fff;
  color: #4a5568;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  transition: all .2s;
  border: 1px solid #e8ecef;
}
.hs-back-link-sidebar:hover {
  background: #1a56db;
  color: #fff;
  border-color: #1a56db;
}

.hs-back-link {
  display: none;
}

/* ===== Product Page (Article Detail - left main, right sidebar) ===== */
.nb-product-layout {
  display: flex;
  gap: 30px;
  padding: 30px 0;
}
.nb-article-main {
  flex: 1;
  min-width: 0;
}
.nb-article-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.nb-product-article {
  background: #fff;
  border: 1px solid #e8ecef;
  border-radius: 12px;
  padding: 40px 50px;
}

.article-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid #edf2f7;
}
.article-header h1 {
  font-size: 32px;
  line-height: 1.35;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: #718096;
}
.article-meta span { display: flex; align-items: center; gap: 5px; }
.article-meta a { color: #718096; }
.article-meta a:hover { color: #1a56db; }

.article-content {
  font-size: 16px;
  line-height: 1.9;
  color: #2d3748;
}
.article-content h2 { font-size: 24px; margin: 32px 0 16px; }
.article-content h3 { font-size: 20px; margin: 26px 0 12px; }
.article-content p { margin-bottom: 18px; }
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px auto;
  display: block;
}
.article-content ul, .article-content ol {
  margin-bottom: 18px;
  padding-left: 24px;
  list-style: disc;
}
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-left: 4px solid #1a56db;
  padding: 14px 24px;
  margin: 20px 0;
  background: #f0f4ff;
  color: #2c5282;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}
.article-content code {
  background: #f7fafc;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-family: "SF Mono", Menlo, monospace;
  color: #e53e3e;
}

.article-tags {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #edf2f7;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.article-tags strong { font-size: 14px; color: #4a5568; }
.article-tags #prohref { display: inline-flex; flex-wrap: wrap; gap: 8px; }

.article-comments {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #edf2f7;
}
.comments-title {
  font-size: 20px;
  margin-bottom: 20px;
  font-family: inherit;
}

.article-related {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #edf2f7;
}
.article-related .nb-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ===== Review Form ===== */
.nb-review-form { max-width: 100%; margin-top: 20px; }
.nb-review-form h4 { font-size: 18px; margin-bottom: 16px; font-family: inherit; }
.nb-review-form .field { margin-bottom: 16px; }
.nb-review-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #2d3748;
  font-size: 14px;
}
.nb-review-form .form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}
.nb-review-form .form-control:focus { border-color: #1a56db; }
.nb-review-form textarea { resize: vertical; min-height: 100px; }
.help-block { font-size: 12px; color: #a0aec0; margin-top: 4px; }
.text-danger { color: #e53e3e; }

.nb-btn {
  display: inline-block;
  background: #1a56db;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.nb-btn:hover { background: #1e429f; color: #fff; }

/* ===== Breadcrumb ===== */
.nb-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 0 0;
  font-size: 13px;
  color: #718096;
}
.nb-breadcrumb i { color: #1a56db; }
.nb-breadcrumb a { color: #718096; }
.nb-breadcrumb a:hover { color: #1a56db; }

/* ===== Pagination ===== */
.nb-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
  list-style: none;
}
.nb-pagination li a,
.nb-pagination li span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #4a5568;
  font-size: 14px;
  transition: all .2s;
  background: #fff;
}
.nb-pagination li a:hover {
  border-color: #1a56db;
  color: #1a56db;
}
.nb-pagination .current a,
.nb-pagination .current span {
  background: #1a56db;
  color: #fff;
  border-color: #1a56db;
}

/* ===== Index Custom Code Blocks ===== */
.nb-index-code {
  width: 100%;
  background: #fff;
  overflow: hidden;
}
.nb-index-code .nb-container {
  padding-top: 30px;
  padding-bottom: 30px;
}
.nb-index-code::after {
  content: '';
  display: table;
  clear: both;
}
/* 让用户自定义代码里的常见元素样式统一到博客风 */
.nb-index-code h2 {
  font-size: 26px;
  color: #1a202c;
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
}
.nb-index-code h3 {
  font-size: 20px;
  color: #2d3748;
  margin: 20px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
}
.nb-index-code p {
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 15px;
}
.nb-index-code a { color: #1a56db; }
.nb-index-code a:hover { color: #1e429f; }
.nb-index-code strong { color: #1a202c; }
.nb-index-code ul, .nb-index-code ol {
  margin-bottom: 14px;
  padding-left: 24px;
  color: #4a5568;
  line-height: 1.8;
}
.nb-index-code ul { list-style: disc; }
.nb-index-code ol { list-style: decimal; }
.nb-index-code li { margin-bottom: 6px; }
.nb-index-code img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
/* 适配用户可能用的双栏浮动布局 */
.nb-index-code .adaptive-container {
  width: 100% !important;
  float: none !important;
}
.nb-index-code [style*="float:left"] img,
.nb-index-code [style*="float:right"] img {
  max-width: 100%;
  height: auto;
}

/* ===== Subcats on classlist ===== */
.nb-subcats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 30px 0;
}
.nb-subcats > a,
.nb-subcats > div > a {
  display: block;
  padding: 20px;
  background: #fff;
  border: 1px solid #e8ecef;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  color: #2d3748;
  transition: all .2s;
}
.nb-subcats > a:hover,
.nb-subcats > div > a:hover {
  border-color: #1a56db;
  color: #1a56db;
  transform: translateY(-2px);
}

/* ===== Article Page (news/single/info) ===== */
.nb-page { padding: 30px 0; }
.nb-article {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  border: 1px solid #e8ecef;
  line-height: 1.85;
}
.nb-article h1 { font-size: 32px; margin-bottom: 20px; }
.nb-article h2 { margin: 28px 0 14px; font-size: 24px; }
.nb-article h3 { margin: 22px 0 12px; font-size: 20px; }
.nb-article p { margin-bottom: 16px; }
.nb-article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}
.nb-article ul, .nb-article ol {
  margin-bottom: 16px;
  padding-left: 24px;
  list-style: disc;
}
.nb-article ol { list-style: decimal; }
.nb-article li { margin-bottom: 6px; }
.nb-article blockquote {
  border-left: 4px solid #1a56db;
  padding: 12px 20px;
  margin: 16px 0;
  background: #f0f4ff;
  color: #2c5282;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}
.nb-article code {
  background: #f7fafc;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: "SF Mono", Menlo, monospace;
}

.nb-line {
  border: none;
  border-top: 3px solid #1a56db;
  width: 60px;
  margin: 16px 0 24px;
  border-radius: 2px;
}

/* ===== News List ===== */
.nb-news-list { display: flex; flex-direction: column; gap: 20px; }
.nb-news-list .item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e8ecef;
  border-radius: 10px;
  transition: all .2s;
}
.nb-news-list .item:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  transform: translateX(4px);
}
.nb-news-list .item .thumb {
  width: 200px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.nb-news-list .item .thumb img { width: 100%; height: 140px; object-fit: cover; }
.nb-news-list .item .info { flex: 1; }
.nb-news-list .item h3 { font-size: 18px; margin-bottom: 8px; font-family: inherit; }
.nb-news-list .item h3 a { color: #1a202c; }
.nb-news-list .item h3 a:hover { color: #1a56db; }
.nb-news-list .item .desc {
  color: #718096;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Back to Top ===== */
.nb-backtop {
  display: flex;
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: #1a56db;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 36px;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 4px 12px rgba(26,86,219,.3);
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
}
.nb-backtop.show { opacity: 1; visibility: visible; }
.nb-backtop:hover { background: #1e429f; transform: translateY(-2px); }

/* ===== Floating code ===== */
.hs-float-code { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 80; }

/* ====== BLOG MODE: Hide e-commerce elements ====== */
.nb-minicart,
.mini_cart_wrapper,
.price_box,
.payments,
.nb-countdown,
#product_addtocart_form,
.nb-variant,
.nb-product-meta,
.nb-card-price,
.nb-cart-icon,
.add_to_cart,
.cart_button,
.nb-qty,
.quantity {
  display: none !important;
}

/* ===== Footer ===== */
.nb-footer {
  background: #1a202c;
  color: #a0aec0;
  margin-top: 60px;
  padding: 50px 0 0;
}
.nb-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}
.nb-footer-grid-simple {
  grid-template-columns: 1fr 1fr;
  max-width: 700px;
  margin: 0 auto;
}
.nb-footer h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
  font-family: inherit;
}
.nb-footer ul li { margin-bottom: 10px; }
.nb-footer ul li a {
  color: #a0aec0;
  font-size: 14px;
  transition: color .2s;
}
.nb-footer ul li a:hover { color: #1a56db; }
.nb-footer p { font-size: 14px; margin-bottom: 12px; }
.nb-footer-bottom {
  border-top: 1px solid #2d3748;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
}
.nb-footer-bottom p { margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 1199px) {
  .nb-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .article-related .nb-grid { grid-template-columns: repeat(2, 1fr); }
  .nb-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .nb-product-layout { gap: 20px; }
  .nb-article-sidebar { width: 240px; }
  .hs-list-sidebar { width: 240px; }
  .nb-product-article { padding: 30px; }
}

@media (max-width: 991px) {
  .nb-grid { grid-template-columns: repeat(2, 1fr); }
  .article-related .nb-grid { grid-template-columns: repeat(2, 1fr); }
  .nb-product-layout { flex-direction: column; }
  .nb-article-sidebar { width: 100%; }
  .nb-product-article { padding: 24px; }
  .article-header h1 { font-size: 26px; }
  .hs-list-layout { flex-direction: column; }
  .hs-list-sidebar { width: 100%; order: -1; }
  .hs-list-layout-reverse { flex-direction: column; }
  .hs-list-layout-reverse .hs-list-sidebar { order: 0; }
  .nb-subcats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 14px; }
  .nb-container { padding: 0 15px; }
  
  .nb-burger { 
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    height: 58px;
    width: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 999;
    text-align: center;
    line-height: 58px;
    padding: 0;
    margin: 0;
  }
  .nb-burger i {
    font-size: 22px !important;
    color: #2d3748 !important;
    line-height: 58px !important;
    display: inline-block !important;
    vertical-align: middle;
  }
  .hs-mobile-search-toggle { display: block !important; }
  
  .nb-header-inner { 
    height: 58px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    gap: 10px;
  }
  .nb-logo { 
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
  }
  .nb-logo a { pointer-events: auto; }
  .nb-logo img { max-height: 36px; max-width: 55vw; }
  .nb-search { display: none; }
  
  /* 移动端搜索框：点击搜索图标后展开 */
  .nb-search.active,
  .nb-search.hs-mobile-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    padding: 10px 15px;
    border-bottom: 1px solid #edf2f7;
    z-index: 200;
    max-width: none;
    flex: none;
  }
  
  .nb-search {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: none;
    width: 100%;
    padding: 12px 15px;
    background: #fff;
    border-bottom: 1px solid #edf2f7;
    z-index: 50;
  }
  .nb-search.active,
  .nb-search.hs-mobile-open { display: block; }
  
  .hs-cat-bar { display: none; }
  
  .nb-header-inner { height: 58px; gap: 0; justify-content: center; position: relative; }
  .nb-logo { 
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 50;
  }
  .nb-logo img { max-height: 36px; max-width: 60vw; }
  .hs-mobile-search-toggle {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 100 !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    color: #2d3748 !important;
    font-size: 18px !important;
  }
  .hs-mobile-search-toggle i { font-size: 20px !important; }
  
  .nb-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .article-related .nb-grid { grid-template-columns: 1fr 1fr; }
  .nb-card-body { padding: 12px 14px 16px; }
  .nb-card-title { font-size: 14px; }
  
  .nb-section { padding: 24px 0; }
  .nb-section-head h2 { font-size: 22px; }
  
  .nb-footer { padding: 30px 0 0; margin-top: 40px; }
  .nb-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  
  .nb-article { padding: 20px; }
  .nb-article h1 { font-size: 22px; }
  .nb-article h2 { font-size: 18px; }
  .nb-product-article { padding: 20px; }
  .article-header h1 { font-size: 22px; }
  .article-content { font-size: 15px; }
  
  .nb-news-list .item { flex-direction: column; }
  .nb-news-list .item .thumb { width: 100%; }
  .nb-news-list .item .thumb img { height: 200px; }
  
  .nb-subcats { grid-template-columns: 1fr; }

  .side-cat-grid { gap: 6px; }
  .side-cat-grid a {
    padding: 5px 10px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .nb-grid { grid-template-columns: 1fr; }
  .article-related .nb-grid { grid-template-columns: 1fr; }
  .nb-pagination li a,
  .nb-pagination li span { padding: 6px 10px; font-size: 12px; }
  .nb-card-thumb { aspect-ratio: 16 / 9; }
}



.adaptive-container{display:flex;gap:28px;align-items:stretch;max-width:1180px;margin:0 auto;padding:8px 0;}
.adaptive-container .left-column{flex:0 0 46%;max-width:46%;min-width:0;}
.adaptive-container .left-column img{width:100%;height:100%;max-height:460px;object-fit:cover;display:block;border:1px solid var(--line);}
.adaptive-container .right-column{flex:1;min-width:0;background:var(--white);border:1px solid var(--line);padding:30px 32px;display:flex;flex-direction:column;justify-content:center;}
.adaptive-container .right-column h1,.adaptive-container .right-column h2{margin:0 0 16px;font-family:var(--serif);font-size:26px;line-height:1.3;color:var(--ink);}
.adaptive-container .right-column h1::after,.adaptive-container .right-column h2::after{content:"";display:block;width:54px;height:2px;background:var(--accent);margin-top:12px;}
.adaptive-container .right-column p{margin:0 0 14px;font-family:var(--serif);font-size:16px;line-height:1.65;color:var(--ink-soft);}
.adaptive-container .right-column ul{margin:8px 0 0;padding-left:22px;}
.adaptive-container .right-column li{margin-bottom:9px;font-family:var(--serif);font-size:16px;line-height:1.6;color:var(--ink-soft);}
.adaptive-container .right-column li::marker{color:var(--accent);}