/*
Theme Name: 易创精灵SEO
Theme URI: https://pc.meitu.com/batch-photo-editor
Author: 易创精灵
Author URI: https://pc.meitu.com
Description: 易创精灵PC工作台SEO主题，含自定义首页、文章列表页与文章详情页。
Version: 1.0.0
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: yichuang-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", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  color: #1a1a2e;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: #327EFC;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

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

.site-header-blog .header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  text-decoration: none;
}

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

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

.site-header-blog nav a {
  font-size: 14px;
  color: #444;
  text-decoration: none;
  transition: color .2s;
}

.site-header-blog nav a:hover,
.site-header-blog nav a.current {
  color: #327EFC;
}

.site-header-blog .header-cta {
  background: #327EFC;
  color: #fff !important;
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s;
}

.site-header-blog .header-cta:hover {
  background: #1a6de8;
  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: #327EFC;
}

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

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

@media (max-width: 960px) {
  .archive-layout {
    grid-template-columns: 1fr;
  }
  .archive-sidebar {
    display: none;
  }
}

/* 主列表 */
.archive-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.archive-post-row {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: flex-start;
}

.archive-post-row:first-child {
  border-top: 1px solid #f0f0f0;
}

.archive-post-thumb {
  flex-shrink: 0;
  width: 220px;
  height: 138px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #dce8ff, #f0f6ff);
  display: block;
}

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

.archive-post-row:hover .archive-post-thumb img {
  transform: scale(1.04);
}

.archive-post-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #c0cfe8;
}

.archive-post-body {
  flex: 1;
  min-width: 0;
}

.archive-post-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 6px 0 10px;
  line-height: 1.5;
}

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

.archive-post-title a:hover {
  color: #327EFC;
}

.archive-post-excerpt {
  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;
}

.archive-post-meta {
  font-size: 13px;
  color: #bbb;
}

@media (max-width: 560px) {
  .archive-post-thumb {
    width: 110px;
    height: 70px;
  }
  .archive-post-title {
    font-size: 15px;
  }
}

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

.arc-widget {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}

.arc-widget-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
  border-left: 4px solid #327EFC;
  padding-left: 10px;
}

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

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

.arc-search-input:focus {
  border-color: #327EFC;
}

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

.arc-search-btn:hover {
  background: #1a6de8;
}

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

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

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

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

.arc-popular-link:hover .arc-popular-title {
  color: #327EFC;
}

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

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

.arc-popular-rank {
  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;
}

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

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

.arc-popular-title {
  font-size: 13px;
  color: #1a1a2e;
  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;
}

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

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

.arc-cat-list li {
  border-bottom: 1px solid #f5f5f5;
}

.arc-cat-list li:last-child {
  border-bottom: none;
}

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

.arc-cat-list a:hover {
  color: #327EFC;
}

.arc-cat-count {
  background: #f0f4ff;
  color: #327EFC;
  font-size: 11px;
  border-radius: 10px;
  padding: 1px 8px;
  font-weight: 600;
}

/* ========== 文章列表页 ========== */
.archive-hero {
  background: linear-gradient(135deg, #0f1b3d 0%, #1a3a6e 60%, #327EFC 100%);
  color: #fff;
  padding: 72px 24px 56px;
  text-align: center;
}

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

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

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

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

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

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

.post-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  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;
}

.post-card-cat {
  display: inline-block;
  background: #e8f1ff;
  color: #327EFC;
  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: #1a1a2e;
  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: #327EFC;
  font-weight: 600;
  transition: gap .2s;
}

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

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

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

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

.archive-pagination .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: 10px;
  font-size: 14px;
  color: #444;
  transition: all .2s;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
  background: #327EFC;
  border-color: #327EFC;
  color: #fff;
  text-decoration: none;
}

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

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

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

.single-article .article-cat {
  display: inline-block;
  background: #e8f1ff;
  color: #327EFC;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 16px;
}

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

.article-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;
}

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

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

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

/* 文章正文排版 */
.article-content {
  font-size: 16px;
  line-height: 1.85;
  color: #2c2c3e;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 44px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 36px 0 12px;
}

.article-content h4 {
  font-size: 17px;
  font-weight: 600;
  color: #2c2c3e;
  margin: 28px 0 10px;
}

.article-content p {
  margin: 0 0 20px;
}

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

.article-content li {
  margin-bottom: 8px;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  background: #f5f9ff;
  border-left: 4px solid #327EFC;
  border-radius: 0 12px 12px 0;
  color: #555;
  font-style: italic;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 20px 0;
}

.article-content a {
  color: #327EFC;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

.article-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

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

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

.article-content th {
  background: #f5f9ff;
  font-weight: 600;
  color: #1a1a2e;
}

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

.article-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: #327EFC;
  text-decoration: none;
}

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

.post-nav-item {
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 14px;
  transition: all .25s;
}

.post-nav-item:hover {
  border-color: #327EFC;
  background: #f5f9ff;
  text-decoration: none;
}

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

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

.post-nav-item.next {
  text-align: right;
}

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

.sidebar-widget {
  background: #f8faff;
  border: 1px solid #e8f0fe;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-widget-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8f0fe;
}

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

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

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

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

