﻿/*
Theme Name: 智推SEO
Theme URI: https://zhitui-seo.com
Author: 智推团队
Author URI: https://zhitui-seo.com
Description: 智推SEO博客主题，支持自定义首页、文章列表及文章详情页。
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zhitui-seo
Tags: custom-header, custom-logo, custom-menu, full-width-template, sticky-post, threaded-comments, translation-ready, blog, news
*/

/* ========== 公共基础样式 ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Source Han Sans CN", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  color: #0d1f2e;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: #0EA5E9;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========== 博客导航栏（文章页复用首页header风格） ========== */
.site-top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0A1628;
  border-bottom: 1px solid #122040;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.site-top-nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-top-nav .logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #0d1f2e;
  text-decoration: none;
}

.site-top-nav .logo-link img,
.site-top-nav .logo-link .custom-logo,
.site-top-nav .logo-link .custom-logo-link img {
  height: 32px !important;
  width: auto !important;
  max-height: 32px !important;
  display: block;
}

.site-top-nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-top-nav nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color .2s;
}

.site-top-nav nav a:hover,
.site-top-nav nav a.current {
  color: #0EA5E9;
}

.site-top-nav .cta-link {
  background: #0EA5E9;
  color: #fff !important;
  border-radius: 4px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s;
}

.site-top-nav .cta-link:hover {
  background: #0284C7;
  text-decoration: none;
}

/* ========== front-page banner: override CDN-dependent rules ========== */
/* tab card 截图（img 替换 video） */
.seo-tab-card-content-left .seo-tab-card-video {
  display: block;
  height: auto;
  object-fit: contain;
}

/* ===== big-video 图片轮播 ===== */
.big-slide-wrap {
  position: relative;
  overflow: hidden;
}
.big-slide-img {
  display: none;
  width: 100%;
  height: auto;
  border-radius: inherit;
  animation: slideIn 0.5s ease;
}
.big-slide-img.active {
  display: block;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.big-slide-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.big-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.big-slide-dot.active {
  background: #fff;
  transform: scale(1.25);
}

/* list card 截图（img 替换 video） */
.seo-list-card-content-left .seo-list-card-content-video {
  display: none;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0.1rem;
}
.seo-list-card-content-left .seo-list-card-content-video.active {
  display: block;
}

/* list card 副标题 */
.seo-list-card-subtitle {
  text-align: center;
  color: rgba(22, 23, 26, 0.55);
  font-size: 0.138rem;
  margin: 0.06rem auto 0.22rem;
}

/* banner 右侧图片自适应高度 */
.seo-banner-right .seo-banner-video {
  height: auto;
}

/* banner 背景图已改用本地图片，gradient 仅作加载前占位 */
.seo-banner {
  background: #071020 !important;
}
/* 保留半透明暗层，确保白色标题在背景图上可读 */
.seo-banner-bg-wrapper::after {
  background-color: rgba(0, 0, 0, 0.45) !important;
  display: block !important;
}

/* ========== 面包屑 ========== */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 13px;
  color: #999;
}

.breadcrumb a {
  color: #999;
}

.breadcrumb a:hover {
  color: #0EA5E9;
}

.breadcrumb span,
.crumb-arrow {
  margin: 0 6px;
  color: #ccc;
}

/* ========== 文章列表页布局（主栏+侧栏） ========== */
.content-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 960px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
  .content-side {
    display: block;
  }
}

/* 主列表 */
.article-list {
  list-style: none; display: grid; grid-template-columns: repeat(2,1fr); gap: 24px;
  margin: 0;
  padding: 0;
}

.article-item {
  display: block;
  
  padding: 0; border-bottom: none; border: 1px solid #e4e9e8; border-radius: 8px; overflow: hidden;
  border-bottom: 1px solid #f0f0f0;
  align-items: flex-start;
}

.article-item:first-child {
  border-top: none;
}

