@charset "utf-8";
/* zblog5_nav 改版样式 - 基于 preview-redesign.html */

:root {
  --bg: #f4f6fb;
  --bg-soft: #eef2f9;
  --surface: #ffffff;
  --surface-2: #f8faff;
  --text: #1f2937;
  --text-2: #64748b;
  --text-3: #94a3b8;
  --line: rgba(15, 23, 42, 0.08);
  --primary: #2563eb;
  --primary-2: #1d4ed8;
  --accent: #0ea5e9;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.08);
  --header-h: 72px;
  --container: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg) !important;
  color: var(--text);
  padding-top: var(--header-h) !important;
  line-height: 1.65;
}

a { color: inherit; }
a:hover { color: var(--primary); }

.container {
  width: min(var(--container), calc(100% - 32px));
  max-width: none;
}

/* ========== Header ========== */
.h-fix {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: var(--header-h);
  width: 100%;
  background: rgba(255,255,255,.88) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm) !important;
  overflow: visible !important;
}

.h-fix:hover { box-shadow: var(--shadow-sm) !important; }

.header {
  height: 0 !important;
  min-height: 0;
  display: block;
  position: relative;
  z-index: 1;
  overflow: visible;
  margin: 0;
  padding: 0;
}

.header .container.header-inner {
  display: flex !important;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
  text-align: left !important;
  padding: 0 16px;
  width: min(var(--container), calc(100% - 32px));
  max-width: none;
  margin: 0 auto;
}

.header .logo {
  float: none !important;
  height: var(--header-h) !important;
  min-width: 0;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  overflow: visible;
}

.header .logo h1,
.header .logo div {
  height: auto !important;
  display: flex !important;
  align-items: center;
  margin: 0;
}

.header .logo a {
  min-width: 120px !important;
  max-width: 160px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center;
  position: relative !important;
  font-size: 0;
  overflow: visible;
}

.header .logo a:hover {
  transform: none !important;
  opacity: 1;
}

.header .logo a img {
  position: static !important;
  transform: none !important;
  width: auto !important;
  max-width: 100% !important;
  height: 44px !important;
  object-fit: contain;
}

.header .nav-bar {
  float: none !important;
  margin: 0 !important;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible !important;
}

