/*
Theme Name: ZKE CMS Theme
Theme URI: https://www.zke.com
Author: ZKE
Author URI: https://www.zke.com
Description: ZKE CMS / Blog 主题，顶部黑色导航，内容区域参考 Binance Blog 的白色扁平卡片布局。
Version: 2.0.0
Text Domain: zke-cms
*/

/* ===========================
   0. RESET & 基础
   =========================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f5f5f7; /* 浅灰，类似 Binance Blog 背景 */
  color: #181A20;      /* Binance 常用深色文字 */
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
}

#zke-site {
  min-height: 100vh;
  background: #f5f5f7;
}

/* 通用容器 */
.zke-container {
  width: 100%;
  max-width: 1200px;
  margin: 24px auto 40px;
  padding: 0 16px;
}

/* ===========================
   1. 顶部导航（黑色，交易所风）
   =========================== */

#zke-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #000000; /* 纯黑导航 */
  border-bottom: 1px solid rgba(32, 35, 44, 0.9);
}

.zks-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* LOGO */
.zks-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.zks-logo img {
    max-height: 50px;
    max-width: 160px;
}

/* PC 导航主体 */
.zks-nav {
  display: flex;
  align-items: center;
}

/* 顶级菜单容器 */
.zks-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 顶级 li */
.zks-menu > li {
  position: relative;
}

/* 顶级链接：扁平 + 细下划线，参考 Binance */
.zks-menu > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 14px;
  line-height: 1;
  height: 56px;
  color: #FFFFFF;
  transition: color .15s ease;
}

/* hover / 当前高亮 */
.zks-menu > li > a:hover,
.zks-menu > li.current-menu-item > a,
.zks-menu > li.current-menu-ancestor > a {
  color: #F5F5F7;
}

/* 渐变下划线 */
.zks-menu > li > a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: #2b61ff; 
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: center;
  transition: opacity .16s ease, transform .16s ease;
}

.zks-menu > li > a:hover::after,
.zks-menu > li.current-menu-item > a::after,
.zks-menu > li.current-menu-ancestor > a::after {
  opacity: 1;
  transform: scaleX(1);
}

/* 顶级里如果你想做一个主按钮，可以额外加这个类（可选） */
.zks-menu > li > a.zks-link-primary {
  margin-top: 11px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #F0B90B, #F8D12F);
  color: #181A20;
  font-weight: 600;
}
.zks-menu > li > a.zks-link-primary::after {
  display: none;
}
.zks-menu > li > a.zks-link-primary:hover {
  filter: brightness(1.05);
}

/* 有子菜单的小箭头 */
.zks-menu > li.menu-item-has-children > a {
  padding-right: 18px;
}
.zks-menu > li.menu-item-has-children > a::before {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #FFFFFF;
  border-bottom: 1.5px solid #FFFFFF;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .16s ease, border-color .16s ease;
}
.zks-menu > li.menu-item-has-children:hover > a::before {
  transform: translateY(-40%) rotate(225deg);
  border-color: #F5F5F7;
}

/* 下拉菜单面板（深色卡片，和导航同色系） */
.zks-menu .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 8px;
  padding: 6px 0;
  min-width: 230px; /* 稍微宽一点，比 220 舒服一点 */

  /* ✅ 这里统一成和导航一样的黑，可以微微亮一点 */
  background: #1d1d1f; /* 和 #zke-header 一致，也可以改成 rgba(15,23,42,0.98) 看你喜好 */

  border-radius: 2px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);

  /* ✅ 默认隐藏，下拉时用 hover 那条规则显示 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  z-index: 10000;
}

/* hover 展开 */
.zks-menu > li.menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 下拉列表里的项 */
.zks-menu .sub-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.zks-menu .sub-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  font-size: 13px;
  color: #E5E7EB;
  white-space: nowrap;
  transition: background .12s ease, color .12s ease, transform .12s ease;
}
.zks-menu .sub-menu a:hover {
  background: rgba(55, 65, 81, 0.98);
  color: #ffffff;
  transform: translateX(1px);
}

/* 右侧区域：类似 Binance 顶栏的 Login / Register / Support */
.zks-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.zks-right-link {
  color: #FFFFFF;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color .12s ease, background .12s ease;
}
.zks-right-link:hover {
  color: #F5F5F7;
  background: rgba(31, 41, 55, 0.9);
}