.article-cover {
  display: block; width: 100%; height: 180px;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #dce8ff, #f0f6ff);
  display: block;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.article-item:hover .article-cover img {
  transform: scale(1.06);
}

.article-cover--blank {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #c0cfe8;
}

.article-body {
  flex: 1; padding: 16px;
  min-width: 0;
}

.article-heading {
  font-size: 18px;
  font-weight: 700;
  color: #0d1f2e;
  margin: 6px 0 10px;
  line-height: 1.5;
}

.article-heading a {
  color: inherit;
  text-decoration: none;
}

.article-heading a:hover {
  color: #0EA5E9;
}

.article-lead {
  font-size: 14px;
  color: #666;
  line-height: 1.75;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-foot {
  font-size: 13px;
  color: #bbb;
}

@media (max-width: 560px) {
  .article-cover {
    width: 110px;
    height: 70px;
  }
  .article-heading {
    font-size: 15px;
  }
}

/* 右侧边栏 */
.content-side {
  position: sticky;
  top: 80px;
}

.side-block {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
}

.block-title {
  font-size: 15px;
  font-weight: 700;
  color: #0d1f2e;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
  border-left: 3px solid #0EA5E9;
  padding-left: 10px;
}

/* 搜索框 */
.site-search {
  display: flex;
  gap: 8px;
}

.search-field {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}

.search-field:focus {
  border-color: #0EA5E9;
}

.search-go {
  background: #0EA5E9;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}

.search-go:hover {
  background: #0284C7;
}

/* 热门文章 */
.hot-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hot-item {
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}

.hot-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hot-link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-decoration: none;
}

.hot-link:hover .hot-title {
  color: #0EA5E9;
}

.hot-cover {
  flex-shrink: 0;
  width: 72px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, #dce8ff, #f0f6ff);
  position: relative;
}

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

.rank-no {
  position: absolute;
  top: 0;
  left: 0;
  background: #999;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 6px 0;
}

.rank-no.rank-1 { background: #ff4d4f; }
.rank-no.rank-2 { background: #fa8c16; }
.rank-no.rank-3 { background: #faad14; }

.hot-info {
  flex: 1;
  min-width: 0;
}

.hot-title {
  font-size: 13px;
  color: #0d1f2e;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
  margin-bottom: 4px;
}

.hot-count {
  font-size: 12px;
  color: #bbb;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* 分类列表 */
.cats-ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cats-ul li {
  border-bottom: 1px solid #f5f5f5;
}

.cats-ul li:last-child {
  border-bottom: none;
}

.cats-ul a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  color: #444;
  text-decoration: none;
  transition: color .2s;
}

.cats-ul a:hover {
  color: #0EA5E9;
}

.cats-count {
  background: #f0f4ff;
  color: #0EA5E9;
  font-size: 11px;
  border-radius: 4px;
  padding: 1px 8px;
  font-weight: 600;
}

/* ========== 文章列表页 ========== */
.banner-top {
  background: linear-gradient(135deg, #0A1628 0%, #0d2045 60%, #0EA5E9 100%);
  color: #fff;
  padding: 72px 24px 56px;
  text-align: center;
}

.banner-top h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.banner-top p {
  font-size: 16px;
  opacity: .8;
  margin: 0;
  max-width: 560px;
  margin: 0 auto;
}

.posts-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(50,126,252,.12);
  border-color: #d0e3ff;
}

.post-card-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #dce8ff, #f0f6ff);
  overflow: hidden;
  position: relative;
}

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

.post-card-thumb .no-thumb-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: .25;
}

.post-card-body {
  padding: 20px 20px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.label-cat {
  display: inline-block;
  background: #e8f1ff;
  color: #0EA5E9;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.post-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0d1f2e;
  line-height: 1.5;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-excerpt {
  font-size: 13px;
  color: #777;
  line-height: 1.7;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.post-card-meta {
  font-size: 12px;
  color: #bbb;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.post-card-meta svg {
  flex-shrink: 0;
}

.post-card-read {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #0EA5E9;
  font-weight: 600;
  transition: gap .2s;
}

.post-card:hover .post-card-read {
  gap: 8px;
}

/* 无文章提示 */
.no-results {
  text-align: center;
  padding: 80px 24px;
  color: #999;
}

.no-results h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

/* 分页 */
.page-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 48px 0 0;
  flex-wrap: wrap;
}

.page-nav .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  font-size: 14px;
  color: #444;
  transition: all .2s;
}

.page-nav .page-numbers:hover,
.page-nav .page-numbers.current {
  background: #0EA5E9;
  border-color: #0EA5E9;
  color: #fff;
  text-decoration: none;
}

/* ========== 文章详情页 ========== */
.post-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-side {
    display: none;
  }
}

.post-article header {
  margin-bottom: 32px;
}

.post-article .cat-badge-link {
  display: inline-block;
  background: #e8f1ff;
  color: #0EA5E9;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 16px;
}

.post-article h1 {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
  color: #0d1f2e;
  line-height: 1.35;
  margin: 0 0 20px;
  letter-spacing: -0.3px;
}

.meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: #999;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 32px;
}

.meta-bar svg {
  flex-shrink: 0;
}

.hero-img {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 40px;
  aspect-ratio: 16/8;
  background: linear-gradient(135deg, #dce8ff, #f0f6ff);
}

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

/* 文章正文排版 */
.post-body {
  font-size: 16px;
  line-height: 1.85;
  color: #0d1e1d;
}

.post-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0d1f2e;
  margin: 44px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0f2f0;
}

.post-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0d1f2e;
  margin: 36px 0 12px;
}

.post-body h4 {
  font-size: 17px;
  font-weight: 600;
  color: #0d1e1d;
  margin: 28px 0 10px;
}

.post-body p {
  margin: 0 0 20px;
}

.post-body ul,
.post-body ol {
  margin: 0 0 20px;
  padding-left: 1.6em;
}

.post-body li {
  margin-bottom: 8px;
}

.post-body blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  background: #f5f9ff;
  border-left: 3px solid #0EA5E9;
  border-radius: 0 12px 12px 0;
  color: #555;
  font-style: italic;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 20px 0;
}

.post-body a {
  color: #0EA5E9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-body code {
  background: #f4f6f9;
  border: 1px solid #e8eaf0;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: .9em;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.post-body pre {
  background: #1e2330;
  color: #e2e8f0;
  border-radius: 4px;
  padding: 24px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin: 28px 0;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
}

.post-body th,
.post-body td {
  padding: 12px 16px;
  border: 1px solid #e8eaf0;
  text-align: left;
}

.post-body th {
  background: #f5f9ff;
  font-weight: 600;
  color: #0d1f2e;
}

/* 文章标签 */
.post-tags {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tags-label {
  font-size: 13px;
  color: #999;
  margin-right: 4px;
}

.tag-item {
  background: #f4f6f9;
  color: #555;
  font-size: 12px;
  border-radius: 6px;
  padding: 4px 12px;
  transition: all .2s;
}

.tag-item:hover {
  background: #e8f1ff;
  color: #0EA5E9;
  text-decoration: none;
}

/* 上下篇导航 */
.art-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #f0f0f0;
}

.art-nav-btn {
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 6px;
  transition: all .25s;
}

.art-nav-btn:hover {
  border-color: #0EA5E9;
  background: #f5f9ff;
  text-decoration: none;
}

.nav-hint {
  font-size: 11px;
  color: #bbb;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 8px;
}