.header .nav-bar .nav {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 4px;
  overflow: visible !important;
  scrollbar-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header .nav-bar .nav::-webkit-scrollbar { display: none; }

.header .nav-bar .nav > li {
  display: block !important;
  float: none !important;
  height: auto !important;
  line-height: normal !important;
  margin: 0 !important;
  flex-shrink: 0;
  position: relative;
}

.header .nav-bar li a {
  display: block !important;
  padding: 10px 14px !important;
  min-width: auto !important;
  height: auto !important;
  line-height: 1.4 !important;
  border-radius: 999px;
  color: var(--text-2) !important;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  transition: .2s;
}

.header .nav-bar li a:hover {
  color: var(--primary) !important;
  background: var(--accent-soft) !important;
  transform: none !important;
}

.header .nav-bar li.active > a,
.header .nav-bar li.on > a {
  color: var(--primary) !important;
  background: var(--accent-soft) !important;
  font-weight: 600;
}

.header .nav-bar li.active:before,
.header .nav-bar li[class*="li-cate-"]:before,
.header .nav-bar li.active:after,
.header .nav-bar li[class*="li-cate-"]:after {
  display: none !important;
}

.header .nav-bar li em[class*="dot"] {
  display: none !important;
}

/* 二级导航下拉 */
.header .nav-bar .nav > li > ul.sub-menu,
.header .nav-bar .nav > li > .sub-menu {
  display: block !important;
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  min-width: 168px;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateX(-50%) translateY(8px);
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 10001;
}

.header .nav-bar .nav > li > ul.sub-menu::before,
.header .nav-bar .nav > li > .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.header .nav-bar .nav > li.on > ul.sub-menu,
.header .nav-bar .nav > li:hover > ul.sub-menu,
.header .nav-bar .nav > li.on > .sub-menu,
.header .nav-bar .nav > li:hover > .sub-menu {
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.header .nav-bar .nav > li.has-sub > a,
.header .nav-bar .nav > li:has(> .sub-menu) > a {
  position: relative;
  padding-right: 28px !important;
}

.header .nav-bar .nav > li.has-sub > a::after,
.header .nav-bar .nav > li:has(> .sub-menu) > a::after {
  content: "\f107";
  font-family: "FontAwesome";
  font-size: 12px;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}

.header .nav-bar .nav > li.on > a::after,
.header .nav-bar .nav > li.has-sub:hover > a::after,
.header .nav-bar .nav > li:has(> .sub-menu):hover > a::after {
  color: var(--primary);
  transform: translateY(-50%) rotate(180deg);
}

/* 三级导航：右侧飞出 */
.header .nav-bar .sub-menu > li {
  position: relative;
}

.header .nav-bar .sub-menu > li > ul.sub-menu {
  top: 0;
  left: calc(100% + 4px);
  transform: translateY(8px);
  margin-top: 0;
}

.header .nav-bar .sub-menu > li.on > ul.sub-menu,
.header .nav-bar .sub-menu > li:hover > ul.sub-menu {
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateY(0);
}

.header .nav-bar ul li>ul {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-top: 0;
}

.header .nav-bar ul li.on>ul {
  transform: translateX(-50%) translateY(0);
}

/* 禁用 style.css 对嵌套 sub-menu 的 display:none */
.header .nav-bar ul li>ul li .sub-menu {
  display: block !important;
  visibility: hidden !important;
  opacity: 0 !important;
  left: auto;
  right: auto;
  transform: none;
}

.header .nav-bar ul li>ul li.on .sub-menu,
.header .nav-bar ul li>ul li:hover .sub-menu {
  visibility: visible !important;
  opacity: 1 !important;
}

.header .nav-bar .sub-menu > li {
  display: block !important;
  float: none !important;
  height: auto !important;
  line-height: normal !important;
  margin: 0 !important;
}

.header .nav-bar .sub-menu > li a {
  display: block !important;
  padding: 10px 14px !important;
  min-width: auto !important;
  height: auto !important;
  line-height: 1.4 !important;
  border-radius: 8px;
  text-align: left;
  white-space: nowrap;
}

.header .nav-bar .sub-menu > li a:hover {
  color: var(--primary) !important;
  background: var(--accent-soft) !important;
}

.header .nav-bar .sub-menu > li.active > a {
  color: var(--primary) !important;
  background: var(--accent-soft) !important;
  font-weight: 600;
}

/* 顶栏站内搜索 */
.header-search {
  flex: 1 1 180px;
  max-width: 360px;
  min-width: 140px;
  position: relative;
}

.header-search-form { position: relative; margin: 0; }

.header-search input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 14px;
  outline: none;
  transition: .2s;
  box-sizing: border-box;
}

.header-search input:focus {
  border-color: rgba(37,99,235,.3);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}

.header-search .fa-search {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
  line-height: 1 !important;
  padding: 0 !important;
  width: auto !important;
  opacity: 1 !important;
  cursor: default;
}

.header-actions {
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.header .search {
  display: none !important;
}

.header .submit,
.header .submit.fr {
  float: none !important;
  height: auto !important;
  display: flex !important;
  align-items: center;
  margin: 0 !important;
}

.header .submit .a {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  height: 42px !important;
  line-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
  margin: 0 !important;
}

.header .submit .a::before { display: none !important; }

.header .submit .a:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 28px rgba(37, 99, 235, .28) !important;
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
}

.header .submit .a i { padding-right: 0; font-size: 14px; }

/* 覆盖原主题移动端 header 居中 */
@media (max-width: 991px) {
  .header .container.header-inner {
    text-align: left !important;
    display: flex !important;
  }
}

@media (max-width: 1200px) {
  .header-search {
    flex: 0 1 200px;
    max-width: 200px;
    min-width: 120px;
  }
}

.header .logo h1 {
  font-size: 0;
  line-height: 1;
  margin: 0;
  color: inherit;
}

/* 移动端导航 */
.menu-toggle { display: none; }

#mask.nav-mask {
  background: rgba(15, 23, 42, 0.45);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
  display: block !important;
}

body.nav-open #mask.nav-mask {
  opacity: 1;
  visibility: visible;
}