.zks-right-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 400;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .14s ease, color .14s ease, border-color .14s ease, transform .14s ease;
}

/* Log In 风格 */
.zks-right-btn-ghost {
  border-color: rgba(75, 85, 99, 0.9);
  color: #FFFFFF;
  background: transparent;
}
.zks-right-btn-ghost:hover {
  background: rgba(31, 41, 55, 0.95);
}

/* Sign Up 风格 */
.zks-right-btn-primary {
  background: #2b61ff;
  color: #ffffff;
}
.zks-right-btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ===========================
   2. 移动端导航（全新版本）
   =========================== */

/* 汉堡按钮：默认隐藏，窄屏再显示 */
.zks-toggle {
  display: none;
  border: 1px solid rgba(55, 65, 81, 0.9);
  border-radius: 999px;
  padding: 8px 10px;          /* 原来 6x9，略微放大 */
  min-width: 38px;            /* 保证至少这么大一块可以点 */
  min-height: 32px;
  background: transparent;
  color: #E5E7EB;
  cursor: pointer;
  font-size: 13px;
  align-items: center;
  justify-content: center;
}

/* 三道杠图标 */
.zks-toggle-icon {
  width: 18px;
  height: 16px;
  position: relative;
  display: inline-block;
}
.zks-toggle-icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: #E5E7EB;
  transition: transform .18s ease, opacity .18s ease, top .18s ease, bottom .18s ease;
}
.zks-toggle-icon span:nth-child(1) { top: 2px; }
.zks-toggle-icon span:nth-child(2) { top: 7px; }
.zks-toggle-icon span:nth-child(3) { bottom: 2px; }

/* 打开时变 X */
#zke-header[data-open="1"] .zks-toggle-icon span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}
#zke-header[data-open="1"] .zks-toggle-icon span:nth-child(2) {
  opacity: 0;
}
#zke-header[data-open="1"] .zks-toggle-icon span:nth-child(3) {
  bottom: 7px;
  transform: rotate(-45deg);
}

/* H5 下拉面板基础样式：黑底、默认收起（max-height:0） */
.zks-mobile-panel {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: #020617;
  max-height: 0;
  overflow: hidden;
  transition: max-height .22s ease;
}

/* 内部容器 */
.zks-mobile-panel-inner {
  padding: 10px 16px 12px;
}

/* 菜单列表 */
.zks-mobile-menu {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.zks-mobile-menu > li {
  margin-bottom: 4px;
}
.zks-mobile-menu > li > a {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  color: #E5E7EB;
}

/* 二级菜单：缩进 + 默认隐藏（只在 is-open 时展开） */
.zks-mobile-menu .sub-menu {
  margin: 4px 0 6px 14px;
  padding-left: 10px;
  border-left: 1px solid rgba(55, 65, 81, 0.8);
  list-style: none;
  display: none;
}
.zks-mobile-menu .sub-menu a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: #9CA3AF;
}
.zks-mobile-menu li.is-open > .sub-menu {
  display: block;
}

/* 给有子菜单的一级加一个小 + / -（只在手机用） */
@media (max-width: 960px) {
  .zks-mobile-menu li.menu-item-has-children > a {
    position: relative;
    padding-right: 20px;
  }
  .zks-mobile-menu li.menu-item-has-children > a::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: .7;
  }
  .zks-mobile-menu li.is-open > a::after {
    content: "–";
  }
}

/* 手机下拉里的按钮，恢复成和 PC 一样的文字色 */
.zks-mobile-right .zks-right-btn-primary {
  color: #181A20;
}

.zks-mobile-right .zks-right-btn-ghost {
  color: #E5E7EB;
}
/* H5 右侧按钮区域 */
.zks-mobile-right {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding-top: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: #E5E7EB;
}
  /* 一级菜单整体手感 */
  .zks-mobile-menu > li > a {
    padding: 9px 10px;  /* 左右多一点点击区域 */
    border-radius: 6px;
    transition:
      background .15s ease,
      transform .12s ease,
      color .15s ease;
  }

  /* 手指点上去的 hover 效果（调试时也好看一点） */
  .zks-mobile-menu > li > a:hover {
    background: rgba(15, 23, 42, 0.7);
  }

  /* 真正按下去那一下（:active） */
  .zks-mobile-menu > li > a:active {
    background: rgba(15, 23, 42, 0.95);
    transform: translateY(1px);
  }
}
/* ===== Mobile：当前所在栏目轻微高亮 ===== */
@media (max-width: 960px) {
  .zks-mobile-menu > li.current-menu-item > a,
  .zks-mobile-menu > li.current-menu-ancestor > a,
  .zks-mobile-menu > li.current_page_item > a {
    color: #FACC15;      /* 淡黄 */
    font-weight: 500;
  }
}

