/*
Theme Name: AI Tech Enterprise
Theme URI: https://aifuture.cn/themes/ai-tech-enterprise
Author: 龙坤智创科技
Author URI: https://aifuture.cn
Description: 专为人工智能和科技企业设计的现代化WordPress主题，采用科技渐变蓝风格设计，基于Tailwind CSS框架开发，具有强大的AI产品展示功能和完善的性能优化。v2.8.63新增页面模板全宽布局美化与优化，对旗下平台、关于我们和品牌合作等页面模板进行全面改版，引入全宽布局设计，提供更现代化的视觉体验，增强用户交互效果。
Version: 2.8.63
Requires at least: 5.8
Tested up to: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ai-tech-theme
Tags: ai, artificial-intelligence, tech, blue, responsive-layout, custom-background, custom-colors, custom-menu, featured-images, flexible-header, full-width-template, post-formats, rtl-language-support, theme-options, translation-ready, accessibility-ready
*/

/**
 * AI科技企业主题样式
 * 科技渐变蓝风格设计 - Tailwind CSS优化版
 *
 * @package AI_Tech_Theme
 * @since 2.5.1
 */

/* ==========================================================================
   CSS变量定义 - 科技渐变蓝风格
   ========================================================================== */
:root {
  /* 
   * 核心CSS变量 - 采用ai-前缀避免与Tailwind冲突
   */
  
  /* 主色调 - 科技渐变蓝 */
  --ai-primary: #0066ff;
  --ai-primary-dark: #0052cc;
  --ai-primary-light: #3385ff;
  --ai-primary-50: #e6f2ff;
  --ai-primary-100: #b3d9ff;
  --ai-primary-200: #80c0ff;
  --ai-primary-300: #4da6ff;
  --ai-primary-400: #1a8cff;
  --ai-primary-500: #0066ff;
  --ai-primary-600: #0052cc;
  --ai-primary-700: #003d99;
  --ai-primary-800: #002966;
  --ai-primary-900: #001433;
  
  /* 辅助色 - 科技青色 */
  --ai-accent: #00d4ff;
  --ai-accent-dark: #00a8cc;
  --ai-accent-light: #33ddff;
  
  /* 背景色 - 现代明亮 */
  --ai-bg-primary: #ffffff;
  --ai-bg-secondary: #f8fbff;
  --ai-bg-tertiary: #f0f7ff;
  --ai-bg-quaternary: #e6f0fa;
  --ai-bg-accent: #f0f9ff;
  --ai-bg-dark: #0a1628;
  --ai-bg-dark-secondary: #1a2332;
  
  /* 文字颜色 */
  --ai-text-primary: #1a2332;
  --ai-text-secondary: #64748b;
  --ai-text-muted: #94a3b8;
  --ai-text-light: #a0aec0;
  --ai-text-white: #ffffff;
  
  /* 边框和分割线 */
  --ai-border-color: #e2e8f0;
  --ai-border-light: #f7fafc;
  --ai-border-dark: #cbd5e0;
  
  /* 阴影 - 科技感浮动 */
  --ai-shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --ai-shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --ai-shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --ai-shadow-xl: 0 15px 25px rgba(0,0,0,0.1);
  --ai-shadow-inner: inset 0 2px 4px rgba(0,0,0,0.05);
  --ai-shadow-glow: 0 0 15px rgba(0, 102, 255, 0.3);
  
  /* 过渡效果 */
  --ai-transition-fast: all 0.15s ease;
  --ai-transition-normal: all 0.25s ease;
  --ai-transition-slow: all 0.35s ease;
  
  /* 渐变 - 科技蓝渐变 */
  --ai-gradient-primary: linear-gradient(135deg, var(--ai-primary, #0066ff) 0%, var(--ai-accent, #00d4ff) 100%);
  --ai-gradient-secondary: linear-gradient(135deg, var(--ai-bg-secondary, #f8fbff) 0%, var(--ai-bg-primary, #ffffff) 100%);
  --ai-gradient-accent: linear-gradient(135deg, var(--ai-primary-50, #e6f2ff) 0%, var(--ai-bg-accent, #f0f9ff) 100%);
  --ai-gradient-dark: linear-gradient(135deg, var(--ai-bg-dark, #0a1628) 0%, var(--ai-bg-dark-secondary, #1a2332) 100%);
  --ai-gradient-hero: linear-gradient(135deg, var(--ai-primary, #0066ff) 0%, var(--ai-accent, #00d4ff) 50%, var(--ai-primary, #0066ff) 100%);
}

/* ==========================================================================
   基础样式重置 - 轻量化版本，避免覆盖Tailwind
   ========================================================================== */
/* 保留WordPress必要的样式类，其他移除交给Tailwind处理 */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  -webkit-clip-path: none;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

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

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

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}


/* 确保内容区域与页脚有适当的间距 */
#content, .site-content {
  padding-bottom: 3rem; /* 增加内容区域底部内边距 */
}

/* ==========================================================================
   通用按钮样式 - 可在整个主题中复用
   ========================================================================== */
.ai-btn {
  display: inline-block;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ai-text-primary);
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  transition: color 0.15s ease-in-out, 
              background-color 0.15s ease-in-out, 
              border-color 0.15s ease-in-out, 
              box-shadow 0.15s ease-in-out;
}

.ai-btn:hover {
  text-decoration: none;
}

.ai-btn:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(0, 102, 255, 0.25);
}

.ai-btn-primary {
  color: #fff;
  background: var(--ai-gradient-primary);
  border-color: var(--ai-primary);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.ai-btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--ai-primary-dark) 0%, var(--ai-primary) 100%);
  border-color: var(--ai-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 102, 255, 0.25);
}

.ai-btn-secondary {
  color: var(--ai-primary);
  background-color: transparent;
  border-color: var(--ai-primary);
}

.ai-btn-secondary:hover {
  color: #fff;
  background-color: var(--ai-primary);
  border-color: var(--ai-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 102, 255, 0.25);
}

.ai-btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 6px;
}

.ai-btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: 10px;
}

.ai-btn i {
  margin-right: 0.5rem;
}

/* 评论提交按钮样式修复 */
#submit, 
input[type="submit"].submit,
.comment-form input[type="submit"],
.form-submit .submit,
.form-submit input[type="submit"],
.comment-form button[type="submit"] {
  display: inline-block;
  font-weight: 500;
  line-height: 1.5;
  color: #fff !important;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background: var(--ai-gradient-primary) !important;
  border: 1px solid var(--ai-primary) !important;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  transition: color 0.15s ease-in-out, 
              background-color 0.15s ease-in-out, 
              border-color 0.15s ease-in-out, 
              box-shadow 0.15s ease-in-out;
}

#submit:hover,
input[type="submit"].submit:hover,
.comment-form input[type="submit"]:hover,
.form-submit .submit:hover,
.form-submit input[type="submit"]:hover,
.comment-form button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--ai-primary-dark) 0%, var(--ai-primary) 100%) !important;
  border-color: var(--ai-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 102, 255, 0.25);
}