.nav-post-name {
  font-size: 14px;
  font-weight: 600;
  color: #0d1f2e;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.art-nav-btn.next {
  text-align: right;
}

/* 侧边栏 */
.post-side {
  position: sticky;
  top: 80px;
}

.side-panel {
  background: #f8faff;
  border: 1px solid #e8f0fe;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
}

.panel-header {
  font-size: 15px;
  font-weight: 700;
  color: #0d1f2e;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8f0fe;
}

.panel-post {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f4fe;
}

.panel-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.panel-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: linear-gradient(135deg, #dce8ff, #c8d8f8);
  flex-shrink: 0;
  overflow: hidden;
}

.panel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-info .panel-post-name {
  font-size: 13px;
  color: #0d1f2e;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}

.panel-post:hover .panel-post-name {
  color: #0EA5E9;
}

.panel-info .panel-post-date {
  font-size: 11px;
  color: #bbb;
  margin-top: 4px;
}

/* TOC 目录 */
.toc-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-nav li {
  padding: 6px 0;
  border-bottom: 1px dashed #e8f0fe;
}

.toc-nav li:last-child {
  border-bottom: none;
}

.toc-nav a {
  font-size: 13px;
  color: #555;
  transition: color .2s;
}

.toc-nav a:hover {
  color: #0EA5E9;
  text-decoration: none;
}

/* ========== 博客页底部 ========== */
/* ========== 首页文章列表区块 ========== */
.latest-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.latest-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.more-link {
  font-size: 14px;
  color: #0EA5E9;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.more-link:hover {
  text-decoration: underline;
}

.latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.latest-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: flex-start;
  transition: background .2s;
}

.latest-item:first-child {
  border-top: 1px solid #f0f0f0;
}

.latest-cover {
  flex-shrink: 0;
  width: 140px;
  height: 88px;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, #dce8ff, #f0f6ff);
  display: block;
}

.latest-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.latest-item:hover .latest-cover img {
  transform: scale(1.04);
}

.latest-info {
  flex: 1;
  min-width: 0;
}

.latest-top {
  margin-bottom: 6px;
}

.latest-title {
  font-size: 16px;
  font-weight: 700;
  color: #0d1f2e;
  margin: 0 0 8px;
  line-height: 1.5;
}

.latest-title a {
  color: inherit;
  text-decoration: none;
}

.latest-title a:hover {
  color: #0EA5E9;
}

.latest-desc {
  font-size: 13px;
  color: #777;
  line-height: 1.7;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #bbb;
  flex-wrap: wrap;
}

.latest-meta svg {
  flex-shrink: 0;
  vertical-align: middle;
}

.read-more {
  margin-left: auto;
  font-size: 13px;
  color: #0EA5E9;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.read-more:hover {
  text-decoration: underline;
}

.load-more-btn {
  display: inline-block;
  border: 2px solid #0EA5E9;
  color: #0EA5E9;
  border-radius: 4px;
  padding: 10px 40px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}

.load-more-btn:hover {
  background: #0EA5E9;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 560px) {
  .latest-cover {
    width: 90px;
    height: 60px;
  }
  .latest-title {
    font-size: 14px;
  }
}

/* ========== 博客页底部 ========== */
.site-bottom {
  background: #060e1f;
  color: rgba(255,255,255,.6);
  padding: 40px 24px;
  text-align: center;
  font-size: 13px;
}

.site-bottom a {
  color: rgba(255,255,255,.7);
  margin: 0 8px;
}

.site-bottom a:hover {
  color: #fff;
}

.site-bottom .bottom-links {
  margin-bottom: 12px;
}

/* ============================================================
   Single post — random article recommendations
   ============================================================ */