/* ========= 响应式：PC / H5 开关 ========= */

/* 窄屏：隐藏 PC 导航，显示汉堡；展开时拉开 mobile 面板高度 */
@media (max-width: 960px) {
  .zks-nav,
  .zks-right {
    display: none;
  }
  .zks-toggle {
    display: inline-flex;
  }

  /* 只有 data-open=1 时才真正展开 mobile 面板 */
  #zke-header[data-open="1"] .zks-mobile-panel {
    max-height: calc(100vh - 56px);
    overflow-y: auto;
  }
}

/* 宽屏：彻底关掉 mobile 面板 */
@media (min-width: 961px) {
  .zks-mobile-panel {
    max-height: 0;
    overflow: hidden;
    display: none;
  }
}

/* ===========================
   3. 主内容布局（参考 Binance Blog）
   =========================== */

#zke-main {
  padding: 24px 0 40px;
}

/* 顶部大标题区域：类似 Blog 页面的「主标题 + 描述」 */
.zke-page-header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 8px;
  padding: 0 16px;
}

.zke-page-title {
  font-size: 32px;
  font-weight: 700;
  margin: 4px 0 4px;
  color: #181A20;
}

.zke-page-desc {
  font-size: 14px;
  color: #707A8A;
  margin-bottom: 12px;
}

/* 列表页：卡片网格 */
.zke-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* 单个文章卡片 */
.zke-post-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #EAECEF;
  overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}

/* 卡片 hover 效果 */
.zke-post-card:hover {
  border-color: #d7dee6;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

/* 封面图（如果有特色图） */
.zke-post-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0B0E11;
  overflow: hidden;
}
.zke-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 卡片正文 */
.zke-post-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 类目 / 标签 */
.zke-post-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #C99400; /* Binance 黄偏深 */
}

/* 标题 */
.zke-post-title {
  font-size: 16px;
  font-weight: 600;
  color: #181A20;
  line-height: 1.4;
}

/* 摘要 */
.zke-post-excerpt {
  font-size: 13px;
  color: #707A8A;
  max-height: 3.2em;
  overflow: hidden;
}

/* meta（日期等） */
.zke-post-meta {
  margin-top: 6px;
  font-size: 12px;
  color: #A7B1C2;
}

/* ===========================
   4. 文章详情 / 单页
   =========================== */

.zke-single-wrap {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #EAECEF;
}

/* 详情标题 */
.zke-single-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #181A20;
}

/* 详情 meta */
.zke-single-meta {
  font-size: 13px;
  color: #707A8A;
  margin-bottom: 20px;
}

/* 正文排版 */
.zke-content {
  font-size: 16px;
  color: #181A20;
}

.zke-content h1,
.zke-content h2,
.zke-content h3,
.zke-content h4 {
  margin: 1.6em 0 0.6em;
  line-height: 1.3;
  color: #181A20;
}

.zke-content p {
  margin: 0 0 1em;
}

.zke-content ul,
.zke-content ol {
  margin: 0 0 1em 1.3em;
  padding: 0;
}

.zke-content li {
  margin: 0.2em 0;
}

/* 引用 */
.zke-content blockquote {
  margin: 1.4em 0;
  padding: 0.8em 1em;
  border-left: 3px solid #EAECEF;
  background: #FAFAFA;
  color: #4B5563;
}

/* 表格 */
.zke-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 14px;
}
.zke-content th,
.zke-content td {
  border: 1px solid #EAECEF;
  padding: 8px 10px;
  text-align: left;
}
.zke-content th {
  background: #FAFAFA;
  font-weight: 600;
}

/* 媒体 */
.zke-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.6em auto;
  border-radius: 8px;
}

.zke-content iframe,
.zke-content video {
  max-width: 100%;
  display: block;
  margin: 1em auto;
}

/* figure / caption */
.zke-content figure {
  margin: 0 0 1.4em;
}
.zke-content figcaption {
  font-size: 12px;
  color: #707A8A;
  text-align: center;
  margin-top: 4px;
}

