/*
Theme Name: 算力数码优选配件导购站
Theme URI: https://suanli-digital.com
Author: 算力数码团队
Author URI: https://suanli-digital.com
Description: 专为服务器配件、光模块、数据中心配件、电脑硬件、数码外设、工控电子行业打造的专业导购主题。支持产品对比、规格参数展示、多层级分类导航、响应式设计。
Version: 1.5.28
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: suanli-digital
Tags: e-commerce, product-catalog, server-hardware, optical-module, responsive, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   算力数码优选配件导购站 - 主题样式表
   面向行业：服务器/光模块/数据中心配件/
   电脑硬件/数码外设/工控电子
   ============================================ */

/* ---- 1. CSS 变量定义 ---- */
:root {
  /* 品牌色彩 */
  --primary: #0066cc;
  --primary-dark: #004c99;
  --primary-light: #e6f2ff;
  --accent: #ff6b35;
  --accent-hover: #e55a2b;
  
  /* 中性色 */
  --text-main: #1a1a2e;
  --text-secondary: #4a4a5a;
  --text-muted: #7a7a8a;
  --bg-white: #ffffff;
  --bg-light: #f5f7fa;
  --bg-dark: #1a1a2e;
  --border-color: #e1e4e8;
  
  /* 功能色 */
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
  
  /* 字体 */
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
  
  /* 间距 */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* 布局 */
  --container-max: 1280px;
  --container-narrow: 960px;
  --header-height: 50px;
  --border-radius: 8px;
  --border-radius-sm: 4px;
  --border-radius-lg: 12px;
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);
  
  /* 过渡 */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* ---- 2. 重置与基础样式 ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ---- 3. 布局容器 ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ---- 4. 头部区域 ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

/* 确保页头始终可见，防止被 hidden 类隐藏 */
.site-header.hidden {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.site-brand-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

/* ===== Logo容器专属尺寸限制 ===== */
.site-logo-container {
  max-width: 160px;
  max-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

/* Logo图片自适应缩放 - 等比例不拉伸不变形 */
.site-logo-container .custom-logo,
.site-logo-container .site-logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* 自定义Logo图片尺寸控制 - 兼容旧版无容器的场景 */
.site-brand-link .custom-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* 默认文字Logo（无自定义图片时） */
.site-logo {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.site-title span {
  color: var(--primary);
}

.site-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 导航菜单 */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-menu {
  display: flex;
  gap: var(--space-lg);
}

.nav-menu a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-sm) 0;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-base);
}

.nav-menu a:hover,
.nav-menu a.current {
  color: var(--primary);
}

.nav-menu a:hover::after,
.nav-menu a.current::after {
  width: 100%;
}

/* 搜索框 */
.header-search {
  position: relative;
  width: 280px;
}

.header-search input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  padding-right: 40px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: var(--bg-light);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.header-search input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.header-search button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* 头部操作按钮 */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
}

.btn-icon:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.btn-icon .badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: white;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- 5. 主要内容区域 ---- */
.site-main {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height) - 400px);
}

/* 首页 Hero 背景上移覆盖顶部蓝色区域 */
.home .site-main {
  margin-top: 0;
}

.home .hero-section {
  margin-top: calc(-1 * var(--header-height));
  padding-top: calc(var(--header-height) + var(--space-3xl));
  position: relative;
  z-index: 1;
}

/* 顶部通知栏置于 Hero 之上，保持文字可见 */
.top-bar {
  position: relative;
  z-index: 10;
}

/* ---- 5.5 内页归档头部区域 ---- */
.archive-header {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 160px;
  padding: 1.5rem 0 !important;
}

.archive-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.archive-header .container {
  width: 100%;
}

/* ---- 6. 英雄区域 ---- */
.hero-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #16213e 50%, #0f3460 100%);
  color: white;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 50px 50px;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.hero-title .highlight {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
}

/* ---- 7. 按钮样式 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: white;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
  color: white;
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
}

/* === 3D立体按钮效果 === */
.hero-buttons .btn,
.hero-buttons a.btn,
.hero-buttons #hero-btn1,
.hero-buttons #hero-btn2 {
  position: relative;
  isolation: isolate;
  transform: translateY(0);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.22),
    0 9px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  border: none !important;
  margin-bottom: 6px;
}

/* 3D渐变高光层 */
.hero-buttons .btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(0, 0, 0, 0.08) 100%);
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
}

/* Hover - 悬浮上移 */
.hero-buttons .btn:hover,
.hero-buttons a.btn:hover,
.hero-buttons #hero-btn1:hover,
.hero-buttons #hero-btn2:hover {
  transform: translateY(-3px) !important;
  box-shadow:
    0 9px 0 rgba(0, 0, 0, 0.22),
    0 13px 22px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* Active - 按下效果 */
.hero-buttons .btn:active,
.hero-buttons a.btn:active,
.hero-buttons #hero-btn1:active,
.hero-buttons #hero-btn2:active {
  transform: translateY(3px) !important;
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.22),
    0 5px 10px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}


/* === 移动端下拉刷新指示器 === */
#pull-refresh-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg-white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  opacity: 0;
  pointer-events: none;
  transition: height 0.15s ease, opacity 0.15s ease;
}

.pull-refresh-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.pull-refresh-icon svg {
  width: 20px;
  height: 20px;
  transition: transform 0.08s linear;
  will-change: transform;
}

/* 刷新中：无限旋转动画 */
.pull-refresh-icon.spinning svg {
  animation: pull-refresh-spin 0.8s linear infinite;
}

@keyframes pull-refresh-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.pull-refresh-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* 桌面端隐藏 */
@media (min-width: 769px) {
  #pull-refresh-indicator {
    display: none !important;
  }
}
/* 桌面端隐藏移动搜索框 */
@media (min-width: 769px) {
  .mobile-top-search { display: none !important; }
}

/* ---- 8. 分类导航区域 ---- */
.category-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

/* 分类网格 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.category-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 0.75rem;
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
  display: block;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.category-icon {
  width: 160px;
  height: 160px;
  margin: 0 auto var(--space-md);
  background: var(--primary-light);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--primary);
  position: relative;
  overflow: hidden;
}

.category-icon img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.category-icon svg {
  width: 80px;
  height: 80px;
}

.category-card:hover .category-icon {
  background: var(--primary);
  color: white;
}

.category-name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: var(--space-xs);
}

.category-count {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ---- 9. 产品卡片 ---- */
.product-section {
  padding: var(--space-3xl) 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.product-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  padding-top: 75%;
  background: var(--bg-light);
  overflow: hidden;
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* ===== 全站图片容器通用自适应规则 ===== */
/* 所有图片父级容器溢出隐藏 */
.product-image,
.post-thumbnail,
.entry-content figure,
.entry-content .wp-block-image,
.wp-caption,
.blog-card .post-thumbnail,
.archive-list .post-thumbnail,
.carousel-item,
.swiper-slide,
.module-image,
.feature-image,
.hero-image {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 文章内容区域图片适配 */
.entry-content img,
.entry-content figure img,
.entry-content .wp-block-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* 缩略图容器适配 */
.post-thumbnail img,
.blog-card img,
.archive-list img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
}

.product-badge.badge-new {
  background: var(--success);
}

.product-badge.badge-hot {
  background: var(--danger);
}

.product-info {
  padding: var(--space-lg);
}

.product-category {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.product-spec {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: var(--bg-light);
  color: var(--text-secondary);
  border-radius: 4px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.product-price .unit {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
}

.btn-add-cart {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-add-cart:hover {
  background: var(--primary);
  color: white;
}

/* ---- 10. 文章/内容样式 ---- */
.content-area {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--border-color);
}

.entry-header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

.entry-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.entry-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.entry-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.entry-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin: var(--space-xl) 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border-color);
}

.entry-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin: var(--space-lg) 0 var(--space-md);
}