body.nav-open { overflow: hidden; }

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(82vw, 300px);
  background: #fff;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform .28s ease;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

body.nav-open .mobile-nav { transform: translateX(0); }

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 16px;
}

.mobile-nav-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.mobile-nav-list {
  overflow-y: auto;
  padding: 10px;
  flex: 1;
}

.mobile-nav-list a {
  display: block;
  padding: 13px 14px;
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: .2s;
}

.mobile-nav-list a.active,
.mobile-nav-list a:hover {
  background: var(--accent-soft);
  color: var(--primary);
}

.mobile-nav-group {
  margin-bottom: 6px;
}

.mobile-nav-group > a {
  font-weight: 600;
}

.mobile-nav-sub {
  padding: 4px 0 8px 12px;
  border-left: 2px solid var(--line);
  margin: 4px 0 0 10px;
}

.mobile-nav-sub a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.mobile-nav-sub a.active,
.mobile-nav-sub a:hover {
  background: var(--accent-soft);
  color: var(--primary);
}

.mobile-nav-search {
  padding: 12px 14px 16px;
  border-top: 1px solid var(--line);
}

.mobile-nav-search form { position: relative; }

.mobile-nav-search input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 14px;
  outline: none;
}

.mobile-nav-search input:focus {
  border-color: rgba(37,99,235,.3);
  background: #fff;
}

/* 隐藏旧版侧栏 */
.m-nav { display: none !important; }

.header .m-btn {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  right: auto !important;
  display: none;
  width: 42px;
  height: 42px;
  line-height: 1 !important;
  padding: 0;
  margin: 0;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.header .m-btn i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1 !important;
  font-size: 18px;
  color: var(--text-2);
  opacity: 1;
}

.header .m-btn:hover i { color: var(--primary); }

/* ========== Hero / Banner ========== */
#banner-bear.hero {
  height: auto !important;
  min-height: 0;
  background: none !important;
  margin-top: calc(-1 * var(--header-h));
  margin-bottom: 0;
  padding: calc(48px + var(--header-h)) 0 40px;
  overflow: hidden;
  position: relative;
  font-size: inherit;
  z-index: 0;
}

#banner-bear.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(37,99,235,.12), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(14,165,233,.12), transparent 30%),
    linear-gradient(180deg, #eef4ff 0%, var(--bg) 100%);
  z-index: 0;
}

#banner-bear.hero .container.hero-grid {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

/* 禁用 bootstrap .container 清浮动伪元素，避免挤占 grid 格子 */
.container.hero-grid::before,
.container.hero-grid::after {
  display: none !important;
  content: none !important;
}

.hero-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  direction: ltr;
}

.hero-main {
  min-width: 0;
  float: none !important;
  width: auto !important;
  grid-column: 1;
  grid-row: 1;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  float: none !important;
  width: auto !important;
  grid-column: 2;
  grid-row: 1;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.stat-card {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  display: block;
  font-size: 24px;
  margin-bottom: 4px;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}

.stat-card span {
  color: var(--text-2);
  font-size: 13px;
}

#banner-bear.hero,
#banner-bear.hero.preserve3d,
#banner-bear.hero.csstransforms3d {
  height: auto !important;
  min-height: 0 !important;
}

#banner-bear .typing,
#banner-bear .hero-badge {
  position: static !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line);
  color: var(--text-2) !important;
  font-size: 13px !important;
  margin-bottom: 16px;
  text-align: left;
  text-shadow: none !important;
}

#banner-bear .hero-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  letter-spacing: -.02em;
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 700;
}

#banner-bear .hero-desc {
  color: var(--text-2);
  font-size: 16px;
  max-width: 560px;
  margin: 0 0 24px;
  line-height: 1.65;
}

/* 非首页 banner 去掉旧主题固定高度留白 */
#banner-bear:not(.hero) {
  height: auto !important;
  min-height: 0 !important;
  margin-bottom: 16px;
}

#banner-bear .banner-wrap { display: none; }

#banner-bear .submit.fr { display: none !important; }

#banner-bear .primary-menus {
  position: static !important;
  transform: none !important;
  width: 100% !important;
  top: auto !important;
  left: auto !important;
  opacity: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

