/* =========================================================
   i4-theme 追加样式
   - 原生轻量 Banner 轮播（替代 Swiper）
   - 移动端汉堡菜单
   - 全站响应式
   ========================================================= */

/* ---------- 原生 Banner 轮播 ---------- */
.i4-banner {
  position: relative;
  width: 100%;
  min-width: 1260px;
  height: 700px;
  overflow: hidden;
}
.i4-banner-track {
  position: absolute;
  inset: 0;
}
.i4-banner-slide {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out;
  z-index: 1;
}
.i4-banner-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.i4-banner-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 12;
}
/* 居中容器作为两个按钮的定位上下文（对应原站 .banner-content-wrap 内联 margin 定位） */
.i4-banner-content .banner-content-wrap {
  position: relative;
}
.i4-banner-down {
  position: absolute;
  width: 180px;
  z-index: 12;
}
/* 严格对齐原站内联 margin：按钮1 距容器左 6px / 下 468px */
.i4-banner-down[data-index="0"] {
  top: 468px;
  left: 6px;
}
/* 按钮2 距容器左 666px / 下 476px */
.i4-banner-down[data-index="1"] {
  top: 476px;
  left: 666px;
}
.i4-banner-down .down-btn {
  display: block;
  width: 180px;
  height: 52px;
  line-height: 53px;
  text-align: center;
  background: #ffffff;
  font-size: 16px;
  font-weight: bold;
  color: #236ee7;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.25s ease;
}
.i4-banner-down .down-btn-blue {
  color: #ffffff;
  background: #007aff;
}
.i4-banner-down .down-btn-blue:hover {
  background: #0070eb;
}
.i4-banner-down:hover .down-btn {
  background: rgba(255, 255, 255, 0.85);
}
.i4-banner-down:hover .down-btn-blue {
  background: #0070eb;
}

/* 注：Banner 下载按钮已改为直接链接（见 header.php），原 hover 弹窗样式已移除 */

/* 分页圆点 */
.i4-banner-dots {
  position: absolute;
  left: 0;
  bottom: 24px;
  width: 100%;
  text-align: center;
  z-index: 13;
  font-size: 0;
}
.i4-banner-dots .dot {
  display: inline-block;
  width: 80px;
  height: 8px;
  border-radius: 100px;
  background: #ffffff;
  opacity: 0.6;
  margin: 0 5px;
  cursor: pointer;
  transition: opacity 0.25s ease;
}
.i4-banner-dots .dot.is-active {
  opacity: 1;
}

/* ---------- 移动端汉堡菜单 ---------- */
.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  position: relative;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  margin: 4px 0;
  transition: all 0.3s ease;
}
.header-wrapper-fixed-bg .hamburger span,
.head-light-nav2 .hamburger span {
  background: #333;
}