.entry-content p {
  margin-bottom: var(--space-md);
}

.entry-content ul,
.entry-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.entry-content ul {
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li {
  margin-bottom: var(--space-xs);
}

.entry-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: var(--space-lg);
  margin: var(--space-lg) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.entry-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 2px 6px;
  background: var(--bg-light);
  border-radius: 4px;
  color: var(--danger);
}

.entry-content pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: var(--space-lg);
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: var(--space-lg) 0;
}

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

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  font-size: 0.9375rem;
}

.entry-content th,
.entry-content td {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-color);
  text-align: left;
}

.entry-content th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--text-main);
}

.entry-content tr:nth-child(even) {
  background: var(--bg-light);
}

/* ---- 11. 规格参数表（专用） ---- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
}

.spec-table th,
.spec-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.spec-table th {
  width: 30%;
  background: var(--bg-light);
  font-weight: 600;
  color: var(--text-main);
  border-right: 1px solid var(--border-color);
}

.spec-table tr:hover td {
  background: var(--primary-light);
}

/* ---- 12. 侧边栏 ---- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.widget {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-color);
}

.widget-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.widget ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.widget ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.widget ul li a:hover {
  color: var(--primary);
  padding-left: var(--space-sm);
}

.widget ul li .count {
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--bg-light);
  padding: 2px 8px;
  border-radius: 10px;
}

/* ---- 13. 分页 ---- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
}

.pagination a,
.pagination span {
  min-width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.pagination a {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
}

.pagination a:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.5);
  color: #ffffff;
}

.pagination .current {
  background: #ffffff;
  color: var(--primary);
}

/* WordPress 默认分页类名 .page-numbers */
.page-numbers {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  margin: 0 4px;
}

a.page-numbers {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
  text-decoration: none;
}

a.page-numbers:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.5);
  color: #ffffff;
}

span.page-numbers.current {
  background: #ffffff;
  color: var(--primary);
}

/* ---- 14. 面包屑导航 ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--text-muted);
}

/* 深色背景上的面包屑 - 搜索结果页等 */
.archive-header .breadcrumb {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.archive-header .breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.archive-header .breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.archive-header .breadcrumb-separator {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0.25rem;
}

/* ---- 15. 底部区域 ---- */
.site-footer {
  /* position: sticky; */
  bottom: 0;
  /* z-index: 100; */
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .site-title {
  color: white;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-column h4 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-column ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-lg) 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
  font-size: 0.875rem;
  white-space: nowrap;
}

.footer-bottom a {
  color: rgba(255,255,255,0.7);
}

.footer-copyright {
  text-align: center;
  white-space: nowrap;
}

.footer-links:not(:has(a)) {
  display: none;
}

.footer-icp {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  white-space: nowrap;
}

.footer-icp p {
  margin: 0;
  line-height: 1.6;
}

.footer-icp a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-icp a:hover {
  color: white;
}

/* ---- 16. 404 页面 ---- */
.error-404 {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.error-code {
  font-size: 8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-md);
  opacity: 0.3;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--space-md);
}

.error-desc {
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- 15. 广告位系统 ---- */
/* 广告位容器 */
.ad-container {
  width: 100%;
  margin: var(--space-lg) 0;
  text-align: center;
}

.ad-container-home-top {
  margin: var(--space-md) auto;
  max-width: var(--container-max);
}

.ad-container-inline {
  margin: var(--space-xl) auto;
  max-width: var(--container-max);
}

.ad-container-single-top {
  margin: var(--space-md) 0 var(--space-lg);
}

/* 广告位通用样式 */
.ad-slot {
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;
}

.ad-slot a,
.ad-slot img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 广告位尺寸控制 */
.ad-slot-home-top {
  max-width: 728px;
}

.ad-slot-sidebar {
  max-width: 300px;
}

.ad-slot-footer-banner {
  max-width: 100%;
}

/* PC/移动端分离 */
.ad-slot-pc {
  display: block;
}

.ad-slot-mobile {
  display: none;
}

@media (max-width: 768px) {
  .ad-slot-pc {
    display: none;
  }

  .ad-slot-mobile {
    display: block;
  }

  .ad-container-home-top,
  .ad-container-inline {
    padding: 0 var(--space-md);
  }

  .ad-slot-home-top {
    max-width: 100%;
  }
}

/* 广告位对齐 */
.ad-align-left {
  text-align: left;
}

.ad-align-center {
  text-align: center;
}

.ad-align-right {
  text-align: right;
}

/* 广告占位提示（仅管理员可见） */
.ad-slot-placeholder {
  border: 2px dashed var(--border-color);
  padding: var(--space-lg);
  margin: var(--space-md) 0;
  border-radius: var(--border-radius);
  background: var(--bg-light);
}

.ad-placeholder-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* 广告演示占位（无广告配置时显示，所有用户可见） */
.ad-slot-demo {
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.ad-slot-demo:hover {
  border-color: var(--primary);
}

.ad-demo-link {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--bg-light) 0%, #f8f9fb 100%);
  text-decoration: none !important;
  transition: background var(--transition-fast);
  min-height: 90px;
}

.ad-demo-link:hover {
  background: linear-gradient(135deg, var(--bg-light) 0%, #eef1f5 100%);
}

.ad-demo-label {
  display: inline-block;
  font-size: 0.6875rem;
  color: var(--text-muted);
  background: rgba(0,0,0,0.04);
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.ad-demo-text {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.ad-demo-size {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 广告激活样式（真实广告已配置） */
.ad-slot-active {
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* 侧边栏广告演示占位适配 */
.ad-slot-sidebar .ad-demo-link {
  min-height: 250px;
  padding: var(--space-xl) var(--space-lg);
}

/* 页脚横幅广告演示占位适配 */
.ad-slot-footer-banner .ad-demo-link {
  min-height: 90px;
}

/* 侧边栏广告位 */
.ad-slot-sidebar {
  margin: var(--space-lg) 0;
}

.ad-slot-sidebar .ad-slot-placeholder {
  padding: var(--space-xl);
}

/* 页脚横幅广告 */
.ad-container-footer {
  margin: var(--space-lg) auto;
  max-width: var(--container-max);
}

/* ===== 横幅商品广告组件样式 (ad-banner-widget) v2.0 ===== */
/* 图片为主+悬停浮窗显示详情，整洁美观不影响页面布局 */
.ad-banner-widget {
  position: relative;
  height: 100px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  background: var(--bg-light);
}

.ad-banner-widget:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* 广告标识 - 浮在图片右上角 */
.ad-banner-widget .ad-label {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  font-size: 0.625rem;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: var(--border-radius-sm);
  letter-spacing: 0.5px;
  font-weight: 400;
  backdrop-filter: blur(2px);
}

/* 链接区域 - 填充整个横幅 */
.ad-banner-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
  position: relative;
}

/* 图片容器 - 填充整个横幅区域 */
.ad-banner-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.ad-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.ad-banner-widget:hover .ad-banner-img {
  transform: scale(1.05);
}

/* 底部渐变遮罩（确保标签可见） */
.ad-banner-shade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
  pointer-events: none;
}

/* 店铺类型标签 */
.ad-banner-widget .ad-shop-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  padding: 2px 8px;
  border-radius: var(--border-radius-sm);
  font-size: 0.625rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.5px;
}

.ad-banner-widget .ad-shop-tmall {
  background: linear-gradient(135deg, #ff0036, #d40029);
}

.ad-banner-widget .ad-shop-taobao {
  background: linear-gradient(135deg, #ff6700, #e55a00);
}

/* 悬停浮窗 - 商品详情（默认隐藏，鼠标悬停时显示） */
.ad-banner-hover-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  opacity: 0;
  transition: opacity var(--transition-base);
  color: white;
  overflow: hidden;
}

.ad-banner-widget:hover .ad-banner-hover-card {
  opacity: 1;
}

.ad-banner-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  line-height: 1.4;
  margin-bottom: var(--space-xs);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  flex-shrink: 0;
}

.ad-banner-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xs);
  flex-shrink: 0;
}

.ad-banner-widget .ad-price-coupon {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
}

.ad-banner-widget .ad-price-original {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: line-through;
}

.ad-banner-widget .ad-coupon-badge {
  display: inline-block;
  padding: 1px 6px;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border: 1px solid #ffb74d;
  border-radius: var(--border-radius-sm);
  font-size: 0.625rem;
  font-weight: 600;
  color: #e65100;
  white-space: nowrap;
}

.ad-banner-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-xs);
  flex-shrink: 0;
}

