/* ===========================
   基础
   =========================== */
body.huoke-body {
  margin: 0;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  background-color: #020617;
  color: #e5e7eb;
}
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
#container { min-height: 100vh; display: flex; flex-direction: column; }

/* ===========================
   头部 & 导航
   =========================== */
.hk-header {
  background-color: #020617;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
}
.hk-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
.hk-logo a { color: #fff; text-decoration: none; }
.hk-logo-main {
  font-size: 20px;
  font-weight: 700;
}
.hk-logo-sub {
  font-size: 12px;
  opacity: .8;
  margin-left: 4px;
}

/* 顶部导航外层 */
.hk-nav {}

/* 导航模块容器，清掉模块默认样式 */
.hk-nav-menu .module,
.hk-nav-menu .module-nav {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
}

/* ===== 关键修改：同时兼容两种结构 =====
   1）<div class="hk-nav-menu"><li>…</li><li>…</li></div>
   2）<div class="hk-nav-menu"><ul><li>…</li></ul></div>
*/

/* 外层容器：横向排布 */
.hk-nav-menu {
  display: flex !important;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}

/* 如果里面有 ul，就把 ul 也改成横向 flex */
.hk-nav-menu ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: nowrap;
  gap: 18px;
}

/* li：无论是直接子元素还是在 ul 里，都去掉默认样式 */
.hk-nav-menu > li,
.hk-nav-menu ul > li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  display: block !important;
}

/* 导航链接样式：同样兼容两种结构 */
.hk-nav-menu > li > a,
.hk-nav-menu ul > li > a {
  display: inline-block !important;
  color: #e5e7eb !important;
  font-size: 14px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  line-height: 1.6 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

/* hover / 当前项高亮 */
.hk-nav-menu > li > a:hover,
.hk-nav-menu ul > li > a:hover,
.hk-nav-menu > li > a.active,
.hk-nav-menu ul > li > a.active {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
}

/* “获取方案”按钮：在后台给该导航项加 class=hk-nav-cta */
.hk-nav-menu ul li.hk-nav-cta > a,
.hk-nav-menu > li.hk-nav-cta > a {
  background-color: #f97316 !important;
  color: #111827 !important;
  font-weight: 600;
}

/* ===========================
   主体通用
   =========================== */
.hk-main {
  flex: 1;
}
.hk-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 16px;
}
.hk-section-head {
  text-align: center;
  margin-bottom: 24px;
}
.hk-section-head h2 {
  font-size: 26px;
  margin-bottom: 8px;
}
.hk-section-head p {
  color: #9ca3af;
}

/* ===========================
   Hero 区
   =========================== */
.hk-hero {
  background: radial-gradient(circle at top left,#1d4ed8,#020617);
  color: #e5e7eb;
}
.hk-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 52px 16px 56px;
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(0,1.2fr);
  gap: 32px;
}
.hk-hero-text h1 {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hk-hero-text p {
  color: #d1d5db;
  margin-bottom: 18px;
}
.hk-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
}
.btn-primary {
  background-color: #f97316;
  color: #111827;
}
.btn-secondary {
  background-color: transparent;
  border-color: #60a5fa;
  color: #e5e7eb;
}
.btn-outline {
  background-color: #fff;
  border-color: #d1d5db;
  color: #111827;
}
.hk-hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
}
.hk-hero-bullets li { margin-bottom: 4px; }
.hk-hero-side .hk-hero-card {
  background-color: rgba(15,23,42,.95);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.hk-hero-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}
.hk-hero-card ul {
  list-style: disc;
  margin: 8px 0 8px 18px;
  padding: 0;
  font-size: 13px;
}
.hk-link {
  font-size: 13px;
  color: #60a5fa;
}

/* ===========================
   卡片网格
   =========================== */
.hk-cards-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}
.hk-cards-4 {
  grid-template-columns: repeat(4,minmax(0,1fr));
}
.hk-card {
  background-color: #020617;
  border-radius: 14px;
  padding: 18px 18px 20px;
  box-shadow: 0 10px 30px rgba(15,23,42,.35);
  border: 1px solid #1f2937;
}
.hk-card h3 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 6px;
}
.hk-card p {
  font-size: 14px;
  color: #9ca3af;
}
.hk-card-meta {
  font-size: 12px;
  color: #6b7280;
}

/* ===========================
   博客列表
   =========================== */
.hk-blog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hk-blog-item {
  background-color: #020617;
  border-radius: 10px;
  padding: 16px 18px;
  border: 1px solid #1f2937;
  box-shadow: 0 8px 24px rgba(15,23,42,.35);
}
.hk-blog-item h2,
.hk-blog-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.hk-blog-meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
}
.hk-blog-desc {
  font-size: 14px;
  color: #9ca3af;
}
.hk-blog-more {
  text-align: center;
  margin-top: 20px;
}

/* ===========================
   文章页 / 页面
   =========================== */
.hk-single .hk-article,
.hk-page .hk-page-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 36px 16px 48px;
}
.hk-article-head h1,
.hk-page-head h1 {
  font-size: 26px;
  margin-bottom: 6px;
}
.hk-article-meta {
  font-size: 12px;
  color: #6b7280;
}
.hk-article-content,
.hk-page-content {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.8;
  color: #e5e7eb;
}
.hk-article-content img,
.hk-page-content img {
  max-width: 100%;
  height: auto;
}
.hk-article-tags a {
  font-size: 12px;
  margin-right: 6px;
}
.hk-article-footer {
  margin-top: 24px;
  font-size: 12px;
  color: #6b7280;
}

/* ===========================
   CTA 区
   =========================== */