#banner-bear .primary-menus .selects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

#banner-bear .primary-menus .selects li {
  display: inline-block;
  color: var(--text-2);
  padding: 10px 16px;
  height: auto;
  line-height: 1.4;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  margin: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: none;
}

#banner-bear .primary-menus .selects li:first-child {
  display: none;
}

#banner-bear .primary-menus .selects li:hover {
  background: var(--accent-soft);
  border-color: rgba(37,99,235,.18);
  color: var(--primary);
  transform: none;
}

#banner-bear .primary-menus .selects li.current {
  background: var(--accent-soft);
  border-color: rgba(37,99,235,.18);
  color: var(--primary);
  font-weight: 600;
  box-shadow: none;
}

#banner-bear .primary-menus .cont {
  position: static;
  width: 100%;
}

#banner-bear .primary-menus .left-cont {
  margin-right: 0;
  width: 100%;
  float: none !important;
}

#banner-bear .primary-menus .left-cont form,
#banner-bear .primary-menus .left-cont form.search {
  float: none !important;
  margin: 0 !important;
  display: block;
  position: relative;
  width: 100%;
}

#banner-bear .primary-menus .left-cont form.hidden,
#banner-bear .primary-menus .left-cont .search.hidden {
  display: none !important;
}

#banner-bear .primary-menus .left-cont input {
  width: 100%;
  height: 58px;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  padding: 0 140px 0 22px !important;
  font-size: 16px;
  color: var(--text);
  background: #fff !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

#banner-bear .primary-menus .left-cont input:focus {
  border-color: rgba(37,99,235,.35) !important;
  box-shadow: 0 0 0 4px rgba(37,99,235,.08), 0 8px 24px rgba(15, 23, 42, 0.06) !important;
  transform: none;
}

#banner-bear .primary-menus .left-cont button {
  position: absolute;
  right: 0;
  top: 0;
  min-width: 128px;
  height: 58px !important;
  line-height: 58px !important;
  border: 0;
  border-radius: 0 14px 14px 0 !important;
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: none !important;
}

#banner-bear .primary-menus .left-cont button:hover {
  background: linear-gradient(135deg, var(--primary-2), var(--accent)) !important;
  transform: none;
  box-shadow: none !important;
}

/* ========== 面包屑 ========== */
.breadnav {
  padding: 8px 0 0;
  margin: 0 !important;
  position: relative;
  z-index: 1;
}
.breadnav .bread {
  padding: 0;
  color: var(--text-2);
  font-size: 14px;
}
.index-breadcrumb {
  margin: 0 !important;
  padding: 0 !important;
  height: 0;
  overflow: hidden;
}
.breadnav .bread a { color: var(--text-2); }
.breadnav .bread a:hover { color: var(--primary); }

/* ========== 区块标题 ========== */
.part .tt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 0;
  background: none !important;
  border: none;
}

.part .tt strong {
  font-size: 20px;
  color: var(--text);
  font-weight: 700;
}

.part .tt a {
  float: none;
  color: var(--text-2);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: .2s;
}

.part .tt a:hover {
  color: var(--primary) !important;
  border-color: rgba(37,99,235,.2);
  background: var(--surface) !important;
  transform: none;
  box-shadow: none;
}

.part .topt {
  padding: 14px 16px !important;
  border-radius: var(--radius) var(--radius) 0 0;
}

.part .topt strong { color: #fff; font-size: 15px; }
.part .topt a { color: rgba(255,255,255,.9) !important; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.15) !important; }