.ad-banner-widget .ad-sales-volume {
  font-weight: 500;
}

.ad-banner-widget .ad-shop-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-banner-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.3rem var(--space-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.ad-banner-widget:hover .ad-banner-cta {
  background: linear-gradient(135deg, var(--accent-hover), #cc4a1e);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* 占位横幅样式 */
.ad-banner-placeholder .ad-banner-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-banner-placeholder .ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  color: var(--text-muted);
  text-align: center;
}

.ad-banner-placeholder .ad-placeholder svg {
  opacity: 0.4;
}

.ad-banner-placeholder .ad-placeholder-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 移动端横幅广告适配 */
@media (max-width: 768px) {
  .ad-banner-widget {
    height: 80px;
  }

  .ad-banner-hover-card {
    padding: var(--space-xs) var(--space-md);
    overflow: hidden;
  }

  .ad-banner-title {
    font-size: 0.8125rem;
  }

  .ad-banner-widget .ad-price-coupon {
    font-size: 1rem;
  }

  .ad-banner-meta {
    font-size: 0.625rem;
  }

  .ad-banner-cta {
    display: none;
  }
}

/* 移动端无hover时始终显示底部渐变浮窗信息 */
@media (max-width: 768px) and (hover: none) {
  .ad-banner-hover-card {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    justify-content: flex-end;
    padding-bottom: var(--space-sm);
  }

  .ad-banner-title {
    white-space: nowrap;
  }

  .ad-banner-cta {
    display: none;
  }

  .ad-banner-meta {
    margin-bottom: 0;
  }
}

/* ===== 侧边栏广告位组件样式 (ad-sidebar) ===== */
/* 专用于替换右侧边栏的SEO合规广告位 */
/* 自动获取折淘客数码家电类商品广告，统一设计风格 */
.ad-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.ad-sidebar .ad-widget {
  position: relative;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.ad-sidebar .ad-widget:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* 广告标识标签（合规要求：必须可见标注"广告"） */
.ad-sidebar .ad-label {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-align: right;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.03);
  letter-spacing: 0.5px;
  font-weight: 400;
  border-bottom: 1px solid var(--border-color);
}

/* ===== 商品广告卡片样式 ===== */
.ad-sidebar .ad-product-inner {
  padding: 0;
}

.ad-sidebar .ad-product-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

/* 商品图片区域 */
.ad-sidebar .ad-product-image {
  position: relative;
  width: 100%;
  padding-top: 66.67%;
  background: var(--bg-light);
  overflow: hidden;
}

.ad-sidebar .ad-product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.ad-sidebar .ad-widget:hover .ad-product-image img {
  transform: scale(1.05);
}

/* 店铺类型标签（天猫/淘宝） */
.ad-sidebar .ad-shop-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: var(--border-radius-sm);
  font-size: 0.6875rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.5px;
}

.ad-sidebar .ad-shop-tmall {
  background: linear-gradient(135deg, #ff0036, #d40029);
}

.ad-sidebar .ad-shop-taobao {
  background: linear-gradient(135deg, #ff6700, #e55a00);
}

/* 商品信息区域 */
.ad-sidebar .ad-product-info {
  padding: var(--space-md);
}

.ad-sidebar .ad-product-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.45rem;
}

/* 价格区域 */
.ad-sidebar .ad-product-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.ad-sidebar .ad-price-coupon {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.ad-sidebar .ad-price-original {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* 优惠券标签 */
.ad-sidebar .ad-product-coupon {
  margin-bottom: var(--space-sm);
}

.ad-sidebar .ad-coupon-badge {
  display: inline-block;
  padding: 2px 8px;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border: 1px solid #ffb74d;
  border-radius: var(--border-radius-sm);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #e65100;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 商品元信息 */
.ad-sidebar .ad-product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.ad-sidebar .ad-sales-volume {
  font-weight: 500;
}

.ad-sidebar .ad-shop-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 购买按钮 */
.ad-sidebar .ad-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem var(--space-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  border-radius: var(--border-radius);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
}

.ad-sidebar .ad-widget:hover .ad-cta-button {
  background: linear-gradient(135deg, var(--accent-hover), #cc4a1e);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* ===== 占位符样式（API未配置或加载中时显示） ===== */
.ad-sidebar .ad-content {
  padding: var(--space-md);
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-sidebar .ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  text-align: center;
  width: 100%;
}

.ad-sidebar .ad-placeholder svg {
  opacity: 0.4;
}

.ad-sidebar .ad-placeholder-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 移动端适配：侧边栏广告位在小屏幕下隐藏 */
@media (max-width: 768px) {
  .ad-sidebar {
    display: none;
  }
}

/* ---- 15.5 文章中心筛选栏 ---- */
.blog-filter-bar {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.blog-filter-form {
  width: 100%;
}

.blog-filter-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.blog-search-group {
  position: relative;
  flex: 1 1 280px;
  min-width: 200px;
}

.blog-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}

.blog-search-input {
  width: 100%;
  height: 44px;
  padding: 0 0.875rem 0 2.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--text-main);
  background: var(--bg-light);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  box-sizing: border-box;
  line-height: 44px;
}

.blog-search-input:focus {
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.blog-search-input::placeholder {
  color: var(--text-muted);
}

.blog-category-group {
  position: relative;
  flex: 0 0 auto;
  min-width: 160px;
}

.blog-cat-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}

.blog-category-select {
  width: 100%;
  height: 44px;
  padding: 0 2.25rem 0 2.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--text-main);
  background: var(--bg-light);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
  line-height: 44px;
}

.blog-category-select:focus {
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.blog-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 44px;
  padding: 0 1.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  white-space: nowrap;
  flex: 0 0 auto;
}

.blog-search-btn:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.blog-search-btn:active {
  transform: scale(0.97);
}

.blog-filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 44px;
  padding: 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  flex: 0 0 auto;
  border: 1px solid transparent;
}

.blog-filter-reset:hover {
  color: var(--danger);
  background: rgba(220, 53, 69, 0.06);
  border-color: rgba(220, 53, 69, 0.2);
}

@media (max-width: 768px) {
  .blog-filter-bar {
    padding: 1rem;
  }

  .blog-filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .blog-search-group,
  .blog-category-group {
    min-width: 100%;
  }
  
  .blog-search-btn {
    justify-content: center;
  }
  
  .blog-filter-reset {
    justify-content: center;
  }
}/* ---- 16.5 页脚联系信息栏 ---- */
.footer-contact-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--space-lg);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  flex: 1;
  min-width: 200px;
  color: rgba(255,255,255,0.8);
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary);
}

.footer-contact-item .label {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2px;
}

.footer-contact-item .value {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact-item .value:hover {
  color: var(--primary);
}

/* ---- 16.6 移动端菜单样式 ---- */
/* 桌面端默认隐藏移动端菜单 */
.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-menu.active {
    visibility: visible;
    opacity: 1;
  }

  .mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-menu.active .mobile-menu-overlay {
    opacity: 1;
  }

  .mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: var(--bg-white);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  }

  .mobile-menu.active .mobile-menu-panel {
    transform: translateX(0);
  }

  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-md);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
  }

  .mobile-menu-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
  }

  .mobile-menu-close {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius);
    border: none;
    background: var(--bg-light);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
  }

  .mobile-menu-close:hover {
    background: var(--border-color);
  }

  .mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md) 0;
  }

  .mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile-nav-menu li {
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-nav-menu li a {
    display: block;
    padding: var(--space-md);
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast);
  }

  .mobile-nav-menu li a:hover {
    background: var(--primary-light);
    color: var(--primary);
  }

  .mobile-nav-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--bg-light);
  }

  .mobile-nav-menu .sub-menu li {
    border-bottom: none;
    border-top: 1px solid var(--border-color);
  }

  .mobile-nav-menu .sub-menu li a {
    padding-left: var(--space-xl);
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-secondary);
  }

  .mobile-menu-footer {
    padding: var(--space-md);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
  }

  .mobile-menu-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--primary-light);
    border-radius: var(--border-radius);
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9375rem;
  }

  .mobile-menu-contact svg {
    flex-shrink: 0;
  }

  /* 移动端页脚联系信息栏垂直堆叠 */
  .footer-contact-bar {
    flex-direction: column;
    gap: var(--space-md);
  }

  .footer-contact-item {
    min-width: auto;
    width: 100%;
  }
}