/* 必要的自定义组件，无法用Tailwind替代的部分 */
/* AI卡片效果 */
.ai-card {
  background: var(--ai-bg-primary);
  border-radius: 15px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--ai-transition-normal);
  border: 1px solid var(--ai-border-color);
  z-index: 1;
}

.ai-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--ai-gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

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

.ai-card:hover::before {
  transform: scaleX(1);
}

/* 分隔线效果 */
.ai-divider {
  position: relative;
  height: 4px;
  width: 60px;
  background: var(--ai-gradient-primary);
  margin: 0 auto;
  margin-top: 1rem;
  margin-bottom: 2rem;
  border-radius: 2px;
}

.ai-divider::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60%;
  height: 4px;
  background: var(--ai-gradient-primary);
  filter: blur(4px);
  opacity: 0.7;
  border-radius: 2px;
}

/* 文本渐变效果，Tailwind中很难完全复制 */
.text-gradient {
  background: var(--ai-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* 技术优势卡片样式 */
.tech-advantage-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.tech-card-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.05;
  z-index: -1;
}

/* 英雄栏特殊样式 */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(0.5px);
  transform: scale(1.05);
  transition: transform 0.3s ease;
  opacity: 1;
}

.hero-bg-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(248, 251, 255, 0.7) 0%, 
    rgba(240, 247, 255, 0.6) 50%, 
    rgba(230, 242, 255, 0.7) 100%);
  z-index: 1;
}