/* ========== 顶部四栏 ========== */
.row.row-position {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.row.row-position::before,
.row.row-position::after {
  display: none !important;
}

.row-position > .quick-nav {
  display: none !important;
}

.row-position > .col-md-3.top_model,
.row-position > .col-xs-12.top_model {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  min-height: 0 !important;
  margin-bottom: 0 !important;
}

.row-position > .col-md-12 {
  grid-column: 1 / -1;
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
}

@media (min-width: 768px) {
  .row.row-position {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .row.row-position {
    grid-template-columns: repeat(4, 1fr);
  }
}

.top_model {
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-sm) !important;
  margin-bottom: 0 !important;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.top_model .part.partbtm {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 0 !important;
}

.top_model .items.topitems {
  flex: 1;
  padding: 14px 16px 16px !important;
}

.top_model .rowtop {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 !important;
}

.top_model .rowtop::before,
.top_model .rowtop::after {
  display: none !important;
}

.top_model .top_row,
.top_model .rowclum {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  border: none !important;
  min-height: 0 !important;
}

.top_model .part .item {
  margin-bottom: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.top_model .part .item .topa {
  display: block !important;
  padding: 12px 14px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  background: var(--surface-2) !important;
  border: 1px solid transparent !important;
  text-align: center;
  transition: .2s;
}

.top_model .part .item .topa:hover {
  border-color: rgba(37,99,235,.15) !important;
  background: #fff !important;
  box-shadow: var(--shadow-sm) !important;
}

.top_model:nth-child(1 of .top_model) .topt { background: linear-gradient(135deg, #fb8e8e, #ff6b6b) !important; }
.top_model:nth-child(2 of .top_model) .topt { background: linear-gradient(135deg, #6ad9ce, #4ecdc4) !important; }
.top_model:nth-child(3 of .top_model) .topt { background: linear-gradient(135deg, #9eacf4, #7c8df6) !important; }
.top_model:nth-child(4 of .top_model) .topt { background: linear-gradient(135deg, #fbaf82, #ff9966) !important; }

.top_model:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow) !important;
}

.top_model .topa h3 {
  font-size: 13px !important;
  color: var(--text) !important;
}

.top_model .topa:hover h3 { color: var(--primary) !important; }

/* ========== 站点卡片 ========== */
.part .item.inner_item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon desc"
    "meta meta";
  column-gap: 14px;
  row-gap: 0;
  padding: 20px 16px 0;
  align-items: start;
  margin-bottom: 18px !important;
  border-radius: var(--radius) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-sm) !important;
  background: var(--surface) !important;
  transition: .25s ease;
}

.part .item.inner_item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg) !important;
  border-color: rgba(37,99,235,.15) !important;
}

.part .item.inner_item .angle_fix { display: none; }

.part .item.inner_item .a {
  display: contents;
  padding: 0 !important;
  background: none !important;
  border-radius: 0 !important;
}

.part .item.inner_item .a img {
  grid-area: icon;
  float: none !important;
  width: 44px !important;
  height: 44px !important;
  object-fit: contain;
  border-radius: 12px !important;
  border: 2px solid #f8fafc !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.08) !important;
  margin: 0;
  background: #fff;
}

.part .item.inner_item .a h3 {
  grid-area: title;
  margin: 0 0 4px !important;
  max-width: none !important;
  height: auto !important;
  line-height: 1.45 !important;
  font-size: 15px !important;
  color: var(--text) !important;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.part .item.inner_item .a p {
  grid-area: desc;
  margin: 0 !important;
  height: auto !important;
  min-height: 0;
  color: var(--text-2) !important;
  font-size: 13px !important;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.part .item.inner_item .a:hover h3 { color: var(--primary) !important; }

.part .item.inner_item .article_btm {
  grid-area: meta;
  margin: 12px -16px 0;
  padding: 10px 16px 14px !important;
  border-top: 1px solid var(--line) !important;
  background: var(--surface-2) !important;
  border-radius: 0 !important;
}

.part .item.inner_item .view {
  color: var(--text-3) !important;
  font-size: 12px !important;
}

.part .item.inner_item .link .fa {
  color: var(--primary);
  opacity: .7;
}

.part .item.inner_item .link:hover .fa {
  color: var(--primary);
  opacity: 1;
}

.part.index-part { margin-bottom: 28px; }

/* ========== 友情链接 ========== */
.f-link {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px !important;
}

.f-link .tt { margin-bottom: 12px; }

#flink.container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.f-link li {
  float: none;
  padding: 0;
}

.f-link li a {
  font-size: 14px;
  color: var(--text-2);
  padding: 6px 0;
  background: none !important;
  border: none !important;
  border-radius: 0;
  font-weight: 400;
}

.f-link li a:hover {
  color: var(--primary) !important;
  background: none !important;
  transform: none;
  box-shadow: none;
}

/* ========== 详情页 ========== */
.part .post-single .pic {
  width: 200px;
  height: 200px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #dbeafe, #bfdbfe) !important;
  overflow: hidden;
}

.part .post-single .pic .blur-layer { display: none; }

.part .post-single .pic img {
  height: 52px !important;
  width: 52px !important;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.92);
  background: #fff;
  box-shadow: 0 4px 16px rgba(15,23,42,.12);
}

.part .post-single .list .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: auto;
  line-height: 1;
  width: auto;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
}

.part .post-single .list .btn:hover {
  color: #fff !important;
  transform: translateY(-1px);
}

/* 详情页：导航信息区 / 正文区 拆成两张独立卡片 */
.detail-head-card.partbg {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.detail-body-card.partbg {
  margin-top: 0 !important;
  margin-bottom: 24px !important;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.detail-body-card .itemspd {
  padding: 24px 28px !important;
}

.detail-body-card .art-main {
  padding: 0 !important;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-2);
}

.detail-body-card .art-main p {
  margin-bottom: 12px;
  color: var(--text-2);
}

/* ========== Footer（恢复原主题底部样式） ========== */
.footer-copyright {
  padding: 10px;
  font-size: 12px;
  line-height: 18px;
  color: #6b7386;
  background: #333;
  margin-top: 16px;
  border-top: none;
  text-align: center;
}

.footer-copyright .container {
  width: 100%;
  max-width: none;
}

.footer-copyright p {
  margin-bottom: 0 !important;
  line-height: 30px !important;
  text-align: center;
}

.footer-copyright .footer-code {
  text-align: center;
  line-height: 1.6;
}

.footer-copyright p span {
  padding: 0 6px;
  white-space: nowrap;
}

.footer-copyright p a {
  color: #6b7386 !important;
  opacity: 1;
}

.footer-copyright p a:hover {
  color: #ff3636 !important;
}

@media (min-width: 1200px) {
  .footer-copyright {
    height: auto;
    position: static;
    width: 100%;
  }

  .footer-copyright p {
    line-height: 40px !important;
  }
}

@media (max-width: 991px) {
  .footer-copyright {
    position: static;
    line-height: 24px;
    font-size: 12px;
  }

  .footer-copyright p {
    margin-bottom: 10px !important;
    line-height: 24px !important;
  }

  .footer-copyright p span {
    padding: 0 2px !important;
  }
}

#backtop {
  border-color: var(--line) !important;
  color: var(--text-2) !important;
}

#backtop:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* ========== Responsive ========== */
@media (max-width: 1199px) {
  #banner-bear.hero,
  #banner-bear.hero.preserve3d {
    height: auto !important;
    min-height: 0 !important;
  }
}

@media (max-width: 1024px) {
  #banner-bear.hero .container.hero-grid,
  .hero-grid {
    grid-template-columns: 1fr !important;
  }

  #banner-bear.hero .hero-main,
  .hero-main {
    grid-column: 1;
    grid-row: 1;
  }

  #banner-bear.hero .hero-side,
  .hero-side {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .row-position {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .row-position > .col-md-12 { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  body { padding-top: var(--header-h) !important; }

  .header {
    position: relative !important;
    top: auto !important;
    width: auto !important;
    height: 0 !important;
    min-height: 0;
    overflow: visible;
    display: block !important;
  }

  .header .logo {
    float: none !important;
    display: flex !important;
    height: var(--header-h) !important;
    margin: 0 !important;
  }

  .header .container,
  .header .container.header-inner {
    text-align: left !important;
    display: flex !important;
    gap: 8px;
    padding: 0 12px;
  }

  .header .logo a { min-width: 90px !important; max-width: 120px !important; height: 36px !important; }
  .header .logo a img { height: 36px !important; }
  .header .nav-bar { display: none !important; }
  .header-search { display: none !important; }
  .header .m-btn.menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    right: auto !important;
    height: 42px !important;
    width: 42px !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .header .m-btn.menu-toggle i {
    line-height: 1 !important;
    height: auto !important;
  }

  .header-actions {
    align-items: center !important;
  }

  .header .submit,
  .header .submit.fr {
    display: flex !important;
    float: none !important;
    height: auto !important;
    flex-shrink: 0;
  }

  .header .submit .a {
    font-size: 13px !important;
    width: auto !important;
    min-width: 0;
    padding: 0 12px !important;
    justify-content: center;
    overflow: visible;
    white-space: nowrap;
  }

  .header .submit .a span {
    display: inline !important;
  }

  .header .submit .a i {
    font-size: 13px;
    margin: 0;
  }

  .m-btn {
    position: static !important;
    display: none;
  }

  #banner-bear.hero {
    margin-top: calc(-1 * var(--header-h));
    padding: calc(28px + var(--header-h)) 0 32px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stat-card {
    padding: 10px 6px;
    text-align: center;
    border-radius: 10px;
  }

  .stat-card strong {
    font-size: 18px;
    margin-bottom: 2px;
  }

  .stat-card span {
    font-size: 11px;
    line-height: 1.3;
  }

  .hero-side { gap: 10px; }

  #banner-bear .primary-menus { padding: 18px 16px; }

  #banner-bear .primary-menus .selects {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  #banner-bear .primary-menus .selects::-webkit-scrollbar {
    display: none;
  }

  #banner-bear .primary-menus .selects li {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  #banner-bear .primary-menus .left-cont input {
    height: 50px;
    font-size: 15px;
    padding-right: 108px !important;
  }
  #banner-bear .primary-menus .left-cont button {
    min-width: 96px;
    height: 50px !important;
    line-height: 50px !important;
    font-size: 14px;
  }

  .part .item.inner_item .a p { margin-top: 0 !important; }

  /* 详情页：去掉大块蓝色背景，改为卡片式小图标 + 信息并排 */
  .part .post-single > .col-xs-12:first-child,
  .part .post-single > .col-sm-12:first-child {
    display: flex;
    align-items: flex-start;
    gap: 14px;
  }

  .part .post-single .pic {
    float: none !important;
    width: 64px !important;
    height: 64px !important;
    min-width: 64px;
    margin: 0 !important;
    padding: 8px;
    background: #fff !important;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: visible;
  }

  .part .post-single .pic .blur-layer { display: none !important; }

  .part .post-single .pic > .img-cover,
  .part .post-single .pic .site-icon {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 48px;
    max-height: 48px;
    margin: 0 !important;
    border-radius: 10px !important;
    border: none !important;
    box-shadow: none !important;
    object-fit: contain;
    background: transparent;
  }

  .part .post-single .list {
    margin-left: 0 !important;
    margin-top: 0 !important;
    flex: 1;
    min-width: 0;
  }

  .part .post-single .list p span {
    font-size: 16px !important;
    line-height: 1.45;
    display: block;
  }

  .part .post-single .list .btn {
    margin-top: 12px;
  }

  .detail-body-card .itemspd {
    padding: 18px 16px !important;
  }

  .detail-head-card.partbg {
    margin-bottom: 12px !important;
  }
}

@media (max-width: 520px) {
  .row-position { grid-template-columns: 1fr; }
}

/* 覆盖原 style.css 992px 断点对 header 的 fixed/float 干扰 */
@media (max-width: 992px) {
  body { padding-top: var(--header-h) !important; }

  .header {
    position: relative !important;
    top: auto !important;
    width: auto !important;
    height: 0 !important;
    min-height: 0;
    overflow: visible;
  }

  .header .logo {
    float: none !important;
    height: var(--header-h) !important;
    display: flex !important;
  }

  .header .nav-bar li {
    height: auto !important;
    line-height: normal !important;
  }

  .header .submit {
    float: none !important;
    height: auto !important;
    display: flex !important;
  }
}

/* ========== 全局顶栏占位修正（消除导航与面包屑间双倍空白） ========== */
header.header,
body > .header {
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: none !important;
  position: static !important;
}

body > #mobile-nav,
body > #m-nav,
body > #mask,
#mask.nav-mask {
  position: fixed !important;
  margin: 0 !important;
}

#mask,
#mask.nav-mask {
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

body.nav-open #mask.nav-mask {
  pointer-events: auto;
}

.breadnav {
  margin: 0 !important;
  padding: 10px 0 14px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.breadnav .bread {
  padding: 0 !important;
}