/* ---- 17. 响应式设计 ---- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .hero-title {
    font-size: 2.25rem;
  }
}

/* 页脚信息中等屏幕适配（769px-900px内容可能溢出，切换为列布局） */
@media (max-width: 900px) {
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
    flex-wrap: wrap;
    white-space: normal;
  }

  .footer-copyright {
    white-space: normal;
  }

  .footer-icp {
    justify-content: center;
    white-space: normal;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 50px;
  }

  /* 移动端Logo尺寸缩减 */
  .site-logo-container {
    max-width: 120px;
    max-height: 38px;
  }

  .header-search {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .hero-title {
    font-size: 1.875rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    grid-column: auto;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-column {
    text-align: center;
  }

  .footer-column ul {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
    flex-wrap: wrap;
    white-space: normal;
  }

  .footer-copyright {
    white-space: normal;
  }

  .footer-icp {
    justify-content: center;
    white-space: normal;
  }

  .content-area {
    padding: var(--space-lg);
  }

  .entry-title {
    font-size: 1.5rem;
  }
}

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

  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .mobile-menu-panel {
    width: 85%;
  }
}

/* ---- 18. 动画效果 ---- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* ---- 19. 工具类 ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }

.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }

/* ---- 20. WordPress 默认样式覆盖 ---- */
.alignleft {
  float: left;
  margin-right: var(--space-lg);
  margin-bottom: var(--space-md);
}

.alignright {
  float: right;
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
  margin-bottom: var(--space-md);
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-sm);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.sticky {
  position: relative;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

/* ---- 21. 打印样式 ---- */
@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .hero-section,
  .breadcrumb {
    display: none;
  }

  .site-main {
    margin-top: 0;
  }

  .content-area {
    border: none;
    padding: 0;
  }

  a {
    color: var(--text-main);
    text-decoration: underline;
  }
}

/* ============================================
   WordPress 核心生成的 CSS 类
   必须支持以通过官方审核
   ============================================ */

/* 图片对齐 */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
}

.alignnone {
  margin-bottom: 1.5rem;
}