/* ===========================
   5. 分页 & 页脚
   =========================== */

.zke-pagination {
  margin: 24px 0 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.zke-pagination a,
.zke-pagination span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #EAECEF;
  background: #ffffff;
  font-size: 13px;
  color: #4B5563;
}
.zke-pagination a:hover {
  border-color: #d7dee6;
}

/* footer */
#zke-footer {
  border-top: 1px solid #EAECEF;
  padding: 18px 16px 26px;
  font-size: 12px;
  color: #707A8A;
  background: #ffffff;
}
#zke-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===========================
   6. 响应式
   =========================== */

@media (max-width: 1024px) {
  .zke-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .zke-post-grid {
    grid-template-columns: 1fr;
  }

  .zke-page-title {
    font-size: 24px;
  }

  .zke-single-wrap {
    margin-top: 8px;
    border-radius: 12px;
  }
}

/* ===========================
   Single 文章详情布局 — Binance Blog 风格
   =========================== */

.zke-single-container {
  margin-top: 8px;
}

/* 外层两列布局：左文章 + 右侧栏 */
.zke-single-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

/* 左侧主内容卡片 */
.zke-single-wrap {
  flex: 1 1 0;
  max-width: 760px;
  margin: 0;
  padding: 24px 24px 40px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #EAECEF;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

/* 顶部面包屑 */
.zke-breadcrumb {
  font-size: 13px;
  color: #707A8A;
  margin: 16px auto 4px;
  max-width: 1200px;
}
.zke-breadcrumb a {
  color: #707A8A;
}
.zke-breadcrumb a:hover {
  color: #181A20;
}
.zke-breadcrumb span {
  margin: 0 4px;
}

/* 分类标签 */
.zke-single-category {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #FFF7E6;
  color: #C99400;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

/* 标题 */
.zke-single-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
  color: #181A20;
}

/* meta 行：日期 + 来源 +（以后可加阅读时长） */
.zke-single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #707A8A;
  margin-bottom: 18px;
}
.zke-single-dot {
  opacity: 0.6;
}

/* 头图 */
.zke-single-hero {
  margin: 0 0 20px;
  border-radius: 14px;
  overflow: hidden;
}
.zke-single-hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* 正文 */
.zke-content {
  font-size: 16px;
  color: #181A20;
}

.zke-content h1,
.zke-content h2,
.zke-content h3,
.zke-content h4 {
  margin: 1.6em 0 0.6em;
  line-height: 1.35;
  color: #181A20;
}

.zke-content p {
  margin: 0 0 1em;
}

.zke-content ul,
.zke-content ol {
  margin: 0 0 1em 1.3em;
  padding: 0;
}

/* 分享行 */
.zke-single-share {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid #EAECEF;
  font-size: 13px;
  color: #707A8A;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.zke-single-share-label {
  font-weight: 500;
}
.zke-single-share a {
  color: #181A20;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #EAECEF;
  background: #F9FAFB;
}
.zke-single-share a:hover {
  border-color: #d7dee6;
}

/* 右侧延伸阅读栏 */
.zke-single-aside {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 88px; /* 导航高度 + 一点间距 */
  align-self: flex-start;
}

.zke-aside-title {
  font-size: 14px;
  font-weight: 600;
  color: #181A20;
  margin: 0 0 10px;
}

.zke-aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #EAECEF;
  padding: 10px 12px;
}

.zke-aside-item {
  border-bottom: 1px solid #F1F2F5;
  padding: 8px 2px;
}
.zke-aside-item:last-child {
  border-bottom: none;
}

.zke-aside-link {
  display: block;
}

.zke-aside-item-title {
  font-size: 13px;
  color: #181A20;
  line-height: 1.4;
  margin-bottom: 4px;
}
.zke-aside-item-date {
  font-size: 11px;
  color: #A7B1C2;
}

.zke-aside-link:hover .zke-aside-item-title {
  color: #C99400;
}

.zke-aside-empty {
  font-size: 12px;
  color: #A7B1C2;
}

/* 响应式：平板 & 手机下改为单列布局 */
@media (max-width: 1024px) {
  .zke-single-layout {
    flex-direction: column;
  }
  .zke-single-wrap {
    max-width: 100%;
  }
  .zke-single-aside {
    width: 100%;
    position: static;
  }
  .zke-aside-list {
    margin-top: 8px;
  }
}