.hk-cta {
  background-color: #0b1220;
  color: #e5e7eb;
}
.hk-cta-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 16px 36px;
  text-align: center;
}
.hk-cta-inner h2 {
  font-size: 24px;
  margin-bottom: 8px;
}
.hk-cta-inner p {
  color: #d1d5db;
  margin-bottom: 16px;
}

/* ===========================
   底部
   =========================== */
.hk-footer {
  background-color: #020617;
  color: #9ca3af;
  padding: 32px 0 18px;
  margin-top: 32px;
  border-top: 1px solid #111827;
}
.hk-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.hk-footer-cols {
  display: grid;
  grid-template-columns: 2fr 2fr 1.5fr;
  gap: 20px;
  margin-bottom: 18px;
}
.hk-footer-col h4 {
  color: #e5e7eb;
  margin-top: 0;
  margin-bottom: 8px;
}
.hk-footer-col p {
  font-size: 13px;
  color: #9ca3af;
}
.hk-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}
.hk-footer-col li {
  margin-bottom: 4px;
}
.hk-footer-bottom {
  border-top: 1px solid #111827;
  padding-top: 10px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hk-footer-links a {
  color: #9ca3af;
}
.hk-footer-links a:hover {
  color: #e5e7eb;
}

/* ===========================
   分页
   =========================== */
.hk-pager { margin-top: 18px; }

/* ===========================
   响应式
   =========================== */
@media (max-width: 900px) {
  .hk-hero-inner {
    grid-template-columns: minmax(0,1fr);
  }
  .hk-cards-grid,
  .hk-cards-4 {
    grid-template-columns: minmax(0,1fr);
  }
  .hk-footer-cols {
    grid-template-columns: minmax(0,1fr);
  }
  .hk-nav-menu {
    gap: 10px;
    flex-wrap: wrap;
  }
}
/* ===========================
   联系我们页面
   =========================== */
.hk-contact-grid {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: 24px;
}
.hk-contact-info p {
  font-size: 14px;
  color: #d1d5db;
}
.hk-contact-info ul {
  margin: 8px 0 0 20px;
  padding: 0;
  font-size: 14px;
}
.hk-contact-form h3 {
  margin-top: 0;
  margin-bottom: 12px;
}
.hk-contact-form form {
  background-color: #020617;
  border-radius: 12px;
  padding: 16px 18px;
  border: 1px solid #1f2937;
  box-shadow: 0 8px 24px rgba(15,23,42,.35);
}
.hk-form-row {
  margin-bottom: 12px;
}
.hk-form-row label {
  display: block;
  font-size: 13px;
  color: #e5e7eb;
  margin-bottom: 4px;
}
.hk-form-row input,
.hk-form-row textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #374151;
  background-color: #020617;
  color: #e5e7eb;
  font-size: 14px;
  box-sizing: border-box;
}
.hk-form-row input:focus,
.hk-form-row textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

/* ===========================
   FAQ 页面
   =========================== */
.hk-faq-list {
  border-top: 1px solid #111827;
}
.hk-faq-item {
  padding: 14px 0;
  border-bottom: 1px solid #111827;
}
.hk-faq-q {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.hk-faq-a {
  font-size: 14px;
  color: #9ca3af;
}

/* 联系页 & FAQ 响应式 */
@media (max-width: 900px) {
  .hk-contact-grid {
    grid-template-columns: minmax(0,1fr);
  }
}


/* ===== 流量学院双栏布局修正 ===== */

/* 先把老主题里给 .hk-main-col 写死的宽度 / 浮动干掉，只在双栏布局里重置 */
.hk-layout-two-col .hk-main-col {
  float: none;
  width: auto;
  margin: 0;
}

/* 双栏容器：左文右栏并排 */
.hk-layout-two-col {
  display: flex;
  align-items: flex-start;
  gap: 40px;           /* 左右间距，按需要调 */
}

/* 左侧内容区（文章列表） */
.hk-main-col-left {
  flex: 1 1 auto;
  min-width: 0;
}

/* 右侧侧栏（流量学院专用） */
.hk-main-col-right,
.hk-liuliang-sidebar {
  flex: 0 0 260px;     /* 侧栏宽度：260px，可改 280/300 */
  max-width: 260px;
}

/* 侧栏内部挂件宽度，不要撑出容器 */
.hk-liuliang-sidebar .function,
.hk-liuliang-sidebar dl,
.hk-liuliang-sidebar dd {
  max-width: 100%;
  box-sizing: border-box;
}

/* 移动端：改为单栏布局（可按需要删掉） */
@media (max-width: 992px) {
  .hk-layout-two-col {
    flex-direction: column;
  }

  .hk-main-col-right,
  .hk-liuliang-sidebar {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }
}






/* ===== 流量学院侧栏：function_c 列表美化 ===== */

/* 整个挂件容器 */
.hk-liuliang-sidebar .function_c {
  background: #050915;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* 标题 */
.hk-liuliang-sidebar .function_c h3 {
  font-size: 14px;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #e6f0ff;
  letter-spacing: 0.04em;
}

/* 列表基础样式 */
.hk-liuliang-sidebar .function_c ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 单条项目 */
.hk-liuliang-sidebar .function_c ul li {
  position: relative;
  padding: 6px 0 6px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #bac4d8;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

/* 最后一条不要底线 */
.hk-liuliang-sidebar .function_c ul li:last-child {
  border-bottom: none;
}

/* 小圆点 */
.hk-liuliang-sidebar .function_c ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #39f, #6cf);
}

/* 链接样式 */
.hk-liuliang-sidebar .function_c ul li a {
  display: inline-block;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease, transform 0.15s ease;
}

/* 悬停高亮 */
.hk-liuliang-sidebar .function_c ul li:hover {
  color: #ffffff;
}

.hk-liuliang-sidebar .function_c ul li:hover a {
  color: #4aa8ff;
  transform: translateX(2px);
}