/* 图片说明 */
.wp-caption {
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.wp-caption img {
  display: block;
  max-width: 100%;
  height: auto;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* 画廊 */
.gallery {
  margin-bottom: 1.5rem;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  vertical-align: top;
  width: 100%;
}

.gallery-columns-2 .gallery-item { max-width: 50%; }
.gallery-columns-3 .gallery-item { max-width: 33.33%; }
.gallery-columns-4 .gallery-item { max-width: 25%; }
.gallery-columns-5 .gallery-item { max-width: 20%; }
.gallery-columns-6 .gallery-item { max-width: 16.66%; }
.gallery-columns-7 .gallery-item { max-width: 14.28%; }
.gallery-columns-8 .gallery-item { max-width: 12.5%; }
.gallery-columns-9 .gallery-item { max-width: 11.11%; }

.gallery-caption {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* 置顶文章 */
.sticky {
  position: relative;
}

/* 作者评论 */
.bypostauthor {
  position: relative;
}

/* 屏幕阅读器文本 */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--bg-light);
  clip: auto !important;
  clip-path: none;
  color: var(--text-main);
  display: block;
  font-size: 0.875rem;
  height: auto;
  left: 5px;
  padding: 0.5rem 1rem;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ---- 21. 桌面端隐藏移动菜单按钮 ---- */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* ---- 22. Customizer 预览专用样式 ---- */
/* 在自定义器预览中强制显示导航菜单，确保编辑快捷方式（蓝色铅笔图标）可见 */
body.customize-preview .main-nav {
  display: flex !important;
  align-items: center;
  gap: var(--space-xl);
}

/* 在自定义器预览中隐藏移动端菜单切换按钮，避免与主导航菜单重复 */
body.customize-preview .mobile-menu-toggle {
  display: none !important;
}

/* 在自定义器预览中隐藏移动端弹出菜单 */
body.customize-preview .mobile-menu {
  display: none !important;
}

/* ---- 23. 返回顶部按钮 ---- */
/* 悬浮在页面右下角，圆形按钮带渐变背景和阴影，滚动时淡入显示 */
.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark, #1a4d8f) 100%);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 9998;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--primary-dark, #1a4d8f) 0%, var(--primary) 100%);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.back-to-top:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.back-to-top .back-to-top-icon {
  transition: transform 0.3s ease;
}

.back-to-top:hover .back-to-top-icon {
  transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .back-to-top {
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
  }
}

/* ===== About Page Icons ===== */
.about-icon {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 12px;
  margin: 0 auto 1rem;
}

.about-icon-sm {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  flex-shrink: 0;
}

.about-icon-server {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='8' rx='2' ry='2'/%3E%3Crect x='2' y='14' width='20' height='8' rx='2' ry='2'/%3E%3Cline x1='6' y1='6' x2='6.01' y2='6'/%3E%3Cline x1='6' y1='18' x2='6.01' y2='18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
}

.about-icon-optical {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
}

.about-icon-device {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2' ry='2'/%3E%3Cline x1='12' y1='18' x2='12.01' y2='18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
}

.about-icon-news {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2'/%3E%3Cpath d='M18 14h-8'/%3E%3Cpath d='M15 18h-5'/%3E%3Cpath d='M10 6h8v4h-8V6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}

.about-icon-doc {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}

.about-icon-chat {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}

.about-icon-chart {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'/%3E%3Cline x1='12' y1='20' x2='12' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='14'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}
/* ============================================
   25. 全面移动端响应式适配增强 (max-width: 768px)
   仅覆盖移动端显示，不影响PC端样式
   版本: 1.5.13
   ============================================ */

@media (max-width: 768px) {
  /* === 25.1 基础字体与布局 === */
  html { font-size: 14px !important; }
  body { font-size: 0.875rem !important; line-height: 1.5 !important; overflow-x: hidden !important; }
  .container { padding: 0 0.75rem !important; max-width: 100% !important; }
  p { font-size: 0.875rem !important; line-height: 1.6 !important; }

  /* === 25.2 头部导航 === */
  .site-header { padding: 0 0.5rem !important; height: 50px !important; }
  .header-inner { height: 50px !important; gap: 0.5rem !important; }
  .site-logo-container { max-width: 110px !important; max-height: 34px !important; }
  .site-logo-container img { max-height: 34px !important; width: auto !important; }
  .mobile-menu-toggle { display: flex !important; width: 36px !important; height: 36px !important; }
  .header-search { display: none !important; }
  .main-nav { display: none !important; }

  /* 移动端顶部搜索框：置于智融未来名称右边，自动填充剩余空间 */
  .mobile-top-search {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 0.5rem;
  }
  .mobile-top-search form {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
  }
  .mobile-top-search input {
    width: 100%;
    height: 32px;
    padding: 0 0.5rem;
    padding-right: 32px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-light);
    font-size: 0.75rem;
    outline: none;
    transition: all 0.15s ease;
  }
  .mobile-top-search input:focus {
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 2px var(--primary-light);
  }
  .mobile-top-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    width: 28px;
    height: 28px;
    color: var(--text-muted);
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
  }
  .mobile-top-search button:hover {
    color: var(--primary);
  }

  .header-actions { gap: 0.25rem !important; }

  /* === 25.3 Hero区域 === */
  .hero-section { padding: 1.5rem 0 !important; min-height: auto !important; }
  .hero-title { font-size: 1.375rem !important; margin-bottom: 0.5rem !important; }
  .hero-subtitle { font-size: 0.875rem !important; }
  .hero-buttons { flex-direction: column !important; gap: 0.5rem !important; }
  .hero-buttons .btn { width: 100% !important; text-align: center !important; }

  /* === 25.4 覆盖内联Grid布局（关键修复） === */
  .content-wrapper[style*="grid"],
  .archive-wrapper[style*="grid"] {
    display: block !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* === 25.5 侧边栏移动端显示 === */
  .sidebar { margin-top: 1.5rem !important; width: 100% !important; max-width: 100% !important; }
  .sidebar > * { margin-bottom: 1rem !important; }

  /* === 25.6 文章卡片内联Grid覆盖（关键修复） === */
  .blog-card > div[style*="grid"],
  .blog-card div[style*="grid-template-columns: 280px 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
  }

  /* === 25.7 文章卡片图片约束 === */
  .blog-card img {
    max-width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
  }
  .blog-card div[style*="height: 200px"],
  .blog-card div[style*="min-height: 200px"] {
    height: 180px !important;
    min-height: 180px !important;
  }

  /* === 25.8 文章卡片内容区 === */
  .blog-card div[style*="padding: 1.5rem"] {
    padding: 1rem !important;
  }
  .blog-card h3 { font-size: 1rem !important; }
  .blog-card p { font-size: 0.8125rem !important; line-height: 1.5 !important; }
  .blog-card div[style*="font-size: 0.8125rem"] { font-size: 0.75rem !important; }

  /* === 25.9 Blog/Archive筛选栏 === */
  .blog-filter-bar { padding: 0.75rem !important; margin-bottom: 1rem !important; }
  .blog-filter-row { flex-direction: column !important; align-items: stretch !important; gap: 0.5rem !important; }
  .blog-search-group { min-width: 100% !important; flex: 1 1 100% !important; }
  .blog-category-group { min-width: 100% !important; flex: 1 1 100% !important; }
  .blog-search-input { height: 38px !important; font-size: 0.8125rem !important; line-height: 38px !important; }
  .blog-category-select { height: 38px !important; font-size: 0.8125rem !important; line-height: 38px !important; }
  .blog-search-btn { height: 38px !important; font-size: 0.8125rem !important; padding: 0 1rem !important; justify-content: center !important; }
  .blog-filter-reset { height: 38px !important; font-size: 0.8125rem !important; justify-content: center !important; }

  /* === 25.10 产品/分类网格 === */
  .product-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .category-grid { grid-template-columns: 1fr !important; gap: 0.75rem !important; }

  /* === 25.11 图片全局约束 === */
  img { max-width: 100% !important; height: auto !important; }
  .entry-content img { max-width: 100% !important; height: auto !important; }
  .product-image img { max-width: 100% !important; height: auto !important; }

  /* === 25.12 文章内容页 === */
  .entry-title { font-size: 1.25rem !important; }
  .entry-content { font-size: 0.875rem !important; line-height: 1.6 !important; }
  .entry-content p { font-size: 0.875rem !important; line-height: 1.6 !important; }
  .entry-meta { font-size: 0.75rem !important; }
  .content-area { padding: 1rem !important; }

  /* === 25.13 联系页面 === */
  .contact-info div[style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .contact-info-item { margin-bottom: 1rem !important; }
  .contact-form-wrapper { padding: 1rem !important; }
  .contact-info-item div[style*="width: 48px"] { width: 40px !important; height: 40px !important; }

  /* === 25.14 About页面 === */
  .about-section { padding: 1.5rem 0 !important; }
  .about-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .about-features div[style*="grid"] {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* === 25.15 面包屑 === */
  .breadcrumb { font-size: 0.75rem !important; padding: 0.5rem 0 !important; }

  /* === 25.16 页脚 === */
  .footer-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .footer-bottom { flex-direction: column !important; gap: 0.5rem !important; text-align: center !important; }

  /* === 25.17 搜索栏 === */
  .search-form { width: 100% !important; }
  .search-form input { width: 100% !important; font-size: 0.8125rem !important; }

  /* === 25.18 分页 === */
  .pagination { flex-wrap: wrap !important; gap: 0.25rem !important; justify-content: center !important; }
  .pagination a, .pagination span { padding: 0.375rem 0.625rem !important; font-size: 0.8125rem !important; }

  /* === 25.19 表格 === */
  table { width: 100% !important; display: block !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }

  /* === 25.20 返回顶部 === */
  .back-to-top { right: 16px !important; bottom: 16px !important; width: 40px !important; height: 40px !important; }

  /* === 25.21 广告位 === */
  .ad-inline-wrapper { margin: 1rem 0 !important; }
  .ad-slot { max-width: 100% !important; overflow: hidden !important; }

  /* === 25.22 Archive筛选栏 === */
  .archive-filter { flex-direction: column !important; align-items: stretch !important; gap: 0.5rem !important; }
  .archive-filter div[style*="flex"] { flex-direction: column !important; align-items: stretch !important; gap: 0.5rem !important; }

  /* === 25.23 单篇文章页 === */
  .single-post .content-wrapper[style*="grid"] {
    display: block !important;
    grid-template-columns: 1fr !important;
  }

  /* === 25.24 产品详情页 === */
  .product-detail-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .product-specs { font-size: 0.8125rem !important; }

  /* === 25.25 标题尺寸 === */
  h1 { font-size: 1.5rem !important; }
  h2 { font-size: 1.25rem !important; }
  h3 { font-size: 1.125rem !important; }
  h4 { font-size: 1rem !important; }
  h5 { font-size: 0.9375rem !important; }
  h6 { font-size: 0.875rem !important; }

  /* === 25.26 按钮尺寸 === */
  .btn { font-size: 0.8125rem !important; padding: 0.5rem 1rem !important; }

  /* === 25.27 Archive产品卡片 === */
  .archive-list .blog-card { margin-bottom: 1rem !important; }

  /* === 25.28 业务范围页面 === */
  .business-scope-grid div[style*="grid"] {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* === 25.29 移动菜单面板优化 === */
  .mobile-menu-panel { width: 85% !important; max-width: 300px !important; }
  .mobile-nav-menu li a { padding: 0.875rem 1rem !important; font-size: 0.9375rem !important; }
}

@media (max-width: 480px) {
  /* === 超小屏幕额外优化 === */
  html { font-size: 13px !important; }
  .hero-title { font-size: 1.25rem !important; }
  .blog-card img { height: 160px !important; }
  .blog-card div[style*="height: 200px"],
  .blog-card div[style*="min-height: 200px"] {
    height: 160px !important;
    min-height: 160px !important;
  }
  .container { padding: 0 0.5rem !important; }
  .content-area { padding: 0.75rem !important; }
  .blog-filter-bar { padding: 0.5rem !important; }
  .product-grid { gap: 0.75rem !important; }
}
/* ============================================
   26. 移动端响应式补充修复 (max-width: 768px)
   处理single.php和其他页面中遗漏的内联Grid样式
   ============================================ */

@media (max-width: 768px) {
  /* === 26.1 文章导航（上一篇/下一篇）内联Grid覆盖 === */
  .post-navigation div[style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* === 26.2 相关文章内联Grid调整 === */
  .related-posts div[style*="grid-template-columns: repeat(auto-fill"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  /* === 26.3 相关文章卡片图片约束 === */
  .related-posts img {
    max-width: 100% !important;
    height: 100px !important;
    object-fit: cover !important;
  }

  /* === 26.4 相关文章卡片文字 === */
  .related-posts article {
    font-size: 0.8125rem !important;
  }
  .related-posts h3, .related-posts a {
    font-size: 0.8125rem !important;
  }

  /* === 26.5 通用内联Grid覆盖（1fr 1fr模式） === */
  div[style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* === 26.6 通用内联Grid覆盖（repeat auto-fill模式） === */
  div[style*="grid-template-columns: repeat(auto-fill"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  /* === 26.7 搜索结果页面 === */
  .search-results .content-wrapper[style*="grid"] {
    display: block !important;
    grid-template-columns: 1fr !important;
  }

  /* === 26.8 业务范围页面内联Grid === */
  .page-template-page-business-scope div[style*="grid-template-columns: repeat"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* === 26.9 About页面内联Grid === */
  .page-template-page-about div[style*="grid-template-columns: repeat"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* === 26.10 移动端搜索结果卡片 === */
  .search-results .blog-card img {
    height: 160px !important;
  }

  /* === 26.11 文章内容中的内联样式Grid === */
  .entry-content div[style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .entry-content div[style*="grid-template-columns: repeat(auto-fill"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

@media (max-width: 480px) {
  /* === 超小屏幕：相关文章单列 === */
  .related-posts div[style*="grid-template-columns: repeat(auto-fill"] {
    grid-template-columns: 1fr !important;
  }
}
/* ============================================
   27. 移动端响应式修复 - 图片定位冲突修复
   修复.product-image img的absolute定位与通用img规则的冲突
   ============================================ */

@media (max-width: 768px) {
  /* === 27.1 恢复product-image img的absolute定位 === */
  .product-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: none !important;
  }

  /* === 27.2 恢复post-thumbnail中absolute定位的图片 === */
  .post-thumbnail img,
  .archive-list .post-thumbnail img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* === 27.3 产品卡片图片容器约束 === */
  .product-card .product-image {
    padding-top: 60% !important;
  }

  /* === 27.4 产品卡片标题约束 === */
  .product-title {
    font-size: 0.9375rem !important;
    line-height: 1.4 !important;
  }

  /* === 27.5 产品卡片信息区 === */
  .product-info {
    padding: 0.75rem !important;
  }

  /* === 27.6 产品卡片价格 === */
  .product-price {
    font-size: 1rem !important;
  }

  /* === 27.7 轮播图/滑块图片 === */
  .carousel-item img,
  .swiper-slide img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* === 27.8 文章内容中的图片保持自适应 === */
  .entry-content img,
  .entry-content .wp-block-image img,
  .wp-caption img {
    max-width: 100% !important;
    height: auto !important;
  }
}
/* ============================================
   28. 移动端首页专项修复 (max-width: 768px)
   修复Hero区域、按钮、分类网格、产品网格
   仅影响移动端，PC端完全不受影响
   ============================================ */

@media (max-width: 768px) {
  /* === 28.1 Hero区域 - 确保背景图和标题完整显示 === */
  .home .hero-section {
    margin-top: calc(-1 * var(--header-height)) !important;
    padding-top: calc(var(--header-height) + 2rem) !important;
    padding-bottom: 2rem !important;
    min-height: 220px !important;
    overflow: visible !important;
  }

  .hero-section {
    padding: 2rem 0 !important;
    min-height: 220px !important;
    overflow: visible !important;
  }

  .hero-content {
    max-width: 100% !important;
    position: relative !important;
    z-index: 2 !important;
  }

  /* === 28.2 Hero标题 - 覆盖内联样式，确保不被遮挡 === */
  .hero-title {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  .hero-desc {
    font-size: 0.8125rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
  }

  /* === 28.3 Hero按钮 - 缩小居左，不全宽 === */
  .hero-buttons {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    justify-content: flex-start !important;
  }

  .hero-buttons .btn,
  .hero-buttons a.btn,
  .hero-buttons #hero-btn1,
  .hero-buttons #hero-btn2 {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    font-size: 0.75rem !important;
    padding: 0.4rem 0.875rem !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .hero-buttons .btn svg {
    width: 12px !important;
    height: 12px !important;
  }

  /* === 28.4 产品分类网格 - 2列布局 === */
  .category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.625rem !important;
  }

  /* === 28.5 分类卡片 - 缩小 === */
  .category-card {
    padding: 0.5rem !important;
  }

  /* === 28.6 分类图标 - 大幅缩小 === */
  .category-icon {
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 0.375rem !important;
    border-radius: 12px !important;
    font-size: 2rem !important;
  }

  .category-icon img {
    border-radius: 12px !important;
  }

  .category-icon svg {
    width: 32px !important;
    height: 32px !important;
  }

  /* === 28.7 分类名称和计数 === */
  .category-name {
    font-size: 0.75rem !important;
    margin-bottom: 0.125rem !important;
    line-height: 1.2 !important;
  }

  .category-count {
    font-size: 0.625rem !important;
  }

  /* === 28.8 产品网格 - 2列布局 === */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.625rem !important;
  }

  /* === 28.9 产品卡片 - 缩小 === */
  .product-card {
    border-radius: 8px !important;
  }

  .product-card .product-image {
    padding-top: 75% !important;
  }

  .product-info {
    padding: 0.5rem !important;
  }

  .product-title {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
  }

  .product-title a {
    font-size: 0.75rem !important;
  }

  .product-category {
    font-size: 0.625rem !important;
  }

  .product-specs {
    font-size: 0.625rem !important;
    gap: 0.25rem !important;
  }

  .product-spec {
    font-size: 0.625rem !important;
  }

  .product-footer .btn {
    font-size: 0.625rem !important;
    padding: 0.25rem 0.5rem !important;
  }

  /* === 28.10 首页blog-grid - 单列 === */
  .blog-grid[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* === 28.11 首页blog卡片图片 === */
  .blog-section .blog-card img {
    height: 160px !important;
  }

  .blog-section .blog-card div[style*="height: 200px"] {
    height: 160px !important;
  }

  /* === 28.12 首页blog卡片内容 === */
  .blog-section .blog-card div[style*="padding: 1.5rem"] {
    padding: 0.75rem !important;
  }

  .blog-section .blog-card h3 {
    font-size: 0.875rem !important;
  }

  .blog-section .blog-card p {
    font-size: 0.75rem !important;
    line-height: 1.5 !important;
  }

  /* === 28.13 优势特色区域 - 2列 === */
  .features-grid[style*="grid"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .feature-card {
    padding: 1rem 0.5rem !important;
  }

  .feature-card div[style*="width: 64px"] {
    width: 40px !important;
    height: 40px !important;
  }

  .feature-card div[style*="width: 64px"] svg {
    width: 20px !important;
    height: 20px !important;
  }

  .feature-card h3 {
    font-size: 0.8125rem !important;
  }

  .feature-card p {
    font-size: 0.6875rem !important;
    line-height: 1.4 !important;
  }

  /* === 28.14 区块标题 === */
  .section-title {
    font-size: 1.125rem !important;
  }

  .section-subtitle {
    font-size: 0.75rem !important;
  }

  /* === 28.15 区块间距 === */
  .category-section,
  .product-section,
  .blog-section,
  .features-section {
    padding: 2rem 0 !important;
  }
}

@media (max-width: 480px) {
  /* === 超小屏幕额外优化 === */
  .hero-title {
    font-size: 1.0625rem !important;
  }

  .hero-desc {
    font-size: 0.75rem !important;
  }

  .hero-buttons .btn,
  .hero-buttons a.btn {
    font-size: 0.6875rem !important;
    padding: 0.35rem 0.75rem !important;
  }

  .category-icon {
    width: 56px !important;
    height: 56px !important;
  }

  .category-icon svg {
    width: 28px !important;
    height: 28px !important;
  }

  .category-name {
    font-size: 0.6875rem !important;
  }

  .product-title {
    font-size: 0.6875rem !important;
  }

  .product-title a {
    font-size: 0.6875rem !important;
  }
}
/* ============================================
   29. 移动端首页修复第二轮 (max-width: 768px)
   修复: 最新资讯2列、Hero下移、导航图标位置
   ============================================ */

@media (max-width: 768px) {
  /* === 29.1 Hero区域 - 增加padding-top使内容下移，避免被固定头部遮挡 === */
  .home .hero-section {
    margin-top: calc(-1 * var(--header-height)) !important;
    padding-top: calc(var(--header-height) + 3.5rem) !important;
    padding-bottom: 2.5rem !important;
    min-height: 260px !important;
  }

  /* === 29.2 头部导航 - 隐藏tagline防挤压菜单图标 === */
  .site-tagline {
    display: none !important;
  }

  /* === 29.3 品牌区域允许收缩 === */
  .site-brand {
    flex-shrink: 1 !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .site-brand-text {
    min-width: 0 !important;
    overflow: visible !important;
  }

  .site-title {
    font-size: 0.9375rem !important;
    white-space: normal !important;
    line-height: 1.25 !important;
    word-break: keep-all !important;
    overflow: visible !important;
  }

  /* === 29.4 头部操作区不收缩，确保菜单图标完整显示 === */
  .header-actions {
    flex-shrink: 0 !important;
    margin-left: 0.5rem !important;
  }

  .mobile-menu-toggle {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
  }

  /* === 29.5 头部容器确保右内边距 === */
  .site-header .container {
    padding-right: 0.75rem !important;
  }

  /* === 29.6 最新资讯 - 恢复2列显示 === */
  .blog-grid[style*="grid"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.625rem !important;
  }

  /* === 29.7 最新资讯卡片 - 缩小适配2列 === */
  .blog-section .blog-card {
    border-radius: 8px !important;
  }

  .blog-section .blog-card img {
    height: 100px !important;
  }

  .blog-section .blog-card div[style*="height: 200px"] {
    height: 100px !important;
  }

  .blog-section .blog-card div[style*="padding: 1.5rem"] {
    padding: 0.5rem !important;
  }

  .blog-section .blog-card h3 {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.25rem !important;
  }

  .blog-section .blog-card h3 a {
    font-size: 0.75rem !important;
  }

  .blog-section .blog-card p {
    font-size: 0.6875rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .blog-section .blog-card div[style*="font-size: 0.8125rem"] {
    font-size: 0.625rem !important;
    gap: 0.375rem !important;
    margin-bottom: 0.25rem !important;
  }

  /* === 29.8 优势特色区域也恢复2列 === */
  .features-grid[style*="grid"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  /* === 超小屏: 最新资讯仍保持2列 === */
  .blog-grid[style*="grid"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  .blog-section .blog-card img {
    height: 80px !important;
  }

  .blog-section .blog-card div[style*="height: 200px"] {
    height: 80px !important;
  }

  .blog-section .blog-card h3 {
    font-size: 0.6875rem !important;
  }

  .blog-section .blog-card h3 a {
    font-size: 0.6875rem !important;
  }

  .blog-section .blog-card p {
    font-size: 0.625rem !important;
    -webkit-line-clamp: 1 !important;
  }

  .site-title {
    font-size: 0.875rem !important;
  }
}

/* ============================================
   30. 移动端修复第三轮 (max-width: 768px)
   修复: 最新资讯图标下方留白、关于我们为什么选择我们2列
   ============================================ */

@media (max-width: 768px) {
  /* === 30.1 首页最新资讯 - 去除图片下方留白 === */
  /* img为inline元素产生基线留白，改为block消除 */
  .blog-section .blog-card img {
    display: block !important;
  }

  /* 图片容器消除行高留白 */
  .blog-section .blog-card div[style*="height: 200px"] {
    line-height: 0 !important;
    font-size: 0 !important;
  }

  /* 链接容器消除行高留白 */
  .blog-section .blog-card > a[style*="display: block"] {
    line-height: 0 !important;
  }

  /* 内容区域顶部间距收紧 */
  .blog-section .blog-card div[style*="padding: 1.5rem"] {
    padding-top: 0.375rem !important;
  }

  /* === 30.2 关于我们 - 为什么选择我们 改为2列显示 === */
  .about-page .content-area div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  /* 缩小每项内边距 */
  .about-page .content-area div[style*="grid-template-columns: repeat(4, 1fr)"] > div[style*="padding: 1rem"] {
    padding: 0.5rem !important;
  }

  /* 缩小标题字号 专业/客观/及时/全面 */
  .about-page .content-area div[style*="grid-template-columns: repeat(4, 1fr)"] > div > div[style*="font-size: 2rem"] {
    font-size: 1.25rem !important;
    margin-bottom: 0.25rem !important;
  }

  /* 缩小描述文字 */
  .about-page .content-area div[style*="grid-template-columns: repeat(4, 1fr)"] > div > p[style*="font-size: 0.9375rem"] {
    font-size: 0.75rem !important;
    line-height: 1.5 !important;
  }
}

/* ============================================
   31. 移动端修复第四轮 (max-width: 768px)
   修复: 最新资讯徹底去留白、关于我们专注领域/服务2列
   ============================================ */

@media (max-width: 768px) {
  /* === 31.1 首页最新资讯 - 徹底消除图片下方留白 === */
  .blog-section .blog-card {
    display: flex !important;
    flex-direction: column !important;
  }

  .blog-section .blog-card > a {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    display: block !important;
  }

  .blog-section .blog-card img {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: top !important;
  }

  .blog-section .blog-card div[style*="height: 200px"] {
    line-height: 0 !important;
    font-size: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 内容区域: 去掉顶部padding徹底消除留白 */
  .blog-section .blog-card div[style*="padding: 1.5rem"] {
    padding: 0 0.5rem 0.5rem !important;
    margin: 0 !important;
  }

  /* === 31.2 关于我们 - 专注领域 3列改2列 === */
  .about-page .content-area div[style*="grid-template-columns: repeat("] {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .about-page .content-area div[style*="grid-template-columns: repeat("] > div {
    padding: 0.75rem !important;
  }

  .about-page .content-area div[style*="grid-template-columns: repeat("] .about-icon {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 0.5rem !important;
    border-radius: 8px !important;
    background-size: 22px 22px !important;
  }

  .about-page .content-area div[style*="grid-template-columns: repeat("] h3 {
    font-size: 0.875rem !important;
    margin-bottom: 0.25rem !important;
  }

  .about-page .content-area div[style*="grid-template-columns: repeat("] h3 + p,
  .about-page .content-area div[style*="grid-template-columns: repeat("] > div > p {
    font-size: 0.75rem !important;
    line-height: 1.5 !important;
  }

  /* === 31.3 关于我们 - 我们的服务 恢复2列(覆盖26.5的flex column) === */
  .about-page .content-area div[style*="grid-template-columns: 1fr 1fr"] {
    display: grid !important;
    flex-direction: row !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .about-page .content-area div[style*="grid-template-columns: 1fr 1fr"] > div {
    gap: 0.5rem !important;
  }

  .about-page .content-area div[style*="grid-template-columns: 1fr 1fr"] .about-icon-sm {
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    background-size: 18px 18px !important;
  }

  .about-page .content-area div[style*="grid-template-columns: 1fr 1fr"] h4 {
    font-size: 0.8125rem !important;
    margin-bottom: 0.125rem !important;
  }

  .about-page .content-area div[style*="grid-template-columns: 1fr 1fr"] p {
    font-size: 0.6875rem !important;
    line-height: 1.4 !important;
  }
}

@media (max-width: 480px) {
  /* 超小屏: 关于我们各板块保持2列 */
  .about-page .content-area div[style*="grid-template-columns: repeat("] {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  .about-page .content-area div[style*="grid-template-columns: repeat("] > div {
    padding: 0.5rem !important;
  }

  .about-page .content-area div[style*="grid-template-columns: repeat("] .about-icon {
    width: 36px !important;
    height: 36px !important;
    background-size: 20px 20px !important;
  }

  .about-page .content-area div[style*="grid-template-columns: repeat("] h3 {
    font-size: 0.8125rem !important;
  }

  .about-page .content-area div[style*="grid-template-columns: repeat("] p {
    font-size: 0.6875rem !important;
  }

  .about-page .content-area div[style*="grid-template-columns: 1fr 1fr"] {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  .about-page .content-area div[style*="grid-template-columns: 1fr 1fr"] .about-icon-sm {
    width: 28px !important;
    height: 28px !important;
    background-size: 16px 16px !important;
  }

  .about-page .content-area div[style*="grid-template-columns: 1fr 1fr"] h4 {
    font-size: 0.75rem !important;
  }

  .about-page .content-area div[style*="grid-template-columns: 1fr 1fr"] p {
    font-size: 0.625rem !important;
  }
}

/* ============================================
   32. 移动端修复第五轮 (max-width: 768px)
   根因: 第25节min-height:180px未被覆盖导致图片容器实际180px
   修复: min-height归零、撤销flex、分类图标加固
   ============================================ */

@media (max-width: 768px) {
  /* === 32.1 撤销31节的display:flex，改回block === */
  .blog-section .blog-card {
    display: block !important;
  }

  /* === 32.2 图片容器: min-height归零(核心修复!) === */
  .blog-section .blog-card div[style*="height: 200px"],
  .blog-section .blog-card div[style*="min-height: 200px"] {
    min-height: 0 !important;
    height: 100px !important;
    line-height: 0 !important;
    font-size: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* === 32.3 图片本身 === */
  .blog-section .blog-card img {
    display: block !important;
    height: 100px !important;
    width: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: top !important;
  }

  /* === 32.4 链接容器 === */
  .blog-section .blog-card > a {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
  }

  /* === 32.5 内容区域: 无顶部padding === */
  .blog-section .blog-card div[style*="padding: 1.5rem"] {
    padding: 0 0.5rem 0.5rem !important;
    margin: 0 !important;
  }

  /* === 32.6 分类图标加固(防错位) === */
  .category-icon {
    width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    margin: 0 auto 0.375rem !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
  }

  .category-icon img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    display: block !important;
  }

  .category-icon svg {
    width: 28px !important;
    height: 28px !important;
  }
}

@media (max-width: 480px) {
  /* === 超小屏: min-height同样归零 === */
  .blog-section .blog-card div[style*="height: 200px"],
  .blog-section .blog-card div[style*="min-height: 200px"] {
    min-height: 0 !important;
    height: 80px !important;
  }

  .blog-section .blog-card img {
    height: 80px !important;
  }
}

/* ============================================
   33. 移动端最新资讯图片高度调大 (v1.5.19)
   修复: 图片高度过小导致压缩变形
   768px: 100px -> 130px (接近4:3比例)
   480px: 80px -> 110px (接近3:2比例)
   ============================================ */

@media (max-width: 768px) {
  .blog-section .blog-card div[style*="height: 200px"],
  .blog-section .blog-card div[style*="min-height: 200px"] {
    height: 130px !important;
  }

  .blog-section .blog-card img {
    height: 130px !important;
  }
}

@media (max-width: 480px) {
  .blog-section .blog-card div[style*="height: 200px"],
  .blog-section .blog-card div[style*="min-height: 200px"] {
    height: 110px !important;
  }

  .blog-section .blog-card img {
    height: 110px !important;
  }
}

/* ============================================
   34. 移动端搜索框恢复 + 分页布局修复 (v1.5.20)
   修复:
   1. 移动端搜索框被display:none隐藏，恢复为头部第二行
   2. 文章中心分页样式颜色不适配浅色背景，布局错乱
   ============================================ */

}

/* === 34.2 分页样式修复 - 适配浅色背景 === */
.page-numbers,
.pagination a,
.pagination span {
  background: var(--bg-white) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 0.625rem !important;
  margin: 0 3px !important;
  border-radius: 6px !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  transition: all 0.15s ease !important;
}
a.page-numbers:hover,
.pagination a:hover {
  background: var(--primary-light) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}
span.page-numbers.current,
.pagination .current {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
}
span.page-numbers.dots {
  background: transparent !important;
  border: none !important;
  color: var(--text-muted) !important;
  min-width: auto !important;
  padding: 0 0.25rem !important;
}
.pagination {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.25rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 2rem 0 !important;
}
.pagination li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.pagination-nav {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.25rem !important;
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
}

/* === 34.3 移动端分页布局优化 === */
@media (max-width: 768px) {
  .page-numbers,
  .pagination a,
  .pagination span {
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 0.5rem !important;
    margin: 0 2px !important;
    font-size: 0.8125rem !important;
  }
  .page-numbers.prev,
  .page-numbers.next,
  .pagination .prev,
  .pagination .next {
    padding: 0 0.625rem !important;
    min-width: auto !important;
  }
  .pagination { gap: 0.25rem !important; margin: 1.5rem 0 !important; }
  .pagination-nav { margin-top: 1.5rem !important; gap: 0.25rem !important; }
}