.suggestions {
  margin: 40px 0 32px;
  padding: 28px 32px;
  background: #f7f8fc;
  border-radius: 6px;
}
.suggestions-title {
  font-size: 17px;
  font-weight: 700;
  color: #0d1f2e;
  margin: 0 0 20px;
  padding-left: 12px;
  border-left: 3px solid #0EA5E9;
}
.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.suggestions-item {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 4px;
  padding: 12px;
  transition: box-shadow .2s, transform .2s;
  border: 1px solid #eef0f6;
}
.suggestions-item:hover {
  box-shadow: 0 6px 20px rgba(50,126,252,.12);
  transform: translateY(-2px);
}
.suggestion-img {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 7px;
  overflow: hidden;
  background: #e8eaf0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.suggestion-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-placeholder {
  font-size: 22px;
}
.suggestion-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.suggestion-name {
  font-size: 13px;
  font-weight: 600;
  color: #0d1f2e;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.suggestion-date {
  font-size: 11px;
  color: #aaa;
}
@media (max-width: 680px) {
  .suggestions {
    padding: 20px 16px;
  }
  .suggestions-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   QR code modal — global
   ============================================================ */
.qr-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, .65);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.qr-box {
  background: #fff;
  border-radius: 8px;
  padding: 36px 32px 28px;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  max-width: 320px;
  width: 90%;
  animation: qr-in .2s ease;
}
@keyframes qr-in {
  from { opacity: 0; transform: scale(.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1)  translateY(0);    }
}
.qr-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: none;
  font-size: 18px;
  line-height: 1;
  color: #aaa;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 50%;
  transition: background .15s, color .15s;
}
.qr-close:hover {
  background: #f0f0f0;
  color: #555;
}
.qr-img {
  width: 220px;
  height: 220px;
  display: block;
  margin: 0 auto 16px;
  border-radius: 8px;
}
.qr-hint {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* ===== 文章列表页分类导航 ===== */
.filter-bar {
  background: #fff;
  border-bottom: 1px solid #eef0f4;
}
.filter-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
}
.filter-inner::-webkit-scrollbar {
  display: none;
}
.filter-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-item:hover {
  color: #0EA5E9;
}
.filter-item.current {
  color: #0EA5E9;
  border-bottom-color: #0EA5E9;
  font-weight: 600;
}
.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  border-radius: 9px;
  background: #f0f4ff;
  color: #0EA5E9;
  font-weight: 500;
}
.filter-item.current .filter-count {
  background: #0EA5E9;
  color: #fff;
}
@media (max-width: 640px) {
  .filter-inner {
    padding: 0 12px;
    gap: 0;
  }
  .filter-item {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* ===== 全局平滑滚动 ===== */
html {
  scroll-behavior: smooth;
}

/* ===== 首页汉堡按钮 ===== */
.fp-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 5px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 8px;
}
.fp-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.fp-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fp-hamburger.open span:nth-child(2) { opacity: 0; }
.fp-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* 滚动后 header 变暗，汉堡色变深 */
.zt-header--dark .fp-hamburger span {
  background: #0d1f2e;
}

/* ===== 首页移动端抽屉导航 ===== */
.fp-mobile-drawer {
  display: none;
  position: fixed;
  top: 0.41667rem; /* 和 header 高度一致 */
  left: 0;
  width: 100%;
  z-index: 99;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  flex-direction: column;
  padding: 8px 0 16px;
}
.fp-mobile-drawer.open {
  display: flex;
}
.fp-drawer-item {
  display: block;
  padding: 13px 24px;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  transition: background .15s;
}
.fp-drawer-item:hover {
  background: #f8faff;
  text-decoration: none;
}
.fp-drawer-item:last-child {
  border-bottom: none;
}
.fp-drawer-cta {
  margin: 10px 24px 0;
  background: #0EA5E9;
  color: #fff !important;
  border-radius: 4px;
  text-align: center;
  padding: 12px 24px;
  font-weight: 600;
  border-bottom: none !important;
}
.fp-drawer-cta:hover {
  background: #0284C7;
}

/* ===== 首页顶部导航 ===== */
.fp-main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.fp-nav-item {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  height: 36px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.fp-nav-item:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.fp-nav-cta {
  background: rgb(14,165,233) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 0 18px !important;
  font-weight: 600;
}
.fp-nav-cta:hover {
  background: rgb(7,142,211) !important;
}
/* 下滑后 header 变白底，导航文字改为深色 */
.zt-header--dark .fp-nav-item {
  color: #0d1f2e;
}
.zt-header--dark .fp-nav-item:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #0d1f2e;
}
.zt-header--dark .fp-nav-cta {
  color: #fff !important;
}
@media (max-width: 900px) {
  .fp-main-nav {
    gap: 2px;
  }
  .fp-nav-item {
    padding: 0 8px;
    font-size: 13px;
  }
}
@media (max-width: 680px) {
  /* 隐藏桌面端导航，显示汉堡按钮 */
  .fp-main-nav .fp-nav-item:not(.fp-nav-cta) {
    display: none;
  }
  .fp-main-nav .fp-nav-cta {
    display: none !important; /* CTA 在抽屉里已有，header 只保留汉堡 */
  }
  .fp-hamburger {
    display: flex;
  }
}

/* ========================================================
   首页 landing 区块移动端适配（≤760px）
   ======================================================== */
@media (max-width: 760px) {

  /* ---- 顶部 header ---- */
  .zt-header .zt-header-inner {
    padding: 0 0.15rem;
  }

  /* ---- banner ---- */
  .seo-banner {
    height: auto !important;
    min-height: 2.5rem;
  }
  .seo-banner-content {
    flex-direction: column !important;
    width: 100% !important;
    padding: 0.3rem 0.2rem 0.4rem !important;
    text-align: center;
    gap: 0.3rem;
  }
  .seo-banner-left {
    width: 100% !important;
  }
  .seo-banner-title {
    font-size: 0.5rem !important;
    line-height: 1.3 !important;
  }
  .seo-banner-subtitle {
    font-size: 0.22rem !important;
  }
  .seo-banner-btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    height: auto !important;
    margin-top: 0.3rem !important;
  }
  .seo-banner-btn {
    width: 80% !important;
    max-width: 4rem !important;
    height: 0.6rem !important;
    font-size: 0.2rem !important;
  }
  .seo-banner-right {
    width: 100% !important;
    display: flex;
    justify-content: center;
  }
  .seo-banner-video {
    width: 90% !important;
    max-width: 6rem !important;
    border-radius: 0.15rem !important;
  }
  /* banner bg image: 适配竖屏 */
  .seo-banner-bg {
    width: auto !important;
    height: 100% !important;
    transform: translate(-50%, -50%) !important;
    left: 50% !important;
    position: absolute !important;
    top: 50% !important;
  }

  /* ---- tab card ---- */
  .seo-tab-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.4rem 0.2rem !important;
  }
  .seo-tab-card-title {
    font-size: 0.36rem !important;
  }
  .seo-tab-card-tabs-content {
    height: auto !important;
    gap: 0.1rem !important;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.06rem !important;
  }
  .seo-tab-card-tab {
    width: auto !important;
    font-size: 0.2rem !important;
    padding: 0.1rem 0.25rem !important;
    white-space: nowrap !important;
  }
  .seo-tab-card-content.active {
    flex-direction: column !important;
    gap: 0.3rem !important;
    margin-top: 0.3rem !important;
  }
  .seo-tab-card-content-left {
    width: 100% !important;
  }
  .seo-tab-card-content-left .seo-tab-card-video {
    width: 100% !important;
    max-width: 8rem !important;
    margin: 0 auto;
    display: block;
  }
  .seo-tab-card-content-right {
    width: 100% !important;
    text-align: center;
  }
  .seo-tab-card-content-title {
    font-size: 0.3rem !important;
  }
  .seo-tab-card-content-desc {
    font-size: 0.2rem !important;
  }
  .seo-tab-card-content-btn-group {
    display: flex;
    justify-content: center;
    height: auto !important;
  }
  .seo-tab-card-content-btn {
    width: 2.5rem !important;
    height: 0.5rem !important;
    font-size: 0.2rem !important;
  }

  /* ---- list card (爆款模版工厂 / 账号管理) ---- */
  .seo-list-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.4rem 0.2rem !important;
  }
  .seo-list-card-title {
    font-size: 0.36rem !important;
  }
  .seo-list-card-subtitle {
    font-size: 0.2rem !important;
  }
  .seo-list-card-content {
    flex-direction: column !important;
    gap: 0.3rem !important;
  }
  .seo-list-card-content-left,
  .seo-list-card-content-right {
    width: 100% !important;
  }
  .seo-list-card-content-left .seo-list-card-content-video {
    border-radius: 0.15rem !important;
    max-width: 8rem;
    margin: 0 auto;
    display: none;
  }
  .seo-list-card-content-left .seo-list-card-content-video.active {
    display: block;
  }
  .seo-list-card-content-right {
    display: flex;
    flex-direction: row !important;
    gap: 0 !important;
    overflow: hidden;
  }
  .seo-list-card-content-item {
    display: none;
    width: 100% !important;
    padding: 0 !important;
  }
  .seo-list-card-content-item.active {
    display: block !important;
  }
  .seo-list-card-content-item-title {
    font-size: 0.3rem !important;
    text-align: center;
  }
  .seo-list-card-content-item-desc {
    font-size: 0.2rem !important;
    text-align: center;
  }
  .seo-list-card-btn-normal {
    display: flex !important;
    justify-content: center;
    height: auto !important;
  }
  .seo-list-card-btn {
    width: 2.5rem !important;
    height: 0.5rem !important;
    font-size: 0.2rem !important;
  }
  .seo-list-card-bottom {
    height: auto !important;
    display: flex;
    justify-content: center;
    gap: 0.15rem;
    flex-wrap: wrap;
    margin-top: 0.3rem !important;
  }
  .seo-list-card-bottom-btn {
    width: 2.5rem !important;
    height: 0.5rem !important;
    font-size: 0.2rem !important;
  }

  /* ---- big video (轮播图) ---- */
  .seo-big-video {
    padding: 0.4rem 0.2rem !important;
  }
  .seo-big-video-title {
    font-size: 0.36rem !important;
  }
  .seo-big-video-subtitle {
    font-size: 0.2rem !important;
    padding: 0 0.1rem;
  }
  .seo-big-video-content {
    width: 95% !important;
    margin-top: 0.3rem !important;
  }
  .seo-big-video-bottom {
    height: auto !important;
    display: flex;
    justify-content: center;
    gap: 0.15rem;
    flex-wrap: wrap;
    margin-top: 0.3rem !important;
  }
  .seo-big-video-bottom-btn {
    width: 2.5rem !important;
    height: 0.5rem !important;
    font-size: 0.2rem !important;
  }

  /* ---- 最新文章区域 ---- */
  .seo-help {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.4rem 0.2rem !important;
  }
  .latest-wrap {
    padding: 0 0.2rem;
  }
  .latest-head {
    flex-wrap: wrap;
    gap: 0.1rem;
  }
  .latest-item {
    flex-direction: column !important;
    gap: 0.15rem;
  }
  .latest-cover {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
  }
  .latest-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

  /* ---- list card 卡片内悬浮按钮在移动端隐藏（底部按钮已覆盖） ---- */
  .seo-list-card-content-item .seo-list-card-btn-normal,
  .seo-list-card-content-item .seo-download-other {
    display: none !important;
  }

  /* ---- footer ---- */
  .zt-footer-inner {
    max-width: 100% !important;
    padding: 0 0.2rem !important;
    box-sizing: border-box !important;
  }
  .zt-footer-info {
    flex-direction: column !important;
    gap: 0.3rem !important;
  }
  .zt-footer-col {
    width: 100% !important;
  }
  .zt-footer-logo {
    width: auto !important;
    height: 0.4rem !important;
    max-width: 2.5rem !important;
  }
  .zt-footer-col-title {
    font-size: 0.18rem !important;
    margin-bottom: 0.1rem !important;
  }
  .zt-footer-link {
    font-size: 0.16rem !important;
    margin-top: 0.1rem !important;
  }
  .zt-footer-copyright {
    font-size: 0.14rem !important;
    margin-top: 0.3rem !important;
  }

  /* ---- seo-total 统计区 ---- */
  .seo-total {
    height: auto !important;
    padding: 0.4rem 0.2rem !important;
  }
  .seo-total-content {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0.2rem !important;
    align-items: center !important;
    text-align: center !important;
  }
  .seo-total-left {
    text-align: center !important;
  }
  .seo-total-title {
    font-size: 0.3rem !important;
  }
}