/* ---------- 下载 Modal（原生，替代 jQuery 逻辑） ---------- */
.download-modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100vh;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease-in-out;
}
.download-modal.show {
  opacity: 1;
  visibility: visible;
}
.download-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.3);
}
.download-modal-content {
  position: relative;
  z-index: 2;
  margin-top: 30vh;
  width: 720px;
  max-width: 92vw;
}
.seit-dialog-box {
  position: relative;
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  width: 720px;
  max-width: 92vw;
  min-height: 440px;
  padding: 10px;
  border: 1px solid #fff;
  border-radius: 30px;
  background: rgba(245, 247, 249, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.seit-close {
  position: absolute;
  z-index: 100;
  top: 26px;
  right: 26px;
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.seit-close .close {
  width: 24px;
  height: 24px;
}
.seit-left {
  box-sizing: border-box;
  width: 150px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 21px;
  background: rgba(245, 247, 249, 0.8);
}
.seit-right {
  flex: 1;
  width: 0;
  min-height: 420px;
  position: relative;
}
.seit-ul .seit-li {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 10px;
  box-sizing: border-box;
}
.seit-ul .seit-li:hover {
  background: rgba(0, 0, 0, 0.05);
}
.seit-ul .seit-li.active {
  background: #fff;
}
.seit-ul .seit-li:last-child {
  margin-bottom: 0;
}
.seit-ul .seit-li .icon {
  width: 24px;
  height: 24px;
}
.seit-ul .seit-li .text {
  font-size: 12px;
  line-height: 16px;
  padding-left: 10px;
  color: #333;
  user-select: none;
}
.seit-ul .seit-li.active .text {
  font-weight: bold;
}
.seit-box-ul {
  position: relative;
}
.seit-box-ul .seit-box-li {
  position: absolute;
  inset: 0;
  display: none;
  padding: 20px;
  overflow: auto;
}
.seit-box-ul .seit-box-li.active {
  display: block;
}
.seit-flex {
  display: flex;
  align-items: center;
  flex-direction: column;
}
.seit-flex .title {
  padding-top: 40px;
}
.seit-flex .title .logo {
  width: 72px;
  height: 72px;
}
.seit-flex .version {
  font-size: 16px;
  font-weight: bold;
  line-height: 20px;
  padding-top: 12px;
  color: #333;
}
.seit-flex .date {
  font-size: 13px;
  line-height: 20px;
  padding-top: 4px;
  color: rgba(51, 51, 51, 0.4);
}
.btn-grounp1 {
  padding-top: 28px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.btn-grounp1 .site-new-oos-li {
  width: 100%;
  min-height: 76px;
  border-radius: 16px;
  background: rgba(245, 247, 249, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.8);
  margin-top: 10px;
  display: flex;
  align-items: center;
  padding: 0 22px 0 20px;
  position: relative;
}
.btn-grounp1 .site-new-oos-li:first-child {
  margin-top: 0;
}
.btn-grounp1 .site-new-oos-li .left {
  flex: 1;
}
.site-new-oos-li .left .label {
  font-size: 12px;
  font-weight: bold;
  line-height: 20px;
  color: #333;
}
.site-new-oos-li .left .th {
  display: none;
  height: 20px;
  border-radius: 2px;
  padding: 0 4px;
  background: rgba(14, 164, 0, 0.1);
  font-size: 11px;
  line-height: 20px;
  color: #0ea400;
  margin-left: 8px;
}
.site-new-oos-li .left .desic {
  font-size: 12px;
  line-height: 20px;
  color: rgba(51, 51, 51, 0.4);
  padding-top: 4px;
}
.site-new-oos-li .left .oos-time {
  padding-left: 10px;
}
.site-new-oos-btn {
  width: 80px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 12px;
  font-weight: bold;
  line-height: 32px;
  text-align: center;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-new-oos-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}
.site-new-oos-btn-blue {
  background: #007aff;
  color: #fff;
}
.site-new-oos-btn-blue:hover {
  background: #0070eb;
}
.seit-flex .qrcode {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  margin: 40px auto 0;
  border-radius: 10px;
  background: #fff;
}
.seit-flex .qrcode img {
  width: 170px;
  height: 170px;
}
.seit-flex .qrcode-text {
  font-size: 14px;
  line-height: 20px;
  padding-top: 22px;
  color: #333;
}
.seit-flex .qrcode-text1 {
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  padding-top: 12px;
  color: rgba(51, 51, 51, 0.3);
}
.seit-flex .ios-title {
  font-size: 16px;
  line-height: 20px;
  width: 100%;
  padding: 60px 0 0 50px;
  color: #333;
}
.seit-flex .ios-ul {
  width: 100%;
  margin-top: 16px;
  padding-left: 50px;
}
.seit-flex .ios-li {
  font-size: 13px;
  line-height: 22px;
  display: flex;
  max-width: 360px;
  margin-top: 10px;
  color: #333;
}
.seit-flex .ios-li .label {
  flex: none;
  width: 30px;
}
.seit-flex .footer-i4-mac {
  padding-top: 16px;
  text-align: center;
}
.seit-flex .gray-text,
.seit-flex .red-text {
  font-size: 12px;
  line-height: 24px;
  color: #666;
}
.seit-flex .red-text a {
  color: #ff5050;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1280px) {
  .common-wrapper {
    width: 100%;
    padding: 0 20px;
  }
  .i4-banner,
  .main-container {
    min-width: 0;
  }
  .main-container {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .i4-banner {
    height: 460px;
  }
  .i4-banner-down[data-index="0"] {
    top: 290px;
    left: 6px;
  }
  .i4-banner-down[data-index="1"] {
    top: 350px;
    left: 6px;
  }
  .pro-list-wrapper {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }
  .pro-list-wrapper dl,
  .pro-list-wrapper dl:nth-child(1) {
    width: 100%;
    max-width: 360px;
    height: auto;
    min-height: 340px;
    padding-bottom: 30px;
  }
  .header-pros-panel {
    display: none;
  }
  .news-container .news-list li {
    height: auto;
    flex-direction: column;
  }
  .news-container .news-list li .news-img {
    width: 100%;
    height: 200px;
  }
  .news-container .news-list li .news-content {
    padding: 20px;
  }
  .news-container .news-list li .news-content .info {
    padding-top: 16px;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .head-search-wrapper {
    display: none;
  }
  /* 移动端导航收起为汉堡菜单 */
  .head-nav {
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #fff;
    padding: 10px 0 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .head-nav.is-open {
    max-height: 420px;
  }
  .head-nav li {
    width: 100%;
  }
  .head-nav li a {
    color: rgba(0, 0, 0, 0.85) !important;
    width: 100%;
    padding: 0 20px !important;
  }
  .head-nav li .divider {
    display: none;
  }
  .header-pros-panel {
    display: none !important;
  }
  .footer-wrapper {
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
  }
  .footer-lf {
    text-align: center;
  }
  .footer-lf-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-lf-copyright {
    flex-direction: column;
    align-items: center;
    padding-top: 24px;
  }
  .footer-lf-copyright .copyright-text {
    padding-left: 0;
    text-align: center;
  }
  .footer-rt {
    margin-top: 24px;
  }
  .seit-dialog-box {
    flex-direction: column;
    width: 92vw;
    min-height: 0;
  }
  .seit-left {
    width: 100%;
    display: flex;
    overflow-x: auto;
  }
  .seit-ul .seit-li {
    flex: none;
    margin-bottom: 0;
    margin-right: 8px;
  }
  .seit-right {
    width: 100%;
    min-height: 360px;
  }
  .i4-banner-dots .dot {
    width: 40px;
  }
}

/* =========================================================
   列表页（archive / category）
   ========================================================= */
.i4-archive {
  padding-top: 96px; /* 固定导航 76px + 间距 */
  padding-bottom: 48px;
  background: #f5f6f8;
  min-height: 60vh;
}

/* 面包屑 */
.archive-crumb {
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 20px;
  color: #999999;
  padding: 6px 0 18px;
}
.archive-crumb a {
  color: #999999;
  transition: color 0.2s ease;
}
.archive-crumb a:hover {
  color: #236ee7;
}
.archive-crumb .sep {
  margin: 0 8px;
  color: #cccccc;
}
.archive-crumb .cur {
  color: #333333;
}

/* 区块标题描述 */
.common-title .cat-desc {
  margin-left: 14px;
  font-size: 13px;
  font-weight: normal;
  color: #999999;
  align-self: flex-end;
}

/* 列表页标题下边距 */
.i4-archive .common-title {
  margin-bottom: 18px;
}

/* 列表项复用 .news-list 样式；列表页内给卡片描边区分底色 */
.i4-archive .news-list li {
  border: 1px solid #eef1f5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(20, 40, 80, 0.04);
  transition: box-shadow 0.25s, transform 0.25s;
}
.i4-archive .news-list li:hover {
  box-shadow: 0 8px 22px rgba(35, 110, 231, 0.10);
  transform: translateY(-2px);
  background: #ffffff;
}
.i4-archive .news-list li .news-content {
  padding: 30px 44px 0 40px;
}
.i4-archive .news-list li .news-content .title,
.i4-archive .news-list li .news-content .title a {
  font-size: 18px;
  line-height: 30px;
  font-weight: 600;
  color: #2a2a2a;
  transition: color 0.2s;
}
.i4-archive .news-list li .news-content .title a:hover {
  color: #236ee7;
}
.i4-archive .news-list li .news-content .intro {
  margin-top: 6px;
  font-size: 14px;
  line-height: 24px;
  color: #999999;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}
.i4-archive .news-list li .news-content .info {
  justify-content: flex-start;
  padding-top: 30px;
}
.i4-archive .news-list li .news-content .info-item {
  padding-left: 0;
  padding-right: 28px;
}

/* 分页 */
.i4-pagination {
  display: flex;
  justify-content: center;
  padding-top: 36px;
}
.i4-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.i4-pagination .page-numbers {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #666666;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.i4-pagination .page-numbers:hover {
  color: #236ee7;
  border-color: #236ee7;
}
.i4-pagination .page-numbers.current {
  color: #ffffff;
  background: #236ee7;
  border-color: #236ee7;
  cursor: default;
}
.i4-pagination .page-numbers.dots {
  border: none;
  background: transparent;
}

/* 空状态 */
.archive-empty {
  padding: 80px 0;
  text-align: center;
  color: #999999;
  font-size: 15px;
}

/* 移动端：列表项改为上下堆叠 */
@media (max-width: 768px) {
  .i4-archive .news-list li {
    height: auto !important;
    flex-direction: column;
  }
  .i4-archive .news-list li .news-img {
    width: 100%;
    height: 200px;
  }
  .i4-archive .news-list li .news-content {
    padding: 18px 20px 22px;
  }
  .i4-archive .news-list li .news-content .info {
    padding-top: 20px;
    justify-content: flex-start;
  }
  .i4-archive .news-list li .news-content .info-item {
    padding-left: 0;
    padding-right: 24px;
  }
}

/* =========================================================
   404 页面
   ========================================================= */
.i4-404 {
  padding-top: 96px; /* 固定导航 76px + 间距 */
  padding-bottom: 80px;
  background: #f5f6f8;
  min-height: 62vh;
  display: flex;
  align-items: center;
}
.i4-404 .common-wrapper {
  display: flex;
  justify-content: center;
}
.i4-404-inner {
  text-align: center;
  max-width: 520px;
}
.i4-404-code {
  margin: 0;
  font-size: 120px;
  line-height: 1;
  font-weight: 800;
  color: #236ee7;
  letter-spacing: 4px;
  opacity: 0.9;
}
.i4-404-title {
  margin: 8px 0 0;
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
}
.i4-404-desc {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: #999999;
}
.i4-404-search {
  display: flex;
  margin: 28px auto 0;
  max-width: 420px;
}
.i4-404-input {
  flex: 1;
  width: 0;
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
  color: #333333;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-right: none;
  border-radius: 8px 0 0 8px;
  outline: none;
  transition: border-color 0.2s ease;
}
.i4-404-input:focus {
  border-color: #236ee7;
}
.i4-404-btn {
  flex: none;
  width: 76px;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: #236ee7;
  border: 1px solid #236ee7;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: background 0.2s ease;
}
.i4-404-btn:hover {
  background: #1d5fc9;
}
.i4-404-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}
.i4-404-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 42px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: #236ee7;
  border: 1px solid #236ee7;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}
.i4-404-link:hover {
  background: #1d5fc9;
  color: #ffffff;
}
.i4-404-link-ghost {
  color: #236ee7;
  background: #ffffff;
}
.i4-404-link-ghost:hover {
  background: #f0f5ff;
  color: #1d5fc9;
}
@media (max-width: 768px) {
  .i4-404 {
    padding-top: 88px;
  }
  .i4-404-code {
    font-size: 92px;
  }
  .i4-404-title {
    font-size: 22px;
  }
  .i4-404-actions {
    flex-direction: column;
    align-items: center;
  }
  .i4-404-link {
    width: 100%;
    max-width: 280px;
  }
}

/* =========================================================
   详情页（single）
   ========================================================= */
.i4-single {
  padding-top: 96px; /* 固定导航 76px + 间距，与列表页一致 */
}

/* 文章卡片 */
.single-card {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 10px;
  padding: 40px 44px 36px;
  box-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.04);
}

/* 标题区 */
.single-head {
  padding-bottom: 22px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 28px;
}
.single-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 700;
  color: #1a1a1a;
  word-break: break-word;
}
.single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 16px;
  font-size: 13px;
  color: #999999;
}
.single-meta .meta-item {
  display: inline-flex;
  align-items: center;
}
.single-meta .meta-item img {
  width: 15px;
  height: 15px;
  margin-right: 6px;
  opacity: 0.7;
}

/* 详情页特色图：限高居中 + 保留原比例，避免竖图/方图撑满整屏 */
.single-thumb {
  margin: 26px 0 30px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 限高 + 限宽，图片始终完整呈现且不溢出视口 */
  max-height: 460px;
}
.single-thumb img {
  display: block;
  max-width: 100%;
  max-height: 460px;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  transition: transform 0.35s ease;
}
.single-thumb img:hover {
  transform: scale(1.015);
}

/* 正文排版：居中舒适阅读宽度（约 860px），避免整行过宽疲劳 */
.single-content {
  font-size: 16px;
  line-height: 1.9;
  color: #444444;
  word-break: break-word;
  max-width: 860px;
  margin: 0 auto;
}
.single-content p {
  margin: 0 0 20px;
}
.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 8px 0;
}
.single-content a {
  color: #236ee7;
  text-decoration: none;
  border-bottom: 1px solid rgba(35, 110, 231, 0.3);
  transition: border-color 0.2s ease;
}
.single-content a:hover {
  border-bottom-color: #236ee7;
}
.single-content h2,
.single-content h3,
.single-content h4 {
  color: #1a1a1a;
  line-height: 1.5;
  margin: 28px 0 14px;
}
.single-content h2 { font-size: 22px; }
.single-content h3 { font-size: 19px; }
.single-content h4 { font-size: 17px; }
.single-content ul,
.single-content ol {
  padding-left: 22px;
  margin: 0 0 20px;
}
.single-content li {
  margin-bottom: 8px;
}
.single-content blockquote {
  margin: 0 0 20px;
  padding: 12px 18px;
  background: #f5f6f8;
  border-left: 4px solid #236ee7;
  border-radius: 0 6px 6px 0;
  color: #666666;
}
.single-content code {
  background: #f5f6f8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  color: #c7254e;
}

/* 上一篇 / 下一篇 */
.single-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}
.single-nav-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.single-nav-item.next {
  text-align: right;
  align-items: flex-end;
}
.single-nav .nav-label {
  font-size: 12px;
  color: #bbbbbb;
}
.single-nav .nav-link {
  font-size: 15px;
  color: #333333;
  line-height: 1.5;
  transition: color 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.single-nav .nav-link:hover {
  color: #236ee7;
}
.single-nav .nav-link.disabled {
  color: #cccccc;
  cursor: default;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .i4-single {
    padding-top: 88px;
  }
  .single-card {
    padding: 24px 18px 26px;
    border-radius: 8px;
  }
  .single-title {
    font-size: 22px;
  }
  .single-meta {
    gap: 14px;
  }
  .single-content {
    font-size: 15px;
    line-height: 1.8;
  }
  .single-nav {
    flex-direction: column;
    gap: 16px;
  }
  .single-nav-item.next {
    text-align: left;
    align-items: flex-start;
  }
}

/* =========================================================
   栏目页：热门推荐 + 主列表 + 侧栏双栏（增强上下文内链）
   ========================================================= */

/* 热门推荐（2×2 卡片网格，强上下文内链，已排除本页已列文章） */
.archive-hot {
  margin-top: 20px;
  background: #ffffff;
  border: 1px solid #eef1f5;
  border-radius: 14px;
  padding: 18px 22px 22px;
  box-shadow: 0 2px 10px rgba(20, 40, 80, 0.04);
}
.archive-hot-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.archive-hot-bar {
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: #236ee7;
}
.archive-hot-label {
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
  color: #222222;
}
.archive-hot-tip {
  font-size: 12px;
  color: #aaaaaa;
  padding-left: 4px;
}
.archive-hot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}
.archive-hot-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.archive-hot-card:hover {
  background: #f6f9ff;
}
.archive-hot-thumb {
  flex: none;
  width: 96px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f3f7;
}
.archive-hot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.archive-hot-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.archive-hot-tt {
  font-size: 15px;
  line-height: 22px;
  color: #333333;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.archive-hot-card:hover .archive-hot-tt {
  color: #236ee7;
}
.archive-hot-meta {
  font-size: 12px;
  color: #aaaaaa;
}
.archive-hot-meta i {
  font-style: normal;
  margin: 0 4px;
  color: #dddddd;
}

/* 双栏布局 */
.archive-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-top: 28px;
}
.archive-main {
  flex: 1;
  min-width: 0;
}
.archive-side {
  width: 320px;
  flex: none;
}

/* 侧栏卡片 */
.side-block {
  background: #ffffff;
  border: 1px solid #eef1f5;
  border-radius: 14px;
  padding: 18px 20px 20px;
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(20, 40, 80, 0.04);
}
.side-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.side-bar {
  width: 4px;
  height: 15px;
  border-radius: 2px;
  background: #236ee7;
}
.side-title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: #222222;
}