/* 科技网格背景 */
.tech-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 102, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

@keyframes particleFloat {
  0%, 100% { 
    opacity: 0.8; 
    transform: translateY(0px) scale(1) rotate(0deg); 
  }
  33% { 
    opacity: 1; 
    transform: translateY(-10px) scale(1.05) rotate(120deg); 
  }
  66% { 
    opacity: 0.9; 
    transform: translateY(-5px) scale(0.95) rotate(240deg); 
  }
}

/* 现代通知样式 */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 400px;
  z-index: 9999;
  opacity: 0;
  transform: translateX(100%);
  transition: var(--ai-transition-normal);
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: center;
  padding: var(--spacing-md);
  background: var(--ai-bg-primary);
  border: 1px solid var(--ai-border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--ai-shadow-xl);
  color: var(--ai-text-primary);
  backdrop-filter: blur(10px);
}

.notification-success .notification-content {
  border-left: 4px solid var(--success-color);
  background: var(--accent-50);
}

.notification-error .notification-content {
  border-left: 4px solid var(--danger-color);
  background: #fef2f2;
}

.notification-close {
  background: none;
  border: none;
  color: var(--ai-text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: auto;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--ai-transition-fast);
}

.notification-close:hover {
  color: var(--ai-text-primary);
  background: var(--ai-bg-tertiary);
}

/* 科技加载动画 */
.ai-loading {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--ai-border-light);
  border-radius: 50%;
  border-top-color: var(--ai-primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 现代表单样式 */
.form-control {
  background: var(--ai-bg-primary);
  border: 2px solid var(--ai-border-color);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: var(--ai-text-primary);
  transition: var(--ai-transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--ai-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
  background: var(--ai-bg-primary);
}

.form-label {
  color: var(--ai-text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
}

/* 文章页面按钮样式修复 */
.entry-content .wp-block-button__link,
.entry-content .wp-element-button,
.entry-content button:not(.share-btn):not(.tag-link):not(.btn),
.entry-content input[type="button"],
.entry-content input[type="reset"],
.entry-content input[type="submit"] {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background-color: var(--ai-primary);
    color: white;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.entry-content .wp-block-button__link:hover,
.entry-content .wp-element-button:hover,
.entry-content button:not(.share-btn):not(.tag-link):not(.btn):hover,
.entry-content input[type="button"]:hover,
.entry-content input[type="reset"]:hover,
.entry-content input[type="submit"]:hover {
    background-color: var(--ai-primary-dark);
    color: white;
    text-decoration: none;
}

/* 文章页面链接样式修复 */
.entry-content a:not(.btn):not(.wp-block-button__link):not(.wp-element-button):not(.tag-link) {
    color: var(--ai-primary);
    text-decoration: underline;
    transition: color 0.15s ease-in-out;
}

.entry-content a:not(.btn):not(.wp-block-button__link):not(.wp-element-button):not(.tag-link):hover {
    color: var(--ai-primary-dark);
    text-decoration: underline;
}

/* 文章标签样式增强 */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    background-color: var(--ai-bg-tertiary);
    color: var(--ai-text-secondary);
    border: 1px solid var(--ai-border-color);
    text-decoration: none;
    transition: var(--ai-transition-fast);
}

.tag-link:hover {
    background-color: var(--ai-primary);
    color: white;
    border-color: var(--ai-primary);
    transform: translateY(-2px);
    text-decoration: none;
}

.entry-meta .tags-list {
    display: inline;
}

.entry-meta .tag-link {
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
    background: transparent;
    border: none;
    color: var(--ai-text-secondary);
    margin: 0 0.25rem;
}

.entry-meta .tag-link:hover {
    background: var(--ai-bg-tertiary);
    color: var(--ai-primary);
    transform: none;
}

/* 小工具美化 */
.widget {
    margin-bottom: var(--spacing-xl);
    transition: var(--ai-transition-normal);
}

.widget-title {
    position: relative;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    color: var(--ai-text-primary);
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--ai-gradient-primary);
    border-radius: var(--radius-sm);
}

/* 搜索小工具美化 */
.widget_search .search-form {
    display: flex;
    position: relative;
}

.widget_search .search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border: 1px solid var(--ai-border-color);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    background: var(--ai-bg-primary);
    transition: var(--ai-transition-fast);
}

.widget_search .search-field:focus {
    outline: none;
    border-color: var(--ai-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.widget_search .search-submit {
    padding: 0.75rem 1rem;
    background: var(--ai-primary);
    color: white;
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--ai-transition-fast);
}

.widget_search .search-submit:hover {
    background: var(--ai-primary-dark);
}

/* 分类小工具美化 */
.widget_categories ul,
.widget_archive ul,
.widget_recent_entries ul,
.widget_recent_comments ul,
.widget_meta ul,
.widget_pages ul,
.widget_nav_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_categories li,
.widget_archive li,
.widget_recent_entries li,
.widget_recent_comments li,
.widget_meta li,
.widget_pages li,
.widget_nav_menu li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--ai-border-color);
    transition: var(--ai-transition-fast);
}