/* ========================================================
   全站移动端适配
   ======================================================== */

/* --- footer 二维码 --- */
.footer-qrcode {
  display: block;
  width: 100px;
  height: 100px;
  margin-top: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* --- 博客页汉堡按钮 --- */
.toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  flex-shrink: 0;
}
.toggle-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.toggle-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.toggle-btn.open span:nth-child(2) { opacity: 0; }
.toggle-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- 博客页 nav 移动端折叠 --- */
@media (max-width: 820px) {
  .toggle-btn { display: flex; }

  .site-top-nav .nav-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    padding: 10px 16px;
    position: relative;
  }

  #navMenu {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    padding: 8px 0 12px;
    order: 3;
  }
  #navMenu.open { display: flex; }

  #navMenu a {
    padding: 11px 16px;
    font-size: 15px;
    border-bottom: 1px solid #f6f6f6;
    gap: 0;
  }
  #navMenu a:last-child { border-bottom: none; }

  #navMenu .cta-link {
    margin: 8px 16px 0;
    text-align: center;
    border-radius: 8px;
    padding: 12px 16px;
  }
}

/* --- 文章列表页移动端 --- */
@media (max-width: 640px) {
  .banner-top {
    padding: 40px 16px 32px;
  }
  .content-layout {
    padding: 16px 16px 60px;
    gap: 24px;
  }
  .article-item {
    flex-direction: column;
    gap: 12px;
    padding: 18px 0;
  }
  .article-cover {
    width: 100%;
    height: 180px;
    border-radius: 8px;
  }
  .article-heading {
    font-size: 16px;
    margin: 4px 0 8px;
  }
  .article-lead {
    -webkit-line-clamp: 2;
    font-size: 13px;
  }
  .filter-inner {
    padding: 0 8px;
  }
  .breadcrumb {
    padding: 12px 16px 0;
  }
}