/* 侧栏最新发布 */
.side-new-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.side-new-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px solid #f4f6f9;
}
.side-new-list li:last-child {
  border-bottom: none;
}
.side-new-list a {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 22px;
  color: #555555;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}
.side-new-list a:hover {
  color: #236ee7;
}
.side-new-date {
  flex: none;
  font-size: 12px;
  color: #b5b5b5;
}

/* 侧栏分类内链云 */
.side-cat-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.side-cat-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  color: #236ee7;
  background: #f1f6ff;
  border: 1px solid #e1ecff;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.side-cat-tag:hover {
  background: #236ee7;
  color: #ffffff;
}

/* 主列表：栏目标签 */
.news-cat {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  font-size: 12px;
  line-height: 18px;
  color: #236ee7;
  background: #f1f6ff;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.news-cat:hover {
  background: #236ee7;
  color: #ffffff;
}

/* =========================================================
   文章详情页：分类/标签内链条 + 相关文章内链区块
   ========================================================= */
.single-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.single-chip {
  display: inline-block;
  padding: 5px 14px;
  font-size: 13px;
  color: #236ee7;
  background: #f1f6ff;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.single-chip:hover {
  background: #236ee7;
  color: #ffffff;
}
.single-chip-tag {
  color: #e08600;
  background: #fff6e8;
}
.single-chip-tag:hover {
  background: #e08600;
  color: #ffffff;
}

.single-related {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #f0f0f0;
}
.single-related .common-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.single-related .common-title h2 {
  margin: 0;
}
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related-item {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.related-item:hover {
  box-shadow: 0 6px 18px rgba(35, 110, 231, 0.08);
  transform: translateY(-2px);
}
.related-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.related-thumb {
  display: block;
  width: 100%;
  height: 130px;
  overflow: hidden;
}
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.related-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
}
.related-tt {
  font-size: 14px;
  line-height: 20px;
  color: #333333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-meta {
  font-size: 12px;
  color: #999999;
}
.related-meta i {
  font-style: normal;
  margin: 0 4px;
  color: #cccccc;
}
.related-more {
  font-size: 14px;
  color: #236ee7;
  text-decoration: none;
  white-space: nowrap;
}
.related-more:hover {
  text-decoration: underline;
}

/* 响应式：窄屏取消双栏、相关文章降列 */
@media (max-width: 992px) {
  .archive-layout {
    flex-direction: column;
  }
  .archive-side {
    width: 100%;
  }
  .related-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .archive-hot-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .related-list {
    grid-template-columns: 1fr;
  }
}