/* ==== 强制 Single 页两栏布局（左内容 + 右侧栏） ==== */

/* 容器拉宽一点，接近 Binance 的宽度 */
.zke-single-container {
  max-width: 1200px;
  margin: 16px auto 40px;
}

/* 两栏布局：左 3 右 1 */
.zke-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: flex-start;
}

/* 主内容卡片：不再居中、不再限制宽度 */
.zke-single-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* 右侧栏宽度交给 grid 控制，并保持吸顶 */
.zke-single-aside {
  width: 100%;
  max-width: none;
  position: sticky;
  top: 88px; /* 导航高度 + 间距，可按需要微调 */
}

/* 防止之前的任何居中样式影响（保险起见） */
.zke-single-wrap,
.zke-single-aside,
.zke-single-container article {
  margin-left: 0;
  margin-right: 0;
}

/* 小屏恢复单列 */
@media (max-width: 1024px) {
  .zke-single-layout {
    display: block;
  }
  .zke-single-aside {
    position: static;
    margin-top: 16px;
  }
}

/* 底部「查看更多」按钮样式（Binance 风格） */
.zke-load-more-wrap {
  text-align: center;
  margin: 24px 0 0;
}

.zke-load-more-btn {
  min-width: 200px;
  padding: 8px 24px;
  border-radius: 999px;
  border: 1px solid #EAECEF;
  background: #ffffff;
  font-size: 14px;
  font-weight: 500;
  color: #181A20;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}

.zke-load-more-btn:hover:not(:disabled) {
  border-color: #d7dee6;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.zke-load-more-btn:disabled,
.zke-load-more-btn-disabled {
  cursor: default;
  color: #A7B1C2;
  background: #F5F5F7;
  border-color: #EAECEF;
  box-shadow: none;
  transform: none;
}

/* ===== 顶部分类横条（Binance Blog 风格） ===== */

.zke-page-filter {
  max-width: 1200px;
  margin: 0 auto 4px;
  padding: 0 16px 4px;
}

/* 横向滚动条容器 */
.zke-catbar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* 可选：隐藏滚动条（看你喜好，可以删掉） */
.zke-catbar::-webkit-scrollbar {
  height: 4px;
}
.zke-catbar::-webkit-scrollbar-track {
  background: transparent;
}
.zke-catbar::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 999px;
}

/* 分类 pill */
.zke-catpill {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #EAECEF;
  background: #ffffff;
  font-size: 13px;
  color: #4B5563;
  white-space: nowrap;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.zke-catpill:hover {
  border-color: #d7dee6;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

/* 当前分类高亮（类似 Binance 的黄系） */
.zke-catpill.is-active {
  background: #FFF7E6;
  border-color: #F0B90B;
  color: #C99400;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(240, 185, 11, 0.16);
}

/* 小屏稍微缩小一点 */
@media (max-width: 768px) {
  .zke-catpill {
    padding: 6px 10px;
    font-size: 12px;
  }
}


/* 每一行高度 / 内边距再拉开一点 */
.zks-menu .sub-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;              /* 原来 8/14 可以小幅改大一点 */
  font-size: 13px;
  line-height: 1.4;
  color: #E5E7EB;
  white-space: nowrap;
  position: relative;
  transition:
    background .12s ease,
    color .12s ease,
    transform .12s ease,
    padding-left .12s ease;
}

/* hover 行：背景块 + 左侧高亮条 + 微微右移 */
.zks-menu .sub-menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 0;
  border-radius: 0 4px 4px 0;
  background: #2b61ff;
  opacity: 0;
  transition: width .14s ease, opacity .14s ease;
}

.zks-menu .sub-menu a:hover {
  background: #05060a; 
  color: #F9FAFB;
  transform: translateX(2px);
  padding-left: 20px;                   /* 稍微右移一点，增加动感 */
}

.zks-menu .sub-menu a:hover::before {
  width: 3px;
  opacity: 1;
}

/* 如果未来想给右侧加小字说明（副标题），可以这样设计 */
.zke-sub-label {
  font-size: 11px;
  color: #9CA3AF;
  margin-left: 8px;
}

/* 顶级菜单 hover 下拉的动画稍微柔一点 */
.zks-menu > li.menu-item-has-children > .sub-menu {
  transform: translateY(6px);
}
.zks-menu > li.menu-item-has-children:hover > .sub-menu {
  transform: translateY(2px);
}

/* 三级菜单（如有）位置稍微偏一点 */
.zks-menu .sub-menu .menu-item-has-children > .sub-menu {
  top: 4px;
  left: 100%;
  margin-left: 10px;
}

/* ========== 数字学院 Learn & Earn — 1 列竖排版 ========== */
/* 隐藏顶部缝隙 */
.category-academy .zke-main {
    padding-top: 0;
    padding-bottom: 0;
}
/* 顶部 Hero（黑 + 渐变） */
.zke-learn-hero {
  background: radial-gradient(circle at top left, rgba(240, 185, 11, 0.22), transparent 60%),
              radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.18), transparent 55%),
              #020617;
  padding: 30px 16px 26px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.zke-learn-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.zke-learn-title {
  font-size: 26px;
  font-weight: 700;
  color: #F9FAFB;
  margin: 0 0 8px;
}