.sidebar-post-info .sidebar-post-title {
  font-size: 13px;
  color: #1a1a2e;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}

.sidebar-post-item:hover .sidebar-post-title {
  color: #327EFC;
}

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

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

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

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

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

.toc-list a:hover {
  color: #327EFC;
  text-decoration: none;
}

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

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

.home-list-more {
  font-size: 14px;
  color: #327EFC;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.home-list-more:hover {
  text-decoration: underline;
}

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

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

.home-post-row:first-child {
  border-top: 1px solid #f0f0f0;
}

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

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

.home-post-row:hover .home-post-thumb img {
  transform: scale(1.04);
}

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

.home-post-top {
  margin-bottom: 6px;
}

.home-post-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px;
  line-height: 1.5;
}

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

.home-post-title a:hover {
  color: #327EFC;
}

.home-post-excerpt {
  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;
}

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

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

.home-post-readmore {
  margin-left: auto;
  font-size: 13px;
  color: #327EFC;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.home-post-readmore:hover {
  text-decoration: underline;
}

.home-loadmore-btn {
  display: inline-block;
  border: 2px solid #327EFC;
  color: #327EFC;
  border-radius: 999px;
  padding: 10px 40px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}

.home-loadmore-btn:hover {
  background: #327EFC;
  color: #fff;
  text-decoration: none;
}

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

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

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

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

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

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

/* ============================================================
   QR code modal — global
   ============================================================ */
.yc-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);
}
.yc-qr-box {
  background: #fff;
  border-radius: 20px;
  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: yc-qr-in .2s ease;
}
@keyframes yc-qr-in {
  from { opacity: 0; transform: scale(.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1)  translateY(0);    }
}
.yc-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;
}
.yc-qr-close:hover {
  background: #f0f0f0;
  color: #555;
}
.yc-qr-img {
  width: 220px;
  height: 220px;
  display: block;
  margin: 0 auto 16px;
  border-radius: 8px;
}
.yc-qr-hint {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* ===== 文章列表页分类导航 ===== */
.cat-nav-bar {
  background: #fff;
  border-bottom: 1px solid #eef0f4;
}
.cat-nav-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;
}
.cat-nav-inner::-webkit-scrollbar {
  display: none;
}
.cat-nav-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;
}
.cat-nav-item:hover {
  color: #327efc;
}
.cat-nav-item.current {
  color: #327efc;
  border-bottom-color: #327efc;
  font-weight: 600;
}
.cat-nav-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: #327efc;
  font-weight: 500;
}
.cat-nav-item.current .cat-nav-count {
  background: #327efc;
  color: #fff;
}
@media (max-width: 640px) {
  .cat-nav-inner {
    padding: 0 12px;
    gap: 0;
  }
  .cat-nav-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 变暗，汉堡色变深 */
.Header_headerDark__i7uie .fp-hamburger span {
  background: #1a1a2e;
}

/* ===== 首页移动端抽屉导航 ===== */
.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: #327EFC;
  color: #fff !important;
  border-radius: 999px;
  text-align: center;
  padding: 12px 24px;
  font-weight: 600;
  border-bottom: none !important;
}
.fp-drawer-cta:hover {
  background: #1a6de8;
}

/* ===== 首页顶部导航 ===== */
.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(50,126,252) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 0 18px !important;
  font-weight: 600;
}
.fp-nav-cta:hover {
  background: rgb(30,100,230) !important;
}
/* 下滑后 header 变白底，导航文字改为深色 */
.Header_headerDark__i7uie .fp-nav-item {
  color: #1a1a2e;
}
.Header_headerDark__i7uie .fp-nav-item:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a2e;
}
.Header_headerDark__i7uie .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 ---- */
  .Header_header__aLG5t .Header_headerInner__LiZAk {
    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;
  }
  .home-list-wrap {
    padding: 0 0.2rem;
  }
  .home-list-head {
    flex-wrap: wrap;
    gap: 0.1rem;
  }
  .home-post-row {
    flex-direction: column !important;
    gap: 0.15rem;
  }
  .home-post-thumb {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
  }
  .home-post-thumb 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 ---- */
  .footer_inner__CAz2F {
    max-width: 100% !important;
    padding: 0 0.2rem !important;
    box-sizing: border-box !important;
  }
  .footer_info__ddoBM {
    flex-direction: column !important;
    gap: 0.3rem !important;
  }
  .footer_col__IM1St {
    width: 100% !important;
  }
  .footer_footerLogo__8Kxbl {
    width: auto !important;
    height: 0.4rem !important;
    max-width: 2.5rem !important;
  }
  .footer_colTitle__Rao6H {
    font-size: 0.18rem !important;
    margin-bottom: 0.1rem !important;
  }
  .footer_link__7naRh {
    font-size: 0.16rem !important;
    margin-top: 0.1rem !important;
  }
  .footer_copyright__No8VH {
    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);
}

/* --- 博客页汉堡按钮 --- */
.nav-toggle {
  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;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

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

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

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

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

/* --- 文章列表页移动端 --- */
@media (max-width: 640px) {
  .archive-hero {
    padding: 40px 16px 32px;
  }
  .archive-layout {
    padding: 16px 16px 60px;
    gap: 24px;
  }
  .archive-post-row {
    flex-direction: column;
    gap: 12px;
    padding: 18px 0;
  }
  .archive-post-thumb {
    width: 100%;
    height: 180px;
    border-radius: 8px;
  }
  .archive-post-title {
    font-size: 16px;
    margin: 4px 0 8px;
  }
  .archive-post-excerpt {
    -webkit-line-clamp: 2;
    font-size: 13px;
  }
  .cat-nav-inner {
    padding: 0 8px;
  }
  .breadcrumb {
    padding: 12px 16px 0;
  }
}

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

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

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