.widget_categories li:last-child,
.widget_archive li:last-child,
.widget_recent_entries li:last-child,
.widget_recent_comments li:last-child,
.widget_meta li:last-child,
.widget_pages li:last-child,
.widget_nav_menu li:last-child {
    border-bottom: none;
}

.widget_categories a,
.widget_archive a,
.widget_recent_entries a,
.widget_recent_comments a,
.widget_meta a,
.widget_pages a,
.widget_nav_menu a {
    color: var(--ai-text-secondary);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--ai-transition-fast);
}

.widget_categories a:hover,
.widget_archive a:hover,
.widget_recent_entries a:hover,
.widget_recent_comments a:hover,
.widget_meta a:hover,
.widget_pages a:hover,
.widget_nav_menu a:hover {
    color: var(--ai-primary);
    transform: translateX(5px);
}

/* 标签云小工具美化 */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.widget_tag_cloud .tag-cloud-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem !important;
    border-radius: var(--radius-full);
    background: var(--ai-bg-tertiary);
    color: var(--ai-text-secondary);
    text-decoration: none;
    transition: var(--ai-transition-fast);
}

.widget_tag_cloud .tag-cloud-link:hover {
    background: var(--ai-primary);
    color: white;
    transform: translateY(-2px);
}

/* 最近文章小工具美化 */
.widget_recent_entries li {
    position: relative;
    padding-left: 1.5rem;
}

.widget_recent_entries li::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ai-primary);
    transition: var(--ai-transition-fast);
}

.widget_recent_entries li:hover::before {
    left: 0.3rem;
}

.widget_recent_entries a {
    display: block;
}

.widget_recent_entries .post-date {
    display: block;
    font-size: 0.8rem;
    color: var(--ai-text-muted);
    margin-top: 0.25rem;
}

/* 评论小工具美化 */
.widget_recent_comments ul li {
    position: relative;
    padding-left: 1.5rem;
}

.widget_recent_comments ul li::before {
    content: '\f075';
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--ai-primary);
}

.widget_recent_comments .comment-author-link {
    font-weight: 600;
    color: var(--ai-text-primary);
}

/* 日历小工具美化 */
.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
}

.widget_calendar caption {
    font-weight: 600;
    padding: 0.5rem;
    background: var(--ai-bg-secondary);
    border-radius: var(--radius-sm);
}

.widget_calendar th,
.widget_calendar td {
    padding: 0.25rem;
    text-align: center;
}

.widget_calendar th {
    background: var(--ai-bg-tertiary);
}

.widget_calendar tbody a {
    display: block;
    background: var(--ai-primary);
    color: white;
    border-radius: var(--radius-sm);
}

.widget_calendar tbody a:hover {
    background: var(--ai-primary-dark);
}

.widget_calendar tfoot a {
    color: var(--ai-text-secondary);
}

/* 文章分享按钮增强 */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--ai-transition-fast);
    border: 1px solid transparent;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--ai-shadow-md);
}

/* 胶囊型标签 */
.tag-style-pill .tag-link {
    border-radius: var(--radius-full);
    padding: 0.25rem 1rem;
}