.zke-learn-sub {
  font-size: 14px;
  color: #CBD5F5;
  max-width: 580px;
  margin: 0 0 12px;
}

/* 活动规则区块 */
.zke-learn-rules {
  max-width: 720px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.zke-learn-rules-title {
  font-size: 13px;
  font-weight: 600;
  color: #F9FAFB;
  margin-bottom: 4px;
}

.zke-learn-rules-text {
  font-size: 12px;
  color: #E5E7EB;
  line-height: 1.6;
}

.zke-learn-disclaimer {
  margin-top: 6px;
  font-size: 11px;
  color: #9CA3AF;
}

/* 顶部状态 tab（全部 / 进行中 / 已结束） */
.zke-learn-filter-wrap {
  margin-top: 10px;
  margin-bottom: 4px;
}

.zke-learn-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 2px;
  -webkit-overflow-scrolling: touch;
}

.zke-learn-tabs::-webkit-scrollbar {
  height: 4px;
}
.zke-learn-tabs::-webkit-scrollbar-thumb {
  background: #E5E7EB;
  border-radius: 999px;
}

.zke-learn-tab {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #E5E7EB;
  background: #ffffff;
  font-size: 13px;
  color: #4B5563;
  white-space: nowrap;
  transition:
    border-color .15s ease,
    background .15s ease,
    color .15s ease,
    box-shadow .15s ease,
    transform .15s ease;
}

.zke-learn-tab:hover {
  border-color: #d7dee6;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.zke-learn-tab.is-active {
  background: #FFF7E6;
  border-color: #F0B90B;
  color: #C99400;
  font-weight: 500;
  box-shadow: 0 10px 26px rgba(240, 185, 11, 0.18);
}

/* 整体列表外层 */
.zke-learn-list-wrap {
  margin-top: 4px;
  margin-bottom: 32px;
}

.zke-learn-list-vertical {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 单条活动卡片 — 左图右文 */
.zke-learn-row {
  margin: 0;
}

.zke-learn-row-inner {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.04);
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    border-color .15s ease;
}

.zke-learn-row-inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  border-color: #d7dee6;
}

/* 左侧封面图 */
.zke-learn-row-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  max-height: 160px;
}

.zke-learn-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zke-learn-thumb-placeholder {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #9CA3AF;
  background: linear-gradient(135deg, #E5E7EB, #F3F4F6);
}

/* 状态角标（进行中 / 已结束） */
.zke-learn-status-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 3px 9px;
  font-size: 11px;
  border-radius: 999px;
  font-weight: 500;
  backdrop-filter: blur(6px);
}

.zke-learn-status-ongoing {
  background: rgba(22, 163, 74, 0.16);
  color: #15803D;
  border: 1px solid rgba(22, 163, 74, 0.5);
}

.zke-learn-status-ended {
  background: rgba(148, 163, 184, 0.18);
  color: #64748B;
  border: 1px solid rgba(148, 163, 184, 0.55);
}

/* 右侧文案区域 */
.zke-learn-row-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 顶部 meta 行：难度 / 奖励 */
.zke-learn-row-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.zke-learn-level {
  padding: 3px 8px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #2563EB;
}

.zke-learn-reward {
  font-weight: 500;
  color: #C99400;
}

/* 标题 + 摘要 */
.zke-learn-row-title {
  font-size: 16px;
  font-weight: 600;
  margin: 2px 0;
}
.zke-learn-row-title a {
  color: #111827;
}
.zke-learn-row-title a:hover {
  color: #1D4ED8;
}