/* --- 文章详情页移动端 --- */
@media (max-width: 640px) {
  .post-layout {
    padding: 16px 16px 60px;
    gap: 24px;
  }
  .post-article h1 {
    font-size: 22px;
  }
  .post-toc {
    display: none;
  }
  .post-body {
    font-size: 15px;
    line-height: 1.8;
  }
  .post-body img {
    border-radius: 6px;
  }
  .suggestions-grid {
    grid-template-columns: 1fr;
  }
  .post-nav-wrap {
    flex-direction: column;
    gap: 12px;
  }
  .post-nav-wrap a {
    max-width: 100%;
  }
}

/* --- 首页最新文章 latest-item 移动端 --- */
@media (max-width: 640px) {
  .latest-wrap {
    padding: 0 16px;
  }
  .latest-item {
    flex-direction: column;
    gap: 10px;
  }
  .latest-cover {
    width: 100%;
    height: 180px;
  }
  .latest-title {
    font-size: 16px;
  }
}

/* --- 全局小屏内边距 --- */
@media (max-width: 640px) {
  .site-top-nav .logo-link img {
    height: 28px !important;
    max-height: 28px !important;
  }
}

/* ===== 新版 footer/header 结构样式 (zt-*) ===== */
.zt-page { margin-top: 0; }
.zt-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: transparent;
  transition: background 0.2s, box-shadow 0.2s;
}
.zt-header--dark {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.zt-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.zt-header-left { display: flex; align-items: center; }
.zt-logo-wrap a { display: flex; align-items: center; text-decoration: none; }
.zt-logo-tip { display: none; }
.zt-header-right { display: flex; align-items: center; }

.zt-footer {
  background: #0A1628;
  color: rgba(255,255,255,.65);
  padding: 48px 24px 32px;
}
.zt-footer--dark { background: #0A1628; }
.zt-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.zt-footer-info {
  display: flex;
  gap: 48px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.zt-footer-col { flex: 1; min-width: 140px; }
.zt-footer-col:first-child { flex: 1.4; }
.zt-footer-logo {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}
.zt-footer-service { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.zt-footer-doclink {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  text-decoration: underline;
}
.zt-footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.zt-footer-col-content { display: flex; flex-direction: column; gap: 10px; }
.zt-footer-link { font-size: 13px; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.zt-footer-link:hover { color: #fff; }
.zt-footer-copyright {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  text-align: center;
}
.footer-qrcode {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  margin-top: 10px;
}
@media (max-width: 760px) {
  .zt-footer-info { flex-direction: column; gap: 24px; }
  .zt-footer-inner { padding: 0 16px; }
  .zt-footer { padding: 32px 16px 24px; }
}


/* ============================================================
   天空蓝科技风 — 视觉差异化主题样式
   主色: #0EA5E9 (Sky Blue)  辅色: #38BDF8  深底: #0A1628
   ============================================================ */

/* -- 全局链接 -- */
a { color: #0EA5E9; }
a:hover { color: #0284C7; text-decoration: none; }

/* ---- 顶部导航：深色科技风 ---- */
.site-top-nav {
  background: linear-gradient(90deg, #040d1f 0%, #0A1628 100%) !important;
  border-bottom: 1px solid rgba(14,165,233,.25) !important;
  box-shadow: 0 2px 16px rgba(14,165,233,.12) !important;
}
.site-top-nav .nav-inner { height: 62px; }
.site-top-nav .logo-link {
  color: #fff !important;
  font-weight: 800;
  letter-spacing: -.3px;
}
.site-top-nav .logo-link span { color: #38BDF8 !important; }
.site-top-nav nav a {
  color: rgba(255,255,255,.75) !important;
  font-size: 13.5px;
  transition: color .15s;
}
.site-top-nav nav a:hover,
.site-top-nav nav a.current {
  color: #38BDF8 !important;
  text-decoration: none;
}
.site-top-nav .cta-link {
  background: linear-gradient(135deg, #0EA5E9, #38BDF8) !important;
  color: #fff !important;
  border-radius: 4px !important;
  padding: 8px 20px !important;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(14,165,233,.4);
}
.site-top-nav .cta-link:hover {
  background: linear-gradient(135deg, #0284C7, #0EA5E9) !important;
  box-shadow: 0 0 18px rgba(14,165,233,.6);
}
.toggle-btn span { background: #fff !important; }

/* ---- Hero Banner：深蓝科技渐变 ---- */
.banner-top {
  background: linear-gradient(135deg, #040d1f 0%, #0d2045 50%, #0EA5E9 100%) !important;
  padding: 64px 24px 52px !important;
  position: relative;
  overflow: hidden;
}
.banner-top::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230EA5E9' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") !important;
  pointer-events: none;
}
.banner-top h1,
.banner-top p { position: relative; z-index: 1; }

/* ---- 文章列表：卡片网格（2列），隐藏侧栏 ---- */
.content-layout {
  grid-template-columns: 1fr !important;
  padding: 36px 24px 80px !important;
}
.content-side { display: none !important; }
.article-list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 22px !important;
  list-style: none;
  padding: 0; margin: 0;
}
.article-item {
  display: block !important;
  padding: 0 !important;
  border: 1px solid #d0e8f8 !important;
  border-bottom: 1px solid #d0e8f8 !important;
  border-radius: 8px !important;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .25s, transform .25s;
}
.article-item:first-child { border-top: 1px solid #d0e8f8 !important; }
.article-item:hover {
  box-shadow: 0 8px 28px rgba(14,165,233,.18), 0 0 0 1px #0EA5E9 !important;
  transform: translateY(-3px);
}
.article-cover {
  width: 100% !important;
  height: 175px !important;
  flex-shrink: unset !important;
  border-radius: 0 !important;
  display: block;
}
.article-cover img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .35s;
}
.article-item:hover .article-cover img { transform: scale(1.05); }
.article-body { padding: 16px !important; flex: unset !important; }
.article-heading { font-size: 16px !important; margin: 6px 0 8px !important; }
.article-heading a { color: #0d1f2e; }
.article-heading a:hover { color: #0EA5E9 !important; }
.article-lead { -webkit-line-clamp: 2 !important; font-size: 13px !important; }
.label-cat {
  background: #e0f2fe !important;
  color: #0284C7 !important;
  border-radius: 3px !important;
  font-size: 11px;
}

/* ---- 分页 ---- */
.page-nav .page-numbers {
  border-radius: 4px !important;
  border-color: #bae8fd !important;
}
.page-nav .page-numbers:hover,
.page-nav .page-numbers.current {
  background: #0EA5E9 !important;
  border-color: #0EA5E9 !important;
  box-shadow: 0 2px 8px rgba(14,165,233,.35);
}

/* ---- 文章详情页 ---- */
.post-layout { grid-template-columns: 1fr 265px !important; }
.post-body h2 {
  border-bottom: 2px solid #e0f2fe !important;
  color: #0d1f2e !important;
}
.post-body h3 { color: #0d1f2e !important; }
.post-body blockquote {
  border-left: 3px solid #0EA5E9 !important;
  background: #f0faff !important;
}
.post-body a { color: #0EA5E9 !important; }
.cat-badge-link {
  background: #e0f2fe !important;
  color: #0284C7 !important;
}
.art-nav-btn:hover { border-color: #0EA5E9 !important; background: #f0faff !important; }
.post-tags .tag-item:hover {
  background: #e0f2fe !important;
  color: #0EA5E9 !important;
}

/* ---- 推荐阅读 ---- */
.suggestions-title {
  border-left: 3px solid #0EA5E9 !important;
}
.suggestion-card:hover,
.suggestions a:hover {
  box-shadow: 0 4px 16px rgba(14,165,233,.15) !important;
}

/* ---- 侧边栏 ---- */
.side-panel {
  background: #f0f9ff !important;
  border: 1px solid #bae8fd !important;
  border-radius: 8px !important;
}
.panel-header {
  border-bottom: 1px solid #bae8fd !important;
  color: #0d1f2e !important;
}
.side-block {
  border: 1px solid #d0e8f8 !important;
  border-radius: 8px !important;
}
.block-title {
  border-left: 3px solid #0EA5E9 !important;
  font-size: 14px;
}
.search-go {
  background: #0EA5E9 !important;
  border-radius: 4px !important;
}
.search-go:hover { background: #0284C7 !important; }
.search-field:focus { border-color: #0EA5E9 !important; }
.hot-link:hover .hot-title { color: #0EA5E9 !important; }
.cats-ul a:hover { color: #0EA5E9 !important; }
.cats-count {
  background: #e0f2fe !important;
  color: #0284C7 !important;
}

/* ---- 分类筛选栏 ---- */
.filter-item.current {
  color: #0EA5E9 !important;
  border-bottom-color: #0EA5E9 !important;
  font-weight: 600;
}
.filter-item:hover { color: #0EA5E9 !important; }
.filter-count {
  background: #e0f2fe !important;
  color: #0284C7 !important;
}
.filter-item.current .filter-count {
  background: #0EA5E9 !important;
  color: #fff !important;
}

/* ---- 面包屑 ---- */
.breadcrumb a:hover { color: #0EA5E9 !important; }

/* ---- 首页文章区 ---- */
.more-link { color: #0EA5E9 !important; font-weight: 600; }
.read-more { color: #0EA5E9 !important; }
.load-more-btn {
  border: 2px solid #0EA5E9 !important;
  color: #0EA5E9 !important;
  border-radius: 4px !important;
}
.load-more-btn:hover {
  background: #0EA5E9 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(14,165,233,.35);
}

/* ---- 页脚深色 ---- */
.site-bottom {
  background: linear-gradient(90deg, #040d1f 0%, #0A1628 100%) !important;
  border-top: 1px solid rgba(14,165,233,.15);
}
.zt-footer, .nb-footer, .wp-footer {
  background: linear-gradient(90deg, #040d1f 0%, #0A1628 100%) !important;
}

/* ---- TOC 目录 ---- */
.toc-nav a:hover { color: #0EA5E9 !important; }
.toc-nav li { border-bottom-color: #e0f2fe !important; }

/* ---- 移动端 ---- */
@media (max-width: 640px) {
  .article-list { grid-template-columns: 1fr !important; gap: 16px !important; }
  .content-layout { padding: 16px !important; }
}

/* ============================================================
   Layout refresh — 首页 / 列表页 / 文章页
   ============================================================ */
:root {
  --ztui-primary: #0EA5E9;
  --ztui-primary-dark: #0284C7;
  --ztui-ink: #0f172a;
  --ztui-muted: #64748b;
  --ztui-border: #dbeafe;
  --ztui-soft: #f0f9ff;
  --ztui-card-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

body {
  background:
    radial-gradient(circle at 10% 0, rgba(14, 165, 233, .08), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0, #fff 22rem) !important;
}

.banner-top {
  padding: 82px 24px 68px !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 189, 248, .32), transparent 26rem),
    radial-gradient(circle at 86% 12%, rgba(14, 165, 233, .34), transparent 24rem),
    linear-gradient(135deg, #041021 0%, #0A1628 48%, #075985 100%) !important;
}

.banner-top h1 {
  text-shadow: 0 10px 32px rgba(0, 0, 0, .22);
}

.banner-top p {
  max-width: 720px !important;
  font-size: 17px !important;
  color: rgba(255, 255, 255, .78);
}

.filter-bar {
  position: sticky;
  top: 62px;
  z-index: 80;
  background: rgba(255, 255, 255, .86) !important;
  border-bottom: 1px solid rgba(186, 230, 253, .8) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.filter-inner,
.breadcrumb,
.content-layout,
.post-layout {
  max-width: 1180px !important;
}

.breadcrumb {
  color: #94a3b8 !important;
}

.content-layout {
  grid-template-columns: minmax(0, 1fr) 300px !important;
  gap: 28px !important;
  padding-top: 34px !important;
}

.content-side {
  display: block !important;
}

.article-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

.article-item {
  border: 1px solid rgba(186, 230, 253, .9) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
  overflow: hidden;
}

.article-item:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--ztui-card-shadow) !important;
  border-color: rgba(14, 165, 233, .45) !important;
}

.article-cover {
  height: 190px !important;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, .14), rgba(56, 189, 248, .08)),
    #e0f2fe !important;
}

.article-body {
  padding: 18px 18px 20px !important;
}

.article-heading {
  font-size: 18px !important;
  line-height: 1.45 !important;
}

.article-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef6ff;
  color: #94a3b8 !important;
}

.side-block,
.side-panel {
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .9) !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
}

.site-search {
  gap: 10px !important;
}

.search-field,
.search-go {
  min-height: 42px;
  border-radius: 12px !important;
}

.latest-wrap {
  max-width: 1180px !important;
}

.latest-head {
  align-items: end !important;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e0f2fe;
  color: var(--ztui-primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.latest-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.latest-item {
  display: flex !important;
  flex-direction: column;
  gap: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(186, 230, 253, .9) !important;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.latest-item:first-child {
  border-top: 1px solid rgba(186, 230, 253, .9) !important;
}

.latest-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--ztui-card-shadow);
  border-color: rgba(14, 165, 233, .45) !important;
}

.latest-cover {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border-radius: 0 !important;
}

.latest-info {
  padding: 18px;
}

.latest-title {
  font-size: 17px !important;
}

.latest-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef6ff;
}

.read-more {
  margin-left: 0 !important;
}

.load-more-btn,
.more-link {
  border-radius: 999px !important;
}

.post-layout {
  grid-template-columns: minmax(0, 1fr) 300px !important;
  gap: 34px !important;
}

.post-article {
  padding: 34px;
  border: 1px solid rgba(186, 230, 253, .8);
  border-radius: 24px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 16px 46px rgba(15, 23, 42, .06);
}

.post-article header {
  margin-bottom: 22px !important;
}

.post-article h1 {
  color: var(--ztui-ink) !important;
  font-size: clamp(28px, 3.4vw, 44px) !important;
}

.meta-bar {
  border-bottom: 1px solid #e2e8f0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 22px !important;
}

.post-hero-img {
  aspect-ratio: 16 / 8.2;
  margin: 0 0 34px;
  overflow: hidden;
  border-radius: 20px;
  background: #e0f2fe;
}

.post-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body {
  max-width: 780px;
  margin: 0 auto;
  color: #1e293b !important;
  font-size: 17px !important;
}

.post-body h2 {
  margin-top: 46px !important;
  padding-left: 14px;
  border-bottom: 0 !important;
  border-left: 4px solid var(--ztui-primary);
}

.post-body img {
  border-radius: 16px !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.suggestions,
.art-nav {
  max-width: 780px;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 1020px) {
  .content-layout,
  .post-layout {
    grid-template-columns: 1fr !important;
  }

  .content-side,
  .post-side {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    position: static !important;
  }
}

@media (max-width: 820px) {
  .filter-bar {
    top: 56px;
  }

  .article-list,
  .latest-list {
    grid-template-columns: 1fr !important;
  }

  .post-article {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .post-body {
    font-size: 16px !important;
  }

  .content-side,
  .post-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .banner-top {
    padding: 54px 18px 44px !important;
  }

  .filter-bar {
    top: 0;
  }

  .content-layout,
  .post-layout {
    padding: 20px 14px 56px !important;
  }

  .article-cover {
    height: auto !important;
    aspect-ratio: 16 / 9;
    border-radius: 0 !important;
  }

  .latest-head {
    align-items: flex-start !important;
  }

  .post-hero-img {
    border-radius: 14px;
  }

  .art-nav {
    grid-template-columns: 1fr !important;
  }
}