/* 圆角型标签 */
.tag-style-rounded .tag-link {
    border-radius: var(--radius-md);
    padding: 0.25rem 0.75rem;
}

/* 方形标签 */
.tag-style-square .tag-link {
    border-radius: 0;
    padding: 0.25rem 0.75rem;
}

/* 下划线标签 */
.tag-style-underlined .tag-link {
    border-radius: 0;
    border: none;
    border-bottom: 2px solid var(--ai-border-color);
    background: transparent;
    padding: 0.25rem 0.5rem;
}

.tag-style-underlined .tag-link:hover {
    border-bottom-color: var(--ai-primary);
    background: transparent;
    color: var(--ai-primary);
}

/* 文章导航样式增强 */
.post-navigation .nav-link-item {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    height: 100%;
    border: 1px solid var(--ai-border-color);
    border-radius: var(--radius-md);
    background: var(--ai-bg-secondary);
    transition: var(--ai-transition-normal);
}

.post-navigation .nav-link-item:hover {
    border-color: var(--ai-primary);
    box-shadow: var(--ai-shadow-md);
    background: var(--ai-bg-primary);
}

.post-navigation .nav-direction {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--ai-text-muted);
}

.post-navigation .nav-title {
    font-weight: 600;
    color: var(--ai-text-primary);
}

/* 相关文章样式增强 */
.related-posts .ai-card {
    border: 1px solid var(--ai-border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--ai-transition-normal);
}

.related-posts .ai-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ai-shadow-md);
    border-color: var(--ai-primary-light);
}

.related-posts .post-thumbnail {
    margin: -1px -1px 1rem -1px;
}

.related-posts .post-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-posts h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.related-posts .text-secondary {
    padding: 0 1rem 1rem;
}

/* 作者信息样式增强 */
.author-bio {
    padding: 2rem;
    background: var(--ai-bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--ai-border-color);
}

.author-name {
    font-weight: 600;
    color: var(--ai-text-primary);
    margin-bottom: 0.5rem;
}

.author-description {
    color: var(--ai-text-secondary);
    margin-bottom: 1rem;
}

.author-social a {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   文章页样式
   ========================================================================== */

/* 文章标题样式 */
.entry-title {
  margin-bottom: 1.5rem;
  word-wrap: break-word;
  font-weight: var(--post-title-weight);
  line-height: var(--post-title-line-height);
}

/* 文章标题大小变体 */
.title-small .entry-title {
  font-size: var(--post-title-size-small);
}

.title-medium .entry-title {
  font-size: var(--post-title-size-medium);
}

.title-large .entry-title {
  font-size: var(--post-title-size-large);
}

/* 文章内容样式 */
.entry-content {
  margin-bottom: 2rem;
}

/* 文章内容字体大小变体 */
.content-size-small .entry-content {
  font-size: var(--post-content-size-small);
}

.content-size-medium .entry-content {
  font-size: var(--post-content-size-medium);
}

.content-size-large .entry-content {
  font-size: var(--post-content-size-large);
}

/* 文章内容行高变体 */
.line-height-1-5 .entry-content {
  line-height: var(--post-line-height-tight);
}

.line-height-1-7 .entry-content {
  line-height: var(--post-line-height-normal);
}

.line-height-1-9 .entry-content {
  line-height: var(--post-line-height-relaxed);
}

/* 引用块样式 */
.blockquote-border-left .entry-content blockquote {
  border-left: 4px solid var(--blockquote-border-color);
  padding: 1rem 0 1rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-primary);
  font-style: italic;
}

.blockquote-background .entry-content blockquote {
  background-color: var(--blockquote-bg-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-primary);
  font-style: italic;
}

.blockquote-gradient .entry-content blockquote {
  background: linear-gradient(to right, var(--primary-50), var(--bg-primary));
  border-left: 4px solid var(--blockquote-border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-primary);
  font-style: italic;
}

/* 确保评论提交按钮文本为白色 */
.btn-ai-primary {
  color: #ffffff !important;
}