.zke-learn-row-excerpt {
  font-size: 13px;
  color: #4B5563;
}

/* 底部：提示 + 按钮 */
.zke-learn-row-footer {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.zke-learn-row-note {
  font-size: 11px;
  color: #9CA3AF;
}

/* 按钮 */
.zke-learn-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #111827;
  font-size: 12px;
  font-weight: 500;
  color: #111827;
  background: #F9FAFB;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.zke-learn-btn:hover {
  background: #111827;
  color: #F9FAFB;
  border-color: #111827;
}

.zke-learn-btn.is-ghost {
  background: #ffffff;
  border-color: #E5E7EB;
  color: #4B5563;
}

.zke-learn-btn.is-ghost:hover {
  background: #F9FAFB;
}

/* 空数据提示 */
.zke-learn-empty {
  font-size: 14px;
  color: #6B7280;
  text-align: center;
  padding: 40px 0;
}

/* 响应式：窄屏改为上下结构 */
@media (max-width: 768px) {
  .zke-learn-row-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .zke-learn-row-thumb {
    max-height: none;
  }
}

/* ========== ZKE 研究院 Research 升级版布局（修复轮播） ========== */
/* 研究院分类页：主内容贴近导航，去掉主区 padding */
.category-research #zke-main {
    padding-top: 0;
    padding-bottom: 24px; /* 保留一点底部，也可以改成 0 */
}
/* 顶部 Hero */
.zke-research-hero {
  background: radial-gradient(circle at top left, rgba(240, 185, 11, 0.22), transparent 60%),
              radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.18), transparent 55%),
              #020617;
  padding: 28px 16px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.zke-research-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.zke-research-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  color: #F9FAFB;
}

.zke-research-sub {
  margin: 0 0 10px;
  font-size: 14px;
  color: #CBD5F5;
  max-width: 620px;
}

.zke-research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.zke-research-tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: #E5E7EB;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.8);
}

/* 币价横条 */
.zke-research-tickerbar {
  background: #020617;
  border-bottom: 1px solid rgba(31, 41, 55, 1);
}

.zke-research-ticker-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 16px 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
}

.zke-ticker {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.zke-ticker-name {
  font-size: 12px;
  color: #E5E7EB;
}

.zke-ticker-price {
  font-size: 13px;
  font-weight: 600;
  color: #F9FAFB;
}

.zke-ticker-change {
  font-size: 12px;
}

.zke-ticker-change[data-placeholder],
.zke-ticker-price[data-placeholder] {
  color: #6B7280;
}

.zke-ticker-change.is-up {
  color: #22C55E;
}

.zke-ticker-change.is-down {
  color: #EF4444;
}

/* 精选轮播区域 */
.zke-research-featured {
  background: #F3F4F6;
  border-bottom: 1px solid #E5E7EB;
}

.zke-research-featured-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px 18px;
}

.zke-research-featured-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.zke-research-featured-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.zke-research-featured-hint {
  font-size: 12px;
  color: #6B7280;
}

.zke-research-featured-ctrl {
  display: flex;
  gap: 6px;
}

.zke-research-slider-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #D1D5DB;
  background: #FFFFFF;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.zke-research-slider-btn:hover {
  background: #111827;
  border-color: #111827;
  color: #F9FAFB;
  transform: translateY(-1px);
}

/* slides 容器 */
.zke-research-slider {
  position: relative;
}

.zke-research-slides {
  position: relative;
  overflow: hidden;
}

/* 单个 slide：默认不占位，只显示当前激活的 */
.zke-research-slide {
  display: none;            /* ✅ 关键：非激活不占布局 */
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity .2s ease,
    transform .2s ease;
}

/* 当前激活 slide 才作为两栏卡片展示 */
.zke-research-slide.is-active {
  display: grid;            /* ✅ 只给 is-active 设置 grid 布局 */
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 18px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.04);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.zke-research-slide-image {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  max-height: 210px;
}

.zke-research-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zke-research-slide-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zke-research-slide-title {
  margin: 2px 0;
  font-size: 18px;
  font-weight: 600;
}

.zke-research-slide-title a {
  color: #111827;
}

.zke-research-slide-title a:hover {
  color: #1D4ED8;
}

.zke-research-slide-excerpt {
  font-size: 13px;
  color: #4B5563;
}