/* ==========================================================================
   Hero区域增强样式
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, 
    rgba(248, 251, 255, 0.9) 0%, 
    rgba(240, 247, 255, 0.9) 50%, 
    rgba(230, 242, 255, 0.9) 100%);
  backdrop-filter: blur(10px);
}

/* 英雄栏背景图片样式 */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(0.5px);
  transform: scale(1.05);
  transition: transform 0.3s ease;
  opacity: 1;
}

.hero-bg-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(248, 251, 255, 0.7) 0%, 
    rgba(240, 247, 255, 0.6) 50%, 
    rgba(230, 242, 255, 0.7) 100%);
  z-index: 1;
}

/* 确保内容在背景图片之上 */
.hero-content {
  position: relative;
  z-index: 10;
}

.hero-badge span {
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.hero-badge span:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 102, 255, 0.2);
}

.hero-title {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 增强按钮样式 */
.btn-ai-primary {
  background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-ai-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-ai-primary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

.btn-ai-primary:hover::before {
  left: 100%;
}

.btn-ai-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #0066ff;
  border: 2px solid #0066ff;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-ai-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-ai-secondary:hover {
  color: white;
  border-color: #0052cc;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
}

.btn-ai-secondary:hover::before {
  width: 100%;
}

/* 统计数据样式 */
.hero-stats {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 滚动指示器 */
.scroll-indicator {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.scroll-indicator:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   性能优化和低性能模式
   ========================================================================== */
.low-performance-mode .particle,
.low-performance-mode .shape {
  animation-duration: 30s !important;
}

.low-performance-mode .gradient-background {
  animation: none !important;
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.05) 0%,
    rgba(0, 212, 255, 0.05) 100%) !important;
}

.no-animations * {
  animation: none !important;
  transition: none !important;
}

/* ==========================================================================
   响应式设计增强
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title span {
    font-size: 3.5rem !important;
  }
  
  .hero-title span:last-child {
    font-size: 3rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.25rem !important;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-title span {
    font-size: 2.5rem !important;
  }
  
  .hero-title span:last-child {
    font-size: 2rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.125rem !important;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-stats {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .stat-number {
    font-size: 2rem !important;
  }
}

@media (max-width: 480px) {
  .hero-title span {
    font-size: 2rem !important;
  }
  
  .hero-title span:last-child {
    font-size: 1.75rem !important;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .btn-ai-primary,
  .btn-ai-secondary {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

/* 首页特定样式 */
.section-title {
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--ai-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 技术优势模块样式 */
.tech-advantage-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: all 0.3s ease;
}

.tech-card-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.05;
  z-index: -1;
}

.tech-icon-wrapper {
  position: relative;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-advantage-card:hover .tech-icon-wrapper {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tech-tag {
  transition: all 0.3s ease;
}

.tech-advantage-card:hover .tech-tag {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 添加高级样式效果 */
.tech-advantage-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, transparent 70%, rgba(255,255,255,0.2) 100%);
  z-index: -1;
  transition: all 0.3s ease;
}

.tech-advantage-card:hover::before {
  background: linear-gradient(45deg, transparent 60%, rgba(255,255,255,0.4) 100%);
}

@media (max-width: 768px) {
  .tech-advantage-card {
    padding: 1.5rem;
  }
  
  .tech-icon-wrapper {
    width: 14px;
    height: 14px;
    padding: 3px;
  }
  
  .tech-icon-wrapper i {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .tech-advantage-card {
    padding: 1.25rem;
  }
  
  .tech-icon-wrapper {
    width: 12px;
    height: 12px;
    padding: 2px;
    margin-bottom: 0.75rem;
  }
  
  .tech-icon-wrapper i {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   分页导航美化样式
   ========================================================================== */
.page-numbers {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.page-numbers li {
    margin: 0;
}

.page-numbers a,
.page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-numbers a:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.page-numbers .current {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #2563eb;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.page-numbers .prev,
.page-numbers .next {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.page-numbers .prev:hover,
.page-numbers .next:hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@media (max-width: 640px) {
    .page-numbers .prev,
    .page-numbers .next {
        padding: 0.5rem;
    }
    
    .page-numbers a,
    .page-numbers span {
        min-width: 2.25rem;
        height: 2.25rem;
        padding: 0.4rem 0.8rem;
    }
} 