.zke-research-slide-btn {
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #111827;
  font-size: 12px;
  font-weight: 500;
  color: #111827;
  background: #F9FAFB;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.zke-research-slide-btn:hover {
  background: #111827;
  color: #F9FAFB;
  border-color: #111827;
}

/* 小圆点 */
.zke-research-slider-dots {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  justify-content: center;
}

.zke-research-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: #D1D5DB;
  padding: 0;
  cursor: pointer;
  transition: width .15s ease, background .15s ease;
}

.zke-research-slider-dot.is-active {
  width: 18px;
  background: #111827;
}

/* 子分类 tab */
.zke-research-subnav-wrap {
  margin-top: 10px;
  margin-bottom: 4px;
}

.zke-research-subnav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 4px;
  -webkit-overflow-scrolling: touch;
}

.zke-research-subnav-item {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #E5E7EB;
  background: #ffffff;
  font-size: 13px;
  color: #4B5563;
  white-space: nowrap;
  transition:
    border-color .15s ease,
    background .15s ease,
    color .15s ease,
    box-shadow .15s ease,
    transform .15s ease;
}

.zke-research-subnav-item:hover {
  border-color: #d7dee6;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.zke-research-subnav-item.is-active {
  background: #FFF7E6;
  border-color: #F0B90B;
  color: #C99400;
  font-weight: 500;
  box-shadow: 0 10px 26px rgba(240, 185, 11, 0.18);
}

/* 主体布局：左列表 + 右侧栏 */
.zke-research-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1.1fr);
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 32px;
}

/* 文章列表 */
.zke-research-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zke-research-item {
  margin: 0;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid #E5E7EB;
  background: #ffffff;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.04);
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    border-color .15s ease;
}

.zke-research-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  border-color: #d7dee6;
}

/* 缩略图 */
.zke-research-thumb {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  max-height: 150px;
}

.zke-research-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zke-research-thumb-placeholder {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #9CA3AF;
  background: linear-gradient(135deg, #E5E7EB, #F3F4F6);
}

/* 右侧内容 */
.zke-research-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zke-research-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.zke-research-cat {
  padding: 3px 8px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #2563EB;
}

.zke-research-date {
  color: #9CA3AF;
}

.zke-research-item-title {
  margin: 2px 0;
  font-size: 16px;
  font-weight: 600;
}

.zke-research-item-title a {
  color: #111827;
}

.zke-research-item-title a:hover {
  color: #1D4ED8;
}

.zke-research-excerpt {
  font-size: 13px;
  color: #4B5563;
}

.zke-research-meta-bottom {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #9CA3AF;
}

.zke-research-more {
  color: #111827;
}

/* 分页 */
.zke-research-pagination {
  margin-top: 20px;
}

.zke-research-pagination .pagination,
.zke-research-pagination .nav-links {
  display: flex;
  gap: 6px;
  font-size: 13px;
}

.zke-research-pagination a,
.zke-research-pagination span {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #E5E7EB;
}

.zke-research-pagination .current {
  background: #111827;
  border-color: #111827;
  color: #F9FAFB;
}

/* 右侧推荐阅读 */
.zke-research-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zke-research-aside-card {
  border-radius: 18px;
  border: 1px solid #E5E7EB;
  background: #ffffff;
  padding: 12px 14px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.04);
}

.zke-research-aside-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.zke-research-aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zke-research-aside-item + .zke-research-aside-item {
  border-top: 1px solid #E5E7EB;
  margin-top: 4px;
  padding-top: 4px;
}

.zke-research-aside-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  color: #4B5563;
}

.zke-research-aside-link:hover .zke-research-aside-text {
  color: #111827;
}

.zke-research-aside-date {
  font-size: 11px;
  color: #9CA3AF;
}

.zke-research-aside-empty {
  font-size: 12px;
  color: #9CA3AF;
}

/* 响应式 */
@media (max-width: 1024px) {
  .zke-research-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .zke-research-aside {
    margin-top: 8px;
  }
  .zke-research-slide.is-active {
    grid-template-columns: minmax(0, 1fr); /* ✅ 平板及以下，轮播改为一列 */
  }
}

@media (max-width: 768px) {
  .zke-research-item {
    grid-template-columns: minmax(0, 1fr);
  }
  .zke-research-thumb {
    max-height: none;
  }
  .zke-research-featured-inner {
    padding-inline: 12px;
  }
}


